From mizerkin at WIRZ-KOELN.DE Thu Jun 1 01:11:08 2006 From: mizerkin at WIRZ-KOELN.DE (Dmitri Mizerkin) Date: Thu, 1 Jun 2006 10:11:08 +0200 Subject: AW: [UMN_MAPSERVER-USERS] AW: [UMN_MAPSERVER-USERS] ZOOM TO A SELECTED OBJECT In-Reply-To: Message-ID: Hello, Steve! This is exactly that I want. In other words, I want a feature/item with a particular ObjectID to be zoomed in by default. Have you any ideas how to do it? Cheers, ________________________________ Dmitri -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von Steve Lime Gesendet: Mittwoch, 31. Mai 2006 18:50 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] AW: [UMN_MAPSERVER-USERS] ZOOM TO A SELECTED OBJECT Say that again, I'm not sure exactly what you're after. Do you want to populate a map extent based on the properties of a particular feature? Steve >>> Dmitri Mizerkin 5/31/2006 10:54:28 AM >>> Dear all, I'm trying to solve a similar problem. My situation is like this: Say I have two layers on the map - "Achse" for showing all items and "Sel_Achse" only for selected ones. The map is shown in the browse-mode. I call the picture with the following line in the address-bar: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/Avenida/htdocs/Avenida.m ap&mode=browse&layer=Achse&layer=Sel_Achse&oid=11 , where "oid" is the ObjectID of the item to be shown in the "selected-item-layer". I have been playing with zooming for some time and got to the conclusion, that it is only possible to manipulate it adding 3 additional parameters (imgxy, imgext and zoom) to the address line. Here's a line implementing a 5x zoom to the centre of the map: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/Avenida/htdocs/Avenida.m ap&mode=browse&layer=Achse&layer=Sel_Achse&oid=11&imgxy=290+149.5&imgext=257 4985.815002+5646056.028076+2587295.900005+5655288.591828&zoom=5 Is it possible to get one of the parameters (imgxy or imgext) at run-time so that it would be possible to zoom to the right area of the map not waiting for a user-click? Is there any way to do that using mapxy=shape and mapext=shape instead? In this case, which parameter could identify the shape to zoom to? Many thanks in advance! ________________________________ Dmitri -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von J. Parapar Gesendet: Dienstag, 30. Mai 2006 21:09 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] ZOOM TO A SELECTED OBJECT Hi Toni You can use the itemquery mode to select the municipality and the mapxy parameter to set the map extent, mapxy=shape set map extent to the extent of the selected shape. See also the buffer and scale parameters. Hope this helps. Best regards, Jorge 2006/5/30, toni hern?ndez : > Hi, > > I have a layer of municipalities boundaries (SHP file with polygons) > > How can I zoom to a municipality selected for the user from an HTML form? > Ex. Zoom to a municpality called "SALT". > > Maybe changing the map file dynamically? > I have been reading about filter and fitleritem but I do not see how can > make a zoom to a particular municpality. > > > > thanks > From zhonghaiw at GMAIL.COM Thu Jun 1 01:12:40 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Thu, 1 Jun 2006 10:12:40 +0200 Subject: ratser map based on CGI In-Reply-To: Message-ID: Hi Steve, thank you so much for lighting me, your solution works really well. And I've noticed that there REF and REF[x][y] CGI parameters in the document, do these mean I can simply click on the reference map and the map extent will change automatically? I mean the case of CGI mode. I am trying to get the value to figure out if it works, but these two parameters are not replaced by the CGI program: or not all CGI parameters can be used in the template file? thanks in advance zhonghai On 5/31/06, Steve Lime wrote: > > Zhonghai: That should be doable. The CGI does accept a point (only in map > coordinates I think) and a scale. You'd probably want to allow panning in > the the main map display (no zooming) and then control scale with a seperate > form. A skeleton browse template might look like (this is off the top of my > head): > >
> > > >
> >
> > > > >
> > You'd have to maintain the scale select list state with a bit of > javascript but otherwise something like this should work. Since the forms > are pretty well self contained you should be able to use most any > design/page layout. > > Steve > > >>> Zhonghai Wang 05/31/06 3:18 AM >>> > Hi guys, > > trying to develop a small demo using scanned paper maps, these are some > historical maps and scanned as GIF or JPEG format. I am wondering if I can > do it only using HTML tags and CGI parameters, without client side script > languages. > > the problem for these paper maps is: > > I can not use the zoom[number] parameter to set the zoom control, since > each > paper map can only be displayed in a certain map scale, e.g 1:1000000, > otherwise it's not readable because of the image resolution. I have about > 9 > different levels. > > I appreciate your info. > > zhonghai > > 31.05.2005 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dwija_dey at REDIFFMAIL.COM Thu Jun 1 03:12:34 2006 From: dwija_dey at REDIFFMAIL.COM (Pratap) Date: Thu, 1 Jun 2006 10:12:34 -0000 Subject: Help needed in ImageMap Message-ID: ? Hi Steve/List The mapserver is generating the imagefile(text/html) in imagelocations(IMAGEPATH). This is done by using the following three lines of PHP codes. 1)$map2 = ms_newMapObj("/usr/local/apache/htdocs/gmap/htdocs/imagemap.map"); 2)$img2 = $map2->draw(); 3)$imagemap_url = $img2->saveWebImage(MS_IMAGEMAP, 0, 0, 0); But in the imagemapfile i am not getting the desired field and its value from .dbf file. Please check it out in the attachment section. What i am trying here is that i will include the imagemap file in my .phtml and then try to display the result as a tooltip. One line from imagemap file is given below Everything is perfect in the above line but after coords ="201 .." i should get the desired field from my .dbf file & though all the template files imapheader.html, bodytemplate.html, imapfooter.html are there in the template section(i mentioned it in the mapfile also). Can you please point out the error for which i am not getting the desired result? Or the template files are not needed here as i am using the PHP/mapscript? Another question, Is that the coords in the imagemap file by which, i will extrct the information for my tooltip? On Wed, 31 May 2006 Steve Lime wrote : >There is no image map in that output??? > >Steve > > >>> "Pratap" 5/26/2006 7:16:32 AM >>> > > Hi > Steve > I am sending the html result of the output of mapserver as a >attachement. Tnaks for reply & >Thanks in advance. >With Regards >Pratap > > > >>>It would be helpfull to see the output from MapServer in this >>case. Can > >>you post the HTML result (as an attachment) or send a link? > >Steve > > >>> "Pratap" 05/25/06 8:07 AM >>> > > >Hi > List and Steve Lime > Plz. donot ignore this message. > I have posted a message for a help in imagemap though, i have not >get any reply. I am trying to imulate the mouseover in browser/mapserver > from >http://mapserver.gis.umn.edu/docs/howto/imagemaps/?searchterm=imagemap >also i am keen to know from steve how to implement the mouseover that i >saw in Steve limes SHPXY example in >http://maps.dnr.state.mn.us/cgi-bin/mapserv48?map=/usr/local/www/docs_maps/eco/rsg/search/search_example.map&qlayer=county&mode=nquery&searchmap=true >. > > My quries are given below(Specially to Steve for the example that he >has implemented). Hope this time i will get solutions from Steve/List. >Thanks in advance >With Regards. >Pratap > > > >On Fri, 12 May 2006 Pratap wrote : > > > >Hi > >I am trying to emulate imagemap with mapserver from the example given in http://mapserver.gis.umn.edu/docs/howto/imagemaps/?searchterm=imagemap > >I am tring to display a field from my shapefile.dbf on mouseover tooltip using the functionality of the above URL. But neither i am getting any error nor tooltip/mouseover functionality. > > > > My Mapfile for imagemap is: > > ......... > > LAYER > > NAME "city" > > TYPE POINT > > STATUS ON > > DATA "city" > > CLASSITEM "name" > > CLASS > > NAME "CITY NAME" > > EXPRESSION /A*/ > > COLOR 255 0 0 > > OUTLINECOLOR 255 0 0 > > END > > TEMPLATE "bodytemplate.html" > > HEADER "imapheader.html" > > FOOTER "imapfooter.html" > > END > >............ > > > >The content of template file bodytemplate.html is. > >[name] > > > >Q.1)What will be the exact value of href above? > > > >The content of template file imapheader.html is. > > > > > >Q.2)What will be the value of id and name above? > > > >The content of template file imapheader.html is. > > > > > >I am also passing layer=city mode=nquery and searchmap=true from my .phtml file to mapserver > > > >Q.3) I am not using separate imagemap mapfile. Whether it is needed? what will be its contents, where i should > >place it ? and i am using Gmap's PHP/Mapscript engine. > > > >Can anyone please tell me where is the problem? Also any info on this topic will highly appreciated. > >Thanks in advance for any help. > >With regards. > >Pratap -------------- next part -------------- An HTML attachment was scrubbed... URL: From Gail.Millin at MANCHESTER.AC.UK Thu Jun 1 03:23:55 2006 From: Gail.Millin at MANCHESTER.AC.UK (Gail Millin) Date: Thu, 1 Jun 2006 11:23:55 +0100 Subject: gdaltindex problem Message-ID: An HTML attachment was scrubbed... URL: From micha at ARAVA.CO.IL Thu Jun 1 03:20:53 2006 From: micha at ARAVA.CO.IL (Micha Silver) Date: Thu, 1 Jun 2006 13:20:53 +0300 Subject: mapserver and selinux In-Reply-To: <447C4373.5070007@herzsys.de> Message-ID: listuser HH wrote: > Micha Silver wrote: > >> I've setup mapserver-4.8.3 on a CentOS-4.3 server. With SELinux >> enabled I can't get mapserv in /var/www/cgi-bin to work. It can't >> find libpq.so. Running ldd on the mapserv binary in the original >> compile location returns OK: >> >> [root at maps ~]# ldd /home/micha/download/mapserver-4.8.3/mapserv | >> grep libpq >> libpq.so.4 => /var/lib/pgsql/lib/libpq.so.4 (0x0072d000) >> >> But running ldd on the *same* binary copied to /var/www/cgi-bin: >> [root at maps ~]# cp /home/micha/download/mapserver-4.8.3/mapserv >> /var/www/cgi-bin/ >> [root at maps ~]# ldd /var/www/cgi-bin/mapserv | grep libpq >> libpq.so.4 => not found >> libpq.so.4 => not found >> >> The copy has selinux context: >> [root at maps ~]# ls -Z /var/www/cgi-bin/mapserv >> -rwxr-xr-x root root root:object_r:httpd_sys_script_exec_t >> /var/www/cgi-bin/mapserv >> >> and indeed in the messages log there are "audit:...avc: denied" >> errors for mapserv: >> May 30 14:11:11 maps kernel: audit(1148987471.254:2): avc: denied { >> read write } for pid=2662 comm="mapserv" name="0" dev=devpts ino=2 >> scontext=root:system_r:httpd_sys_script_t >> tcontext=root:object_r:initrc_devpts_t tclass=chr_file >> May 30 14:11:11 maps kernel: audit(1148987471.254:3): avc: denied { >> use } for pid=2662 comm="mapserv" name="0" dev=devpts ino=2 >> scontext=root:system_r:httpd_sys_script_t >> tcontext=user_u:system_r:initrc_t tclass=fd >> May 30 14:11:11 maps kernel: audit(1148987471.254:4): avc: denied { >> use } for pid=2662 comm="mapserv" name="0" dev=devpts ino=2 >> scontext=root:system_r:httpd_sys_script_t >> tcontext=user_u:system_r:initrc_t tclass=fd >> May 30 14:11:11 maps kernel: audit(1148987471.255:5): avc: denied { >> read } for pid=2662 comm="mapserv" name="libpq.so.4" dev=sda2 >> ino=1423567 scontext=root:system_r:httpd_sys_script_t >> tcontext=root:object_r:var_lib_t tclass=lnk_file >> May 30 14:11:11 maps kernel: audit(1148987471.331:6): avc: denied { >> read } for pid=2662 comm="mapserv" name="libpq.so.4" dev=sda2 >> ino=1423567 scontext=root:system_r:httpd_sys_script_t >> tcontext=root:object_r:var_lib_t tclass=lnk_file >> >> If I drop the seliux level to "permissive" (logs error but doesn't >> deny) then mapserv works as expected. >> >> Can anyone suggest how to set this up, short of disabling selinux?? >> >> Thanks, Micha >> >> > Hi, > > I think you could use something like: > chcon -c -v -R -u system_u -r object_r -t lib_t [path/to/lib/folder] > > I'm not familiar with SELinux so check the args in the man for chcon. > > Regards > > Norbert > Norbert: Here's what I did. chcon -t lib_t /var/lib/pgsql/lib chcon -t lib_t /var/lib/pgsql/libpq.so.4.1 # The real library rm -f /var/lib/pgsql/lib/libpq.so.4 # delete the original soft link... # ... and recreate it to correct selinux context for the link ln -s /var/lib/pgsql/lib/libpq.so.4.1 /var/lib/pgsql/lib/libpqso.4 Now it seems to be working. Thanks, Micha From fredlucca at GMAIL.COM Thu Jun 1 05:37:29 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Thu, 1 Jun 2006 09:37:29 -0300 Subject: Problems with querybypoint and shapelib Message-ID: Hello list, After a couple of request at same time my Tomcat broke with this error: # Java VM: Java HotSpot(TM) Server VM (1.5.0_06-b05 mixed mode) # Problematic frame: # C [libc.so.6+0x6c91c] mempcpy+0x1c # --------------- T H R E A D --------------- Current thread (0x6d049348): JavaThread "http-8080-Processor23" daemon [_thread_in_native, id=11434] siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x00000000 Stack: [0x6c06d000,0x6c0ee000), sp=0x6c0ebad4, free space=506k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libc.so.6+0x6c91c] mempcpy+0x1c C [libc.so.6+0x60b08] _IO_sgetn+0x28 C [libc.so.6+0x5548e] _IO_fread+0x8e C [libmapscript.so+0x6b968] msSHPOpen+0x478 C [libmapscript.so+0x6bba5] msSHPOpenFile+0x55 C [libmapscript.so+0x6bdce] msShapeFileLayerOpen+0x8e C [libmapscript.so+0x95341] msLayerOpen+0x61 C [libmapscript.so+0x86362] msQueryByPoint+0x172 C [libmapscript.so+0x57f4d] layerObj_queryByPoint+0x4d C [libmapscript.so+0x57fc1] Java_edu_umn_gis_mapscript_mapscriptJNI_layerObj_1queryByPoint+0x61 j edu.umn.gis.mapscript.mapscriptJNI.layerObj_queryByPoint(JJJID)I+0 --------------- S Y S T E M --------------- OS:Mandriva Linux release 2007.0 (Cooker) for i586 uname:Linux 2.6.16-1mdksmp #1 SMP Fri May 19 19:16:59 CEST 2006 i686 libc:glibc 2.4 NPTL 2.4 I have already heard about a problem with swig and java, how can I fix it if this is the problem? Could somebody help me? Thanks in advance, Fred -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Thu Jun 1 05:45:03 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 1 Jun 2006 14:45:03 +0200 Subject: Problems with querybypoint and shapelib In-Reply-To: Message-ID: How did you compile mapserver and java mapscript (give the configure arguments exactly)? Did you use the -use-threads argument? Have you read the docs on mapserver web site (search for java): http://mapserver.gis.umn.edu/docs/howto/javamapscript ? Regards, Umberto On 6/1/06, Frederico Lucca wrote: > Hello list, > > After a couple of request at same time my Tomcat broke with this error: > > # Java VM: Java HotSpot(TM) Server VM ( > 1.5.0_06-b05 mixed mode) > > # Problematic frame: > # C [libc.so.6+0x6c91c] mempcpy+0x1c > # > > --------------- T H R E A D --------------- > > Current thread (0x6d049348): JavaThread "http-8080-Processor23" daemon > [_thread_in_native, id=11434] > > > siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x00000000 > > Stack: [0x6c06d000,0x6c0ee000), sp=0x6c0ebad4, free space=506k > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native > code) > > C [libc.so.6+0x6c91c] mempcpy+0x1c > C [libc.so.6+0x60b08] _IO_sgetn+0x28 > C [libc.so.6+0x5548e] _IO_fread+0x8e > C [libmapscript.so+0x6b968] msSHPOpen+0x478 > C [libmapscript.so+0x6bba5] msSHPOpenFile+0x55 > > C [libmapscript.so+0x6bdce] msShapeFileLayerOpen+0x8e > C [libmapscript.so+0x95341] msLayerOpen+0x61 > C [libmapscript.so+0x86362] msQueryByPoint+0x172 > C [libmapscript.so+0x57f4d] layerObj_queryByPoint+0x4d > > C [libmapscript.so+0x57fc1] > Java_edu_umn_gis_mapscript_mapscriptJNI_layerObj_1queryByPoint+0x61 > j > edu.umn.gis.mapscript.mapscriptJNI.layerObj_queryByPoint(JJJID)I+0 > > --------------- S Y S T E M --------------- > > > OS:Mandriva Linux release 2007.0 (Cooker) for i586 > > uname:Linux 2.6.16-1mdksmp #1 SMP Fri May 19 19:16:59 CEST 2006 i686 > libc:glibc 2.4 NPTL 2.4 > > > I have already heard about a problem with swig and java, how can I fix it if > this is the problem? > > Could somebody help me? > > Thanks in advance, > > Fred > > > -- > "Everything under the sun is in tune > But the sun is eclipsed by the moon" > From fsimon at UNIVALI.BR Thu Jun 1 05:54:24 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Thu, 1 Jun 2006 09:54:24 -0300 Subject: Problems with querybypoint and shapelib In-Reply-To: <75b4b93e0606010545j7572721se6e47f9941ebfbd0@mail.gmail.com> Message-ID: Hi, You can use the "synchronized" in your code to guarantee that only one thread access the source of data. Best regards. Fernando Simon Umberto Nicoletti wrote: > How did you compile mapserver and java mapscript (give the configure > arguments exactly)? Did you use the -use-threads argument? > > Have you read the docs on mapserver web site (search for java): > http://mapserver.gis.umn.edu/docs/howto/javamapscript ? > > Regards, > Umberto > > > > On 6/1/06, Frederico Lucca wrote: >> Hello list, >> >> After a couple of request at same time my Tomcat broke with this error: >> >> # Java VM: Java HotSpot(TM) Server VM ( >> 1.5.0_06-b05 mixed mode) >> >> # Problematic frame: >> # C [libc.so.6+0x6c91c] mempcpy+0x1c >> # >> >> --------------- T H R E A D --------------- >> >> Current thread (0x6d049348): JavaThread "http-8080-Processor23" daemon >> [_thread_in_native, id=11434] >> >> >> siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x00000000 >> >> Stack: [0x6c06d000,0x6c0ee000), sp=0x6c0ebad4, free space=506k >> Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, >> C=native >> code) >> >> C [libc.so.6+0x6c91c] mempcpy+0x1c >> C [libc.so.6+0x60b08] _IO_sgetn+0x28 >> C [libc.so.6+0x5548e] _IO_fread+0x8e >> C [libmapscript.so+0x6b968] msSHPOpen+0x478 >> C [libmapscript.so+0x6bba5] msSHPOpenFile+0x55 >> >> C [libmapscript.so+0x6bdce] msShapeFileLayerOpen+0x8e >> C [libmapscript.so+0x95341] msLayerOpen+0x61 >> C [libmapscript.so+0x86362] msQueryByPoint+0x172 >> C [libmapscript.so+0x57f4d] layerObj_queryByPoint+0x4d >> >> C [libmapscript.so+0x57fc1] >> Java_edu_umn_gis_mapscript_mapscriptJNI_layerObj_1queryByPoint+0x61 >> j >> edu.umn.gis.mapscript.mapscriptJNI.layerObj_queryByPoint(JJJID)I+0 >> >> --------------- S Y S T E M --------------- >> >> >> OS:Mandriva Linux release 2007.0 (Cooker) for i586 >> >> uname:Linux 2.6.16-1mdksmp #1 SMP Fri May 19 19:16:59 CEST 2006 i686 >> libc:glibc 2.4 NPTL 2.4 >> >> >> I have already heard about a problem with swig and java, how can I >> fix it if >> this is the problem? >> >> Could somebody help me? >> >> Thanks in advance, >> >> Fred >> >> >> -- >> "Everything under the sun is in tune >> But the sun is eclipsed by the moon" >> > From tkirstine at JDBARNES.COM Thu Jun 1 06:09:10 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Thu, 1 Jun 2006 09:09:10 -0400 Subject: Restricting map draws WMS In-Reply-To: Message-ID: Steve, I've attached a portion of a mapfile with the min/max scale definitions in the layer definitions. I've done some looking through ESRI technical articles and found some issues on their end: http://support.esri.com/index.cfm?fa=knowledgebase.techArticles.articleShow& d=27956 http://support.esri.com/index.cfm?fa=knowledgebase.techArticles.articleShow& d=27954 Do I have to accept this as another fact of life or is there anything I could do about it? MAP NAME "FirstBaseSolutions_wms" STATUS OFF SIZE 490 440 UNITS METERS EXTENT 514539 4734925 825054 4994985 SHAPEPATH /var/www/data/umap_vector_data/ FONTSET "/var/www/html/umap_www/map_symbols/fonts.txt" SYMBOLSET "/var/www/html/umap_www/map_symbols/symbols.sym" IMAGECOLOR 255 255 255 IMAGETYPE png WEB IMAGEPATH "/var/www/html/wms/map_images/" IMAGEURL "http://www.firstbasesolutions.com/wms/map_images/" METADATA "wms_title" "FirstBaseSolutions_wms" #"wms_accessconstraints" "none" "wms_onlineresource" "http://www.site.com/cgi-bin/name_of_service?" "wms_srs" "EPSG:26917" END END PROJECTION "init=epsg:26917" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END # raster layers #<<<<<<<<<<<< FBS 6km Tiles >>>>>>>>>>>>> LAYER NAME ortho_6km_tiles METADATA "wms_title" "ortho_6km_tiles" "wms_extent" "551000 4744000 796000 4983000" END PROJECTION "init=epsg:26917" END STATUS OFF MINSCALE 0 MAXSCALE 50000 TYPE RASTER TILEINDEX "/var/public/esri_wms_data/fbs_6km_tiles_2002" TILEITEM "location" #GROUP Orthophoto END #<<<<<<<<<<<<< FBS 1km Tiles >>>>>>>>>>>> LAYER NAME ortho_1km_tiles METADATA "wms_title" "ortho_1km_tiles" "wms_extent" "551000 4744000 796000 4983000" END PROJECTION "init=epsg:26917" END STATUS OFF MINSCALE 0 MAXSCALE 3500 TYPE RASTER TILEINDEX "/var/public/esri_wms_data/fbs_1km_tiles_2002" TILEITEM "location" #GROUP Orthophoto END Travis Kirstine -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Wednesday, May 31, 2006 6:09 PM To: tkirstine at JDBARNES.COM; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Restricting map draws WMS Travis: Did you try setting MINSCALE/MAXSCALE for each layer? The underlying drawing code will respect (or at least I think it does) those values regardless of the what the client asks for. Steve >>> Travis Kirstine GIS Tech 05/31/06 12:06 PM >>> Hi All, Is there a easy way to control minscale/maxscale draws server side for a wms? We are testing a wms that serves out high res. ortho for a large area (30,000km2). We were hoping that we could control the draw with the minscale maxcale options in the layer definition in the server side mapfile. However, when testing the wms using ArcGIS 8.3, ArcGIS 9.1, uDig and ArcExplorer Web we are finding that the minscale maxscale are not consistently recognized on the client side, and if the minscale/maxscale definitions are omitted the draw times are extreme. Any ideas would be great. Travis From assefa at DMSOLUTIONS.CA Thu Jun 1 06:36:34 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 1 Jun 2006 09:36:34 -0400 Subject: Problem with wfs_filter In-Reply-To: <20060601073955.238400@gmx.net> Message-ID: Christian, You filter in your example is looking for an attribute name called "typ" and a value equal to "REFERENCE". In the gml you sent, I do not even see the attribute "typ". Is your filer valid ? All the filter encoding does is convert your filter to '[typ]' = '[REFERENCE]'. If you think the filter is valid and should retun something, You could maybe send me your map and data and I can look into it. Later, Christian Wilmes wrote: > Hi, > > first of all sorry for posting the same thing more than one time. I've postet this topic to the list and a few hours later it wasn't in there so I postet again. > > Without setting a filter in the layer everything is ok. If I do a getFeature in my browser like that: > http://localhost/cgi-bin/mapserv.exe?map=c:\ms4w\WFS.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getFeature&TYPENAME=myWFS&BBox=3398049.324,5800890.150,3398049.60,5801890.150 > > the result is: > > - > - > - > 3398049.522000,5800890.264000 3398049.522000,5800890.264000 > > > - > - > - > - > 3398049.522000,5800890.264000 3398049.522000,5800890.264000 > > > - > - > 3398049.522000,5800890.264000 > > > 30 > 0.228276476370299 > 41.16 > 1005.787 > 9:56:00 > 61.784 > 1005.819 > 20.536 > 1005.755 > 711.2 > 0 > MELO-CORR > 256 > 24 > 10.5 > 3398049.522 > 5800890.264 > > > > > > >> -------- Original-Nachricht -------- >> Datum: Wed, 31 May 2006 12:59:05 -0400 >> Von: Yewondwossen Assefa >> An: MAPSERVER-USERS at LISTS.UMN.EDU >> Betreff: Re: [UMN_MAPSERVER-USERS] Problem with wfs_filter >> > Christian, >> >> if you do the GetFeature request inside your browser do you get any >>result ? If the filter is not set, do you get results back ? >> >>Christian Wilmes wrote: >> >>>Hi All, >>> >>>I've set up a WFS with "VirtualSpatialData" and thought everything is >> >>working fine, but now I have to assert, a WMS-Layer on the WFS with a >>"wfs_filter" doesn't work. Whatever I'm typing in the wfs_filter there will not be >>just one point in my Layer. >> >>>In the log-file I found the following: >>>[Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP: Starting to >> >>prepare HTTP requests.\r >> >>>[Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP request: >> >>id=4, >>http://localhost/cgi-bin/mapserv.exe?&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=myWFS&FILTER=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Etyp%3C%2FPropertyName%3E%3CLiteral%3EREFERENCE%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3C%2FFilter%3E\r >> >>>[Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP request: >> >>id=4, found in cache, skipping.\r >> >>>[Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP: Before >> >>download loop\r >> >>>[Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP: After >> >>download loop\r >> >>>[Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] >> >>msHTTPExecuteRequests() timing summary per layer (connect_time + time_to_first_packet + >>download_time = total_time in seconds)\r >> >>>>My mapfile for the WFS: >>> >>>MAP >>> NAME WFS_Server >>> STATUS ON >>> WEB >>> IMAGEPATH "c:/ms4w/tmp/ms_tmp" >>> IMAGEURL "/ms_tmp/" >>> METADATA >>> "wfs_title" "WFS Server" >>> "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" >>> "wfs_srs" "EPSG:31467" >>> END >>> END >>> >>> PROJECTION >>> "init=EPSG:31467" >>> END >>> >>> CONFIG "PGSQL_OGR_FID" "id" >>> DEBUG ON >>> >>> LAYER >>> NAME myWFS >>> DUMP TRUE >>> DEBUG ON >>> METADATA >>> "wfs_title" "myWFS" >>> "gml_include_items" "all" >>> END >>> TYPE POINT >>> STATUS ON >>> CONNECTIONTYPE OGR >>> CONNECTION "PostgreSQL.ovf" >>> PROJECTION >>> "init=EPSG:31467" >>> END >>> END >>>END >>> >>> >>>>The WMS-Layer: >>> >>> LAYER >>> NAME "RosoftWFS" >>> TYPE POINT >>> STATUS ON >>> DEBUG ON >>> CONNECTIONTYPE WFS >>> CONNECTION "http://localhost/cgi-bin/mapserv.exe?" >>> METADATA >>> "wfs_typename" "myWFS" >>> "wfs_version" "1.0.0" >>> "wfs_request_method" "GET" >>> "wfs_service" "WFS" >>> >>> "wfs_filter" >> >>"typREFERENCE" >> >>> END >>> >>> > PROJECTION >>> "init=EPSG:31467" >>> END >>> >>> > CLASS >>> NAME test >>> SYMBOL "Punkt" >>> SIZE 10 >>> COLOR 255 0 0 >>> END >>> END >>> >>> >>>>>I would be very thankful for any help! >>> >>>Best Regards >>>Christian >> >>-- >>---------------------------------------------------------------- >>Assefa Yewondwossen >>Software Analyst >> >>Email: assefa at dmsolutions.ca >>http://www.dmsolutions.ca/ >> >>Phone: (613) 565-5056 (ext 14) >>Fax: (613) 565-0925 >>---------------------------------------------------------------- > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Dejan.Gambin at PULA.HR Thu Jun 1 07:10:33 2006 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Thu, 1 Jun 2006 16:10:33 +0200 Subject: Error in displaying raster in tileindex shape Message-ID: Hi, I have created tileindex shapefile with my rasters using gdaltindex. When trying to show the raster layer I get the following errors in my php error log: [01-Jun-2006 16:11:12] PHP Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'katastar_index'. in /var/www/pmapper1/incphp/map.php on line 311 [01-Jun-2006 16:11:12] PHP Warning: [MapServer Error]: msRASTERLayerOpen(): Attempt to open a RASTER layer, but this is only supported after a raster query. in /var/www/pmapper1/incphp/map.php on line 311 [01-Jun-2006 16:11:12] PHP Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'katastar_index'. in /var/www/pmapper1/incphp/map.php on line 311 [01-Jun-2006 16:11:12] PHP Warning: [MapServer Error]: msRASTERLayerOpen(): Attempt to open a RASTER layer, but this is only supported after a raster query. in /var/www/pmapper1/incphp/map.php on line 311 [01-Jun-2006 16:11:12] PHP Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'katastar_index'. in /var/www/pmapper1/incphp/map.php on line 311 [01-Jun-2006 16:11:12] PHP Warning: [MapServer Error]: msRASTERLayerOpen(): Attempt to open a RASTER layer, but this is only supported after a raster query. in /var/www/pmapper1/incphp/map.php on line 311 [01-Jun-2006 16:11:12] PHP Warning: [MapServer Error]: msDrawRaster(): (katastar_index) in /var/www/pmapper1/incphp/map.php on line 311 [01-Jun-2006 16:11:12] PHP Fatal error: Call to a member function on a non-object in /var/www/pmapper1/incphp/map.php on line 332 I couldn't find any info on this error. Any help? thanks very much dejan From tkirstine at JDBARNES.COM Thu Jun 1 07:43:24 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Thu, 1 Jun 2006 10:43:24 -0400 Subject: Error in displaying raster in tileindex shape In-Reply-To: Message-ID: Dejan, If the tileindex was successfully created using the gdaltindex command I would check to see if the location field in the tileindex dbf contains the correct path to the rasters. If the path is incorrect use the path when running the gdaltindex command: gdaltindex index.shp /path/to/raster/files/*.tif -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Gambin Dejan Sent: Thursday, June 01, 2006 10:11 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Error in displaying raster in tileindex shape Hi, I have created tileindex shapefile with my rasters using gdaltindex. When trying to show the raster layer I get the following errors in my php error log: [01-Jun-2006 16:11:12] PHP Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'katastar_index'. in /var/www/pmapper1/incphp/map.php on line 311 [01-Jun-2006 16:11:12] PHP Warning: [MapServer Error]: msRASTERLayerOpen(): Attempt to open a RASTER layer, but this is only supported after a raster query. in /var/www/pmapper1/incphp/map.php on line 311 [01-Jun-2006 16:11:12] PHP Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'katastar_index'. in /var/www/pmapper1/incphp/map.php on line 311 [01-Jun-2006 16:11:12] PHP Warning: [MapServer Error]: msRASTERLayerOpen(): Attempt to open a RASTER layer, but this is only supported after a raster query. in /var/www/pmapper1/incphp/map.php on line 311 [01-Jun-2006 16:11:12] PHP Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'katastar_index'. in /var/www/pmapper1/incphp/map.php on line 311 [01-Jun-2006 16:11:12] PHP Warning: [MapServer Error]: msRASTERLayerOpen(): Attempt to open a RASTER layer, but this is only supported after a raster query. in /var/www/pmapper1/incphp/map.php on line 311 [01-Jun-2006 16:11:12] PHP Warning: [MapServer Error]: msDrawRaster(): (katastar_index) in /var/www/pmapper1/incphp/map.php on line 311 [01-Jun-2006 16:11:12] PHP Fatal error: Call to a member function on a non-object in /var/www/pmapper1/incphp/map.php on line 332 I couldn't find any info on this error. Any help? thanks very much dejan From fcadili at NGI.IT Thu Jun 1 06:55:28 2006 From: fcadili at NGI.IT (Francesco) Date: Thu, 1 Jun 2006 15:55:28 +0200 Subject: queryByAttributes and postgis Message-ID: Hello, I have a problem when using mapserver with postgis to perform a queryByAttribute on a layer. The problem disapear when using the same data with shape files. The error returned by teh mapscript middleware is: <<<<performquery: The query give the following error: ms_error_obj Object ( [_handle_] => Resource id #372 [code] => 23 [routine] => prepare_database() [message] => Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT cod_concio::text,VISTA::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from conci_data.conci WHERE (cod_concio = '3523 AND cod_concio = 6087 AND cod_concio = 6092') and (the_geom && setSRID( 'BOX3D(-6600 -6748.21739130435,838 -603.782608695652)'::BOX3D,find_srid('','conci_data.conci','the_geom') ))'

Postgresql reports the error as 'ERROR: invalid input syntax for integer: "3523 AND cod_concio = 6087 AND cod_concio = 6092" '

More Help:

Error with POSTGIS data variable. You specified '<check your .map file>'.
Standard ways of specifiying are :
(1) 'geometry_column from geometry_table'
(2) 'geometry_column from (<sub query>) as foo using unique <column name> using SRID=<srid#>'

Make sure you put in the 'using unique <column name>' and 'using SRID=#' clauses in.

For more help, please see http://postgis.refractions.net/documentation/

Mappostgis.c - version of Jan 23/2004. ) <<<<performquery: 2st step: do the query (queryItem = cod_concio, queryString = 3523 AND cod_concio = 6087 AND cod_concio = 6092) I tried different string such as: 3523' OR cod_concio = '6087' OR cod_concio = '6092 (OK, only postgis) 3523 OR cod_concio = 6087 OR cod_concio = 6092 (that does not work) ([cod_concio] in '3523,6087,6092') (works on shape) ('[cod_concio]' in '3523,6087,6092') (works on shape) ([cod_concio] = 3523 OR [cod_concio]=6087 OR [cod_concio] = 6092') (works on shape) Have any idea? FrancescoI From clemens.bertschler at GMAIL.COM Thu Jun 1 08:54:45 2006 From: clemens.bertschler at GMAIL.COM (Bertsch) Date: Thu, 1 Jun 2006 08:54:45 -0700 Subject: queryByAttributes and postgis In-Reply-To: <447EF1D0.7050503@ngi.it> Message-ID: Have a look at your SQL statement you are trying to compare column cod_concio to a string with the value '3523 AND cod_concio = 6087 AND cod_concio = 6092'. Take care on the qotes you are defining in the data object. mfg Clemens -- View this message in context: http://www.nabble.com/queryByAttributes+and+postgis-t1717138.html#a4664620 Sent from the Mapserver - User forum at Nabble.com. From bpederse at NATURE.BERKELEY.EDU Thu Jun 1 09:36:46 2006 From: bpederse at NATURE.BERKELEY.EDU (Brent Pedersen) Date: Thu, 1 Jun 2006 09:36:46 -0700 Subject: point query for multiple layers Message-ID: hi, using the mapserver CGI is it possible to do a point query on multiple layers? im not familiar with templates, but i'm using mode=query and sending in the list of visible layers but TEMPLATE substitution only occurs for the last visible layer. i have 3 layers and i'd like each of them to be queried. do i need to do this with some code by querying each layer independently? thanks for any leads. layer defs below. -brent LAYER NAME 'FRAP' TYPE RASTER TEMPLATE 'FRAP_query.html' OFFSITE 255 0 0 DATA '/opt/web/fire/geoFRAP/firethreat.tif' STATUS OFF CLASS NAME 'NA' EXPRESSION ([pixel] = -1) COLOR 205 204 153 END . . . END LAYER NAME 'WUI' TYPE POLYGON TEMPLATE 'WUI_query.html' OFFSITE 255 0 0 DATA '/home/bpederse/firedata/CA_WUI' STATUS OFF CLASS NAME 'Lowest' EXPRESSION ([Cal_WUI] > 0) OUTLINECOLOR 55 204 53 END END LAYER NAME 'CODES' TYPE POLYGON TEMPLATE 'CODES_query.html' OFFSITE 255 0 0 DATA '/home/bpederse/firedata/building_code' STATUS OFF CLASS NAME 'Lowest' EXPRESSION ([Building_c] > 0) OUTLINECOLOR 255 0 0 END -------------- next part -------------- An HTML attachment was scrubbed... URL: From perrygeo at GMAIL.COM Thu Jun 1 10:10:34 2006 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Thu, 1 Jun 2006 10:10:34 -0700 Subject: point query for multiple layers In-Reply-To: <78A40DAA-C38C-4567-A2B9-BFB907BEC9BD@nature.berkeley.edu> Message-ID: Brent, mode=nquery should do the trick. This will return all the matching features as defined by their layer templates. In addition you can set a WEB->HEADER and FOOTER that will be printed before and after all the layer templates. matt On 6/1/06, Brent Pedersen wrote: > > hi, > using the mapserver CGI is it possible to do a point query on multiple > layers? im not familiar with templates, but > i'm using mode=query and sending in the list of visible layers but TEMPLATE > substitution only occurs for the last visible layer. > i have 3 layers and i'd like each of them to be queried. > do i need to do this with some code by querying each layer independently? > thanks for any leads. layer defs below. > -brent > > LAYER > NAME 'FRAP' > TYPE RASTER > TEMPLATE 'FRAP_query.html' > OFFSITE 255 0 0 > DATA '/opt/web/fire/geoFRAP/firethreat.tif' > STATUS OFF > CLASS > NAME 'NA' > EXPRESSION ([pixel] = -1) > COLOR 205 204 153 > END > . > . > . > END > > LAYER > NAME 'WUI' > TYPE POLYGON > TEMPLATE 'WUI_query.html' > OFFSITE 255 0 0 > DATA '/home/bpederse/firedata/CA_WUI' > STATUS OFF > CLASS > NAME 'Lowest' > EXPRESSION ([Cal_WUI] > 0) > OUTLINECOLOR 55 204 53 > END > > END > > LAYER > NAME 'CODES' > TYPE POLYGON > TEMPLATE 'CODES_query.html' > OFFSITE 255 0 0 > DATA '/home/bpederse/firedata/building_code' > STATUS OFF > CLASS > NAME 'Lowest' > EXPRESSION ([Building_c] > 0) > OUTLINECOLOR 255 0 0 > END > > > -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net From hartpence_gis at CO.JASPER.IA.US Thu Jun 1 10:12:07 2006 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Thu, 1 Jun 2006 12:12:07 -0500 Subject: Upgrading Mapserver Message-ID: Hello, I run map Server on a windows 2000 Server machine with IIS as my Web Server Software. I recently downloaded ver. 4.8 via MS4W. I tried to rename MS4W on my computer, but it will not let me. I turned off the IIS services. I get an error message saying that I either don't have write permissions or an application is accessing that folder. Any guidance would be greatly appreciated. Lawrence Hartpence GIS Coordinator 101 1st St N Newton IA 50208 641-792-3084 hartpence_gis at co.jasper.ia.us From fredlucca at GMAIL.COM Thu Jun 1 10:37:11 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Thu, 1 Jun 2006 14:37:11 -0300 Subject: Problems with querybypoint and shapelib In-Reply-To: <75b4b93e0606010545j7572721se6e47f9941ebfbd0@mail.gmail.com> Message-ID: Umberto, Yes, I build using --with-threads --with-ogr --with-proj Now i will try to make the interface with a newer version of swig. I have read your article and I will try to follow him step by step. Another question, I still need to syncronize my code? Thanks, Fred On 6/1/06, Umberto Nicoletti wrote: > > How did you compile mapserver and java mapscript (give the configure > arguments exactly)? Did you use the -use-threads argument? > > Have you read the docs on mapserver web site (search for java): > http://mapserver.gis.umn.edu/docs/howto/javamapscript ? > > Regards, > Umberto > > > > On 6/1/06, Frederico Lucca wrote: > > Hello list, > > > > After a couple of request at same time my Tomcat broke with this error: > > > > # Java VM: Java HotSpot(TM) Server VM ( > > 1.5.0_06-b05 mixed mode) > > > > # Problematic frame: > > # C [libc.so.6+0x6c91c] mempcpy+0x1c > > # > > > > --------------- T H R E A D --------------- > > > > Current thread (0x6d049348): JavaThread "http-8080-Processor23" daemon > > [_thread_in_native, id=11434] > > > > > > siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x00000000 > > > > Stack: [0x6c06d000,0x6c0ee000), sp=0x6c0ebad4, free space=506k > > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, > C=native > > code) > > > > C [libc.so.6+0x6c91c] mempcpy+0x1c > > C [libc.so.6+0x60b08] _IO_sgetn+0x28 > > C [libc.so.6+0x5548e] _IO_fread+0x8e > > C [libmapscript.so+0x6b968] msSHPOpen+0x478 > > C [libmapscript.so+0x6bba5] msSHPOpenFile+0x55 > > > > C [libmapscript.so+0x6bdce] msShapeFileLayerOpen+0x8e > > C [libmapscript.so+0x95341] msLayerOpen+0x61 > > C [libmapscript.so+0x86362] msQueryByPoint+0x172 > > C [libmapscript.so+0x57f4d] layerObj_queryByPoint+0x4d > > > > C [libmapscript.so+0x57fc1] > > Java_edu_umn_gis_mapscript_mapscriptJNI_layerObj_1queryByPoint+0x61 > > j > > edu.umn.gis.mapscript.mapscriptJNI.layerObj_queryByPoint(JJJID)I+0 > > > > --------------- S Y S T E M --------------- > > > > > > OS:Mandriva Linux release 2007.0 (Cooker) for i586 > > > > uname:Linux 2.6.16-1mdksmp #1 SMP Fri May 19 19:16:59 CEST 2006 i686 > > libc:glibc 2.4 NPTL 2.4 > > > > > > I have already heard about a problem with swig and java, how can I fix > it if > > this is the problem? > > > > Could somebody help me? > > > > Thanks in advance, > > > > Fred > > > > > > -- > > "Everything under the sun is in tune > > But the sun is eclipsed by the moon" > > > -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: From fredlucca at GMAIL.COM Thu Jun 1 10:37:40 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Thu, 1 Jun 2006 14:37:40 -0300 Subject: Problems with querybypoint and shapelib In-Reply-To: <447EE380.1060904@univali.br> Message-ID: Fernando, I will try this. Thanks, Fred On 6/1/06, Fernando Simon wrote: > > Hi, > You can use the "synchronized" in your code to guarantee that only > one thread access the source of data. > Best regards. > > Fernando Simon > > > Umberto Nicoletti wrote: > > How did you compile mapserver and java mapscript (give the configure > > arguments exactly)? Did you use the -use-threads argument? > > > > Have you read the docs on mapserver web site (search for java): > > http://mapserver.gis.umn.edu/docs/howto/javamapscript ? > > > > Regards, > > Umberto > > > > > > > > On 6/1/06, Frederico Lucca wrote: > >> Hello list, > >> > >> After a couple of request at same time my Tomcat broke with this error: > >> > >> # Java VM: Java HotSpot(TM) Server VM ( > >> 1.5.0_06-b05 mixed mode) > >> > >> # Problematic frame: > >> # C [libc.so.6+0x6c91c] mempcpy+0x1c > >> # > >> > >> --------------- T H R E A D --------------- > >> > >> Current thread (0x6d049348): JavaThread "http-8080-Processor23" daemon > >> [_thread_in_native, id=11434] > >> > >> > >> siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x00000000 > >> > >> Stack: [0x6c06d000,0x6c0ee000), sp=0x6c0ebad4, free space=506k > >> Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, > >> C=native > >> code) > >> > >> C [libc.so.6+0x6c91c] mempcpy+0x1c > >> C [libc.so.6+0x60b08] _IO_sgetn+0x28 > >> C [libc.so.6+0x5548e] _IO_fread+0x8e > >> C [libmapscript.so+0x6b968] msSHPOpen+0x478 > >> C [libmapscript.so+0x6bba5] msSHPOpenFile+0x55 > >> > >> C [libmapscript.so+0x6bdce] msShapeFileLayerOpen+0x8e > >> C [libmapscript.so+0x95341] msLayerOpen+0x61 > >> C [libmapscript.so+0x86362] msQueryByPoint+0x172 > >> C [libmapscript.so+0x57f4d] layerObj_queryByPoint+0x4d > >> > >> C [libmapscript.so+0x57fc1] > >> Java_edu_umn_gis_mapscript_mapscriptJNI_layerObj_1queryByPoint+0x61 > >> j > >> edu.umn.gis.mapscript.mapscriptJNI.layerObj_queryByPoint(JJJID)I+0 > >> > >> --------------- S Y S T E M --------------- > >> > >> > >> OS:Mandriva Linux release 2007.0 (Cooker) for i586 > >> > >> uname:Linux 2.6.16-1mdksmp #1 SMP Fri May 19 19:16:59 CEST 2006 i686 > >> libc:glibc 2.4 NPTL 2.4 > >> > >> > >> I have already heard about a problem with swig and java, how can I > >> fix it if > >> this is the problem? > >> > >> Could somebody help me? > >> > >> Thanks in advance, > >> > >> Fred > >> > >> > >> -- > >> "Everything under the sun is in tune > >> But the sun is eclipsed by the moon" > >> > > > > -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: From fcadili at NGI.IT Thu Jun 1 11:05:06 2006 From: fcadili at NGI.IT (Francesco Cadili) Date: Thu, 1 Jun 2006 20:05:06 +0200 Subject: queryByAttributes and postgis Message-ID: Bertsch wrote: > Have a look at your SQL statement you are trying to compare column cod_concio > to a string with the value '3523 AND cod_concio = 6087 AND cod_concio = > 6092'. Take care on the qotes you are defining in the data object. > > mfg > Clemens > -- > View this message in context: http://www.nabble.com/queryByAttributes+and+postgis-t1717138.html#a4664620 > Sent from the Mapserver - User forum at Nabble.com. > > I have found the problem. In the mapserver archive there was a message "http://www.nabble.com/Re%3A+queryByAttributes+PostGIS+Problem-t1350724.html#a3614291" of Paul Moen: > It seems that 4.8.2 does not include a fix for bug 1629. I downloaded and applied the patch and > my query works as it did in 4.6.2. > > The patch is available by going to http://mapserver.gis.umn.edu/bugs/index.cgi and entering > 1629 for the bug number. > > I downloaded the patch, named it mapostgis.patch and saved it in my mapserver-4.8.2 source > directory. > > To apply the patch, in the mapserver-4.8.2 source directory, I typed in terminal, > patch mappostgis.c mappostgis.patch > > I then recompiled mapserver and queryByAttributes works as it did in 4.6.2. > > Hopefully someone will find this useful. > > Paul Moe > I have done some further testing and I have discover that the problem was fixed on version 4.8.3. The version that I used was a bugged one (version 4.8.1). Thank you for your help. Francesco From Chip.Hankley at RMTINC.COM Thu Jun 1 11:21:25 2006 From: Chip.Hankley at RMTINC.COM (Chip Hankley) Date: Thu, 1 Jun 2006 13:21:25 -0500 Subject: dBox / dLegend Message-ID: I'm using dBox-0.9a1. Is there documentation for how the METADATA elements in the WEB section of the map file control the legend? I'm just trying to get a better understanding of what the options are, how it works, etc. Great interface, btw! Thanks! Outgoing messages, along with any attachments, are scanned for viruses prior to sending. ------------------------------------------------------------------------------ NOTICE--This email may contain confidential and privileged information for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and delete all copies. From Chip.Hankley at RMTINC.COM Thu Jun 1 11:21:41 2006 From: Chip.Hankley at RMTINC.COM (Chip Hankley) Date: Thu, 1 Jun 2006 13:21:41 -0500 Subject: Mapfile / Layer / Group / Name confusion Message-ID: I'm confused about how NAME and GROUP work when defining layers in a mapfile. In the snippet below, I have two images. One has been resampled for low resolution viewing, and one for high. I'm using MINSCALE and MAXSCALE to control when one draws... at any scale, only ONE image will draw. I want this to be transparent to the user, and I only want ONE entry to show up in the legend. However, two entries show up (I'm using dBox... so that could be part of the problem). What am I missing? WEB IMAGEPATH "C:\Inetpub\wwwroot\tmp\" IMAGEURL "/tmp/" MINSCALE 10 MAXSCALE 2800000 METADATA # dLegend XML legend control dlegend_metagroups "background" dlegend_background_name "Background Layers:" dlegend_background_layers_and_groups "Aerial" dlegend_background_element "radio" dlegend_Aerial_name "Aerial Photograph" END END # Web Interface Options LAYER NAME "Aerial_HR" GROUP "Aerial" TYPE RASTER TILEINDEX "HR_index" STATUS DEFAULT CLASS NAME 'Digital Orthophoto' KEYIMAGE graphics/doq_keyimage.png END MAXSCALE 10000 PROCESSING "COLOR_MATCH_THRESHOLD=3" END LAYER NAME "Aerial_LR" GROUP "Aerial" TYPE RASTER TILEINDEX "LR_index" STATUS DEFAULT CLASS NAME 'Digital Orthophoto' KEYIMAGE graphics/doq_keyimage.png END MINSCALE 10000 PROCESSING "COLOR_MATCH_THRESHOLD=3" END Outgoing messages, along with any attachments, are scanned for viruses prior to sending. ------------------------------------------------------------------------------ NOTICE--This email may contain confidential and privileged information for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and delete all copies. From warmerdam at POBOX.COM Thu Jun 1 12:54:58 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 1 Jun 2006 15:54:58 -0400 Subject: Error in displaying raster in tileindex shape In-Reply-To: Message-ID: Gambin Dejan wrote: > Hi, > > I have created tileindex shapefile with my rasters using gdaltindex. > When trying to show the raster layer I get the following errors in my > php error log: > > [01-Jun-2006 16:11:12] PHP Warning: [MapServer Error]: msDrawMap(): > Failed to draw layer named 'katastar_index'. > in /var/www/pmapper1/incphp/map.php on line 311 > [01-Jun-2006 16:11:12] PHP Warning: [MapServer Error]: > msRASTERLayerOpen(): Attempt to open a RASTER layer, but this is only > supported after a raster query. Dejan, What version of MapServer are you using? I think we used to run into this in some circumstances with MapServer 4.6 but it should be fixed in 4.8. I can't remember exactly what causes it to happen though. If you are using 4.8, please provide me a complete but minimal test case to reproduce the problem via bugzilla. 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 bpederse at NATURE.BERKELEY.EDU Thu Jun 1 13:22:54 2006 From: bpederse at NATURE.BERKELEY.EDU (Brent Pedersen) Date: Thu, 1 Jun 2006 13:22:54 -0700 Subject: point query for multiple layers In-Reply-To: <5383fa5e0606011010g67b24c42scbd9c6b05745c1e9@mail.gmail.com> Message-ID: thanks for the reply, it seems that NQUERY is for returning multiple results for example from a search area (as opposed to a single point). using NQUERY, i get multiple results, but only for the last layer drawn. i want the results of a single point query on multiple layers. am i missing something obvious? -brent On Jun 1, 2006, at 10:10 AM, Matthew Perry wrote: > Brent, > > mode=nquery should do the trick. This will return all the matching > features as defined by their layer templates. In addition you can set > a WEB->HEADER and FOOTER that will be printed before and after all the > layer templates. > > matt > > On 6/1/06, Brent Pedersen wrote: >> >> hi, >> using the mapserver CGI is it possible to do a point query on >> multiple >> layers? im not familiar with templates, but >> i'm using mode=query and sending in the list of visible layers but >> TEMPLATE >> substitution only occurs for the last visible layer. >> i have 3 layers and i'd like each of them to be queried. >> do i need to do this with some code by querying each layer >> independently? >> thanks for any leads. layer defs below. >> -brent >> >> LAYER >> NAME 'FRAP' >> TYPE RASTER >> TEMPLATE 'FRAP_query.html' >> OFFSITE 255 0 0 >> DATA '/opt/web/fire/geoFRAP/firethreat.tif' >> STATUS OFF >> CLASS >> NAME 'NA' >> EXPRESSION ([pixel] = -1) >> COLOR 205 204 153 >> END >> . >> . >> . >> END >> >> LAYER >> NAME 'WUI' >> TYPE POLYGON >> TEMPLATE 'WUI_query.html' >> OFFSITE 255 0 0 >> DATA '/home/bpederse/firedata/CA_WUI' >> STATUS OFF >> CLASS >> NAME 'Lowest' >> EXPRESSION ([Cal_WUI] > 0) >> OUTLINECOLOR 55 204 53 >> END >> >> END >> >> LAYER >> NAME 'CODES' >> TYPE POLYGON >> TEMPLATE 'CODES_query.html' >> OFFSITE 255 0 0 >> DATA '/home/bpederse/firedata/building_code' >> STATUS OFF >> CLASS >> NAME 'Lowest' >> EXPRESSION ([Building_c] > 0) >> OUTLINECOLOR 255 0 0 >> END >> >> >> > > > -- > Matt Perry > perrygeo at gmail.com > http://www.perrygeo.net From siki at AGT.BME.HU Thu Jun 1 16:38:56 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Thu, 1 Jun 2006 22:38:56 -0100 Subject: point query for multiple layers {Scanned} In-Reply-To: <94687F39-D437-49AE-B077-807EDE41E23D@nature.berkeley.edu> Message-ID: Hi, Do you have template for all layers you want query? Zoltan On Thu, 1 Jun 2006, Brent Pedersen wrote: > thanks for the reply, > it seems that NQUERY is for returning multiple results for example > from a search area (as opposed to a single point). > using NQUERY, i get multiple results, but only for the last layer drawn. > i want the results of a single point query on multiple layers. > am i missing something obvious? > > -brent > > > On Jun 1, 2006, at 10:10 AM, Matthew Perry wrote: > > > Brent, > > > > mode=nquery should do the trick. This will return all the matching > > features as defined by their layer templates. In addition you can set > > a WEB->HEADER and FOOTER that will be printed before and after all the > > layer templates. > > > > matt > > > > On 6/1/06, Brent Pedersen wrote: > >> > >> hi, > >> using the mapserver CGI is it possible to do a point query on > >> multiple > >> layers? im not familiar with templates, but > >> i'm using mode=query and sending in the list of visible layers but > >> TEMPLATE > >> substitution only occurs for the last visible layer. > >> i have 3 layers and i'd like each of them to be queried. > >> do i need to do this with some code by querying each layer > >> independently? > >> thanks for any leads. layer defs below. > >> -brent > >> > >> LAYER > >> NAME 'FRAP' > >> TYPE RASTER > >> TEMPLATE 'FRAP_query.html' > >> OFFSITE 255 0 0 > >> DATA '/opt/web/fire/geoFRAP/firethreat.tif' > >> STATUS OFF > >> CLASS > >> NAME 'NA' > >> EXPRESSION ([pixel] = -1) > >> COLOR 205 204 153 > >> END > >> . > >> . > >> . > >> END > >> > >> LAYER > >> NAME 'WUI' > >> TYPE POLYGON > >> TEMPLATE 'WUI_query.html' > >> OFFSITE 255 0 0 > >> DATA '/home/bpederse/firedata/CA_WUI' > >> STATUS OFF > >> CLASS > >> NAME 'Lowest' > >> EXPRESSION ([Cal_WUI] > 0) > >> OUTLINECOLOR 55 204 53 > >> END > >> > >> END > >> > >> LAYER > >> NAME 'CODES' > >> TYPE POLYGON > >> TEMPLATE 'CODES_query.html' > >> OFFSITE 255 0 0 > >> DATA '/home/bpederse/firedata/building_code' > >> STATUS OFF > >> CLASS > >> NAME 'Lowest' > >> EXPRESSION ([Building_c] > 0) > >> OUTLINECOLOR 255 0 0 > >> END > >> > >> > >> > > > > > > -- > > Matt Perry > > perrygeo at gmail.com > > http://www.perrygeo.net > From bpederse at NATURE.BERKELEY.EDU Thu Jun 1 13:47:44 2006 From: bpederse at NATURE.BERKELEY.EDU (Brent Pedersen) Date: Thu, 1 Jun 2006 13:47:44 -0700 Subject: point query for multiple layers {Scanned} In-Reply-To: Message-ID: yes, see the layer defs below in my original mail. i've tried both with a different template for each layer and the same template for all 3 layers. neither works. my query string looks like: ?mode=query&map=...&layers=FRAP+WUI&imgext=....&imgxy=...&imgsize=520 +600 i know the imgext and imgxy are correct because it does return the correct value for the layer that is does query, but just nothing happens for the other layers. i also did try this with mode=nquery. On Jun 1, 2006, at 4:38 PM, Siki Zoltan wrote: > Hi, > > Do you have template for all layers you want query? > > Zoltan > > > On Thu, 1 Jun 2006, Brent Pedersen wrote: > >> thanks for the reply, >> it seems that NQUERY is for returning multiple results for example >> from a search area (as opposed to a single point). >> using NQUERY, i get multiple results, but only for the last layer >> drawn. >> i want the results of a single point query on multiple layers. >> am i missing something obvious? >> >> -brent >> >> >> On Jun 1, 2006, at 10:10 AM, Matthew Perry wrote: >> >>> Brent, >>> >>> mode=nquery should do the trick. This will return all the matching >>> features as defined by their layer templates. In addition you can >>> set >>> a WEB->HEADER and FOOTER that will be printed before and after >>> all the >>> layer templates. >>> >>> matt >>> >>> On 6/1/06, Brent Pedersen wrote: >>>> >>>> hi, >>>> using the mapserver CGI is it possible to do a point query on >>>> multiple >>>> layers? im not familiar with templates, but >>>> i'm using mode=query and sending in the list of visible layers but >>>> TEMPLATE >>>> substitution only occurs for the last visible layer. >>>> i have 3 layers and i'd like each of them to be queried. >>>> do i need to do this with some code by querying each layer >>>> independently? >>>> thanks for any leads. layer defs below. >>>> -brent >>>> >>>> LAYER >>>> NAME 'FRAP' >>>> TYPE RASTER >>>> TEMPLATE 'FRAP_query.html' >>>> OFFSITE 255 0 0 >>>> DATA '/opt/web/fire/geoFRAP/firethreat.tif' >>>> STATUS OFF >>>> CLASS >>>> NAME 'NA' >>>> EXPRESSION ([pixel] = -1) >>>> COLOR 205 204 153 >>>> END >>>> . >>>> . >>>> . >>>> END >>>> >>>> LAYER >>>> NAME 'WUI' >>>> TYPE POLYGON >>>> TEMPLATE 'WUI_query.html' >>>> OFFSITE 255 0 0 >>>> DATA '/home/bpederse/firedata/CA_WUI' >>>> STATUS OFF >>>> CLASS >>>> NAME 'Lowest' >>>> EXPRESSION ([Cal_WUI] > 0) >>>> OUTLINECOLOR 55 204 53 >>>> END >>>> >>>> END >>>> >>>> LAYER >>>> NAME 'CODES' >>>> TYPE POLYGON >>>> TEMPLATE 'CODES_query.html' >>>> OFFSITE 255 0 0 >>>> DATA '/home/bpederse/firedata/building_code' >>>> STATUS OFF >>>> CLASS >>>> NAME 'Lowest' >>>> EXPRESSION ([Building_c] > 0) >>>> OUTLINECOLOR 255 0 0 >>>> END >>>> >>>> >>>> >>> >>> >>> -- >>> Matt Perry >>> perrygeo at gmail.com >>> http://www.perrygeo.net >> From bpederse at NATURE.BERKELEY.EDU Thu Jun 1 13:53:53 2006 From: bpederse at NATURE.BERKELEY.EDU (Brent Pedersen) Date: Thu, 1 Jun 2006 13:53:53 -0700 Subject: point query for multiple layers {Scanned} In-Reply-To: Message-ID: figured it out. at some point, i put the substitution values for all 3 layers in all 3 query templates. once i put only the [vars] for a particular layer in its query template everything works as expected. thanks for the help. -brent On Jun 1, 2006, at 4:38 PM, Siki Zoltan wrote: > Hi, > > Do you have template for all layers you want query? > > Zoltan > > > On Thu, 1 Jun 2006, Brent Pedersen wrote: > >> thanks for the reply, >> it seems that NQUERY is for returning multiple results for example >> from a search area (as opposed to a single point). >> using NQUERY, i get multiple results, but only for the last layer >> drawn. >> i want the results of a single point query on multiple layers. >> am i missing something obvious? >> >> -brent >> >> >> On Jun 1, 2006, at 10:10 AM, Matthew Perry wrote: >> >>> Brent, >>> >>> mode=nquery should do the trick. This will return all the matching >>> features as defined by their layer templates. In addition you can >>> set >>> a WEB->HEADER and FOOTER that will be printed before and after >>> all the >>> layer templates. >>> >>> matt >>> >>> On 6/1/06, Brent Pedersen wrote: >>>> >>>> hi, >>>> using the mapserver CGI is it possible to do a point query on >>>> multiple >>>> layers? im not familiar with templates, but >>>> i'm using mode=query and sending in the list of visible layers but >>>> TEMPLATE >>>> substitution only occurs for the last visible layer. >>>> i have 3 layers and i'd like each of them to be queried. >>>> do i need to do this with some code by querying each layer >>>> independently? >>>> thanks for any leads. layer defs below. >>>> -brent >>>> >>>> LAYER >>>> NAME 'FRAP' >>>> TYPE RASTER >>>> TEMPLATE 'FRAP_query.html' >>>> OFFSITE 255 0 0 >>>> DATA '/opt/web/fire/geoFRAP/firethreat.tif' >>>> STATUS OFF >>>> CLASS >>>> NAME 'NA' >>>> EXPRESSION ([pixel] = -1) >>>> COLOR 205 204 153 >>>> END >>>> . >>>> . >>>> . >>>> END >>>> >>>> LAYER >>>> NAME 'WUI' >>>> TYPE POLYGON >>>> TEMPLATE 'WUI_query.html' >>>> OFFSITE 255 0 0 >>>> DATA '/home/bpederse/firedata/CA_WUI' >>>> STATUS OFF >>>> CLASS >>>> NAME 'Lowest' >>>> EXPRESSION ([Cal_WUI] > 0) >>>> OUTLINECOLOR 55 204 53 >>>> END >>>> >>>> END >>>> >>>> LAYER >>>> NAME 'CODES' >>>> TYPE POLYGON >>>> TEMPLATE 'CODES_query.html' >>>> OFFSITE 255 0 0 >>>> DATA '/home/bpederse/firedata/building_code' >>>> STATUS OFF >>>> CLASS >>>> NAME 'Lowest' >>>> EXPRESSION ([Building_c] > 0) >>>> OUTLINECOLOR 255 0 0 >>>> END >>>> >>>> >>>> >>> >>> >>> -- >>> Matt Perry >>> perrygeo at gmail.com >>> http://www.perrygeo.net >> From jcleary at EMAIL.UNC.EDU Thu Jun 1 14:15:34 2006 From: jcleary at EMAIL.UNC.EDU (Jesse Cleary) Date: Thu, 1 Jun 2006 17:15:34 -0400 Subject: OGR DODS multiple attribute layer Message-ID: Hi folks Apologies for cross-posting. I'm using OGR to connect through a DODS server to a netCDF file and map the results in MapServer - very slick and working well for single attributes. However, I'd also like to get multiple attributes at once from the same DODS dataset - like wind_direction (for LABELANGLEITEM) /and/ wind_speed (for CLASSITEM) and can't figure out the syntax to make that work. The DODS URL call seems to work with additional variables in the CE, but the DATA parameter does not. New to this OGR/DODS method so any advice is greatly appreciated... Thanks! Jesse Cleary MapServer 4.8.1 GDAL 1.3.2 This single attribute mapfile snip works well... <-- LAYER NAME "JPOP_test" TYPE POINT CONNECTIONTYPE OGR CONNECTION 'DODS:http://nemo.isis.unc.edu/cgi-bin/nph-dods/data/nc-coos/test_data/JPIER/nccoos-JPOP-met-latest.nc?air_pressure[0][0][0]' DATA "air_pressure" STATUS OFF CLASSITEM 'air_pressure' LABELITEM 'air_pressure' ... --> But I'd like to move to something like this. Not working though - "msOGRFileOpen(): OGR error. GetLayer(wind_from_direction, air_pressure) failed for OGR connection" although the DODS URL in a browser (minor changes) does return the data I want. I've tried a few DATA permutations - I think this is crux of the problem if its possible at all. <-- LAYER NAME "JPOP_test" TYPE POINT CONNECTIONTYPE OGR CONNECTION 'DODS:http://nemo.isis.unc.edu/cgi-bin/nph-dods/data/nc-coos/test_data/JPIER/nccoos-JPOP-met-latest.nc?wind_speed[0][0][0],wind_from_direction[0][0][0]' DATA "wind_speed, wind_from_direction" STATUS OFF CLASSITEM wind_speed' LABELANGLEITEM 'wind_from_direction' ... --> -- Jesse Cleary Department of Marine Sciences UNC Chapel Hill 17-6 Venable Hall jcleary at email.unc.edu (919) 962-4323 From jsievers at CO.LINN.OR.US Thu Jun 1 16:45:14 2006 From: jsievers at CO.LINN.OR.US (Sievers, Jason) Date: Thu, 1 Jun 2006 16:45:14 -0700 Subject: Template problems Message-ID: Hello all. I have a MapServer HTML Template and am performing template substitutions. I would like reference values using JavaScript variables containing the template substitution. For example, simply getting the MapServer version number is easy via "[ROADS]", where 'ROADS' is the name of a field in a dBase file. But I want to get the value as a variable like myVariable0 = "ROADS"; myVariable1 = '"[' + myVariable0 + ']"'; Any thoughts are welcome. Thanks, Jason Sievers -------------- next part -------------- An HTML attachment was scrubbed... URL: From Dejan.Gambin at PULA.HR Thu Jun 1 23:08:08 2006 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Fri, 2 Jun 2006 08:08:08 +0200 Subject: Error in displaying raster in tileindex shape Message-ID: I am using 4.6 version so I'll try today with 4.8 and get back to you thanks dejan > -----Original Message----- > From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] On Behalf > Of Frank Warmerdam > Sent: Thursday, June 01, 2006 9:55 PM > To: Gambin Dejan > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Error in displaying raster > in tileindex shape > > > Gambin Dejan wrote: > > Hi, > > > > I have created tileindex shapefile with my rasters using > gdaltindex. > > When trying to show the raster layer I get the following > errors in my > > php error log: > > > > [01-Jun-2006 16:11:12] PHP Warning: [MapServer Error]: > msDrawMap(): > > Failed to draw layer named 'katastar_index'. in > > /var/www/pmapper1/incphp/map.php on line 311 [01-Jun-2006 16:11:12] > > PHP Warning: [MapServer Error]: > > msRASTERLayerOpen(): Attempt to open a RASTER layer, but > this is only > > supported after a raster query. > > Dejan, > > What version of MapServer are you using? I think we used to > run into this in some circumstances with MapServer 4.6 but it > should be fixed in 4.8. I can't remember exactly what causes > it to happen though. > > If you are using 4.8, please provide me a complete but > minimal test case to reproduce the problem via bugzilla. > > 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 Dejan.Gambin at PULA.HR Thu Jun 1 23:49:54 2006 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Fri, 2 Jun 2006 08:49:54 +0200 Subject: Error in displaying raster in tileindex shape Message-ID: Unfortunatelly I get the same error with mapserver 4.8.3. I'll explain all I have done before I go to bugzilla because maybe I am doing something wrong, since I have another "raster set" using tileindex that works... So, I have a hundred of tif files (170MB each). All of them were jpegs before. So I have translated them to tif using "gdal_translate -co TILED=YES" and then using "gdaladdo tif_file 2 4 8 16 32" on each. After that I have run gdaltindex katastar_index.shp path_to_tifs/*.tif. I got the message "unable to open..:" but index shapefile was created correctly. That is all. When trying to show the layer, I get this in php error log: [02-Jun-2006 08:52:48] PHP Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'katastar_index'. in /var/www/pmapper1/incphp/map.php on line 311 [02-Jun-2006 08:52:48] PHP Warning: [MapServer Error]: msRASTERLayerOpen(): Attempt to open a RASTER layer, but this is only supported after a raster query. in /var/www/pmapper1/incphp/map.php on line 311 [02-Jun-2006 08:52:48] PHP Fatal error: Call to a member function on a non-object in /var/www/pmapper1/incphp/map.php on line 332 By the way, the line 311 is :$mapImg = $this->map->draw(); the line 332 is: $this->mapURL = $mapImg->saveWebImage(); regards, dejan > -----Original Message----- > From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] On Behalf > Of Frank Warmerdam > Sent: Thursday, June 01, 2006 9:55 PM > To: Gambin Dejan > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Error in displaying raster > in tileindex shape > > > Gambin Dejan wrote: > > Hi, > > > > I have created tileindex shapefile with my rasters using > gdaltindex. > > When trying to show the raster layer I get the following > errors in my > > php error log: > > > > [01-Jun-2006 16:11:12] PHP Warning: [MapServer Error]: > msDrawMap(): > > Failed to draw layer named 'katastar_index'. in > > /var/www/pmapper1/incphp/map.php on line 311 [01-Jun-2006 16:11:12] > > PHP Warning: [MapServer Error]: > > msRASTERLayerOpen(): Attempt to open a RASTER layer, but > this is only > > supported after a raster query. > > Dejan, > > What version of MapServer are you using? I think we used to > run into this in some circumstances with MapServer 4.6 but it > should be fixed in 4.8. I can't remember exactly what causes > it to happen though. > > If you are using 4.8, please provide me a complete but > minimal test case to reproduce the problem via bugzilla. > > 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 Dejan.Gambin at PULA.HR Fri Jun 2 00:04:20 2006 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Fri, 2 Jun 2006 09:04:20 +0200 Subject: Error in displaying raster in tileindex shape SOLVED Message-ID: Hi, I solved the problem, maybe it can help someone to shortly explain: The problem was that my raster layer with tileindex shapefile had the same name as the name of the tileindex shapefile. So I had something like: LAYER # katastar NAME "katastar_index" STATUS OFF TYPE RASTER TILEINDEX "katastar_index" TILEITEM "LOCATION" END After changing NAME to something else everything was OK. Thanks to everyone dejan > -----Original Message----- > From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] On Behalf > Of Frank Warmerdam > Sent: Thursday, June 01, 2006 9:55 PM > To: Gambin Dejan > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Error in displaying raster > in tileindex shape > > > Gambin Dejan wrote: > > Hi, > > > > I have created tileindex shapefile with my rasters using > gdaltindex. > > When trying to show the raster layer I get the following > errors in my > > php error log: > > > > [01-Jun-2006 16:11:12] PHP Warning: [MapServer Error]: > msDrawMap(): > > Failed to draw layer named 'katastar_index'. in > > /var/www/pmapper1/incphp/map.php on line 311 [01-Jun-2006 16:11:12] > > PHP Warning: [MapServer Error]: > > msRASTERLayerOpen(): Attempt to open a RASTER layer, but > this is only > > supported after a raster query. > > Dejan, > > What version of MapServer are you using? I think we used to > run into this in some circumstances with MapServer 4.6 but it > should be fixed in 4.8. I can't remember exactly what causes > it to happen though. > > If you are using 4.8, please provide me a complete but > minimal test case to reproduce the problem via bugzilla. > > 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 tom at MAPLINK.JP Fri Jun 2 00:26:07 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Fri, 2 Jun 2006 16:26:07 +0900 Subject: Query Question Message-ID: Hi, I'm trying to query a layer via mapscript but I can't get a count above 0 for numitems on the layer object or numvalues off the feature object. Is there a mapfile configuration or mapscript method i'm missing? Thank you, Tom mapscript code : ------------------------------------- my $map = new mapscript::mapObj($mfpath); my $lobj = $map->getLayerByName($lyr); my $ret = $lobj->queryByRect($map,$robj); my $numRec = $lobj->getNumResults(); my $results = $lobj->getResults(); for($i=0;$i<$numRec;$i++){ $result = $results->getResult($i); $feature = $lobj->getFeature( $result->{shapeindex} , $result->{tileindex} ); # #$att1 = $feature->getValue( 1 ); # #$att2 = $feature->getValue( 2 ); print $lobj->{numitems} . " " . $result->{shapeindex} . " " . $result->{tileindex} . " " .$feature->{numvalues} ."
"; output: ---------------------------------------------------- 0 4443 -1 0 0 4446 -1 0 0 4452 -1 0 0 4455 -1 0 0 4471 -1 0 0 4472 -1 0 0 4477 -1 0 0 4479 -1 0 0 4483 -1 0 MAPFILE -------------------------------------- LAYER NAME m_stores TEMPLATE "http://192.168.10.33/php/qtemp.html" TYPE QUERY DATA bgshp/m_store_4612 END -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Fri Jun 2 02:09:42 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 2 Jun 2006 11:09:42 +0200 Subject: Query Question In-Reply-To: <002a01c68615$d08a7d50$ac0aa8c0@testxp8b8211e7> Message-ID: You may have to open the layer before reading the items. Best Regards, Tamas 2006/6/2, Thomas Hammerlund : > > > > Hi, I'm trying to query a layer via mapscript but I can't get a count above > 0 for numitems on the layer object or numvalues off the feature object. Is > there a mapfile configuration or mapscript method i'm missing? > > Thank you, > Tom > > > > mapscript code : ------------------------------------- > > my $map = new mapscript::mapObj($mfpath); > my $lobj = $map->getLayerByName($lyr); > my $ret = $lobj->queryByRect($map,$robj); > my $numRec = $lobj->getNumResults(); > my $results = $lobj->getResults(); > > > for($i=0;$i<$numRec;$i++){ > $result = $results->getResult($i); > $feature = $lobj->getFeature( $result->{shapeindex} , $result->{tileindex} > ); > # #$att1 = $feature->getValue( 1 ); > # #$att2 = $feature->getValue( 2 ); > print $lobj->{numitems} . " " . $result->{shapeindex} . " " . > $result->{tileindex} . " " .$feature->{numvalues} ."
"; > > > output: > ---------------------------------------------------- > > 0 4443 -1 0 > 0 4446 -1 0 > 0 4452 -1 0 > 0 4455 -1 0 > 0 4471 -1 0 > 0 4472 -1 0 > 0 4477 -1 0 > 0 4479 -1 0 > 0 4483 -1 0 > > > MAPFILE -------------------------------------- > > LAYER > NAME m_stores > TEMPLATE "http://192.168.10.33/php/qtemp.html" > TYPE QUERY > DATA bgshp/m_store_4612 > END From tom at MAPLINK.JP Fri Jun 2 04:06:23 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Fri, 2 Jun 2006 20:06:23 +0900 Subject: Query Question Message-ID: Thank you for your help. Tom ----- Original Message ----- From: "Tamas Szekeres" To: "Thomas Hammerlund" Cc: Sent: Friday, June 02, 2006 6:09 PM Subject: Re: [UMN_MAPSERVER-USERS] Query Question > You may have to open the layer before reading the items. > > Best Regards, > > Tamas > > 2006/6/2, Thomas Hammerlund : >> >> >> >> Hi, I'm trying to query a layer via mapscript but I can't get a count >> above >> 0 for numitems on the layer object or numvalues off the feature object. >> Is >> there a mapfile configuration or mapscript method i'm missing? >> >> Thank you, >> Tom >> >> >> >> mapscript code : ------------------------------------- >> >> my $map = new mapscript::mapObj($mfpath); >> my $lobj = $map->getLayerByName($lyr); >> my $ret = $lobj->queryByRect($map,$robj); >> my $numRec = $lobj->getNumResults(); >> my $results = $lobj->getResults(); >> >> >> for($i=0;$i<$numRec;$i++){ >> $result = $results->getResult($i); >> $feature = $lobj->getFeature( $result->{shapeindex} , >> $result->{tileindex} >> ); >> # #$att1 = $feature->getValue( 1 ); >> # #$att2 = $feature->getValue( 2 ); >> print $lobj->{numitems} . " " . $result->{shapeindex} . " " . >> $result->{tileindex} . " " .$feature->{numvalues} ."
"; >> >> >> output: >> ---------------------------------------------------- >> >> 0 4443 -1 0 >> 0 4446 -1 0 >> 0 4452 -1 0 >> 0 4455 -1 0 >> 0 4471 -1 0 >> 0 4472 -1 0 >> 0 4477 -1 0 >> 0 4479 -1 0 >> 0 4483 -1 0 >> >> >> MAPFILE -------------------------------------- >> >> LAYER >> NAME m_stores >> TEMPLATE "http://192.168.10.33/php/qtemp.html" >> TYPE QUERY >> DATA bgshp/m_store_4612 >> END > From marcoscobena at GMAIL.COM Fri Jun 2 05:02:27 2006 From: marcoscobena at GMAIL.COM (=?UTF-8?Q?Marcos_Cobe=C3=B1a?=) Date: Fri, 2 Jun 2006 14:02:27 +0200 Subject: Not using MapServer, but it's worth to take a look: http://science.nasa.gov/Realtime/JTrack/3d/JTrack3D.html. :-) EOM Message-ID: -- Marcos - http://www.youcannoteatbits.org From zhonghaiw at GMAIL.COM Fri Jun 2 05:51:37 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Fri, 2 Jun 2006 14:51:37 +0200 Subject: PHP/MapScript or CSharp/MapScript? Message-ID: Hi guys, after developing a MapServer Demo application based on CGI mode, I realized that MapServer may be the best option for open source WebGIS development. Now I am trying to improve my demo with mapscript, since mapscript provides more powerful things for web GIS application. I noticed that there are different mapscript packages available for MapServer, such as PHP/MapScript and CSharp/MapSscript. Theorically CSharp MapScript may be the best option for me, because I am good at .NET thing, but I am not sure if the CSharp MapScript package is stable enough. I've searched a lot in Internet, and also in the MapServer user list achieves, it seems that most people are using PHP MapScript package for their web mapping application, does this mean that the PHP MapScript package is more stable than any other MapScript packages? I'd like your suggestions for my next step. PHP/MapScript or CSharp MapScript? thanks in advance. zhonghai 02.06.2006 -------------- next part -------------- An HTML attachment was scrubbed... URL: From robert-fritz at WEB.DE Fri Jun 2 06:19:11 2006 From: robert-fritz at WEB.DE (robert fritz) Date: Fri, 2 Jun 2006 15:19:11 +0200 Subject: ogr 1.3.2 -> mysql Message-ID: Hello, I have just installed the latest MS4W package, built with GDAL/OGR 1.3.2. Now I'm trying to connect to MySQL using OGR but I get an error message: ------>>>> [02-Jun-2006 15:01:08] PHP Warning: [MapServer Error]: msOGRFileOpen(): Open failed for OGR connection `MYSQL:lurchingen'. MySQL connect failed for: lurchingen Access denied for user 'ODBC'@'localhost' [mailto:'ODBC'@'localhost'] (using password: NO) ------<<<< My map-file configuration : ------>>>> LAYER NAME "fs_mysql" TYPE Polygon STATUS ON connectiontype ogr connection "MYSQL:lurchingen,user=root,password=lala,host=localhost,port=3306" CLASS COLOR 23 1 226 OUTLINECOLOR 0 0 0 END TEMPLATE "x" END ------<<<< I have checked the connection and the table using ogrinfo, included by the ms4w package, and everything works fine there. What is wrong with my mapfile configuration? Robert Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: *http://f.web.de/?mc=021193* [http://f.web.de/?mc=021193] -------------- next part -------------- An HTML attachment was scrubbed... URL: From christian.graefe at WEB.DE Fri Jun 2 06:25:28 2006 From: christian.graefe at WEB.DE (Christian Graefe) Date: Fri, 2 Jun 2006 15:25:28 +0200 Subject: PHP/MapScript or CSharp/MapScript? Message-ID: Hi Zhonghai Wang, If your are interested in a FOSS C# mapping solution, you may have a look at SharpMap( http://sharpmap.iter.dk ). SharpMap is developed by Morten in pure C# and is quite stable. Available data sources: - Shapefile - PostGis - Oracle - MsSql Server - OleDb datasources for point informations - Ecw Raster - Wms it also supports labeling and on-the-fly transformation between projected and geographic coordinates. Give it a try! BR Christian > -----Urspr?ngliche Nachricht----- > Von: Zhonghai Wang > Gesendet: 02.06.06 14:52:39 > An: MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: [UMN_MAPSERVER-USERS] PHP/MapScript or CSharp/MapScript? > Hi guys, > > > > after developing a MapServer Demo application based on CGI mode, I realized that MapServer may be the best option for open source WebGIS development. Now I am trying to improve my demo with mapscript, since mapscript provides more powerful things for web GIS application. I noticed that there are different mapscript packages available for MapServer, such as PHP/MapScript and CSharp/MapSscript. Theorically CSharp MapScript may be the best option for me, because I am good at .NET thing, but I am not sure if the CSharp MapScript package is stable enough. I've searched a lot in Internet, and also in the MapServer user list achieves, it seems that most people are using PHP MapScript package for their web mapping application, does this mean that the PHP MapScript package is more stable than any other MapScript packages? > > > > I'd like your suggestions for my next step. PHP/MapScript or CSharp MapScript? > > > > thanks in advance. > > > > > > zhonghai > > > > 02.06.2006 > -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 1791 bytes Desc: S/MIME Cryptographic Signature URL: From szekerest at GMAIL.COM Fri Jun 2 07:04:09 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 2 Jun 2006 16:04:09 +0200 Subject: PHP/MapScript or CSharp/MapScript? In-Reply-To: <2534c4120606020551i61c68fe3m398ba5b07fc7845b@mail.gmail.com> Message-ID: Hi Zhonghai, First of all PHP mapscript and C# mapscript (as part of the SWIG line) are standing for a completely different implementation, however the functionality is almost the same. If you want to utilize and enhance the extensive functionality of mapserver you might want to use the C# mapscript as you can use the other language bindings as well. The C# mapscript interface is known stable, and uses the .NET platform invoke mechanism for the communication between the C and the C# parts (mapscript.dll and mapscript_csharp.dll on windows for example). You can use the object model of the C# interface (contained in the mapscript_csharp.dll assembly) to achieve the required functionality for your .NET application. When using the mapscript C# API you have to take care of the threading model of the host process invoking the API. You have to compile mapserver with thread support and avoid using the thread unsafe libraries. For more details: http://mapserver.gis.umn.edu/docs/faq/thread_safety Passing mapscript object between multiple threads is also unsupported. The interface is tested mostly under MS .NET framework 1.1 and MONO. Using with .NET FW 2.0 you must compile the code with Visual Studio 2005. For the C# specific compilation issues visit: http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile So the C# interface is sufficient mostly with those applications the threading model is controlled by the programmer. For example for writing desktop applications is ideal. For WEB applications you might want to use the MONO ASP.NET implementation. The threading model of IIS is more sophisticated, so creating C# mapscript WEB applications for IIS is not impossible but requires much care. Best Regards, Tamas Szekeres 2006/6/2, Zhonghai Wang : > Hi guys, > > after developing a MapServer Demo application based on CGI mode, I realized > that MapServer may be the best option for open source WebGIS development. > Now I am trying to improve my demo with mapscript, since mapscript provides > more powerful things for web GIS application. I noticed that there are > different mapscript packages available for MapServer, such as PHP/MapScript > and CSharp/MapSscript. Theorically CSharp MapScript may be the best option > for me, because I am good at .NET thing, but I am not sure if the CSharp > MapScript package is stable enough. I've searched a lot in Internet, and > also in the MapServer user list achieves, it seems that most people are > using PHP MapScript package for their web mapping application, does this > mean that the PHP MapScript package is more stable than any other MapScript > packages? > > I'd like your suggestions for my next step. PHP/MapScript or CSharp > MapScript? > > thanks in advance. > > > zhonghai > > 02.06.2006 From warmerdam at POBOX.COM Fri Jun 2 07:18:55 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 2 Jun 2006 10:18:55 -0400 Subject: ogr 1.3.2 -> mysql In-Reply-To: <339260368@web.de> Message-ID: robert fritz wrote: > Hello, > > I have just installed the latest MS4W package, built with GDAL/OGR > 1.3.2. Now I'm trying to connect to MySQL using OGR but I get an error > message: > ------>>>> > [02-Jun-2006 15:01:08] PHP Warning: [MapServer Error]: msOGRFileOpen(): > Open failed for OGR connection `MYSQL:lurchingen'. > MySQL connect failed for: lurchingen Robert, You need a DATA statement indicating the table you want to access within this database connection. If you don't have a DATA statement, MapServer will try to extract it from the connection string, breaking on the first comma. But of course you need the commas as part of the connection string. That is why all the user=root stuff is missing in the error message. Best regards, > Access denied for user 'ODBC'@'localhost' > (using password: NO) > ------<<<< > > My map-file configuration : > ------>>>> > LAYER > NAME "fs_mysql" > TYPE Polygon > STATUS ON > connectiontype ogr > connection > "MYSQL:lurchingen,user=root,password=lala,host=localhost,port=3306" > CLASS > COLOR 23 1 226 > &n bsp; OUTLINECOLOR 0 0 0 > END > TEMPLATE "x" > END > ------<<<< > > I have checked the connection and the table using ogrinfo, included by > the ms4w package, and everything works fine there. > > What is wrong with my mapfile configuration? > > Robert > > > > > Verschicken Sie romantische, coole und witzige Bilder per SMS! > Jetzt bei WEB.DE FreeMail: *http://f.web.de/?mc=021193* > -- ---------------------------------------+-------------------------------------- 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 trondmm-mapserver at CRUSADERS.NO Fri Jun 2 07:52:01 2006 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Fri, 2 Jun 2006 16:52:01 +0200 Subject: Using different shapefiles for different zoom levels Message-ID: Hi. What's the preferred way of switching data sources as you zoom in in mapserver? I have three different sets of shapefiles (2M:1, 250k:1 and 50k:1) and I want to show more details as you zoom in. At the moment, I'm using GROUP and MAX/MINSCALE to get mapserver to use the correct data. Something like this: LAYER NAME "roads-2M" GROUP "roads" DATA 2M/roads STATUS on TYPE vector MINSCALE 500000 ... END LAYER NAME "roads-250k" GROUP "roads" DATA 250k/roads STATUS on TYPE vector MAXSCALE 500000 MINSCALE 100000 ... END LAYER NAME "roads-50k" GROUP "roads" DATA 50k/roads STATUS on TYPE vector MAXSCALE 100000 ... END This works as intended, so I'm pretty much happy with the solution. But, all four layers (roads, roads-2M, roads-250k and roads-50k) are displayed in the GetCapabilities- response, and I'd prefer if only "roads" was made available. I also get the feeling that I'm "cheating" here. My impression is that GROUP is intended to create a "bundle" of relevant layers, so if the group is "roads", relevant group members would be "highways" and "local roads". So - is there any other/better way of accomplishing this, or is this it? -- Trond Michelsen From warmerdam at POBOX.COM Fri Jun 2 07:56:33 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 2 Jun 2006 10:56:33 -0400 Subject: OGR DODS multiple attribute layer In-Reply-To: <447F58F6.7090707@email.unc.edu> Message-ID: Jesse Cleary wrote: > But I'd like to move to something like this. Not working though - > "msOGRFileOpen(): OGR error. GetLayer(wind_from_direction, air_pressure) > failed for OGR connection" although the DODS URL in a browser (minor > changes) does return the data I want. I've tried a few DATA > permutations - I think this is crux of the problem if its possible at all. > <-- > LAYER > NAME "JPOP_test" > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION > 'DODS:http://nemo.isis.unc.edu/cgi-bin/nph-dods/data/nc-coos/test_data/JPIER/nccoos-JPOP-met-latest.nc?wind_speed[0][0][0],wind_from_direction[0][0][0]' > > DATA "wind_speed, wind_from_direction" > STATUS OFF > CLASSITEM wind_speed' > LABELANGLEITEM 'wind_from_direction' > ... Jesse, I see that your DODS dataset is using a list of Grid objects. Unfortunately, OGR will treat each grid as a distinct layer. There is no direct way to get a merged layer with attributes for wind_speed, wind_from_direction and so forth. I believe the OGR DODS driver will try to merge simple arrays together but it does not appear to do this for grids. In short, without substantial work on the OGR DODS driver I think you are out of luck. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From elshayal at SMARTWEBONLINE.COM Fri Jun 2 08:26:50 2006 From: elshayal at SMARTWEBONLINE.COM (Mohamed Elshayal) Date: Fri, 2 Jun 2006 11:26:50 -0400 Subject: "Elshayal Smart GIS shape files Editor" Looking for a Serious Evaluation http://www.smartwebonline.com/ Message-ID: Dear Sirs, I have updated my GIS Editor Elshayal Smart http://www.smartwebonline.com/ and finished my new version 1.17, and I will be very happy if you evaluate this new version 1.17 Current Features :- View and Edit shape files, build new layer, add existing layer, remove layers, swap layers, save layer, set layer data source, layer properties, zoom in & zoom out, pan, identify, selecting features, invert selection, show data table, data query builder, location query builder, build network, find shortest path, print map, save map image, copy map image to clipboard, save project map, edit move vertex, edit move features, snap vertexes, set vertex XY, move settings, converting coordinate system, applying VB script, copy selected features to another layer, move selected features to another layer, delete selected features, edit data table, modify table structure, edit map features, drawing new features, GPS, 3D, etc... Expected Features :- Viewing raster image and image georefrencing. Direct Download :- http://www.gismagazine.com/downloads/download.php?id=143 Notes :- if you have got problems with the above url links, kindly copy them as text to your browser url AddressBar. Thank you and best personal regards Awaiting for your reply Mohamed Elshayal http://www.smartwebonline.com/ From David.Fawcett at STATE.MN.US Fri Jun 2 08:19:18 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 2 Jun 2006 10:19:18 -0500 Subject: SDE Compilation Help Message-ID: I want to compile in SDE support. Can anyone give me a list of the names of the SDE client libraries needed? Thanks, David. From hobu at IASTATE.EDU Fri Jun 2 09:03:07 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Fri, 2 Jun 2006 11:03:07 -0500 Subject: SDE Compilation Help In-Reply-To: Message-ID: David, MS4W already has SDE support included if you're using Windows. All you need is the SDE C SDK installed and on your path. There are instructions on what is necessary to swap in the distribution. If on *nix, the Unix Compilation Howto has some information about SDE . Basically, all you need is the SDE C SDK installed somewhere for your platform and you point configure at it. Howard At 10:19 AM 6/2/2006, Fawcett, David wrote: >I want to compile in SDE support. =20 > >Can anyone give me a list of the names of the SDE client libraries >needed? =20 > >Thanks,=20 > >David. From Jukka.Rahkonen at MMMTIKE.FI Fri Jun 2 09:25:15 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Fri, 2 Jun 2006 19:25:15 +0300 Subject: How to make MS4W to support epsg:3067? Message-ID: Hi, Registered epsg code 3067 is referring to ETRS-UTM zone 35N, and is effectively just a synonyme to epsg:25835 with the only difference that it 3067 is defined to be valid for the whole Finnish territory, that is more than 6 degrees wide. Now I wonder how could I make Mapserver from MS4W delivery to understand this code? The newest FWTools do already support epsg:3067. Using 25835 instead is usually OK, but some (over)correct softwares give error messages when the natural 6 degrees wide area is exceeded. Regards, Jukka Rahkonen From David.Fawcett at STATE.MN.US Fri Jun 2 09:21:49 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 2 Jun 2006 11:21:49 -0500 Subject: SDE Compilation Help Message-ID: Thanks for the reply Howard. I am trying to pull together the libraries for our server guy. It is for a Linux compile. Can you just copy specific libraries to the server, or do you have to run the install program and get the CAD client and documentation too? David. -----Original Message----- From: Howard Butler [mailto:hobu at iastate.edu] Sent: Friday, June 02, 2006 11:03 AM To: Fawcett, David; MAPSERVER-USERS at lists.umn.edu Subject: Re: SDE Compilation Help David, MS4W already has SDE support included if you're using Windows. All you need is the SDE C SDK installed and on your path. There are instructions on what is necessary to swap in the distribution. If on *nix, the Unix Compilation Howto has some information about SDE . Basically, all you need is the SDE C SDK installed somewhere for your platform and you point configure at it. Howard At 10:19 AM 6/2/2006, Fawcett, David wrote: >I want to compile in SDE support. =20 > >Can anyone give me a list of the names of the SDE client libraries >needed? =20 > >Thanks,=20 > >David. From hobu at IASTATE.EDU Fri Jun 2 09:44:59 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Fri, 2 Jun 2006 11:44:59 -0500 Subject: SDE Compilation Help In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB068C@s-sp22.pca.state.mn .us> Message-ID: For linux, there is an installer script on the SDK disk. It is fairly straightforward and well documented. It will ask to install the libs somewhere (I typically use /usr/local/sde or something like that). Then you can just follow the Unix compilation document, pointing configure at /usr/local/sde and setting sdeversion to 91 or whatever version of the SDK you are installing. Howard At 11:21 AM 6/2/2006, Fawcett, David wrote: >Thanks for the reply Howard. > >I am trying to pull together the libraries for our server guy. It is >for a Linux compile. > >Can you just copy specific libraries to the server, or do you have to >run the install program and get the CAD client and documentation too? > > >David. > >-----Original Message----- >From: Howard Butler [mailto:hobu at iastate.edu] >Sent: Friday, June 02, 2006 11:03 AM >To: Fawcett, David; MAPSERVER-USERS at lists.umn.edu >Subject: Re: SDE Compilation Help > > >David, > >MS4W already has SDE support included if you're using Windows. All >you need is the SDE C SDK installed and on your path. There are >instructions on what is necessary to swap in the distribution. > >If on *nix, the Unix Compilation Howto has some information about SDE >. >Basically, all you need is the SDE C SDK installed somewhere for your >platform and you point configure at it. > >Howard > >At 10:19 AM 6/2/2006, Fawcett, David wrote: > >I want to compile in SDE support. =20 > > > >Can anyone give me a list of the names of the SDE client libraries > >needed? =20 > > > >Thanks,=20 > > > >David. From warmerdam at POBOX.COM Fri Jun 2 09:52:45 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 2 Jun 2006 12:52:45 -0400 Subject: How to make MS4W to support epsg:3067? In-Reply-To: Message-ID: Rahkonen Jukka wrote: > Hi, > > Registered epsg code 3067 is referring to ETRS-UTM zone 35N, and is effectively just a synonyme to epsg:25835 with the only difference that it 3067 is defined to be valid for the whole Finnish territory, that is more than 6 degrees wide. Now I wonder how could I make Mapserver from MS4W delivery to understand this code? The newest FWTools do already support epsg:3067. Using 25835 instead is usually OK, but some (over)correct softwares give error messages when the natural 6 degrees wide area is exceeded. Jukka, It should be possible to just copy the PROJ.4 "epsg" init file from FWTools to the appropriate place in MS4W. 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 Steve.Lime at DNR.STATE.MN.US Fri Jun 2 10:26:03 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 2 Jun 2006 12:26:03 -0500 Subject: dBox / dLegend Message-ID: At this point the documentation is pretty sparce, but the demo shows all the options at the moment. We developed that capability for a specific project so there will likely need to be extensions. The metadata serves 3 primary functions: 1) it allows the creation of what we call metagroups to collect similarly themed layers or groups In the demo the following metadata does that: dlegend_metagroups "foreground,background" dlegend_foreground_layers_and_groups "pls,lakes,dlgstln2,cities,roads" dlegend_background_layers_and_groups "drgs,lulc_90cenim3" The first line tells the parser what groups there are (and what order to render themin the legend) and the next two lines define membership. 2) is allows the naming of elements that can't be named with normal MapServer map elements. Obviously metagroups since they are not MapServer constructs cannot be named. Nor can MapServer groups or layers with more than one named class. In those cases we name those elements with metadata: dlegend_foreground_name "Foreground Layers:" dlegend_background_name "Background Layers:" dlegend_lulc_90cenim3_name "Landuse/Landcover" dlegend_pls_name "Public Land Survey" dlegend_roads_name "Roads" 3) we can alter the legend control element type used for a metagroup, either a checkbox or a radio button. Yahoo actually mimics that behavior with DHTML and css but the effect is the same as using a form. dlegend_background_element "radio" That's really all there is to it. All other information such as class names, icons and scale limits are picked up from the regular mapfile structures. We have immediate needs to make a couple of extensions such as allowing nested metagroups and setting the default status (open/closed) of a metagroup. Let me know if this helps and/or if you need more detail. We can post this then as documentation for the MapScript piece of dlegend... Steve >>> Chip Hankley 6/1/2006 1:21:25 PM >>> I'm using dBox-0.9a1. Is there documentation for how the METADATA elements in the WEB section of the map file control the legend? I'm just trying to get a better understanding of what the options are, how it works, etc. Great interface, btw! Thanks! Outgoing messages, along with any attachments, are scanned for viruses prior to sending. ------------------------------------------------------------------------------ NOTICE--This email may contain confidential and privileged information for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and delete all copies. From Steve.Lime at DNR.STATE.MN.US Fri Jun 2 15:13:13 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 2 Jun 2006 17:13:13 -0500 Subject: Template problems Message-ID: Since templates are processed before the browser gets them then I don't see how this can possibly work. Why do you want to do that anyway? Steve >>> "Sievers, Jason" 6/1/2006 6:45:14 PM >>> Hello all. I have a MapServer HTML Template and am performing template substitutions. I would like reference values using JavaScript variables containing the template substitution. For example, simply getting the MapServer version number is easy via "[ROADS]", where 'ROADS' is the name of a field in a dBase file. But I want to get the value as a variable like myVariable0 = "ROADS"; myVariable1 = '"[' + myVariable0 + ']"'; Any thoughts are welcome. Thanks, Jason Sievers From bob.basques at CI.STPAUL.MN.US Fri Jun 2 15:36:25 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Fri, 2 Jun 2006 17:36:25 -0500 Subject: SRS setting for a non-EPSG coordinate system. Message-ID: All, Is there a way to get an arbitrary coordinate system output from Mapserver WFS (non-EPSG) using the same coordinate in the call to mapserver? I can get the Capabilities request to show the correct coordinate BBOX numbers, but I still need to send in a UTM box to retrieve by. How many locations are checked for the EPSG codes? We see them in MapServer, GDAL, OGR support files, are there more locations. Just trying to figure out how to best add in our local coordinate system as a WFS service to the EPSG code list. (which BTW is "Minnesota Ramsey County, Feet"). Can a free form description of coordinate system projection in the mapfile work, we couldn't get it to work. Is there some "non-projected" code that can be used to output the native values from the WFS service. We get an error also if no SRS is specified in the MapFile. Thanks bobb From woodbri at SWOODBRIDGE.COM Fri Jun 2 17:47:18 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 2 Jun 2006 20:47:18 -0400 Subject: Template problems In-Reply-To: Message-ID: That would be: myVariable0 = "[ROADS]"; Put that in the template and mapserver will set the value. If you want an array, I think it is possible with something like the following kwywords in the mapfile and place the follow code in each template: HEADER "/path/to/roads_header.html" ... ... -Steve W Steve Lime wrote: > Since templates are processed before the browser gets them then I don't see how this > can possibly work. Why do you want to do that anyway? > > Steve > >>>> "Sievers, Jason" 6/1/2006 6:45:14 PM >>> > Hello all. > > I have a MapServer HTML Template and am performing template substitutions. > I would like reference values using JavaScript variables containing the > template substitution. For example, simply getting the MapServer version > number is easy via "[ROADS]", where 'ROADS' is the name of a field in a > dBase file. But I want to get the value as a variable like > > myVariable0 = "ROADS"; > myVariable1 = '"[' + myVariable0 + ']"'; > > Any thoughts are welcome. > > > Thanks, > > Jason Sievers > From pcreso at PCRESO.COM Fri Jun 2 19:41:12 2006 From: pcreso at PCRESO.COM (Brent Wood) Date: Fri, 2 Jun 2006 19:41:12 -0700 Subject: mapscript projection & WMS questions In-Reply-To: <4480BD69.6050002@ci.stpaul.mn.us> Message-ID: Hi... I have a java mapscript application embedded in a java application, & have a couple of questions: Is reprojection supported (via proj.4)? Are WMS data providers supported? (So far I've been unable to get either to work, otherwise it is fine). If anyone is interested, the application is a digital asset mgmt system, now with a mapserver capability allowing images & documents to be selected by location. All data is managed in Postgres/Postgis. (Except for some background vectors which are quadtree indexed shapefiles, for performance reasons) A range of global & local vector & raster data are used as scale dependent background layers. The images are a range of scientific images including seabed images, specimen images and others. This has been implemented & tested. The documents are scientific papers which (soon) can be assigned to a geometry, so a map based query can retrieve images or papers by location. Thanks, Brent Wood From armin.burger at GMX.NET Sat Jun 3 07:57:36 2006 From: armin.burger at GMX.NET (Armin Burger) Date: Sat, 3 Jun 2006 16:57:36 +0200 Subject: Mapscript module error with PHP 5.1 Message-ID: Hi all, does anybody successfully use PHP Mapscript with PHP 5.1 on Linux and Apache 1.3? I tried now nearly all versions of PHP 5.1.x (including the latest 5.1.4), with the following components: Mapserver 4.8.3 with Apache 1.3.33, PHP as a DSO Debian 3.1 and always get the same error: Accept mutex: sysvsem (Default: sysvsem) /usr/sbin/apache: relocation error: /usr/local/lib/php/extensions/php_mapscript_48.so: undefined symbol: php_sprintf This error happened on 4 different Debian 3.1 (standard) installations. I can provide the PHP configure settings if needed. The error never appeared with PHP 5.0.x versions. Any help or hints would be very appreciated. armin From muthu_manaparai at YAHOO.COM Sat Jun 3 22:22:38 2006 From: muthu_manaparai at YAHOO.COM (muthu veerappan) Date: Sat, 3 Jun 2006 22:22:38 -0700 Subject: Shape File modification In-Reply-To: Message-ID: Hi All, I have 2 shape files one with the below extent (Bounding Box) minx="11018" miny="8970" maxx="566147" maxy="350142" and the other with minx="-179" miny="-89" maxx="179" maxy="83" 1st one is a shape .shp file i got after converting from .dwg and the 2nd one is an example for ka-map Could any one tell what is the difference ? Are there any projection / coordinate systems ? What is an extent ? Is this equal to pixel coordinate systems ? My idea is to make both the shape files the same size, so that each one will be a layer on my display. Is there any tools that does this shape size (canvas) modifications ? Please help. Regards, Muthu Veerappan PR.Muthu Veerappan (முத்து வீரப்பன்) Mobile +971 50 4206576 (Dubai) e-Mail - muthu at periyakaruppan.com ------------------------------------------ Check http://www.periyakaruppan.com Join http://www.buddhibase.org ------------------------------------------ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From roland.w.martin at GMAIL.COM Mon Jun 5 03:05:13 2006 From: roland.w.martin at GMAIL.COM (Roland Martin) Date: Mon, 5 Jun 2006 11:05:13 +0100 Subject: Apps timing out Message-ID: Hi, I wonder if anyone's come across this before (I couldn't find anything related to Mapserver & this error on the t'interweb)... Since upgrading from MS4W 1.2.2 (Mapserver 4.6.1) to 1.5.1 (Mapserver 4.8.3) a few weeks ago, I've been getting the following error on 2 of the apps: (70007)The timeout specified has expired: ap_content_length_filter: apr_bucket_read() failed Which is logged in the error.log file on loading - it effectively means that the page stays with the spinner for about 20 minutes before it loads. I've gone through the code with a fine-tooth comb, and it now only seems to be occurring in Internet Explorer - which leads me to suspect that either (or both) the map file or the HTML may contain some unclosed tags or dodgy code (although that's slightly surprising as they're all built from the same template). Anyone have any ideas? I'll send the related files if that sounds like the most likely cause. Ta, Roland. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at DMSOLUTIONS.CA Mon Jun 5 06:17:47 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Mon, 5 Jun 2006 09:17:47 -0400 Subject: Apps timing out In-Reply-To: Message-ID: You might also want to test with MS4W 2.0 or 1.5.4, and use the mapserver version 4.9 upgrade package to see if your error also occurs with 4.9. jeff Roland Martin wrote: > Hi, > > I wonder if anyone's come across this before (I couldn't find anything > related to Mapserver & this error on the t'interweb)... > > Since upgrading from MS4W 1.2.2 (Mapserver 4.6.1) to 1.5.1 (Mapserver > 4.8.3 ) a few weeks ago, I've been getting the following error on 2 of > the apps: > > (70007)The timeout specified has expired: ap_content_length_filter: > apr_bucket_read() failed > > Which is logged in the error.log file on loading - it effectively means > that the page stays with the spinner for about 20 minutes before it loads. > > I've gone through the code with a fine-tooth comb, and it now only seems > to be occurring in Internet Explorer - which leads me to suspect that > either (or both) the map file or the HTML may contain some unclosed tags > or dodgy code (although that's slightly surprising as they're all built > from the same template). > > Anyone have any ideas? I'll send the related files if that sounds like > the most likely cause. > > Ta, > Roland. -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From Chip.Hankley at RMTINC.COM Mon Jun 5 06:26:28 2006 From: Chip.Hankley at RMTINC.COM (Chip Hankley) Date: Mon, 5 Jun 2006 08:26:28 -0500 Subject: dBox / dLegend In-Reply-To: Message-ID: Steve - thanks a lot. That helps a tonne. Even just having this as part of the list archives will be useful. Thanks again for the dbox interface. That is *incredibly* useful. Chip >>> Steve Lime 6/2/2006 12:26 PM >>> At this point the documentation is pretty sparce, but the demo shows all the options at the moment. We developed that capability for a specific project so there will likely need to be extensions. The metadata serves 3 primary functions: 1) it allows the creation of what we call metagroups to collect similarly themed layers or groups In the demo the following metadata does that: dlegend_metagroups "foreground,background" dlegend_foreground_layers_and_groups "pls,lakes,dlgstln2,cities,roads" dlegend_background_layers_and_groups "drgs,lulc_90cenim3" The first line tells the parser what groups there are (and what order to render themin the legend) and the next two lines define membership. 2) is allows the naming of elements that can't be named with normal MapServer map elements. Obviously metagroups since they are not MapServer constructs cannot be named. Nor can MapServer groups or layers with more than one named class. In those cases we name those elements with metadata: dlegend_foreground_name "Foreground Layers:" dlegend_background_name "Background Layers:" dlegend_lulc_90cenim3_name "Landuse/Landcover" dlegend_pls_name "Public Land Survey" dlegend_roads_name "Roads" 3) we can alter the legend control element type used for a metagroup, either a checkbox or a radio button. Yahoo actually mimics that behavior with DHTML and css but the effect is the same as using a form. dlegend_background_element "radio" That's really all there is to it. All other information such as class names, icons and scale limits are picked up from the regular mapfile structures. We have immediate needs to make a couple of extensions such as allowing nested metagroups and setting the default status (open/closed) of a metagroup. Let me know if this helps and/or if you need more detail. We can post this then as documentation for the MapScript piece of dlegend... Steve Outgoing messages, along with any attachments, are scanned for viruses prior to sending. ------------------------------------------------------------------------------ NOTICE--This email may contain confidential and privileged information for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and delete all copies. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at CI.STPAUL.MN.US Mon Jun 5 07:25:38 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Mon, 5 Jun 2006 09:25:38 -0500 Subject: WFS gurus . . . . Message-ID: All, I'm trying to get a WFS output in a local coordinate system. Everything works just fine with a EPSG code, but our coordinate system is not in the list. Do we need to add it in in more than one location? We're using a few extensions that all seem to have their own version of a EPSG code list, different formats and everything. All I need is to be able to get the WFS output with a same coordinate system BBOX. Can I get around the EPSG requirement with some form of fakery? Can the GML be output with a MODE= option perhaps, in it's native coordinate system? Thanks bobb From Tom.Kralidis at EC.GC.CA Mon Jun 5 07:32:23 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 5 Jun 2006 10:32:23 -0400 Subject: WFS gurus . . . . Message-ID: > > I'm trying to get a WFS output in a local coordinate system. > Everything > works just fine with a EPSG code, but our coordinate system is not in > the list. Do we need to add it in in more than one location? We're > using a few extensions that all seem to have their own > version of a EPSG > code list, different formats and everything. > What's your projection parameters? If it's indeed not an EPSG code, you'll need to add this to your proj install's epsg file, then cite that EPSG code in your WFS request. > All I need is to be able to get the WFS output with a same coordinate > system BBOX. Can I get around the EPSG requirement with some form of > fakery? Can the GML be output with a MODE= option perhaps, in it's > native coordinate system? From bob.basques at CI.STPAUL.MN.US Mon Jun 5 07:38:00 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Mon, 5 Jun 2006 09:38:00 -0500 Subject: [Fwd: Re: WFS gurus . . . .] Message-ID: Ok, we'll try that. Any rule-of-thumb for assigning an arbitrary code? bobb -------- Original Message -------- Subject: Re: WFS gurus . . . . Date: Mon, 5 Jun 2006 10:32:23 -0400 From: Kralidis,Tom [Burlington] Reply-To: Kralidis,Tom [Burlington] To: MAPSERVER-USERS at LISTS.UMN.EDU >=20 > I'm trying to get a WFS output in a local coordinate system. =20 > Everything=20 > works just fine with a EPSG code, but our coordinate system is not in=20 > the list. Do we need to add it in in more than one location? We're=20 > using a few extensions that all seem to have their own=20 > version of a EPSG=20 > code list, different formats and everything. > What's your projection parameters? If it's indeed not an EPSG code, you'll need to add this to your proj install's epsg file, then cite that EPSG code in your WFS request. =20 > All I need is to be able to get the WFS output with a same coordinate=20 > system BBOX. Can I get around the EPSG requirement with some form of=20 > fakery? Can the GML be output with a MODE=3D option perhaps, in it's=20 > native coordinate system? From Tom.Kralidis at EC.GC.CA Mon Jun 5 07:49:23 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 5 Jun 2006 10:49:23 -0400 Subject: [Fwd: Re: WFS gurus . . . .] Message-ID: Good question. What's your actual projection definition? CubeWerx (http://www.cubewerx.com/) holds the 42xxx projection definitions. We've worked with them to establish codes which are not natively in EPSG. I've cc'd Craig here for info. ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bob Basques > Sent: Monday, June 05, 2006 10:38 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] [Fwd: Re: WFS gurus . . . .] > > > Ok, we'll try that. > > Any rule-of-thumb for assigning an arbitrary code? > > bobb > > > -------- Original Message -------- > Subject: Re: WFS gurus . . . . > Date: Mon, 5 Jun 2006 10:32:23 -0400 > From: Kralidis,Tom [Burlington] > Reply-To: Kralidis,Tom [Burlington] > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > >=20 > > I'm trying to get a WFS output in a local coordinate system. =20 > >Everything=20 works just fine with a EPSG code, but our coordinate > >system is not in=20 the list. Do we need to add it in in more than > >one location? We're=20 using a few extensions that all > seem to have > >their own=20 version of a EPSG=20 > > code list, different formats and everything. > > > > What's your projection parameters? If it's indeed not an > EPSG code, you'll need to add this to your proj install's > epsg file, then cite that EPSG code in your WFS request. =20 > > All I need is to be able to get the WFS output with a same > > coordinate=20 system BBOX. Can I get around the EPSG > requirement with > > some form of=20 fakery? Can the GML be output with a > MODE=3D option > > perhaps, in it's=20 native coordinate system? > From bob.basques at CI.STPAUL.MN.US Mon Jun 5 08:12:02 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Mon, 5 Jun 2006 10:12:02 -0500 Subject: [Fwd: Re: WFS gurus . . . .] In-Reply-To: Message-ID: Kralidis,Tom [Burlington] wrote: > Good question. > > What's your actual projection definition? > I believe this works (been a while though since I've tested it): PROJECTION "proj=lcc" "lat_1=44.88333333333333" "lat_2=45.13333333333333" "lat_0=44.79111111111111" "lon_0=-93.38333333333334" "x_0=152400.3048" "y_0=30480.06096" "a=6378418.941" "b=6357033.31" "to_meter=0.3048006096012192" "no_defs" END I have a list from someone in one of the State of Mn Dept's. that show some codes for other Counties, but I think that's someone elses version of an arbitrary list as well. I believe the TO_METER value above is supposed to convert to Feet as well. bobb > CubeWerx (http://www.cubewerx.com/) holds the 42xxx projection > definitions. We've worked with them to establish codes which are not > natively in EPSG. I've cc'd Craig here for info. > > ..Tom > > > >> -----Original Message----- >> From: UMN MapServer Users List=20 >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bob Basques >> Sent: Monday, June 05, 2006 10:38 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] [Fwd: Re: WFS gurus . . . .] >> =20 >> =20 >> Ok, we'll try that. >> =20 >> Any rule-of-thumb for assigning an arbitrary code? >> =20 >> bobb >> =20 >> =20 >> -------- Original Message -------- >> Subject: Re: WFS gurus . . . . >> Date: Mon, 5 Jun 2006 10:32:23 -0400 >> From: Kralidis,Tom [Burlington] >> Reply-To: Kralidis,Tom [Burlington] >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> =20 >> =20 >> =20 >> >>> =3D20 >>> I'm trying to get a WFS output in a local coordinate system. =3D20 =20 >>> Everything=3D20 works just fine with a EPSG code, but our coordinate = >>> > > >>> system is not in=3D20 the list. Do we need to add it in in more = >>> > than=20 > >>> one location? We're=3D20 using a few extensions that all=20 >>> >> seem to have=20 >> >>> their own=3D20 version of a EPSG=3D20 >>> code list, different formats and everything. >>> >>> >> =20 >> What's your projection parameters? If it's indeed not an=20 >> EPSG code, you'll need to add this to your proj install's=20 >> epsg file, then cite that EPSG code in your WFS request. =3D20 >> >>> All I need is to be able to get the WFS output with a same=20 >>> coordinate=3D20 system BBOX. Can I get around the EPSG=20 >>> >> requirement with=20 >> >>> some form of=3D20 fakery? Can the GML be output with a=20 >>> >> MODE=3D3D option=20 >> >>> perhaps, in it's=3D20 native coordinate system? >>> >> =20 >> > > From bob.basques at CI.STPAUL.MN.US Mon Jun 5 08:22:25 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Mon, 5 Jun 2006 10:22:25 -0500 Subject: [Fwd: Re: WFS gurus . . . .] In-Reply-To: Message-ID: Bob Basques wrote: > Kralidis,Tom [Burlington] wrote: > I suppose I should add that we're trying to use a Minnesota County (Ramsey) Coordinate system for the WFS output. bobb >> Good question. >> >> What's your actual projection definition? >> >> > I believe this works (been a while though since I've tested it): > > PROJECTION > "proj=lcc" > "lat_1=44.88333333333333" > "lat_2=45.13333333333333" > "lat_0=44.79111111111111" > "lon_0=-93.38333333333334" > "x_0=152400.3048" > "y_0=30480.06096" > "a=6378418.941" > "b=6357033.31" > "to_meter=0.3048006096012192" > "no_defs" > END > > I have a list from someone in one of the State of Mn Dept's. that show > some codes for other Counties, but I think that's someone elses version > of an arbitrary list as well. I believe the TO_METER value above is > supposed to convert to Feet as well. > > bobb > > >> CubeWerx (http://www.cubewerx.com/) holds the 42xxx projection >> definitions. We've worked with them to establish codes which are not >> natively in EPSG. I've cc'd Craig here for info. >> >> ..Tom >> >> >> >> >>> -----Original Message----- >>> From: UMN MapServer Users List=20 >>> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bob Basques >>> Sent: Monday, June 05, 2006 10:38 AM >>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>> Subject: [UMN_MAPSERVER-USERS] [Fwd: Re: WFS gurus . . . .] >>> =20 >>> =20 >>> Ok, we'll try that. >>> =20 >>> Any rule-of-thumb for assigning an arbitrary code? >>> =20 >>> bobb >>> =20 >>> =20 >>> -------- Original Message -------- >>> Subject: Re: WFS gurus . . . . >>> Date: Mon, 5 Jun 2006 10:32:23 -0400 >>> From: Kralidis,Tom [Burlington] >>> Reply-To: Kralidis,Tom [Burlington] >>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>> =20 >>> =20 >>> =20 >>> >>> >>>> =3D20 >>>> I'm trying to get a WFS output in a local coordinate system. =3D20 =20 >>>> Everything=3D20 works just fine with a EPSG code, but our coordinate = >>>> >>>> >> >> >>>> system is not in=3D20 the list. Do we need to add it in in more = >>>> >>>> >> than=20 >> >> >>>> one location? We're=3D20 using a few extensions that all=20 >>>> >>>> >>> seem to have=20 >>> >>> >>>> their own=3D20 version of a EPSG=3D20 >>>> code list, different formats and everything. >>>> >>>> >>>> >>> =20 >>> What's your projection parameters? If it's indeed not an=20 >>> EPSG code, you'll need to add this to your proj install's=20 >>> epsg file, then cite that EPSG code in your WFS request. =3D20 >>> >>> >>>> All I need is to be able to get the WFS output with a same=20 >>>> coordinate=3D20 system BBOX. Can I get around the EPSG=20 >>>> >>>> >>> requirement with=20 >>> >>> >>>> some form of=3D20 fakery? Can the GML be output with a=20 >>>> >>>> >>> MODE=3D3D option=20 >>> >>> >>>> perhaps, in it's=3D20 native coordinate system? >>>> >>>> >>> =20 >>> >>> >> >> > > From diego.riofrio at GMAIL.COM Mon Jun 5 08:36:46 2006 From: diego.riofrio at GMAIL.COM (Diego Riofrio) Date: Mon, 5 Jun 2006 10:36:46 -0500 Subject: Deploy problem mapscript C# Message-ID: Tamas, A month ago we talked about the compilation of mapscript for c# and the manifests of the dlls. Those dlls work very well in development with Visual Studio 2005 and Visual Studio 2003 installed in the same computer. But now, I'm deploying the application in another computer with Windows 2003 server without any Visual Studio instalation, and my application throws an error of mapscriptPINVOKE, the same error "Unable to load dll ' mapscript.dll'"; do yo remember that in another mail I told you that in a computer with Vsual 2005 but without Visual 2003 it threw the same error? So, while in deployment it does too. What do you think that I need to do? Do you think there is a packet or SDK of Visual Studio 2003 that I need to install? Thanks for your help. Diego. -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcoscobena at GMAIL.COM Mon Jun 5 08:46:21 2006 From: marcoscobena at GMAIL.COM (=?UTF-8?Q?Marcos_Cobe=C3=B1a?=) Date: Mon, 5 Jun 2006 17:46:21 +0200 Subject: Deploy problem mapscript C# In-Reply-To: Message-ID: Hi Diego, I think it's worth to mention this tool: Filemon (http://www.sysinternals.com/Utilities/Filemon.html), which will tell you which files are trying to be loaded when MS executes. Hope this helps, good luck. Regards, 2006/6/5, Diego Riofrio : > > Tamas, > > A month ago we talked about the compilation of mapscript for c# and the > manifests of the dlls. Those dlls work very well in development with Visual > Studio 2005 and Visual Studio 2003 installed in the same computer. > > But now, I'm deploying the application in another computer with Windows 2003 > server without any Visual Studio instalation, and my application throws an > error of mapscriptPINVOKE, the same error "Unable to load dll ' > mapscript.dll'"; do yo remember that in another mail I told you that in a > computer with Vsual 2005 but without Visual 2003 it threw the same error? > So, while in deployment it does too. What do you think that I need to do? Do > you think there is a packet or SDK of Visual Studio 2003 that I need to > install? > > Thanks for your help. > > > Diego. -- Marcos - http://www.youcannoteatbits.org From szekerest at GMAIL.COM Mon Jun 5 10:15:32 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Mon, 5 Jun 2006 19:15:32 +0200 Subject: Deploy problem mapscript C# Message-ID: Diego, Assuming you have ".NET Framework Version 2.0 Redistributable Package" installed could you try the sample applications (for example drawmap.exe) can be run from your application directory? I could not recall your environment exactly now I have only an XP installation with FW 2.0 (and without Visual Studio and FW 1.1). I can confirm that the sample apps could be run without requiring to install Visual Studio. If the problem still persists, i would encourage you to make a test application to reproduce and post it to the bugzilla assigning me as the owner. I will dig into this issue in more detail and test it also on a Windows Server 2003 installation. Tamas _____ From: Diego Riofrio [mailto:diego.riofrio at gmail.com] Sent: Monday, June 05, 2006 5:37 PM To: Szekeres Tam?s; MAPSERVER-USERS at lists.umn.edu Subject: Deploy problem mapscript C# Tamas, A month ago we talked about the compilation of mapscript for c# and the manifests of the dlls. Those dlls work very well in development with Visual Studio 2005 and Visual Studio 2003 installed in the same computer. But now, I'm deploying the application in another computer with Windows 2003 server without any Visual Studio instalation, and my application throws an error of mapscriptPINVOKE, the same error "Unable to load dll ' mapscript.dll'"; do yo remember that in another mail I told you that in a computer with Vsual 2005 but without Visual 2003 it threw the same error? So, while in deployment it does too. What do you think that I need to do? Do you think there is a packet or SDK of Visual Studio 2003 that I need to install? Thanks for your help. Diego. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.1/355 - Release Date: 2006.06.02. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.1/355 - Release Date: 2006.06.02. -------------- next part -------------- An HTML attachment was scrubbed... URL: From earevaloch at GMAIL.COM Mon Jun 5 12:22:26 2006 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Mon, 5 Jun 2006 14:22:26 -0500 Subject: error en simbols......... Message-ID: hi list: this is mapfile that incorporates to raster like bottom of a vector: MAP IMAGETYPE PNG24 EXTENT -81.328393 -18.351232 -68.653396 -0.038607 SIZE 400 300 SHAPEPATH "/home/postgres/vectores" IMAGECOLOR 255 255 255 FONTSET "/home/earevalo/mapserver-4.8.3/fonts/fonts.list" SYMBOLSET "/home/earevalo/mapserver-4.8.3/symbols/symbols.sym" LAYER NAME Peru_poly DATA departamentos STATUS OFF TYPE POLYGON CLASSITEM "nomb_dep" CLASS NAME "departamento selva" EXPRESSION "UCAYALI" STYLE COLOR 232 232 232 END END END LAYER #MOSAICO PER? NAME Mosaico_Peru DATA "/home/postgres/raster/PERU300DPI.tif" STATUS OFF TYPE RASTER PROCESSING "BANDS=1,2,3" OFFSITE 71 74 65 END LAYER #CAPA DEPARTAMENTOS NAME Peru_line DATA departamentos STATUS OFF TYPE LINE CLASSITEM "nomb_dep" CLASS NAME "departamento selva" EXPRESSION "UCAYALI" STYLE SYMBOL 'line' COLOR 64 64 64 SIZE 1 END END END LAYER #TITULOS DE DEPARTAMENTOS NAME Titulos DATA departamentos STATUS OFF TYPE ANNOTATION CLASSITEM "nomb_dep" CLASS EXPRESSION "UCAYALI" STYLE COLOR -1 -1 -1 END LABEL COLOR 132 31 31 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 300 BUFFER 4 END END END END END and and this is the error that leaves to me when I invoke it by browse. msLoadMap(): General error message. Undefined overlay symbol "line" in class 0, style 0 of layer Peru_line. msAddImageSymbol(): Unable to access file. Error opening image file /home/earevalo/mapserver-4.8.3/tests/line. some idea of solution please. -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Mon Jun 5 12:52:59 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 5 Jun 2006 15:52:59 -0400 Subject: mapscript projection & WMS questions In-Reply-To: <20060603024112.13980.qmail@web33202.mail.mud.yahoo.com> Message-ID: Brent Wood wrote: > Hi... > > I have a java mapscript application embedded in a java application, & have a > couple of questions: > > Is reprojection supported (via proj.4)? Brent, Reprojection of input rasters and vectors is supported by MapServer and mapscript applications using PROJ.4, assuming it is configured in. This has long been the case. > Are WMS data providers supported? MapServer and MapScript support accessing remote WMS layers as an input as long as WMS client support is built in, and has for some time. > (So far I've been unable to get either to work, otherwise it is fine). If you are having problems with the WMS client support from Java MapScript the issue might *possibly* be related to the kind of multithreading used for processing several WMS requests at once. This is done down in libcurl I think so I don't know the details. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From warmerdam at POBOX.COM Mon Jun 5 13:03:03 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 5 Jun 2006 16:03:03 -0400 Subject: MapServer from FWTools and JPEG 2000 drivers In-Reply-To: Message-ID: Rahkonen Jukka wrote: > Hello, > > FWTools package include gdal version supporting JPEG 2000 through Kakadu driver and Mapserver version 4.9. Now I have a question: > > - This gdal version seems to have two JPEG 2000 drivers, JP2KAK and JP2ECW. Which one will be used by Mapserver for JPEG 2000 layer? Can it be selected somehow in the mapfile? Jukka, Normally the JP2KAK driver will take precidence over the JP2ECW driver if they are both available. You can't control what driver will be used on a per-layer basis, but you can add a MAP level configuration statement to disable a driver. eg. CONFIG "GDAL_SKIP" "JP2KAK" 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 lpzhao at NETZERO.NET Mon Jun 5 13:42:43 2006 From: lpzhao at NETZERO.NET (lpzhao@netzero.net) Date: Mon, 5 Jun 2006 20:42:43 GMT Subject: help needed about using HTML in chameleon application Message-ID: An embedded and charset-unspecified text was scrubbed... Name: not available URL: From rhow at I3.COM Mon Jun 5 16:17:30 2006 From: rhow at I3.COM (Randy How) Date: Mon, 5 Jun 2006 17:17:30 -0600 Subject: MapServer Load Testing Message-ID: Greetings, We're wanting to put our MapServer system under a few test cases. I'm wondering if any one has documented/published their approach. We're wanting to test mapserver itself under a load (simulated concurrent users) and also monitor network traffic to determine bottle necks. Does anyone recommend a testing tool to beat on MapServer? Thanks, Randy - rhow[at]i3.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kenton_Williams at UMIT.MAINE.EDU Mon Jun 5 16:57:34 2006 From: Kenton_Williams at UMIT.MAINE.EDU (Kenton Williams) Date: Mon, 5 Jun 2006 19:57:34 -0400 Subject: Mapscript module error with PHP 5.1 In-Reply-To: <4481A360.2000306@gmx.net> Message-ID: If you can, give HostGIS Linux a try. The newly released HostGIS Linux 3.6 includes PHP5 with Apache 1.3. The ISO is pretty small and it installs very rapidly. Comes with PostgreSQL, PostGIS, MySQL, PHP, Python, and Mapserver preconfigured. I can get a working Mapserver serving install in less than 15 minutes! Be advised - there is no GUI included as this is intended for servers. If you need a GUI, check out the forums. www.hostgis.com/linux/ It's slackware, and now includes slackpkg and you can admin the computer remotely through webmin. I've been fiddling with HostGIS Linux for several weeks and it's quite impressive if you can do without a GUI. Good luck! Kenton W. From b.vdeijnden at AGI.RWS.MINVENW.NL Mon Jun 5 23:01:55 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Tue, 6 Jun 2006 08:01:55 +0200 Subject: help needed about using HTML in chamele on application Message-ID: Have a look at the QuickZoom widget which is part of Chameleon. For further questions please use the chameleon user list instead. Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens lpzhao at netzero.net Verzonden: maandag 5 juni 2006 22:43 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] help needed about using HTML in chameleon application Hi there, I have installed MS4W in my computer and created a chameleon application. It works. Now I tried to add a drop list to select a option by using HTML. But it doesn't work. Can anyone give me any help or hit? Here is my part of code:

Thank You all! Liping Zhao 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 muthu_manaparai at YAHOO.COM Mon Jun 5 23:58:57 2006 From: muthu_manaparai at YAHOO.COM (muthu veerappan) Date: Mon, 5 Jun 2006 23:58:57 -0700 Subject: Shape File modification In-Reply-To: Message-ID: Hi All, I have 2 shape files one with the below extent (Bounding Box) minx="11018" miny="8970" maxx="566147" maxy="350142" and the other with minx="-179" miny="-89" maxx="179" maxy="83" 1st one is a shape .shp file i got after converting from .dwg and the 2nd one is an example for ka-map Could any one tell what is the difference ? Are there any projection / coordinate systems ? What is an extent ? Is this equal to pixel coordinate systems ? My idea is to make both the shape files the same size, so that each one will be a layer on my display. Is there any tools that does this shape size (canvas) modifications ? Please help. Regards, Muthu Veerappan PR.Muthu Veerappan (முத்து வீரப்பன்) Mobile +971 50 4206576 (Dubai) e-Mail - muthu at periyakaruppan.com ------------------------------------------ Check http://www.periyakaruppan.com Join http://www.buddhibase.org ------------------------------------------ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From tom at MAPLINK.JP Tue Jun 6 00:03:57 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Tue, 6 Jun 2006 16:03:57 +0900 Subject: error en simbols......... Message-ID: Hi Eduardo, Can you show a copy of your Symbol file? I think that would help. Thanks, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Tue Jun 6 00:22:51 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Tue, 6 Jun 2006 09:22:51 +0200 Subject: Shape File modification In-Reply-To: <20060606065857.81358.qmail@web34703.mail.mud.yahoo.com> Message-ID: Hi Muthu, I think what you need to do is only to control the EXTENT element in the mapfile, the first one may have the UTM projection, and the second one is a typical WGS84 coordinate, you can use Proj4 to reproject your shapefile. best regards zhonghai On 6/6/06, muthu veerappan wrote: > > Hi All, > > I have 2 shape files > > one with the below extent (Bounding Box) > > minx="11018" miny="8970" maxx="566147" maxy="350142" > > and the other with > > minx="-179" miny="-89" maxx="179" maxy="83" > > 1st one is a shape .shp file i got after converting > from .dwg and the 2nd one is an example for ka-map > > Could any one tell what is the difference ? Are there > any projection / coordinate systems ? > > What is an extent ? Is this equal to pixel coordinate > systems ? > > My idea is to make both the shape files the same size, > so that each one will be a layer on my display. > > Is there any tools that does this shape size (canvas) > modifications ? > > Please help. > > Regards, > Muthu Veerappan > > PR.Muthu Veerappan (?????? ????????) > Mobile +971 50 4206576 (Dubai) > e-Mail - muthu at periyakaruppan.com > ------------------------------------------ > Check http://www.periyakaruppan.com > Join http://www.buddhibase.org > ------------------------------------------ > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From narayani.tech at GMAIL.COM Tue Jun 6 00:16:57 2006 From: narayani.tech at GMAIL.COM (Narayani Barve) Date: Tue, 6 Jun 2006 12:46:57 +0530 Subject: Few queries Message-ID: Dear All, While browing the web, I came to know about Mapserver. We are using Php + Mysql for data management. I want to put the spatial data on the web using mapserver. I saw the site and came to know about the PHP MapScript, I downloaded it and tried installing it. I also downloaded the binaries for mapserver and installed it. But I am not able to figure it out whether Mapserver is running. Just wanted to know, 1. if there are any examples, which I can use it and check whether installation is proper. 2. Wanted to know any websites, which uses this website. We have installed WAMP on windows 2000 professional. WAMP is working fine. Thanks in advance. Narayani -------------- next part -------------- An HTML attachment was scrubbed... URL: From narayani.tech at GMAIL.COM Tue Jun 6 00:18:11 2006 From: narayani.tech at GMAIL.COM (Narayani Barve) Date: Tue, 6 Jun 2006 12:48:11 +0530 Subject: Few queries In-Reply-To: Message-ID: I wanted to know any websites which uses this combination. And also would like to if anyone have used WAMP + Mapserver Thanks in advance, Narayani On 6/6/06, Narayani Barve wrote: > > Dear All, > > While browing the web, I came to know about Mapserver. We are using Php + > Mysql for data management. I want to put the spatial data on the web using > mapserver. I saw the site and came to know about the PHP MapScript, I > downloaded it and tried installing it. I also downloaded the binaries for > mapserver and installed it. But I am not able to figure it out whether > Mapserver is running. Just wanted to know, > > 1. if there are any examples, which I can use it and check whether > installation is proper. > > 2. Wanted to know any websites, which uses this website. > > We have installed WAMP on windows 2000 professional. WAMP is working fine. > > > Thanks in advance. > > Narayani > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Tue Jun 6 00:28:38 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Tue, 6 Jun 2006 09:28:38 +0200 Subject: PHP/MapScript or CSharp/MapScript? In-Reply-To: <20359190.1149254730225.JavaMail.fmail@fmcert01.dlan.cinetic.de> Message-ID: Hi Christian, This may be a good solution for me, and I'd like to make a demo on it. thank you for your information. zhonghai On 6/2/06, christian.graefe at web.de wrote: > > Hi Zhonghai Wang, > > If your are interested in a FOSS C# mapping solution, you may have a look > at SharpMap( http://sharpmap.iter.dk ). > SharpMap is developed by Morten in pure C# and is quite stable. > > Available data sources: > - Shapefile > - PostGis > - Oracle > - MsSql Server > - OleDb datasources for point informations > - Ecw Raster > - Wms > > it also supports labeling and on-the-fly transformation between projected > and geographic coordinates. > > Give it a try! > > > BR > Christian > > > > > -----Urspr?ngliche Nachricht----- > > Von: Zhonghai Wang > > Gesendet: 02.06.06 14:52:39 > > An: MAPSERVER-USERS at LISTS.UMN.EDU > > Betreff: [UMN_MAPSERVER-USERS] PHP/MapScript or CSharp/MapScript? > > > > Hi guys, > > > > > > > > after developing a MapServer Demo application based on CGI mode, I > realized that MapServer may be the best option for open source WebGIS > development. Now I am trying to improve my demo with mapscript, since > mapscript provides more powerful things for web GIS application. I noticed > that there are different mapscript packages available for MapServer, such as > PHP/MapScript and CSharp/MapSscript. Theorically CSharp MapScript may be the > best option for me, because I am good at .NET thing, but I am not sure if > the CSharp MapScript package is stable enough. I've searched a lot in > Internet, and also in the MapServer user list achieves, it seems that most > people are using PHP MapScript package for their web mapping application, > does this mean that the PHP MapScript package is more stable than any other > MapScript packages? > > > > > > > > I'd like your suggestions for my next step. PHP/MapScript or CSharp > MapScript? > > > > > > > > thanks in advance. > > > > > > > > > > > > zhonghai > > > > > > > > 02.06.2006 > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim.bowden at WESTNET.COM.AU Tue Jun 6 00:34:36 2006 From: tim.bowden at WESTNET.COM.AU (Tim Bowden) Date: Tue, 6 Jun 2006 15:34:36 +0800 Subject: MapServer Load Testing In-Reply-To: <025401c688f6$37fd7e50$0e28c80a@i3.local> Message-ID: On Mon, 2006-06-05 at 17:17 -0600, Randy How wrote: > Greetings, > > We're wanting to put our MapServer system under a few test cases. > > I'm wondering if any one has documented/published their approach. > We're wanting to test mapserver itself under a load (simulated > concurrent users) and also monitor network traffic to determine bottle > necks. > > Does anyone recommend a testing tool to beat on MapServer? Try jmeter. We are using mapserver for a whole of govt gis portal we are developing here in Western Australia and have used jmeter to simulate real world loads (as best we can determine what that will be). I'll dig out our testing in the next few days and see what details I can give you. Tim Bowden From zhonghaiw at GMAIL.COM Tue Jun 6 00:34:57 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Tue, 6 Jun 2006 09:34:57 +0200 Subject: PHP/MapScript or CSharp/MapScript? In-Reply-To: Message-ID: Hi Tamas, thank you for your professional info. I will take a deep look into the things you mentioned. Maybe I will bother you again for more information. zhonghai On 6/2/06, Tamas Szekeres wrote: > > Hi Zhonghai, > > First of all PHP mapscript and C# mapscript (as part of the SWIG line) > are standing for a completely different implementation, however the > functionality is almost the same. > > If you want to utilize and enhance the extensive functionality of > mapserver you might want to use the C# mapscript as you can use the > other language bindings as well. > > The C# mapscript interface is known stable, and uses the .NET platform > invoke mechanism for the communication between the C and the C# parts > (mapscript.dll and mapscript_csharp.dll on windows for example). You > can use the object model of the C# interface (contained in the > mapscript_csharp.dll assembly) to achieve the required functionality > for your .NET application. > > When using the mapscript C# API you have to take care of the threading > model of the host > process invoking the API. You have to compile mapserver with thread > support and avoid using the thread unsafe libraries. For more details: > http://mapserver.gis.umn.edu/docs/faq/thread_safety > Passing mapscript object between multiple threads is also unsupported. > > The interface is tested mostly under MS .NET framework 1.1 and MONO. > Using with .NET FW 2.0 you must compile the code with Visual Studio > 2005. For the C# specific compilation issues visit: > http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile > > So the C# interface is sufficient mostly with those applications the > threading model is controlled by the programmer. For example for > writing desktop applications is ideal. > For WEB applications you might want to use the MONO ASP.NETimplementation. > The threading model of IIS is more sophisticated, so creating C# > mapscript WEB applications for IIS is not impossible but requires much > care. > > > Best Regards, > > Tamas Szekeres > > > 2006/6/2, Zhonghai Wang : > > Hi guys, > > > > after developing a MapServer Demo application based on CGI mode, I > realized > > that MapServer may be the best option for open source WebGIS > development. > > Now I am trying to improve my demo with mapscript, since mapscript > provides > > more powerful things for web GIS application. I noticed that there are > > different mapscript packages available for MapServer, such as > PHP/MapScript > > and CSharp/MapSscript. Theorically CSharp MapScript may be the best > option > > for me, because I am good at .NET thing, but I am not sure if the CSharp > > MapScript package is stable enough. I've searched a lot in Internet, and > > also in the MapServer user list achieves, it seems that most people are > > using PHP MapScript package for their web mapping application, does this > > mean that the PHP MapScript package is more stable than any other > MapScript > > packages? > > > > I'd like your suggestions for my next step. PHP/MapScript or CSharp > > MapScript? > > > > thanks in advance. > > > > > > zhonghai > > > > 02.06.2006 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From asachs at CLUE.CO.ZA Tue Jun 6 02:00:52 2006 From: asachs at CLUE.CO.ZA (Andre Sachs) Date: Tue, 6 Jun 2006 11:00:52 +0200 Subject: Java mapscript and imagemaps Message-ID: Hi All, I want to generate imagemaps using Java mapscript, while looking into how to do it I encountered : "None of the three template processing methods will be useable unless the proper typemaps are implemented in the module for the target language. Currently the typemaps are not implemented." Given the above is it possible or plausible to generate imagemaps with Java mapscript ? Regards Andre -- Andre Sachs IT Architect, Clue Technologies PTY (LTD) email: andre at clue.co.za From jonnyprof at GMAIL.COM Tue Jun 6 02:10:38 2006 From: jonnyprof at GMAIL.COM (John Prof) Date: Tue, 6 Jun 2006 11:10:38 +0200 Subject: shp2mysql error Message-ID: Hello, I'm using debian sarge, mysql Ver 14.7 Distrib 4.1.11, and mapserver 4.8.3. I've created an empty database called test and I've tried to use shp2mysql to enter the data. Shp2mysql creates two tables (Geometry_columns and spatial_ref_sys) but it don't insert nothing in they. I've tried to install some perl packages but I don't know what is the problem. Shp2mysql don't give me any error. Someone can help me please? Thanks a lot -Sorry for my poor english- -------------- next part -------------- An HTML attachment was scrubbed... URL: From vulukut at TESCILTURK.COM Tue Jun 6 01:51:55 2006 From: vulukut at TESCILTURK.COM (Volkan Ulukut) Date: Tue, 6 Jun 2006 11:51:55 +0300 Subject: PHP as CGI not working / Premature end of script headers Message-ID: Greetings, I'm trying to get mapscript working but i get the error that i should run php as cgi. I followed the instructions on http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI. Since I had preloaded php as an apache DSO and wish to only run mapscript as a CGI I added Action phtml-script /cgi/php AddHandler phtml-script .phtml And Options ExecCGI FollowSymLinks To httpd.conf Created cgi directory under mapscript files #mkdir cgi #chgrp nobody ./cgi #chmod 750 ./cgi Then i created a symbolic link into cgi directory ln -s /usr/local/bin/php /path/to/mapscript/cgi/php Then i've restarted apache. And tried to navigate to my test page which is at /path/to/mapscript/test.phtml It's content is: But only thing i get is 500 Internal Server Error. When i check the apache web logs i see: Premature end of script headers: /path/to/mapscript/cgi/php I try to run the script on shell using: /usr/local/bin/php -e /path/to/mapscript/test.phtml And i get the desired result. But on the browser i can't get any output. Any thought about that? -------------- next part -------------- An HTML attachment was scrubbed... URL: From muthu_manaparai at YAHOO.COM Tue Jun 6 03:14:13 2006 From: muthu_manaparai at YAHOO.COM (muthu veerappan) Date: Tue, 6 Jun 2006 03:14:13 -0700 Subject: Shape File modification In-Reply-To: <2534c4120606060022u3f2f2780p6e84f3de0ec75819@mail.gmail.com> Message-ID: Thanks Zhonghai Wang --- Zhonghai Wang wrote: > Hi Muthu, > > I think what you need to do is only to control the > EXTENT element in the > mapfile, the first one may have the UTM projection, > and the second one is a > typical WGS84 coordinate, you can use Proj4 to > reproject your shapefile. > > best regards > > zhonghai > > On 6/6/06, muthu veerappan > wrote: > > > > Hi All, > > > > I have 2 shape files > > > > one with the below extent (Bounding Box) > > > > minx="11018" miny="8970" maxx="566147" > maxy="350142" > > > > and the other with > > > > minx="-179" miny="-89" maxx="179" maxy="83" > > > > 1st one is a shape .shp file i got after > converting > > from .dwg and the 2nd one is an example for ka-map > > > > Could any one tell what is the difference ? Are > there > > any projection / coordinate systems ? > > > > What is an extent ? Is this equal to pixel > coordinate > > systems ? > > > > My idea is to make both the shape files the same > size, > > so that each one will be a layer on my display. > > > > Is there any tools that does this shape size > (canvas) > > modifications ? > > > > Please help. > > > > Regards, > > Muthu Veerappan > > > > PR.Muthu Veerappan (?????????????????? > ????????????????????????) > > Mobile +971 50 4206576 (Dubai) > > e-Mail - muthu at periyakaruppan.com > > ------------------------------------------ > > Check http://www.periyakaruppan.com > > Join http://www.buddhibase.org > > ------------------------------------------ > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > PR.Muthu Veerappan (முத்து வீரப்பன்) Mobile +971 50 4206576 (Dubai) e-Mail - muthu at periyakaruppan.com ------------------------------------------ Check http://www.periyakaruppan.com Join http://www.buddhibase.org ------------------------------------------ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From jonnyprof at GMAIL.COM Tue Jun 6 03:16:10 2006 From: jonnyprof at GMAIL.COM (John Prof) Date: Tue, 6 Jun 2006 12:16:10 +0200 Subject: shp2mysql error In-Reply-To: Message-ID: Hello, I'm using debian sarge, mysql Ver 14.7 Distrib 4.1.11, and mapserver 4.8.3. I've created an empty database called test and I've tried to use shp2mysql to enter the data. Shp2mysql creates two tables (Geometry_columns and spatial_ref_sys) but it don't insert nothing in they. I've tried to install some perl packages but I don't know what is the problem. Shp2mysql don't give me any error. Someone can help me please? Thanks a lot -Sorry for my poor english- -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Tue Jun 6 03:34:54 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Tue, 6 Jun 2006 12:34:54 +0200 Subject: raster image preprocessing problem. Message-ID: Hi there, I have a couple of GIFs with wld files, but the original Projection is not the one I want, I tried to use the Proj4 to reproject them on-the-fly, but it takes really long to perform the map request, therefore I tried to preprocess the images with GDAL tools, but I've got some problems here: 1. problem with gdalwarp: trying to mosaic the images into one output file, but only the first image has the correct image color, the other images are rendered with strange colors, is this a common problem if using gdalwarp to mosaic images? 2.problem with gdal_merge.py: after trying the gdalwarp command, I've tried the gdal_merge.py command to merge all the images together with the -pct parameter, unfortunately, the merged image is the same as the first try. is it possible to merge images using the command with the correct color table? BTW: I can not use the gdal_translate command, since there are gaps between the reprojected images. thanks for your info. zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From porath at WEB.DE Tue Jun 6 04:27:07 2006 From: porath at WEB.DE (H. Porath) Date: Tue, 6 Jun 2006 13:27:07 +0200 Subject: performance slows down when compiled with gdal Message-ID: Hi all, we have compiled two mapserver-binarys on solaris/sparc 8. The first (i call it "slim") was configured without gdal: ./configure \ --with-freetype=/usr/local/freetype-2.1.10 \ --with-gd=/usr/local/gd-2.0.33 \ --with-proj=/usr/local \ --with-oraclespatial=/opt/oracle/9.2.0 It runs very well and a wms-request on a "one image png raster layer" lasts less than one second. Here is the layer definition: LAYER METADATA "wms_title" "huek-b256" END PROJECTION "init=epsg:31467" END NAME huek-b256 DATA tk_store/B256km/34105470.png TYPE RASTER STATUS ON END Now we additionally needed GDAL/OGR (for wfs, mrsid etc.) and compiled a second version (i call it fat) with the following configure: ./configure \ --with-freetype=/usr/local/freetype-2.1.10 \ --with-gd=/usr/local/gd-2.0.33 \ --with-proj=/usr/local \ --with-ogr=/usr/local/gdal-1.3.1/bin/gdal-config \ --with-gdal=/usr/local/gdal-1.3.1/bin/gdal-config \ --with-wfs\ --with-oraclespatial=/opt/oracle/9.2.0 This "fat" mapserver binary needs more than three seconds for the same request although i am still requesting png. Has anyone an idea why this is so and how i can fix it? Is it possible that the mapserver tries to read the png files with the gdal driver? As far as i know the gdal driver ist much slower than the gd driver. So i added an "outputformat" directive to my mapfile: OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END The problem is that this directive obviously only has effect on writing of png. Does anyone know if i can force mapserver to use the GD library for reading of png (and jpeg)? Some additional infos: -gdal 1.3.1 with support of mrsid, dynamically linked -the raster data is in the same coordinate system as the wms request -the raster data is an 8bit png (9 kb of size) georeferenced in a worldfile Thanks in advance. Regards Holger __________________________________________________________________________ Erweitern Sie FreeMail zu einem noch leistungsst?rkeren E-Mail-Postfach! Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131 From warmerdam at POBOX.COM Tue Jun 6 04:59:09 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 6 Jun 2006 07:59:09 -0400 Subject: performance slows down when compiled with gdal In-Reply-To: <588435762@web.de> Message-ID: H. Porath wrote: > This "fat" mapserver binary needs more than three seconds for the same request although i am still requesting png. > Has anyone an idea why this is so and how i can fix it? Is it possible that the mapserver tries to read the png files with the gdal driver? As far as i know the gdal driver ist much slower than the gd driver. So i added an "outputformat" directive to my mapfile: > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE PC256 > EXTENSION "png" > END > > The problem is that this directive obviously only has effect on writing of png. Does anyone know if i can force mapserver to use the GD library for reading of png (and jpeg)? > > Some additional infos: > -gdal 1.3.1 with support of mrsid, dynamically linked > -the raster data is in the same coordinate system as the wms request > -the raster data is an 8bit png (9 kb of size) georeferenced in a worldfile Holger, How long does a "mapserv -v" report take? I vaguely suspect you are seeing a high cost to loading all the shared libraries, perhaps because some of the shared libraries are having to be link edited into a new location. I know this used to be an issue on Solaris (many years ago) if the -fPIC flag was missed during compiles. If mapserv -v takes 1-2 seconds then you will know that the issue is a "startup cost" issue. I don't see any reason why using GDAL to render from a small PNG file should be slow. 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 tkirstine at JDBARNES.COM Tue Jun 6 05:14:59 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Tue, 6 Jun 2006 08:14:59 -0400 Subject: raster image preprocessing problem. In-Reply-To: <2534c4120606060334t69cc6e6vd21f4021f29a6343@mail.gmail.com> Message-ID: Zhonghai, My guess is that both the gdal_warp and gdal_merge utilities use the pusedo colour table of the first image and apply that table to all other images, I would try converting the gif to RGB geotiffs using the pct2rgb gdal utility then go through your processing steps(warping and merging) then convert the images back to 8bit GIFs. I hope this helps Travis -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Zhonghai Wang Sent: Tuesday, June 06, 2006 6:35 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] raster image preprocessing problem. Hi there, I have a couple of GIFs with wld files, but the original Projection is not the one I want, I tried to use the Proj4 to reproject them on-the-fly, but it takes really long to perform the map request, therefore I tried to preprocess the images with GDAL tools, but I've got some problems here: 1. problem with gdalwarp: trying to mosaic the images into one output file, but only the first image has the correct image color, the other images are rendered with strange colors, is this a common problem if using gdalwarp to mosaic images? 2.problem with gdal_merge.py: after trying the gdalwarp command, I've tried the gdal_merge.py command to merge all the images together with the -pct parameter, unfortunately, the merged image is the same as the first try. is it possible to merge images using the command with the correct color table? BTW: I can not use the gdal_translate command, since there are gaps between the reprojected images. thanks for your info. zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Tue Jun 6 05:28:57 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Tue, 6 Jun 2006 14:28:57 +0200 Subject: raster image preprocessing problem. In-Reply-To: Message-ID: Hi Travis, I think you are right, better I do the merging in RGB model, but it's strange that I can not use the pct2rgb.py commnd, and the rgb2pct.py command is no problem. Do you have any ideas why this happened? zhonghai On 6/6/06, Travis Kirstine GIS Tech wrote: > > Zhonghai, > My guess is that both the gdal_warp and gdal_merge utilities use the > pusedo colour table of the first image and apply that table to all other > images, I would try converting the gif to RGB geotiffs using the pct2rgb > gdal utility then go through your processing steps(warping and merging) then > convert the images back to 8bit GIFs. I hope this helps > > Travis > > -----Original Message----- > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]*On > Behalf Of *Zhonghai Wang > *Sent:* Tuesday, June 06, 2006 6:35 AM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* [UMN_MAPSERVER-USERS] raster image preprocessing problem. > > Hi there, > > I have a couple of GIFs with wld files, but the original Projection is not > the one I want, I tried to use the Proj4 to reproject them on-the-fly, but > it takes really long to perform the map request, therefore I tried > to preprocess the images with GDAL tools, but I've got some problems here: > > 1. problem with gdalwarp: trying to mosaic the images into one output > file, but only the first image has the correct image color, the other images > are rendered with strange colors, is this a common problem if using gdalwarp > to mosaic images? > > 2.problem with gdal_merge.py: after trying the gdalwarp command, I've > tried the gdal_merge.py command to merge all the images together with the > -pct parameter, unfortunately, the merged image is the same as the first > try. is it possible to merge images using the command with the correct color > table? > > BTW: I can not use the gdal_translate command, since there are gaps > between the reprojected images. > > thanks for your info. > > zhonghai > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Tue Jun 6 05:34:29 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Tue, 6 Jun 2006 14:34:29 +0200 Subject: raster image preprocessing problem. In-Reply-To: <2534c4120606060528l3046957dk63f45737d7d7053b@mail.gmail.com> Message-ID: and the eror info in the FW Shell is: Traceback (most recent call last): File "C:\programme\FWTOOL~1.0B2\bin\pct2rgb.py", line 46, in import Numeric ImportError: No module named Numeric thanks On 6/6/06, Zhonghai Wang wrote: > > Hi Travis, > > I think you are right, better I do the merging in RGB model, but it's > strange that I can not use the pct2rgb.py commnd, and the rgb2pct.py command > is no problem. Do you have any ideas why this happened? > > zhonghai > > > On 6/6/06, Travis Kirstine GIS Tech wrote: > > > > Zhonghai, > > My guess is that both the gdal_warp and gdal_merge utilities use the > > pusedo colour table of the first image and apply that table to all other > > images, I would try converting the gif to RGB geotiffs using the pct2rgb > > gdal utility then go through your processing steps(warping and merging) then > > convert the images back to 8bit GIFs. I hope this helps > > > > Travis > > > > -----Original Message----- > > *From:* UMN MapServer Users List [mailto: MAPSERVER-USERS at LISTS.UMN.EDU] > > *On Behalf Of *Zhonghai Wang > > *Sent:* Tuesday, June 06, 2006 6:35 AM > > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > > *Subject:* [UMN_MAPSERVER-USERS] raster image preprocessing problem. > > > > Hi there, > > > > I have a couple of GIFs with wld files, but the original Projection is > > not the one I want, I tried to use the Proj4 to reproject them on-the-fly, > > but it takes really long to perform the map request, therefore I tried > > to preprocess the images with GDAL tools, but I've got some problems here: > > > > 1. problem with gdalwarp: trying to mosaic the images into one output > > file, but only the first image has the correct image color, the other images > > are rendered with strange colors, is this a common problem if using gdalwarp > > to mosaic images? > > > > 2.problem with gdal_merge.py: after trying the gdalwarp command, I've > > tried the gdal_merge.py command to merge all the images together with the > > -pct parameter, unfortunately, the merged image is the same as the first > > try. is it possible to merge images using the command with the correct color > > table? > > > > BTW: I can not use the gdal_translate command, since there are gaps > > between the reprojected images. > > > > thanks for your info. > > > > zhonghai > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From porath at WEB.DE Tue Jun 6 05:58:08 2006 From: porath at WEB.DE (H. Porath) Date: Tue, 6 Jun 2006 14:58:08 +0200 Subject: performance slows down whe n compiled with gdal Message-ID: Hi Frank, thanks for this hint. I checked out my Makefile and found that we compiled mapserver with fPIC: CFLAGS = -O2 -fPIC -Wall $(FLAGS) CXXFLAGS = -O2 -fPIC -Wall $(FLAGS) "mapserv -v" takes without gdal 94-156 milliseconds and with gdal 203-313 milliseconds. It is only a little bit slower. I think "FastCGI" would only help if the startup was an issue, right? Regards, Holger -----Urspr?ngliche Nachricht----- Von: Frank Warmerdam Gesendet: 06.06.06 13:59:16 An: porath at WEB.DE CC: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] performance slows down when compiled with gdal Holger, How long does a "mapserv -v" report take? I vaguely suspect you are seeing a high cost to loading all the shared libraries, perhaps because some of the shared libraries are having to be link edited into a new location. I know this used to be an issue on Solaris (many years ago) if the -fPIC flag was missed during compiles. If mapserv -v takes 1-2 seconds then you will know that the issue is a "startup cost" issue. I don't see any reason why using GDAL to render from a small PNG file should be slow. 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 _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=000000000071 From warmerdam at POBOX.COM Tue Jun 6 06:19:42 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 6 Jun 2006 09:19:42 -0400 Subject: performance slows down when compiled with gdal In-Reply-To: <588601451@web.de> Message-ID: porath at web.de wrote: > Hi Frank, > > thanks for this hint. I checked out my Makefile and found that we compiled mapserver with fPIC: > CFLAGS = -O2 -fPIC -Wall $(FLAGS) > CXXFLAGS = -O2 -fPIC -Wall $(FLAGS) > > > "mapserv -v" takes without gdal 94-156 milliseconds and with gdal 203-313 milliseconds. It is only a little bit slower. Holger, OK, well, this certainly does not seem to be the problem. > I think "FastCGI" would only help if the startup was an issue, right? FastCGI only helps in avoid high startup overhead - usually in the context of expensive database connections. I'm afraid I don't know why you are seeing such performance degredation but it is definately not typical. You might want to turn on debugging to see if the time is actually spent in drawing the raster layer. Beyond that I'm not too sure how to address the issue. 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 Tue Jun 6 06:28:47 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 6 Jun 2006 09:28:47 -0400 Subject: raster image preprocessing problem. In-Reply-To: <2534c4120606060534q25540704g6804d7cf119b700a@mail.gmail.com> Message-ID: Zhonghai Wang wrote: > and the eror info in the FW Shell is: > > Traceback (most recent call last): > File "C:\programme\FWTOOL~1.0B2\bin\pct2rgb.py", line 46, in import Numeric > ImportError: No module named Numeric Zhonghai, Are you sure you are using this properly from within the FWTools Shell? I just tried: rgb2pct --version And got: GDAL 1.3.2.0, FWTools 1.0.3, released 2006/06/05 It seems like you are somehow using a different python than the one that comes with GDAL, and this other python doesn't include Numeric. 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 kevin at PEOPLEGIS.COM Tue Jun 6 06:49:52 2006 From: kevin at PEOPLEGIS.COM (Kevin Flanders) Date: Tue, 6 Jun 2006 09:49:52 -0400 Subject: index files Message-ID: Does anyone have a batch file for writing index files for all your data in a folder? Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Tue Jun 6 06:53:17 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 6 Jun 2006 09:53:17 -0400 Subject: performance slows down when compiled with gdal Message-ID: Holger - Could you also post your entire map file, so we can have a good look at the whole picture? I'm a heavy GDAL user and have never seen symptoms like yours. - 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: Tuesday, June 06, 2006 9:20 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] performance slows down when compiled with gdal porath at web.de wrote: > Hi Frank, > > thanks for this hint. I checked out my Makefile and found that we compiled mapserver with fPIC: > CFLAGS = -O2 -fPIC -Wall $(FLAGS) > CXXFLAGS = -O2 -fPIC -Wall $(FLAGS) > > > "mapserv -v" takes without gdal 94-156 milliseconds and with gdal 203-313 milliseconds. It is only a little bit slower. Holger, OK, well, this certainly does not seem to be the problem. > I think "FastCGI" would only help if the startup was an issue, right? FastCGI only helps in avoid high startup overhead - usually in the context of expensive database connections. I'm afraid I don't know why you are seeing such performance degredation but it is definately not typical. You might want to turn on debugging to see if the time is actually spent in drawing the raster layer. Beyond that I'm not too sure how to address the issue. 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 jmckenna at DMSOLUTIONS.CA Tue Jun 6 07:09:59 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 6 Jun 2006 10:09:59 -0400 Subject: index files In-Reply-To: Message-ID: see http://mapserver.gis.umn.edu/docs/reference/utilityreference/batch_utilities jeff Kevin Flanders wrote: > Does anyone have a batch file for writing index files for all your data > in a folder? > > > > Kevin > > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From b.vdeijnden at AGI.RWS.MINVENW.NL Tue Jun 6 06:53:32 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Tue, 6 Jun 2006 15:53:32 +0200 Subject: index files Message-ID: for %i in (*.shp) do shptree %i or if you need it to recurse into subdirs starting at c:\mydata do: for /r c:\mydata %i in (*.shp) do shptree %i Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Kevin Flanders Verzonden: dinsdag 6 juni 2006 15:50 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] index files Does anyone have a batch file for writing index files for all your data in a folder? Kevin 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 zhonghaiw at GMAIL.COM Tue Jun 6 08:18:27 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Tue, 6 Jun 2006 17:18:27 +0200 Subject: raster image preprocessing problem. In-Reply-To: <4485830F.6050907@pobox.com> Message-ID: Hi Frank, I've solved the problem. I noticed that there should be an additional Numeric package for Python 2.3.4, and this one is not included in the Python I installed in my computer. I've found this package in Internet and installed it. Now all the commands work well. thank you so much for the feedback. zhonghai On 6/6/06, Frank Warmerdam wrote: > > Zhonghai Wang wrote: > > and the eror info in the FW Shell is: > > > > Traceback (most recent call last): > > File "C:\programme\FWTOOL~1.0B2\bin\pct2rgb.py", line 46, in import > Numeric > > ImportError: No module named Numeric > > Zhonghai, > > Are you sure you are using this properly from within the FWTools Shell? > > I just tried: > rgb2pct --version > > And got: > GDAL 1.3.2.0, FWTools 1.0.3, released 2006/06/05 > > It seems like you are somehow using a different python than the one that > comes with GDAL, and this other python doesn't include Numeric. > > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at CI.STPAUL.MN.US Tue Jun 6 08:26:17 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Tue, 6 Jun 2006 10:26:17 -0500 Subject: [Fwd: Re: WFS gurus . . . .] In-Reply-To: <2576812186CDD411BF1500508B6DCE950D17F271@ecnwri1.ontario.int.ec.gc.ca> Message-ID: All, Some progress, We've managed to add to the PROJ4 EPSG list and verified that it works with a WMS output. So the new EPSG code we added works just fine as a WMS call. Next we tried the same with a WFS call and got an INIT error, which was traced to OGR, so we then (tried to) build Mapserver without GDAL only to learn that WFS requires it to build. So my question is, where is OGR grabbing it's Projection info from? From the code it looks like there is a parser in place, but we couldn't find where it was being referenced. Thanks for all help bobb > -----Original Message----- > From: Bob Basques [mailto:bob.basques at ci.stpaul.mn.us] > Sent: Mon 05-Jun-06 11:29 > To: Kralidis,Tom [Burlington] > Cc: > Subject: Re: [Fwd: Re: WFS gurus . . . .] > > > > Ok, last private one . . . > > Is would be nice to get options for our neighboring Counties as well. I > work on a couple of other metro area committees and Mapping projects > that plan to use MapServer, and I would just as soon use a common format > across all projects if possible. I'm not expecting you or anyone else > to do the work, only expressing the idea in case you come up with some > sort of automatic solution of some sort. :c) > > I can do the grunt work if needed, but I'm not sure I'm the one to > define what the other County info that is supposed to be used for this > or not. There is a County Projection data list at the State of > Minnesota Dept. of Transportation as well. > > If some sort of leg work is needed on this end I'm available to group > things together to add the County information for the State of Minnesota > for example. > > bobb > > > Kralidis,Tom [Burlington] wrote: > > Good question. > > > > What's your actual projection definition? > > > > CubeWerx (http://www.cubewerx.com/) holds the 42xxx projection > > definitions. We've worked with them to establish codes which are not > > natively in EPSG. I've cc'd Craig here for info. > > > > ..Tom > > > > > > > >> -----Original Message----- > >> From: UMN MapServer Users List=20 > >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bob Basques > >> Sent: Monday, June 05, 2006 10:38 AM > >> To: MAPSERVER-USERS at LISTS.UMN.EDU > >> Subject: [UMN_MAPSERVER-USERS] [Fwd: Re: WFS gurus . . . .] > >> =20 > >> =20 > >> Ok, we'll try that. > >> =20 > >> Any rule-of-thumb for assigning an arbitrary code? > >> =20 > >> bobb > >> =20 > >> =20 > >> -------- Original Message -------- > >> Subject: Re: WFS gurus . . . . > >> Date: Mon, 5 Jun 2006 10:32:23 -0400 > >> From: Kralidis,Tom [Burlington] > >> Reply-To: Kralidis,Tom [Burlington] > >> To: MAPSERVER-USERS at LISTS.UMN.EDU > >> =20 > >> =20 > >> =20 > >> > >>> =3D20 > >>> I'm trying to get a WFS output in a local coordinate system. =3D20 =20 > >>> Everything=3D20 works just fine with a EPSG code, but our coordinate = > >>> > > > > > >>> system is not in=3D20 the list. Do we need to add it in in more = > >>> > > than=20 > > > >>> one location? We're=3D20 using a few extensions that all=20 > >>> > >> seem to have=20 > >> > >>> their own=3D20 version of a EPSG=3D20 > >>> code list, different formats and everything. > >>> > >>> > >> =20 > >> What's your projection parameters? If it's indeed not an=20 > >> EPSG code, you'll need to add this to your proj install's=20 > >> epsg file, then cite that EPSG code in your WFS request. =3D20 > >> > >>> All I need is to be able to get the WFS output with a same=20 > >>> coordinate=3D20 system BBOX. Can I get around the EPSG=20 > >>> > >> requirement with=20 > >> > >>> some form of=3D20 fakery? Can the GML be output with a=20 > >>> > >> MODE=3D3D option=20 > >> > >>> perhaps, in it's=3D20 native coordinate system? > >>> > >> =20 > >> > > > > > > > > From Kenton_Williams at UMIT.MAINE.EDU Tue Jun 6 08:27:46 2006 From: Kenton_Williams at UMIT.MAINE.EDU (Kenton Williams) Date: Tue, 6 Jun 2006 11:27:46 -0400 Subject: need help with WMS layer Message-ID: Hello, I'm new to adding WMS layers to my mapfiles and I'm having difficulties with the layer. Here's my layer definition from my Mapfile: LAYER NAME "jpl_landsat7" TYPE RASTER STATUS DEFAULT MAXSCALE 6000000 CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_name" "global_mosaic" "wms_server_version" "1.1.1" "wms_format" "image/jpeg" END END I get the following error from Mapserver (running shp2img): msDrawMap(): WMS connection error. Failed to draw WMS layer named 'jpl_landsat7'. This most likely happened because the remote WMS server returned an invalid image, and XML exception or another unexpected result in response to the GetMap request. Also check and make sure that the layer's connection URL is valid. I don't know exactly what I did incorrectly, since I checked the URL (even copy/pasted it from the JPL site) and have included all of the required information according to the documentation. If anyone could offer a suggestion, I'd appreciate it. Thanks! Kenton Williams From fredlucca at GMAIL.COM Tue Jun 6 08:42:15 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Tue, 6 Jun 2006 12:42:15 -0300 Subject: Problems with querybypoint and shapelib In-Reply-To: <75b4b93e0606020004s64e0b427y314f8ff2ca6d9e17@mail.gmail.com> Message-ID: Hello Humberto, I'm still having problems with my application. I suspect that the problem is the method where I call queryByPoint(), but I don't know why. What about that problem with delete(), I remember that you and others have talked about. Can you give me some light? Best regards, Fred On 6/2/06, Umberto Nicoletti < umberto.nicoletti at gmail.com> wrote: > > On 6/1/06, Frederico Lucca < fredlucca at gmail.com> wrote: > > Umberto, > > > > Yes, I build using --with-threads --with-ogr --with-proj > > Now i will try to make the interface with a newer version of swig. > > I have read your article and I will try to follow him step by step. > > > > Another question, I still need to syncronize my code? > > The answer should be no, but that depends on what components you use. > Oracle spatial or cartoline DOES require synchronized becaus it is not > thread safe. OGR and PROJ are safe (if I recall correctly). > > Umberto > > > > Thanks, > > > > Fred > > > > > > On 6/1/06, Umberto Nicoletti < umberto.nicoletti at gmail.com> wrote: > > > How did you compile mapserver and java mapscript (give the configure > > > arguments exactly)? Did you use the -use-threads argument? > > > > > > Have you read the docs on mapserver web site (search for java): > > > http://mapserver.gis.umn.edu/docs/howto/javamapscript ? > > > > > > Regards, > > > Umberto > > > > > > > > > > > > On 6/1/06, Frederico Lucca wrote: > > > > Hello list, > > > > > > > > After a couple of request at same time my Tomcat broke with this > error: > > > > > > > > # Java VM: Java HotSpot(TM) Server VM ( > > > > 1.5.0_06-b05 mixed mode) > > > > > > > > # Problematic frame: > > > > # C [libc.so.6+0x6c91c] mempcpy+0x1c > > > > # > > > > > > > > --------------- T H R E A D --------------- > > > > > > > > Current thread (0x6d049348): JavaThread "http-8080-Processor23" > daemon > > > > [_thread_in_native, id=11434] > > > > > > > > > > > > siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x00000000 > > > > > > > > Stack: [0x6c06d000,0x6c0ee000), sp=0x6c0ebad4, free space=506k > > > > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, > > C=native > > > > code) > > > > > > > > C [libc.so.6+0x6c91c] mempcpy+0x1c > > > > C [libc.so.6+0x60b08 ] _IO_sgetn+0x28 > > > > C [libc.so.6+0x5548e] _IO_fread+0x8e > > > > C [libmapscript.so+0x6b968] msSHPOpen+0x478 > > > > C [libmapscript.so+0x6bba5] msSHPOpenFile+0x55 > > > > > > > > C [ libmapscript.so+0x6bdce ] msShapeFileLayerOpen+0x8e > > > > C [libmapscript.so+0x95341] msLayerOpen+0x61 > > > > C [libmapscript.so+0x86362] msQueryByPoint+0x172 > > > > C [libmapscript.so+0x57f4d ] layerObj_queryByPoint+0x4d > > > > > > > > C [libmapscript.so+0x57fc1 ] > > > > > > Java_edu_umn_gis_mapscript_mapscriptJNI_layerObj_1queryByPoint+0x61 > > > > j > > > > > > edu.umn.gis.mapscript.mapscriptJNI.layerObj_queryByPoint(JJJID)I+0 > > > > > > > > --------------- S Y S T E M --------------- > > > > > > > > > > > > OS:Mandriva Linux release 2007.0 (Cooker) for i586 > > > > > > > > uname:Linux 2.6.16-1mdksmp #1 SMP Fri May 19 19:16:59 CEST 2006 i686 > > > > libc:glibc 2.4 NPTL 2.4 > > > > > > > > > > > > I have already heard about a problem with swig and java, how can I > fix > > it if > > > > this is the problem? > > > > > > > > Could somebody help me? > > > > > > > > Thanks in advance, > > > > > > > > Fred > > > > > > > > > > > > -- > > > > "Everything under the sun is in tune > > > > But the sun is eclipsed by the moon" > > > > > > > > > > > > > > > -- > > > > "Everything under the sun is in tune > > But the sun is eclipsed by the moon" > -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Tue Jun 6 09:29:53 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 6 Jun 2006 12:29:53 -0400 Subject: [Fwd: Re: WFS gurus . . . .] In-Reply-To: <44859E99.7070903@ci.stpaul.mn.us> Message-ID: Bob Basques wrote: > All, > > Some progress, > > We've managed to add to the PROJ4 EPSG list and verified that it works > with a WMS output. So the new EPSG code we added works just fine as a > WMS call. > > Next we tried the same with a WFS call and got an INIT error, which was > traced to OGR, so we then (tried to) build Mapserver without GDAL only > to learn that WFS requires it to build. So my question is, where is OGR > grabbing it's Projection info from? From the code it looks like there > is a parser in place, but we couldn't find where it was being referenced. Bob, OGR creates it's EPSG coordinate system information from the pcs.csv and gcs.csv tables distributed with GDAL. Note that periodically these tables are regenerated from the EPSG database, and these .csv files are the basis of generating the PROJ.4 epsg translation file. In theory you can extend the pcs.csv with your projections but the format is a bit esoteric. I believe you can add Well Known Text format definitions to the "epsg.wkt" file in gdal/data to add stuff not in the pcs.csv and gcs.csv files though I haven't used this mechanism for a while. This is what I use to add Cubewerx and ESRI extensions to the EPSG dataset. See gdal/data/cubewerx_extra.wkt for examples of how the definitions would be formatted. 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 bob.basques at CI.STPAUL.MN.US Tue Jun 6 09:32:51 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Tue, 6 Jun 2006 11:32:51 -0500 Subject: [Fwd: Re: WFS gurus . . . .] In-Reply-To: Message-ID: Frank, This is exactly what we we're looking for. I guess we just needed to dig far enough to get our terminology right to ask the question(s) Thanks bobb Frank Warmerdam wrote: > Bob Basques wrote: > >> All, >> >> Some progress, >> >> We've managed to add to the PROJ4 EPSG list and verified that it works >> with a WMS output. So the new EPSG code we added works just fine as a >> WMS call. >> >> Next we tried the same with a WFS call and got an INIT error, which was >> traced to OGR, so we then (tried to) build Mapserver without GDAL only >> to learn that WFS requires it to build. So my question is, where is OGR >> grabbing it's Projection info from? From the code it looks like there >> is a parser in place, but we couldn't find where it was being referenced. >> > > Bob, > > OGR creates it's EPSG coordinate system information from the pcs.csv and > gcs.csv tables distributed with GDAL. Note that periodically these > tables are regenerated from the EPSG database, and these .csv files are > the basis of generating the PROJ.4 epsg translation file. > > In theory you can extend the pcs.csv with your projections but the format > is a bit esoteric. > > I believe you can add Well Known Text format definitions to the "epsg.wkt" > file in gdal/data to add stuff not in the pcs.csv and gcs.csv files though > I haven't used this mechanism for a while. This is what I use to add > Cubewerx and ESRI extensions to the EPSG dataset. > > See gdal/data/cubewerx_extra.wkt for examples of how the definitions would > be formatted. > > Best regards, > From julien.63 at FREE.FR Tue Jun 6 09:39:49 2006 From: julien.63 at FREE.FR (Julien Bessiere) Date: Tue, 6 Jun 2006 18:39:49 +0200 Subject: php_Mapscript - display new layer Message-ID: Hi, I'm quite new in php_mapscript. So i start with simple thing! I try to display a point throught map_script, but i doesn't appear on the map. Could you what's wrong in my file? How could i define the location (-90.0 , 10.0) of this point? Do you have some good tutorials or example for using the php_mapscript class? Thx for your help. Julien ____________________________________________ Php file : set("name","bird"); $layer->set("type",MS_DEFAULT); $layer->set("type",MS_LAYER_POINT); $class = ms_newClassObj($layer); $style = ms_newStyleObj($class); $style->color->setRGB(0,0,0); $style->set('size','40'); $style->outlinecolor->setRGB(255,0,0); $image=$map->draw(); $img_path = "/home/julien/fgs/www/htdocs/tmp/"; $map_id = sprintf("%0.6d",rand(0,999999)); $image_name = "third_simple".$map_id.".png"; $image->saveImage($img_path.$image_name); $image_url = '../../tmp/'.$image_name; ?> :::: Displaying a very simple map :::: > _________________________________ Map file: NAME "simple" UNITS DD EXTENT -180.00 -90.00 180.00 90.00 SIZE 700 400 IMAGECOLOR 100 100 100 IMAGETYPE PNG SHAPEPATH "/home/julien/fgs/www/htdocs/12/data" FONTSET "/home/julien/fgs/www/htdocs/fontset.txt" SYMBOL NAME "point" TYPE pixmap IMAGE "/home/julien/fgs/www/htdocs/12/images/point.png" END SYMBOL NAME "rond" TYPE ELLIPSE POINTS 1 1 END END ##################################### # countries layer # LAYER NAME "Country" DATA "countries" STATUS on TYPE polygon LABELCACHE on LABELITEM "COUNTRY" CLASS STYLE COLOR 50 50 100 END END END END mapfile From Mark.Adams at DPRA.COM Tue Jun 6 11:56:11 2006 From: Mark.Adams at DPRA.COM (Mark Adams) Date: Tue, 6 Jun 2006 13:56:11 -0500 Subject: problem with ogr oracle spatial layer Message-ID: Hi all, I've been trying to publish an oracle spatial layer in mapserver/mapscript using OGR, with no success. Mapserver tells me "file not found or unsupported format"; running ogrinfo I get: "C:\Inetpub\mapserver>ogrinfo --debug on oci:minfwhse_p1/minfwhse_p1 at normin.ad.dp ra.com references OCI: Userid=minfwhse_p1, Password=minfwhse_p1, Database=normin.ad.dpra.com OCI: OCIEnvCreate() failed with status 2083788472. Presumably Oracle is not properly installed, skipping. OGR: OGROpen(oci:minfwhse_p1/minfwhse_p1 at normin.ad.dpra.com) failed. OCI: Userid=minfwhse_p1, Password=minfwhse_p1, Database=normin.ad.dpra.com OCI: OCIEnvCreate() failed with status 2083788472. Presumably Oracle is not properly installed, skipping. OGR: OGROpen(oci:minfwhse_p1/minfwhse_p1 at normin.ad.dpra.com) failed. FAILURE: Unable to open datasource `oci:minfwhse_p1/minfwhse_p1 at normin.ad.dpra.com' with the following drivers. -> OCI" etc Any ideas about what OGR is looking for here? -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 C.Wilmes at GMX.DE Tue Jun 6 07:05:30 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Tue, 6 Jun 2006 16:05:30 +0200 Subject: OGR doesn't work after compiling mapserver!? Message-ID: Hi All, I've compiled the mapserver with VS2005 .NET 2.0 and know my WFS doesn't work. I'm using "Virtual Spatial Data" because the data is in a PostgreSQL-DB. I'm using the mapfile, which I was using before compiling the mapserver but now it doesn't work. I have tested the ogv-file for the connection to the database again with ogrinfo and it works. Testing the WFS with a getCapabilities from the browser returns the following document: - - - As you can see the mapserver supports ogr- and gdal-input so it have to work in my opinion. In the error.log of the Apache I find the following lines: [Tue Jun 06 15:54:53 2006] [error] [client 127.0.0.1] msOGRFileOpen(PostgreSQL.ovf)...\r [Tue Jun 06 15:54:53 2006] [error] [client 127.0.0.1] OGROPen(c:\\ms4w\\PostgreSQL.ovf)\r I've got no idea where and how to search the mistake and would be very thankfull for any idea. Best Regards Christian -- "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail From jsievers at CO.LINN.OR.US Tue Jun 6 15:50:58 2006 From: jsievers at CO.LINN.OR.US (Sievers, Jason) Date: Tue, 6 Jun 2006 15:50:58 -0700 Subject: HTML Legend Template File Message-ID: I have an HTML legend template file that is causing me problems. I enter the file, do some stuff, everything works fine. But in a JavaScript block of code I can get through a couple JavaScript statements but then the template file is exited and returns to where it was before calling the template file. Here is the code for the legend template file. [leg_layer_html order_metadata=orderby opt_flag=15] [if name=display oper=isset] [if name=grp oper=isset] [/if] [/if] [/leg_layer_html] The last JavaScript statement "thegrp = thisdisplay + "_GROUP";" is where the exit occurs. When I remove this line from the code all works fine again. I know that there is nothing wrong with this line of code and so am confused as to what is going on. Also I have tested by removing that last line of JavaScript code and then inserted several carriage returns. This also breaks the template file and causes an exit. I am very confused by this am open to any thoughts. Thanks, Jason Sievers -------------- next part -------------- An HTML attachment was scrubbed... URL: From angusd at MIDWESTSURVEYS.COM Tue Jun 6 11:10:12 2006 From: angusd at MIDWESTSURVEYS.COM (Angus Dickey) Date: Tue, 6 Jun 2006 12:10:12 -0600 Subject: GDAL, Mapserver and PostGIS Message-ID: Hello all, I notice both GDAL and Mapserver have options to be compiled with support for PostGIS. Is it necessary to compile PostGIS support into GDAL as well as the Mapserver executable? Also do Postgresql/PostGIS have to be installed on the machine compiling (then running) Mapserver? Or are there just certain PostGIS libraries that can be applied? Thanks for any help, ~Angus From warmerdam at POBOX.COM Tue Jun 6 18:36:25 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 6 Jun 2006 21:36:25 -0400 Subject: problem with ogr oracle spatial layer In-Reply-To: <49B9846C39F25A4FA90106497086161074BB7B@mhk-ex1.ad.dpra.com> Message-ID: Mark Adams wrote: > OCI: OCIEnvCreate() failed with status 2083788472. > > Presumably Oracle is not properly installed, skipping. Mark, Based on this, I would say the problem is not with your connection string or something later. But rather is somehow related to the version of libraries being used. This error message is produced by the following code: if( ghOracleEnvironment == NULL ) { nStatus = OCIEnvCreate( &ghOracleEnvironment, OCI_OBJECT, (dvoid *)0, 0, 0, 0, (size_t) 0, (dvoid **)0 ); if( nStatus == -1 || ghOracleEnvironment == NULL ) { CPLDebug("OCI", "OCIEnvCreate() failed with status %d.\n" "Presumably Oracle is not properly installed, skipping."); return FALSE; } } As you can see, there is no meaningful arguments passed to OCIEnvCreate() so the problem would appear to be regardless of anything about mapserver, or GDAL. I would suggest looking into OCI library versions and setup. Do other OCI client programs work on this system? You might also try looking up the error code in the Oracle error database. 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 Tue Jun 6 22:26:22 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Wed, 7 Jun 2006 07:26:22 +0200 Subject: GDAL, Mapserver and PostGIS Message-ID: Hi, the preferred way to access PostGIS is through Mapserver. So you don't need to compile PostGIS support into OGR (the vector part of GDAL). You need the PostgreSQL client libraries in order to compile, aka libpq. Runtime you also need the libpq .dll or .so depending on your platform. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Angus Dickey Verzonden: dinsdag 6 juni 2006 20:10 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] GDAL, Mapserver and PostGIS Hello all, I notice both GDAL and Mapserver have options to be compiled with support for PostGIS. Is it necessary to compile PostGIS support into GDAL as well as the Mapserver executable? Also do Postgresql/PostGIS have to be installed on the machine compiling (then running) Mapserver? Or are there just certain PostGIS libraries that can be applied? Thanks for any help, ~Angus 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 porath at WEB.DE Tue Jun 6 22:56:43 2006 From: porath at WEB.DE (H. Porath) Date: Wed, 7 Jun 2006 07:56:43 +0200 Subject: performance slows down whe n compiled with gdal Message-ID: Hi Ed, thanks for attending to my issue. Here is my entire map file: MAP OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END IMAGETYPE PNG EXTENT 3410000 5470000 3666000 5726000 SIZE 315 315 SHAPEPATH "/application/lika-common/docs/stores/" IMAGECOLOR 255 255 255 NAME wms_raster WEB METADATA "wms_title" "WMSTest-raster" "wms_onlineresource" "http://firebird.intern.hessen.de/cgi-bin/lika-services/wmstest.plx?" "wms_srs" "EPSG:31467" "WMS_FEATURE_INFO_MIME_TYPE" "text/plain" END END PROJECTION "init=epsg:31467" END LAYER METADATA "wms_title" "huek-b256" END PROJECTION "init=epsg:31467" END NAME huek-b256 DATA tk_store/B256km/34105470.png TYPE RASTER STATUS ON END # layer END # map Regards, Holger -----Urspr?ngliche Nachricht----- Von: Ed McNierney Gesendet: 06.06.06 16:53:42 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] performance slows down when compiled with gdal Holger - Could you also post your entire map file, so we can have a good look at the whole picture? I'm a heavy GDAL user and have never seen symptoms like yours. - 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 _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=000000000071 From porath at WEB.DE Wed Jun 7 02:12:12 2006 From: porath at WEB.DE (H. Porath) Date: Wed, 7 Jun 2006 11:12:12 +0200 Subject: performance slows down whe n compiled with gdal Message-ID: Hi Frank, i turned on debugging and found the following entries for a request: [Wed Jun 7 11:04:17 2006].332715 msDrawMap(): Layer 16 (huek-b256), 0.040s [Wed Jun 7 11:04:17 2006].333253 msDrawMap(): Drawing Label Cache, 0.000s [Wed Jun 7 11:04:17 2006].333382 msDrawMap() total time: 0.045s This seems to be very fast. The Apache Log reports 3 seconds for the same request. Does this mean that it is still a startup issue? Regards, Holger -----Urspr?ngliche Nachricht----- Von: Frank Warmerdam Gesendet: 06.06.06 15:44:53 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] performance slows down when compiled with gdal porath at web.de wrote: > Hi Frank, > > thanks for this hint. I checked out my Makefile and found that we compiled mapserver with fPIC: > CFLAGS = -O2 -fPIC -Wall $(FLAGS) > CXXFLAGS = -O2 -fPIC -Wall $(FLAGS) > > > "mapserv -v" takes without gdal 94-156 milliseconds and with gdal 203-313 milliseconds. It is only a little bit slower. Holger, OK, well, this certainly does not seem to be the problem. > I think "FastCGI" would only help if the startup was an issue, right? FastCGI only helps in avoid high startup overhead - usually in the context of expensive database connections. I'm afraid I don't know why you are seeing such performance degredation but it is definately not typical. You might want to turn on debugging to see if the time is actually spent in drawing the raster layer. Beyond that I'm not too sure how to address the issue. 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 _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=000000000071 From zhonghaiw at GMAIL.COM Wed Jun 7 02:30:38 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Wed, 7 Jun 2006 11:30:38 +0200 Subject: MapServer Loggile in IIS. Message-ID: Hi guys, I get some strange symptoms with the Logfile. After I installed MapServer with IIS on WinXP or WIN Server 2003, all the log information is automatically written as part of the content of my map browser, but in Apache, this information is written to the server logfile. I made the following definitions and settings in my application: ************ MAP . . . DEBUG ON . . . WEB . . LOG "C:/ms4w/LogFiles/MapServer.log" # this file is already set writable in IIS . . END . . . END ************* should there be some special settings for IIS? or I just set something wrong above? I appreciate your info. zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From epk.lists at GMAIL.COM Wed Jun 7 05:37:35 2006 From: epk.lists at GMAIL.COM (Eduardo Patto Kanegae) Date: Wed, 7 Jun 2006 09:37:35 -0300 Subject: MySQL/PostGreSQL like MS4W - extract and run Message-ID: Hi folks, Does anybody know any package similar to MS4W for MySQL and PostgreSQL servers? best regards -- Eduardo Patto Kanegae http://www.webmapit.com.br -------------- next part -------------- An HTML attachment was scrubbed... URL: From adams at TERRESTRIS.DE Wed Jun 7 05:57:00 2006 From: adams at TERRESTRIS.DE (Till Adams) Date: Wed, 7 Jun 2006 14:57:00 +0200 Subject: MySQL/PostGreSQL like MS4W - extract and run In-Reply-To: <2d1782780606070537q51a3ca31hab1d71de54f27b6c@mail.gmail.com> Message-ID: Eduardo, look for the "GDIdevL" Project, This is an "Linux-Iso" running in "Qemu" on a windows board. GDIdevL delivers everything: UMN, Mapbender on PostgreSQL/PostGIs and also mapbender client. Download a test-version on our pages (google for GDIdevL). Cheers, Till Eduardo Patto Kanegae schrieb: > Hi folks, > > Does anybody know any package similar to MS4W for MySQL and PostgreSQL > servers? > > best regards > > -- > Eduardo Patto Kanegae > http://www.webmapit.com.br -- ****************************************** * released: AmeiN! ArcMap-Export-2-UMN * * LiveLinux 'WebGIS on CD' * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From Mark.Adams at DPRA.COM Wed Jun 7 06:09:38 2006 From: Mark.Adams at DPRA.COM (Mark Adams) Date: Wed, 7 Jun 2006 08:09:38 -0500 Subject: problem with ogr oracle spatial layer Message-ID: Yikes. Can you give any pointers as to what I should be looking at? In terms of setting up the environment, all I've done is install the Oracle 9i client on the web server, and mapserver/mapscript with a version of gdal compiled with the ogr_oci dll as a plugin. To have the plugin recognized I set the GDAL_DRIVER_PATH variable (until then ogrinfo didn't recognize OCI as a supported format) to the Windows\system32 folder where this dll resides. What do you mean by other OCI client programs? Oracle client itself has no troubles connecting to the database. Also, 2083788472 doesn't look like an Oracle error code? (Aren't they usually "ORA-XXXXX"?) 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: Frank Warmerdam [mailto:fwarmerdam at gmail.com] On Behalf Of Frank Warmerdam Sent: June 6, 2006 9:36 PM To: Mark Adams Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] problem with ogr oracle spatial layer Mark Adams wrote: > OCI: OCIEnvCreate() failed with status 2083788472. > > Presumably Oracle is not properly installed, skipping. Mark, Based on this, I would say the problem is not with your connection string or something later. But rather is somehow related to the version of libraries being used. This error message is produced by the following code: if( ghOracleEnvironment == NULL ) { nStatus = OCIEnvCreate( &ghOracleEnvironment, OCI_OBJECT, (dvoid *)0, 0, 0, 0, (size_t) 0, (dvoid **)0 ); if( nStatus == -1 || ghOracleEnvironment == NULL ) { CPLDebug("OCI", "OCIEnvCreate() failed with status %d.\n" "Presumably Oracle is not properly installed, skipping."); return FALSE; } } As you can see, there is no meaningful arguments passed to OCIEnvCreate() so the problem would appear to be regardless of anything about mapserver, or GDAL. I would suggest looking into OCI library versions and setup. Do other OCI client programs work on this system? You might also try looking up the error code in the Oracle error database. 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 Jun 7 06:35:44 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 7 Jun 2006 09:35:44 -0400 Subject: performance slows down when compiled with gdal In-Reply-To: <590258629@web.de> Message-ID: porath at web.de wrote: > Hi Frank, > > i turned on debugging and found the following entries for a request: > [Wed Jun 7 11:04:17 2006].332715 msDrawMap(): Layer 16 (huek-b256), 0.040s > [Wed Jun 7 11:04:17 2006].333253 msDrawMap(): Drawing Label Cache, 0.000s > [Wed Jun 7 11:04:17 2006].333382 msDrawMap() total time: 0.045s > > This seems to be very fast. The Apache Log reports 3 seconds for the same request. > > Does this mean that it is still a startup issue? Holger, Well, it indicates it isn't a rendering problem. The above times don't include the time to save the file to png/jpeg/gif so it could be spending an inordinate amount of time doing that for some reason. But I still suspect some odd initialization things is taking a lot of time. If I had direct access to the system I would try reproducing the exact mapserv request and invoking it at the commandline. First as your regular user, and then in an environment as close a possible to Apache's. I would next likely add some extra timing debug messages to track time from mapserv startup to shutdown. That would help isolate if the delay is before entering main or somewhere later. 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 Jun 7 07:18:04 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 7 Jun 2006 10:18:04 -0400 Subject: problem with ogr oracle spatial layer In-Reply-To: <49B9846C39F25A4FA90106497086161074BC01@mhk-ex1.ad.dpra.com> Message-ID: Mark Adams wrote: > Yikes. Can you give any pointers as to what I should be looking at? In > terms of setting up the environment, all I've done is install the Oracle > 9i client on the web server, and mapserver/mapscript with a version of > gdal compiled with the ogr_oci dll as a plugin. To have the plugin > recognized I set the GDAL_DRIVER_PATH variable (until then ogrinfo > didn't recognize OCI as a supported format) to the Windows\system32 > folder where this dll resides. > > What do you mean by other OCI client programs? Oracle client itself has > no troubles connecting to the database. Also, 2083788472 doesn't look > like an Oracle error code? (Aren't they usually "ORA-XXXXX"?) Mark, I'm afraid I don't really know where to start. The error is very unusual as it is just the most basic initialization step, before even any attempt is made to contact the database or anything like that. Errors formatted by the Oracle error reporting functions normally start with ORA-, but in this case we don't even have error report services working yet, and so just have a raw 32bit integer status code. I read through the OCIEnvCreate() docs for Oracle 9 OCI and it does not give any clues about what might cause a failure. I really suspect it is some sort of runtime problem ... perhaps picking up the wrong oci shared library or something like that. I'm sorry I'm not more help. 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 hobu at IASTATE.EDU Wed Jun 7 07:48:15 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Wed, 7 Jun 2006 09:48:15 -0500 Subject: problem with ogr oracle spatial layer In-Reply-To: Message-ID: Mark, IIRC, the ogr_OCI.dll was linked against Oracle 10g. Is it possible you have a 9i oci.dll somewhere in your path that it is picking up when attempting to initialize? Howard At 09:18 AM 6/7/2006, Frank Warmerdam wrote: >Mark Adams wrote: > > Yikes. Can you give any pointers as to what I should be looking at? In > > terms of setting up the environment, all I've done is install the Oracle > > 9i client on the web server, and mapserver/mapscript with a version of > > gdal compiled with the ogr_oci dll as a plugin. To have the plugin > > recognized I set the GDAL_DRIVER_PATH variable (until then ogrinfo > > didn't recognize OCI as a supported format) to the Windows\system32 > > folder where this dll resides. > > > > What do you mean by other OCI client programs? Oracle client itself has > > no troubles connecting to the database. Also, 2083788472 doesn't look > > like an Oracle error code? (Aren't they usually "ORA-XXXXX"?) > >Mark, > >I'm afraid I don't really know where to start. The error is very unusual >as it is just the most basic initialization step, before even any attempt >is made to contact the database or anything like that. > >Errors formatted by the Oracle error reporting functions normally start >with ORA-, but in this case we don't even have error report services working >yet, and so just have a raw 32bit integer status code. > >I read through the OCIEnvCreate() docs for Oracle 9 OCI and it does not >give any clues about what might cause a failure. > >I really suspect it is some sort of runtime problem ... perhaps picking >up the wrong oci shared library or something like that. > >I'm sorry I'm not more help. > >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 ltrevino at GPOBSI.COM.MX Wed Jun 7 08:52:43 2006 From: ltrevino at GPOBSI.COM.MX (=?iso-8859-1?Q?Luis_Trevi=F1o_Huerta?=) Date: Wed, 7 Jun 2006 10:52:43 -0500 Subject: using WKT [text] in the feature object Message-ID: Hi list, Reviewing the mapserver on-line documentation, I found the WKT [text] "feature" into the feature object. since which version this option works? Regards, Luis From warmerdam at POBOX.COM Wed Jun 7 09:02:34 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 7 Jun 2006 12:02:34 -0400 Subject: using WKT [text] in the feature object In-Reply-To: <00a401c68a4a$6ba53540$4101a8c0@PAVILION> Message-ID: Luis Trevi?o Huerta wrote: > Hi list, > > Reviewing the mapserver on-line documentation, I found the WKT [text] > "feature" into the feature object. since which version this option works? Luis, It was introduced in MapServer 4.8. I believe it depends on have at least one of OGR or GEOS built into mapserver. There is an RFC with some details on how this works in the Development->RFCs area of the web site. 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 rburghol at CHESAPEAKEBAY.NET Wed Jun 7 08:52:40 2006 From: rburghol at CHESAPEAKEBAY.NET (Robert Burgholzer) Date: Wed, 7 Jun 2006 11:52:40 -0400 Subject: fontset tag kills map Message-ID: I am trying to use labels in mapserver 4.8.3 but even defining a FONTSET tag in my map file kills the initialization of the map in php_mapscript. I can have a label layer, as long as it is OFF, but the minute that I put a FONTSET tag in my map file, or turn the layer ON, it dies without error. Fonts are in the directory in question and have permission 744. Any ideas as to what may be the trouble? PHP is compiled with freetype support, as is mapserver: Below is the message configure gives: configure: checking where FreeType 2.x is installed... using libfreetype from -L/usr/lib64 -Wl,--rpath -Wl,/usr/lib64 -lfreetype -lz checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. Robert W. Burgholzer Nonpoint Source Data Analyst University of Maryland, College Park Chesapeake Bay Program Office 410 Severn Avenue, Suite 305B Annapolis, MD, 21403 Phone: (410) 267-5779 rburghol at chesapeakebay.net http://www.chesapeakebay.net/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mark.Adams at DPRA.COM Wed Jun 7 09:19:27 2006 From: Mark.Adams at DPRA.COM (Mark Adams) Date: Wed, 7 Jun 2006 11:19:27 -0500 Subject: problem with ogr oracle spatial layer Message-ID: An update on my OGR OCI woes: I have got it working. When originally setting up the test to connect to my oracle spatial layer I'd followed instructions on the mapserver website that called for the creation of 3 environment variables, for ORACLE_HOME, ORACLE_SID, and TNS_ADMIN. I deleted those environment variables, rebooted the machine, and now I can connect through ogrinfo and mapserver. However, I am finding the performance of all ogr approaches to my oracle data to be very slow. I'd started out with using OVF virtual data connections, and found that to be too slow to be workable: about 6 seconds to draw 6000 geometries but timing out on querybyrectangle functions. So the move to oracle spatial was a test to see if performance is better. With the OCI connection it now takes 3 or 4 seconds to display the layer, which I'd consider to still be very slow, but at least the queries don't time out. A shapefile with the same geometries displays in half a second. I'd understood that the OVF approach meant no spatial indexing is involved, but the same shouldn't be true for the oracle spatial approach - there is an rtree index on the layer. Is there a way to improve the OGR OCI performance? Alternately, would the mapserver native oracle spatial support be a better way to go? Thanks for any and all advice. ------------------------------ 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: June 7, 2006 10:18 AM To: Mark Adams Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] problem with ogr oracle spatial layer Mark Adams wrote: > Yikes. Can you give any pointers as to what I should be looking at? In > terms of setting up the environment, all I've done is install the Oracle > 9i client on the web server, and mapserver/mapscript with a version of > gdal compiled with the ogr_oci dll as a plugin. To have the plugin > recognized I set the GDAL_DRIVER_PATH variable (until then ogrinfo > didn't recognize OCI as a supported format) to the Windows\system32 > folder where this dll resides. > > What do you mean by other OCI client programs? Oracle client itself has > no troubles connecting to the database. Also, 2083788472 doesn't look > like an Oracle error code? (Aren't they usually "ORA-XXXXX"?) Mark, I'm afraid I don't really know where to start. The error is very unusual as it is just the most basic initialization step, before even any attempt is made to contact the database or anything like that. Errors formatted by the Oracle error reporting functions normally start with ORA-, but in this case we don't even have error report services working yet, and so just have a raw 32bit integer status code. I read through the OCIEnvCreate() docs for Oracle 9 OCI and it does not give any clues about what might cause a failure. I really suspect it is some sort of runtime problem ... perhaps picking up the wrong oci shared library or something like that. I'm sorry I'm not more help. 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 Wed Jun 7 10:32:48 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 7 Jun 2006 13:32:48 -0400 Subject: performance slows down when compiled with gdal Message-ID: Holger - The times you see also do not include the time required to load, parse, and "set up" the map file. However, your map file seems quite plain and there's nothing in there that seems like it would require much work. You could try to measure the map file load time, but you'll need to make some modifications and recompile MapServer to do that - let me know if you want some advice on doing that. Do you happen to have an exceptionally large EPSG text file, or is it stored in a hard-to-access (i.e. slow) location? Your EPSG projection definitions need to be looked up in that file, and a very large or slow file would slow things down. I cannot imagine, however, how that could possibly cause 3 seconds of delay. It might be helpful to look at the timestamps in the log file to see if the extra three seconds are coming BEFORE the map drawing events, or AFTER them. That would at least help indicate whether it's a startup/mapfile problem or an output file saving problem. - 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 Frank Warmerdam Sent: Wednesday, June 07, 2006 9:36 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] performance slows down when compiled with gdal porath at web.de wrote: > Hi Frank, > > i turned on debugging and found the following entries for a request: > [Wed Jun 7 11:04:17 2006].332715 msDrawMap(): Layer 16 (huek-b256), > 0.040s [Wed Jun 7 11:04:17 2006].333253 msDrawMap(): Drawing Label > Cache, 0.000s [Wed Jun 7 11:04:17 2006].333382 msDrawMap() total > time: 0.045s > > This seems to be very fast. The Apache Log reports 3 seconds for the same request. > > Does this mean that it is still a startup issue? Holger, Well, it indicates it isn't a rendering problem. The above times don't include the time to save the file to png/jpeg/gif so it could be spending an inordinate amount of time doing that for some reason. But I still suspect some odd initialization things is taking a lot of time. If I had direct access to the system I would try reproducing the exact mapserv request and invoking it at the commandline. First as your regular user, and then in an environment as close a possible to Apache's. I would next likely add some extra timing debug messages to track time from mapserv startup to shutdown. That would help isolate if the delay is before entering main or somewhere later. 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 Jun 7 11:18:52 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 7 Jun 2006 14:18:52 -0400 Subject: problem with ogr oracle spatial layer In-Reply-To: <49B9846C39F25A4FA90106497086161074BC66@mhk-ex1.ad.dpra.com> Message-ID: Mark Adams wrote: > An update on my OGR OCI woes: I have got it working. When originally > setting up the test to connect to my oracle spatial layer I'd followed > instructions on the mapserver website that called for the creation of 3 > environment variables, for ORACLE_HOME, ORACLE_SID, and TNS_ADMIN. I > deleted those environment variables, rebooted the machine, and now I can > connect through ogrinfo and mapserver. Mark, I'll have to make a mental note to suggest avoiding those in the future if people have odd Oracle problems. > However, I am finding the performance of all ogr approaches to my oracle > data to be very slow. I'd started out with using OVF virtual data > connections, and found that to be too slow to be workable: about 6 > seconds to draw 6000 geometries but timing out on querybyrectangle > functions. So the move to oracle spatial was a test to see if > performance is better. With the OCI connection it now takes 3 or 4 > seconds to display the layer, which I'd consider to still be very slow, > but at least the queries don't time out. > > A shapefile with the same geometries displays in half a second. I'd > understood that the OVF approach meant no spatial indexing is involved, > but the same shouldn't be true for the oracle spatial approach - there > is an rtree index on the layer. > > Is there a way to improve the OGR OCI performance? Alternately, would > the mapserver native oracle spatial support be a better way to go? One thing to establish is how much of the slowness is connection time and also to be aware of how many connections are being made to the database. For this I would encourage you to do some tests at the commandline with ogrinfo. For instance do an ogrinfo on your database to just list the tables. If that takes a long time (ie. more than 1 second) then it is likely that most of the performance is being lost in making the initial connection and/or building schema information about the tables in the database. If there are a lot of layers reported, then it may help to explicitly list the table(s) you are interested in within the datasource name so OGR doesn't have to build a schema for everything. If the simple listing of layers with ogrinfo doesn't take too long, then the next step would be to query features and see if this is slow especially with a spatial restriction. You can use the -spat commandline option to ogrinfo to restrict the query to a small region. This should give you a sense of whether ogr can extract a small spatial area with only a few features efficiently. It should be able to. Ultimately, if connection cost is the major issue, you might want to investigate using FastCGI. However, I don't know if there is an equivelent for PHP applications. 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 pramsey at REFRACTIONS.NET Wed Jun 7 11:59:30 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Wed, 7 Jun 2006 11:59:30 -0700 Subject: MySQL/PostGreSQL like MS4W - extract and run In-Reply-To: <2d1782780606070537q51a3ca31hab1d71de54f27b6c@mail.gmail.com> Message-ID: http://www.postgresql.org/ftp/binary/v8.1.4/win32/ The 'noinst' version is just binaries, though you would have to make something like the install.bat file to install pgsql as a service, initialize a database, etc. http://www.webbased.co.uk/mca/pg81/postgis-pg81-setup-1.1.2-1.exe On 7-Jun-06, at 5:37 AM, Eduardo Patto Kanegae wrote: > Hi folks, > > Does anybody know any package similar to MS4W for MySQL and > PostgreSQL servers? > > best regards > > -- > Eduardo Patto Kanegae > http://www.webmapit.com.br From Mark.Adams at DPRA.COM Wed Jun 7 12:24:15 2006 From: Mark.Adams at DPRA.COM (Mark Adams) Date: Wed, 7 Jun 2006 14:24:15 -0500 Subject: problem with ogr oracle spatial layer Message-ID: Frank, Running ogrinfo on the command line, the connection is fast (especially if the layer name is specified). In general the results from spatial and/or attribute queries run at the command line are fast as well, i.e. the result back from oracle happens right away, after which it's really just the time it takes to flash the results on screen. Despite all this, it still takes 3 to 4 seconds to draw the layer at full extents (I'm going by the debug info from mapserver). If the OGR work is taking less than a second, the rest is the actual map rendering time? Could this be related to the data itself? (In my case the data covers a huge swath of northern Canada, with lots of polygons overlapping and covering large geographical areas. But then again, it draws in a quarter second if I convert to a shapefile.) We are already specifying the layer name explicitly, and have PHP set up to use fastcgi. The mapserver build we're using is also compiled with fastcgi support. ------------------------------ 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: June 7, 2006 2:19 PM To: Mark Adams Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] problem with ogr oracle spatial layer Mark Adams wrote: > An update on my OGR OCI woes: I have got it working. When originally > setting up the test to connect to my oracle spatial layer I'd followed > instructions on the mapserver website that called for the creation of 3 > environment variables, for ORACLE_HOME, ORACLE_SID, and TNS_ADMIN. I > deleted those environment variables, rebooted the machine, and now I can > connect through ogrinfo and mapserver. Mark, I'll have to make a mental note to suggest avoiding those in the future if people have odd Oracle problems. > However, I am finding the performance of all ogr approaches to my oracle > data to be very slow. I'd started out with using OVF virtual data > connections, and found that to be too slow to be workable: about 6 > seconds to draw 6000 geometries but timing out on querybyrectangle > functions. So the move to oracle spatial was a test to see if > performance is better. With the OCI connection it now takes 3 or 4 > seconds to display the layer, which I'd consider to still be very slow, > but at least the queries don't time out. > > A shapefile with the same geometries displays in half a second. I'd > understood that the OVF approach meant no spatial indexing is involved, > but the same shouldn't be true for the oracle spatial approach - there > is an rtree index on the layer. > > Is there a way to improve the OGR OCI performance? Alternately, would > the mapserver native oracle spatial support be a better way to go? One thing to establish is how much of the slowness is connection time and also to be aware of how many connections are being made to the database. For this I would encourage you to do some tests at the commandline with ogrinfo. For instance do an ogrinfo on your database to just list the tables. If that takes a long time (ie. more than 1 second) then it is likely that most of the performance is being lost in making the initial connection and/or building schema information about the tables in the database. If there are a lot of layers reported, then it may help to explicitly list the table(s) you are interested in within the datasource name so OGR doesn't have to build a schema for everything. If the simple listing of layers with ogrinfo doesn't take too long, then the next step would be to query features and see if this is slow especially with a spatial restriction. You can use the -spat commandline option to ogrinfo to restrict the query to a small region. This should give you a sense of whether ogr can extract a small spatial area with only a few features efficiently. It should be able to. Ultimately, if connection cost is the major issue, you might want to investigate using FastCGI. However, I don't know if there is an equivelent for PHP applications. 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 Jun 7 12:36:39 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 7 Jun 2006 15:36:39 -0400 Subject: problem with ogr oracle spatial layer In-Reply-To: <49B9846C39F25A4FA90106497086161074BCC2@mhk-ex1.ad.dpra.com> Message-ID: Mark Adams wrote: > Frank, > > Running ogrinfo on the command line, the connection is fast (especially > if the layer name is specified). In general the results from spatial > and/or attribute queries run at the command line are fast as well, i.e. > the result back from oracle happens right away, after which it's really > just the time it takes to flash the results on screen. > > Despite all this, it still takes 3 to 4 seconds to draw the layer at > full extents (I'm going by the debug info from mapserver). If the OGR > work is taking less than a second, the rest is the actual map rendering > time? Could this be related to the data itself? (In my case the data > covers a huge swath of northern Canada, with lots of polygons > overlapping and covering large geographical areas. But then again, it > draws in a quarter second if I convert to a shapefile.) Mark, Based on your description above, I suspect the time is just moving all the data out of Oracle, parsing into OGRFeature's, and then converting those to MapServer objects. If you use the built in MapServer support for oracle you should get better performance, but I'm not convinced it will be a lot faster. I *suspect* all the extra overhead inherent in moving a lot of features out of the database is grinding up time compared to the very streamlined data path through Shapefiles. Is your map render still slow if you zoom into a local region with relatively few features to pull out of the database? 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 thip at AIT.AC.TH Wed Jun 7 21:58:21 2006 From: thip at AIT.AC.TH (Thip) Date: Thu, 8 Jun 2006 11:58:21 +0700 Subject: get information from OGC WMS VIEWER Message-ID: Dear all, How to get our own attribute (feature information) in www.wmsviewer.com? Anyone know how DEMIS world map set up the map file, pls. let me know. I set up my map file and I can see the information template OK when I use UDIG and load WMS from my server. But when I come to www.wmsviewer.com , I could not query the information on that. Name Asia DUMP TRUE metadata "wms_title" "Asia" END TYPE POLYGON DATA asia_bnd TEMPLATE asia.html CLASS NAME "Asia" EXPRESSION /./ STYLE COLOR 185 158 12 END HEADER asia_header.html FOOTER footer.html END Pls. pls. help Thanks in advance. Thip -------------- next part -------------- An HTML attachment was scrubbed... URL: From porath at WEB.DE Thu Jun 8 01:11:59 2006 From: porath at WEB.DE (H. Porath) Date: Thu, 8 Jun 2006 10:11:59 +0200 Subject: performance slows down whe n compiled with gdal Message-ID: Hi Frank, hi Ed, Thanks again. With your help i have isolated my issue: the performance only slows down when i use a gdal-lib wiht mrsid-support even if i do not use mrsid. If i switch to a gdal-lib without mrsid-support, the requests are fast. I think i need to address my issue to the gdal-community or try to get support from Lizardtech. Regards, Holger -----Urspr?ngliche Nachricht----- Von: Frank Warmerdam Gesendet: 07.06.06 15:36:05 An: porath at web.de CC: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] performance slows down when compiled with gdal Holger, Well, it indicates it isn't a rendering problem. The above times don't include the time to save the file to png/jpeg/gif so it could be spending an inordinate amount of time doing that for some reason. But I still suspect some odd initialization things is taking a lot of time. If I had direct access to the system I would try reproducing the exact mapserv request and invoking it at the commandline. First as your regular user, and then in an environment as close a possible to Apache's. I would next likely add some extra timing debug messages to track time from mapserv startup to shutdown. That would help isolate if the delay is before entering main or somewhere later. 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 ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 From donal_regan10 at YAHOO.CO.UK Thu Jun 8 01:59:01 2006 From: donal_regan10 at YAHOO.CO.UK (Donal Regan) Date: Thu, 8 Jun 2006 09:59:01 +0100 Subject: ogr connecting to .tab files Message-ID: Hello. I would appreciate any help on the following I'm having trouble connecting to MapInfo '.tab' files. I have compiled mapserver --with-ogr and I can connect to '.mif' files. I am using mapserver 4.8.1 and gdal 1.3.1 If I do ogrinfo or ogr2ogr on my '.tab' files , I get the following error Unable to open datasource `../jmc25kRaster/' with the following drivers. etc Error When I try to a shp2img on a mapfile containing the following LAYER GROUP "jmc25kRaster" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "/mapdata/jmc25kRaster/543654_ras25.tab" STATUS ON STYLEITEM "AUTO" END I get an the following error: OGR error. Open failed for OGR connection `/mapdata/jmc25kRaster/'. File not found or unsupported format. whereas a shp2img on a mapfile with the following layer works ok LAYER NAME rivers TYPE LINE STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "/mapdata/mif_midsample/river.mif" #STYLEITEM "AUTO" CLASS NAME "rivers" COLOR 0 0 255 END Any ideas? Thanks, Donal Send instant messages to your online friends http://uk.messenger.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dwija_dey at REDIFFMAIL.COM Thu Jun 8 06:31:52 2006 From: dwija_dey at REDIFFMAIL.COM (Pratap) Date: Thu, 8 Jun 2006 13:31:52 -0000 Subject: How to link imagemap file with feature data? Message-ID: ? Hi I am trying to incorporate the feature data's from the .dbf file to my imagemapfile which is generated by $img->saveWebImage(MS_IMAGEMAP,1,1,0)in PHP/Mapscript. The two lines from imagemap file are-> ..... ..... I am getting the coordinates for all the points, polygon etc in the imagemap file. In the imagemap file how should i link the co-ordinates(shape id) to the corresponding data's from my .dbf file? I am using mapserver 4.8. Any idea/experience/information will be highly appreciated. Thanks in advance. With regards Pratap -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Thu Jun 8 06:55:47 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 8 Jun 2006 09:55:47 -0400 Subject: performance slows down when compiled with gdal In-Reply-To: <592435905@web.de> Message-ID: porath at web.de wrote: > Hi Frank, hi Ed, > > Thanks again. > > With your help i have isolated my issue: the performance only slows down > when i use a gdal-lib wiht mrsid-support even if i do not use mrsid. If i > switch to a gdal-lib without mrsid-support, the requests are fast. Holger, I looked at the mrsid code in GDAL and I don't see any obvious initialization going on when no mrsid file is encountered, so I'm really not too sure what the issue is. > I think i need to address my issue to the gdal-community or try to get > support from Lizardtech. 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 janeks.kamerovskis at SILVA.LV Thu Jun 8 07:26:03 2006 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Thu, 8 Jun 2006 17:26:03 +0300 Subject: FW: map mode gives error 500 Message-ID: It seems, that all working fine - at least in browse mode, but mode=map gives error above. What could be reason? Thanks in advance, Janeks From warmerdam at POBOX.COM Thu Jun 8 08:00:48 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 8 Jun 2006 11:00:48 -0400 Subject: ogr connecting to .tab files In-Reply-To: <20060608085901.69085.qmail@web25006.mail.ukl.yahoo.com> Message-ID: Donal Regan wrote: > If I do ogrinfo or ogr2ogr on my '.tab' files , I get the following error > > Unable to open datasource `../jmc25kRaster/' with the following drivers. etc > > Error Donal, Is it possible that your tab file is really a "raster tab", that is a .tab file describing a raster file, rather than part of a vector dataset (usually a .tab, .id, .map and .dat)? If so, you are out of luck as OGR (nor GDAL) support .tab labelled rasters. 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 tkirstine at JDBARNES.COM Thu Jun 8 08:04:11 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Thu, 8 Jun 2006 11:04:11 -0400 Subject: Premature end of script-Segmentation Fault Message-ID: Hi, I have been having issues after updating existing shpfiles polygons in our application. We receive parcels polygons in shpfile format on a regular basis and a related address table. This address information is then appended to the shpfile and used for labeling in Mapserver. Just recently I wrote a few scripts that appends the address info to the shpfile and exports the data to a feature in a ESRI Geodatabase. The features are then exported from the Geodatabase to a shpfile that is used in Mapserver. The parcel shpfiles seem to work fine in the application (display, querybypoint and label correctly) however in our app the user has the option to zoom (rectangle) to the extents of the queried parcels. This works for most of the polygons but for some causes the Premature end of Script error. It sounds like a error in the shpfile but the parcels displays fine before the zoom and I am also able to query/copy the parcel using the command line ogrinfo/ogr2ogr. Also according to the log file it looks as though it is passing the correct extents. Log File: [Thu Jun 08 10:02:57 2006] [error] [client 205.207.144.226] Premature end of script headers: php.sh, referer: http://pc82/zoom2it_mapserver/zoom2it_map_controller.phtml?PHPSESSID=8f98b4c 9b3b4445d436d53587bb6cc52&action_pin=015420308&action=add&pin_x=&pin_y=&main _minx=329824.19523916&main_miny=4659816.9032391&main_maxx=361574.17809417&ma in_maxy=4689450.2205704&zoom_value=&map_option=zoomin&lro=12&zoom_scale=zoom _level_4&callback_url=http%3A%2F%2Fwww.geowarehouse.ca%2Flpp&active_layer=ow ner_parcels thanks Travis From bob.basques at CI.STPAUL.MN.US Thu Jun 8 09:47:56 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Thu, 8 Jun 2006 11:47:56 -0500 Subject: Ok, this might sound weird, but (different MAXSCALEs) Message-ID: All, Does it make any sense to have a different MAXSCALE seeting for Raster images vs Imagemaping (Templated output? bobb From Steve.Lime at DNR.STATE.MN.US Thu Jun 8 12:56:51 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 8 Jun 2006 14:56:51 -0500 Subject: fontset tag kills map Message-ID: What does 'die' mean? Seg. fault? Steve >>> Robert Burgholzer 6/7/2006 10:52:40 AM >>> I am trying to use labels in mapserver 4.8.3 but even defining a FONTSET tag in my map file kills the initialization of the map in php_mapscript. I can have a label layer, as long as it is OFF, but the minute that I put a FONTSET tag in my map file, or turn the layer ON, it dies without error. Fonts are in the directory in question and have permission 744. Any ideas as to what may be the trouble? PHP is compiled with freetype support, as is mapserver: Below is the message configure gives: configure: checking where FreeType 2.x is installed... using libfreetype from -L/usr/lib64 -Wl,--rpath -Wl,/usr/lib64 -lfreetype -lz checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. Robert W. Burgholzer Nonpoint Source Data Analyst University of Maryland, College Park Chesapeake Bay Program Office 410 Severn Avenue, Suite 305B Annapolis, MD, 21403 Phone: (410) 267-5779 rburghol at chesapeakebay.net http://www.chesapeakebay.net/ From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Thu Jun 8 13:02:18 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Thu, 8 Jun 2006 16:02:18 -0400 Subject: fontset tag kills map Message-ID: Also, is this one particular font, or all of them? -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Lime Sent: June 8, 2006 3:57 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] fontset tag kills map What does 'die' mean? Seg. fault? Steve >>> Robert Burgholzer 6/7/2006 10:52:40 AM >>> >>> I am trying to use labels in mapserver 4.8.3 but even defining a FONTSET tag in my map file kills the initialization of the map in php_mapscript. I can have a label layer, as long as it is OFF, but the minute that I put a FONTSET tag in my map file, or turn the layer ON, it dies without error. Fonts are in the directory in question and have permission 744. Any ideas as to what may be the trouble? PHP is compiled with freetype support, as is mapserver: Below is the message configure gives: configure: checking where FreeType 2.x is installed... using libfreetype from -L/usr/lib64 -Wl,--rpath -Wl,/usr/lib64 -lfreetype -lz checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. Robert W. Burgholzer Nonpoint Source Data Analyst University of Maryland, College Park Chesapeake Bay Program Office 410 Severn Avenue, Suite 305B Annapolis, MD, 21403 Phone: (410) 267-5779 rburghol at chesapeakebay.net http://www.chesapeakebay.net/ From bob.basques at CI.STPAUL.MN.US Thu Jun 8 13:03:18 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Thu, 8 Jun 2006 15:03:18 -0500 Subject: raster symbols. Message-ID: All, I've added my very first set of raster symbols to a layer. The symbols are PNGs with a transparent Background. While the resulting image has a nice transparent background overall, I noticed that the drawing of the Symbols where they overlap, that the original BBOX of the symbol graphic is overwriting the previous symbol of the same type. Question, is this something that I have to live with or is there another approach to getting the transparency of the raster symbols to stay transparent where they happen to overlap in an Output. Up until this time, I've either drawn my own symbols or used TrueType versions. Thanks bobb From Steve.Lime at DNR.STATE.MN.US Thu Jun 8 13:18:53 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 8 Jun 2006 15:18:53 -0500 Subject: raster symbols. Message-ID: Can you post a sample? Steve >>> Bob Basques 6/8/2006 3:03:18 PM >>> All, I've added my very first set of raster symbols to a layer. The symbols are PNGs with a transparent Background. While the resulting image has a nice transparent background overall, I noticed that the drawing of the Symbols where they overlap, that the original BBOX of the symbol graphic is overwriting the previous symbol of the same type. Question, is this something that I have to live with or is there another approach to getting the transparency of the raster symbols to stay transparent where they happen to overlap in an Output. Up until this time, I've either drawn my own symbols or used TrueType versions. Thanks bobb From donal_regan10 at YAHOO.CO.UK Thu Jun 8 17:26:30 2006 From: donal_regan10 at YAHOO.CO.UK (Donal Regan) Date: Fri, 9 Jun 2006 01:26:30 +0100 Subject: ogr connecting to .tab files In-Reply-To: <44883BA0.1050709@pobox.com> Message-ID: Hi Frank, Thanks for the reply. What I have is a load of .tab files with corresponding .TIF files. The .tab files have Type : "RASTER" in the definition table so I presume that means they're not supoorted. Does this mean I can't use them as a Mapserver datasource at all? Or can I convert them somehow into a format supported by Mapserver? Thanks, D. Frank Warmerdam wrote: Donal Regan wrote: > If I do ogrinfo or ogr2ogr on my '.tab' files , I get the following error > > Unable to open datasource `../jmc25kRaster/' with the following drivers. etc > > Error Donal, Is it possible that your tab file is really a "raster tab", that is a .tab file describing a raster file, rather than part of a vector dataset (usually a .tab, .id, .map and .dat)? If so, you are out of luck as OGR (nor GDAL) support .tab labelled rasters. 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 Send instant messages to your online friends http://uk.messenger.yahoo.com Send instant messages to your online friends http://uk.messenger.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Thu Jun 8 20:10:13 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 8 Jun 2006 23:10:13 -0400 Subject: ogr connecting to .tab files In-Reply-To: <20060609002630.90546.qmail@web25010.mail.ukl.yahoo.com> Message-ID: Donal Regan wrote: > Hi Frank, > > Thanks for the reply. > > What I have is a load of .tab files with corresponding .TIF files. The > .tab files have Type : "RASTER" in the definition table so I presume > that means they're not supoorted. Does this mean I can't use them as a > Mapserver datasource at all? Or can I convert them somehow into a format > supported by Mapserver? Donal, There have been other discussions of roughly this topic either here or on gdal-dev recently. You might want to take a look. Generally speaking you can write a script that will translate the .tab files into .wld files or use them to attach gcps to the .tif files using gdal_translate. You may also find you can convert them into proper GeoTIFFs with MapInfo. But currently gdal won't do it all for you. Sorry, -- ---------------------------------------+-------------------------------------- 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 awilliams at RAPIDMAP.COM.AU Thu Jun 8 20:53:00 2006 From: awilliams at RAPIDMAP.COM.AU (Andrew Williams) Date: Fri, 9 Jun 2006 13:53:00 +1000 Subject: ogr connecting to .tab files Message-ID: If I can offer a possibility, it may be that the TIFFs are already GeoTiffs. The TAB may be a red herring. Try using GDALINFO and see if the TIFFs can be used directly. regards Andrew -----Original Message----- From: Frank Warmerdam [mailto:warmerdam at POBOX.COM] Sent: Fri 6/9/2006 1:10 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: Re: [UMN_MAPSERVER-USERS] ogr connecting to .tab files Donal Regan wrote: > Hi Frank, > > Thanks for the reply. > > What I have is a load of .tab files with corresponding .TIF files. The > .tab files have Type : "RASTER" in the definition table so I presume > that means they're not supoorted. Does this mean I can't use them as a > Mapserver datasource at all? Or can I convert them somehow into a format > supported by Mapserver? Donal, There have been other discussions of roughly this topic either here or on gdal-dev recently. You might want to take a look. Generally speaking you can write a script that will translate the .tab files into .wld files or use them to attach gcps to the .tif files using gdal_translate. You may also find you can convert them into proper GeoTIFFs with MapInfo. But currently gdal won't do it all for you. Sorry, -- ---------------------------------------+-------------------------------------- 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 janeks.kamerovskis at SILVA.LV Fri Jun 9 02:06:06 2006 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Fri, 9 Jun 2006 12:06:06 +0300 Subject: FW: map mode gives error 500 In-Reply-To: <004301c68b07$79148e20$790aa8c0@JANEKSXP> Message-ID: I would like to make simple map presetation app on CD, by using tiny web server from Ritlabs. Does any body have some expierence with similar solution. Main thing to solve for me is how to deal with temporary files. My idea was to use only mode=map, but I am getting: HTTP 500 Internal server error The page could not be displayed. Could it be connected with some server limitations? The tiny web server features and what it do not support is here: http://www.ritlabs.com/en/products/tinyweb/features.php Sub question for presetation installations is: Is it possible to set up (force) map server to create single temp files? Janeks Kamerovskis Me?saimniec?bas konsultants Metsaliitto Latvia Sia tel. +371 7804352 fax. +371 7804340 mob. +371 9191109 > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Janeks Kamerovskis > Sent: Thursday, June 08, 2006 5:26 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] FW: map mode gives error 500 > > It seems, that all working fine - at least in browse mode, but mode=map > gives error above. > What could be reason? > > Thanks in advance, > > Janeks From zhonghaiw at GMAIL.COM Fri Jun 9 02:49:24 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Fri, 9 Jun 2006 11:49:24 +0200 Subject: MapServer Test Demo and next Step. Message-ID: Hi guys, here is my small mapserver demo based on CGI model, I really appreciate it if you click on it and make a test for me. I'd like your opinions about it. Notice that I care only about the performance of MapServer, not the GUIs now. http://brntest2.maponair.com/mapserver/cgi-bin/mapserv.exe?map=/ms4w/apps/SwissDemo/outgoing.map For the next step I'd like to develop applications using PHP/MapScript or CSharp/MapScript, it seems that most people are using PHP/MapScript. best regards zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From siukola.antti at GMAIL.COM Fri Jun 9 03:11:00 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Fri, 9 Jun 2006 13:11:00 +0300 Subject: Mapserver returns blank pages Message-ID: Hi! I am suffering from mapservers feature to return blank pages when loading the page. This happens about 1 in 10 requests. Is this a known bug or is there some configuration to do? I've read that PHP's memory_limit could cause this if it's too small but I'm having it at 64MB. This feature happens on two different servers and I can't find any answers. Antti S From gsw at GLOBEXPLORER.COM Fri Jun 9 03:36:27 2006 From: gsw at GLOBEXPLORER.COM (Gregory S. Williamson) Date: Fri, 9 Jun 2006 03:36:27 -0700 Subject: MapServer Test Demo and next Step. Message-ID: I sampled some areas in the east side of Switzerland and it seemed to respond quickly and cleanly. I did some zooming, some panning and didn't see any thing misbehaving. HTH, Greg Williamson DBA GlobeXplorer LLC -----Original Message----- From: UMN MapServer Users List on behalf of Zhonghai Wang Sent: Fri 6/9/2006 2:49 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] MapServer Test Demo and next Step. Hi guys, here is my small mapserver demo based on CGI model, I really appreciate it if you click on it and make a test for me. I'd like your opinions about it. Notice that I care only about the performance of MapServer, not the GUIs now. http://brntest2.maponair.com/mapserver/cgi-bin/mapserv.exe?map=/ms4w/apps/SwissDemo/outgoing.map For the next step I'd like to develop applications using PHP/MapScript or CSharp/MapScript, it seems that most people are using PHP/MapScript. best regards zhonghai !DSPAM:448944b9298768362916074! From gsw at GLOBEXPLORER.COM Fri Jun 9 03:37:06 2006 From: gsw at GLOBEXPLORER.COM (Gregory S. Williamson) Date: Fri, 9 Jun 2006 03:37:06 -0700 Subject: MapServer Test Demo and next Step. Message-ID: I sampled some areas in the east side of Switzerland and it seemed to respond quickly and cleanly. I did some zooming, some panning and didn't see any thing misbehaving. HTH, Greg Williamson DBA GlobeXplorer LLC -----Original Message----- From: UMN MapServer Users List on behalf of Zhonghai Wang Sent: Fri 6/9/2006 2:49 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] MapServer Test Demo and next Step. Hi guys, here is my small mapserver demo based on CGI model, I really appreciate it if you click on it and make a test for me. I'd like your opinions about it. Notice that I care only about the performance of MapServer, not the GUIs now. http://brntest2.maponair.com/mapserver/cgi-bin/mapserv.exe?map=/ms4w/apps/SwissDemo/outgoing.map For the next step I'd like to develop applications using PHP/MapScript or CSharp/MapScript, it seems that most people are using PHP/MapScript. best regards zhonghai !DSPAM:448944b9298768362916074! From stuarteve at LPARCHAEOLOGY.COM Fri Jun 9 03:48:33 2006 From: stuarteve at LPARCHAEOLOGY.COM (Stuart Eve) Date: Fri, 9 Jun 2006 11:48:33 +0100 Subject: Mapserver returns blank pages In-Reply-To: Message-ID: Antti I have been experiencing this too - are you using Mapscript? I think that my problem is to do with having Mapscript code nested within other functions - and for some reason the errors are not then being printed to the page and instead all I get is a blank page. (does anyone know how ot solve this - i am not too hot with error handling in PHP). Stu antti siukola wrote: > Hi! > > I am suffering from mapservers feature to return blank pages when > loading the page. This happens about 1 in 10 requests. Is this a known > bug or is there some configuration to do? I've read that PHP's > memory_limit could cause this if it's too small but I'm having it at > 64MB. This feature happens on two different servers and I can't find > any answers. > > Antti S > > > From buffery2005 at YAHOO.COM.CN Fri Jun 9 03:39:21 2006 From: buffery2005 at YAHOO.COM.CN (buffery buffery) Date: Fri, 9 Jun 2006 18:39:21 +0800 Subject: About the performance of MapServer and Ka-Map Message-ID: Hello Now I am working with a project using MapServer and Ka-map . But the project works very slowly. I have found that it is made by the low speed of php . So I want to use the php cache product such as the zend cache(zend platform) to solve the performance problem. But when I installed the zend platform I found that the zend platform just support php which was configured as apache module or fastcgi. And I have installed php configured as apache cgi using MS4W package. And I also found that php can not configured as apache module because php/mapscipt is not thread-safe and does not work as an apache module. So I have only one choice.It is to use php configured as fastcgi. So my solution is: First Install MS4W package Install mod-fastcgi Install zend platform Finally,My problem is : Is my solution feasible? __________________________________________________ ??????????????? http://cn.mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From siukola.antti at GMAIL.COM Fri Jun 9 04:12:09 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Fri, 9 Jun 2006 14:12:09 +0300 Subject: Mapserver returns blank pages In-Reply-To: <44895201.2040202@lparchaeology.com> Message-ID: Hi Stuart! Yes, I'm on php mapscript. Have to say that MapServer should have a proper error reporting system. AnttiS On 6/9/06, Stuart Eve wrote: > Antti > > I have been experiencing this too - are you using Mapscript? > > I think that my problem is to do with having Mapscript code nested > within other functions - and for some reason the errors are not then > being printed to the page and instead all I get is a blank page. (does > anyone know how ot solve this - i am not too hot with error handling in > PHP). > > Stu > > antti siukola wrote: > > Hi! > > > > I am suffering from mapservers feature to return blank pages when > > loading the page. This happens about 1 in 10 requests. Is this a known > > bug or is there some configuration to do? I've read that PHP's > > memory_limit could cause this if it's too small but I'm having it at > > 64MB. This feature happens on two different servers and I can't find > > any answers. > > > > Antti S > > > > > > > > From siukola.antti at GMAIL.COM Fri Jun 9 04:45:16 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Fri, 9 Jun 2006 14:45:16 +0300 Subject: OGR MySQL connection problem Message-ID: Hi! I've created an ovf-file which describes a layer like this ******************************************************** MYSQL:layername,user=user,password=password,host=localhost,port=3306 ******************************************************** and ogrinfo gives me this ******************************************************** ogrinfo kaavahanke.ovf ERROR 4: Update access not supported for VRT datasources. ERROR 1: Failed to open datasource `MYSQL:layername,user=user,password=password,host=localhost,port=3306'. FAILURE: Unable to open datasource `filename.ovf' with the following drivers. ******************************************************** I'm using GDAL 1.3.2. and MapServer 4.8.3. What have I configured incorrectly? From vulukut at TESCILTURK.COM Fri Jun 9 04:58:12 2006 From: vulukut at TESCILTURK.COM (Volkan Ulukut) Date: Fri, 9 Jun 2006 14:58:12 +0300 Subject: OGR MySQL connection problem In-Reply-To: Message-ID: Try this: MySQL:dbname,user=user,password=password,host=localhost,port= 3306 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of antti siukola Sent: Friday, June 09, 2006 2:45 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] OGR MySQL connection problem Hi! I've created an ovf-file which describes a layer like this ******************************************************** MYSQL:layername,user=user,password=password,host=localhost,po rt=3306 ******************************************************** and ogrinfo gives me this ******************************************************** ogrinfo kaavahanke.ovf ERROR 4: Update access not supported for VRT datasources. ERROR 1: Failed to open datasource `MYSQL:layername,user=user,password=password,host=localhost,port=3306'. FAILURE: Unable to open datasource `filename.ovf' with the following drivers. ******************************************************** I'm using GDAL 1.3.2. and MapServer 4.8.3. What have I configured incorrectly? -------------- next part -------------- An HTML attachment was scrubbed... URL: From siukola.antti at GMAIL.COM Fri Jun 9 05:06:50 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Fri, 9 Jun 2006 15:06:50 +0300 Subject: OGR MySQL connection problem In-Reply-To: Message-ID: Thanks for a quick reply! That didn't do it... D*mn On 6/9/06, Volkan Ulukut wrote: > > > > > Try this: > > > > > > > > MySQL:dbname,user=user,password=password,host=localhost,port=3306 > > > > > > > > > > > > > > > > > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of antti siukola > Sent: Friday, June 09, 2006 2:45 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] OGR MySQL connection problem > > > > Hi! > > > > I've created an ovf-file which describes a layer like this > > ******************************************************** > > > > > > > > MYSQL:layername,user=user,password=password,host=localhost,port=3306 > > > > > > > > > > > > > > > > ******************************************************** > > and ogrinfo gives me this > > ******************************************************** > > ogrinfo kaavahanke.ovf > > ERROR 4: Update access not supported for VRT datasources. > > ERROR 1: Failed to open datasource > > > `MYSQL:layername,user=user,password=password,host=localhost,port=3306'. > > FAILURE: Unable to open datasource `filename.ovf' with the following > drivers. > > > > > > ******************************************************** > > I'm using GDAL 1.3.2. and MapServer 4.8.3. > > > > What have I configured incorrectly? > > > From laura.diaz at IVER.ES Fri Jun 9 04:51:41 2006 From: laura.diaz at IVER.ES (Laura =?iso-8859-1?Q?D=EDaz?=) Date: Fri, 9 Jun 2006 13:51:41 +0200 Subject: GetFeatureInfo with more than one layer In-Reply-To: <001c01c68ba3$f0f02d40$790aa8c0@JANEKSXP> Message-ID: Hi all, when i send a getFeatureInfo request to a mapserver (version 4.6) asking for information about more than one layer (coma separated list in the parameters LAYERS and QUERY_LAYERS) in one point i just get the response containing information of ONE of these layers, is this a known bug? thanks, Laura From vulukut at TESCILTURK.COM Fri Jun 9 05:17:55 2006 From: vulukut at TESCILTURK.COM (Volkan Ulukut) Date: Fri, 9 Jun 2006 15:17:55 +0300 Subject: OGR MySQL connection problem In-Reply-To: Message-ID: Try while having only the option. I guess your problem is in the connection string. You have to give the database name not the table(layer)name after "MySQL:" expression and try ogrinfo again -----Original Message----- From: antti siukola [mailto:siukola.antti at gmail.com] Sent: Friday, June 09, 2006 3:07 PM To: Volkan Ulukut; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] OGR MySQL connection problem Thanks for a quick reply! That didn't do it... D*mn On 6/9/06, Volkan Ulukut wrote: > > > > > Try this: > > > > > > > > MySQL:dbname,user=user,password=password,host=localhost,port= 3306 > > > > > > > > > > > > > > > > > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of antti siukola > Sent: Friday, June 09, 2006 2:45 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] OGR MySQL connection problem > > > > Hi! > > > > I've created an ovf-file which describes a layer like this > > ******************************************************** > > > > > > > > MYSQL:layername,user=user,password=password,host=localhost,po rt=3306 > > > > > > > > > > > > > > > > ******************************************************** > > and ogrinfo gives me this > > ******************************************************** > > ogrinfo kaavahanke.ovf > > ERROR 4: Update access not supported for VRT datasources. > > ERROR 1: Failed to open datasource > > > `MYSQL:layername,user=user,password=password,host=localhost,port=3306'. > > FAILURE: Unable to open datasource `filename.ovf' with the following > drivers. > > > > > > ******************************************************** > > I'm using GDAL 1.3.2. and MapServer 4.8.3. > > > > What have I configured incorrectly? > > > From siukola.antti at GMAIL.COM Fri Jun 9 05:21:08 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Fri, 9 Jun 2006 15:21:08 +0300 Subject: OGR MySQL connection problem In-Reply-To: Message-ID: I still get "Unable to open datasource `kaavahanke.ovf' with the following drivers." and the driver list belox it. AnttiS On 6/9/06, Volkan Ulukut wrote: > Try while having only the option. I guess your problem is in > the connection string. You have to give the database name not the > table(layer)name after "MySQL:" expression and try ogrinfo again > > -----Original Message----- > From: antti siukola [mailto:siukola.antti at gmail.com] > Sent: Friday, June 09, 2006 3:07 PM > To: Volkan Ulukut; MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] OGR MySQL connection problem > > Thanks for a quick reply! > > That didn't do it... D*mn > > On 6/9/06, Volkan Ulukut wrote: > > > > > > > > > > Try this: > > > > > > > > > > > > > > > > > MySQL:dbname,user=user,password=password,host=localhost,port= > 3306 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > Behalf Of antti siukola > > Sent: Friday, June 09, 2006 2:45 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] OGR MySQL connection problem > > > > > > > > Hi! > > > > > > > > I've created an ovf-file which describes a layer like this > > > > ******************************************************** > > > > > > > > > > > > > > > > > MYSQL:layername,user=user,password=password,host=localhost,po > rt=3306 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ******************************************************** > > > > and ogrinfo gives me this > > > > ******************************************************** > > > > ogrinfo kaavahanke.ovf > > > > ERROR 4: Update access not supported for VRT datasources. > > > > ERROR 1: Failed to open datasource > > > > > > `MYSQL:layername,user=user,password=password,host=localhost,port=3306'. > > > > FAILURE: Unable to open datasource `filename.ovf' with the following > > drivers. > > > > > > > > > > > > ******************************************************** > > > > I'm using GDAL 1.3.2. and MapServer 4.8.3. > > > > > > > > What have I configured incorrectly? > > > > > > > From madprof at GMX.CH Fri Jun 9 02:33:22 2006 From: madprof at GMX.CH (Daniel Goetz) Date: Fri, 9 Jun 2006 11:33:22 +0200 Subject: oracle spatial Message-ID: Hi, I have a question concernig the visualisation of oracle spatial data via umn-mapserver. I have installed the recent ms4w package on my computer. (c:\ms4w). I installed the oracle client (9i Release 2 Version) on drive d:\. The real database lies on an server in the intranet (not internet). I read in the "Using Oracle Spatial Data with MapServer"-howto: "Make sure though your Mapserver is compiled against the same version as your Oracle client". My question is how can I check this? I also read that when using oracle spatial data via the native support (without OGR) no FeatureInfo Requests are supported. Is this true? Despite of that I want to try the native support of oracle spatial data. In the "Using Oracle Spatial Data with MapServer"-howto I read, that I have to do some environmental settings in the Apache httpd.conf file. Is there a more precise despriction how to do that? In the "vector data access" reference I read that "OGR must be compiled with Oracle Spatial support and MapServer must be compiled to use OGR". According to my understandig in the ms4w package OGR is compiled with oracle spatial support and mapserver should also be compiled to use OGR in the ms4w package. Am I right? To map the data via OGR-interface I simply wrote the follwoing in my .map-file: LAYER NAME "RWG_TBL" CONNECTIONTYPE OGR CONNECTION "OCI:gds_brwk2004_umn/umn at gds1prod" DATA "RWG_TBL" TYPE POINT STATUS ON CLASS NAME "Flaeche" STYLE OUTLINECOLOR 128 128 128 COLOR 225 225 185 END END END Is this all? Did I forget anything in the file itself? Or do I have to make any furhter settings? However, when I test it (I use the following command in my brwoser: http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raster/test_or.map&layers=all&) mapserver tells me: "msDrawMap(): Image handling error. Failed to draw layer named 'RWG_TBL'. msOGRFileOpen(): OGR error. Open failed for OGR connection `OCI:gds_brwk2004_umn/umn at gds1prod'. File not found or unsupported format." What went wrong? Mapping shapefieles or .tif is no problem. Might it be possible that I have installed the oracle-client on the wrogn locations? Many questions I can not answer by myself. It's really difficult for me. Would be very nice if anybody could help me. I would be very glad and thankful. Thank you very much. Regards Daniel Goetz -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From bartvde at XS4ALL.NL Fri Jun 9 05:50:50 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 9 Jun 2006 14:50:50 +0200 Subject: oracle spatial In-Reply-To: <20060609093322.185700@gmx.net> Message-ID: Daniel, the MS4W package should state against which Oracle version the binaries were compiled, there is no way to find this out otherwise AFAIK. FeatureInfo is supported on the native Oracle Spatial driver since Mapserver 4.6 IIRC. To use Oracle with MS4W you need to replace some of the dll's etc. in MS4W, did you do that? The most important thing is that the oci.dll from your Oracle client is in the Windows path. I assume you already checked if you can connect using sqlplus? Best regards, Bart > Hi, > > I have a question concernig the visualisation of oracle spatial data via > umn-mapserver. > > I have installed the recent ms4w package on my computer. (c:\ms4w). I > installed the oracle client (9i Release 2 Version) on drive d:\. The real > database lies on an server in the intranet (not internet). > > I read in the "Using Oracle Spatial Data with MapServer"-howto: "Make sure > though your Mapserver is compiled against the same version as your Oracle > client". My question is how can I check this? > > I also read that when using oracle spatial data via the native support > (without OGR) no FeatureInfo Requests are supported. Is this true? > > Despite of that I want to try the native support of oracle spatial data. > In the "Using Oracle Spatial Data with MapServer"-howto I read, that I > have to do some environmental settings in the Apache httpd.conf file. Is > there a more precise despriction how to do that? > > In the "vector data access" reference I read that "OGR must be compiled > with Oracle Spatial support and MapServer must be compiled to use OGR". > According to my understandig in the ms4w package OGR is compiled with > oracle spatial support and mapserver should also be compiled to use OGR in > the ms4w package. Am I right? > > To map the data via OGR-interface I simply wrote the follwoing in my > .map-file: > > LAYER > NAME "RWG_TBL" > CONNECTIONTYPE OGR > CONNECTION "OCI:gds_brwk2004_umn/umn at gds1prod" > DATA "RWG_TBL" > TYPE POINT > STATUS ON > CLASS > NAME "Flaeche" > STYLE > OUTLINECOLOR 128 128 128 > COLOR 225 225 185 > END > END > END > > Is this all? Did I forget anything in the file itself? Or do I have to > make any furhter settings? However, when I test it (I use the following > command in my brwoser: > http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raster/test_or.map&layers=all&) > mapserver tells me: > > "msDrawMap(): Image handling error. Failed to draw layer named 'RWG_TBL'. > msOGRFileOpen(): OGR error. Open failed for OGR connection > `OCI:gds_brwk2004_umn/umn at gds1prod'. File not found or unsupported > format." > > What went wrong? Mapping shapefieles or .tif is no problem. Might it be > possible that I have installed the oracle-client on the wrogn locations? > > > Many questions I can not answer by myself. It's really difficult for me. > Would be very nice if anybody could help me. I would be very glad and > thankful. Thank you very much. > > > Regards > > Daniel Goetz > -- > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer > From C.Wilmes at GMX.DE Fri Jun 9 02:20:19 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Fri, 9 Jun 2006 11:20:19 +0200 Subject: Problem with the mailinglist Message-ID: Hi all, I've got some problems with this mailinglist. If I sent a mail to the list it takes hours or even days until it is in the list. If I try to sent a mail directly from the mailinglist homepage, after a few seconds I get the following mail: Rejected posting to MAPSERVER-USERS at LISTS.UMN.EDU Your message is being returned to you unprocessed because it appears to have already been distributed to the MAPSERVER-USERS list. That is, a message with identical text (but possibly with different mail headers) has been posted to the list recently, either by you or by someone else. If you have reason to resend this message to the list (for instance because you have been notified of a hardware failure with loss of data), please alter the text of the message in some way and resend it to the list. Note that altering the "Subject:" line or adding blank lines at the top or bottom of the message is not sufficient; you should instead add a sentence or two at the top explaining why you are resending the message, so that the other subscribers understand why they are getting two copies of the same message. Because of these things it happens in the last time, that I was sending a mail more than one time, sorry for that! I hope someone who is responsible for the mailinglist will read this mail and is probatly able to help me. This mail for example I will send at on Friday 08.06.2006 at 11:20am German time....wonder how long it will take this time until the mail is in the list. Best Regards Christian -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From rburghol at CHESAPEAKEBAY.NET Fri Jun 9 06:36:22 2006 From: rburghol at CHESAPEAKEBAY.NET (Robert Burgholzer) Date: Fri, 9 Jun 2006 09:36:22 -0400 Subject: fontset tag kills map Message-ID: Well, "die" means, it just stops working, I get a [defunct] for the process in my 'ps ax'. I managed to debug it though, through the use of the mapserv CGI, for some reason I was unable to get any error messages via PHP mapscript (this is an entirely new server install and I am migrating from the old -- I would have sworn that my documentation of configurations was impeccable, but, it turns out not to be so). So, it was a simple thing, the fontset was inadvertently duplicated (an errant paste a few lines down). It is strange that I am getting no error messages though, although if I RTFM more thoroughly, I will probably figure that out. r.b. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Doyon, Jean-Francois Sent: Thursday, June 08, 2006 4:02 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] fontset tag kills map Also, is this one particular font, or all of them? -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Lime Sent: June 8, 2006 3:57 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] fontset tag kills map What does 'die' mean? Seg. fault? Steve >>> Robert Burgholzer 6/7/2006 10:52:40 AM >>> >>> I am trying to use labels in mapserver 4.8.3 but even defining a FONTSET tag in my map file kills the initialization of the map in php_mapscript. I can have a label layer, as long as it is OFF, but the minute that I put a FONTSET tag in my map file, or turn the layer ON, it dies without error. Fonts are in the directory in question and have permission 744. Any ideas as to what may be the trouble? PHP is compiled with freetype support, as is mapserver: Below is the message configure gives: configure: checking where FreeType 2.x is installed... using libfreetype from -L/usr/lib64 -Wl,--rpath -Wl,/usr/lib64 -lfreetype -lz checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. Robert W. Burgholzer Nonpoint Source Data Analyst University of Maryland, College Park Chesapeake Bay Program Office 410 Severn Avenue, Suite 305B Annapolis, MD, 21403 Phone: (410) 267-5779 rburghol at chesapeakebay.net http://www.chesapeakebay.net/ From zhonghaiw at GMAIL.COM Fri Jun 9 06:39:48 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Fri, 9 Jun 2006 15:39:48 +0200 Subject: MapServer Test Demo and next Step. In-Reply-To: <71E37EF6B7DCC1499CEA0316A256832802B3E057@loki.wc.globexplorer.net> Message-ID: Hi there, thank you all very much for the test of my demo. I want to now write the access info directly to the map browser, would you please tell me how long the total access time is? (a copy of the total access time is fine). I really appreciate it. best regards zhonghai On 6/9/06, Gregory S. Williamson wrote: > > I sampled some areas in the east side of Switzerland and it seemed to > respond quickly and cleanly. I did some zooming, some panning and didn't see > any thing misbehaving. > > HTH, > > Greg Williamson > DBA > GlobeXplorer LLC > > > -----Original Message----- > From: UMN MapServer Users List on behalf of Zhonghai Wang > Sent: Fri 6/9/2006 2:49 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Cc: > Subject: [UMN_MAPSERVER-USERS] MapServer Test Demo and next Step. > > Hi guys, > > here is my small mapserver demo based on CGI model, I really appreciate > it > if you click on it and make a test for me. I'd like your opinions about > it. > Notice that I care only about the performance of MapServer, not the GUIs > now. > > > http://brntest2.maponair.com/mapserver/cgi-bin/mapserv.exe?map=/ms4w/apps/SwissDemo/outgoing.map > > For the next step I'd like to develop applications using PHP/MapScript or > CSharp/MapScript, it seems that most people are using PHP/MapScript. > > best regards > > zhonghai > > > !DSPAM:448944b9298768362916074! > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Fri Jun 9 06:51:20 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 9 Jun 2006 08:51:20 -0500 Subject: FOSS4G2006 - Registration and Accommodation Message-ID: Final registration for FOSS4G is now open. Please visit http://www.foss4g2006.org There is a new registration form to fill for new registrants, or to complete for pre-registrants. HOTELS/ROOMS - IMPORTANT NOTICE Remember that September is still high season for tourism in Lausanne, therefore it's critical to make a hotel booking early. A block of rooms has been booked for FOSS4G2006 participants, but deadlines are approaching. For those who want to book an inexpensive room, we encourage you to book as soon as possible. In particular, you should book early for the two low-cost hotels : H?tel JEUNOTEL and Lausanne Guesthouse (see http://www.foss4g2006.org/internalPage.py?pageId=4&confId=1). When booking a room there, please call them and indicate that you are making a booking for FOSS4G2006 Conference. We really do advise early booking of your accommodation. Room blocks for Jeunotel end on June 11. Room blocks for the Guest House end on June 15. WORKSHOPS Seating is limited at workshops. Please make sure to check the Workshop Timetable and enter the codes for your choices when you register. ABSTRACTS Please submit any abstracts in the Call for Contributions section. If you don't see a category that fits what you want to present or do, please check "other" and include some comments about where you think your topic might fit. Please be adventurous. This is your chance to talk about your work! ABSTRACT SUBMISSION DEADLINE IS June 30, 2006 UPDATES Please check the web site periodically for updates. CONTACT Don't hesitate to contact us if you have remarks or need some advice. http://www.foss4g2006.org/internalPage.py?pageId=5&confId=1 From claude-mapserver at SKIRANDO.CH Fri Jun 9 06:26:10 2006 From: claude-mapserver at SKIRANDO.CH (Claude Philipona) Date: Fri, 9 Jun 2006 15:26:10 +0200 Subject: Final registration for FOSS4G is now open Message-ID: Final registration for FOSS4G is now open. Please visit http:// www.foss4g2006.org with online payment. There is a new registration form to fill for new registrants, or to complete for pre-registrants. HOTELS/ROOMS - IMPORTANT NOTICE Remember that September is still high season for tourism in Lausanne, therefore it's critical to make a hotel booking early. A block of rooms has been booked for FOSS4G2006 participants, but deadlines are approaching. For those who want to book an inexpensive room, we encourage you to book as soon as possible. In particular, you should book early for the two low-cost hotels : H??tel JEUNOTEL and Lausanne Guesthouse (see http://www.foss4g2006.org/internalPage.py?pageId=4&confId=1). When booking a room there, please call them and indicate that you are making a booking for FOSS4G2006 Conference. We really do advise early booking of your accommodation. Room blocks for Jeunotel end on June 11. Room blocks for the Guest House end on June 15. It will be very difficult (impossible) to book rooms outside the reserved blocks. WORKSHOPS Seating is limited at workshops. Please make sure to check the Workshop Timetable and enter the codes for your choices when you register. ABSTRACTS Please submit any abstracts in the Call for Contributions section. If you don't see a category that fits what you want to present or do, please check "other" and include some comments about where you think your topic might fit. Please be adventurous. This is your chance to talk about your work! ABSTRACT SUBMISSION DEADLINE IS June 30, 2006 UPDATES Please check the web site periodically for updates. CONTACT Don't hesitate to contact us if you have remarks or need some advice. http://www.foss4g2006.org/internalPage.py?pageId=5&confId=1 From punkish at EIDESIS.ORG Fri Jun 9 08:35:34 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Fri, 9 Jun 2006 10:35:34 -0500 Subject: Open source geospatial events calendar Message-ID: Here is a potentially useful resource -- a calendar of open source geospatial (related) conferences. Use any ical-compatible client to subscribe (iCal, Google Calendar, Mozilla Sunbird, etc.). This is a calendar that I maintain on my personal server, so it has events known and of interest to me. If you have something that is in this vein, and might want to add it to this calendar, do send it to me off-list. Hope some of you find this useful. (cross posted to discuss at edu.osgeo.org and mapserver lists) PS. In case you are looking for things to do in the Madison, Milwaukee, Chicago area when you are not working on GFOSS -- -- Puneet Kishor Nelson Inst. for Env. Studies, UW-Madison Open Source Geospatial Foundation From lpzhao at NETZERO.NET Fri Jun 9 11:59:23 2006 From: lpzhao at NETZERO.NET (lpzhao@netzero.net) Date: Fri, 9 Jun 2006 18:59:23 GMT Subject: How to get attribute's value in Querywidget? Message-ID: An embedded and charset-unspecified text was scrubbed... Name: not available URL: From john.cole at UAI.COM Fri Jun 9 13:30:25 2006 From: john.cole at UAI.COM (John Cole) Date: Fri, 9 Jun 2006 15:30:25 -0500 Subject: draw a line with arrows indicating direction of tavel... Message-ID: Hello, I'm trying to render a line and show the direction of travel (the points in the lines are in the proper order). Attempting to use a true type symbol, and come to find it is working as designed :-) http://mapserver.gis.umn.edu/docs/howto/cartosymbols/#signatures-of-type-tru etype So, how do I go about rendering an arrow at regular intervals along a line and have them follow the direction of the points in the line? 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 Fri Jun 9 14:06:44 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 9 Jun 2006 17:06:44 -0400 Subject: draw a line with arrows indicating direction of tavel... In-Reply-To: <76758090F8686C47A44B6FF52514A1D307909791@hermes.uai.int> Message-ID: John, Set the gap to a negative number in your symbol definition. -SteveW John Cole wrote: > Hello, I'm trying to render a line and show the direction of travel > (the points in the lines are in the proper order). Attempting to use > a true type symbol, and come to find it is working as designed :-) > http://mapserver.gis.umn.edu/docs/howto/cartosymbols/#signatures-of-type-tru > etype > > So, how do I go about rendering an arrow at regular intervals along a > line and have them follow the direction of the points in the line? > > 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 markane at INDIANA.EDU Fri Jun 9 19:02:22 2006 From: markane at INDIANA.EDU (Matthew Kane) Date: Fri, 9 Jun 2006 22:02:22 -0400 Subject: server error Message-ID: I'm quite a newbie with MapServer and am having problems with server errors. I am going through the book "Beginning MapServer" and some of his maps execute just fine, but others generate a 500 Internal Server Error. The Apache error log isn't very helpful. It just states: Premature end of script headers. Any suggestions on how to track down the problem would be greatly appreciated. -Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: From jjk_saji at YAHOO.COM Fri Jun 9 22:09:24 2006 From: jjk_saji at YAHOO.COM (John Joseph) Date: Sat, 10 Jun 2006 06:09:24 +0100 Subject: MapServer Test Demo and next Step. In-Reply-To: <2534c4120606090249j6d6d21d7y5fdbd428a05ec72@mail.gmail.com> Message-ID: It worked fine for me , I checked for zoom in , with different factors It was fine --- Zhonghai Wang wrote: > Hi guys, > > here is my small mapserver demo based on CGI model, > I really appreciate it > if you click on it and make a test for me. I'd like > your opinions about it. > Notice that I care only about the performance of > MapServer, not the GUIs > now. > > http://brntest2.maponair.com/mapserver/cgi-bin/mapserv.exe?map=/ms4w/apps/SwissDemo/outgoing.map > > For the next step I'd like to develop applications > using PHP/MapScript or > CSharp/MapScript, it seems that most people are > using PHP/MapScript. > > best regards > > zhonghai > Send instant messages to your online friends http://uk.messenger.yahoo.com From m.meier at SPIEKERMANN.DE Fri Jun 9 23:39:08 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Sat, 10 Jun 2006 08:39:08 +0200 Subject: Problem with the mailinglist In-Reply-To: <20060609092019.92790@gmx.net> Message-ID: Hi, in my mailbox this message showed up on Sat, 10. June 2006 at about 08:35 German time. Friday was the 9th of June not the 8th. Was that a typo? Manfred Meier Christian Wilmes schrieb: > Hi all, > > I've got some problems with this mailinglist. If I sent a mail to the list it takes hours or even days until it is in the list. If I try to sent a mail directly from the mailinglist homepage, after a few seconds I get the following mail: > Rejected posting to MAPSERVER-USERS at LISTS.UMN.EDU > > Your message is being returned to you unprocessed because it appears to have already been distributed to the MAPSERVER-USERS list. That is, a message with identical text (but possibly with different mail headers) has been posted to the list recently, either by you or by someone else. If you have reason to resend this message to the list (for instance because you have been notified of a hardware failure with loss of data), please alter the text of the message in some way and resend it to the list. Note that altering the "Subject:" line or adding blank lines at the top or bottom of the message is not sufficient; you should instead add a sentence or two at the top explaining why you are > resending the message, so that the other subscribers understand why they are getting two copies of the same message. > > > Because of these things it happens in the last time, that I was sending a mail more than one time, sorry for that! > > > I hope someone who is responsible for the mailinglist will read this mail and is probatly able to help me. > > This mail for example I will send at on Friday 08.06.2006 at 11:20am German time....wonder how long it will take this time until the mail is in the list. > > Best Regards > Christian From john.cole at UAI.COM Sat Jun 10 07:51:25 2006 From: john.cole at UAI.COM (John Cole) Date: Sat, 10 Jun 2006 09:51:25 -0500 Subject: draw a line with arrows indicating dire ction of tavel... Message-ID: Thanks, works perfect now. Really cool! I can't say how much easier and fun it is working with MapServer and PostGIS over the ESRI suite. Thanks guys. John -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Friday, June 09, 2006 4:07 PM To: John Cole Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] draw a line with arrows indicating direction of tavel... John, Set the gap to a negative number in your symbol definition. -SteveW John Cole wrote: > Hello, I'm trying to render a line and show the direction of travel > (the points in the lines are in the proper order). Attempting to use > a true type symbol, and come to find it is working as designed :-) > http://mapserver.gis.umn.edu/docs/howto/cartosymbols/#signatures-of-type-tru > etype > > So, how do I go about rendering an arrow at regular intervals along a > line and have them follow the direction of the points in the line? > > 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 madprof at GMX.CH Fri Jun 9 00:47:49 2006 From: madprof at GMX.CH (Daniel Goetz) Date: Fri, 9 Jun 2006 09:47:49 +0200 Subject: Mapserver and Oracle Message-ID: Hi, I have a question concernig the visualisation of oracle spatial data via umn-mapserver. I have installed the recent ms4w package on my computer. (c:\ms4w). I installed the oracle client (9i Release 2 Version) on drive d:\. The real database lies on an server in the intranet (not internet). I read in the "Using Oracle Spatial Data with MapServer"-howto: "Make sure though your Mapserver is compiled against the same version as your Oracle client". My question is how can I check this? I also read that when using oracle spatial data via the native support (without OGR) no FeatureInfo Requests are supported. Is this true? Despite of that I tried the native support of oracle spatial data. In the "Using Oracle Spatial Data with MapServer"-howto I read, that I have to do some environmental settings in the Apache httpd.conf file. Is there a more precise despriction how to do that? In the "vector data access" reference I read that "OGR must be compiled with Oracle Spatial support and MapServer must be compiled to use OGR". According to my understandig in the ms4w package OGR is compiled with oracle spatial support and mapserver should also be compiled to use OGR in the ms4w package. Am I right? At last I want to send you a abridgement of my .map-file. Perhaps they are wrong: LAYER NAME "RWG_TBL" STATUS ON TYPE POINT CONNECTIONTYPE oraclespatial CONNECTION "gds_brwk2004_umn/umn at gds1prod" DATA "GEOM FROM RWG_TBL USING SRID 82032" DUMP TRUE CLASS NAME "RWG_TBL" STYLE OUTLINECOLOR 128 128 128 COLOR 225 225 185 END END END Here the OGR Version LAYER NAME "RWG_TBL" CONNECTIONTYPE OGR CONNECTION "OCI:gds_brwk2004_umn/umn at gds1prod" DATA "RWG_TBL" TYPE POINT STATUS ON CLASS NAME "Flaeche" STYLE OUTLINECOLOR 128 128 128 COLOR 225 225 185 END END END Many questions I can not answer by myself. It's really difficult for me. Would be very nice if anybody could help me. I would be very glad and thankful. Thank you very much. Regards Daniel Goetz -- "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail From m.meier at SPIEKERMANN.DE Sat Jun 10 09:03:34 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Sat, 10 Jun 2006 18:03:34 +0200 Subject: server error In-Reply-To: Message-ID: Hello, - are you sure that there are no error messages in the apache log in the last 5 or so lines before the "Premature end of script headers."? If you are not sure, perhaps you can give us the last 10 lines of your log file. - Does the same Map-File work with shp2img : shp2img -m mapfile. I use this "debugging" method sometimes becaus it gives you the error messages on the screen Manfred Meier Matthew Kane schrieb: > I'm quite a newbie with MapServer and am having problems with server > errors. I am going through the book "Beginning MapServer" and some of > his maps execute just fine, but others generate a 500 Internal Server > Error. > > The Apache error log isn't very helpful. It just states: Premature end > of script headers. > > Any suggestions on how to track down the problem would be greatly > appreciated. > > -Matt From C.Wilmes at GMX.DE Thu Jun 8 09:00:58 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Thu, 8 Jun 2006 18:00:58 +0200 Subject: c#-mapscript, display Image without saving on disk and zoom Message-ID: Hi All, I've got 2 questions about c#-mapscript: 1. Is it possible to display the image coming from the mapserver without saving it on disc before? In the moment I only realized it with saving on disc: imageObj image = myMap.draw(); image.save("test.jpeg", myMap); this.map.Image = Image.FromFile("test.jpeg"); 2. I'm trying to realize a zoom, but theres the same problem again....how can I do that without saving the image. If I save the Image the zoom is correct. In the moment my zoom-function looks like that (it doesn't work): public void zoomIn(Object obj, MouseEventArgs ea) { myMap.zoomPoint(2, new pointObj(ea.X, ea.Y, 0, 0), this.map.Width, this.map.Height, myMap.extent, new rectObj(-90, -180, 90, 180, 0)); imageObj image = myMap.draw(); this.map.Refresh(); } I would be very thankful for any help! Best Regards Christian -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From szekerest at GMAIL.COM Sat Jun 10 13:56:53 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Sat, 10 Jun 2006 22:56:53 +0200 Subject: c#-mapscript, display Image without saving on disk and zoom In-Reply-To: <20060608160058.305920@gmx.net> Message-ID: Christian, Beginning with 4.8.0 you can utilize imageObj.getBytes to get the generated image as a byte array. You can use for example: private void RefreshMap() { using(imageObj image = myMap.draw()) { byte[] img = image.getBytes(); using (MemoryStream ms = new MemoryStream(img)) { Image mapimage = Image.FromStream(ms); if (this.map.Image != null) { this.map.Image.Dispose(); this.map.Image = null; } this.map.Image = mapimage; } } } Alternatively if you are using the CVS version you can use imageObj.write(System.IO.Stream stream) to write the contents of the image onto a previously generated stream object. I hope your zoom problem could be solved accordingly. Note: If you would like use mapObj.zoomRectange() the miny and maxy of the given rectangle should be swapped with the previous releases. For example: private void ZoomRectangle(rectObj imgrect) { double c = imgrect.miny; imgrect.miny = imgrect.maxy; imgrect.maxy = c; map.zoomRectangle( imgrect, myMap.width, myMap.height, myMap.extent, null); RefreshMap(); } This problem was corrected with the current CVS HEAD. Best Regards, Tamas -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christian Wilmes Sent: Thursday, June 08, 2006 6:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] c#-mapscript, display Image without saving on disk and zoom Hi All, I've got 2 questions about c#-mapscript: 1. Is it possible to display the image coming from the mapserver without saving it on disc before? In the moment I only realized it with saving on disc: imageObj image = myMap.draw(); image.save("test.jpeg", myMap); this.map.Image = Image.FromFile("test.jpeg"); 2. I'm trying to realize a zoom, but theres the same problem again....how can I do that without saving the image. If I save the Image the zoom is correct. In the moment my zoom-function looks like that (it doesn't work): public void zoomIn(Object obj, MouseEventArgs ea) { myMap.zoomPoint(2, new pointObj(ea.X, ea.Y, 0, 0), this.map.Width, this.map.Height, myMap.extent, new rectObj(-90, -180, 90, 180, 0)); imageObj image = myMap.draw(); this.map.Refresh(); } I would be very thankful for any help! Best Regards Christian -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/360 - Release Date: 2006.06.09. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/360 - Release Date: 2006.06.09. From drewtimmins at GMAIL.COM Sun Jun 11 13:42:16 2006 From: drewtimmins at GMAIL.COM (Andrew Timmins) Date: Sun, 11 Jun 2006 16:42:16 -0400 Subject: shapelib Message-ID: Hello, I am looking at using a php extension called shaplib on a server that currently does not have MapServer/MapScript installed. From stepan.kafka at CENTRUM.CZ Sun Jun 11 23:01:20 2006 From: stepan.kafka at CENTRUM.CZ (Stepan Kafka) Date: Mon, 12 Jun 2006 08:01:20 +0200 Subject: download of nightly builds Message-ID: Hi all, please, how can I download mapserver nightly builds? On http://mapserver.gis.umn.edu/download only 4.8.3 version is available. Thank you Stepan Kafka From b.vdeijnden at AGI.RWS.MINVENW.NL Sun Jun 11 23:13:51 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Mon, 12 Jun 2006 08:13:51 +0200 Subject: download of nightly builds Message-ID: http://cvs.gis.umn.edu/dist/nightly.tar.gz Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Stepan Kafka Verzonden: maandag 12 juni 2006 8:01 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] download of nightly builds Hi all, please, how can I download mapserver nightly builds? On http://mapserver.gis.umn.edu/download only 4.8.3 version is available. Thank you Stepan Kafka 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 C.Wilmes at GMX.DE Mon Jun 12 00:59:45 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Mon, 12 Jun 2006 09:59:45 +0200 Subject: Problem with the mailinglist In-Reply-To: <448A690C.1040700@spiekermann.de> Message-ID: > >sorry, you are right, of course it was the 9th of June. I can't see any regularity for the delay, it just seems to be chance. So where do I have to search the problem? It seems nobody else have the same problems, so could it be a problem of my mail-provider (gmx.de)? This message was sent on Monday the 12th of june at 09:53am german time. Best Regards Christian? -------- Original-Nachricht -------- >?Datum: Sat, 10 Jun 2006 08:39:08 +0200 >?Von: Manfred Meier >?An: MAPSERVER-USERS at LISTS.UMN.EDU >?Betreff: Re: [UMN_MAPSERVER-USERS] Problem with the mailinglist >? > Hi, > in my mailbox this message showed up on Sat, 10. June 2006 at about > 08:35 German time. > > Friday was the 9th of June not the 8th. Was that a typo? > > Manfred Meier > > Christian Wilmes schrieb: > > Hi all, > > > > I've got some problems with this mailinglist. If I sent a mail to the > list it takes hours or even days until it is in the list. If I try to sent > a mail directly from the mailinglist homepage, after a few seconds I get > the following mail: > > Rejected posting to MAPSERVER-USERS at LISTS.UMN.EDU > > > > Your message is being returned to you unprocessed because it appears > to have already been distributed to the MAPSERVER-USERS list. That is, a > message with identical text (but possibly with different mail headers) > has been posted to the list recently, either by you or by someone > else. > If you have reason to resend this message to the list (for instance > because you have been notified of a hardware failure with loss of data), > please alter the text of the message in some way and resend it to the > list. Note that altering the "Subject:" line or adding blank lines at > the > top or bottom of the message is not sufficient; you should instead add > a > sentence or two at the top explaining why you are > > resending the message, so that the other subscribers understand why > they are getting two copies of the same message. > > > > > Because of these things it happens in the last time, that I was > sending > a mail more than one time, sorry for that! > > > > > I hope someone who is responsible for the mailinglist will read this > mail and is probatly able to help me. > > > > This mail for example I will send at on Friday 08.06.2006 at 11:20am > German time....wonder how long it will take this time until the mail is in > the list. > > > > Best Regards > > Christian -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From m.meier at SPIEKERMANN.DE Mon Jun 12 01:08:43 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Mon, 12 Jun 2006 10:08:43 +0200 Subject: Problem with the mailinglist In-Reply-To: <20060612075945.275370@gmx.net> Message-ID: Hi, I received this message on Monday 12, 10:00 German time. Not bad! A long time ago, when I did subscribe to the list there was an option to get all mails bundled once a day. Can this be the problem in your case? Greetings Manfred Meier Christian Wilmes schrieb: >>sorry, you are right, of course it was the 9th of June. I can't see any regularity for the delay, it just seems to be chance. > > > So where do I have to search the problem? It seems nobody else have the same problems, so could it be a problem of my mail-provider (gmx.de)? > > This message was sent on Monday the 12th of june at 09:53am german time. > > Best Regards > Christian > -------- Original-Nachricht -------- > >> Datum: Sat, 10 Jun 2006 08:39:08 +0200 >> Von: Manfred Meier >> An: MAPSERVER-USERS at LISTS.UMN.EDU >> Betreff: Re: [UMN_MAPSERVER-USERS] Problem with the mailinglist >> > Hi, >>in my mailbox this message showed up on Sat, 10. June 2006 at about >>08:35 German time. >> >>Friday was the 9th of June not the 8th. Was that a typo? >> >>Manfred Meier >> >>Christian Wilmes schrieb: >> >>>Hi all, >>> >>>I've got some problems with this mailinglist. If I sent a mail to the >> >>list it takes hours or even days until it is in the list. If I try to sent >>a mail directly from the mailinglist homepage, after a few seconds I get >>the following mail: >> >>>Rejected posting to MAPSERVER-USERS at LISTS.UMN.EDU >>> >>>Your message is being returned to you unprocessed because it appears >> >>to have already been distributed to the MAPSERVER-USERS list. That is, a >>message with identical text (but possibly with different mail headers) >>has been posted to the list recently, either by you or by someone >>else. >> If you have reason to resend this message to the list (for instance >>because you have been notified of a hardware failure with loss of data), >>please alter the text of the message in some way and resend it to the >>list. Note that altering the "Subject:" line or adding blank lines at >>the >>top or bottom of the message is not sufficient; you should instead add >>a >> sentence or two at the top explaining why you are >> >>>resending the message, so that the other subscribers understand why >> >>they are getting two copies of the same message. >> >>>>Because of these things it happens in the last time, that I was >> >>sending >>a mail more than one time, sorry for that! >> >>>>I hope someone who is responsible for the mailinglist will read this >> >>mail and is probatly able to help me. >> >>>This mail for example I will send at on Friday 08.06.2006 at 11:20am >> >>German time....wonder how long it will take this time until the mail is in >>the list. >> >>>Best Regards >>>Christian > > From C.Wilmes at GMX.DE Mon Jun 12 02:02:29 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Mon, 12 Jun 2006 11:02:29 +0200 Subject: Problem with the mailinglist In-Reply-To: <448D210B.8090002@spiekermann.de> Message-ID: >>That couldn't be the problem, I haven't choose that option. But the last time it seems to work. I get my own message at 9:59. So hoping I've got luck again and this message will be in the list in a few minutes too. Mo 11:02 am German Time. ? -------- Original-Nachricht -------- >?Datum: Mon, 12 Jun 2006 10:08:43 +0200 >?Von: Manfred Meier >?An: MAPSERVER-USERS at LISTS.UMN.EDU >?Betreff: Re: [UMN_MAPSERVER-USERS] Problem with the mailinglist >? > Hi, > > I received this message on Monday 12, 10:00 German time. Not bad! > A long time ago, when I did subscribe to the list there was an option to > get all mails bundled once a day. Can this be the problem in your case? > > Greetings > Manfred Meier > > Christian Wilmes schrieb: > >>sorry, you are right, of course it was the 9th of June. I can't see any > regularity for the delay, it just seems to be chance. > > > > > So where do I have to search the problem? It seems nobody else have > the > same problems, so could it be a problem of my mail-provider (gmx.de)? > > > > This message was sent on Monday the 12th of june at 09:53am german time. > > > > Best Regards > > Christian > > -------- Original-Nachricht -------- > > > >> Datum: Sat, 10 Jun 2006 08:39:08 +0200 > >> Von: Manfred Meier > >> An: MAPSERVER-USERS at LISTS.UMN.EDU > >> Betreff: Re: [UMN_MAPSERVER-USERS] Problem with the mailinglist > >> > Hi, > >>in my mailbox this message showed up on Sat, 10. June 2006 at about > >>08:35 German time. > >> > >>Friday was the 9th of June not the 8th. Was that a typo? > >> > >>Manfred Meier > >> > >>Christian Wilmes schrieb: > >> > >>>Hi all, > >>> > >>>I've got some problems with this mailinglist. If I sent a mail to the > >> > >>list it takes hours or even days until it is in the list. If I try to > sent > >>a mail directly from the mailinglist homepage, after a few seconds I get > >>the following mail: > >> > >>>Rejected posting to MAPSERVER-USERS at LISTS.UMN.EDU > >>> > >>>Your message is being returned to you unprocessed because it appears > >> > >>to have already been distributed to the MAPSERVER-USERS list. That is, > a > >>message with identical text (but possibly with different mail headers) > >>has been posted to the list recently, either by you or by someone > >>else. > >> If you have reason to resend this message to the list (for instance > >>because you have been notified of a hardware failure with loss of data), > > >>please alter the text of the message in some way and resend it to the > >>list. Note that altering the "Subject:" line or adding blank lines at > >>the > >>top or bottom of the message is not sufficient; you should instead add > >>a > >> sentence or two at the top explaining why you are > >> > >>>resending the message, so that the other subscribers understand why > >> > >>they are getting two copies of the same message. > >> > >>>>Because of these things it happens in the last time, that I was > >> > >>sending > >>a mail more than one time, sorry for that! > >> > >>>>I hope someone who is responsible for the mailinglist will read this > >> > >>mail and is probatly able to help me. > >> > >>>This mail for example I will send at on Friday 08.06.2006 at 11:20am > >> > >>German time....wonder how long it will take this time until the mail is > in > >>the list. > >> > >>>Best Regards > >>>Christian > > > > -- "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail From raffle80 at YAHOO.CO.UK Mon Jun 12 02:24:42 2006 From: raffle80 at YAHOO.CO.UK (raffle peter) Date: Mon, 12 Jun 2006 10:24:42 +0100 Subject: How to Lat, long info in the browser? Message-ID: Hi Can anyone plz. guide me how to show the latitude, longitude information in the status bar of the window or in the page using php/mapscript when i move the mouse over the map. In detail explanation or from where to start the coding for that will really help me. I am using the GMAP map engine. Thanks in advance Raffle Send instant messages to your online friends http://uk.messenger.yahoo.com From fsozzi at INTERCAD.CH Mon Jun 12 05:23:09 2006 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Mon, 12 Jun 2006 14:23:09 +0200 Subject: poor rendering quality on labels Message-ID: Hi all, I have some troubles in building a quality printout from Mapserver. In the attached image I show you what I get from Mapserver: labels are not clear, they seem out of focus and very difficult to read. It is possible to get a sharper image (at least on labels)? I used a PNG24 output format. Best regards Francesco Sozzi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 115011430740921.png Type: image/png Size: 28902 bytes Desc: not available URL: From vulukut at TESCILTURK.COM Mon Jun 12 05:44:58 2006 From: vulukut at TESCILTURK.COM (Volkan Ulukut) Date: Mon, 12 Jun 2006 15:44:58 +0300 Subject: Zooming to shapes found by queryByAttributes Message-ID: Hey list; I'm having trouble zooming to the exact location of the shape after doing a search with queryByAttributes. I'm trying to use zoomrectangle and zoomscale but they both need pixel position. So i try to convert my georef coordinates to pixel coordinates. I believe that was successful too, but the problem is that the shape is too small (a street in the worldmap) and the pixel i calculate is not an integer value. The zoom actually happens but not exactly on the shape just a bit miles west and north. I tried to workaround this by zooming step by step. By that i mean zooming to that location a little then zooming to the centre till i get to the shape. But that won't give the same result on every search as you may guess. I'm stuck now cause i can't zoom to the right place with pixel coordinates. Is there any way that i can zoom with georef coordinates(lat/long)? -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Mon Jun 12 05:44:52 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 12 Jun 2006 14:44:52 +0200 Subject: Zooming to shapes found by queryByAttributes In-Reply-To: Message-ID: Try to zoomRectangle using the shape's bounds. HTH, Umberto On 6/12/06, Volkan Ulukut wrote: > > > > > Hey list; > > I'm having trouble zooming to the exact location of the shape after doing a > search with queryByAttributes. I'm trying to use zoomrectangle and zoomscale > but they both need pixel position. So i try to convert my georef coordinates > to pixel coordinates. I believe that was successful too, but the problem is > that the shape is too small (a street in the worldmap) and the pixel i > calculate is not an integer value. The zoom actually happens but not exactly > on the shape just a bit miles west and north. I tried to workaround this by > zooming step by step. By that i mean zooming to that location a little then > zooming to the centre till i get to the shape. But that won't give the same > result on every search as you may guess. I'm stuck now cause i can't zoom to > the right place with pixel coordinates. Is there any way that i can zoom > with georef coordinates(lat/long)? From vulukut at TESCILTURK.COM Mon Jun 12 05:58:45 2006 From: vulukut at TESCILTURK.COM (Volkan Ulukut) Date: Mon, 12 Jun 2006 15:58:45 +0300 Subject: Zooming to shapes found by queryByAttributes In-Reply-To: <75b4b93e0606120544l3197e98bx47c4f6c9470edc1c@mail.gmail.com> Message-ID: void zoomrectangle(rectObj oPixelExt, int nImageWidth, int nImageHeight, rectObj oGeorefExt) Parmeters are : - oPixelExt (rect object) : Pixel Extents, with (0,0) at the top-left The rectangle contains the coordinates of the LL and UR coordinates in pixel. Shape's bounds are georef coordinates. Zoomrectangle takes pixel extents as parameter. When i try to use shape's bounds anyway here's the result: Fatal error: [MapServer Error]: msCalculateScale(): Invalid image extent, minx=-31.418490, miny=75.002064, maxx=-31.418490, maxy=75.002064. -----Original Message----- From: tesciltu at host.tescilturk.com [mailto:tesciltu at host.tescilturk.com] On Behalf Of Umberto Nicoletti Sent: Monday, June 12, 2006 3:45 PM To: Volkan Ulukut Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Zooming to shapes found by queryByAttributes Try to zoomRectangle using the shape's bounds. HTH, Umberto On 6/12/06, Volkan Ulukut wrote: > > > > > Hey list; > > I'm having trouble zooming to the exact location of the shape after doing a > search with queryByAttributes. I'm trying to use zoomrectangle and zoomscale > but they both need pixel position. So i try to convert my georef coordinates > to pixel coordinates. I believe that was successful too, but the problem is > that the shape is too small (a street in the worldmap) and the pixel i > calculate is not an integer value. The zoom actually happens but not exactly > on the shape just a bit miles west and north. I tried to workaround this by > zooming step by step. By that i mean zooming to that location a little then > zooming to the centre till i get to the shape. But that won't give the same > result on every search as you may guess. I'm stuck now cause i can't zoom to > the right place with pixel coordinates. Is there any way that i can zoom > with georef coordinates(lat/long)? From umberto.nicoletti at GMAIL.COM Mon Jun 12 06:28:22 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 12 Jun 2006 15:28:22 +0200 Subject: Zooming to shapes found by queryByAttributes In-Reply-To: <448d69c0.1a0a6153.782e.ffffc0feSMTPIN_ADDED@mx.gmail.com> Message-ID: REMEMBER to cc the list. PHP mapscript is ok, it was not afffected. Probably you are not using the correct order for minx, miny, etc. Umberto On 6/12/06, Volkan Ulukut wrote: > I'm using mapserver 4.8.3. mapscript was compiled with it. What was wrong > with zoomRectangle? > > -----Original Message----- > From: tesciltu at host.tescilturk.com [mailto:tesciltu at host.tescilturk.com] On > Behalf Of Umberto Nicoletti > Sent: Monday, June 12, 2006 4:06 PM > To: Volkan Ulukut > Subject: Re: [UMN_MAPSERVER-USERS] Zooming to shapes found by > queryByAttributes > > On 6/12/06, Volkan Ulukut wrote: > > > > void zoomrectangle(rectObj oPixelExt, int nImageWidth, int nImageHeight, > > rectObj oGeorefExt) > > Parmeters are : > > - oPixelExt (rect object) : Pixel Extents, with (0,0) at the top-left > > The rectangle contains the coordinates of the LL and UR > > coordinates in pixel. > > > > Shape's bounds are georef coordinates. Zoomrectangle takes pixel extents > as > > parameter. > > When i try to use shape's bounds anyway here's the result: > > Fatal error: [MapServer Error]: msCalculateScale(): Invalid image extent, > > minx=-31.418490, miny=75.002064, maxx=-31.418490, maxy=75.002064. > > There is a bug in the zoomRectangle code which was fixed last week in > cvs versions of mapserver. What mapscript are you using? > > Umberto > > > -----Original Message----- > > From: tesciltu at host.tescilturk.com [mailto:tesciltu at host.tescilturk.com] > On > > Behalf Of Umberto Nicoletti > > Sent: Monday, June 12, 2006 3:45 PM > > To: Volkan Ulukut > > Cc: MAPSERVER-USERS at lists.umn.edu > > Subject: Re: [UMN_MAPSERVER-USERS] Zooming to shapes found by > > queryByAttributes > > > > Try to zoomRectangle using the shape's bounds. > > > > HTH, > > Umberto > > > > On 6/12/06, Volkan Ulukut wrote: > > > > > > > > > > > > > > > Hey list; > > > > > > I'm having trouble zooming to the exact location of the shape after > doing > > a > > > search with queryByAttributes. I'm trying to use zoomrectangle and > > zoomscale > > > but they both need pixel position. So i try to convert my georef > > coordinates > > > to pixel coordinates. I believe that was successful too, but the problem > > is > > > that the shape is too small (a street in the worldmap) and the pixel i > > > calculate is not an integer value. The zoom actually happens but not > > exactly > > > on the shape just a bit miles west and north. I tried to workaround this > > by > > > zooming step by step. By that i mean zooming to that location a little > > then > > > zooming to the centre till i get to the shape. But that won't give the > > same > > > result on every search as you may guess. I'm stuck now cause i can't > zoom > > to > > > the right place with pixel coordinates. Is there any way that i can zoom > > > with georef coordinates(lat/long)? > > > > > > > > > From vulukut at TESCILTURK.COM Mon Jun 12 06:40:14 2006 From: vulukut at TESCILTURK.COM (Volkan Ulukut) Date: Mon, 12 Jun 2006 16:40:14 +0300 Subject: Zooming to shapes found by queryByAttributes In-Reply-To: <75b4b93e0606120628h48e837b1xd6075b065d7cb522@mail.gmail.com> Message-ID: Ok here is the code. I don't think it's a wrong order issue since i'm not changing any values. $oExtents = $oMapSession->oMap->extent; $oldExtents = $oExtents; $oLayer = $oMapSession->oMap->getLayerByName($http_form_vars['sLayer']); $result = $oLayer->queryByAttributes($http_form_vars['sAttribute'], "/" . $http_form_vars['sString'] . "/", MS_SINGLE); $oLayer->open(); $oRes = $oLayer->getResult(0); $oShape = $oLayer->getShape($oRes->tileindex,$oRes->shapeindex); $oExtents = $oShape->bounds; $oShape->free(); $width=$oMapSession->oMap->width; $height=$oMapSession->oMap->height; $oMapSession->oMap->zoomrectangle( $oExtents,$width,$height,$oldExtents); Ends up with: Fatal error: [MapServer Error]: msCalculateScale(): Invalid image extent, minx=-31.418490, miny=75.002064, maxx=-31.418490, maxy=75.002064. On red line -----Original Message----- From: tesciltu at host.tescilturk.com [mailto:tesciltu at host.tescilturk.com] On Behalf Of Umberto Nicoletti Sent: Monday, June 12, 2006 4:28 PM To: Volkan Ulukut; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Zooming to shapes found by queryByAttributes REMEMBER to cc the list. PHP mapscript is ok, it was not afffected. Probably you are not using the correct order for minx, miny, etc. Umberto On 6/12/06, Volkan Ulukut wrote: > I'm using mapserver 4.8.3. mapscript was compiled with it. What was wrong > with zoomRectangle? > > -----Original Message----- > From: tesciltu at host.tescilturk.com [mailto:tesciltu at host.tescilturk.com] On > Behalf Of Umberto Nicoletti > Sent: Monday, June 12, 2006 4:06 PM > To: Volkan Ulukut > Subject: Re: [UMN_MAPSERVER-USERS] Zooming to shapes found by > queryByAttributes > > On 6/12/06, Volkan Ulukut wrote: > > > > void zoomrectangle(rectObj oPixelExt, int nImageWidth, int nImageHeight, > > rectObj oGeorefExt) > > Parmeters are : > > - oPixelExt (rect object) : Pixel Extents, with (0,0) at the top-left > > The rectangle contains the coordinates of the LL and UR > > coordinates in pixel. > > > > Shape's bounds are georef coordinates. Zoomrectangle takes pixel extents > as > > parameter. > > When i try to use shape's bounds anyway here's the result: > > Fatal error: [MapServer Error]: msCalculateScale(): Invalid image extent, > > minx=-31.418490, miny=75.002064, maxx=-31.418490, maxy=75.002064. > > There is a bug in the zoomRectangle code which was fixed last week in > cvs versions of mapserver. What mapscript are you using? > > Umberto > > > -----Original Message----- > > From: tesciltu at host.tescilturk.com [mailto:tesciltu at host.tescilturk.com] > On > > Behalf Of Umberto Nicoletti > > Sent: Monday, June 12, 2006 3:45 PM > > To: Volkan Ulukut > > Cc: MAPSERVER-USERS at lists.umn.edu > > Subject: Re: [UMN_MAPSERVER-USERS] Zooming to shapes found by > > queryByAttributes > > > > Try to zoomRectangle using the shape's bounds. > > > > HTH, > > Umberto > > > > On 6/12/06, Volkan Ulukut wrote: > > > > > > > > > > > > > > > Hey list; > > > > > > I'm having trouble zooming to the exact location of the shape after > doing > > a > > > search with queryByAttributes. I'm trying to use zoomrectangle and > > zoomscale > > > but they both need pixel position. So i try to convert my georef > > coordinates > > > to pixel coordinates. I believe that was successful too, but the problem > > is > > > that the shape is too small (a street in the worldmap) and the pixel i > > > calculate is not an integer value. The zoom actually happens but not > > exactly > > > on the shape just a bit miles west and north. I tried to workaround this > > by > > > zooming step by step. By that i mean zooming to that location a little > > then > > > zooming to the centre till i get to the shape. But that won't give the > > same > > > result on every search as you may guess. I'm stuck now cause i can't > zoom > > to > > > the right place with pixel coordinates. Is there any way that i can zoom > > > with georef coordinates(lat/long)? > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From D.Stone at ED.AC.UK Mon Jun 12 06:51:06 2006 From: D.Stone at ED.AC.UK (DjwStone) Date: Mon, 12 Jun 2006 06:51:06 -0700 Subject: Query by point Message-ID: Apologies if this is a repeat post -- I've been away for a bit. A strange thing is happening when I do (CGI) query-by-point, clicking on a point of the following layer. If I select 'Andrew' (say) as the 'stname' on the map template, I see a map with the correct dots for 15th century church dedications to Andrew. But if I then set the mode to 'query' or 'nquery' and click on a dot, the 'result.html' template appears with attribute values for records which only meet the location and date criteria (deddlo, deddhi) and not the stname or dedicationtype criteria, e.g it might be an altar dedication to Barbara. I've tried removing the complicated date criteria from the DATA status, and then the query-by-point seems to work OK. Needless to say, however, this is not an acceptable solution! Can anyone suggest what is going wrong? It will be a real show-stopper if I can't circumvent this. Cheers, Dave LAYER # query layer using the saintloc PostgreSQL view CONNECTIONTYPE postgis NAME saint_chdedlocs_C15 CONNECTION "user=erdb13 dbname=stdraft" DATA "geom from (select dr, geom, stdname, reftostconf, saintid, locationref, deddlo, deddhi, dedicationtype, stdesc, oid from saintloc where ((deddlo >= 14010101) AND (deddlo <= 15001231)) OR ((deddhi >= 14010101) AND (deddhi <= 15001231)) AND dedicationtype = 'Church dedication') as foo using srid=27700" STATUS OFF DEBUG ON TYPE POINT FILTERITEM stdname FILTER "stdname='%stname%'" TOLERANCE 25 HEADER "result_hdr.html" FOOTER "result_ftr.html" CLASS NAME "Church dedications - 15C" MINSCALE 2000000 TEMPLATE "result.html" DEBUG ON STYLE SYMBOL "square" SIZE 5 COLOR 51 255 255 OUTLINECOLOR 0 0 0 END END ... etc. ... END # test query layer -- View this message in context: http://www.nabble.com/Query-by-point-t1774168.html#a4829017 Sent from the Mapserver - User forum at Nabble.com. From diego.riofrio at GMAIL.COM Mon Jun 12 06:57:40 2006 From: diego.riofrio at GMAIL.COM (Diego Riofrio) Date: Mon, 12 Jun 2006 08:57:40 -0500 Subject: Deploy problem mapscript C# In-Reply-To: <20060605171142.GOZR18171.viefep13-int.chello.at@szekerespc> Message-ID: Tamas, I solved the problem of deploy the application in Windows 2003 by installing the SDK v1.1, I would really like to know what this is happening. Thanks a lot for all your help. Diego -------------- next part -------------- An HTML attachment was scrubbed... URL: From vulukut at TESCILTURK.COM Mon Jun 12 07:02:19 2006 From: vulukut at TESCILTURK.COM (Volkan Ulukut) Date: Mon, 12 Jun 2006 17:02:19 +0300 Subject: Zooming to shapes found by queryByAttributes In-Reply-To: Message-ID: Solved it now. I was looking for $map->"zoom.." but $map->"setextent" was the answer. _____ From: tesciltu at host.tescilturk.com [mailto:tesciltu at host.tescilturk.com] On Behalf Of Volkan Ulukut Sent: Monday, June 12, 2006 4:40 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Zooming to shapes found by queryByAttributes Ok here is the code. I don't think it's a wrong order issue since i'm not changing any values. $oExtents = $oMapSession->oMap->extent; $oldExtents = $oExtents; $oLayer = $oMapSession->oMap->getLayerByName($http_form_vars['sLayer']); $result = $oLayer->queryByAttributes($http_form_vars['sAttribute'], "/" . $http_form_vars['sString'] . "/", MS_SINGLE); $oLayer->open(); $oRes = $oLayer->getResult(0); $oShape = $oLayer->getShape($oRes->tileindex,$oRes->shapeindex); $oExtents = $oShape->bounds; $oShape->free(); $width=$oMapSession->oMap->width; $height=$oMapSession->oMap->height; $oMapSession->oMap->zoomrectangle( $oExtents,$width,$height,$oldExtents); Ends up with: Fatal error: [MapServer Error]: msCalculateScale(): Invalid image extent, minx=-31.418490, miny=75.002064, maxx=-31.418490, maxy=75.002064. On red line -----Original Message----- From: tesciltu at host.tescilturk.com [mailto:tesciltu at host.tescilturk.com] On Behalf Of Umberto Nicoletti Sent: Monday, June 12, 2006 4:28 PM To: Volkan Ulukut; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Zooming to shapes found by queryByAttributes REMEMBER to cc the list. PHP mapscript is ok, it was not afffected. Probably you are not using the correct order for minx, miny, etc. Umberto On 6/12/06, Volkan Ulukut wrote: > I'm using mapserver 4.8.3. mapscript was compiled with it. What was wrong > with zoomRectangle? > > -----Original Message----- > From: tesciltu at host.tescilturk.com [mailto:tesciltu at host.tescilturk.com] On > Behalf Of Umberto Nicoletti > Sent: Monday, June 12, 2006 4:06 PM > To: Volkan Ulukut > Subject: Re: [UMN_MAPSERVER-USERS] Zooming to shapes found by > queryByAttributes > > On 6/12/06, Volkan Ulukut wrote: > > > > void zoomrectangle(rectObj oPixelExt, int nImageWidth, int nImageHeight, > > rectObj oGeorefExt) > > Parmeters are : > > - oPixelExt (rect object) : Pixel Extents, with (0,0) at the top-left > > The rectangle contains the coordinates of the LL and UR > > coordinates in pixel. > > > > Shape's bounds are georef coordinates. Zoomrectangle takes pixel extents > as > > parameter. > > When i try to use shape's bounds anyway here's the result: > > Fatal error: [MapServer Error]: msCalculateScale(): Invalid image extent, > > minx=-31.418490, miny=75.002064, maxx=-31.418490, maxy=75.002064. > > There is a bug in the zoomRectangle code which was fixed last week in > cvs versions of mapserver. What mapscript are you using? > > Umberto > > > -----Original Message----- > > From: tesciltu at host.tescilturk.com [mailto:tesciltu at host.tescilturk.com] > On > > Behalf Of Umberto Nicoletti > > Sent: Monday, June 12, 2006 3:45 PM > > To: Volkan Ulukut > > Cc: MAPSERVER-USERS at lists.umn.edu > > Subject: Re: [UMN_MAPSERVER-USERS] Zooming to shapes found by > > queryByAttributes > > > > Try to zoomRectangle using the shape's bounds. > > > > HTH, > > Umberto > > > > On 6/12/06, Volkan Ulukut wrote: > > > > > > > > > > > > > > > Hey list; > > > > > > I'm having trouble zooming to the exact location of the shape after > doing > > a > > > search with queryByAttributes. I'm trying to use zoomrectangle and > > zoomscale > > > but they both need pixel position. So i try to convert my georef > > coordinates > > > to pixel coordinates. I believe that was successful too, but the problem > > is > > > that the shape is too small (a street in the worldmap) and the pixel i > > > calculate is not an integer value. The zoom actually happens but not > > exactly > > > on the shape just a bit miles west and north. I tried to workaround this > > by > > > zooming step by step. By that i mean zooming to that location a little > > then > > > zooming to the centre till i get to the shape. But that won't give the > > same > > > result on every search as you may guess. I'm stuck now cause i can't > zoom > > to > > > the right place with pixel coordinates. Is there any way that i can zoom > > > with georef coordinates(lat/long)? > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From madprof at GMX.CH Mon Jun 12 04:54:26 2006 From: madprof at GMX.CH (Daniel Goetz) Date: Mon, 12 Jun 2006 13:54:26 +0200 Subject: oracle spatial Message-ID: Hi, I have the ms4w installed on my computer and I want to map geodata, lying in a oracle spatial database on a server in the intranet, via umn mapserver. Therefor I enabled OGR-OCI support described in the readme-file of the ms4w-package (I "installed" 10g oracle instant client on my computer, set set windows environmet variable PATH and did the described .dll swapping). Then I tested, whether OGR now supports the OCI with ogrinfo. Therefor I had to modify the syntax a littel bit to get information: I wrote "ogrinfo "OCI:username/password at host:port/service_name" instead of described on the ogr-site/oracle spatial "OCI:username/password at service_name". The result was that ogrinfo listed me the relevant tables that contain geometric data. Then I tried to map the data via mapserver. Therefor I wrote the following .map-file (therefor I correspond to the example given in the "Vector Data Access-Reference-Guide" on the mapserver-site): MAP NAME "Oracle" EXTENT 426666.49 466058.21 448321.44 490754.58 SIZE 1400 1800 SHAPEPATH "/ms4w/Apache/htdocs/raster/daten" IMAGETYPE PNG IMAGECOLOR 255 255 255 UNITS METERS STATUS ON CONFIG "GDAL_DRIVER_PATH" "C:/ms4w/gdalplugins" WEB IMAGEPATH "c:\ms4w\Apache\htdocs\raster\tmp\" IMAGEURL "/raster/tmp/" TEMPLATE "test_template.html" END LAYER CONNECTIONTYPE OGR CONNECTION "OCI:username/password at service_name" DATA "RWG_TBS" NAME "RWG_TBS" TYPE POLYGON STATUS ON CLASS NAME "Flaeche" STYLE OUTLINECOLOR 128 128 128 COLOR 225 225 185 END END END END The template I wrote therefor is very simple: Erstes Beispiel zum UMN Mapserver Mapserver-Version auslesen:

[version]


Karte einbetten:


And I tried to start mapping by writing the following in my browser: http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raster/test_os_ogr.map&layers=all& The result was, that mapserver brought the error-message: "mapserv(): Web application error. No template provided. " Then I tested some other mapserver-test-projects, for whom I know that they have worked properly on my computer before the mentioned .dll swapping for OGR-OCI support. The result was the same: "mapserv(): Web application error. No template provided. " So I have three questions: How should mapserver know where the database is located without giving him any information about the host-address and the port-number. Where can I provide this information for the mapserver. In the case of ogrinfo I did this by writing "OCI:username/password at host:port/service_name". In the .mpa-file example in the "Vector-Data-Reference-Guide" they say under CONECTION you should type "OCI:username/password at service_name". Where is the information about the location of the database? Second questions is: Is anything wrong with my .map-file, html-template or the starting-command in the web-browser? Third: And why do the other mapserver projects, I tested before .dll swapping (for OGR-COI support), work anymore. Why do I always get the error-message "mapserv(): Web application error. No template provided." although I changed nothing on the .map-files, the template nor the command. I would be very pleased and hayppy and thankful if anybody would help me on my problem. This would really be very nice. Thank you so much for your endeavors. Regards Daniel -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From mcgrawj at AGR.GC.CA Mon Jun 12 08:52:48 2006 From: mcgrawj at AGR.GC.CA (McGraw, Joanne) Date: Mon, 12 Jun 2006 11:52:48 -0400 Subject: WFS contact info Message-ID: Hello everyone, I have created a WFS to act as a service on MapServer. In the GetCapabilities response, I would like to see the contact information as I do for a WMS. I have tried a "wfs_contactperson" and an "ows_contactperson" in the map's metadata but it doesn't appear in the response. In the WFS GetCapabilities response schema (pg 87 of "04-094_Web_Feature_Service_Implementation_Specification_V1.pdf", this information appeared to be passed in an IndividualName element, so I tried a "wfs_" and "ows_individualname" metadata tag also. No luck there either. Can anyone tell me if the WFS GetCapabilities response from MapServer carries contact information similar to the WMS GetCapabilities response at all? There is no match to WFS and contact in the forum. If there is support for this in WFS, can someone point me to where I might learn to do it? Cheers, jtm Joanne T. McGraw GIS Data Analyst / Analyste des donn?es du SIG National Land and Water Information Service/Service national sur les terres et les eaux Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone/T?l?phone: 613 759-6103 Facsimile/T?l?copieur: 613 759-1937 960 Carling Ave, Bldg. 20, Rm. 1136 Ottawa, Ontario K1A 0C6 mcgrawj at agr.gc.ca www.agr.gc.ca/nlwis-snite From Tom.Kralidis at EC.GC.CA Mon Jun 12 08:58:03 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 12 Jun 2006 11:58:03 -0400 Subject: WFS contact info Message-ID: > > Hello everyone, > > I have created a WFS to act as a service on MapServer. In the > GetCapabilities response, I would like to see the contact > information as I do for a WMS. I have tried a > "wfs_contactperson" and an "ows_contactperson" in the map's > metadata but it doesn't appear in the response. In the WFS > GetCapabilities response schema (pg 87 of > "04-094_Web_Feature_Service_Implementation_Specification_V1.pd > f", this information appeared to be passed in an > IndividualName element, so I tried a "wfs_" and > "ows_individualname" metadata tag also. No luck there either. > > Can anyone tell me if the WFS GetCapabilities response from > MapServer carries contact information similar to the WMS > GetCapabilities response at all? There is no match to WFS and > contact in the forum. If there is support for this in WFS, > can someone point me to where I might learn to do it? Good question. MapServer supports OGC:WFS 1.0.0. OGC:WFS 1.0.0 does not support contact information. OGC:WFS 1.1.0 supports contact information, but MapServer doesn't support OGC:WFS 1.1.0. ..Tom From mcgrawj at AGR.GC.CA Mon Jun 12 09:01:28 2006 From: mcgrawj at AGR.GC.CA (McGraw, Joanne) Date: Mon, 12 Jun 2006 12:01:28 -0400 Subject: WFS contact info Message-ID: Ah; makes perfect sense once it's explained. Thanks, Tom. Of course, your answer then begs another question...does any one know of plans to support WFS 1.1.0? jtm Joanne T. McGraw GIS Data Analyst / Analyste des donn?es du SIG National Land and Water Information Service/Service national sur les terres et les eaux Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone/T?l?phone: 613 759-6103 Facsimile/T?l?copieur: 613 759-1937 960 Carling Ave, Bldg. 20, Rm. 1136 Ottawa, Ontario K1A 0C6 mcgrawj at agr.gc.ca www.agr.gc.ca/nlwis-snite -----Original Message----- From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] Sent: Monday, June 12, 2006 11:58 AM To: McGraw, Joanne; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] WFS contact info > > Hello everyone, > > I have created a WFS to act as a service on MapServer. In the > GetCapabilities response, I would like to see the contact > information as I do for a WMS. I have tried a > "wfs_contactperson" and an "ows_contactperson" in the map's > metadata but it doesn't appear in the response. In the WFS > GetCapabilities response schema (pg 87 of > "04-094_Web_Feature_Service_Implementation_Specification_V1.pd > f", this information appeared to be passed in an > IndividualName element, so I tried a "wfs_" and > "ows_individualname" metadata tag also. No luck there either. > > Can anyone tell me if the WFS GetCapabilities response from > MapServer carries contact information similar to the WMS > GetCapabilities response at all? There is no match to WFS and > contact in the forum. If there is support for this in WFS, > can someone point me to where I might learn to do it? Good question. MapServer supports OGC:WFS 1.0.0. OGC:WFS 1.0.0 does not support contact information. OGC:WFS 1.1.0 supports contact information, but MapServer doesn't support OGC:WFS 1.1.0. ..Tom From smelby at TURNKEY-TECHNOLOGY.COM Mon Jun 12 09:51:18 2006 From: smelby at TURNKEY-TECHNOLOGY.COM (Scott Melby) Date: Mon, 12 Jun 2006 12:51:18 -0400 Subject: mapserver initialization delays Message-ID: Hello - I am pretty new to MapServer, so I apologize if I am re-hashing old material. However, I am having a significant problem and am unable to find a "reasonable" solution documented anywhere. I am running mapserver 4.6, and am serving a single layer that contains about 350,000 points from a PostGIS database. The layer has a GiST index on the geometry column. The following request http://www.geonomy.com/cgi-bin/mapserv?map=/var/www/geonomy/geonomy.map&layer=geonomy_features&mode=map&dataFilter=geometry%20is%20not%20null will draw all points in my table into a 256x256 RGB PNG file. The issue I am having is that MapServer can take up to 3 minutes to draw the image the first time it is called(after any delay of 30+ minutes with no calls). Once that initial draw completes, subsequent hits draw in about 9 seconds. In my research I have found a page that indicates that this is due to MapServer initialization. But the advice given there was to send a request that causes all map features to be drawn after setting up the server.... which has not solved my problems. The delay does not appear to be tied to a particular client session... because hitting that same URL from another browser draws quickly if done within a few minutes of the initial query. However, if I wait long enough (seems to be about 20-30 minutes) the next request will once again take 2-3 minutes instead of 9 seconds. Note: I don't believe that the issue is due to efficiencies of drawing the same image or accessing the same data repeatedly, because I have found that altering the dataFilter parameter (which is passed to a FILTER on the layer in the map file) causes the image to change, but does not significantly alter the performance (filters with less points draw more quickly, but still take a relatively long time for initial query if delay is long enough before it is called). I have looked at the mapserver demo_init.html file and have added code to my servlet that periodically performs the following get http://www.geonomy.com/cgi-bin/mapserv?map=/var/www/geonomy/geonomy.map&layer=geonomy_features&program=/cgi-bin/mapserv&map_web_imagepath=/tmp&map_web_imageurl=/tmp request every N minutes (intervals of 1 minute - 10 minutes)... but, this does not change the behavior. I have also tried performing the following get at 1 minute intervals to try to avoid problems that could be caused by inactivity (such as the GiST index having to be reloaded from disk, or mapserver dropping its connection to PostGIS).. In this case the GET request is being sent from a Java using a HttpURLConnection that is set to not use caches. Note: I have also tried adding a BBOX to this request to make sure that the GiST index is being used. However, this does not fix the problem either. http://www.geonomy.com/cgi-bin/mapserv?map=/var/www/geonomy/geonomy.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=geonomy_features&FORMAT=PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:4326&BBOX=-115,30,-108,37&WIDTH=256&HEIGHT=256&reaspect=false&dataFilter=geometry%20is%20not%20null Any help is greatly appreciated. Thanks in advance Scott From woodbri at SWOODBRIDGE.COM Mon Jun 12 11:21:59 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 12 Jun 2006 14:21:59 -0400 Subject: mapserver initialization delays In-Reply-To: <448D9B86.5010907@turnkey-technology.com> Message-ID: Scott, What you are likely seeing is the fact the the first long draw is that postgres is finding all you data and it is getting cached in memory. So the subsequent requests are all fetching the data from the cache. If you wait more and more of the data gets bumped from the cache. There is very little mapserver specific startup costs. You might have read about database connection costs and pooling, but that is not what you are seeing. -Steve W. Scott Melby wrote: > Hello - > > I am pretty new to MapServer, so I apologize if I am re-hashing old > material. However, I am having a significant problem and am unable to > find a "reasonable" solution documented anywhere. I am running > mapserver 4.6, and am serving a single layer that contains about 350,000 > points from a PostGIS database. The layer has a GiST index on the > geometry column. The following request > http://www.geonomy.com/cgi-bin/mapserv?map=/var/www/geonomy/geonomy.map&layer=geonomy_features&mode=map&dataFilter=geometry%20is%20not%20null > will draw all points in my table into a 256x256 RGB PNG file. The issue > I am having is that MapServer can take up to 3 minutes to draw the image > the first time it is called(after any delay of 30+ minutes with no > calls). Once that initial draw completes, subsequent hits draw in about > 9 seconds. In my research I have found a page that indicates that this > is due to MapServer initialization. But the advice given there was to > send a request that causes all map features to be drawn after setting up > the server.... which has not solved my problems. The delay does not > appear to be tied to a particular client session... because hitting that > same URL from another browser draws quickly if done within a few minutes > of the initial query. However, if I wait long enough (seems to be about > 20-30 minutes) the next request will once again take 2-3 minutes instead > of 9 seconds. Note: I don't believe that the issue is due to > efficiencies of drawing the same image or accessing the same data > repeatedly, because I have found that altering the dataFilter parameter > (which is passed to a FILTER on the layer in the map file) causes the > image to change, but does not significantly alter the performance > (filters with less points draw more quickly, but still take a relatively > long time for initial query if delay is long enough before it is > called). I have looked at the mapserver demo_init.html file and have > added code to my servlet that periodically performs the following get > http://www.geonomy.com/cgi-bin/mapserv?map=/var/www/geonomy/geonomy.map&layer=geonomy_features&program=/cgi-bin/mapserv&map_web_imagepath=/tmp&map_web_imageurl=/tmp > request every N minutes (intervals of 1 minute - 10 minutes)... but, > this does not change the behavior. > I have also tried performing the following get at 1 minute intervals to > try to avoid problems that could be caused by inactivity (such as the > GiST index having to be reloaded from disk, or mapserver dropping its > connection to PostGIS).. In this case the GET request is being sent > from a Java using a HttpURLConnection that is set to not use caches. > Note: I have also tried adding a BBOX to this request to make sure that > the GiST index is being used. However, this does not fix the problem > either. > > http://www.geonomy.com/cgi-bin/mapserv?map=/var/www/geonomy/geonomy.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=geonomy_features&FORMAT=PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:4326&BBOX=-115,30,-108,37&WIDTH=256&HEIGHT=256&reaspect=false&dataFilter=geometry%20is%20not%20null > > > Any help is greatly appreciated. > > Thanks in advance > Scott > From ltrevino at GPOBSI.COM.MX Mon Jun 12 11:42:59 2006 From: ltrevino at GPOBSI.COM.MX (=?iso-8859-1?Q?Luis_Trevi=F1o_Huerta?=) Date: Mon, 12 Jun 2006 13:42:59 -0500 Subject: Problem with the mailinglist Message-ID: Christian: I have the same problem if I try to sent a mail directly from the mailinglist homepage, so I send the mails to the list from outside the mailinglist homepage and don?t have problems. Luis ----- Original Message ----- From: "Christian Wilmes" To: Sent: Monday, June 12, 2006 2:59 AM Subject: Re: [UMN_MAPSERVER-USERS] Problem with the mailinglist > > >>sorry, you are right, of course it was the 9th of June. I can't see any >>regularity for the delay, it just seems to be chance. > > So where do I have to search the problem? It seems nobody else have the > same problems, so could it be a problem of my mail-provider (gmx.de)? > > This message was sent on Monday the 12th of june at 09:53am german time. > > Best Regards > Christian > -------- Original-Nachricht -------- >> Datum: Sat, 10 Jun 2006 08:39:08 +0200 >> Von: Manfred Meier >> An: MAPSERVER-USERS at LISTS.UMN.EDU >> Betreff: Re: [UMN_MAPSERVER-USERS] Problem with the mailinglist >> > Hi, >> in my mailbox this message showed up on Sat, 10. June 2006 at about >> 08:35 German time. >> >> Friday was the 9th of June not the 8th. Was that a typo? >> >> Manfred Meier >> >> Christian Wilmes schrieb: >> > Hi all, >> > >> > I've got some problems with this mailinglist. If I sent a mail to the >> list it takes hours or even days until it is in the list. If I try to >> sent >> a mail directly from the mailinglist homepage, after a few seconds I get >> the following mail: >> > Rejected posting to MAPSERVER-USERS at LISTS.UMN.EDU >> > >> > Your message is being returned to you unprocessed because it appears >> to have already been distributed to the MAPSERVER-USERS list. That is, >> a >> message with identical text (but possibly with different mail headers) >> has been posted to the list recently, either by you or by someone >> else. >> If you have reason to resend this message to the list (for instance >> because you have been notified of a hardware failure with loss of data), >> please alter the text of the message in some way and resend it to the >> list. Note that altering the "Subject:" line or adding blank lines at >> the >> top or bottom of the message is not sufficient; you should instead add >> a >> sentence or two at the top explaining why you are >> > resending the message, so that the other subscribers understand why >> they are getting two copies of the same message. >> > >> > > Because of these things it happens in the last time, that I was >> sending >> a mail more than one time, sorry for that! >> > >> > > I hope someone who is responsible for the mailinglist will read this >> mail and is probatly able to help me. >> > >> > This mail for example I will send at on Friday 08.06.2006 at 11:20am >> German time....wonder how long it will take this time until the mail is >> in >> the list. >> > >> > Best Regards >> > Christian > > -- > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From tkirstine at JDBARNES.COM Mon Jun 12 12:02:53 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Mon, 12 Jun 2006 15:02:53 -0400 Subject: Data causing premature end of script? Message-ID: I've been getting premature end of script errors/segmentation fault problems since I update some shapefiles. The data seems to be perfectly fine and all I've change is the DATA path in the LAYER object. The data displays correctly but when I query a object and set the extents based on the object I receive the errors. Any ideas would be great. Travis From naci0002 at UMN.EDU Mon Jun 12 12:05:57 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Mon, 12 Jun 2006 14:05:57 -0500 Subject: Problem with the mailinglist In-Reply-To: <20060612090229.275380@gmx.net> Message-ID: Christian, If you or anyone run into this problem again please send mailadm at umn.edu an e-mail outlining the problem (it is their request). Also, please CC me on that e-mail so I can keep track of the issues. No one is exactly sure how this issue is propagated but it's happened to a few (you're the fourth person I know who has gotten this message). Maybe it has to do with the UMN's mail server... Thanks, Perry Christian Wilmes wrote: >>> That couldn't be the problem, I haven't choose that option. But the last time it seems to work. I get my own message at 9:59. > > So hoping I've got luck again and this message will be in the list in a few minutes too. > > Mo 11:02 am German Time. > > > -------- Original-Nachricht -------- >> Datum: Mon, 12 Jun 2006 10:08:43 +0200 >> Von: Manfred Meier >> An: MAPSERVER-USERS at LISTS.UMN.EDU >> Betreff: Re: [UMN_MAPSERVER-USERS] Problem with the mailinglist >> > Hi, >> >> I received this message on Monday 12, 10:00 German time. Not bad! >> A long time ago, when I did subscribe to the list there was an option to >> get all mails bundled once a day. Can this be the problem in your case? >> >> Greetings >> Manfred Meier >> >> Christian Wilmes schrieb: >>>> sorry, you are right, of course it was the 9th of June. I can't see any >> regularity for the delay, it just seems to be chance. >>>> So where do I have to search the problem? It seems nobody else have >> the >> same problems, so could it be a problem of my mail-provider (gmx.de)? >>> This message was sent on Monday the 12th of june at 09:53am german time. >>> >>> Best Regards >>> Christian >>> -------- Original-Nachricht -------- >>> >>>> Datum: Sat, 10 Jun 2006 08:39:08 +0200 >>>> Von: Manfred Meier >>>> An: MAPSERVER-USERS at LISTS.UMN.EDU >>>> Betreff: Re: [UMN_MAPSERVER-USERS] Problem with the mailinglist >>>> > Hi, >>>> in my mailbox this message showed up on Sat, 10. June 2006 at about >>>> 08:35 German time. >>>> >>>> Friday was the 9th of June not the 8th. Was that a typo? >>>> >>>> Manfred Meier >>>> >>>> Christian Wilmes schrieb: >>>> >>>>> Hi all, >>>>> >>>>> I've got some problems with this mailinglist. If I sent a mail to the >>>> list it takes hours or even days until it is in the list. If I try to >> sent >>>> a mail directly from the mailinglist homepage, after a few seconds I get >>>> the following mail: >>>> >>>>> Rejected posting to MAPSERVER-USERS at LISTS.UMN.EDU >>>>> >>>>> Your message is being returned to you unprocessed because it appears >>>> to have already been distributed to the MAPSERVER-USERS list. That is, >> a >>>> message with identical text (but possibly with different mail headers) >>>> has been posted to the list recently, either by you or by someone >>>> else. >>>> If you have reason to resend this message to the list (for instance >>>> because you have been notified of a hardware failure with loss of data), >> >>>> please alter the text of the message in some way and resend it to the >>>> list. Note that altering the "Subject:" line or adding blank lines at >>>> the >>>> top or bottom of the message is not sufficient; you should instead add >>>> a >>>> sentence or two at the top explaining why you are >>>> >>>>> resending the message, so that the other subscribers understand why >>>> they are getting two copies of the same message. >>>> >>>>>> Because of these things it happens in the last time, that I was >>>> sending >>>> a mail more than one time, sorry for that! >>>> >>>>>> I hope someone who is responsible for the mailinglist will read this >>>> mail and is probatly able to help me. >>>> >>>>> This mail for example I will send at on Friday 08.06.2006 at 11:20am >>>> German time....wonder how long it will take this time until the mail is >> in >>>> the list. >>>> >>>>> Best Regards >>>>> Christian >>> > From hrodriguez at SISCAT.COM.AR Mon Jun 12 12:20:43 2006 From: hrodriguez at SISCAT.COM.AR (Rodriguez, Heraldo) Date: Mon, 12 Jun 2006 16:20:43 -0300 Subject: JavaMapscript SIGSEGV Message-ID: Hi guys, I have started developing with java mapscript and I have the same problems with the shapeObj class. Every time I want to create a new shape I get the message > # > # An unexpected error has been detected by HotSpot Virtual Machine: > # > # SIGSEGV (0xb) at pc=0x00002aaaaae43d5b, pid=23120, tid=46912501734144 > # > # Java VM: Java HotSpot(TM) Client VM (1.4.2_11-b06 mixed mode) > # Problematic frame: ... I am using mapserver 4.8.1 with java 1.4.2_11 version under Debian 3.1. Mapserver Compiling options ./configure --with-freetype=/usr/local/bin/freetype-config --with-zlib=/usr/lib --with-png=/usr/local/lib --with-jpeg=/usr/lib --with-libiconv=/usr/local/lib --with-gd=/usr/local/bin/gdlib-config --with-pdf=/usr/local/lib --with-proj=/usr/local/lib --with-threads --with-geos=/usr/local/bin/geos-config --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-postgis=/usr/local/pgsql/bin/pg_config --with-wfs --with-wcs --with-wmsclient --with-curl-config=/usr/local/bin/curl-config Steps to compile java mapscript Run make Make interface (swig version 1.3.29) Make all I looked for a solution in google and mapserver documentation without success. Could you please give me a clue to solve this? Thanks in advance. Best regards. Heraldo G. Rodriguez hrodriguez at siscat.com.ar TE 4326-4002 int 255 ? Dpto. Desarrollo Sistemas Catastrales S.A -----Mensaje original----- De: Andre Sachs [mailto:asachs at CLUE.CO.ZA] Enviado el: mi?rcoles, 31 de mayo de 2006 5:16 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: Re: [UMN_MAPSERVER-USERS] JavaMapscript SIGSEGV On 31 May 2006, at 8:37 AM, Umberto Nicoletti wrote: > Andre, could you report whether the patch attached to gentoo bugzilla > works or not? Hi Umberto, Sorry for not replying earlier. The patch works in a 32 intel environment, thanks ! Due to time constraints on my current project I ditched my AMD 64, Java 1.5 64 bit environment in favour of Intel 32 bit and this has resolved my problem. The problems I experienced are somewhere in the application stack, either in : - Sun's 64 bit 1.5 jdk - Gentoo's glibc 2.3.5-r2 - Linux kernel 2.6.16 Once my current project is over (+- 3 weeks) I will be have some spare time to hunt down the culprit. Regards, Andre -- Andre Sachs IT Architect, Clue Technologies PTY (LTD) email: andre at clue.co.za From smelby at TURNKEY-TECHNOLOGY.COM Mon Jun 12 13:26:37 2006 From: smelby at TURNKEY-TECHNOLOGY.COM (Scott Melby) Date: Mon, 12 Jun 2006 16:26:37 -0400 Subject: mapserver initialization delays In-Reply-To: <448DB0C7.4030908@swoodbridge.com> Message-ID: Stephen - Thanks for the response. Although I agree that there is definitely something that is getting "evicted" from memory, it does not appear to me that the amount of pertinent data that is cached in memory is the issue. The reason I say this, is that I can perform hundreds of queries, all with differing bounding boxes and differing dataFilter parameters (no result set overlap), and only the first query after a long period is slow. So... unless the initial request is loading ALL data into memory (regardless of the FILTER and BBOX params), it seems that it would incur delays on some requests other than the original. Note: When I am using FILTER and BBOX params the problem is a bit less severe (40+ secs for initial draw, 3+ secs for subsequent is pretty typical). Regardless of the cause of the delays, I really can't have my users hitting a 40+ second delay for an interactive query on the site. Are there known strategies for dealing with large datasets? The response time I get for all requests other than the first are completely reasonable. So... my attempts thus far have been aimed at attempting to keep things from getting into this state via background hits. This, however, has been unsuccessful for some unknown reason. I can see that the web server is getting my requests (1 per minute) and I can also see that mapserver is returning a valid .PNG file for each request. Thanks again Scott Stephen Woodbridge wrote: > Scott, > > What you are likely seeing is the fact the the first long draw is that > postgres is finding all you data and it is getting cached in memory. > So the subsequent requests are all fetching the data from the cache. > If you wait more and more of the data gets bumped from the cache. > > There is very little mapserver specific startup costs. You might have > read about database connection costs and pooling, but that is not what > you are seeing. > > -Steve W. > > Scott Melby wrote: > >> Hello - >> >> I am pretty new to MapServer, so I apologize if I am re-hashing old >> material. However, I am having a significant problem and am unable >> to find a "reasonable" solution documented anywhere. I am running >> mapserver 4.6, and am serving a single layer that contains about >> 350,000 points from a PostGIS database. The layer has a GiST index >> on the geometry column. The following request >> http://www.geonomy.com/cgi-bin/mapserv?map=/var/www/geonomy/geonomy.map&layer=geonomy_features&mode=map&dataFilter=geometry%20is%20not%20null >> will draw all points in my table into a 256x256 RGB PNG file. The >> issue I am having is that MapServer can take up to 3 minutes to draw >> the image the first time it is called(after any delay of 30+ minutes >> with no calls). Once that initial draw completes, subsequent hits >> draw in about 9 seconds. In my research I have found a page that >> indicates that this is due to MapServer initialization. But the >> advice given there was to send a request that causes all map features >> to be drawn after setting up the server.... which has not solved my >> problems. The delay does not appear to be tied to a particular >> client session... because hitting that same URL from another browser >> draws quickly if done within a few minutes of the initial query. >> However, if I wait long enough (seems to be about 20-30 minutes) the >> next request will once again take 2-3 minutes instead of 9 seconds. >> Note: I don't believe that the issue is due to efficiencies of >> drawing the same image or accessing the same data repeatedly, because >> I have found that altering the dataFilter parameter (which is passed >> to a FILTER on the layer in the map file) causes the image to change, >> but does not significantly alter the performance (filters with less >> points draw more quickly, but still take a relatively long time for >> initial query if delay is long enough before it is called). I have >> looked at the mapserver demo_init.html file and have added code to my >> servlet that periodically performs the following get >> http://www.geonomy.com/cgi-bin/mapserv?map=/var/www/geonomy/geonomy.map&layer=geonomy_features&program=/cgi-bin/mapserv&map_web_imagepath=/tmp&map_web_imageurl=/tmp >> request every N minutes (intervals of 1 minute - 10 minutes)... but, >> this does not change the behavior. >> I have also tried performing the following get at 1 minute intervals >> to try to avoid problems that could be caused by inactivity (such as >> the GiST index having to be reloaded from disk, or mapserver dropping >> its connection to PostGIS).. In this case the GET request is being >> sent from a Java using a HttpURLConnection that is set to not use >> caches. Note: I have also tried adding a BBOX to this request to >> make sure that the GiST index is being used. However, this does not >> fix the problem either. >> >> http://www.geonomy.com/cgi-bin/mapserv?map=/var/www/geonomy/geonomy.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=geonomy_features&FORMAT=PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:4326&BBOX=-115,30,-108,37&WIDTH=256&HEIGHT=256&reaspect=false&dataFilter=geometry%20is%20not%20null >> >> >> Any help is greatly appreciated. >> >> Thanks in advance >> Scott >> From julien.63 at FREE.FR Mon Jun 12 14:31:27 2006 From: julien.63 at FREE.FR (Julien Bessiere) Date: Mon, 12 Jun 2006 23:31:27 +0200 Subject: code optimization Message-ID: Hi, i'm working with fgs-mapserver and php-mapscript. i was wondering if i'd rather develop the php code using the php class or on the contrary develop the map file. For example, i want to display a layer with level line. I could build the class with php or i could write several class in my map file, someting like: CLASS NAME "201-300" EXPRESSION (([ELEVAC]> 200) and ([ELEVAC]< 301)) STYLE SIZE 1 COLOR 100 40 0 END END what's the best way? thx for your advice. julien From w.blanken at GEON.NL Mon Jun 12 14:43:42 2006 From: w.blanken at GEON.NL (Wim Blanken) Date: Mon, 12 Jun 2006 23:43:42 +0200 Subject: FW: [UMN_MAPSERVER-USERS] oracle spatial Message-ID: -----Original Message----- From: Wim Blanken [mailto:w.blanken at geon.nl] Sent: maandag 12 juni 2006 20:08 To: 'Daniel Goetz' Subject: RE: [UMN_MAPSERVER-USERS] oracle spatial Hello Daniel, I think your solution is simple. You have to specify &mode=map on the commandline to make it work. If you don't mapserver needs a template to show the results of the cgi-call. http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raster/test_o s_ogr.map&layers=all&mode=map Regards Wim Blanken -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Daniel Goetz Sent: Monday, June 12, 2006 1:54 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] oracle spatial Hi, I have the ms4w installed on my computer and I want to map geodata, lying in a oracle spatial database on a server in the intranet, via umn mapserver. Therefor I enabled OGR-OCI support described in the readme-file of the ms4w-package (I "installed" 10g oracle instant client on my computer, set set windows environmet variable PATH and did the described .dll swapping). Then I tested, whether OGR now supports the OCI with ogrinfo. Therefor I had to modify the syntax a littel bit to get information: I wrote "ogrinfo "OCI:username/password at host:port/service_name" instead of described on the ogr-site/oracle spatial "OCI:username/password at service_name". The result was that ogrinfo listed me the relevant tables that contain geometric data. Then I tried to map the data via mapserver. Therefor I wrote the following .map-file (therefor I correspond to the example given in the "Vector Data Access-Reference-Guide" on the mapserver-site): MAP NAME "Oracle" EXTENT 426666.49 466058.21 448321.44 490754.58 SIZE 1400 1800 SHAPEPATH "/ms4w/Apache/htdocs/raster/daten" IMAGETYPE PNG IMAGECOLOR 255 255 255 UNITS METERS STATUS ON CONFIG "GDAL_DRIVER_PATH" "C:/ms4w/gdalplugins" WEB IMAGEPATH "c:\ms4w\Apache\htdocs\raster\tmp\" IMAGEURL "/raster/tmp/" TEMPLATE "test_template.html" END LAYER CONNECTIONTYPE OGR CONNECTION "OCI:username/password at service_name" DATA "RWG_TBS" NAME "RWG_TBS" TYPE POLYGON STATUS ON CLASS NAME "Flaeche" STYLE OUTLINECOLOR 128 128 128 COLOR 225 225 185 END END END END The template I wrote therefor is very simple: Erstes Beispiel zum UMN Mapserver Mapserver-Version auslesen:

[version]


Karte einbetten:


And I tried to start mapping by writing the following in my browser: http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raster/test_o s_ogr.map&layers=all& The result was, that mapserver brought the error-message: "mapserv(): Web application error. No template provided. " Then I tested some other mapserver-test-projects, for whom I know that they have worked properly on my computer before the mentioned .dll swapping for OGR-OCI support. The result was the same: "mapserv(): Web application error. No template provided. " So I have three questions: How should mapserver know where the database is located without giving him any information about the host-address and the port-number. Where can I provide this information for the mapserver. In the case of ogrinfo I did this by writing "OCI:username/password at host:port/service_name". In the .mpa-file example in the "Vector-Data-Reference-Guide" they say under CONECTION you should type "OCI:username/password at service_name". Where is the information about the location of the database? Second questions is: Is anything wrong with my .map-file, html-template or the starting-command in the web-browser? Third: And why do the other mapserver projects, I tested before .dll swapping (for OGR-COI support), work anymore. Why do I always get the error-message "mapserv(): Web application error. No template provided." although I changed nothing on the .map-files, the template nor the command. I would be very pleased and hayppy and thankful if anybody would help me on my problem. This would really be very nice. Thank you so much for your endeavors. Regards Daniel -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/361 - Release Date: 6/11/2006 From ed at TOPOZONE.COM Mon Jun 12 18:40:54 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 12 Jun 2006 21:40:54 -0400 Subject: mapserver initialization delays Message-ID: Scott - "I have looked at the mapserver demo_init.html file and have added code to my servlet that periodically performs the following get http://www.geonomy.com/cgi-bin/mapserv?map=/var/www/geonomy/geonomy.map& layer=geonomy_features&program=/cgi-bin/mapserv&map_web_imagepath=/tmp&m ap_web_imageurl=/tmp request every N minutes (intervals of 1 minute - 10 minutes)... but, this does not change the behavior. " I'm not certain you've quite nailed down the problem correctly, at least if I'm reading your comment above correctly . You seem to be saying (a) performance is fine until there's a pause of "20 - 30 minutes" between requests, and (b) forcing an automated request every N (1 < N < 10) minutes doesn't fix the problem. Those both can't be true. I tried your original URL but it doesn't seem to be working right now. It would be helpful to understand just what conditions cause the performance to degrade back to the original "slow" state. Can you clarify that as carefully as possible? Thanks. - 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 Scott Melby Sent: Monday, June 12, 2006 4:27 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver initialization delays Stephen - Thanks for the response. Although I agree that there is definitely something that is getting "evicted" from memory, it does not appear to me that the amount of pertinent data that is cached in memory is the issue. The reason I say this, is that I can perform hundreds of queries, all with differing bounding boxes and differing dataFilter parameters (no result set overlap), and only the first query after a long period is slow. So... unless the initial request is loading ALL data into memory (regardless of the FILTER and BBOX params), it seems that it would incur delays on some requests other than the original. Note: When I am using FILTER and BBOX params the problem is a bit less severe (40+ secs for initial draw, 3+ secs for subsequent is pretty typical). Regardless of the cause of the delays, I really can't have my users hitting a 40+ second delay for an interactive query on the site. Are there known strategies for dealing with large datasets? The response time I get for all requests other than the first are completely reasonable. So... my attempts thus far have been aimed at attempting to keep things from getting into this state via background hits. This, however, has been unsuccessful for some unknown reason. I can see that the web server is getting my requests (1 per minute) and I can also see that mapserver is returning a valid .PNG file for each request. Thanks again Scott Stephen Woodbridge wrote: > Scott, > > What you are likely seeing is the fact the the first long draw is that > postgres is finding all you data and it is getting cached in memory. > So the subsequent requests are all fetching the data from the cache. > If you wait more and more of the data gets bumped from the cache. > > There is very little mapserver specific startup costs. You might have > read about database connection costs and pooling, but that is not what > you are seeing. > > -Steve W. > > Scott Melby wrote: > >> Hello - >> >> I am pretty new to MapServer, so I apologize if I am re-hashing old >> material. However, I am having a significant problem and am unable >> to find a "reasonable" solution documented anywhere. I am running >> mapserver 4.6, and am serving a single layer that contains about >> 350,000 points from a PostGIS database. The layer has a GiST index >> on the geometry column. The following request >> http://www.geonomy.com/cgi-bin/mapserv?map=/var/www/geonomy/geonomy.m >> ap&layer=geonomy_features&mode=map&dataFilter=geometry%20is%20not%20n >> ull will draw all points in my table into a 256x256 RGB PNG file. >> The issue I am having is that MapServer can take up to 3 minutes to >> draw the image the first time it is called(after any delay of 30+ >> minutes with no calls). Once that initial draw completes, subsequent >> hits draw in about 9 seconds. In my research I have found a page >> that indicates that this is due to MapServer initialization. But the >> advice given there was to send a request that causes all map features >> to be drawn after setting up the server.... which has not solved my >> problems. The delay does not appear to be tied to a particular >> client session... because hitting that same URL from another browser >> draws quickly if done within a few minutes of the initial query. >> However, if I wait long enough (seems to be about 20-30 minutes) the >> next request will once again take 2-3 minutes instead of 9 seconds. >> Note: I don't believe that the issue is due to efficiencies of >> drawing the same image or accessing the same data repeatedly, because >> I have found that altering the dataFilter parameter (which is passed >> to a FILTER on the layer in the map file) causes the image to change, >> but does not significantly alter the performance (filters with less >> points draw more quickly, but still take a relatively long time for >> initial query if delay is long enough before it is called). I have >> looked at the mapserver demo_init.html file and have added code to my >> servlet that periodically performs the following get >> http://www.geonomy.com/cgi-bin/mapserv?map=/var/www/geonomy/geonomy.m >> ap&layer=geonomy_features&program=/cgi-bin/mapserv&map_web_imagepath= >> /tmp&map_web_imageurl=/tmp request every N minutes (intervals of 1 >> minute - 10 minutes)... but, this does not change the behavior. >> I have also tried performing the following get at 1 minute intervals >> to try to avoid problems that could be caused by inactivity (such as >> the GiST index having to be reloaded from disk, or mapserver dropping >> its connection to PostGIS).. In this case the GET request is being >> sent from a Java using a HttpURLConnection that is set to not use >> caches. Note: I have also tried adding a BBOX to this request to >> make sure that the GiST index is being used. However, this does not >> fix the problem either. >> >> http://www.geonomy.com/cgi-bin/mapserv?map=/var/www/geonomy/geonomy.m >> ap&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=geonomy_features&F >> ORMAT=PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:4326&BBOX=-115,3 >> 0,-108,37&WIDTH=256&HEIGHT=256&reaspect=false&dataFilter=geometry%20i >> s%20not%20null >> >> >> Any help is greatly appreciated. >> >> Thanks in advance >> Scott >> From markane at INDIANA.EDU Mon Jun 12 19:11:13 2006 From: markane at INDIANA.EDU (Matthew Kane) Date: Mon, 12 Jun 2006 22:11:13 -0400 Subject: server error In-Reply-To: <448AED56.2000305@spiekermann.de> Message-ID: Thanks for your suggestion, Manfred. I am sure there are no other error message in the apache log. I have ran the mapfile using shp2img and the result is not an error message; rather, I get a Segmentation Fault. Any idea what would cause this? Thanks, Matt On 6/10/06, Manfred Meier wrote: > > Hello, > > - are you sure that there are no error messages in the apache log in the > last 5 or so lines before the "Premature end of script headers."? If you > are not sure, perhaps you can give us the last 10 lines of your log file. > > - Does the same Map-File work with shp2img : shp2img -m mapfile. I use > this "debugging" method sometimes becaus it gives you the error messages > on the screen > > Manfred Meier > > > > > > Matthew Kane schrieb: > > > I'm quite a newbie with MapServer and am having problems with server > > errors. I am going through the book "Beginning MapServer" and some of > > his maps execute just fine, but others generate a 500 Internal Server > > Error. > > > > The Apache error log isn't very helpful. It just states: Premature end > > of script headers. > > > > Any suggestions on how to track down the problem would be greatly > > appreciated. > > > > -Matt > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dpinte at ITAE.BE Mon Jun 12 06:12:39 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Mon, 12 Jun 2006 15:12:39 +0200 Subject: Zooming to shapes found by queryByAttributes In-Reply-To: Message-ID: Le lundi 12 juin 2006 ? 15:44 +0300, Volkan Ulukut a ?crit : > Hey list; > > I?m having trouble zooming to the exact location of the shape after > doing a search with queryByAttributes. I?m trying to use zoomrectangle > and zoomscale but they both need pixel position. So i try to convert > my georef coordinates to pixel coordinates. I believe that was > successful too, but the problem is that the shape is too small (a > street in the worldmap) and the pixel i calculate is not an integer > value. The zoom actually happens but not exactly on the shape just a > bit miles west and north. I tried to workaround this by zooming step > by step. By that i mean zooming to that location a little then zooming > to the centre till i get to the shape. But that won?t give the same > result on every search as you may guess. I?m stuck now cause i can?t > zoom to the right place with pixel coordinates. Is there any way that > i can zoom with georef coordinates(lat/long)? Using the resultset.bounds, you get an extent of the resultset. With the setExtent method, you can apply it to the map. Didrik PS : if you're querying points, don't forget to manage the case of only one point in the resultset. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From ms at MSLATER.COM Mon Jun 12 22:15:43 2006 From: ms at MSLATER.COM (Michael Slater) Date: Mon, 12 Jun 2006 22:15:43 -0700 Subject: Using Mapserver on VPS with cPanel? Message-ID: I have a site hosted at ServInt on a virtual private server (VPS) running Red Hat 9, Virtuozzo, and Cpanel. The network ops folks have dissuaded me from installing Mapserver, saying in part: "The requirements for this application would most likely cause instability on a VPS. Additionally, there are no pre-made binaries for RedHat 9.0. You would probably need a Mapserver expert to install this software for you on your VPS, and it would most likely break functionality with other things (like cPanel). It is not something that looks like it would play nicely with the software that cPanel installs. It looks like it would require a self contained PHP daemon." Are they being too cautious, or should I give up on installing this? My goal is to be able to dynamically render the NOAA ENC charts. Is there a simpler alternative for doing so? Anyone out there with cPanel experience who would be interested in a project to install this? Thanks, Michael Slater www.BoatingSF.com From tom at MAPLINK.JP Mon Jun 12 23:03:08 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Tue, 13 Jun 2006 15:03:08 +0900 Subject: Anti Alias Problem Message-ID: Hi Everyone, I've been looking for a solution to this, but haven't been successful so far so I'm hoping someone can help. I'm using Fedora 5, and everything I need is working great. The problem is that when I try the same data set on Fedora 4 or Red Hat Advanced Server, anti alias doesn't work. The problem can be resolved by commenting out the antialias line, but then it makes my font and lines look too choppy. Has anyone seen this? Does anyone know if this is a Linux or a Mapserver problem? Thank you for your help, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From vulukut at TESCILTURK.COM Mon Jun 12 23:27:28 2006 From: vulukut at TESCILTURK.COM (Volkan Ulukut) Date: Tue, 13 Jun 2006 09:27:28 +0300 Subject: Using Mapserver on VPS with cPanel? In-Reply-To: <020701c68ea8$6b7e5850$d5f0070a@sea.adobe.com> Message-ID: We have a dedicated server using rhe 4 and cPanel 10.8.2. I've installed MapServer last week and it had no problems with cPanel at all. The problem you might encounter is that MapScript needs php execute as cgi. So you need a seperate php install if you have php installed as an Apache DSO. Check this link out: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI -----Original Message----- From: tesciltu at host.tescilturk.com [mailto:tesciltu at host.tescilturk.com] On Behalf Of Michael Slater Sent: Tuesday, June 13, 2006 8:16 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Using Mapserver on VPS with cPanel? I have a site hosted at ServInt on a virtual private server (VPS) running Red Hat 9, Virtuozzo, and Cpanel. The network ops folks have dissuaded me from installing Mapserver, saying in part: "The requirements for this application would most likely cause instability on a VPS. Additionally, there are no pre-made binaries for RedHat 9.0. You would probably need a Mapserver expert to install this software for you on your VPS, and it would most likely break functionality with other things (like cPanel). It is not something that looks like it would play nicely with the software that cPanel installs. It looks like it would require a self contained PHP daemon." Are they being too cautious, or should I give up on installing this? My goal is to be able to dynamically render the NOAA ENC charts. Is there a simpler alternative for doing so? Anyone out there with cPanel experience who would be interested in a project to install this? Thanks, Michael Slater www.BoatingSF.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.vdeijnden at AGI.RWS.MINVENW.NL Mon Jun 12 23:22:06 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Tue, 13 Jun 2006 08:22:06 +0200 Subject: Using Mapserver on VPS with cPanel? Message-ID: PHP/Mapscript can actually run as an Apache DSO (the Wiki page is quite outdated), there might be some problems though depending on your use case. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Volkan Ulukut Verzonden: dinsdag 13 juni 2006 8:27 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] Using Mapserver on VPS with cPanel? We have a dedicated server using rhe 4 and cPanel 10.8.2. I've installed MapServer last week and it had no problems with cPanel at all. The problem you might encounter is that MapScript needs php execute as cgi. So you need a seperate php install if you have php installed as an Apache DSO. Check this link out: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI -----Original Message----- From: tesciltu at host.tescilturk.com [mailto:tesciltu at host.tescilturk.com] On Behalf Of Michael Slater Sent: Tuesday, June 13, 2006 8:16 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Using Mapserver on VPS with cPanel? I have a site hosted at ServInt on a virtual private server (VPS) running Red Hat 9, Virtuozzo, and Cpanel. The network ops folks have dissuaded me from installing Mapserver, saying in part: "The requirements for this application would most likely cause instability on a VPS. Additionally, there are no pre-made binaries for RedHat 9.0. You would probably need a Mapserver expert to install this software for you on your VPS, and it would most likely break functionality with other things (like cPanel). It is not something that looks like it would play nicely with the software that cPanel installs. It looks like it would require a self contained PHP daemon." Are they being too cautious, or should I give up on installing this? My goal is to be able to dynamically render the NOAA ENC charts. Is there a simpler alternative for doing so? Anyone out there with cPanel experience who would be interested in a project to install this? Thanks, Michael Slater www.BoatingSF.com 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 C.Wilmes at GMX.DE Mon Jun 12 23:49:40 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Tue, 13 Jun 2006 08:49:40 +0200 Subject: Problem with the mailinglist In-Reply-To: <448DBB15.2070407@umn.edu> Message-ID: Hi Perry, thank you for your help. In the future I will do it like you told me. Best Regards Christian -------- Original-Nachricht -------- Datum: Mon, 12 Jun 2006 14:05:57 -0500 Von: "Pericles S. Nacionales" An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] Problem with the mailinglist > Christian, > > If you or anyone run into this problem again please send mailadm at umn.edu > an e-mail outlining the problem (it is their request). Also, please CC > me on that e-mail so I can keep track of the issues. No one is exactly > sure how this issue is propagated but it's happened to a few (you're the > fourth person I know who has gotten this message). Maybe it has to do > with the UMN's mail server... > > Thanks, > Perry > > Christian Wilmes wrote: > >>> That couldn't be the problem, I haven't choose that option. But the > last time it seems to work. I get my own message at 9:59. > > > > So hoping I've got luck again and this message will be in the list in a > few minutes too. > > > > Mo 11:02 am German Time. > > > > > > -------- Original-Nachricht -------- > >> Datum: Mon, 12 Jun 2006 10:08:43 +0200 > >> Von: Manfred Meier > >> An: MAPSERVER-USERS at LISTS.UMN.EDU > >> Betreff: Re: [UMN_MAPSERVER-USERS] Problem with the mailinglist > >> > Hi, > >> > >> I received this message on Monday 12, 10:00 German time. Not bad! > >> A long time ago, when I did subscribe to the list there was an option > to > >> get all mails bundled once a day. Can this be the problem in your case? > >> > >> Greetings > >> Manfred Meier > >> > >> Christian Wilmes schrieb: > >>>> sorry, you are right, of course it was the 9th of June. I can't see > any > >> regularity for the delay, it just seems to be chance. > >>>> So where do I have to search the problem? It seems nobody else have > >> the > >> same problems, so could it be a problem of my mail-provider (gmx.de)? > >>> This message was sent on Monday the 12th of june at 09:53am german > time. > >>> > >>> Best Regards > >>> Christian > >>> -------- Original-Nachricht -------- > >>> > >>>> Datum: Sat, 10 Jun 2006 08:39:08 +0200 > >>>> Von: Manfred Meier > >>>> An: MAPSERVER-USERS at LISTS.UMN.EDU > >>>> Betreff: Re: [UMN_MAPSERVER-USERS] Problem with the mailinglist > >>>> > Hi, > >>>> in my mailbox this message showed up on Sat, 10. June 2006 at about > >>>> 08:35 German time. > >>>> > >>>> Friday was the 9th of June not the 8th. Was that a typo? > >>>> > >>>> Manfred Meier > >>>> > >>>> Christian Wilmes schrieb: > >>>> > >>>>> Hi all, > >>>>> > >>>>> I've got some problems with this mailinglist. If I sent a mail to > the > >>>> list it takes hours or even days until it is in the list. If I try to > >> sent > >>>> a mail directly from the mailinglist homepage, after a few seconds I > get > >>>> the following mail: > >>>> > >>>>> Rejected posting to MAPSERVER-USERS at LISTS.UMN.EDU > >>>>> > >>>>> Your message is being returned to you unprocessed because it > appears > >>>> to have already been distributed to the MAPSERVER-USERS list. That > is, > >> a > >>>> message with identical text (but possibly with different mail > headers) > >>>> has been posted to the list recently, either by you or by someone > >>>> else. > >>>> If you have reason to resend this message to the list (for instance > >>>> because you have been notified of a hardware failure with loss of > data), > >> > >>>> please alter the text of the message in some way and resend it to > the > >>>> list. Note that altering the "Subject:" line or adding blank lines > at > >>>> the > >>>> top or bottom of the message is not sufficient; you should instead > add > >>>> a > >>>> sentence or two at the top explaining why you are > >>>> > >>>>> resending the message, so that the other subscribers understand > why > >>>> they are getting two copies of the same message. > >>>> > >>>>>> Because of these things it happens in the last time, that I was > >>>> sending > >>>> a mail more than one time, sorry for that! > >>>> > >>>>>> I hope someone who is responsible for the mailinglist will read > this > >>>> mail and is probatly able to help me. > >>>> > >>>>> This mail for example I will send at on Friday 08.06.2006 at 11:20am > >>>> German time....wonder how long it will take this time until the mail > is > >> in > >>>> the list. > >>>> > >>>>> Best Regards > >>>>> Christian > >>> > > -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From umberto.nicoletti at GMAIL.COM Mon Jun 12 23:49:50 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 13 Jun 2006 08:49:50 +0200 Subject: JavaMapscript SIGSEGV In-Reply-To: <5341EB12706351489DEFADBFEF06CC684123DF@mercurio.sc.com> Message-ID: Hi, please post the hs_error_* file and the Java program that is causing the crash. Thanks, Umberto On 6/12/06, Rodriguez, Heraldo wrote: > Hi guys, > I have started developing with java mapscript and I have the same > problems with the shapeObj class. > Every time I want to create a new shape I get the message > > # > > # An unexpected error has been detected by HotSpot Virtual Machine: > > # > > # SIGSEGV (0xb) at pc=0x00002aaaaae43d5b, pid=23120, tid=46912501734144 > > # > > # Java VM: Java HotSpot(TM) Client VM (1.4.2_11-b06 mixed mode) > > # Problematic frame: > ... > > I am using mapserver 4.8.1 with java 1.4.2_11 version under Debian 3.1. > > Mapserver Compiling options > ./configure --with-freetype=/usr/local/bin/freetype-config > --with-zlib=/usr/lib --with-png=/usr/local/lib --with-jpeg=/usr/lib > --with-libiconv=/usr/local/lib --with-gd=/usr/local/bin/gdlib-config > --with-pdf=/usr/local/lib --with-proj=/usr/local/lib --with-threads > --with-geos=/usr/local/bin/geos-config --with-ogr=/usr/local/bin/gdal-config > --with-gdal=/usr/local/bin/gdal-config > --with-postgis=/usr/local/pgsql/bin/pg_config --with-wfs --with-wcs > --with-wmsclient --with-curl-config=/usr/local/bin/curl-config > > Steps to compile java mapscript > Run make > Make interface (swig version 1.3.29) > Make all > > I looked for a solution in google and mapserver documentation without > success. Could you please give me a clue to solve this? Thanks in > advance. > Best regards. > > > > Heraldo G. Rodriguez > hrodriguez at siscat.com.ar > TE 4326-4002 int 255 > Dpto. Desarrollo > Sistemas Catastrales S.A > > > > -----Mensaje original----- > De: Andre Sachs [mailto:asachs at CLUE.CO.ZA] > Enviado el: mi?rcoles, 31 de mayo de 2006 5:16 > Para: MAPSERVER-USERS at LISTS.UMN.EDU > Asunto: Re: [UMN_MAPSERVER-USERS] JavaMapscript SIGSEGV > > On 31 May 2006, at 8:37 AM, Umberto Nicoletti wrote: > > > Andre, could you report whether the patch attached to gentoo bugzilla > > works or not? > > Hi Umberto, > > Sorry for not replying earlier. > > The patch works in a 32 intel environment, thanks ! > > Due to time constraints on my current project I ditched my AMD 64, > Java 1.5 64 bit environment in favour of Intel 32 bit and this has > resolved my problem. > > The problems I experienced are somewhere in the application stack, > either in : > - Sun's 64 bit 1.5 jdk > - Gentoo's glibc 2.3.5-r2 > - Linux kernel 2.6.16 > > Once my current project is over (+- 3 weeks) I will be have some > spare time to hunt down the culprit. > > Regards, > Andre > -- > Andre Sachs > IT Architect, Clue Technologies PTY (LTD) > email: andre at clue.co.za > From muthu_manaparai at YAHOO.COM Tue Jun 13 00:39:55 2006 From: muthu_manaparai at YAHOO.COM (muthu veerappan) Date: Tue, 13 Jun 2006 00:39:55 -0700 Subject: How to Lat, long info in the browser? In-Reply-To: Message-ID: Hi Raffle Peter, This is a Map SERVER list - I hope you are asking a map client question, but anyway let me try to answer. I have used many clients and would suggest you to look in to mapbuilder's code (complex - generalized code). It might confuse us, but have a look. Worth it. Lat, Lan display is not a easy job, if you have different projections (SRS - UTM, EPSG, SCENE, PIXEL). We are displaying in a flat surface (monitor), depending upon the projection you need to display the lat, lan. First consider it as a flat surface and then capture the mouse events from the browser. look at http://dunnbypaul.net/js_mouse if you need to display simple lat, lan for a map image ,then do the pixel x-y:lat-lan ratio disclaimer - My understanding may be wrong too. ! If so, Hope someone here would correct ! Regards, Muthu Veerappan PR Date: Mon, 12 Jun 2006 10:24:42 +0100 From: raffle peter Subject: How to Lat, long info in the browser? Hi Can anyone plz. guide me how to show the latitude, longitude information in the status bar of the window or in the page using php/mapscript when i move the mouse over the map. In detail explanation or from where to start the coding for that will really help me. I am using the GMAP map engine. Thanks in advance Raffle PR.Muthu Veerappan (முத்து வீரப்பன்) Mobile +971 50 4206576 (Dubai) e-Mail - muthu at periyakaruppan.com ------------------------------------------ Check http://www.periyakaruppan.com Join http://www.buddhibase.org ------------------------------------------ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From siukola.antti at GMAIL.COM Tue Jun 13 00:43:52 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Tue, 13 Jun 2006 10:43:52 +0300 Subject: Mapserver returns blank pages In-Reply-To: Message-ID: Hi! Every time MapServer returns a blank page I find "[notice] child pid xxxx exit signal Segmentation fault (11)" from apache's error_log. Any thoughts? Blank pages are returned randomly. AnttiS From xavier.mauclaire at GEOTER.FR Tue Jun 13 00:44:04 2006 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Tue, 13 Jun 2006 09:44:04 +0200 Subject: Mapscript ,Mono, Apache and Linux : a great story Message-ID: HI I'm developping a web site using Mono (1.1.13) Apache (2.0.54) MApscript (4.8.3). I'm using Vs2003 to develop and linux as deployement platform. All works well with windows but on linux i get the folowing error in th error_log apache file and the web server shutdowns. Any help well be appreciated. I don't know what to do regards ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= Stacktrace: in (wrapper managed-to-native) mapscriptPINVOKE:layerObj_getFeature (System.Runtime.InteropServices.HandleRef,int,int) <0x4> in (wrapper managed-to-native) mapscriptPINVOKE:layerObj_getFeature (System.Runtime.InteropServices.HandleRef,int,int) <0xffffff87> in layerObj:getFeature (int,int) <0x27> in siteflash.GetParcelleReglement:localiser_parcelle (double,double,string&) <0x1ca> in siteflash.GetParcelleReglement:ProcessRequest (System.Web.HttpContext) <0x56c> in __1:MoveNext () <0x10a0> in System.Web.HttpApplication:Tick () <0x1f> in System.Web.HttpApplication:Start (object) <0x37> in System.Web.HttpApplication:System.Web.IHttpAsyncHandler.BeginProcessRequest (System.Web.HttpContext,System.AsyncCallback,object) <0x68> in System.Web.HttpRuntime:RealProcessRequest (object) <0x1ab> in System.Web.HttpRuntime:ProcessRequest (System.Web.HttpWorkerRequest) <0x2c> in Mono.WebServer.MonoWorkerRequest:ProcessRequest () <0xa> in Mono.WebServer.BaseApplicationHost:ProcessRequest (Mono.WebServer.MonoWorkerRequest) <0x43> in Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xdc> in (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xffffff0a> in (wrapper xdomain-dispatch) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (object,byte[]&,byte[]&,int,string,string,string,string,string,int,string,in t,string,string[],string[]) <0xffeecda6> in (wrapper xdomain-invoke) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xffffff6a> in (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xffca7c74> in Mono.WebServer.ModMonoWorker:InnerRun (object) <0x404> in Mono.WebServer.ModMonoWorker:Run (object) <0x17> in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object (object) <0xffffff95> in (wrapper runtime-invoke) System.Object:runtime_invoke_void_object (object,intptr,intptr,intptr) <0xc74b289f> Native stacktrace: /usr/lib/pkgconfig/../../bin/mono(mono_handle_native_sigsegv+0xbb) [0x814ee2b] /usr/lib/pkgconfig/../../bin/mono [0x813b2cf] [0xffffe440] /lib/tls/libc.so.6(malloc+0x86) [0x40187ea6] /usr/local/lib/libmapscript.so(strstrIgnoreCase+0x47) [0x417f8fd7] /usr/local/lib/libmapscript.so [0x417f90e4] /usr/local/lib/libmapscript.so(msPOSTGISLayerGetShape+0x7d) [0x417f973d] /usr/local/lib/libmapscript.so(msPOSTGISLayerGetShapeVT+0x23) [0x417f9e93] /usr/local/lib/libmapscript.so(msLayerGetShape+0x2e) [0x417a8d6e] /usr/local/lib/libmapscript.so(CSharp_layerObj_getFeature+0x46) [0x41764766] [0x41721a9a] [0x417219b8] [0x41720b93] [0x4172023d] [0x415b64f9] [0x415b5380] [0x415b1768] [0x415b1649] [0x411111f4] [0x41110d25] [0x41110ce3] [0x4111029c] [0x410f54e5] [0x410f4c4c] [0x410f4a2b] [0x40fe14bf] [0x40fe12fb] [0x40c88e9d] [0x40c889f0] [0x40c889b4] [0x40c8890e] /usr/lib/pkgconfig/../../bin/mono [0x813b180] /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke+0x27) [0x80d63f7] /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke_array+0x270) [0x80d78c0] /usr/lib/pkgconfig/../../bin/mono(mono_message_invoke+0xc5) [0x80d93d5] /usr/lib/pkgconfig/../../bin/mono [0x80a509f] /usr/lib/pkgconfig/../../bin/mono [0x80a58c9] /usr/lib/pkgconfig/../../bin/mono [0x8099fb2] /usr/lib/pkgconfig/../../bin/mono [0x80f5067] /usr/lib/pkgconfig/../../bin/mono [0x8113175] /lib/tls/libpthread.so.0 [0x400e5297] /lib/tls/libc.so.6(__clone+0x5e) [0x401e037e] [Tue Jun 13 17:45:12 2006] [notice] caught SIGTERM, shutting down [Tue Jun 13 17:45:21 2006] [warn] module mono_module is already loaded, skipping [Tue Jun 13 17:45:22 2006] [notice] Apache/2.0.54 (Linux/SUSE) configured -- resuming normal operations Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. [Tue Jun 13 17:53:44 2006] [notice] caught SIGTERM, shutting down ----------------------------------------- Xavier Mauclaire ------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonnyprof at GMAIL.COM Tue Jun 13 02:02:36 2006 From: jonnyprof at GMAIL.COM (John Prof) Date: Tue, 13 Jun 2006 11:02:36 +0200 Subject: MyGis connection question Message-ID: Hello, I'm trying to connect mapserver's map with a mysql datatable like this: id int name varchar(20) description varchar(100) location point I'd like to create a shape with the points and the labels of the name. Is it possible? I've tried many ways but I have errors. I'd like to do something like this example: LAYER CONNECTIONTYPE mygis NAME "City" CONNECTION "host:user:passwd:database:bin" DATA "location from city" TYPE POINT STATUS ON . . . END It fails. I've tried with some mysql functions like AsBinary(point), but it doesn't work. I must use sh2mysql structure to store data in my database? Is not possible make my simply case? Thanks and sorry for my english :p -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Tue Jun 13 02:45:35 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Tue, 13 Jun 2006 11:45:35 +0200 Subject: compile MapServer to support Oracle Spatial Message-ID: Hi there, I am now trying to compile MapServer to support Oracle Spatial, I find the info in the nmake.opt: #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Direct connectivity to Oracle Spatial. # ---------------------------------------------------------------------- # Point this to where your ORACLE_HOME directory lives. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ORACLE_DIR = d:\oracle\ora92 ORACLE=-DUSE_ORACLESPATIAL does this mean that I must install Oracle on my computer, before I compile the MapServer? If not necessary, how can I set the ORACLE_DIR = value? set it as a virtual directory? thanks zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From micha at ARAVA.CO.IL Tue Jun 13 03:24:19 2006 From: micha at ARAVA.CO.IL (Micha Silver) Date: Tue, 13 Jun 2006 13:24:19 +0300 Subject: css in template file Message-ID: Can I use a css style sheet in a template file? I have a css file set up, and if I open the template (html) file directly, the styles are correctly applied. However when I run a map file from the mapserv cgi (with the template defined in the map file) I see my map, and all the html tags but the styles are NOT applied. What have I done wrong? Thanks, Micha From C.Wilmes at GMX.DE Tue Jun 13 03:29:34 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Tue, 13 Jun 2006 12:29:34 +0200 Subject: c#-mapscript, zooming problem on Landsat-Layer In-Reply-To: <2534c4120606130245q212bc27dv7e21a21694892748@mail.gmail.com> Message-ID: Hi all, I try to use I Layer from the Landsat-WMS in my c#-Application. The first time I get the Layer everything works fine but after zooming or just refreshing the map I get the following error: msBuildWMSLayerURLBase(): WMS connection error. One of wms_onlineresource, wms_server_version, wms_name metadata is missing in layer Landsat. Please either provide a valid CONNECTION URL, or provide those values in the layer's metadata. Trying it with other layers everything is ok. The part of the code where I add the Layer: layerObj landsat = new layerObj(myMap); landsat.name = "Landsat"; landsat.type = MS_LAYER_TYPE.MS_LAYER_RASTER; landsat.status = mapscript.MS_OFF; landsat.connectiontype = MS_CONNECTION_TYPE.MS_WMS; landsat.connection = "http://wms.jpl.nasa.gov/wms.cgi?"; hashTableObj metaLandsat = new hashTableObj(); metaLandsat.set("wms_name", "global_mosaic"); metaLandsat.set("wms_server_version", "1.1.0"); metaLandsat.set("wms_onlineresource", "http://wms.jpl.nasa.gov/wms.cgi?"); metaLandsat.set("wms_srs", "EPSG:4326"); metaLandsat.set("wms_format", "image/jpeg"); metaLandsat.set("wms_style", ""); metaLandsat.set("wms_connectiontimeout", "100"); landsat.metadata = metaLandsat; landsat.setProjection("init=epsg:4326"); Hope anybody could help me with that problem. Best Regards Christian -- "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail From janeks.kamerovskis at SILVA.LV Tue Jun 13 04:13:46 2006 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Tue, 13 Jun 2006 14:13:46 +0300 Subject: css in template file In-Reply-To: <448E9253.6070609@arava.co.il> Message-ID: It looks like you should play with those "/" and "." before file name in stylesheet definition. F.ex. if template and *.css are in the root directory, then line: works. Of couse there could be different combinations: /../filename.css /dirname/filename.css ./ etc. Janeks > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Micha Silver > Sent: Tuesday, June 13, 2006 1:24 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] css in template file > > Can I use a css style sheet in a template file? > I have a css file set up, and if I open the template (html) file > directly, the styles are correctly applied. However when I run a map > file from the mapserv cgi (with the template defined in the map file) I > see my map, and all the html tags but the styles are NOT applied. > What have I done wrong? > Thanks, > Micha From diazl at SG.UJI.ES Tue Jun 13 04:25:38 2006 From: diazl at SG.UJI.ES (=?ISO-8859-1?Q?Laura_D=EDaz?=) Date: Tue, 13 Jun 2006 13:25:38 +0200 Subject: GetFeatureInfo with more than one layer In-Reply-To: Message-ID: responding to my own doubt: i didnt set the parameter feature_count, by default is 1, so mapserver was only giving me back the info about one layer. Laura. Laura D?az escribi?: > Hi all, > when i send a getFeatureInfo request to a mapserver (version 4.6) asking > for information about more than one layer (coma separated list in the > parameters LAYERS and QUERY_LAYERS) in one point i just get the response > containing information of ONE of these layers, is this a known bug? > > thanks, > > Laura > > > From b.vdeijnden at AGI.RWS.MINVENW.NL Tue Jun 13 04:29:21 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Tue, 13 Jun 2006 13:29:21 +0200 Subject: compile MapServer to support Oracle Spa tial Message-ID: You need to install the Oracle client libraries (which include OCI), not Oracle server. The easiest you can use is the Oracle instant client which is less than 100 Mb and can just be deployed by unpacking a ZIP. You also need the Instant Client SDK then for the header files. Check the Oracle site. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Zhonghai Wang Verzonden: dinsdag 13 juni 2006 11:46 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] compile MapServer to support Oracle Spatial Hi there, I am now trying to compile MapServer to support Oracle Spatial, I find the info in the nmake.opt: #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Direct connectivity to Oracle Spatial. # ---------------------------------------------------------------------- # Point this to where your ORACLE_HOME directory lives. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ORACLE_DIR = d:\oracle\ora92 ORACLE=-DUSE_ORACLESPATIAL does this mean that I must install Oracle on my computer, before I compile the MapServer? If not necessary, how can I set the ORACLE_DIR = value? set it as a virtual directory? thanks zhonghai 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 micha at ARAVA.CO.IL Tue Jun 13 05:27:15 2006 From: micha at ARAVA.CO.IL (Micha Silver) Date: Tue, 13 Jun 2006 15:27:15 +0300 Subject: css in template file In-Reply-To: <006901c68eda$708a14b0$790aa8c0@JANEKSXP> Message-ID: Perfect! That was it. Warm thanks, Micha Janeks Kamerovskis wrote: >It looks like you should play with those "/" and "." before file name in >stylesheet definition. > >F.ex. if template and *.css are in the root directory, then line: > >works. > >Of couse there could be different combinations: >/../filename.css >/dirname/filename.css >./ >etc. > >Janeks > > > > >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >>Behalf Of Micha Silver >>Sent: Tuesday, June 13, 2006 1:24 PM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: [UMN_MAPSERVER-USERS] css in template file >> >>Can I use a css style sheet in a template file? >>I have a css file set up, and if I open the template (html) file >>directly, the styles are correctly applied. However when I run a map >>file from the mapserv cgi (with the template defined in the map file) I >>see my map, and all the html tags but the styles are NOT applied. >>What have I done wrong? >>Thanks, >>Micha >> >> From hrodriguez at SISCAT.COM.AR Tue Jun 13 05:46:31 2006 From: hrodriguez at SISCAT.COM.AR (Rodriguez, Heraldo) Date: Tue, 13 Jun 2006 09:46:31 -0300 Subject: JavaMapscript SIGSEGV Message-ID: Humberto , This is the method that is crashing. I am attaching a couple of logs too. (line shapeObj shape = l.getFeature(r.getShapeindex(), -1); ) I hope it helps. Thanks public List queryPorPunto(int x, int y) { List lista = new ArrayList(); pointObj p = new pointObj(x, y, 0); String row = ""; layerObj l = map.getLayerByName("entorno"); l.queryByPoint(map, p, mapscriptConstants.MS_MULTIPLE, -1); resultCacheObj results = l.getResults(); if (results == null) return lista; l.open(); for (int i = 0; i < results.getNumresults(); i++) { resultCacheMemberObj r = results.getResult(i); shapeObj shape = l.getFeature(r.getShapeindex(), -1); row = ""; for (int j = 0; j < shape.getNumvalues(); j++) { row = row + "" + shape.getValue(j) + ""; } lista.add(row); } l.close(); return lista; } Heraldo G. Rodriguez hrodriguez at siscat.com.ar TE 4326-4002 int 255 ? Dpto. Desarrollo Sistemas Catastrales S.A -----Mensaje original----- De: Umberto Nicoletti [mailto:umberto.nicoletti at gmail.com] Enviado el: martes, 13 de junio de 2006 3:50 Para: Rodriguez, Heraldo CC: MAPSERVER-USERS at lists.umn.edu Asunto: Re: [UMN_MAPSERVER-USERS] JavaMapscript SIGSEGV Hi, please post the hs_error_* file and the Java program that is causing the crash. Thanks, Umberto On 6/12/06, Rodriguez, Heraldo wrote: > Hi guys, > I have started developing with java mapscript and I have the same > problems with the shapeObj class. > Every time I want to create a new shape I get the message > > # > > # An unexpected error has been detected by HotSpot Virtual Machine: > > # > > # SIGSEGV (0xb) at pc=0x00002aaaaae43d5b, pid=23120, tid=46912501734144 > > # > > # Java VM: Java HotSpot(TM) Client VM (1.4.2_11-b06 mixed mode) > > # Problematic frame: > ... > > I am using mapserver 4.8.1 with java 1.4.2_11 version under Debian 3.1. > > Mapserver Compiling options > ./configure --with-freetype=/usr/local/bin/freetype-config > --with-zlib=/usr/lib --with-png=/usr/local/lib --with-jpeg=/usr/lib > --with-libiconv=/usr/local/lib --with-gd=/usr/local/bin/gdlib-config > --with-pdf=/usr/local/lib --with-proj=/usr/local/lib --with-threads > --with-geos=/usr/local/bin/geos-config --with-ogr=/usr/local/bin/gdal-config > --with-gdal=/usr/local/bin/gdal-config > --with-postgis=/usr/local/pgsql/bin/pg_config --with-wfs --with-wcs > --with-wmsclient --with-curl-config=/usr/local/bin/curl-config > > Steps to compile java mapscript > Run make > Make interface (swig version 1.3.29) > Make all > > I looked for a solution in google and mapserver documentation without > success. Could you please give me a clue to solve this? Thanks in > advance. > Best regards. > > > > Heraldo G. Rodriguez > hrodriguez at siscat.com.ar > TE 4326-4002 int 255 > Dpto. Desarrollo > Sistemas Catastrales S.A > > > > -----Mensaje original----- > De: Andre Sachs [mailto:asachs at CLUE.CO.ZA] > Enviado el: mi?rcoles, 31 de mayo de 2006 5:16 > Para: MAPSERVER-USERS at LISTS.UMN.EDU > Asunto: Re: [UMN_MAPSERVER-USERS] JavaMapscript SIGSEGV > > On 31 May 2006, at 8:37 AM, Umberto Nicoletti wrote: > > > Andre, could you report whether the patch attached to gentoo bugzilla > > works or not? > > Hi Umberto, > > Sorry for not replying earlier. > > The patch works in a 32 intel environment, thanks ! > > Due to time constraints on my current project I ditched my AMD 64, > Java 1.5 64 bit environment in favour of Intel 32 bit and this has > resolved my problem. > > The problems I experienced are somewhere in the application stack, > either in : > - Sun's 64 bit 1.5 jdk > - Gentoo's glibc 2.3.5-r2 > - Linux kernel 2.6.16 > > Once my current project is over (+- 3 weeks) I will be have some > spare time to hunt down the culprit. > > Regards, > Andre > -- > Andre Sachs > IT Architect, Clue Technologies PTY (LTD) > email: andre at clue.co.za > -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid2773.log Type: application/octet-stream Size: 16719 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid2489.log Type: application/octet-stream Size: 14525 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid2550.log Type: application/octet-stream Size: 16784 bytes Desc: not available URL: From David.Fawcett at STATE.MN.US Tue Jun 13 05:57:45 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 13 Jun 2006 07:57:45 -0500 Subject: MyGis connection question Message-ID: John, Take a look at this: http://mapserver.gis.umn.edu/docs/howto/ogrmysql You would need to change your data structure so that you store your x and y values in separate columns. Note that this method doesn't use MyGIS, it uses a direct connection driver in OGR, so your MapServer binary would need to be compiled with OGR support (as most are). David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of John Prof Sent: Tuesday, June 13, 2006 4:03 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] MyGis connection question Hello, I'm trying to connect mapserver's map with a mysql datatable like this: id int name varchar(20) description varchar(100) location point I'd like to create a shape with the points and the labels of the name. Is it possible? I've tried many ways but I have errors. I'd like to do something like this example: LAYER CONNECTIONTYPE mygis NAME "City" CONNECTION "host:user:passwd:database:bin" DATA "location from city" TYPE POINT STATUS ON . . . END It fails. I've tried with some mysql functions like AsBinary(point), but it doesn't work. I must use sh2mysql structure to store data in my database? Is not possible make my simply case? Thanks and sorry for my english :p -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Tue Jun 13 06:01:47 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Tue, 13 Jun 2006 15:01:47 +0200 Subject: compile MapServer to support Oracle Spa tial In-Reply-To: <1FEE21DC1054D5119FCC0002A5517B2405F97C36@rws-mdi-dt2-01.agi.rws.minvenw.nl> Message-ID: Hi Bart, I noticed that, for Windows on the Instant Client is needed, the Instant Client SDK is only needed for Linux, is that right? I read this in the Oracle home page, but I am not familiar with Oracle and not sure about this. thanks for your feedback. zhonghai On 6/13/06, Eijnden, B. van den (Bart) wrote: > > You need to install the Oracle client libraries (which include OCI), not > Oracle server. > > The easiest you can use is the Oracle instant client which is less than > 100 Mb and can just be deployed by unpacking a ZIP. You also need the > Instant Client SDK then for the header files. Check the Oracle site. > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > *Van:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]*Namens > *Zhonghai Wang > *Verzonden:* dinsdag 13 juni 2006 11:46 > *Aan:* MAPSERVER-USERS at LISTS.UMN.EDU > *Onderwerp:* [UMN_MAPSERVER-USERS] compile MapServer to support Oracle > Spatial > > Hi there, > > I am now trying to compile MapServer to support Oracle Spatial, I find the > info in the nmake.opt: > > #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > # Direct connectivity to Oracle Spatial. > # ---------------------------------------------------------------------- > # Point this to where your ORACLE_HOME directory lives. > #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ORACLE_DIR = d:\oracle\ora92 > ORACLE=-DUSE_ORACLESPATIAL > > does this mean that I must install Oracle on my computer, before I compile > the MapServer? If not necessary, how can I set the > ORACLE_DIR = value? set it as a virtual directory? > > thanks > > zhonghai > > > 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 umberto.nicoletti at GMAIL.COM Tue Jun 13 06:12:56 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 13 Jun 2006 15:12:56 +0200 Subject: JavaMapscript SIGSEGV In-Reply-To: <5341EB12706351489DEFADBFEF06CC684123F2@mercurio.sc.com> Message-ID: Open an issue on bugzilla (http://mapserver.gis.umn.edu/bugs/) and attach the three logs. I'll look into this asap. Umberto On 6/13/06, Rodriguez, Heraldo wrote: > > > Humberto , > This is the method that is crashing. I am attaching a couple of > logs too. (line shapeObj shape = l.getFeature(r.getShapeindex(), -1); ) > I hope it helps. Thanks > > public List queryPorPunto(int x, int y) { > List lista = new ArrayList(); > pointObj p = new pointObj(x, y, 0); > String row = ""; > > layerObj l = map.getLayerByName("entorno"); > l.queryByPoint(map, p, mapscriptConstants.MS_MULTIPLE, -1); > > resultCacheObj results = l.getResults(); > if (results == null) > return lista; > > l.open(); > for (int i = 0; i < results.getNumresults(); i++) > { > resultCacheMemberObj r = > results.getResult(i); > shapeObj shape = > l.getFeature(r.getShapeindex(), -1); > row = ""; > for (int j = 0; j < shape.getNumvalues(); > j++) > { > row = row + "" + > shape.getValue(j) + ""; > } > lista.add(row); > } > l.close(); > return lista; > } > > > > > > > Heraldo G. Rodriguez > hrodriguez at siscat.com.ar > TE 4326-4002 int 255 > Dpto. Desarrollo > Sistemas Catastrales S.A > > > -----Mensaje original----- > De: Umberto Nicoletti [mailto:umberto.nicoletti at gmail.com] > Enviado el: martes, 13 de junio de 2006 3:50 > Para: Rodriguez, Heraldo > CC: MAPSERVER-USERS at lists.umn.edu > Asunto: Re: [UMN_MAPSERVER-USERS] JavaMapscript SIGSEGV > > Hi, > please post the hs_error_* file and the Java program that is causing the > crash. > > Thanks, > Umberto > > > On 6/12/06, Rodriguez, Heraldo wrote: > > Hi guys, > > I have started developing with java mapscript and I have the > same > > problems with the shapeObj class. > > Every time I want to create a new shape I get the message > > > # > > > # An unexpected error has been detected by HotSpot Virtual Machine: > > > # > > > # SIGSEGV (0xb) at pc=0x00002aaaaae43d5b, pid=23120, tid=46912501734144 > > > # > > > # Java VM: Java HotSpot(TM) Client VM (1.4.2_11-b06 mixed mode) > > > # Problematic frame: > > ... > > > > I am using mapserver 4.8.1 with java 1.4.2_11 version under Debian 3.1. > > > > Mapserver Compiling options > > ./configure --with-freetype=/usr/local/bin/freetype-config > > --with-zlib=/usr/lib --with-png=/usr/local/lib --with-jpeg=/usr/lib > > --with-libiconv=/usr/local/lib --with-gd=/usr/local/bin/gdlib-config > > --with-pdf=/usr/local/lib --with-proj=/usr/local/lib --with-threads > > --with-geos=/usr/local/bin/geos-config > --with-ogr=/usr/local/bin/gdal-config > > --with-gdal=/usr/local/bin/gdal-config > > --with-postgis=/usr/local/pgsql/bin/pg_config --with-wfs --with-wcs > > --with-wmsclient --with-curl-config=/usr/local/bin/curl-config > > > > Steps to compile java mapscript > > Run make > > Make interface (swig version 1.3.29) > > Make all > > > > I looked for a solution in google and mapserver documentation without > > success. Could you please give me a clue to solve this? Thanks in > > advance. > > Best regards. > > > > > > > > Heraldo G. Rodriguez > > hrodriguez at siscat.com.ar > > TE 4326-4002 int 255 > > Dpto. Desarrollo > > Sistemas Catastrales S.A > > > > > > > > -----Mensaje original----- > > De: Andre Sachs [mailto:asachs at CLUE.CO.ZA] > > Enviado el: mi?rcoles, 31 de mayo de 2006 5:16 > > Para: MAPSERVER-USERS at LISTS.UMN.EDU > > Asunto: Re: [UMN_MAPSERVER-USERS] JavaMapscript SIGSEGV > > > > On 31 May 2006, at 8:37 AM, Umberto Nicoletti wrote: > > > > > Andre, could you report whether the patch attached to gentoo bugzilla > > > works or not? > > > > Hi Umberto, > > > > Sorry for not replying earlier. > > > > The patch works in a 32 intel environment, thanks ! > > > > Due to time constraints on my current project I ditched my AMD 64, > > Java 1.5 64 bit environment in favour of Intel 32 bit and this has > > resolved my problem. > > > > The problems I experienced are somewhere in the application stack, > > either in : > > - Sun's 64 bit 1.5 jdk > > - Gentoo's glibc 2.3.5-r2 > > - Linux kernel 2.6.16 > > > > Once my current project is over (+- 3 weeks) I will be have some > > spare time to hunt down the culprit. > > > > Regards, > > Andre > > -- > > Andre Sachs > > IT Architect, Clue Technologies PTY (LTD) > > email: andre at clue.co.za > > > > > > From b.vdeijnden at AGI.RWS.MINVENW.NL Tue Jun 13 06:03:25 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Tue, 13 Jun 2006 15:03:25 +0200 Subject: compile MapServer to support Oracle Spa tial Message-ID: No you also need the header files (and therefore the SDK) for Windows. Go here: http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/wins oft.html and download the SDK: http://download.oracle.com/otn/nt/instantclient/10202/instantclient-sdk-win3 2-10.2.0.2-20060508.zip and the basic package: http://download.oracle.com/otn/nt/instantclient/10202/instantclient-basic-wi n32-10.2.0.2-20060508.zip The basic package is only needed runtime not compile time. Best regards, Bart -----Oorspronkelijk bericht----- Van: Zhonghai Wang [mailto:zhonghaiw at gmail.com] Verzonden: dinsdag 13 juni 2006 15:02 Aan: Eijnden, B. van den (Bart) CC: MAPSERVER-USERS at lists.umn.edu Onderwerp: Re: [UMN_MAPSERVER-USERS] compile MapServer to support Oracle Spa tial Hi Bart, I noticed that, for Windows on the Instant Client is needed, the Instant Client SDK is only needed for Linux, is that right? I read this in the Oracle home page, but I am not familiar with Oracle and not sure about this. thanks for your feedback. zhonghai On 6/13/06, Eijnden, B. van den (Bart) < b.vdeijnden at agi.rws.minvenw.nl > wrote: You need to install the Oracle client libraries (which include OCI), not Oracle server. The easiest you can use is the Oracle instant client which is less than 100 Mb and can just be deployed by unpacking a ZIP. You also need the Instant Client SDK then for the header files. Check the Oracle site. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto: MAPSERVER-USERS at LISTS.UMN.EDU]Namens Zhonghai Wang Verzonden: dinsdag 13 juni 2006 11:46 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] compile MapServer to support Oracle Spatial Hi there, I am now trying to compile MapServer to support Oracle Spatial, I find the info in the nmake.opt: #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Direct connectivity to Oracle Spatial. # ---------------------------------------------------------------------- # Point this to where your ORACLE_HOME directory lives. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ORACLE_DIR = d:\oracle\ora92 ORACLE=-DUSE_ORACLESPATIAL does this mean that I must install Oracle on my computer, before I compile the MapServer? If not necessary, how can I set the ORACLE_DIR = value? set it as a virtual directory? thanks zhonghai 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. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From stepan.kafka at CENTRUM.CZ Tue Jun 13 06:44:30 2006 From: stepan.kafka at CENTRUM.CZ (Stepan Kafka) Date: Tue, 13 Jun 2006 15:44:30 +0200 Subject: code optimization Message-ID: Hi Julien, the data are bubbling thru classes until the expression is true, so you may use simply the syntax: CLASS NAME "0 - 200" EXPRESSION ([ELEVAC]< 200) ... END CLASS NAME "201 - 300" EXPRESSION ([ELEVAC]< 300) ... etc If the data are preclassified to unique values (eg 2,3,4,5), you will get better performance CLASSITEM "ELEVAC" CLASS NAME "0-200" EXPRESSION "2" ... For the best performance use the most frequent dataset values in the first class. Stepan Kafka Hi, i'm working with fgs-mapserver and php-mapscript. i was wondering if i'd rather develop the php code using the php class or on the contrary develop the map file. For example, i want to display a layer with level line. I could build the class with php or i could write several class in my map file, someting like: CLASS NAME "201-300" EXPRESSION (([ELEVAC]> 200) and ([ELEVAC]< 301)) STYLE SIZE 1 COLOR 100 40 0 END END what's the best way? thx for your advice. julien From markane at INDIANA.EDU Tue Jun 13 06:48:22 2006 From: markane at INDIANA.EDU (Matthew Kane) Date: Tue, 13 Jun 2006 08:48:22 -0500 Subject: Mapserver returns blank pages In-Reply-To: Message-ID: I second that question, as I am receiving Segmentation Faults as well... Matt On 6/13/06, antti siukola wrote: > Hi! > > Every time MapServer returns a blank page I find "[notice] child pid > xxxx exit signal Segmentation fault (11)" from apache's error_log. Any > thoughts? Blank pages are returned randomly. > > AnttiS > From madprof at GMX.CH Tue Jun 13 07:00:27 2006 From: madprof at GMX.CH (Daniel Goetz) Date: Tue, 13 Jun 2006 16:00:27 +0200 Subject: oracle spatial In-Reply-To: <0J0R002YOEC8AY@smtp15.wxs.nl> Message-ID: Thanks Wim for your help, but the syntax in the command-line of the browser didn't bring the solution. Roundup: I have installed Oracle 10g Release 1 client on my computer. Then unzipped the latest ms4w package. Did teh .dll swapping for oracle spacial support like described in the redme-file of the ms4w-package. Then I wrote a mapfile using the native oracle spatial support of the mapserver (not the OGR-Support). MAP NAME "Nbg" #EXTENT 426666.49 466058.21 448321.44 490754.58 EXTENT 433000 478000 434000 479000 #SIZE 1400 1800 SIZE 400 400 SHAPEPATH "/ms4w/Apache/htdocs/raster/daten" IMAGETYPE PNG IMAGECOLOR 255 255 255 UNITS METERS STATUS ON PROJECTION "init=epsg:4326" END WEB IMAGEPATH "c:\ms4w\Apache\htdocs\raster\tmp\" IMAGEURL "/raster/tmp/" TEMPLATE "test_template.html" END LAYER NAME "RWG" CONNECTIONTYPE OracleSpatial CONNECTION "username/password at service" DATA "GEOM FROM RWG_TBL USING SRID 82032" TYPE POINT STATUS ON PROJECTION "init=epsg:4326" END CLASS NAME "Punkte" STYLE OUTLINECOLOR 128 128 128 COLOR 225 225 185 END END END END Then I did some settings in the httpd.cong of the apache server like described in the "Using oracle spatial" howto. But I don't really know whether this was right. In the "ENV VARS" column I added the parameter: SetEnv ORACLE_HOME "c:/ora10gR1_client" SetEnv TNS_ADMIN "c:/ora10gR1_client/NETWORK/ADMIN" SetEnv PATH "c:/ora10gr1_client/bin" I saved this and restarted apache. Then I tried to map the oracle data via umn-mapserver. Therefor I wrote the following in my browser: http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raster/test_os_native.map&layers=all&mode=map Then I get a error-message from apache: "Internal Server Error.The server encountered an internal error or misconfiguration and was unable to complete your request." In the errorlog of the apache the following was logged: [Tue Jun 13 15:45:56 2006] [error] [client 127.0.0.1] Premature end of script headers: mapserv.exe But I don't know what this means. But when I consciously do some mistake in the DATA expression in the .mapfile (giving a tablename that does not exist in the database) I get the following error-message from the mapserver (and not the apache): msDrawMap(): Image handling error. Failed to draw layer named 'RWG'. msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: ORA-00942: Tabelle oder View nicht vorhanden . Query statement: SELECT rownum, GEOM FROM RWG_TBL.g WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, 82032, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(433000,478000,434000,479000) ),'querytype=window') = 'TRUE' . Check your data statement. So you can see that mapserver is able to connect to the database, because it says that the Table or View is not available. The really astonishing is that after doing the .dll swapping for oracle spatial support other mapserver-projects that have worked fine on my computer before the swapping cause the same appache error-message. Could anybody imagine what might be the problem? Might it be that mapserver and the version of my oracle client (10g Release 1) are not compiled against each other? Or is there another mistake I have done? Please help me. I would be very glad and thankful for any hint. Thank you so much. regards Daniel -------- Original-Nachricht -------- Datum: Mon, 12 Jun 2006 20:08:22 +0200 Von: Wim Blanken An: \'Daniel Goetz\' Betreff: RE: [UMN_MAPSERVER-USERS] oracle spatial > Hello Daniel, > > I think your solution is simple. You have to specify &mode=map > on the commandline to make it work. If you don't mapserver needs a > template > to show the results of the cgi-call. > > http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raster/test_o > s_ogr.map&layers=all&mode=map > > > Regards > > Wim Blanken > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Daniel Goetz > Sent: Monday, June 12, 2006 1:54 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] oracle spatial > > Hi, > > I have the ms4w installed on my computer and I want to map geodata, lying > in > a oracle spatial database on a server in the intranet, via umn mapserver. > Therefor I enabled OGR-OCI support described in the readme-file of the > ms4w-package (I "installed" 10g oracle instant client on my computer, set > set windows environmet variable PATH and did the described .dll swapping). > > Then I tested, whether OGR now supports the OCI with ogrinfo. Therefor I > had > to modify the syntax a littel bit to get information: I wrote "ogrinfo > "OCI:username/password at host:port/service_name" instead of described on the > ogr-site/oracle spatial "OCI:username/password at service_name". The result > was > that ogrinfo listed me the relevant tables that contain geometric data. > > Then I tried to map the data via mapserver. Therefor I wrote the following > .map-file (therefor I correspond to the example given in the "Vector Data > Access-Reference-Guide" on the mapserver-site): > > MAP > NAME "Oracle" > EXTENT 426666.49 466058.21 448321.44 490754.58 > SIZE 1400 1800 > SHAPEPATH "/ms4w/Apache/htdocs/raster/daten" > IMAGETYPE PNG > IMAGECOLOR 255 255 255 > UNITS METERS > STATUS ON > CONFIG "GDAL_DRIVER_PATH" "C:/ms4w/gdalplugins" > > WEB > IMAGEPATH "c:\ms4w\Apache\htdocs\raster\tmp\" > IMAGEURL "/raster/tmp/" > TEMPLATE "test_template.html" > END > > LAYER > CONNECTIONTYPE OGR > CONNECTION "OCI:username/password at service_name" > DATA "RWG_TBS" > NAME "RWG_TBS" > TYPE POLYGON > STATUS ON > > CLASS > NAME "Flaeche" > STYLE > OUTLINECOLOR 128 128 128 > COLOR 225 225 185 > END > END > END > END > > > The template I wrote therefor is very simple: > > > > Erstes Beispiel zum UMN Mapserver > > > > Mapserver-Version auslesen:

[version]


> Karte einbetten:

>
> > > > > And I tried to start mapping by writing the following in my browser: > > http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raster/test_o > s_ogr.map&layers=all& > > > The result was, that mapserver brought the error-message: > > "mapserv(): Web application error. No template provided. " > > Then I tested some other mapserver-test-projects, for whom I know that > they > have worked properly on my computer before the mentioned .dll swapping for > OGR-OCI support. The result was the same: > > "mapserv(): Web application error. No template provided. " > > > So I have three questions: > > How should mapserver know where the database is located without giving him > any information about the host-address and the port-number. Where can I > provide this information for the mapserver. In the case of ogrinfo I did > this by writing "OCI:username/password at host:port/service_name". In the > .mpa-file example in the "Vector-Data-Reference-Guide" they say under > CONECTION you should type "OCI:username/password at service_name". Where is > the > information about the location of the database? > > Second questions is: Is anything wrong with my .map-file, html-template or > the starting-command in the web-browser? > > Third: And why do the other mapserver projects, I tested before .dll > swapping (for OGR-COI support), work anymore. Why do I always get the > error-message "mapserv(): Web application error. No template provided." > although I changed nothing on the .map-files, the template nor the > command. > > I would be very pleased and hayppy and thankful if anybody would help me > on > my problem. This would really be very nice. Thank you so much for your > endeavors. > > Regards > > Daniel > > > -- > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.8.3/361 - Release Date: 6/11/2006 > -- "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail From B.Sims at UNESCO.ORG Tue Jun 13 09:12:46 2006 From: B.Sims at UNESCO.ORG (Sims, Benjamin) Date: Tue, 13 Jun 2006 18:12:46 +0200 Subject: mapserver vs. google maps - any comparisons done? Message-ID: Hi, I have been asked to look into developing an application to display basic scientific data on the web. Its fairly vanilla stuff - display points at which a certain event happened, popup a descriptive text when the user hovers over them and then go to an information page when they are clicked. There may also be things like colour coding of grid areas and so forth. Having read a tutorial on using Mapserver with PHP some time ago and played around with a it a little bit, I had more or less decided that Mapserver was the best way to go to get this project done. However, over the last year the I there have been so many applications coming out riding on Google Maps rather than using a dedicated map server/GIS product. Despite this, I haven't been able to find any information online comparing the different products available, or listing the advantages and disadvantages of going for one rather than the other. Does anybody on this list have such information, or personal experience that they would like to share? Thanks for any opinions, Benjamin -------------- next part -------------- An HTML attachment was scrubbed... URL: From watry at COAPS.FSU.EDU Tue Jun 13 09:39:15 2006 From: watry at COAPS.FSU.EDU (Gary Watry) Date: Tue, 13 Jun 2006 12:39:15 -0400 Subject: mapserver vs. google maps - any comparisons done? In-Reply-To: <56D5EF131081C94D98570776E56FF84504F13C33@MAILSERVER-01.hq.int.unesco.org> Message-ID: Hi Ben You have to pay about $200-400 per year to put data on Google, a lot cheaper than commercial software but some cost never the less You have to purchase Google Pro ($200) and depending oun what else you might have to fork out for the GIS Loader tool ($200). ______________________________________________________________ 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 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Sims, Benjamin Sent: Tuesday, June 13, 2006 12:13 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mapserver vs. google maps - any comparisons done? Hi, I have been asked to look into developing an application to display basic scientific data on the web. Its fairly vanilla stuff - display points at which a certain event happened, popup a descriptive text when the user hovers over them and then go to an information page when they are clicked. There may also be things like colour coding of grid areas and so forth. Having read a tutorial on using Mapserver with PHP some time ago and played around with a it a little bit, I had more or less decided that Mapserver was the best way to go to get this project done. However, over the last year the I there have been so many applications coming out riding on Google Maps rather than using a dedicated map server/GIS product. Despite this, I haven't been able to find any information online comparing the different products available, or listing the advantages and disadvantages of going for one rather than the other. Does anybody on this list have such information, or personal experience that they would like to share? Thanks for any opinions, Benjamin -------------- next part -------------- An HTML attachment was scrubbed... URL: From B.Sims at UNESCO.ORG Tue Jun 13 09:49:40 2006 From: B.Sims at UNESCO.ORG (Sims, Benjamin) Date: Tue, 13 Jun 2006 18:49:40 +0200 Subject: mapserver vs. google maps - any comparisons done? Message-ID: Thanks for the quick reply, I should clarify that the 'data' is barely even in a GIS format - the geo element is only a latlong point attached to a particular record. (although a will also have to plot grids, which I imagine will take more work). As I understand it, Google Pro is the advanced version of Google Earth (their whizzbang flying-around browser thing) rather than Google Maps (the simple flat maps) and is probably overkill is this case. Ben ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gary Watry Sent: 13 June 2006 18:39 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver vs. google maps - any comparisons done? Hi Ben You have to pay about $200-400 per year to put data on Google, a lot cheaper than commercial software but some cost never the less You have to purchase Google Pro ($200) and depending oun what else you might have to fork out for the GIS Loader tool ($200). ______________________________________________________________ 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 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Sims, Benjamin Sent: Tuesday, June 13, 2006 12:13 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mapserver vs. google maps - any comparisons done? Hi, I have been asked to look into developing an application to display basic scientific data on the web. Its fairly vanilla stuff - display points at which a certain event happened, popup a descriptive text when the user hovers over them and then go to an information page when they are clicked. There may also be things like colour coding of grid areas and so forth. Having read a tutorial on using Mapserver with PHP some time ago and played around with a it a little bit, I had more or less decided that Mapserver was the best way to go to get this project done. However, over the last year the I there have been so many applications coming out riding on Google Maps rather than using a dedicated map server/GIS product. Despite this, I haven't been able to find any information online comparing the different products available, or listing the advantages and disadvantages of going for one rather than the other. Does anybody on this list have such information, or personal experience that they would like to share? Thanks for any opinions, Benjamin -------------- next part -------------- An HTML attachment was scrubbed... URL: From hrodriguez at SISCAT.COM.AR Tue Jun 13 12:46:19 2006 From: hrodriguez at SISCAT.COM.AR (Rodriguez, Heraldo) Date: Tue, 13 Jun 2006 16:46:19 -0300 Subject: JavaMapscript SIGSEGV Message-ID: Thank you very much. Heraldo G. Rodriguez hrodriguez at siscat.com.ar TE 4326-4002 int 255 ? Dpto. Desarrollo Sistemas Catastrales S.A -----Mensaje original----- De: Umberto Nicoletti [mailto:umberto.nicoletti at gmail.com] Enviado el: martes, 13 de junio de 2006 10:13 Para: Rodriguez, Heraldo CC: MAPSERVER-USERS at lists.umn.edu Asunto: Re: [UMN_MAPSERVER-USERS] JavaMapscript SIGSEGV Open an issue on bugzilla (http://mapserver.gis.umn.edu/bugs/) and attach the three logs. I'll look into this asap. Umberto On 6/13/06, Rodriguez, Heraldo wrote: > > > Humberto , > This is the method that is crashing. I am attaching a couple of > logs too. (line shapeObj shape = l.getFeature(r.getShapeindex(), -1); ) > I hope it helps. Thanks > > public List queryPorPunto(int x, int y) { > List lista = new ArrayList(); > pointObj p = new pointObj(x, y, 0); > String row = ""; > > layerObj l = map.getLayerByName("entorno"); > l.queryByPoint(map, p, mapscriptConstants.MS_MULTIPLE, -1); > > resultCacheObj results = l.getResults(); > if (results == null) > return lista; > > l.open(); > for (int i = 0; i < results.getNumresults(); i++) > { > resultCacheMemberObj r = > results.getResult(i); > shapeObj shape = > l.getFeature(r.getShapeindex(), -1); > row = ""; > for (int j = 0; j < shape.getNumvalues(); > j++) > { > row = row + "" + > shape.getValue(j) + ""; > } > lista.add(row); > } > l.close(); > return lista; > } > > > > > > > Heraldo G. Rodriguez > hrodriguez at siscat.com.ar > TE 4326-4002 int 255 > Dpto. Desarrollo > Sistemas Catastrales S.A > > > -----Mensaje original----- > De: Umberto Nicoletti [mailto:umberto.nicoletti at gmail.com] > Enviado el: martes, 13 de junio de 2006 3:50 > Para: Rodriguez, Heraldo > CC: MAPSERVER-USERS at lists.umn.edu > Asunto: Re: [UMN_MAPSERVER-USERS] JavaMapscript SIGSEGV > > Hi, > please post the hs_error_* file and the Java program that is causing the > crash. > > Thanks, > Umberto > > > On 6/12/06, Rodriguez, Heraldo wrote: > > Hi guys, > > I have started developing with java mapscript and I have the > same > > problems with the shapeObj class. > > Every time I want to create a new shape I get the message > > > # > > > # An unexpected error has been detected by HotSpot Virtual Machine: > > > # > > > # SIGSEGV (0xb) at pc=0x00002aaaaae43d5b, pid=23120, tid=46912501734144 > > > # > > > # Java VM: Java HotSpot(TM) Client VM (1.4.2_11-b06 mixed mode) > > > # Problematic frame: > > ... > > > > I am using mapserver 4.8.1 with java 1.4.2_11 version under Debian 3.1. > > > > Mapserver Compiling options > > ./configure --with-freetype=/usr/local/bin/freetype-config > > --with-zlib=/usr/lib --with-png=/usr/local/lib --with-jpeg=/usr/lib > > --with-libiconv=/usr/local/lib --with-gd=/usr/local/bin/gdlib-config > > --with-pdf=/usr/local/lib --with-proj=/usr/local/lib --with-threads > > --with-geos=/usr/local/bin/geos-config > --with-ogr=/usr/local/bin/gdal-config > > --with-gdal=/usr/local/bin/gdal-config > > --with-postgis=/usr/local/pgsql/bin/pg_config --with-wfs --with-wcs > > --with-wmsclient --with-curl-config=/usr/local/bin/curl-config > > > > Steps to compile java mapscript > > Run make > > Make interface (swig version 1.3.29) > > Make all > > > > I looked for a solution in google and mapserver documentation without > > success. Could you please give me a clue to solve this? Thanks in > > advance. > > Best regards. > > > > > > > > Heraldo G. Rodriguez > > hrodriguez at siscat.com.ar > > TE 4326-4002 int 255 > > Dpto. Desarrollo > > Sistemas Catastrales S.A > > > > > > > > -----Mensaje original----- > > De: Andre Sachs [mailto:asachs at CLUE.CO.ZA] > > Enviado el: mi?rcoles, 31 de mayo de 2006 5:16 > > Para: MAPSERVER-USERS at LISTS.UMN.EDU > > Asunto: Re: [UMN_MAPSERVER-USERS] JavaMapscript SIGSEGV > > > > On 31 May 2006, at 8:37 AM, Umberto Nicoletti wrote: > > > > > Andre, could you report whether the patch attached to gentoo bugzilla > > > works or not? > > > > Hi Umberto, > > > > Sorry for not replying earlier. > > > > The patch works in a 32 intel environment, thanks ! > > > > Due to time constraints on my current project I ditched my AMD 64, > > Java 1.5 64 bit environment in favour of Intel 32 bit and this has > > resolved my problem. > > > > The problems I experienced are somewhere in the application stack, > > either in : > > - Sun's 64 bit 1.5 jdk > > - Gentoo's glibc 2.3.5-r2 > > - Linux kernel 2.6.16 > > > > Once my current project is over (+- 3 weeks) I will be have some > > spare time to hunt down the culprit. > > > > Regards, > > Andre > > -- > > Andre Sachs > > IT Architect, Clue Technologies PTY (LTD) > > email: andre at clue.co.za > > > > > > From Steve.Lime at DNR.STATE.MN.US Tue Jun 13 13:50:46 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 13 Jun 2006 15:50:46 -0500 Subject: mapserver vs. google maps - any comparisons done? Message-ID: You can have your open source and eat it to. Have you checked out ka-map? (see www.maptools.org) It give's you a google-like UI with your own data. Your own data is the key... Steve >>> "Sims, Benjamin" 6/13/2006 11:49 AM >>> Thanks for the quick reply, I should clarify that the 'data' is barely even in a GIS format - the geo element is only a latlong point attached to a particular record. (although a will also have to plot grids, which I imagine will take more work). As I understand it, Google Pro is the advanced version of Google Earth (their whizzbang flying-around browser thing) rather than Google Maps (the simple flat maps) and is probably overkill is this case. Ben ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gary Watry Sent: 13 June 2006 18:39 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver vs. google maps - any comparisons done? Hi Ben You have to pay about $200-400 per year to put data on Google, a lot cheaper than commercial software but some cost never the less You have to purchase Google Pro ($200) and depending oun what else you might have to fork out for the GIS Loader tool ($200). ______________________________________________________________ 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 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Sims, Benjamin Sent: Tuesday, June 13, 2006 12:13 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mapserver vs. google maps - any comparisons done? Hi, I have been asked to look into developing an application to display basic scientific data on the web. Its fairly vanilla stuff - display points at which a certain event happened, popup a descriptive text when the user hovers over them and then go to an information page when they are clicked. There may also be things like colour coding of grid areas and so forth. Having read a tutorial on using Mapserver with PHP some time ago and played around with a it a little bit, I had more or less decided that Mapserver was the best way to go to get this project done. However, over the last year the I there have been so many applications coming out riding on Google Maps rather than using a dedicated map server/GIS product. Despite this, I haven't been able to find any information online comparing the different products available, or listing the advantages and disadvantages of going for one rather than the other. Does anybody on this list have such information, or personal experience that they would like to share? Thanks for any opinions, Benjamin From rjames57 at YAHOO.COM Tue Jun 13 15:30:15 2006 From: rjames57 at YAHOO.COM (Randy James) Date: Tue, 13 Jun 2006 15:30:15 -0700 Subject: Label question Message-ID: I have a large data set of contours where I am using a value field that has 5 decimal places and it makes the label quite long. I have the contours tiled and used tile4ms to create a tile index for 160 shape files. I would like to strip off the 5 decimal places("200.00000" = 200) if possible without editing all the values in the layers, if possible. I could edit all the attribute fields for less decimal places but it would take quite a bit of time, is there a faster way? Randy __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From sgornick at DIGICOAST.COM Tue Jun 13 16:33:04 2006 From: sgornick at DIGICOAST.COM (Stephen Gornick) Date: Tue, 13 Jun 2006 16:33:04 -0700 Subject: mapserver vs. google maps - any comparisons done? In-Reply-To: <56D5EF131081C94D98570776E56FF84504F13C33@MAILSERVER-01.hq.int.unesco.org> Message-ID: Hi Benjamin, You might be interested in seeing what I am doing here: http://www.gmapsgis.com/examples/2004election.php There are other ways also, such as Ducky Sherwood is doing with her Census Data Mashup (which uses tile layers). - Stephen Sims, Benjamin wrote: > > Despite this, I haven?t been able to find any information online > comparing the different products available, or listing the advantages > and disadvantages of going for one rather than the other. > > Does anybody on this list have such information, or personal > experience that they would like to share? > From Steve.Lime at DNR.STATE.MN.US Tue Jun 13 22:52:32 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 14 Jun 2006 00:52:32 -0500 Subject: Label question Message-ID: Unfortunately no, you have to have the labels formatted as they need to be displayed in the data. We've been tossing around a few ideas to fix this limitation in future releases but none are close to implementation. Sorry. Steve >>> Randy James 06/13/06 5:30 PM >>> I have a large data set of contours where I am using a value field that has 5 decimal places and it makes the label quite long. I have the contours tiled and used tile4ms to create a tile index for 160 shape files. I would like to strip off the 5 decimal places("200.00000" = 200) if possible without editing all the values in the layers, if possible. I could edit all the attribute fields for less decimal places but it would take quite a bit of time, is there a faster way? Randy __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Steve.Lime at DNR.STATE.MN.US Tue Jun 13 22:56:16 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 14 Jun 2006 00:56:16 -0500 Subject: Anti Alias Problem Message-ID: Hmmm... I'm suprised turning off style antialiasing would impact font antialiasing. They are totally unrelated. I guess we need a bit more information. What version of MapServer? Has the GD anti-aliasing patch been applied? What output image format? Steve >>> Thomas Hammerlund 06/13/06 1:03 AM >>> Hi Everyone, I've been looking for a solution to this, but haven't been successful so far so I'm hoping someone can help. I'm using Fedora 5, and everything I need is working great. The problem is that when I try the same data set on Fedora 4 or Red Hat Advanced Server, anti alias doesn't work. The problem can be resolved by commenting out the antialias line, but then it makes my font and lines look too choppy. Has anyone seen this? Does anyone know if this is a Linux or a Mapserver problem? Thank you for your help, Tom From Jukka.Rahkonen at MMMTIKE.FI Wed Jun 14 00:06:18 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Wed, 14 Jun 2006 10:06:18 +0300 Subject: oracle spatial Message-ID: Hello, I can say only that I had no problem in connecting to my Oracle 9i database with MS4W installation. I did just the manouvres described in the readme-file, and did not set any new environment variables. My connection string is like: CONNECTIONTYPE ORACLESPATIAL CONNECTION "USER/PASSWD at DB.WORLD " DATA "GEOLOC FROM GIS_POLYGONS USING UNIQUE MSLINK" Have you tried to feed the SQL statement from the error message directly to SQL-Plus? Do you get results then? Is your spatial table OK for Mapserver? I do not know exactly what Mapserver needs, but for Geoserver there must exist a numerical primary key, spatial index and a correct entry in SDO_GEOM_METADATA. In my case if I can connect my data with Geoserver it is available for Mapserver as well. Good luck, -Jukka Rahkonen- ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Daniel Goetz L?hetetty: ti 13.6.2006 17:00 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: Re: [UMN_MAPSERVER-USERS] oracle spatial Thanks Wim for your help, but the syntax in the command-line of the browser didn't bring the solution. Roundup: I have installed Oracle 10g Release 1 client on my computer. Then unzipped the latest ms4w package. Did teh .dll swapping for oracle spacial support like described in the redme-file of the ms4w-package. Then I wrote a mapfile using the native oracle spatial support of the mapserver (not the OGR-Support). MAP NAME "Nbg" #EXTENT 426666.49 466058.21 448321.44 490754.58 EXTENT 433000 478000 434000 479000 #SIZE 1400 1800 SIZE 400 400 SHAPEPATH "/ms4w/Apache/htdocs/raster/daten" IMAGETYPE PNG IMAGECOLOR 255 255 255 UNITS METERS STATUS ON PROJECTION "init=epsg:4326" END WEB IMAGEPATH "c:\ms4w\Apache\htdocs\raster\tmp\" IMAGEURL "/raster/tmp/" TEMPLATE "test_template.html" END LAYER NAME "RWG" CONNECTIONTYPE OracleSpatial CONNECTION "username/password at service" DATA "GEOM FROM RWG_TBL USING SRID 82032" TYPE POINT STATUS ON PROJECTION "init=epsg:4326" END CLASS NAME "Punkte" STYLE OUTLINECOLOR 128 128 128 COLOR 225 225 185 END END END END Then I did some settings in the httpd.cong of the apache server like described in the "Using oracle spatial" howto. But I don't really know whether this was right. In the "ENV VARS" column I added the parameter: SetEnv ORACLE_HOME "c:/ora10gR1_client" SetEnv TNS_ADMIN "c:/ora10gR1_client/NETWORK/ADMIN" SetEnv PATH "c:/ora10gr1_client/bin" I saved this and restarted apache. Then I tried to map the oracle data via umn-mapserver. Therefor I wrote the following in my browser: http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raster/test_os_native.map&layers=all&mode=map Then I get a error-message from apache: "Internal Server Error.The server encountered an internal error or misconfiguration and was unable to complete your request." In the errorlog of the apache the following was logged: [Tue Jun 13 15:45:56 2006] [error] [client 127.0.0.1] Premature end of script headers: mapserv.exe But I don't know what this means. But when I consciously do some mistake in the DATA expression in the .mapfile (giving a tablename that does not exist in the database) I get the following error-message from the mapserver (and not the apache): msDrawMap(): Image handling error. Failed to draw layer named 'RWG'. msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: ORA-00942: Tabelle oder View nicht vorhanden . Query statement: SELECT rownum, GEOM FROM RWG_TBL.g WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, 82032, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(433000,478000,434000,479000) ),'querytype=window') = 'TRUE' . Check your data statement. So you can see that mapserver is able to connect to the database, because it says that the Table or View is not available. The really astonishing is that after doing the .dll swapping for oracle spatial support other mapserver-projects that have worked fine on my computer before the swapping cause the same appache error-message. Could anybody imagine what might be the problem? Might it be that mapserver and the version of my oracle client (10g Release 1) are not compiled against each other? Or is there another mistake I have done? Please help me. I would be very glad and thankful for any hint. Thank you so much. regards Daniel -------- Original-Nachricht -------- Datum: Mon, 12 Jun 2006 20:08:22 +0200 Von: Wim Blanken An: \'Daniel Goetz\' Betreff: RE: [UMN_MAPSERVER-USERS] oracle spatial > Hello Daniel, > > I think your solution is simple. You have to specify &mode=map > on the commandline to make it work. If you don't mapserver needs a > template > to show the results of the cgi-call. > > http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raster/test_o > s_ogr.map&layers=all&mode=map > > > Regards > > Wim Blanken > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Daniel Goetz > Sent: Monday, June 12, 2006 1:54 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] oracle spatial > > Hi, > > I have the ms4w installed on my computer and I want to map geodata, lying > in > a oracle spatial database on a server in the intranet, via umn mapserver. > Therefor I enabled OGR-OCI support described in the readme-file of the > ms4w-package (I "installed" 10g oracle instant client on my computer, set > set windows environmet variable PATH and did the described .dll swapping). > > Then I tested, whether OGR now supports the OCI with ogrinfo. Therefor I > had > to modify the syntax a littel bit to get information: I wrote "ogrinfo > "OCI:username/password at host:port/service_name" instead of described on the > ogr-site/oracle spatial "OCI:username/password at service_name". The result > was > that ogrinfo listed me the relevant tables that contain geometric data. > > Then I tried to map the data via mapserver. Therefor I wrote the following > .map-file (therefor I correspond to the example given in the "Vector Data > Access-Reference-Guide" on the mapserver-site): > > MAP > NAME "Oracle" > EXTENT 426666.49 466058.21 448321.44 490754.58 > SIZE 1400 1800 > SHAPEPATH "/ms4w/Apache/htdocs/raster/daten" > IMAGETYPE PNG > IMAGECOLOR 255 255 255 > UNITS METERS > STATUS ON > CONFIG "GDAL_DRIVER_PATH" "C:/ms4w/gdalplugins" > > WEB > IMAGEPATH "c:\ms4w\Apache\htdocs\raster\tmp\" > IMAGEURL "/raster/tmp/" > TEMPLATE "test_template.html" > END > > LAYER > CONNECTIONTYPE OGR > CONNECTION "OCI:username/password at service_name" > DATA "RWG_TBS" > NAME "RWG_TBS" > TYPE POLYGON > STATUS ON > > CLASS > NAME "Flaeche" > STYLE > OUTLINECOLOR 128 128 128 > COLOR 225 225 185 > END > END > END > END > > > The template I wrote therefor is very simple: > > > > Erstes Beispiel zum UMN Mapserver > > > > Mapserver-Version auslesen:

[version]


> Karte einbetten:

>
> > > > > And I tried to start mapping by writing the following in my browser: > > http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raster/test_o > s_ogr.map&layers=all& > > > The result was, that mapserver brought the error-message: > > "mapserv(): Web application error. No template provided. " > > Then I tested some other mapserver-test-projects, for whom I know that > they > have worked properly on my computer before the mentioned .dll swapping for > OGR-OCI support. The result was the same: > > "mapserv(): Web application error. No template provided. " > > > So I have three questions: > > How should mapserver know where the database is located without giving him > any information about the host-address and the port-number. Where can I > provide this information for the mapserver. In the case of ogrinfo I did > this by writing "OCI:username/password at host:port/service_name". In the > .mpa-file example in the "Vector-Data-Reference-Guide" they say under > CONECTION you should type "OCI:username/password at service_name". Where is > the > information about the location of the database? > > Second questions is: Is anything wrong with my .map-file, html-template or > the starting-command in the web-browser? > > Third: And why do the other mapserver projects, I tested before .dll > swapping (for OGR-COI support), work anymore. Why do I always get the > error-message "mapserv(): Web application error. No template provided." > although I changed nothing on the .map-files, the template nor the > command. > > I would be very pleased and hayppy and thankful if anybody would help me > on > my problem. This would really be very nice. Thank you so much for your > endeavors. > > Regards > > Daniel > > > -- > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.8.3/361 - Release Date: 6/11/2006 > -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail From tom at MAPLINK.JP Wed Jun 14 00:23:52 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Wed, 14 Jun 2006 16:23:52 +0900 Subject: Anti Alias Problem Message-ID: Thank you for your reply Steve. I'm running mapserver 4.8.3 and outputting jpegs via the gdal/jpeg driver. I'm using the gdal driver because the gd/jpeg driver output progressive encoded jpegs(which i couldn't use). Example layer: LAYER NAME l_koku_u STATUS ON TILEINDEX "ixs/shb/50000/l_koku_u_ix" TILEITEM "location" TYPE LINE CLASSITEM Code CLASS MAXSCALE 337000 MINSCALE 85001 Name style1 EXPRESSION 'l_bbbcd' STYLE COLOR 240 184 53 WIDTH 1 #ANTIALIAS TRUE END END END I'm creating my image using perl mapscript. my mistake, the problem is not with the fonts but with the lines. when I turn style antialiasing on for my line layers perl throws an internal server error with no error message from mapserver (or perl). The outputformat in my mapfile looks like this: OUTPUTFORMAT NAME jpeg DRIVER "GDAL/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB FORMATOPTION "QUALITY=100" EXTENSION "jpg" END Which antialias patch are you referring to? Thank you again, Tom ----- Original Message ----- From: "Steve Lime" To: ; Sent: Wednesday, June 14, 2006 2:56 PM Subject: Re: [UMN_MAPSERVER-USERS] Anti Alias Problem > Hmmm... I'm suprised turning off style antialiasing would impact font > antialiasing. > They are totally unrelated. > > I guess we need a bit more information. What version of MapServer? Has the > GD > anti-aliasing patch been applied? What output image format? > > Steve > >>>> Thomas Hammerlund 06/13/06 1:03 AM >>> > Hi Everyone, > > I've been looking for a solution to this, but haven't been successful so > far > so I'm hoping someone can help. > > I'm using Fedora 5, and everything I need is working great. The problem > is > that when I try the same data set on Fedora 4 or Red Hat Advanced Server, > anti alias doesn't work. The problem can be resolved by commenting out > the > antialias line, but then it makes my font and lines look too choppy. Has > anyone seen this? Does anyone know if this is a Linux or a Mapserver > problem? > > Thank you for your help, > Tom > > > From jegou at UNIV-TLSE2.FR Wed Jun 14 00:24:02 2006 From: jegou at UNIV-TLSE2.FR (=?ISO-8859-1?Q?Laurent_J=E9gou?=) Date: Wed, 14 Jun 2006 09:24:02 +0200 Subject: WebSite documentation language glitch In-Reply-To: Message-ID: Hello, when i access the "documentation" part of the official website (http://mapserver.gis.umn.edu/docs), plone detects than i use a french language and automatically gives the french version of the website, which is empty of documentation. I remarked that this morning, before i was able to put the site in english by returning to the first page and clicking the english flag. Now that does'nt work anymore. What url can i use to force the site in english and have acces to the whole content ? Thanks for your help ! From madprof at GMX.CH Wed Jun 14 00:34:02 2006 From: madprof at GMX.CH (Daniel Goetz) Date: Wed, 14 Jun 2006 09:34:02 +0200 Subject: oracle spatial In-Reply-To: Message-ID: Thanks Rahkonen for your reply, you did the .dll swapping like described in the readme-file of the ms4w package and then just used the below mentioned connection string? That's all? But when I do this and test other .map-file porjects that have worked fine before the .dll swapping on my Computer (raster-data or shapefiles) I get an apache-error. In my opinion this means that after the .dll swapping my apache-server didn't work anymore the way it should. Again: you simplya have copied the "libmap.dll" in the "Apache/cgi-bin/ignored-libmap/oracle10g/"-folder and pasted it in the "Apache/cgi-bin"-folder and then copied the "ogr_OCI.dll" from the "ms4w/gdalplugins/ignored"-folder and pasted it in the "ms4w/gdalplugins"-folder and then restarted apache? And then everything worked fine? You are sure you haven't done anything elese? When I try this the apache server gives an erorr-message whether I try .mapfiles using oracle spatial data or shapefiles or anything else. Thank you again Rahkonen. Perhaps you or anybody out there has an idea what to do in my case. Thank you for your help. regards Daniel -------- Original-Nachricht -------- Datum: Wed, 14 Jun 2006 10:06:18 +0300 Von: Rahkonen Jukka An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] oracle spatial > Hello, > > I can say only that I had no problem in connecting to my Oracle 9i > database with MS4W installation. I did just the manouvres described in the > readme-file, and did not set any new environment variables. > My connection string is like: > > CONNECTIONTYPE ORACLESPATIAL > CONNECTION "USER/PASSWD at DB.WORLD " > DATA "GEOLOC FROM GIS_POLYGONS USING UNIQUE MSLINK" > > Have you tried to feed the SQL statement from the error message directly > to SQL-Plus? Do you get results then? Is your spatial table OK for > Mapserver? I do not know exactly what Mapserver needs, but for Geoserver there must > exist a numerical primary key, spatial index and a correct entry in > SDO_GEOM_METADATA. In my case if I can connect my data with Geoserver it is > available for Mapserver as well. > > Good luck, > > -Jukka Rahkonen- > > ________________________________ > > L?hett?j?: UMN MapServer Users List puolesta: Daniel Goetz > L?hetetty: ti 13.6.2006 17:00 > Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU > Aihe: Re: [UMN_MAPSERVER-USERS] oracle spatial > > > > Thanks Wim for your help, > > but the syntax in the command-line of the browser didn't bring the > solution. > > Roundup: > I have installed Oracle 10g Release 1 client on my computer. Then unzipped > the latest ms4w package. Did teh .dll swapping for oracle spacial support > like described in the redme-file of the ms4w-package. > Then I wrote a mapfile using the native oracle spatial support of the > mapserver (not the OGR-Support). > > MAP > NAME "Nbg" > #EXTENT 426666.49 466058.21 448321.44 490754.58 > EXTENT 433000 478000 434000 479000 > #SIZE 1400 1800 > SIZE 400 400 > SHAPEPATH "/ms4w/Apache/htdocs/raster/daten" > IMAGETYPE PNG > IMAGECOLOR 255 255 255 > UNITS METERS > STATUS ON > PROJECTION > "init=epsg:4326" > END > > WEB > IMAGEPATH "c:\ms4w\Apache\htdocs\raster\tmp\" > IMAGEURL "/raster/tmp/" > TEMPLATE "test_template.html" > END > > > LAYER > NAME "RWG" > CONNECTIONTYPE OracleSpatial > CONNECTION "username/password at service" > DATA "GEOM FROM RWG_TBL USING SRID 82032" > TYPE POINT > STATUS ON > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Punkte" > STYLE > OUTLINECOLOR 128 128 128 > COLOR 225 225 185 > END > END > END > > END > > Then I did some settings in the httpd.cong of the apache server like > described in the "Using oracle spatial" howto. But I don't really know whether > this was right. In the "ENV VARS" column I added the parameter: > > SetEnv ORACLE_HOME "c:/ora10gR1_client" > SetEnv TNS_ADMIN "c:/ora10gR1_client/NETWORK/ADMIN" > SetEnv PATH "c:/ora10gr1_client/bin" > > I saved this and restarted apache. Then I tried to map the oracle data via > umn-mapserver. Therefor I wrote the following in my browser: > > http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raster/test_os_native.map&layers=all&mode=map > > Then I get a error-message from apache: > > "Internal Server Error.The server encountered an internal error or > misconfiguration and was unable to complete your request." > > In the errorlog of the apache the following was logged: > > [Tue Jun 13 15:45:56 2006] [error] [client 127.0.0.1] Premature end of > script headers: mapserv.exe > > But I don't know what this means. But when I consciously do some mistake > in the DATA expression in the .mapfile (giving a tablename that does not > exist in the database) I get the following error-message from the mapserver > (and not the apache): > > msDrawMap(): Image handling error. Failed to draw layer named 'RWG'. > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: ORA-00942: > Tabelle oder View nicht vorhanden . Query statement: SELECT rownum, GEOM > FROM RWG_TBL.g WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, 82032, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(433000,478000,434000,479000) > ),'querytype=window') = 'TRUE' . Check your data statement. > > So you can see that mapserver is able to connect to the database, because > it says that the Table or View is not available. > The really astonishing is that after doing the .dll swapping for oracle > spatial support other mapserver-projects that have worked fine on my computer > before the swapping cause the same appache error-message. > Could anybody imagine what might be the problem? Might it be that > mapserver and the version of my oracle client (10g Release 1) are not compiled > against each other? Or is there another mistake I have done? > > Please help me. I would be very glad and thankful for any hint. Thank you > so much. > > > regards > > Daniel > > > -------- Original-Nachricht -------- > Datum: Mon, 12 Jun 2006 20:08:22 +0200 > Von: Wim Blanken > An: \'Daniel Goetz\' > Betreff: RE: [UMN_MAPSERVER-USERS] oracle spatial > > > Hello Daniel, > > > > I think your solution is simple. You have to specify &mode=map > > on the commandline to make it work. If you don't mapserver needs a > > template > > to show the results of the cgi-call. > > > > > http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raster/test_o > > s_ogr.map&layers=all&mode=map > > > > > > Regards > > > > Wim Blanken > > > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > Behalf Of Daniel Goetz > > Sent: Monday, June 12, 2006 1:54 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] oracle spatial > > > > Hi, > > > > I have the ms4w installed on my computer and I want to map geodata, > lying > > in > > a oracle spatial database on a server in the intranet, via umn > mapserver. > > Therefor I enabled OGR-OCI support described in the readme-file of the > > ms4w-package (I "installed" 10g oracle instant client on my computer, > set > > set windows environmet variable PATH and did the described .dll > swapping). > > > > Then I tested, whether OGR now supports the OCI with ogrinfo. Therefor I > > had > > to modify the syntax a littel bit to get information: I wrote "ogrinfo > > "OCI:username/password at host:port/service_name" instead of described on > the > > ogr-site/oracle spatial "OCI:username/password at service_name". The result > > was > > that ogrinfo listed me the relevant tables that contain geometric data. > > > > Then I tried to map the data via mapserver. Therefor I wrote the > following > > .map-file (therefor I correspond to the example given in the "Vector > Data > > Access-Reference-Guide" on the mapserver-site): > > > > MAP > > NAME "Oracle" > > EXTENT 426666.49 466058.21 448321.44 490754.58 > > SIZE 1400 1800 > > SHAPEPATH "/ms4w/Apache/htdocs/raster/daten" > > IMAGETYPE PNG > > IMAGECOLOR 255 255 255 > > UNITS METERS > > STATUS ON > > CONFIG "GDAL_DRIVER_PATH" "C:/ms4w/gdalplugins" > > > > WEB > > IMAGEPATH "c:\ms4w\Apache\htdocs\raster\tmp\" > > IMAGEURL "/raster/tmp/" > > TEMPLATE "test_template.html" > > END > > > > LAYER > > CONNECTIONTYPE OGR > > CONNECTION "OCI:username/password at service_name" > > DATA "RWG_TBS" > > NAME "RWG_TBS" > > TYPE POLYGON > > STATUS ON > > > > CLASS > > NAME "Flaeche" > > STYLE > > OUTLINECOLOR 128 128 128 > > COLOR 225 225 185 > > END > > END > > END > > END > > > > > > The template I wrote therefor is very simple: > > > > > > > > Erstes Beispiel zum UMN Mapserver > > > > > > > > Mapserver-Version auslesen:

[version]


> > Karte einbetten:

> >
> > > > > > > > > > And I tried to start mapping by writing the following in my browser: > > > > > http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raster/test_o > > s_ogr.map&layers=all& > > > > > > The result was, that mapserver brought the error-message: > > > > "mapserv(): Web application error. No template provided. " > > > > Then I tested some other mapserver-test-projects, for whom I know that > > they > > have worked properly on my computer before the mentioned .dll swapping > for > > OGR-OCI support. The result was the same: > > > > "mapserv(): Web application error. No template provided. " > > > > > > So I have three questions: > > > > How should mapserver know where the database is located without giving > him > > any information about the host-address and the port-number. Where can I > > provide this information for the mapserver. In the case of ogrinfo I did > > this by writing "OCI:username/password at host:port/service_name". In the > > .mpa-file example in the "Vector-Data-Reference-Guide" they say under > > CONECTION you should type "OCI:username/password at service_name". Where is > > the > > information about the location of the database? > > > > Second questions is: Is anything wrong with my .map-file, html-template > or > > the starting-command in the web-browser? > > > > Third: And why do the other mapserver projects, I tested before .dll > > swapping (for OGR-COI support), work anymore. Why do I always get the > > error-message "mapserv(): Web application error. No template provided." > > although I changed nothing on the .map-files, the template nor the > > command. > > > > I would be very pleased and hayppy and thankful if anybody would help me > > on > > my problem. This would really be very nice. Thank you so much for your > > endeavors. > > > > Regards > > > > Daniel > > > > > > -- > > > > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > > Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer > > > > > > > > -- > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.1.394 / Virus Database: 268.8.3/361 - Release Date: 6/11/2006 > > > > -- > > > "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail -- "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail From umberto.nicoletti at GMAIL.COM Wed Jun 14 01:12:06 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Wed, 14 Jun 2006 10:12:06 +0200 Subject: Anti Alias Problem In-Reply-To: <003b01c68f83$7d308f60$ac0aa8c0@testxp8b8211e7> Message-ID: On 6/14/06, Thomas Hammerlund wrote: > Thank you for your reply Steve. > > I'm running mapserver 4.8.3 and outputting jpegs via the gdal/jpeg driver. > I'm using the gdal driver because the gd/jpeg driver output progressive > encoded jpegs(which i couldn't use). > > Example layer: > LAYER > NAME l_koku_u > STATUS ON > TILEINDEX "ixs/shb/50000/l_koku_u_ix" > TILEITEM "location" > TYPE LINE > CLASSITEM Code > CLASS > MAXSCALE 337000 > MINSCALE 85001 > Name style1 > EXPRESSION 'l_bbbcd' > STYLE > COLOR 240 184 53 > WIDTH 1 > #ANTIALIAS TRUE > END > END > END > > I'm creating my image using perl mapscript. my mistake, the problem is not > with the fonts but with the lines. when I turn style antialiasing on for my > line layers perl throws an internal server error with no error message from > mapserver (or perl). > > The outputformat in my mapfile looks like this: > > OUTPUTFORMAT > NAME jpeg > DRIVER "GDAL/JPEG" > MIMETYPE "image/jpeg" > IMAGEMODE RGB > FORMATOPTION "QUALITY=100" > EXTENSION "jpg" > END > > Which antialias patch are you referring to? > This one (against gd-2.0.33): *** gd.c.orig Wed Jun 14 10:06:22 2006 --- gd.c Mon Jun 12 12:05:28 2006 *************** *** 3032,3037 **** --- 3032,3040 ---- static void gdImageSetAAPixelColor(gdImagePtr im, int x, int y, int color, int t) { int dr,dg,db,p,r,g,b; + if(x<0||y<0||x>=im->sx||y>=im->sy) { + return; + } p = gdImageGetPixel(im,x,y); /* TBB: we have to implement the dont_blend stuff to provide the full feature set of the old implementation */ or this one: http://lists.maptools.org/pipermail/ka-map-users/2006-March/001069.html The latter is probably better, as it uses a gd macro... HTH, Umberto > Thank you again, > Tom > > > ----- Original Message ----- > From: "Steve Lime" > To: ; > Sent: Wednesday, June 14, 2006 2:56 PM > Subject: Re: [UMN_MAPSERVER-USERS] Anti Alias Problem > > > > Hmmm... I'm suprised turning off style antialiasing would impact font > > antialiasing. > > They are totally unrelated. > > > > I guess we need a bit more information. What version of MapServer? Has the > > GD > > anti-aliasing patch been applied? What output image format? > > > > Steve > > > >>>> Thomas Hammerlund 06/13/06 1:03 AM >>> > > Hi Everyone, > > > > I've been looking for a solution to this, but haven't been successful so > > far > > so I'm hoping someone can help. > > > > I'm using Fedora 5, and everything I need is working great. The problem > > is > > that when I try the same data set on Fedora 4 or Red Hat Advanced Server, > > anti alias doesn't work. The problem can be resolved by commenting out > > the > > antialias line, but then it makes my font and lines look too choppy. Has > > anyone seen this? Does anyone know if this is a Linux or a Mapserver > > problem? > > > > Thank you for your help, > > Tom > > > > > > > From Jukka.Rahkonen at MMMTIKE.FI Wed Jun 14 02:24:22 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Wed, 14 Jun 2006 12:24:22 +0300 Subject: oracle spatial Message-ID: Hi, Yes, I made a test with a fresh installation and playing with those two files is really enough to make Oracle available for me. Switching back to the original libmap.dll does not effect the other layers, but Oracle layer disappears, naturally. Rename it, restart Apache, and it is back, even without closing the MapLab application in between. I don't have any idea why .dll swapping harms your old projects. -Jukka- -----Alkuper?inen viesti----- L?hett?j?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Puolesta Daniel Goetz L?hetetty: 14. kes?kuuta 2006 10:34 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: Re: [UMN_MAPSERVER-USERS] oracle spatial Thanks Rahkonen for your reply, you did the .dll swapping like described in the readme-file of the ms4w package and then just used the below mentioned connection string? That's all? But when I do this and test other .map-file porjects that have worked fine before the .dll swapping on my Computer (raster-data or shapefiles) I get an apache-error. In my opinion this means that after the .dll swapping my apache-server didn't work anymore the way it should. Again: you simplya have copied the "libmap.dll" in the "Apache/cgi-bin/ignored-libmap/oracle10g/"-folder and pasted it in the "Apache/cgi-bin"-folder and then copied the "ogr_OCI.dll" from the "ms4w/gdalplugins/ignored"-folder and pasted it in the "ms4w/gdalplugins"-folder and then restarted apache? And then everything worked fine? You are sure you haven't done anything elese? When I try this the apache server gives an erorr-message whether I try .mapfiles using oracle spatial data or shapefiles or anything else. Thank you again Rahkonen. Perhaps you or anybody out there has an idea what to do in my case. Thank you for your help. regards Daniel -------- Original-Nachricht -------- Datum: Wed, 14 Jun 2006 10:06:18 +0300 Von: Rahkonen Jukka An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] oracle spatial > Hello, > > I can say only that I had no problem in connecting to my Oracle 9i > database with MS4W installation. I did just the manouvres described in > the readme-file, and did not set any new environment variables. > My connection string is like: > > CONNECTIONTYPE ORACLESPATIAL > CONNECTION "USER/PASSWD at DB.WORLD" > DATA "GEOLOC FROM GIS_POLYGONS USING UNIQUE MSLINK" > > Have you tried to feed the SQL statement from the error message > directly to SQL-Plus? Do you get results then? Is your spatial table > OK for Mapserver? I do not know exactly what Mapserver needs, but for > Geoserver there must exist a numerical primary key, spatial index and > a correct entry in SDO_GEOM_METADATA. In my case if I can connect my > data with Geoserver it is available for Mapserver as well. > > Good luck, > > -Jukka Rahkonen- > > ________________________________ > > L?hett?j?: UMN MapServer Users List puolesta: Daniel Goetz > L?hetetty: ti 13.6.2006 17:00 > Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU > Aihe: Re: [UMN_MAPSERVER-USERS] oracle spatial > > > > Thanks Wim for your help, > > but the syntax in the command-line of the browser didn't bring the > solution. > > Roundup: > I have installed Oracle 10g Release 1 client on my computer. Then > unzipped the latest ms4w package. Did teh .dll swapping for oracle > spacial support like described in the redme-file of the ms4w-package. > Then I wrote a mapfile using the native oracle spatial support of the > mapserver (not the OGR-Support). > > MAP > NAME "Nbg" > #EXTENT 426666.49 466058.21 448321.44 490754.58 EXTENT 433000 478000 > 434000 479000 #SIZE 1400 1800 SIZE 400 400 SHAPEPATH > "/ms4w/Apache/htdocs/raster/daten" > IMAGETYPE PNG > IMAGECOLOR 255 255 255 > UNITS METERS > STATUS ON > PROJECTION > "init=epsg:4326" > END > > WEB > IMAGEPATH "c:\ms4w\Apache\htdocs\raster\tmp\" > IMAGEURL "/raster/tmp/" > TEMPLATE "test_template.html" > END > > > LAYER > NAME "RWG" > CONNECTIONTYPE OracleSpatial > CONNECTION "username/password at service" > DATA "GEOM FROM RWG_TBL USING SRID 82032" > TYPE POINT > STATUS ON > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Punkte" > STYLE > OUTLINECOLOR 128 128 128 > COLOR 225 225 185 > END > END > END > > END > > Then I did some settings in the httpd.cong of the apache server like > described in the "Using oracle spatial" howto. But I don't really know > whether this was right. In the "ENV VARS" column I added the parameter: > > SetEnv ORACLE_HOME "c:/ora10gR1_client" > SetEnv TNS_ADMIN "c:/ora10gR1_client/NETWORK/ADMIN" > SetEnv PATH "c:/ora10gr1_client/bin" > > I saved this and restarted apache. Then I tried to map the oracle data > via umn-mapserver. Therefor I wrote the following in my browser: > > http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raster/ > test_os_native.map&layers=all&mode=map > > Then I get a error-message from apache: > > "Internal Server Error.The server encountered an internal error or > misconfiguration and was unable to complete your request." > > In the errorlog of the apache the following was logged: > > [Tue Jun 13 15:45:56 2006] [error] [client 127.0.0.1] Premature end of > script headers: mapserv.exe > > But I don't know what this means. But when I consciously do some > mistake in the DATA expression in the .mapfile (giving a tablename > that does not exist in the database) I get the following error-message > from the mapserver (and not the apache): > > msDrawMap(): Image handling error. Failed to draw layer named 'RWG'. > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: ORA-00942: > Tabelle oder View nicht vorhanden . Query statement: SELECT rownum, > GEOM FROM RWG_TBL.g WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, > 82032, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(4330 > 00,478000,434000,479000) > ),'querytype=window') = 'TRUE' . Check your data statement. > > So you can see that mapserver is able to connect to the database, > because it says that the Table or View is not available. > The really astonishing is that after doing the .dll swapping for > oracle spatial support other mapserver-projects that have worked fine > on my computer before the swapping cause the same appache error-message. > Could anybody imagine what might be the problem? Might it be that > mapserver and the version of my oracle client (10g Release 1) are not > compiled against each other? Or is there another mistake I have done? > > Please help me. I would be very glad and thankful for any hint. Thank > you so much. > > > regards > > Daniel > > > -------- Original-Nachricht -------- > Datum: Mon, 12 Jun 2006 20:08:22 +0200 > Von: Wim Blanken > An: \'Daniel Goetz\' > Betreff: RE: [UMN_MAPSERVER-USERS] oracle spatial > > > Hello Daniel, > > > > I think your solution is simple. You have to specify &mode=map on > > the commandline to make it work. If you don't mapserver needs a > > template to show the results of the cgi-call. > > > > > http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raster/ > test_o > > s_ogr.map&layers=all&mode=map > > > > > > Regards > > > > Wim Blanken > > > > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Daniel Goetz > > Sent: Monday, June 12, 2006 1:54 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] oracle spatial > > > > Hi, > > > > I have the ms4w installed on my computer and I want to map geodata, > lying > > in > > a oracle spatial database on a server in the intranet, via umn > mapserver. > > Therefor I enabled OGR-OCI support described in the readme-file of > > the ms4w-package (I "installed" 10g oracle instant client on my > > computer, > set > > set windows environmet variable PATH and did the described .dll > swapping). > > > > Then I tested, whether OGR now supports the OCI with ogrinfo. > > Therefor I had to modify the syntax a littel bit to get information: > > I wrote "ogrinfo "OCI:username/password at host:port/service_name" > > instead of described on > the > > ogr-site/oracle spatial "OCI:username/password at service_name". The > > result was that ogrinfo listed me the relevant tables that contain > > geometric data. > > > > Then I tried to map the data via mapserver. Therefor I wrote the > following > > .map-file (therefor I correspond to the example given in the "Vector > Data > > Access-Reference-Guide" on the mapserver-site): > > > > MAP > > NAME "Oracle" > > EXTENT 426666.49 466058.21 448321.44 490754.58 SIZE 1400 1800 > > SHAPEPATH "/ms4w/Apache/htdocs/raster/daten" > > IMAGETYPE PNG > > IMAGECOLOR 255 255 255 > > UNITS METERS > > STATUS ON > > CONFIG "GDAL_DRIVER_PATH" "C:/ms4w/gdalplugins" > > > > WEB > > IMAGEPATH "c:\ms4w\Apache\htdocs\raster\tmp\" > > IMAGEURL "/raster/tmp/" > > TEMPLATE "test_template.html" > > END > > > > LAYER > > CONNECTIONTYPE OGR > > CONNECTION "OCI:username/password at service_name" > > DATA "RWG_TBS" > > NAME "RWG_TBS" > > TYPE POLYGON > > STATUS ON > > > > CLASS > > NAME "Flaeche" > > STYLE > > OUTLINECOLOR 128 128 128 > > COLOR 225 225 185 > > END > > END > > END > > END > > > > > > The template I wrote therefor is very simple: > > > > > > > > Erstes Beispiel zum UMN Mapserver > > > > > > > > Mapserver-Version auslesen:

[version]


> > Karte einbetten:

> >
> > > > > > > > > > And I tried to start mapping by writing the following in my browser: > > > > > http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raster/ > test_o > > s_ogr.map&layers=all& > > > > > > The result was, that mapserver brought the error-message: > > > > "mapserv(): Web application error. No template provided. " > > > > Then I tested some other mapserver-test-projects, for whom I know > > that they have worked properly on my computer before the mentioned > > .dll swapping > for > > OGR-OCI support. The result was the same: > > > > "mapserv(): Web application error. No template provided. " > > > > > > So I have three questions: > > > > How should mapserver know where the database is located without > > giving > him > > any information about the host-address and the port-number. Where > > can I provide this information for the mapserver. In the case of > > ogrinfo I did this by writing > > "OCI:username/password at host:port/service_name". In the .mpa-file > > example in the "Vector-Data-Reference-Guide" they say under > > CONECTION you should type "OCI:username/password at service_name". > > Where is the information about the location of the database? > > > > Second questions is: Is anything wrong with my .map-file, > > html-template > or > > the starting-command in the web-browser? > > > > Third: And why do the other mapserver projects, I tested before .dll > > swapping (for OGR-COI support), work anymore. Why do I always get > > the error-message "mapserv(): Web application error. No template provided." > > although I changed nothing on the .map-files, the template nor the > > command. > > > > I would be very pleased and hayppy and thankful if anybody would > > help me on my problem. This would really be very nice. Thank you so > > much for your endeavors. > > > > Regards > > > > Daniel > > > > > > -- > > > > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > > Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer > > > > > > > > -- > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.1.394 / Virus Database: 268.8.3/361 - Release Date: > > 6/11/2006 > > > > -- > > > "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail From madprof at GMX.CH Wed Jun 14 03:06:54 2006 From: madprof at GMX.CH (Daniel Goetz) Date: Wed, 14 Jun 2006 12:06:54 +0200 Subject: oracle spatial In-Reply-To: Message-ID: Jukka, thank you again for your help and your tests. Now I have a general question: Is it not possible to map shapefile or raster data after swapping the .dll-files to get oracle spatial support. Do I have to paste the "old" libmap.dll in the cgi-bin folder before mapping shapefile (or other formats) again? I thought it is possible to map oracle spatial data and other file-formats (e.g. shapefiles) at the same time? Am I wrong with this assumption? Thank you for your answer and your help. May Thanks. regards Daniel -------- Original-Nachricht -------- Datum: Wed, 14 Jun 2006 12:24:22 +0300 Von: Rahkonen Jukka An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] oracle spatial > Hi, > > Yes, I made a test with a fresh installation and playing with those two > files is really enough to make Oracle available for me. Switching back to the > original libmap.dll does not effect the other layers, but Oracle layer > disappears, naturally. Rename it, restart Apache, and it is back, even without > closing the MapLab application in between. I don't have any idea why .dll > swapping harms your old projects. > > -Jukka- > > > > > -----Alkuper?inen viesti----- > L?hett?j?: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Puolesta Daniel Goetz > L?hetetty: 14. kes?kuuta 2006 10:34 > Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU > Aihe: Re: [UMN_MAPSERVER-USERS] oracle spatial > > Thanks Rahkonen for your reply, > > you did the .dll swapping like described in the readme-file of the ms4w > package and then just used the below mentioned connection string? That's all? > But when I do this and test other .map-file porjects that have worked fine > before the .dll swapping on my Computer (raster-data or shapefiles) I get > an apache-error. In my opinion this means that after the .dll swapping my > apache-server didn't work anymore the way it should. > > Again: you simplya have copied the "libmap.dll" in the > "Apache/cgi-bin/ignored-libmap/oracle10g/"-folder and pasted it in the "Apache/cgi-bin"-folder > and then copied the "ogr_OCI.dll" from the > "ms4w/gdalplugins/ignored"-folder and pasted it in the "ms4w/gdalplugins"-folder and then restarted > apache? And then everything worked fine? You are sure you haven't done anything > elese? > > When I try this the apache server gives an erorr-message whether I try > .mapfiles using oracle spatial data or shapefiles or anything else. > > Thank you again Rahkonen. Perhaps you or anybody out there has an idea > what to do in my case. Thank you for your help. > > regards > > Daniel > -------- Original-Nachricht -------- > Datum: Wed, 14 Jun 2006 10:06:18 +0300 > Von: Rahkonen Jukka > An: MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: Re: [UMN_MAPSERVER-USERS] oracle spatial > > > Hello, > > > > I can say only that I had no problem in connecting to my Oracle 9i > > database with MS4W installation. I did just the manouvres described in > > the readme-file, and did not set any new environment variables. > > My connection string is like: > > > > CONNECTIONTYPE ORACLESPATIAL > > CONNECTION "USER/PASSWD at DB.WORLD" > > DATA "GEOLOC FROM GIS_POLYGONS USING UNIQUE MSLINK" > > > > Have you tried to feed the SQL statement from the error message > > directly to SQL-Plus? Do you get results then? Is your spatial table > > OK for Mapserver? I do not know exactly what Mapserver needs, but for > > Geoserver there must exist a numerical primary key, spatial index and > > a correct entry in SDO_GEOM_METADATA. In my case if I can connect my > > data with Geoserver it is available for Mapserver as well. > > > > Good luck, > > > > -Jukka Rahkonen- > > > > ________________________________ > > > > L?hett?j?: UMN MapServer Users List puolesta: Daniel Goetz > > L?hetetty: ti 13.6.2006 17:00 > > Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU > > Aihe: Re: [UMN_MAPSERVER-USERS] oracle spatial > > > > > > > > Thanks Wim for your help, > > > > but the syntax in the command-line of the browser didn't bring the > > solution. > > > > Roundup: > > I have installed Oracle 10g Release 1 client on my computer. Then > > unzipped the latest ms4w package. Did teh .dll swapping for oracle > > spacial support like described in the redme-file of the ms4w-package. > > Then I wrote a mapfile using the native oracle spatial support of the > > mapserver (not the OGR-Support). > > > > MAP > > NAME "Nbg" > > #EXTENT 426666.49 466058.21 448321.44 490754.58 EXTENT 433000 478000 > > 434000 479000 #SIZE 1400 1800 SIZE 400 400 SHAPEPATH > > "/ms4w/Apache/htdocs/raster/daten" > > IMAGETYPE PNG > > IMAGECOLOR 255 255 255 > > UNITS METERS > > STATUS ON > > PROJECTION > > "init=epsg:4326" > > END > > > > WEB > > IMAGEPATH "c:\ms4w\Apache\htdocs\raster\tmp\" > > IMAGEURL "/raster/tmp/" > > TEMPLATE "test_template.html" > > END > > > > > > LAYER > > NAME "RWG" > > CONNECTIONTYPE OracleSpatial > > CONNECTION "username/password at service" > > DATA "GEOM FROM RWG_TBL USING SRID 82032" > > TYPE POINT > > STATUS ON > > PROJECTION > > "init=epsg:4326" > > END > > CLASS > > NAME "Punkte" > > STYLE > > OUTLINECOLOR 128 128 128 > > COLOR 225 225 185 > > END > > END > > END > > > > END > > > > Then I did some settings in the httpd.cong of the apache server like > > described in the "Using oracle spatial" howto. But I don't really know > > whether this was right. In the "ENV VARS" column I added the parameter: > > > > SetEnv ORACLE_HOME "c:/ora10gR1_client" > > SetEnv TNS_ADMIN "c:/ora10gR1_client/NETWORK/ADMIN" > > SetEnv PATH "c:/ora10gr1_client/bin" > > > > I saved this and restarted apache. Then I tried to map the oracle data > > via umn-mapserver. Therefor I wrote the following in my browser: > > > > http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raster/ > > test_os_native.map&layers=all&mode=map > > > > Then I get a error-message from apache: > > > > "Internal Server Error.The server encountered an internal error or > > misconfiguration and was unable to complete your request." > > > > In the errorlog of the apache the following was logged: > > > > [Tue Jun 13 15:45:56 2006] [error] [client 127.0.0.1] Premature end of > > script headers: mapserv.exe > > > > But I don't know what this means. But when I consciously do some > > mistake in the DATA expression in the .mapfile (giving a tablename > > that does not exist in the database) I get the following error-message > > from the mapserver (and not the apache): > > > > msDrawMap(): Image handling error. Failed to draw layer named 'RWG'. > > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: > ORA-00942: > > Tabelle oder View nicht vorhanden . Query statement: SELECT rownum, > > GEOM FROM RWG_TBL.g WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, > > 82032, > > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(4330 > > 00,478000,434000,479000) > > ),'querytype=window') = 'TRUE' . Check your data statement. > > > > So you can see that mapserver is able to connect to the database, > > because it says that the Table or View is not available. > > The really astonishing is that after doing the .dll swapping for > > oracle spatial support other mapserver-projects that have worked fine > > on my computer before the swapping cause the same appache error-message. > > Could anybody imagine what might be the problem? Might it be that > > mapserver and the version of my oracle client (10g Release 1) are not > > compiled against each other? Or is there another mistake I have done? > > > > Please help me. I would be very glad and thankful for any hint. Thank > > you so much. > > > > > > regards > > > > Daniel > > > > > > -------- Original-Nachricht -------- > > Datum: Mon, 12 Jun 2006 20:08:22 +0200 > > Von: Wim Blanken > > An: \'Daniel Goetz\' > > Betreff: RE: [UMN_MAPSERVER-USERS] oracle spatial > > > > > Hello Daniel, > > > > > > I think your solution is simple. You have to specify &mode=map on > > > the commandline to make it work. If you don't mapserver needs a > > > template to show the results of the cgi-call. > > > > > > > > http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raster/ > > test_o > > > s_ogr.map&layers=all&mode=map > > > > > > > > > Regards > > > > > > Wim Blanken > > > > > > > > > -----Original Message----- > > > From: UMN MapServer Users List > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Daniel Goetz > > > Sent: Monday, June 12, 2006 1:54 PM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: [UMN_MAPSERVER-USERS] oracle spatial > > > > > > Hi, > > > > > > I have the ms4w installed on my computer and I want to map geodata, > > lying > > > in > > > a oracle spatial database on a server in the intranet, via umn > > mapserver. > > > Therefor I enabled OGR-OCI support described in the readme-file of > > > the ms4w-package (I "installed" 10g oracle instant client on my > > > computer, > > set > > > set windows environmet variable PATH and did the described .dll > > swapping). > > > > > > Then I tested, whether OGR now supports the OCI with ogrinfo. > > > Therefor I had to modify the syntax a littel bit to get information: > > > I wrote "ogrinfo "OCI:username/password at host:port/service_name" > > > instead of described on > > the > > > ogr-site/oracle spatial "OCI:username/password at service_name". The > > > result was that ogrinfo listed me the relevant tables that contain > > > geometric data. > > > > > > Then I tried to map the data via mapserver. Therefor I wrote the > > following > > > .map-file (therefor I correspond to the example given in the "Vector > > Data > > > Access-Reference-Guide" on the mapserver-site): > > > > > > MAP > > > NAME "Oracle" > > > EXTENT 426666.49 466058.21 448321.44 490754.58 SIZE 1400 1800 > > > SHAPEPATH "/ms4w/Apache/htdocs/raster/daten" > > > IMAGETYPE PNG > > > IMAGECOLOR 255 255 255 > > > UNITS METERS > > > STATUS ON > > > CONFIG "GDAL_DRIVER_PATH" "C:/ms4w/gdalplugins" > > > > > > WEB > > > IMAGEPATH "c:\ms4w\Apache\htdocs\raster\tmp\" > > > IMAGEURL "/raster/tmp/" > > > TEMPLATE "test_template.html" > > > END > > > > > > LAYER > > > CONNECTIONTYPE OGR > > > CONNECTION "OCI:username/password at service_name" > > > DATA "RWG_TBS" > > > NAME "RWG_TBS" > > > TYPE POLYGON > > > STATUS ON > > > > > > CLASS > > > NAME "Flaeche" > > > STYLE > > > OUTLINECOLOR 128 128 128 > > > COLOR 225 225 185 > > > END > > > END > > > END > > > END > > > > > > > > > The template I wrote therefor is very simple: > > > > > > > > > > > > Erstes Beispiel zum UMN Mapserver > > > > > > > > > > > > Mapserver-Version auslesen:

[version]


> > > Karte einbetten:

> > >
> > > > > > > > > > > > > > > And I tried to start mapping by writing the following in my browser: > > > > > > > > http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raster/ > > test_o > > > s_ogr.map&layers=all& > > > > > > > > > The result was, that mapserver brought the error-message: > > > > > > "mapserv(): Web application error. No template provided. " > > > > > > Then I tested some other mapserver-test-projects, for whom I know > > > that they have worked properly on my computer before the mentioned > > > .dll swapping > > for > > > OGR-OCI support. The result was the same: > > > > > > "mapserv(): Web application error. No template provided. " > > > > > > > > > So I have three questions: > > > > > > How should mapserver know where the database is located without > > > giving > > him > > > any information about the host-address and the port-number. Where > > > can I provide this information for the mapserver. In the case of > > > ogrinfo I did this by writing > > > "OCI:username/password at host:port/service_name". In the .mpa-file > > > example in the "Vector-Data-Reference-Guide" they say under > > > CONECTION you should type "OCI:username/password at service_name". > > > Where is the information about the location of the database? > > > > > > Second questions is: Is anything wrong with my .map-file, > > > html-template > > or > > > the starting-command in the web-browser? > > > > > > Third: And why do the other mapserver projects, I tested before .dll > > > swapping (for OGR-COI support), work anymore. Why do I always get > > > the error-message "mapserv(): Web application error. No template > provided." > > > although I changed nothing on the .map-files, the template nor the > > > command. > > > > > > I would be very pleased and hayppy and thankful if anybody would > > > help me on my problem. This would really be very nice. Thank you so > > > much for your endeavors. > > > > > > Regards > > > > > > Daniel > > > > > > > > > -- > > > > > > > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > > > Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer > > > > > > > > > > > > -- > > > No virus found in this incoming message. > > > Checked by AVG Free Edition. > > > Version: 7.1.394 / Virus Database: 268.8.3/361 - Release Date: > > > 6/11/2006 > > > > > > > -- > > > > > > "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... > > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail > > -- > > > "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail -- "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail From Jukka.Rahkonen at MMMTIKE.FI Wed Jun 14 03:25:58 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Wed, 14 Jun 2006 13:25:58 +0300 Subject: oracle spatial Message-ID: Hi, There will be no problem with other data sources once you get it running. Try to eliminate one problem at a time. For example, if you should have a spare PC available, you could make a clean MS4W install. Try some shapefile and raster layers to see that they work before changing those two system files. After the change your mapfile should still work. After that you may add your Oracle layer. Did you already try the unsuccessful SQL directly? SELECT rownum, GEOM FROM RWG_TBL.g WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, 82032,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3), MDSYS.SDO_ORDINATE_ARRAY(433000,478000,434000,479000)), 'querytype=window') = 'TRUE' -Jukka- -----Alkuper?inen viesti----- L?hett?j?: Daniel Goetz [mailto:madprof at gmx.ch] L?hetetty: 14. kes?kuuta 2006 13:07 Vastaanottaja: Rahkonen Jukka; MAPSERVER-USERS at LISTS.UMN.EDU Aihe: Re: Re: [UMN_MAPSERVER-USERS] oracle spatial Jukka, thank you again for your help and your tests. Now I have a general question: Is it not possible to map shapefile or raster data after swapping the .dll-files to get oracle spatial support. Do I have to paste the "old" libmap.dll in the cgi-bin folder before mapping shapefile (or other formats) again? I thought it is possible to map oracle spatial data and other file-formats (e.g. shapefiles) at the same time? Am I wrong with this assumption? Thank you for your answer and your help. May Thanks. regards Daniel -------- Original-Nachricht -------- Datum: Wed, 14 Jun 2006 12:24:22 +0300 Von: Rahkonen Jukka An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] oracle spatial > Hi, > > Yes, I made a test with a fresh installation and playing with those > two files is really enough to make Oracle available for me. Switching > back to the original libmap.dll does not effect the other layers, but > Oracle layer disappears, naturally. Rename it, restart Apache, and it > is back, even without closing the MapLab application in between. I > don't have any idea why .dll swapping harms your old projects. > > -Jukka- > > > > > -----Alkuper?inen viesti----- > L?hett?j?: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Puolesta Daniel Goetz > L?hetetty: 14. kes?kuuta 2006 10:34 > Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU > Aihe: Re: [UMN_MAPSERVER-USERS] oracle spatial > > Thanks Rahkonen for your reply, > > you did the .dll swapping like described in the readme-file of the > ms4w package and then just used the below mentioned connection string? That's all? > But when I do this and test other .map-file porjects that have worked > fine before the .dll swapping on my Computer (raster-data or > shapefiles) I get an apache-error. In my opinion this means that after > the .dll swapping my apache-server didn't work anymore the way it should. > > Again: you simplya have copied the "libmap.dll" in the > "Apache/cgi-bin/ignored-libmap/oracle10g/"-folder and pasted it in the > "Apache/cgi-bin"-folder and then copied the "ogr_OCI.dll" from the > "ms4w/gdalplugins/ignored"-folder and pasted it in the > "ms4w/gdalplugins"-folder and then restarted apache? And then > everything worked fine? You are sure you haven't done anything elese? > > When I try this the apache server gives an erorr-message whether I try > .mapfiles using oracle spatial data or shapefiles or anything else. > > Thank you again Rahkonen. Perhaps you or anybody out there has an idea > what to do in my case. Thank you for your help. > > regards > > Daniel > -------- Original-Nachricht -------- > Datum: Wed, 14 Jun 2006 10:06:18 +0300 > Von: Rahkonen Jukka > An: MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: Re: [UMN_MAPSERVER-USERS] oracle spatial > > > Hello, > > > > I can say only that I had no problem in connecting to my Oracle 9i > > database with MS4W installation. I did just the manouvres described > > in the readme-file, and did not set any new environment variables. > > My connection string is like: > > > > CONNECTIONTYPE ORACLESPATIAL > > CONNECTION "USER/PASSWD at DB.WORLD" > > DATA "GEOLOC FROM GIS_POLYGONS USING UNIQUE MSLINK" > > > > Have you tried to feed the SQL statement from the error message > > directly to SQL-Plus? Do you get results then? Is your spatial > > table OK for Mapserver? I do not know exactly what Mapserver needs, > > but for Geoserver there must exist a numerical primary key, spatial > > index and a correct entry in SDO_GEOM_METADATA. In my case if I can > > connect my data with Geoserver it is available for Mapserver as well. > > > > Good luck, > > > > -Jukka Rahkonen- > > > > ________________________________ > > > > L?hett?j?: UMN MapServer Users List puolesta: Daniel Goetz > > L?hetetty: ti 13.6.2006 17:00 > > Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU > > Aihe: Re: [UMN_MAPSERVER-USERS] oracle spatial > > > > > > > > Thanks Wim for your help, > > > > but the syntax in the command-line of the browser didn't bring the > > solution. > > > > Roundup: > > I have installed Oracle 10g Release 1 client on my computer. Then > > unzipped the latest ms4w package. Did teh .dll swapping for oracle > > spacial support like described in the redme-file of the ms4w-package. > > Then I wrote a mapfile using the native oracle spatial support of > > the mapserver (not the OGR-Support). > > > > MAP > > NAME "Nbg" > > #EXTENT 426666.49 466058.21 448321.44 490754.58 EXTENT 433000 478000 > > 434000 479000 #SIZE 1400 1800 SIZE 400 400 SHAPEPATH > > "/ms4w/Apache/htdocs/raster/daten" > > IMAGETYPE PNG > > IMAGECOLOR 255 255 255 > > UNITS METERS > > STATUS ON > > PROJECTION > > "init=epsg:4326" > > END > > > > WEB > > IMAGEPATH "c:\ms4w\Apache\htdocs\raster\tmp\" > > IMAGEURL "/raster/tmp/" > > TEMPLATE "test_template.html" > > END > > > > > > LAYER > > NAME "RWG" > > CONNECTIONTYPE OracleSpatial > > CONNECTION "username/password at service" > > DATA "GEOM FROM RWG_TBL USING SRID 82032" > > TYPE POINT > > STATUS ON > > PROJECTION > > "init=epsg:4326" > > END > > CLASS > > NAME "Punkte" > > STYLE > > OUTLINECOLOR 128 128 128 > > COLOR 225 225 185 > > END > > END > > END > > > > END > > > > Then I did some settings in the httpd.cong of the apache server like > > described in the "Using oracle spatial" howto. But I don't really > > know whether this was right. In the "ENV VARS" column I added the parameter: > > > > SetEnv ORACLE_HOME "c:/ora10gR1_client" > > SetEnv TNS_ADMIN "c:/ora10gR1_client/NETWORK/ADMIN" > > SetEnv PATH "c:/ora10gr1_client/bin" > > > > I saved this and restarted apache. Then I tried to map the oracle > > data via umn-mapserver. Therefor I wrote the following in my browser: > > > > http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raste > > r/ test_os_native.map&layers=all&mode=map > > > > Then I get a error-message from apache: > > > > "Internal Server Error.The server encountered an internal error or > > misconfiguration and was unable to complete your request." > > > > In the errorlog of the apache the following was logged: > > > > [Tue Jun 13 15:45:56 2006] [error] [client 127.0.0.1] Premature end > > of script headers: mapserv.exe > > > > But I don't know what this means. But when I consciously do some > > mistake in the DATA expression in the .mapfile (giving a tablename > > that does not exist in the database) I get the following > > error-message from the mapserver (and not the apache): > > > > msDrawMap(): Image handling error. Failed to draw layer named 'RWG'. > > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: > ORA-00942: > > Tabelle oder View nicht vorhanden . Query statement: SELECT rownum, > > GEOM FROM RWG_TBL.g WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, > > 82032, > > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(43 > > 30 > > 00,478000,434000,479000) > > ),'querytype=window') = 'TRUE' . Check your data statement. > > > > So you can see that mapserver is able to connect to the database, > > because it says that the Table or View is not available. > > The really astonishing is that after doing the .dll swapping for > > oracle spatial support other mapserver-projects that have worked > > fine on my computer before the swapping cause the same appache error-message. > > Could anybody imagine what might be the problem? Might it be that > > mapserver and the version of my oracle client (10g Release 1) are > > not compiled against each other? Or is there another mistake I have done? > > > > Please help me. I would be very glad and thankful for any hint. > > Thank you so much. > > > > > > regards > > > > Daniel > > > > > > -------- Original-Nachricht -------- > > Datum: Mon, 12 Jun 2006 20:08:22 +0200 > > Von: Wim Blanken > > An: \'Daniel Goetz\' > > Betreff: RE: [UMN_MAPSERVER-USERS] oracle spatial > > > > > Hello Daniel, > > > > > > I think your solution is simple. You have to specify &mode=map on > > > the commandline to make it work. If you don't mapserver needs a > > > template to show the results of the cgi-call. > > > > > > > > http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raste > > r/ > > test_o > > > s_ogr.map&layers=all&mode=map > > > > > > > > > Regards > > > > > > Wim Blanken > > > > > > > > > -----Original Message----- > > > From: UMN MapServer Users List > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Daniel Goetz > > > Sent: Monday, June 12, 2006 1:54 PM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: [UMN_MAPSERVER-USERS] oracle spatial > > > > > > Hi, > > > > > > I have the ms4w installed on my computer and I want to map > > > geodata, > > lying > > > in > > > a oracle spatial database on a server in the intranet, via umn > > mapserver. > > > Therefor I enabled OGR-OCI support described in the readme-file of > > > the ms4w-package (I "installed" 10g oracle instant client on my > > > computer, > > set > > > set windows environmet variable PATH and did the described .dll > > swapping). > > > > > > Then I tested, whether OGR now supports the OCI with ogrinfo. > > > Therefor I had to modify the syntax a littel bit to get information: > > > I wrote "ogrinfo "OCI:username/password at host:port/service_name" > > > instead of described on > > the > > > ogr-site/oracle spatial "OCI:username/password at service_name". The > > > result was that ogrinfo listed me the relevant tables that contain > > > geometric data. > > > > > > Then I tried to map the data via mapserver. Therefor I wrote the > > following > > > .map-file (therefor I correspond to the example given in the > > > "Vector > > Data > > > Access-Reference-Guide" on the mapserver-site): > > > > > > MAP > > > NAME "Oracle" > > > EXTENT 426666.49 466058.21 448321.44 490754.58 SIZE 1400 1800 > > > SHAPEPATH "/ms4w/Apache/htdocs/raster/daten" > > > IMAGETYPE PNG > > > IMAGECOLOR 255 255 255 > > > UNITS METERS > > > STATUS ON > > > CONFIG "GDAL_DRIVER_PATH" "C:/ms4w/gdalplugins" > > > > > > WEB > > > IMAGEPATH "c:\ms4w\Apache\htdocs\raster\tmp\" > > > IMAGEURL "/raster/tmp/" > > > TEMPLATE "test_template.html" > > > END > > > > > > LAYER > > > CONNECTIONTYPE OGR > > > CONNECTION "OCI:username/password at service_name" > > > DATA "RWG_TBS" > > > NAME "RWG_TBS" > > > TYPE POLYGON > > > STATUS ON > > > > > > CLASS > > > NAME "Flaeche" > > > STYLE > > > OUTLINECOLOR 128 128 128 > > > COLOR 225 225 185 > > > END > > > END > > > END > > > END > > > > > > > > > The template I wrote therefor is very simple: > > > > > > > > > > > > Erstes Beispiel zum UMN Mapserver > > > > > > > > > > > > Mapserver-Version auslesen:

[version]


> > > Karte einbetten:

> > >
> > > > > > > > > > > > > > > And I tried to start mapping by writing the following in my browser: > > > > > > > > http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raste > > r/ > > test_o > > > s_ogr.map&layers=all& > > > > > > > > > The result was, that mapserver brought the error-message: > > > > > > "mapserv(): Web application error. No template provided. " > > > > > > Then I tested some other mapserver-test-projects, for whom I know > > > that they have worked properly on my computer before the mentioned > > > .dll swapping > > for > > > OGR-OCI support. The result was the same: > > > > > > "mapserv(): Web application error. No template provided. " > > > > > > > > > So I have three questions: > > > > > > How should mapserver know where the database is located without > > > giving > > him > > > any information about the host-address and the port-number. Where > > > can I provide this information for the mapserver. In the case of > > > ogrinfo I did this by writing > > > "OCI:username/password at host:port/service_name". In the .mpa-file > > > example in the "Vector-Data-Reference-Guide" they say under > > > CONECTION you should type "OCI:username/password at service_name". > > > Where is the information about the location of the database? > > > > > > Second questions is: Is anything wrong with my .map-file, > > > html-template > > or > > > the starting-command in the web-browser? > > > > > > Third: And why do the other mapserver projects, I tested before > > > .dll swapping (for OGR-COI support), work anymore. Why do I always > > > get the error-message "mapserv(): Web application error. No > > > template > provided." > > > although I changed nothing on the .map-files, the template nor the > > > command. > > > > > > I would be very pleased and hayppy and thankful if anybody would > > > help me on my problem. This would really be very nice. Thank you > > > so much for your endeavors. > > > > > > Regards > > > > > > Daniel > > > > > > > > > -- > > > > > > > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > > > Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer > > > > > > > > > > > > -- > > > No virus found in this incoming message. > > > Checked by AVG Free Edition. > > > Version: 7.1.394 / Virus Database: 268.8.3/361 - Release Date: > > > 6/11/2006 > > > > > > > -- > > > > > > "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... > > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail > > -- > > > "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail From madprof at GMX.CH Wed Jun 14 04:01:36 2006 From: madprof at GMX.CH (Daniel Goetz) Date: Wed, 14 Jun 2006 13:01:36 +0200 Subject: oracle spatial In-Reply-To: Message-ID: Hi Jukka, thank you again for your help. You think it should be possible to map differnt file-formats (shapefiles, oracle spatial, raster-data, etc.) at the same time even if you have changed the .dll files for orcale support? The suggestions you made in your e-mail, that I should test a new, "untouched" installation of ms4w on another computer, i have already tested. I installed ms4w, tested some shapfiles and raster data and they worked. then I did the .dll swapping and neither the oracledata nor other file-formats work. I always get an apache-error-message. except for I point to a table that does not exist in the database in the DATA-experssion of the mapfile. then I get the mapserver-error-message you mentioned in your last email. And yes, I testes the unsuccessful SQL (correcting the consciously wrong tablename_experssion) and it workes fine. Perhaps you can email me your mapfile, in which you point to an oracle spatial database. Perhaps I do a mistake in the mypfile. Would be very nice. Thank you for your endeavor and your time and your help. regards Daniel -------- Original-Nachricht -------- Datum: Wed, 14 Jun 2006 13:25:58 +0300 Von: Rahkonen Jukka An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] oracle spatial > Hi, > > There will be no problem with other data sources once you get it running. > Try to eliminate one problem at a time. For example, if you should have a > spare PC available, you could make a clean MS4W install. Try some shapefile > and raster layers to see that they work before changing those two system > files. After the change your mapfile should still work. After that you may > add your Oracle layer. Did you already try the unsuccessful SQL directly? > > SELECT rownum, > GEOM FROM RWG_TBL.g WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, > 82032,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3), > MDSYS.SDO_ORDINATE_ARRAY(433000,478000,434000,479000)), > 'querytype=window') = 'TRUE' > > -Jukka- > > > -----Alkuper?inen viesti----- > L?hett?j?: Daniel Goetz [mailto:madprof at gmx.ch] > L?hetetty: 14. kes?kuuta 2006 13:07 > Vastaanottaja: Rahkonen Jukka; MAPSERVER-USERS at LISTS.UMN.EDU > Aihe: Re: Re: [UMN_MAPSERVER-USERS] oracle spatial > > Jukka, > > thank you again for your help and your tests. > > Now I have a general question: Is it not possible to map shapefile or > raster data after swapping the .dll-files to get oracle spatial support. Do I > have to paste the "old" libmap.dll in the cgi-bin folder before mapping > shapefile (or other formats) again? I thought it is possible to map oracle > spatial data and other file-formats (e.g. shapefiles) at the same time? Am I > wrong with this assumption? > > Thank you for your answer and your help. May Thanks. > > regards > > Daniel > -------- Original-Nachricht -------- > Datum: Wed, 14 Jun 2006 12:24:22 +0300 > Von: Rahkonen Jukka > An: MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: Re: [UMN_MAPSERVER-USERS] oracle spatial > > > Hi, > > > > Yes, I made a test with a fresh installation and playing with those > > two files is really enough to make Oracle available for me. Switching > > back to the original libmap.dll does not effect the other layers, but > > Oracle layer disappears, naturally. Rename it, restart Apache, and it > > is back, even without closing the MapLab application in between. I > > don't have any idea why .dll swapping harms your old projects. > > > > -Jukka- > > > > > > > > > > -----Alkuper?inen viesti----- > > L?hett?j?: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Puolesta Daniel Goetz > > L?hetetty: 14. kes?kuuta 2006 10:34 > > Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU > > Aihe: Re: [UMN_MAPSERVER-USERS] oracle spatial > > > > Thanks Rahkonen for your reply, > > > > you did the .dll swapping like described in the readme-file of the > > ms4w package and then just used the below mentioned connection string? > That's all? > > But when I do this and test other .map-file porjects that have worked > > fine before the .dll swapping on my Computer (raster-data or > > shapefiles) I get an apache-error. In my opinion this means that after > > the .dll swapping my apache-server didn't work anymore the way it > should. > > > > Again: you simplya have copied the "libmap.dll" in the > > "Apache/cgi-bin/ignored-libmap/oracle10g/"-folder and pasted it in the > > "Apache/cgi-bin"-folder and then copied the "ogr_OCI.dll" from the > > "ms4w/gdalplugins/ignored"-folder and pasted it in the > > "ms4w/gdalplugins"-folder and then restarted apache? And then > > everything worked fine? You are sure you haven't done anything elese? > > > > When I try this the apache server gives an erorr-message whether I try > > .mapfiles using oracle spatial data or shapefiles or anything else. > > > > Thank you again Rahkonen. Perhaps you or anybody out there has an idea > > what to do in my case. Thank you for your help. > > > > regards > > > > Daniel > > -------- Original-Nachricht -------- > > Datum: Wed, 14 Jun 2006 10:06:18 +0300 > > Von: Rahkonen Jukka > > An: MAPSERVER-USERS at LISTS.UMN.EDU > > Betreff: Re: [UMN_MAPSERVER-USERS] oracle spatial > > > > > Hello, > > > > > > I can say only that I had no problem in connecting to my Oracle 9i > > > database with MS4W installation. I did just the manouvres described > > > in the readme-file, and did not set any new environment variables. > > > My connection string is like: > > > > > > CONNECTIONTYPE ORACLESPATIAL > > > CONNECTION "USER/PASSWD at DB.WORLD" > > > DATA "GEOLOC FROM GIS_POLYGONS USING UNIQUE MSLINK" > > > > > > Have you tried to feed the SQL statement from the error message > > > directly to SQL-Plus? Do you get results then? Is your spatial > > > table OK for Mapserver? I do not know exactly what Mapserver needs, > > > but for Geoserver there must exist a numerical primary key, spatial > > > index and a correct entry in SDO_GEOM_METADATA. In my case if I can > > > connect my data with Geoserver it is available for Mapserver as well. > > > > > > Good luck, > > > > > > -Jukka Rahkonen- > > > > > > ________________________________ > > > > > > L?hett?j?: UMN MapServer Users List puolesta: Daniel Goetz > > > L?hetetty: ti 13.6.2006 17:00 > > > Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU > > > Aihe: Re: [UMN_MAPSERVER-USERS] oracle spatial > > > > > > > > > > > > Thanks Wim for your help, > > > > > > but the syntax in the command-line of the browser didn't bring the > > > solution. > > > > > > Roundup: > > > I have installed Oracle 10g Release 1 client on my computer. Then > > > unzipped the latest ms4w package. Did teh .dll swapping for oracle > > > spacial support like described in the redme-file of the ms4w-package. > > > Then I wrote a mapfile using the native oracle spatial support of > > > the mapserver (not the OGR-Support). > > > > > > MAP > > > NAME "Nbg" > > > #EXTENT 426666.49 466058.21 448321.44 490754.58 EXTENT 433000 478000 > > > 434000 479000 #SIZE 1400 1800 SIZE 400 400 SHAPEPATH > > > "/ms4w/Apache/htdocs/raster/daten" > > > IMAGETYPE PNG > > > IMAGECOLOR 255 255 255 > > > UNITS METERS > > > STATUS ON > > > PROJECTION > > > "init=epsg:4326" > > > END > > > > > > WEB > > > IMAGEPATH "c:\ms4w\Apache\htdocs\raster\tmp\" > > > IMAGEURL "/raster/tmp/" > > > TEMPLATE "test_template.html" > > > END > > > > > > > > > LAYER > > > NAME "RWG" > > > CONNECTIONTYPE OracleSpatial > > > CONNECTION "username/password at service" > > > DATA "GEOM FROM RWG_TBL USING SRID 82032" > > > TYPE POINT > > > STATUS ON > > > PROJECTION > > > "init=epsg:4326" > > > END > > > CLASS > > > NAME "Punkte" > > > STYLE > > > OUTLINECOLOR 128 128 128 > > > COLOR 225 225 185 > > > END > > > END > > > END > > > > > > END > > > > > > Then I did some settings in the httpd.cong of the apache server like > > > described in the "Using oracle spatial" howto. But I don't really > > > know whether this was right. In the "ENV VARS" column I added the > parameter: > > > > > > SetEnv ORACLE_HOME "c:/ora10gR1_client" > > > SetEnv TNS_ADMIN "c:/ora10gR1_client/NETWORK/ADMIN" > > > SetEnv PATH "c:/ora10gr1_client/bin" > > > > > > I saved this and restarted apache. Then I tried to map the oracle > > > data via umn-mapserver. Therefor I wrote the following in my browser: > > > > > > http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raste > > > r/ test_os_native.map&layers=all&mode=map > > > > > > Then I get a error-message from apache: > > > > > > "Internal Server Error.The server encountered an internal error or > > > misconfiguration and was unable to complete your request." > > > > > > In the errorlog of the apache the following was logged: > > > > > > [Tue Jun 13 15:45:56 2006] [error] [client 127.0.0.1] Premature end > > > of script headers: mapserv.exe > > > > > > But I don't know what this means. But when I consciously do some > > > mistake in the DATA expression in the .mapfile (giving a tablename > > > that does not exist in the database) I get the following > > > error-message from the mapserver (and not the apache): > > > > > > msDrawMap(): Image handling error. Failed to draw layer named 'RWG'. > > > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: > > ORA-00942: > > > Tabelle oder View nicht vorhanden . Query statement: SELECT rownum, > > > GEOM FROM RWG_TBL.g WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, > > > 82032, > > > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(43 > > > 30 > > > 00,478000,434000,479000) > > > ),'querytype=window') = 'TRUE' . Check your data statement. > > > > > > So you can see that mapserver is able to connect to the database, > > > because it says that the Table or View is not available. > > > The really astonishing is that after doing the .dll swapping for > > > oracle spatial support other mapserver-projects that have worked > > > fine on my computer before the swapping cause the same appache > error-message. > > > Could anybody imagine what might be the problem? Might it be that > > > mapserver and the version of my oracle client (10g Release 1) are > > > not compiled against each other? Or is there another mistake I have > done? > > > > > > Please help me. I would be very glad and thankful for any hint. > > > Thank you so much. > > > > > > > > > regards > > > > > > Daniel > > > > > > > > > -------- Original-Nachricht -------- > > > Datum: Mon, 12 Jun 2006 20:08:22 +0200 > > > Von: Wim Blanken > > > An: \'Daniel Goetz\' > > > Betreff: RE: [UMN_MAPSERVER-USERS] oracle spatial > > > > > > > Hello Daniel, > > > > > > > > I think your solution is simple. You have to specify &mode=map on > > > > the commandline to make it work. If you don't mapserver needs a > > > > template to show the results of the cgi-call. > > > > > > > > > > > http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raste > > > r/ > > > test_o > > > > s_ogr.map&layers=all&mode=map > > > > > > > > > > > > Regards > > > > > > > > Wim Blanken > > > > > > > > > > > > -----Original Message----- > > > > From: UMN MapServer Users List > > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Daniel Goetz > > > > Sent: Monday, June 12, 2006 1:54 PM > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > Subject: [UMN_MAPSERVER-USERS] oracle spatial > > > > > > > > Hi, > > > > > > > > I have the ms4w installed on my computer and I want to map > > > > geodata, > > > lying > > > > in > > > > a oracle spatial database on a server in the intranet, via umn > > > mapserver. > > > > Therefor I enabled OGR-OCI support described in the readme-file of > > > > the ms4w-package (I "installed" 10g oracle instant client on my > > > > computer, > > > set > > > > set windows environmet variable PATH and did the described .dll > > > swapping). > > > > > > > > Then I tested, whether OGR now supports the OCI with ogrinfo. > > > > Therefor I had to modify the syntax a littel bit to get information: > > > > I wrote "ogrinfo "OCI:username/password at host:port/service_name" > > > > instead of described on > > > the > > > > ogr-site/oracle spatial "OCI:username/password at service_name". The > > > > result was that ogrinfo listed me the relevant tables that contain > > > > geometric data. > > > > > > > > Then I tried to map the data via mapserver. Therefor I wrote the > > > following > > > > .map-file (therefor I correspond to the example given in the > > > > "Vector > > > Data > > > > Access-Reference-Guide" on the mapserver-site): > > > > > > > > MAP > > > > NAME "Oracle" > > > > EXTENT 426666.49 466058.21 448321.44 490754.58 SIZE 1400 1800 > > > > SHAPEPATH "/ms4w/Apache/htdocs/raster/daten" > > > > IMAGETYPE PNG > > > > IMAGECOLOR 255 255 255 > > > > UNITS METERS > > > > STATUS ON > > > > CONFIG "GDAL_DRIVER_PATH" "C:/ms4w/gdalplugins" > > > > > > > > WEB > > > > IMAGEPATH "c:\ms4w\Apache\htdocs\raster\tmp\" > > > > IMAGEURL "/raster/tmp/" > > > > TEMPLATE "test_template.html" > > > > END > > > > > > > > LAYER > > > > CONNECTIONTYPE OGR > > > > CONNECTION "OCI:username/password at service_name" > > > > DATA "RWG_TBS" > > > > NAME "RWG_TBS" > > > > TYPE POLYGON > > > > STATUS ON > > > > > > > > CLASS > > > > NAME "Flaeche" > > > > STYLE > > > > OUTLINECOLOR 128 128 128 > > > > COLOR 225 225 185 > > > > END > > > > END > > > > END > > > > END > > > > > > > > > > > > The template I wrote therefor is very simple: > > > > > > > > > > > > > > > > Erstes Beispiel zum UMN Mapserver > > > > > > > > > > > > > > > > Mapserver-Version auslesen:

[version]


> > > > Karte einbetten:

> > > >
> > > > > > > > > > > > > > > > > > > > And I tried to start mapping by writing the following in my browser: > > > > > > > > > > > http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/raste > > > r/ > > > test_o > > > > s_ogr.map&layers=all& > > > > > > > > > > > > The result was, that mapserver brought the error-message: > > > > > > > > "mapserv(): Web application error. No template provided. " > > > > > > > > Then I tested some other mapserver-test-projects, for whom I know > > > > that they have worked properly on my computer before the mentioned > > > > .dll swapping > > > for > > > > OGR-OCI support. The result was the same: > > > > > > > > "mapserv(): Web application error. No template provided. " > > > > > > > > > > > > So I have three questions: > > > > > > > > How should mapserver know where the database is located without > > > > giving > > > him > > > > any information about the host-address and the port-number. Where > > > > can I provide this information for the mapserver. In the case of > > > > ogrinfo I did this by writing > > > > "OCI:username/password at host:port/service_name". In the .mpa-file > > > > example in the "Vector-Data-Reference-Guide" they say under > > > > CONECTION you should type "OCI:username/password at service_name". > > > > Where is the information about the location of the database? > > > > > > > > Second questions is: Is anything wrong with my .map-file, > > > > html-template > > > or > > > > the starting-command in the web-browser? > > > > > > > > Third: And why do the other mapserver projects, I tested before > > > > .dll swapping (for OGR-COI support), work anymore. Why do I always > > > > get the error-message "mapserv(): Web application error. No > > > > template > > provided." > > > > although I changed nothing on the .map-files, the template nor the > > > > command. > > > > > > > > I would be very pleased and hayppy and thankful if anybody would > > > > help me on my problem. This would really be very nice. Thank you > > > > so much for your endeavors. > > > > > > > > Regards > > > > > > > > Daniel > > > > > > > > > > > > -- > > > > > > > > > > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > > > > Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer > > > > > > > > > > > > > > > > -- > > > > No virus found in this incoming message. > > > > Checked by AVG Free Edition. > > > > Version: 7.1.394 / Virus Database: 268.8.3/361 - Release Date: > > > > 6/11/2006 > > > > > > > > > > -- > > > > > > > > > "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... > > > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail > > > > -- > > > > > > "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... > > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail > > -- > > > "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From oyvind.eide at MUSPRO.UIO.NO Wed Jun 14 04:21:45 2006 From: oyvind.eide at MUSPRO.UIO.NO (=?iso-8859-1?Q?=D8yvind?= Eide) Date: Wed, 14 Jun 2006 13:21:45 +0200 Subject: Character set encoding problem Message-ID: I have a problem with the character set encoding for which I find no solution neither on the Mapserver web site nor in the "Beginning Mapserver" book. I have data in an Oracle 10gR2 database in ISO-8859-1 encoded columns (WE8ISO8859P1) and the names of my geometries appear correctly in a sqlplus search. But on the test mapserver PNG all characters beyond decimal 127 (such as ???) come out as '?'. I have defined the encoding for the layer to 'ISO-8859-1'. That gives me the labels with '?' for the problem characters. If I write something wrong for the encoding, such as 'ISO-8859-', I get no labels at all, which is right according to the documentation. But if I enter a totally different encoding, such as 'EUC-JP', I get the same situation as with 'ISO-8859-1': Labels with '?' for the problem characters. Here is the layer from my mapfile: LAYER NAME N250ADM CONNECTIONTYPE oraclespatial CONNECTION "username/pw at service" DATA "GEOM FROM (select geom, navn from USD_KART_KARTV.KVN250_ADM_F) USING SRID 82344" STATUS on TYPE polygon MINSCALE 50001 LABELCACHE on LABELITEM NAVN CLASS NAME "N 250 adm" STYLE COLOR 200 200 200 OUTLINECOLOR 0 0 0 END LABEL ENCODING ISO-8859-1 COLOR 0 0 0 SIZE 10 TYPE truetype FONT luximr END END END I would be most grateful for any suggestion! Kind regards, ?yvind Eide From Jukka.Rahkonen at MMMTIKE.FI Wed Jun 14 04:28:29 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Wed, 14 Jun 2006 14:28:29 +0300 Subject: oracle spatial Message-ID: Hi, MS4W 1.5.3 with native Oracle support is totally functional with different file formats. I have in a same mapfile layers from local GeoTIFF and JPEG 2000 images, external rasters through WMS service, local shapefiles, polygons from Oracle spatial and external vectors through WFS service and they work just fine, all together. I wonder why you get problems with other that Oracle spatial layers after changing the libmap.dll and activating the ogr_OCI.dll. They should have no effect on those layers, but if they do then I believe it is no use to struggle with other things before that problem is solved. -Jukka- -----Alkuper?inen viesti----- L?hett?j?: Daniel Goetz [mailto:madprof at gmx.ch] L?hetetty: 14. kes?kuuta 2006 14:02 Vastaanottaja: Rahkonen Jukka; MAPSERVER-USERS at LISTS.UMN.EDU Aihe: Re: Re: [UMN_MAPSERVER-USERS] oracle spatial Hi Jukka, thank you again for your help. You think it should be possible to map differnt file-formats (shapefiles, oracle spatial, raster-data, etc.) at the same time even if you have changed the .dll files for orcale support? The suggestions you made in your e-mail, that I should test a new, "untouched" installation of ms4w on another computer, i have already tested. I installed ms4w, tested some shapfiles and raster data and they worked. then I did the .dll swapping and neither the oracledata nor other file-formats work. I always get an apache-error-message. except for I point to a table that does not exist in the database in the DATA-experssion of the mapfile. then I get the mapserver-error-message you mentioned in your last email. And yes, I testes the unsuccessful SQL (correcting the consciously wrong tablename_experssion) and it workes fine. Perhaps you can email me your mapfile, in which you point to an oracle spatial database. Perhaps I do a mistake in the mypfile. Would be very nice. Thank you for your endeavor and your time and your help. regards ....... SNIP From fsimon at UNIVALI.BR Wed Jun 14 05:24:55 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Wed, 14 Jun 2006 09:24:55 -0300 Subject: oracle spatial In-Reply-To: Message-ID: Hi folks, The native Oracle Spatial connection work without problems with different file formats as Jukka told. Daniel, can you sen your full Mapfile? I never worked MS4W but you can try to test your Mapfile directly using a CGI Mapserver. Can you put the Oracle layers in the end of the Mapfile? Can you define just one layer in your mapfile an test it? And after this you can add the layers to this new Mapfile to test all in the same file. You can use the DEBUG flags to force Mapaserver to report step by step in the Apache log. Here I use the Oracle Spatial Client with OCI, Apache 2.2.2 and PHP 5.1.4 and Mapserver 4.8.3 without problems. Best regards and sorry for the delay to reply. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Rahkonen Jukka wrote: > > Hi, > > MS4W 1.5.3 with native Oracle support is totally functional with different file formats. I have in a same mapfile layers from local GeoTIFF and JPEG 2000 images, external rasters through WMS service, local shapefiles, polygons from Oracle spatial and external vectors through WFS service and they work just fine, all together. > > I wonder why you get problems with other that Oracle spatial layers after changing the libmap.dll and activating the ogr_OCI.dll. They should have no effect on those layers, but if they do then I believe it is no use to struggle with other things before that problem is solved. > > -Jukka- > > > -----Alkuper?inen viesti----- > L?hett?j?: Daniel Goetz [mailto:madprof at gmx.ch] > L?hetetty: 14. kes?kuuta 2006 14:02 > Vastaanottaja: Rahkonen Jukka; MAPSERVER-USERS at LISTS.UMN.EDU > Aihe: Re: Re: [UMN_MAPSERVER-USERS] oracle spatial > > Hi Jukka, > > thank you again for your help. You think it should be possible to map differnt file-formats (shapefiles, oracle spatial, raster-data, etc.) at the same time even if you have changed the .dll files for orcale support? > > The suggestions you made in your e-mail, that I should test a new, "untouched" installation of ms4w on another computer, i have already tested. I installed ms4w, tested some shapfiles and raster data and they worked. then I did the .dll swapping and neither the oracledata nor other file-formats work. I always get an apache-error-message. except for I point to a table that does not exist in the database in the DATA-experssion of the mapfile. then I get the mapserver-error-message you mentioned in your last email. > > And yes, I testes the unsuccessful SQL (correcting the consciously wrong tablename_experssion) and it workes fine. Perhaps you can email me your mapfile, in which you point to an oracle spatial database. Perhaps I do a mistake in the mypfile. Would be very nice. Thank you for your endeavor and your time and your help. > > regards > > > ....... > > SNIP > > From Vincent.Troisi at COLORADO.EDU Wed Jun 14 07:03:32 2006 From: Vincent.Troisi at COLORADO.EDU (Vincent J. Troisi) Date: Wed, 14 Jun 2006 08:03:32 -0600 Subject: raster to geotiff Message-ID: I have a few raster base maps I'd like to serve via WMS. I want to convert the maps to geotiff. I have the projection information, the pixel resolution, and the number of pixels (x,y) from the origin. I'm hoping I can generate a geotiff by including these parameters in the appropriate command line. I have gdal utilities operating under Suse linux. Thanks. From julien.63 at FREE.FR Wed Jun 14 07:58:13 2006 From: julien.63 at FREE.FR (Julien Bessiere) Date: Wed, 14 Jun 2006 16:58:13 +0200 Subject: WebSite documentation language glitch In-Reply-To: <448FB992.8050009@univ-tlse2.fr> Message-ID: Hi Laurent, it's a kind of strange but just try : http://mapserver.gis.umn.edu/docs/ just by adding a slash at the end of the url ! I'm french too and it's working for me. I Hope it will for you as well ! bye Julien Selon Laurent J?gou : > Hello, when i access the "documentation" part of the official website > (http://mapserver.gis.umn.edu/docs), plone detects than i use a french > language and automatically gives the french version of the website, > which is empty of documentation. > > I remarked that this morning, before i was able to put the site in > english by returning to the first page and clicking the english flag. > Now that does'nt work anymore. > > What url can i use to force the site in english and have acces to the > whole content ? > > Thanks for your help ! > From pascal.benoist at UGGE.CH Wed Jun 14 07:54:20 2006 From: pascal.benoist at UGGE.CH (Pascal BENOIST) Date: Wed, 14 Jun 2006 16:54:20 +0200 Subject: Pb installation PHPMapScript Message-ID: Hello community, I try to instal the ultimate binaries of PHPMapscript for MapServer4.8 and PHP5.1.2 but encounter the following message after running the phpinfo.php url : My phpinfo is the following : I work on a PC with WindowsXP, APACHE2, PHP5.1.2 that work fine and I have declared the php_mapscript_48.dll in my php.ini as specified in the documentation. Would you have any idea about compatibility between versions? Thanks in advance Benoist -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 9754 bytes Desc: not available URL: From zhonghaiw at GMAIL.COM Wed Jun 14 08:28:06 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Wed, 14 Jun 2006 17:28:06 +0200 Subject: Compile MapSevrer with VS2005 (MapServer BuiltKit source code) Message-ID: hi guys, I am trying to compile MapServer with VS2005 now, and I've struggle with it for almost one day, but I am still in the dark...the following is done for the compilation, and any ideas from you will be so helpful. 1.source code download: -- the MapServer BuildKit from Howard Butler http://hobu.stat.iastate.edu/mapserver/build_output/ and I have downloaded the latest package version " mapserver-4.8.3-2-msvc71-buildk-kit.zip" 2.and I follow the compilation guide here: http://www.nabble.com/Windows-build-kit-for-MSVC-7.1-t1143108.html#a2997024 to compile MapServer, according to this doc, I should at first compile the GDAL package, and then come to the MapServer package. But when I am trying to compile the GDAL package under VS2005 command prompt with the command "nmake /f makefile.vc", there are some error messages appears, the scenario is: ******************************** *C:\buildkit\gdal-1.3.2>nmake /f makefile.vc clean *C:\buildkit\gdal-1.3.2>nmake /f makefile.vc * * * *and here come the error messages, I paste only the first one here, because I think if I fix this problem, the other error may be fixed at the same time: * *msvcprt.lib(MSVCP80.dll) : error LNK2005: "class std::basic_string,class std::allocator > __cdecl std::operator+,class std::allocator >(class std::basic_strin *g,class std::allocator > const &,char c *onst *)" ( ??$?HDU?$char_traits at D@std@@V?$allocator at D@1@@std@@YA?AV?$basic_string* *@DU?$char_traits at D@std@@V?$allocator at D@2@@0 at ABV10@PBD at Z<*@DU?$char_traits at D@std@@V?$allocator at D@2@@0 at ABV10@PBD at Z>) already defined in geos *.lib(WKTReader.obj) * ********************************* Because I want to use CSharp/MapScript under the .NET FW 2.0, and I've also got some info from the Doc: http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile, it says that I should compile MapServer and the related libraries using VS2005 for .NET FW 2.0, I begin with the VS2005 command prompt instead of following the compilation guide in the mapserver README.WIN32, which gives: *** To build the package using the Makefile.vc and NMAKE: - Edit nmake.opt to select (or deselect) optional components of the MapServer. Please read the notes below about each component before you move ahead with the compilation. - Open a DOS prompt window - Run the VCVARS32.BAT script to initialize the VC++ environment variables. VCVARS32.BAT is automatically generated by the MSVC++ install procedure and should be located in the BIN sub-directory of your MSVC++ installation. - Then start the build with: nmake /f Makefile.vc This will create "mapserv.exe" (the main MapServer CGI program), the other command-line utilities, "mapserver.lib" and "libmap.dll" that is used by theMapScript modules. *** I am now just wondering if it's possible to compile MapServer and related libraries with VS2005, since the MSVCP80.dll can always not be found. Did anyone have some experiences about that? I would really appreciate it if you give me some HINTS for my compilation. zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Wed Jun 14 08:32:45 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Wed, 14 Jun 2006 17:32:45 +0200 Subject: Compile MapSevrer with VS2005 (MapServer BuiltKit source code) Message-ID: hi guys, I am trying to compile MapServer with VS2005 now, and I've struggle with it for almost one day, but I am still in the dark...the following is done for the compilation, and any ideas from you will be so helpful. 1.source code download: -- the MapServer BuildKit from Howard Butler http://hobu.stat.iastate.edu/mapserver/build_output/ and I have downloaded the latest package version " mapserver-4.8.3-2-msvc71-buildk-kit.zip" 2.and I follow the compilation guide here: http://www.nabble.com/Windows-build-kit-for-MSVC-7.1-t1143108.html#a2997024 to compile MapServer, according to this doc, I should at first compile the GDAL package, and then come to the MapServer package. But when I am trying to compile the GDAL package under VS2005 command prompt with the command "nmake /f makefile.vc", there are some error messages appears, the scenario is: ******************************** *C:\buildkit\gdal-1.3.2>nmake /f makefile.vc clean *C:\buildkit\gdal-1.3.2>nmake /f makefile.vc * * * *and here come the error messages, I paste only the first one here, because I think if I fix this problem, the other error may be fixed at the same time: * *msvcprt.lib(MSVCP80.dll) : error LNK2005: "class std::basic_string,class std::allocator > __cdecl std::operator+,class std::allocator >(class std::basic_strin *g,class std::allocator > const &,char c *onst *)" ( ??$?HDU?$char_traits at D@std@@V?$allocator at D@1@@std@@YA?AV?$basic_string* *@DU?$char_traits at D@std@@V?$allocator at D@2@@0 at ABV10@PBD at Z<*@DU?$char_traits at D@std@@V?$allocator at D@2@@0 at ABV10@PBD at Z>) already defined in geos *.lib(WKTReader.obj) * ********************************* Because I want to use CSharp/MapScript under the .NET FW 2.0, and I've also got some info from the Doc: http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile, it says that I should compile MapServer and the related libraries using VS2005 for .NET FW 2.0, I begin with the VS2005 command prompt instead of following the compilation guide in the mapserver README.WIN32, which gives: *** To build the package using the Makefile.vc and NMAKE: - Edit nmake.opt to select (or deselect) optional components of the MapServer. Please read the notes below about each component before you move ahead with the compilation. - Open a DOS prompt window - Run the VCVARS32.BAT script to initialize the VC++ environment variables. VCVARS32.BAT is automatically generated by the MSVC++ install procedure and should be located in the BIN sub-directory of your MSVC++ installation. - Then start the build with: nmake /f Makefile.vc This will create "mapserv.exe" (the main MapServer CGI program), the other command-line utilities, "mapserver.lib" and "libmap.dll" that is used by theMapScript modules. *** I am now just wondering if it's possible to compile MapServer and related libraries with VS2005, since the MSVCP80.dll can always not be found. Did anyone have some experiences about that? I would really appreciate it if you give me some HINTS for my compilation. zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonnyprof at GMAIL.COM Wed Jun 14 08:50:28 2006 From: jonnyprof at GMAIL.COM (John Prof) Date: Wed, 14 Jun 2006 17:50:28 +0200 Subject: MyGis connection question In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB06DD@s-sp22.pca.state.mn.us> Message-ID: Hi David, I would prefer use the spatial extensions but I can't find nothing about. Your method works fine. Thanks 2006/6/13, Fawcett, David : > > John, > > Take a look at this: http://mapserver.gis.umn.edu/docs/howto/ogrmysql > > You would need to change your data structure so that you store your x and > y values in separate columns. > > Note that this method doesn't use MyGIS, it uses a direct connection > driver in OGR, so your MapServer binary would need to be compiled with OGR > support (as most are). > > David. > > -----Original Message----- > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On > Behalf Of *John Prof > *Sent:* Tuesday, June 13, 2006 4:03 AM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* [UMN_MAPSERVER-USERS] MyGis connection question > > Hello, > > I'm trying to connect mapserver's map with a mysql datatable like this: > > id int > name varchar(20) > description varchar(100) > location point > > I'd like to create a shape with the points and the labels of the name. Is > it possible? I've tried many ways but I have errors. > I'd like to do something like this example: > > > LAYER > > CONNECTIONTYPE mygis > NAME "City" > CONNECTION "host:user:passwd:database:bin" > DATA "location from city" > TYPE POINT > STATUS ON > . > . > . > END > > It fails. I've tried with some mysql functions like AsBinary(point), but > it doesn't work. > I must use sh2mysql structure to store data in my database? Is not > possible make my simply case? > > Thanks and sorry for my english :p > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Wed Jun 14 08:56:52 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Wed, 14 Jun 2006 17:56:52 +0200 Subject: raster to geotiff In-Reply-To: <44901734.6090801@Colorado.EDU> Message-ID: Hi Vincent, create a WLD file fort your raster maps using the projection information you have, then use the GDAL utilities to convert the raster forma and projections, e.g. gdal_translate or gdalwarp. And here is the syntay of worldfiles: http://gdal.maptools.org/frmt_various.html#WLD hope that helps best regards zhonghai On 6/14/06, Vincent J. Troisi wrote: > > I have a few raster base maps I'd like to serve via WMS. I want > to convert the maps to geotiff. I have the projection information, > the pixel resolution, and the number of pixels (x,y) from > the origin. I'm hoping I can generate a geotiff by including > these parameters in the appropriate command line. I have gdal > utilities operating under Suse linux. > > Thanks. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From martins506 at HOTMAIL.COM Wed Jun 14 11:35:14 2006 From: martins506 at HOTMAIL.COM (Kevin martins) Date: Wed, 14 Jun 2006 18:35:14 +0000 Subject: Degrees to meters Message-ID: Hi folks, I have a point in longlat(using srid 4326) and i want its projection in meters(using srid 4803) how can i do it??? Chears, Kevin Martins _________________________________________________________________ Esteja entre os primeiros a verem o futuro do Hotmail: experimente a vers?o beta do Windows Live Mail http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d From naci0002 at UMN.EDU Wed Jun 14 11:57:59 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Wed, 14 Jun 2006 13:57:59 -0500 Subject: Degrees to meters In-Reply-To: Message-ID: You need the cs2cs utility which is part of the Proj.4 library. This probably comes with the MS4W, FGS Installer, and FWTools packages. Here's a URL that shows how to use cs2cs[.exe]: http://thoreau.dnr.state.mn.us/mis/gis/tools/arcview/Training/WebHelp/DNRExt/dnrgarmin43/Projection_Utility_-_Custom.htm -Perry Kevin martins wrote: > Hi folks, > I have a point in longlat(using srid 4326) and i want its projection in meters(using srid 4803) how can i do it??? > Chears, > Kevin Martins > _________________________________________________________________ > Esteja entre os primeiros a verem o futuro do Hotmail: experimente a vers?o beta do Windows Live Mail > http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d > . > From szekerest at GMAIL.COM Wed Jun 14 13:30:45 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 14 Jun 2006 22:30:45 +0200 Subject: Compile MapSevrer with VS2005 (MapServer BuiltKit source code) In-Reply-To: <2534c4120606140832n72f492e3jcdf0a45cae481f61@mail.gmail.com> Message-ID: Zhonghai, The buildkit was compiled originally with VS2003, compiling with VS2005 is not so straightforward. When compiling gdal you probably link against several libs compiled with VS2003 previously so you should compile those libraries with VS2005 first. See nmake.opt and search for the .lib references to locate those libraries. I suggest to disable the libraries not really needed for your application. (Even with mapserver and gdal) I cannot confirm if all of the libraries could be enabled easily. In my application ORACLE, SDE, XERCES, GEOS, ECW were disabled. (however these are enabled by default). However some folks might have gone forward with the libraries mentioned previously as well. Best Regards, Tamas Szekeres _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Zhonghai Wang Sent: Wednesday, June 14, 2006 5:33 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Compile MapSevrer with VS2005 (MapServer BuiltKit source code) hi guys, I am trying to compile MapServer with VS2005 now, and I've struggle with it for almost one day, but I am still in the dark...the following is done for the compilation, and any ideas from you will be so helpful. 1.source code download: -- the MapServer BuildKit from Howard Butler HYPERLINK "http://hobu.stat.iastate.edu/mapserver/build_output/"http://hobu.stat.iasta te.edu/mapserver/build_output/ and I have downloaded the latest package version "mapserver-4.8.3-2-msvc71-buildk-kit.zip" 2.and I follow the compilation guide here: HYPERLINK "http://www.nabble.com/Windows-build-kit-for-MSVC-7.1-t1143108.html#a2997024 "http://www.nabble.com/Windows-build-kit-for-MSVC-7.1-t1143108.html#a2997024 to compile MapServer, according to this doc, I should at first compile the GDAL package, and then come to the MapServer package. But when I am trying to compile the GDAL package under VS2005 command prompt with the command "nmake /f HYPERLINK "http://makefile.vc"makefile.vc", there are some error messages appears, the scenario is: ******************************** *C:\buildkit\gdal-1.3.2>nmake /f HYPERLINK "http://makefile.vc"makefile.vc clean *C:\buildkit\gdal-1.3.2>nmake /f HYPERLINK "http://makefile.vc"makefile.vc * * * *and here come the error messages, I paste only the first one here, because I think if I fix this problem, the other error may be fixed at the same time: * *msvcprt.lib(MSVCP80.dll) : error LNK2005: "class std::basic_string,class std::allocator > __cdecl std::operator+,class std::allocator >(class std::basic_strin *g,class std::allocator > const &,char c *onst *)" (HYPERLINK "mailto:??$?HDU?$char_traits at D@std@@V?$allocator at D@1@@std@@YA?AV?$basic_stri ng"??$?HDU?$char_traits at D@std@@V?$allocator at D@1@@std@@YA?AV?$basic_string * *HYPERLINK "mailto:*@DU?$char_traits at D@std@@V?$allocator at D@2@@0 at ABV10@PBD at Z"@DU?$char_t raits at D@std@@V?$allocator at D@2@@0 at ABV10@PBD at Z) already defined in geos *.lib(WKTReader.obj) * ********************************* Because I want to use CSharp/MapScript under the .NET FW 2.0, and I've also got some info from the Doc:HYPERLINK "http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile"http://mapserver .gis.umn.edu/docs/howto/mapscriptcscompile , it says that I should compile MapServer and the related libraries using VS2005 for .NET FW 2.0, I begin with the VS2005 command prompt instead of following the compilation guide in the mapserver README.WIN32, which gives: *** To build the package using the HYPERLINK "http://Makefile.vc"Makefile.vc and NMAKE: - Edit nmake.opt to select (or deselect) optional components of the MapServer. Please read the notes below about each component before you move ahead with the compilation. - Open a DOS prompt window - Run the VCVARS32.BAT script to initialize the VC++ environment variables. VCVARS32.BAT is automatically generated by the MSVC++ install procedure and should be located in the BIN sub-directory of your MSVC++ installation. - Then start the build with: nmake /f HYPERLINK "http://Makefile.vc"Makefile.vc This will create "mapserv.exe" (the main MapServer CGI program), the other command-line utilities, "mapserver.lib" and "libmap.dll" that is used by theMapScript modules. *** I am now just wondering if it's possible to compile MapServer and related libraries with VS2005, since the MSVCP80.dll can always not be found. Did anyone have some experiences about that? I would really appreciate it if you give me some HINTS for my compilation. zhonghai -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 2006.06.14. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 2006.06.14. -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Wed Jun 14 13:52:16 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Wed, 14 Jun 2006 22:52:16 +0200 Subject: Compile MapSevrer with VS2005 (MapServer BuiltKit source code) In-Reply-To: <449071f9.5d4e6134.34c5.ffff9b47@mx.gmail.com> Message-ID: Hi Tamas, I really appreciate your help. and in my case, I uncomment also several options, but for my application Oracle Spatial support is needed, so I use the latest version BuiltKit from Howard Butler. I will try to compile all the needed libraries with VS2005. BTW: to compile CSharp/MapScript with MapServer, what I need to do is to umcomment the DOTNET option in the nmake.opt file in the mapserver-4.8.3folder, which is: #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # .NET/C# MapScript # ---------------------------------------------------------------------- # .NET will of course only work with MSVC 7.0 and 7.1. Also note that # you will definitely want USE_THREAD defined. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DOT_NET = YES is that right? but the MSVC 7.0 and 7.1.seems for VS2003. thank you very much. zhonghai On 6/14/06, Tamas Szekeres wrote: > > Zhonghai, > > The buildkit was compiled originally with VS2003, compiling with VS2005 is > not so straightforward. > > > > When compiling gdal you probably link against several libs compiled with > VS2003 previously so you should compile those libraries with VS2005 first. > > See nmake.opt and search for the .lib references to locate those > libraries. > > I suggest to disable the libraries not really needed for your application. > (Even with mapserver and gdal) > > I cannot confirm if all of the libraries could be enabled easily. In my > application ORACLE, SDE, XERCES, GEOS, ECW were disabled. (however these are > enabled by default). > > However some folks might have gone forward with the libraries mentioned > previously as well. > > > > > > Best Regards, > > > > Tamas Szekeres > > > ------------------------------ > > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On > Behalf Of *Zhonghai Wang > *Sent:* Wednesday, June 14, 2006 5:33 PM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* [UMN_MAPSERVER-USERS] Compile MapSevrer with VS2005 (MapServer > BuiltKit source code) > > > > hi guys, > > > > I am trying to compile MapServer with VS2005 now, and I've struggle with > it for almost one day, but I am still in the dark...the following is done > for the compilation, and any ideas from you will be so helpful. > > > > 1.source code download: -- the MapServer BuildKit from Howard Butler > > http://hobu.stat.iastate.edu/mapserver/build_output/ > > and I have downloaded the latest package version " > mapserver-4.8.3-2-msvc71-buildk-kit.zip" > > 2.and I follow the compilation guide here: > > > http://www.nabble.com/Windows-build-kit-for-MSVC-7.1-t1143108.html#a2997024 > > > to compile MapServer, according to this doc, I should at first compile > the GDAL package, and then come to the MapServer package. But when I am > trying to compile the GDAL > > package under VS2005 command prompt with the command "nmake /f > makefile.vc", there are some error messages appears, the scenario is: > > ******************************** > > *C:\buildkit\gdal-1.3.2>nmake /f makefile.vc clean > > *C:\buildkit\gdal-1.3.2>nmake /f makefile.vc > > * > > * > > * > > *and here come the error messages, I paste only the first one here, > because I think if I fix this problem, the other error may be fixed at the > same time: > > * > > *msvcprt.lib(MSVCP80.dll) : error LNK2005: "class > std::basic_string *td::char_traits,class std::allocator > __cdecl > std::operator+ *truct std::char_traits,class std::allocator >(class > std::basic_strin > *g,class std::allocator > const > &,char c > *onst *)" (??$?HDU?$char_traits at D@std@@V?$allocator at D@1@@std@@YA?AV?$basic_string > * > > *@DU?$char_traits at D@std@@V?$allocator at D@2@@0 at ABV10@PBD at Z<*@DU?$char_traits at D@std@@V?$allocator at D@2@@0 at ABV10@PBD at Z>) > already defined in geos > *.lib(WKTReader.obj) > > * > > ********************************* > > > > Because I want to use CSharp/MapScript under the .NET FW 2.0, and I've > also got some info from the Doc:http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile > , it says that I should compile MapServer and the related libraries using > VS2005 for .NET FW 2.0, I begin with the VS2005 command prompt instead of > following the compilation guide in the mapserver README.WIN32, which > gives: > > *** > > To build the package using the Makefile.vc and NMAKE: > > - Edit nmake.opt to select (or deselect) optional components of > the MapServer. Please read the notes below about each component > before you move ahead with the compilation. > > - Open a DOS prompt window > > - Run the VCVARS32.BAT script to initialize the VC++ environment > variables. VCVARS32.BAT is automatically generated by the MSVC++ > install procedure and should be located in the BIN sub-directory of > your MSVC++ installation. > > - Then start the build with: > nmake /f Makefile.vc > > This will create "mapserv.exe" (the main MapServer CGI program), the > other command-line utilities, "mapserver.lib" and "libmap.dll" that is > used by theMapScript modules. > > *** > > I am now just wondering if it's possible to compile MapServer and related > libraries with VS2005, since the MSVCP80.dll can always not be found. Did > anyone have some experiences about that? > > I would really appreciate it if you give me some HINTS for my compilation. > > zhonghai > > > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 2006.06.14. > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 2006.06.14. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Wed Jun 14 14:00:35 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 14 Jun 2006 23:00:35 +0200 Subject: Mapscript ,Mono, Apache and Linux : a great story In-Reply-To: Message-ID: Hi, It would be helpful if you could you file a bug describing the steps to reproduce this problem (including code sample and map file if necessary). I guess you have called a getFeature on a postgis layer which is generally not uncommon and have been tested many times. However i am not sure about the application environment and the threading issues in this case. Thanks, Tamas Szekeres _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Xavier Mauclaire Sent: Tuesday, June 13, 2006 9:44 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : a great story HI I'm developping a web site using Mono (1.1.13) Apache (2.0.54) MApscript (4.8.3). I'm using Vs2003 to develop and linux as deployement platform. All works well with windows but on linux i get the folowing error in th error_log apache file and the web server shutdowns. Any help well be appreciated. I don't know what to do regards ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= Stacktrace: in (wrapper managed-to-native) mapscriptPINVOKE:layerObj_getFeature (System.Runtime.InteropServices.HandleRef,int,int) <0x4> in (wrapper managed-to-native) mapscriptPINVOKE:layerObj_getFeature (System.Runtime.InteropServices.HandleRef,int,int) <0xffffff87> in layerObj:getFeature (int,int) <0x27> in siteflash.GetParcelleReglement:localiser_parcelle (double,double,string&) <0x1ca> in siteflash.GetParcelleReglement:ProcessRequest (System.Web.HttpContext) <0x56c> in __1:MoveNext () <0x10a0> in System.Web.HttpApplication:Tick () <0x1f> in System.Web.HttpApplication:Start (object) <0x37> in System.Web.HttpApplication:System.Web.IHttpAsyncHandler.BeginProcessRequest (System.Web.HttpContext,System.AsyncCallback,object) <0x68> in System.Web.HttpRuntime:RealProcessRequest (object) <0x1ab> in System.Web.HttpRuntime:ProcessRequest (System.Web.HttpWorkerRequest) <0x2c> in Mono.WebServer.MonoWorkerRequest:ProcessRequest () <0xa> in Mono.WebServer.BaseApplicationHost:ProcessRequest (Mono.WebServer.MonoWorkerRequest) <0x43> in Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xdc> in (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xffffff0a> in (wrapper xdomain-dispatch) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (object,byte[]&,byte[]&,int,string,string,string,string,string,int,string,in t,string,string[],string[]) <0xffeecda6> in (wrapper xdomain-invoke) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xffffff6a> in (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xffca7c74> in Mono.WebServer.ModMonoWorker:InnerRun (object) <0x404> in Mono.WebServer.ModMonoWorker:Run (object) <0x17> in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object (object) <0xffffff95> in (wrapper runtime-invoke) System.Object:runtime_invoke_void_object (object,intptr,intptr,intptr) <0xc74b289f> Native stacktrace: /usr/lib/pkgconfig/../../bin/mono(mono_handle_native_sigsegv+0xbb) [0x814ee2b] /usr/lib/pkgconfig/../../bin/mono [0x813b2cf] [0xffffe440] /lib/tls/libc.so.6(malloc+0x86) [0x40187ea6] /usr/local/lib/libmapscript.so(strstrIgnoreCase+0x47) [0x417f8fd7] /usr/local/lib/libmapscript.so [0x417f90e4] /usr/local/lib/libmapscript.so(msPOSTGISLayerGetShape+0x7d) [0x417f973d] /usr/local/lib/libmapscript.so(msPOSTGISLayerGetShapeVT+0x23) [0x417f9e93] /usr/local/lib/libmapscript.so(msLayerGetShape+0x2e) [0x417a8d6e] /usr/local/lib/libmapscript.so(CSharp_layerObj_getFeature+0x46) [0x41764766] [0x41721a9a] [0x417219b8] [0x41720b93] [0x4172023d] [0x415b64f9] [0x415b5380] [0x415b1768] [0x415b1649] [0x411111f4] [0x41110d25] [0x41110ce3] [0x4111029c] [0x410f54e5] [0x410f4c4c] [0x410f4a2b] [0x40fe14bf] [0x40fe12fb] [0x40c88e9d] [0x40c889f0] [0x40c889b4] [0x40c8890e] /usr/lib/pkgconfig/../../bin/mono [0x813b180] /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke+0x27) [0x80d63f7] /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke_array+0x270) [0x80d78c0] /usr/lib/pkgconfig/../../bin/mono(mono_message_invoke+0xc5) [0x80d93d5] /usr/lib/pkgconfig/../../bin/mono [0x80a509f] /usr/lib/pkgconfig/../../bin/mono [0x80a58c9] /usr/lib/pkgconfig/../../bin/mono [0x8099fb2] /usr/lib/pkgconfig/../../bin/mono [0x80f5067] /usr/lib/pkgconfig/../../bin/mono [0x8113175] /lib/tls/libpthread.so.0 [0x400e5297] /lib/tls/libc.so.6(__clone+0x5e) [0x401e037e] [Tue Jun 13 17:45:12 2006] [notice] caught SIGTERM, shutting down [Tue Jun 13 17:45:21 2006] [warn] module mono_module is already loaded, skipping [Tue Jun 13 17:45:22 2006] [notice] Apache/2.0.54 (Linux/SUSE) configured -- resuming normal operations Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. [Tue Jun 13 17:53:44 2006] [notice] caught SIGTERM, shutting down ----------------------------------------- Xavier Mauclaire ------------------------------------------------------- -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.4/363 - Release Date: 2006.06.13. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 2006.06.14. -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Wed Jun 14 14:06:39 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 14 Jun 2006 23:06:39 +0200 Subject: Compile MapSevrer with VS2005 (MapServer BuiltKit source code) In-Reply-To: <2534c4120606141352v2f98b686hb6e5e1ccd9664f94@mail.gmail.com> Message-ID: You are right. Don?t be confused about the comments MSVC 8.0 have not been widely used so far, and the comment was not be updated ;-) Tamas _____ From: Zhonghai Wang [mailto:zhonghaiw at gmail.com] Sent: Wednesday, June 14, 2006 10:52 PM To: Tamas Szekeres Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Compile MapSevrer with VS2005 (MapServer BuiltKit source code) Hi Tamas, I really appreciate your help. and in my case, I uncomment also several options, but for my application Oracle Spatial support is needed, so I use the latest version BuiltKit from Howard Butler. I will try to compile all the needed libraries with VS2005. BTW: to compile CSharp/MapScript with MapServer, what I need to do is to umcomment the DOTNET option in the nmake.opt file in the mapserver-4.8.3 folder, which is: #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # .NET/C# MapScript # ---------------------------------------------------------------------- # .NET will of course only work with MSVC 7.0 and 7.1. Also note that # you will definitely want USE_THREAD defined. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DOT_NET = YES is that right? but the MSVC 7.0 and 7.1.seems for VS2003. thank you very much. zhonghai On 6/14/06, Tamas Szekeres wrote: Zhonghai, The buildkit was compiled originally with VS2003, compiling with VS2005 is not so straightforward. When compiling gdal you probably link against several libs compiled with VS2003 previously so you should compile those libraries with VS2005 first. See nmake.opt and search for the .lib references to locate those libraries. I suggest to disable the libraries not really needed for your application. (Even with mapserver and gdal) I cannot confirm if all of the libraries could be enabled easily. In my application ORACLE, SDE, XERCES, GEOS, ECW were disabled. (however these are enabled by default). However some folks might have gone forward with the libraries mentioned previously as well. Best Regards, Tamas Szekeres _____ From: UMN MapServer Users List [mailto:HYPERLINK "mailto:MAPSERVER-USERS at LISTS.UMN.EDU" \nMAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Zhonghai Wang Sent: Wednesday, June 14, 2006 5:33 PM To: HYPERLINK "mailto:MAPSERVER-USERS at LISTS.UMN.EDU" \nMAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Compile MapSevrer with VS2005 (MapServer BuiltKit source code) hi guys, I am trying to compile MapServer with VS2005 now, and I've struggle with it for almost one day, but I am still in the dark...the following is done for the compilation, and any ideas from you will be so helpful. 1.source code download: -- the MapServer BuildKit from Howard Butler HYPERLINK "http://hobu.stat.iastate.edu/mapserver/build_output/" \nhttp://hobu.stat.iastate.edu/mapserver/build_output/ and I have downloaded the latest package version "mapserver-4.8.3-2-msvc71-buildk-kit.zip" 2.and I follow the compilation guide here: HYPERLINK "http://www.nabble.com/Windows-build-kit-for-MSVC-7.1-t1143108.html#a2997024 " \nhttp://www.nabble.com/Windows-build-kit-for-MSVC-7.1-t1143108.html#a299702 4 to compile MapServer, according to this doc, I should at first compile the GDAL package, and then come to the MapServer package. But when I am trying to compile the GDAL package under VS2005 command prompt with the command "nmake /f HYPERLINK "http://makefile.vc" \nmakefile.vc", there are some error messages appears, the scenario is: ******************************** *C:\buildkit\gdal-1.3.2>nmake /f HYPERLINK "http://makefile.vc" \nmakefile.vc clean *C:\buildkit\gdal-1.3.2>nmake /f HYPERLINK "http://makefile.vc" \nmakefile.vc * * * *and here come the error messages, I paste only the first one here, because I think if I fix this problem, the other error may be fixed at the same time: * *msvcprt.lib(MSVCP80.dll) : error LNK2005: "class std::basic_string,class std::allocator > __cdecl std::operator+,class std::allocator >(class std::basic_strin *g,class std::allocator > const &,char c *onst *)" (HYPERLINK "mailto:??$?HDU?$char_traits at D@std@@V?$allocator at D@1@@std@@YA?AV?$basic_stri ng" \n??$?HDU?$char_traits at D@std@@V?$allocator at D@1@@std@@YA?AV?$basic_string * *HYPERLINK "mailto:*@DU?$char_traits at D@std@@V?$allocator at D@2@@0 at ABV10@PBD at Z" \n at DU?$char_traits at D@std@@V?$allocator at D@2@@0 at ABV10@PBD at Z ) already defined in geos *.lib(WKTReader.obj) * ********************************* Because I want to use CSharp/MapScript under the .NET FW 2.0, and I've also got some info from the Doc:HYPERLINK "http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile" \nhttp://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile , it says that I should compile MapServer and the related libraries using VS2005 for .NET FW 2.0, I begin with the VS2005 command prompt instead of following the compilation guide in the mapserver README.WIN32, which gives: *** To build the package using the HYPERLINK "http://Makefile.vc" \nMakefile.vc and NMAKE: - Edit nmake.opt to select (or deselect) optional components of the MapServer. Please read the notes below about each component before you move ahead with the compilation. - Open a DOS prompt window - Run the VCVARS32.BAT script to initialize the VC++ environment variables. VCVARS32.BAT is automatically generated by the MSVC++ install procedure and should be located in the BIN sub-directory of your MSVC++ installation. - Then start the build with: nmake /f HYPERLINK "http://Makefile.vc" \nMakefile.vc This will create "mapserv.exe" (the main MapServer CGI program), the other command-line utilities, "mapserver.lib" and "libmap.dll" that is used by theMapScript modules. *** I am now just wondering if it's possible to compile MapServer and related libraries with VS2005, since the MSVCP80.dll can always not be found. Did anyone have some experiences about that? I would really appreciate it if you give me some HINTS for my compilation. zhonghai -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 2006.06.14. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 2006.06.14. -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 2006.06.14. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 2006.06.14. -------------- next part -------------- An HTML attachment was scrubbed... URL: From timbadtke at GMAIL.COM Wed Jun 14 13:58:38 2006 From: timbadtke at GMAIL.COM (Tim Badtke) Date: Wed, 14 Jun 2006 15:58:38 -0500 Subject: Class Labels Message-ID: I'm developing an application and would like the ability to turn a class on at a certain scale, but have it's labels turn on as a user zooms in further. Is this possible with one layer defition and two classes (one for the data and one for it's labels - both come from the same dataset.) I set it up how I think it should work but I only get the data drawn without the labels. Can someone point me in the right direction? It works with two layers (one as polygon and one as annotation), but I think it should be able to be done with just one layer and two classes. Am I wrong? Thanks for your help, Tim This is what the layer looks like in the map file: LAYER NAME "MCD Boundaries" STATUS default DATA basedata/cdreg_ms GROUP MCDs TYPE POLYGON CLASSITEM "Ctv" LABELITEM "Mcd_name" CLASS MAXSCALE 600000 EXPRESSION ('[Ctv]' eq 'T') OUTLINECOLOR 19 54 234 STYLE SYMBOL 'line' SIZE 1 END END CLASS MAXSCALE 400000 EXPRESSION ('[Ctv]' eq 'T') LABEL #Town label COLOR 19 54 234 OUTLINECOLOR 255 255 255 TYPE Bitmap SIZE Tiny POSITION CC PARTIALS False END END METADATA CLASSES "no" SHOWINLEGEND "nope" END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From jemacchi at YAHOO.COM.AR Wed Jun 14 14:17:14 2006 From: jemacchi at YAHOO.COM.AR (=?ISO-8859-1?Q?Jos=E9_Macchi?=) Date: Wed, 14 Jun 2006 18:17:14 -0300 Subject: Geoar 0.1.0 Message-ID: Hello! Geoar 0.1.0 is now available for use of GIS community. Geoar is a WFS/WMS open source client developed in OpenLaszlo. Visit at: http://geoar.sourceforge.net demo : http://www.tsavo.com.ar/geoar/index_archivos/Page392.htm That's all folks... ;-). ___________________________________________________________ 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo http://correo.yahoo.com.ar From szekerest at GMAIL.COM Wed Jun 14 14:37:49 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 14 Jun 2006 23:37:49 +0200 Subject: c#-mapscript, zooming problem on Landsat-Layer In-Reply-To: <20060613102934.65110@gmx.net> Message-ID: Hi Christian, If you are using the "layerObj(mapObj map)" constructor you might have to use the latest CVS version with the following fix included in csmodule.i /*************************************************************************** *** * Preventing to take ownership of the memory when constructing objects * with parent objects (causing nullreference exception, Bug 1743) **************************************************************************** */ %typemap(csconstruct, excode=SWIGEXCODE) layerObj(mapObj map) %{: this($imcall, true) { if (map != null) this.swigCMemOwn = false;$excode } %} %typemap(csconstruct, excode=SWIGEXCODE) classObj(layerObj layer) %{: this($imcall, true) { if (layer != null) this.swigCMemOwn = false;$excode } %} %typemap(csconstruct, excode=SWIGEXCODE) styleObj(classObj parent_class) %{: this($imcall, true) { if (parent_class != null) this.swigCMemOwn = false;$excode } %} The corresponding bug report is: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1743 However your error message is slightly confusing so i would not wonder if it was not the only problem. I am keen to try this out. Best Regards, Tamas Szekeres -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christian Wilmes Sent: Tuesday, June 13, 2006 12:30 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] c#-mapscript, zooming problem on Landsat-Layer Hi all, I try to use I Layer from the Landsat-WMS in my c#-Application. The first time I get the Layer everything works fine but after zooming or just refreshing the map I get the following error: msBuildWMSLayerURLBase(): WMS connection error. One of wms_onlineresource, wms_server_version, wms_name metadata is missing in layer Landsat. Please either provide a valid CONNECTION URL, or provide those values in the layer's metadata. Trying it with other layers everything is ok. The part of the code where I add the Layer: layerObj landsat = new layerObj(myMap); landsat.name = "Landsat"; landsat.type = MS_LAYER_TYPE.MS_LAYER_RASTER; landsat.status = mapscript.MS_OFF; landsat.connectiontype = MS_CONNECTION_TYPE.MS_WMS; landsat.connection = "http://wms.jpl.nasa.gov/wms.cgi?"; hashTableObj metaLandsat = new hashTableObj(); metaLandsat.set("wms_name", "global_mosaic"); metaLandsat.set("wms_server_version", "1.1.0"); metaLandsat.set("wms_onlineresource", "http://wms.jpl.nasa.gov/wms.cgi?"); metaLandsat.set("wms_srs", "EPSG:4326"); metaLandsat.set("wms_format", "image/jpeg"); metaLandsat.set("wms_style", ""); metaLandsat.set("wms_connectiontimeout", "100"); landsat.metadata = metaLandsat; landsat.setProjection("init=epsg:4326"); Hope anybody could help me with that problem. Best Regards Christian -- "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.4/363 - Release Date: 2006.06.13. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 2006.06.14. From kevin at PEOPLEGIS.COM Wed Jun 14 14:42:19 2006 From: kevin at PEOPLEGIS.COM (Kevin Flanders) Date: Wed, 14 Jun 2006 17:42:19 -0400 Subject: sync with server Message-ID: Do folks out there have tools they would recommend that synchronize their local files with their server to make that process more efficient and complete? Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom at MAPLINK.JP Wed Jun 14 17:52:34 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Thu, 15 Jun 2006 09:52:34 +0900 Subject: Anti Alias Problem Message-ID: Thank you Umberto, I'll try the patch. ----- Original Message ----- From: "Umberto Nicoletti" To: "Thomas Hammerlund" Cc: Sent: Wednesday, June 14, 2006 5:12 PM Subject: Re: [UMN_MAPSERVER-USERS] Anti Alias Problem > On 6/14/06, Thomas Hammerlund wrote: >> Thank you for your reply Steve. >> >> I'm running mapserver 4.8.3 and outputting jpegs via the gdal/jpeg >> driver. >> I'm using the gdal driver because the gd/jpeg driver output progressive >> encoded jpegs(which i couldn't use). >> >> Example layer: >> LAYER >> NAME l_koku_u >> STATUS ON >> TILEINDEX "ixs/shb/50000/l_koku_u_ix" >> TILEITEM "location" >> TYPE LINE >> CLASSITEM Code >> CLASS >> MAXSCALE 337000 >> MINSCALE 85001 >> Name style1 >> EXPRESSION 'l_bbbcd' >> STYLE >> COLOR 240 184 53 >> WIDTH 1 >> #ANTIALIAS TRUE >> END >> END >> END >> >> I'm creating my image using perl mapscript. my mistake, the problem is >> not >> with the fonts but with the lines. when I turn style antialiasing on for >> my >> line layers perl throws an internal server error with no error message >> from >> mapserver (or perl). >> >> The outputformat in my mapfile looks like this: >> >> OUTPUTFORMAT >> NAME jpeg >> DRIVER "GDAL/JPEG" >> MIMETYPE "image/jpeg" >> IMAGEMODE RGB >> FORMATOPTION "QUALITY=100" >> EXTENSION "jpg" >> END >> >> Which antialias patch are you referring to? >> > > This one (against gd-2.0.33): > *** gd.c.orig Wed Jun 14 10:06:22 2006 > --- gd.c Mon Jun 12 12:05:28 2006 > *************** > *** 3032,3037 **** > --- 3032,3040 ---- > static void gdImageSetAAPixelColor(gdImagePtr im, int x, int y, int > color, int t) > { > int dr,dg,db,p,r,g,b; > + if(x<0||y<0||x>=im->sx||y>=im->sy) { > + return; > + } > p = gdImageGetPixel(im,x,y); > /* TBB: we have to implement the dont_blend stuff to provide > the full feature set of the old implementation */ > > or this one: > http://lists.maptools.org/pipermail/ka-map-users/2006-March/001069.html > > The latter is probably better, as it uses a gd macro... > > HTH, > Umberto > >> Thank you again, >> Tom >> >> >> ----- Original Message ----- >> From: "Steve Lime" >> To: ; >> Sent: Wednesday, June 14, 2006 2:56 PM >> Subject: Re: [UMN_MAPSERVER-USERS] Anti Alias Problem >> >> >> > Hmmm... I'm suprised turning off style antialiasing would impact font >> > antialiasing. >> > They are totally unrelated. >> > >> > I guess we need a bit more information. What version of MapServer? Has >> > the >> > GD >> > anti-aliasing patch been applied? What output image format? >> > >> > Steve >> > >> >>>> Thomas Hammerlund 06/13/06 1:03 AM >>> >> > Hi Everyone, >> > >> > I've been looking for a solution to this, but haven't been successful >> > so >> > far >> > so I'm hoping someone can help. >> > >> > I'm using Fedora 5, and everything I need is working great. The >> > problem >> > is >> > that when I try the same data set on Fedora 4 or Red Hat Advanced >> > Server, >> > anti alias doesn't work. The problem can be resolved by commenting out >> > the >> > antialias line, but then it makes my font and lines look too choppy. >> > Has >> > anyone seen this? Does anyone know if this is a Linux or a Mapserver >> > problem? >> > >> > Thank you for your help, >> > Tom >> > >> > >> > >> > From janeks.kamerovskis at SILVA.LV Wed Jun 14 23:02:09 2006 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Thu, 15 Jun 2006 09:02:09 +0300 Subject: FW: [UMN_MAPSERVER-USERS] WebSite documentation language glitch Message-ID: From siukola.antti at GMAIL.COM Wed Jun 14 23:44:22 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Thu, 15 Jun 2006 09:44:22 +0300 Subject: MapServer returns cached images as new Message-ID: Hi! I've have a problem with mapserver returning images from cache when navigating on the map. Totally random behavior. Is there some configuration for this or is this a bug? AnttiS From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Jun 14 23:55:36 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Thu, 15 Jun 2006 08:55:36 +0200 Subject: MapServer returns cached images as new Message-ID: Are you using PHP/Mapscript? As an Apache module? Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens antti siukola Verzonden: donderdag 15 juni 2006 8:44 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] MapServer returns cached images as new Hi! I've have a problem with mapserver returning images from cache when navigating on the map. Totally random behavior. Is there some configuration for this or is this a bug? AnttiS 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 siukola.antti at GMAIL.COM Thu Jun 15 00:34:37 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Thu, 15 Jun 2006 10:34:37 +0300 Subject: MapServer returns cached images as new In-Reply-To: <1FEE21DC1054D5119FCC0002A5517B2405F97C52@rws-mdi-dt2-01.agi.rws.minvenw.nl> Message-ID: Yes I am AnttiS On 6/15/06, Eijnden, B. van den (Bart) wrote: > > > > Are you using PHP/Mapscript? As an Apache module? > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens antti siukola > Verzonden: donderdag 15 juni 2006 8:44 > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: [UMN_MAPSERVER-USERS] MapServer returns cached images as new > > > > Hi! > > I've have a problem with mapserver returning images from cache when > navigating on the map. Totally random behavior. Is there some > configuration for this or is this a bug? > > AnttiS > > 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 dovidio at PLANETEK.IT Thu Jun 15 00:43:26 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Thu, 15 Jun 2006 09:43:26 +0200 Subject: Geoar 0.1.0 In-Reply-To: <44907CDA.3040805@yahoo.com.ar> Message-ID: WFS is coming soon...and WMS ???? isn't there support yet ? On 14 Jun 2006 at 18:17, Jos? Macchi wrote: > Hello! Geoar 0.1.0 is now available for use of GIS community. > Geoar is a WFS/WMS open source client developed in OpenLaszlo. > > Visit at: http://geoar.sourceforge.net > demo : http://www.tsavo.com.ar/geoar/index_archivos/Page392.htm > > That's all folks... ;-). > > > > > ___________________________________________________________ > 1GB gratis, Antivirus y Antispam > Correo Yahoo!, el mejor correo web del mundo > http://correo.yahoo.com.ar ******************************************************************************************** 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 Jukka.Rahkonen at MMMTIKE.FI Thu Jun 15 01:26:51 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 15 Jun 2006 11:26:51 +0300 Subject: Class Labels In-Reply-To: A<8c0ac9f20606141358q4d65b742mee52efd786a5a083@mail.gmail.com> Message-ID: Hi, I suppose LABELMAXSCALE in the LAYER object should do this for you. -Jukka- ________________________________ L?hett?j?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Puolesta Tim Badtke L?hetetty: 14. kes?kuuta 2006 23:59 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] Class Labels I'm developing an application and would like the ability to turn a class on at a certain scale, but have it's labels turn on as a user zooms in further. Is this possible with one layer defition and two classes (one for the data and one for it's labels - both come from the same dataset.) I set it up how I think it should work but I only get the data drawn without the labels. Can someone point me in the right direction? It works with two layers (one as polygon and one as annotation), but I think it should be able to be done with just one layer and two classes. Am I wrong? Thanks for your help, Tim This is what the layer looks like in the map file: LAYER NAME "MCD Boundaries" STATUS default DATA basedata/cdreg_ms GROUP MCDs TYPE POLYGON CLASSITEM "Ctv" LABELITEM "Mcd_name" CLASS MAXSCALE 600000 EXPRESSION ('[Ctv]' eq 'T') OUTLINECOLOR 19 54 234 STYLE SYMBOL 'line' SIZE 1 END END CLASS MAXSCALE 400000 EXPRESSION ('[Ctv]' eq 'T') LABEL #Town label COLOR 19 54 234 OUTLINECOLOR 255 255 255 TYPE Bitmap SIZE Tiny POSITION CC PARTIALS False END END METADATA CLASSES "no" SHOWINLEGEND "nope" END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From xavier.mauclaire at GEOTER.FR Thu Jun 15 01:54:56 2006 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Thu, 15 Jun 2006 10:54:56 +0200 Subject: Mapscript ,Mono, Apache and Linux : a great story In-Reply-To: <449078fa.6ee4b39a.1a0b.ffff8f5e@mx.gmail.com> Message-ID: Hi Tamas You will find next information which may help. Thanks in advance for your help The problem is that the server scratches randomly occurs. However, i saw in the logs (if the variable MALLOC_CHECK_ equals 0) the segmentation fault appears a lot of time in GetFeature function. I saw in the mailing List emails concerning this problem with Java. You will find next : 1) piece of code c# 2) mapfile used 3) apache2 error_log file system informations : apache 2.2 (ia upgrade apache yesterday 2.0.54 to 2.2) Mono 1.1.13 mod_mono 1.1.14 mapserver 4.8.3 with mapscript csharp postgresql 8.1.3 Postgis 1.1.1 gdal 1.3.1 geos 2.2.1 gd-2.0.33 libiconv 1.9. Compilation options of Mapserver ./configure --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-postgis=/usr/local/pgsql/bin/pg_config --with-xpm=/usr/local/lib --with-ming --with-png --with-jpeg --with-zlib --with-libiconv--without-tiff --with-threads --with-geos=/usr/local/bin/geos-config --with-gif --with-proj --with-gd=/usr/local -without-wms I'm really need any help. I don't know what to do. I'm sure that architecture choices i've done are good So it has to be working :-) regards 1) Piece of Code where private shapeObj localiser_parcelle(Double dX, Double dY, out String zParcelleIdent){ shapeObj pShape = null; zParcelleIdent = ""; int liRes ; try { // recup?ration de la layer des parcelle // celle dont le nom est CONST_LAYERNAME_PARCELLE layerObj pLayerParcelle = pMapQuery.getLayerByName(cConstantes.CONST_LAYERNAME_PARCELLE); if(pLayerParcelle != null){ // creation du poitn de localisation pointObj pPoint = new pointObj(dX, dY,0.0,0.0 ); // on recherche la parcelle au point cliqu? pLayerParcelle.queryByPoint(pMapQuery,pPoint,mapscript.MS_SINGLE,0); resultCacheObj pRes = pLayerParcelle.getResults(); try{ resultCacheMemberObj pResMember = null; if(pRes.numresults > 0) { //on zoom sur la selection courante pMapQuery.setExtent(pRes.bounds.minx,pRes.bounds.miny,pRes.bounds.maxx,pRes.bounds.maxy); pLayerParcelle.open(); try{ // r?cup?ration de la premi?re parcelle pResMember = pRes.getResult(0); pShape = pLayerParcelle.getFeature(pResMember.shapeindex, pResMember.tileindex); if(pShape != null) { // r?cup?ration de l'identifiant de la parcellle Int32 liRang = -1; // recherche rang champs liRang = cRegInfos.SetLayerFieldRang(pLayerParcelle, cRegInfo.CONST_IDPARCELLE); zParcelleIdent = pShape.getValue(liRang); } //end if }finally{ pLayerParcelle.close(); } //e nd finally } //e nd if } finally { pRes.Dispose(); pRes = null; } //e nd finally } else throw new Exception("Couche des parcelles introuvable"); } finally{ } //end finally return pShape; } // end function 2) Mapfile # # MAP NAME MAPFILE STATUS ON SHAPEPATH "/home/raster971/" # Map image size. Change size as desired SIZE 750 750 IMAGETYPE png # Extent based on full extent of QGIS view EXTENT 635000 1768500 645000 1778700 SYMBOLSET "symbols/symbols.sym" IMAGECOLOR 255 255 255 FONTSET "fonts/fonts.list" # # Start of web interface definition. Only the TEMPLATE parameter # must be specified to display a map. See Mapserver documentation # WEB IMAGEPATH "" IMAGEURL "/tmp/" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" EXTENSION "png" IMAGEMODE RGB TRANSPARENT OFF END SCALEBAR IMAGECOLOR -1 -1 -1 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 LABEL COLOR 0 0 0 END SIZE 150 5 COLOR 255 255 255 UNITS METERS INTERVALS 4 TRANSPARENT on STATUS EMBED STYLE 0 POSITION LR END LAYER NAME limites_communales TYPE POLYGON STATUS DEFAULT CONNECTION "user=postgres password=trucmuche dbname=pprsaintclaude host=localhost port=5432" CONNECTIONTYPE postgis DATA "wkb_geometry from limites_communales" CLASS NAME "commune" END END LAYER NAME zonage_reglementaire TYPE POLYGON STATUS DEFAULT CONNECTION "user=postgres password=trucmuche dbname=pprsaintclaude host=localhost port=5432" CONNECTIONTYPE postgis TEMPLATE "rien.htm" DATA "wkb_geometry from zonage_reglementaire" CLASSITEM "code_reg" CLASS NAME "0" EXPRESSION "0" COLOR 255 255 255 OUTLINECOLOR -1 -1 -1 END CLASS NAME "1" EXPRESSION "1" COLOR 160 224 255 OUTLINECOLOR -1 -1 -1 END CLASS NAME "2" EXPRESSION "2" COLOR 64 192 255 OUTLINECOLOR -1 -1 -1 END CLASS NAME "3" EXPRESSION "3" COLOR 0 0 255 OUTLINECOLOR -1 -1 -1 END CLASS NAME "4" EXPRESSION "4" COLOR 255 128 128 OUTLINECOLOR -1 -1 -1 END CLASS NAME "5" EXPRESSION "5" STYLE SYMBOL "hatch45" COLOR 255 0 0 SIZE 6 WIDTH 1 END END CLASS NAME "6" EXPRESSION "6" COLOR 255 0 0 OUTLINECOLOR -1 -1 -1 END CLASS NAME "7" EXPRESSION "7" COLOR 96 160 0 OUTLINECOLOR -1 -1 -1 END CLASS NAME "8" EXPRESSION "8" COLOR 160 224 255 OUTLINECOLOR 0 255 255 END END LAYER NAME parcelles TYPE POLYGON STATUS DEFAULT TEMPLATE "rien.htm" CONNECTION "user=postgres password=trucmuche dbname=pprsaintclaude host=localhost port=5432" CONNECTIONTYPE postgis DATA "wkb_geometry from parcelles" CLASS NAME "parcelle" COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 END END # alea LAYER NAME alea_mvt METADATA "NOM_ALEA" "Al? mouvement de terrain" END TEMPLATE "rien.htm" TYPE POLYGON STATUS DEFAULT CONNECTION "user=postgres password=trucmuche dbname=pprsaintclaude host=localhost port=5432" CONNECTIONTYPE postgis DATA "wkb_geometry from alea_mouvement_terrain" END LAYER NAME alea_houle METADATA "NOM_ALEA" "Al? houle" END TEMPLATE "rien.htm" TYPE POLYGON STATUS OFF CONNECTION "user=postgres password=trucmuche dbname=pprsaintclaude host=localhost port=5432" CONNECTIONTYPE postgis DATA "wkb_geometry from alea_houle" END LAYER NAME alea_liquefaction METADATA "NOM_ALEA" "Al? liqu?ation" END TEMPLATE "rien.htm" TYPE POLYGON STATUS OFF CONNECTION "user=postgres password=trucmuche dbname=pprsaintclaude host=localhost port=5432" CONNECTIONTYPE postgis DATA "wkb_geometry from alea_liquefaction" END LAYER NAME alea_faille METADATA "NOM_ALEA" "Al? faille active" END TEMPLATE "rien.htm" TYPE POLYGON STATUS OFF CONNECTION "user=postgres password=trucmuche dbname=pprsaintclaude host=localhost port=5432" CONNECTIONTYPE postgis DATA "wkb_geometry from alea_faille" END LAYER NAME alea_sismique METADATA "NOM_ALEA" "Al? sismique" END TEMPLATE "rien.htm" TYPE POLYGON STATUS OFF CONNECTION "user=postgres password=trucmuche dbname=pprsaintclaude host=localhost port=5432" CONNECTIONTYPE postgis DATA "wkb_geometry from alea_sismique" END LAYER NAME alea_inondation METADATA "NOM_ALEA" "Al? inondation" END TEMPLATE "rien.htm" TYPE POLYGON STATUS DEFAULT CONNECTION "user=postgres password=trucmuche dbname=pprsaintclaude host=localhost port=5432" CONNECTIONTYPE postgis DATA "wkb_geometry from alea_inondation" END # # # # LAYER NAME "North Arrow" STATUS OFF ##DEFAULT TRANSFORM OFF TRANSPARENCY 100 POSTLABELCACHE TRUE TYPE POINT FEATURE POINTS 580 720 END END CLASS SYMBOL 'northarrow1' SIZE 50 END END END # Map File 3) Logs in the apache error_log file The following logs show error information of two scratches (After each segmentation fault i have to restart apache). You can notice the the error does not appears et the same location (Garbage collector of mono ??) [Fri Jun 16 10:41:41 2006] [notice] Apache/2.2.0 (Unix) mod_mono/1.1.14 configured -- resuming normal operations Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= Stacktrace: in (wrapper managed-to-native) mapscriptPINVOKE:delete_layerObj (System.Runtime.InteropServices.HandleRef) <0x4> in (wrapper managed-to-native) mapscriptPINVOKE:delete_layerObj (System.Runtime.InteropServices.HandleRef) <0xfe880ea1> in layerObj:Dispose () <0x41> in layerObj:Finalize () <0xe> in (wrapper runtime-invoke) System.Object:runtime_invoke_void (object,intptr,intptr,intptr) <0xc68dba2f> Native stacktrace: /usr/lib/pkgconfig/../../bin/mono(mono_handle_native_sigsegv+0xbb) [0x814ee2b] /usr/lib/pkgconfig/../../bin/mono [0x813b2cf] [0xffffe440] /usr/local/lib/libmapscript.so(msFree+0x21) [0x41a4c951] /usr/local/lib/libmapscript.so(freeLayer+0x35) [0x41a50655] /usr/local/lib/libmapscript.so(CSharp_delete_layerObj+0x7f) [0x41a28fef] [0x42fdeb6c] [0x4185f9aa] [0x4185f947] [0x4185f779] /usr/lib/pkgconfig/../../bin/mono [0x813b180] /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke+0x27) [0x80d63f7] /usr/lib/pkgconfig/../../bin/mono [0x80d2dc5] /usr/lib/pkgconfig/../../bin/mono [0x8114cc7] /usr/lib/pkgconfig/../../bin/mono [0x80d3b7c] /usr/lib/pkgconfig/../../bin/mono [0x8099fb2] /usr/lib/pkgconfig/../../bin/mono [0x80f5067] /usr/lib/pkgconfig/../../bin/mono [0x8113175] /lib/tls/libpthread.so.0 [0x400e5297] /lib/tls/libc.so.6(__clone+0x5e) [0x401e037e] [Fri Jun 16 10:43:55 2006] [notice] caught SIGTERM, shutting down [Fri Jun 16 10:43:56 2006] [notice] Apache/2.2.0 (Unix) mod_mono/1.1.14 configured -- resuming normal operations Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= Stacktrace: in (wrapper managed-to-native) mapscriptPINVOKE:layerObj_getFeature (System.Runtime.InteropServices.HandleRef,int,int) <0x4> in (wrapper managed-to-native) mapscriptPINVOKE:layerObj_getFeature (System.Runtime.InteropServices.HandleRef,int,int) <0xffffff87> in layerObj:getFeature (int,int) <0x27> in siteflash.GetParcelleReglement:localiser_parcelle (double,double,string&) <0x1df> in siteflash.GetParcelleReglement:ProcessRequest (System.Web.HttpContext) <0x56c> in __1:MoveNext () <0x10a0> in System.Web.HttpApplication:Tick () <0x1f> in System.Web.HttpApplication:Start (object) <0x37> in System.Web.HttpApplication:System.Web.IHttpAsyncHandler.BeginProcessRequest (System.Web.HttpContext,System.AsyncCallback,object) <0x68> in System.Web.HttpRuntime:RealProcessRequest (object) <0x1ab> in System.Web.HttpRuntime:ProcessRequest (System.Web.HttpWorkerRequest) <0x2c> in Mono.WebServer.MonoWorkerRequest:ProcessRequest () <0xa> in Mono.WebServer.BaseApplicationHost:ProcessRequest (Mono.WebServer.MonoWorkerRequest) <0x43> in Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],string[]) <0xdc> in (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],string[]) <0xffffff0a> in (wrapper xdomain-dispatch) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (object,byte[]&,byte[]&,int,string,string,string,string,string,int,string,int,string,string[],string[]) <0xfffee09e> in (wrapper xdomain-invoke) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],string[]) <0xffffff6a> in (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],string[]) <0xffba766c> in Mono.WebServer.ModMonoWorker:InnerRun (object) <0x404> in Mono.WebServer.ModMonoWorker:Run (object) <0x17> in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object (object) <0xffffff95> in (wrapper runtime-invoke) System.Object:runtime_invoke_void_object (object,intptr,intptr,intptr) <0xc7371b5f> Native stacktrace: /usr/lib/pkgconfig/../../bin/mono(mono_handle_native_sigsegv+0xbb) [0x814ee2b] /usr/lib/pkgconfig/../../bin/mono [0x813b2cf] [0xffffe440] /lib/tls/libc.so.6(malloc+0x86) [0x40187ea6] /usr/local/pgsql/lib/libpq.so.4(pqResultAlloc+0xd5) [0x42025f25] /usr/local/pgsql/lib/libpq.so.4(pqParseInput3+0x2b7) [0x4202e677] /usr/local/pgsql/lib/libpq.so.4 [0x42026b04] /usr/local/pgsql/lib/libpq.so.4(PQgetResult+0x9d) [0x4202810d] /usr/local/pgsql/lib/libpq.so.4 [0x420282be] /usr/local/lib/libmapscript.so(msPOSTGISLayerRetrievePGVersion+0x43) [0x41ab70e3] /usr/local/lib/libmapscript.so(msPOSTGISLayerRetrievePK+0x31) [0x41ab7331] /usr/local/lib/libmapscript.so [0x41ab7aa4] /usr/local/lib/libmapscript.so(msPOSTGISLayerGetShape+0x7d) [0x41ab7e5d] /usr/local/lib/libmapscript.so(msPOSTGISLayerGetShapeVT+0x23) [0x41ab85b3] /usr/local/lib/libmapscript.so(msLayerGetShape+0x2e) [0x41a6db3e] /usr/local/lib/libmapscript.so(CSharp_layerObj_getFeature+0x46) [0x41a29636] [0x41861db2] [0x41861cd0] [0x41860ea8] [0x4186048d] [0x416f6421] [0x416f52a8] [0x416f1668] [0x416f1549] [0x41251854] [0x41251385] [0x41251343] [0x41250544] [0x41235535] [0x41234c9c] [0x41234a7b] [0x41222807] [0x41222643] [0x40dc9bdd] [0x40dc9730] [0x40dc96f4] [0x40dc964e] /usr/lib/pkgconfig/../../bin/mono [0x813b180] /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke+0x27) [0x80d63f7] /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke_array+0x270) [0x80d78c0] /usr/lib/pkgconfig/../../bin/mono(mono_message_invoke+0xc5) [0x80d93d5] /usr/lib/pkgconfig/../../bin/mono [0x80a509f] /usr/lib/pkgconfig/../../bin/mono [0x80a58c9] /usr/lib/pkgconfig/../../bin/mono [0x8099fb2] /usr/lib/pkgconfig/../../bin/mono [0x80f5067] /usr/lib/pkgconfig/../../bin/mono [0x8113175] /lib/tls/libpthread.so.0 [0x400e5297] /lib/tls/libc.so.6(__clone+0x5e) [0x401e037e] ----------------------------------------- Xavier Mauclaire ------------------------------------------------------- _____ De : Tamas Szekeres [mailto:szekerest at gmail.com] Envoy? : mercredi 14 juin 2006 23:01 ? : 'Xavier Mauclaire'; MAPSERVER-USERS at LISTS.UMN.EDU Objet : RE: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : a great story Hi, It would be helpful if you could you file a bug describing the steps to reproduce this problem (including code sample and map file if necessary). I guess you have called a getFeature on a postgis layer which is generally not uncommon and have been tested many times. However i am not sure about the application environment and the threading issues in this case. Thanks, Tamas Szekeres _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Xavier Mauclaire Sent: Tuesday, June 13, 2006 9:44 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : a great story HI I'm developping a web site using Mono (1.1.13) Apache (2.0.54) MApscript (4.8.3). I'm using Vs2003 to develop and linux as deployement platform. All works well with windows but on linux i get the folowing error in th error_log apache file and the web server shutdowns. Any help well be appreciated. I don't know what to do regards ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= Stacktrace: in (wrapper managed-to-native) mapscriptPINVOKE:layerObj_getFeature (System.Runtime.InteropServices.HandleRef,int,int) <0x4> in (wrapper managed-to-native) mapscriptPINVOKE:layerObj_getFeature (System.Runtime.InteropServices.HandleRef,int,int) <0xffffff87> in layerObj:getFeature (int,int) <0x27> in siteflash.GetParcelleReglement:localiser_parcelle (double,double,string&) <0x1ca> in siteflash.GetParcelleReglement:ProcessRequest (System.Web.HttpContext) <0x56c> in __1:MoveNext () <0x10a0> in System.Web.HttpApplication:Tick () <0x1f> in System.Web.HttpApplication:Start (object) <0x37> in System.Web.HttpApplication:System.Web.IHttpAsyncHandler.BeginProcessRequest (System.Web.HttpContext,System.AsyncCallback,object) <0x68> in System.Web.HttpRuntime:RealProcessRequest (object) <0x1ab> in System.Web.HttpRuntime:ProcessRequest (System.Web.HttpWorkerRequest) <0x2c> in Mono.WebServer.MonoWorkerRequest:ProcessRequest () <0xa> in Mono.WebServer.BaseApplicationHost:ProcessRequest (Mono.WebServer.MonoWorkerRequest) <0x43> in Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],string[]) <0xdc> in (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],string[]) <0xffffff0a> in (wrapper xdomain-dispatch) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (object,byte[]&,byte[]&,int,string,string,string,string,string,int,string,int,string,string[],string[]) <0xffeecda6> in (wrapper xdomain-invoke) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],string[]) <0xffffff6a> in (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],string[]) <0xffca7c74> in Mono.WebServer.ModMonoWorker:InnerRun (object) <0x404> in Mono.WebServer.ModMonoWorker:Run (object) <0x17> in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object (object) <0xffffff95> in (wrapper runtime-invoke) System.Object:runtime_invoke_void_object (object,intptr,intptr,intptr) <0xc74b289f> Native stacktrace: /usr/lib/pkgconfig/../../bin/mono(mono_handle_native_sigsegv+0xbb) [0x814ee2b] /usr/lib/pkgconfig/../../bin/mono [0x813b2cf] [0xffffe440] /lib/tls/libc.so.6(malloc+0x86) [0x40187ea6] /usr/local/lib/libmapscript.so(strstrIgnoreCase+0x47) [0x417f8fd7] /usr/local/lib/libmapscript.so [0x417f90e4] /usr/local/lib/libmapscript.so(msPOSTGISLayerGetShape+0x7d) [0x417f973d] /usr/local/lib/libmapscript.so(msPOSTGISLayerGetShapeVT+0x23) [0x417f9e93] /usr/local/lib/libmapscript.so(msLayerGetShape+0x2e) [0x417a8d6e] /usr/local/lib/libmapscript.so(CSharp_layerObj_getFeature+0x46) [0x41764766] [0x41721a9a] [0x417219b8] [0x41720b93] [0x4172023d] [0x415b64f9] [0x415b5380] [0x415b1768] [0x415b1649] [0x411111f4] [0x41110d25] [0x41110ce3] [0x4111029c] [0x410f54e5] [0x410f4c4c] [0x410f4a2b] [0x40fe14bf] [0x40fe12fb] [0x40c88e9d] [0x40c889f0] [0x40c889b4] [0x40c8890e] /usr/lib/pkgconfig/../../bin/mono [0x813b180] /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke+0x27) [0x80d63f7] /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke_array+0x270) [0x80d78c0] /usr/lib/pkgconfig/../../bin/mono(mono_message_invoke+0xc5) [0x80d93d5] /usr/lib/pkgconfig/../../bin/mono [0x80a509f] /usr/lib/pkgconfig/../../bin/mono [0x80a58c9] /usr/lib/pkgconfig/../../bin/mono [0x8099fb2] /usr/lib/pkgconfig/../../bin/mono [0x80f5067] /usr/lib/pkgconfig/../../bin/mono [0x8113175] /lib/tls/libpthread.so.0 [0x400e5297] /lib/tls/libc.so.6(__clone+0x5e) [0x401e037e] [Tue Jun 13 17:45:12 2006] [notice] caught SIGTERM, shutting down [Tue Jun 13 17:45:21 2006] [warn] module mono_module is already loaded, skipping [Tue Jun 13 17:45:22 2006] [notice] Apache/2.0.54 (Linux/SUSE) configured -- resuming normal operations Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. [Tue Jun 13 17:53:44 2006] [notice] caught SIGTERM, shutting down ----------------------------------------- Xavier Mauclaire ------------------------------------------------------- -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.4/363 - Release Date: 2006.06.13. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 2006.06.14. -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.vdeijnden at AGI.RWS.MINVENW.NL Thu Jun 15 00:32:06 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Thu, 15 Jun 2006 09:32:06 +0200 Subject: MapServer returns cached images as new Message-ID: It's still a known issue unfortunately, check: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1322 Best regards, Bart -----Oorspronkelijk bericht----- Van: antti siukola [mailto:siukola.antti at gmail.com] Verzonden: donderdag 15 juni 2006 9:35 Aan: Eijnden, B. van den (Bart) CC: MAPSERVER-USERS at lists.umn.edu Onderwerp: Re: [UMN_MAPSERVER-USERS] MapServer returns cached images as new Yes I am AnttiS On 6/15/06, Eijnden, B. van den (Bart) wrote: > > > > Are you using PHP/Mapscript? As an Apache module? > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens antti siukola > Verzonden: donderdag 15 juni 2006 8:44 > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: [UMN_MAPSERVER-USERS] MapServer returns cached images as new > > > > Hi! > > I've have a problem with mapserver returning images from cache when > navigating on the map. Totally random behavior. Is there some > configuration for this or is this a bug? > > AnttiS > > 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. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From siukola.antti at GMAIL.COM Thu Jun 15 03:03:58 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Thu, 15 Jun 2006 13:03:58 +0300 Subject: MapServer returns cached images as new In-Reply-To: <1FEE21DC1054D5119FCC0002A5517B2405F97C53@rws-mdi-dt2-01.agi.rws.minvenw.nl> Message-ID: Did you get that patch working? The target milestone seems to be for 4.8 so we can expect it to be implemented in 4.9 serie at the latest? Maybe ;) On 6/15/06, Eijnden, B. van den (Bart) wrote: > > > > It's still a known issue unfortunately, check: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1322 > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: antti siukola [mailto:siukola.antti at gmail.com] > Verzonden: donderdag 15 juni 2006 9:35 > Aan: Eijnden, B. van den (Bart) > CC: MAPSERVER-USERS at lists.umn.edu > Onderwerp: Re: [UMN_MAPSERVER-USERS] MapServer returns cached images as > new > > > > Yes I am > > AnttiS > > On 6/15/06, Eijnden, B. van den (Bart) > wrote: > > > > > > > > Are you using PHP/Mapscript? As an Apache module? > > > > Best regards, > > Bart > > > > -----Oorspronkelijk bericht----- > > Van: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens antti > siukola > > Verzonden: donderdag 15 juni 2006 8:44 > > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > > Onderwerp: [UMN_MAPSERVER-USERS] MapServer returns cached images as new > > > > > > > > Hi! > > > > I've have a problem with mapserver returning images from cache when > > navigating on the map. Totally random behavior. Is there some > > configuration for this or is this a bug? > > > > AnttiS > > > > 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 jonnyprof at GMAIL.COM Thu Jun 15 03:53:24 2006 From: jonnyprof at GMAIL.COM (John Prof) Date: Thu, 15 Jun 2006 12:53:24 +0200 Subject: MyGis connection question In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD51339F5@s-sp22.pca.state.mn.us> Message-ID: Thaks again David, I thought that was possible. I'd read the 'Ogr Direct Connection to Mysql' page and I will use it. I don't want to have shp, shx, dbf and duplicate database data to prevent errors. 2006/6/15, Fawcett, David : > > John, > > My understanding is that MyGIS support has not been maintained in > MapServer for a long time. Recently, direct connection through OGR to MySQL > for spatial support. > > Take a look at this page. > > David. > > > -----Original Message----- > From: UMN MapServer Users List on behalf of John Prof > Sent: Wed 6/14/2006 10:50 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MyGis connection question > > Hi David, > I would prefer use the spatial extensions but I can't find nothing about. > Your method works fine. > Thanks > > 2006/6/13, Fawcett, David : > > > > John, > > > > Take a look at this: http://mapserver.gis.umn.edu/docs/howto/ogrmysql > > > > You would need to change your data structure so that you store your x > and > > y values in separate columns. > > > > Note that this method doesn't use MyGIS, it uses a direct connection > > driver in OGR, so your MapServer binary would need to be compiled with > OGR > > support (as most are). > > > > David. > > > > -----Original Message----- > > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > *On > > Behalf Of *John Prof > > *Sent:* Tuesday, June 13, 2006 4:03 AM > > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > > *Subject:* [UMN_MAPSERVER-USERS] MyGis connection question > > > > Hello, > > > > I'm trying to connect mapserver's map with a mysql datatable like this: > > > > id int > > name varchar(20) > > description varchar(100) > > location point > > > > I'd like to create a shape with the points and the labels of the name. > Is > > it possible? I've tried many ways but I have errors. > > I'd like to do something like this example: > > > > > > LAYER > > > > CONNECTIONTYPE mygis > > NAME "City" > > CONNECTION "host:user:passwd:database:bin" > > DATA "location from city" > > TYPE POINT > > STATUS ON > > . > > . > > . > > END > > > > It fails. I've tried with some mysql functions like AsBinary(point), but > > it doesn't work. > > I must use sh2mysql structure to store data in my database? Is not > > possible make my simply case? > > > > Thanks and sorry for my english :p > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From erik1969 at MAILHAVEN.COM Thu Jun 15 04:04:58 2006 From: erik1969 at MAILHAVEN.COM (Erik Baluba) Date: Thu, 15 Jun 2006 13:04:58 +0200 Subject: Character set encoding problem Message-ID: Hi ?yvind, ... > I have data in an Oracle 10gR2 database in ISO-8859-1 encoded columns > (WE8ISO8859P1) and the names of my geometries appear correctly in a > sqlplus search. But on the test mapserver PNG all characters beyond > decimal 127 (such as ???) come out as '?'. What is the NLS_LANG setting on the oracle client computer running your webserver? If it is a Norwegian or English Windows the codepage is WIN1252 and your NLS_LANG would be something like Norwegian_Norway.WE8MSWIN1252. If so I see nothing wrong with your setup because character encodings for '???' are the same in both ISO-8859-1 and WIN1252. Still, you can try to set the ENCODING to CP1252 in your mapping file to see if it helps. erik > I have defined the encoding for the layer to 'ISO-8859-1'. That gives > me the labels with '?' for the problem characters. If I write > something wrong for the encoding, such as 'ISO-8859-', I get no labels > at all, which is right according to the documentation. But if I enter > a totally different encoding, such as 'EUC-JP', I get the same > situation as with 'ISO-8859-1': Labels with '?' for the problem > characters. > > Here is the layer from my mapfile: > > LAYER > NAME N250ADM > CONNECTIONTYPE oraclespatial > CONNECTION "username/pw at service" > DATA "GEOM FROM (select geom, navn from USD_KART_KARTV.KVN250_ADM_F) > USING SRID 82344" > STATUS on > TYPE polygon > MINSCALE 50001 > LABELCACHE on > LABELITEM NAVN > CLASS > NAME "N 250 adm" > STYLE > COLOR 200 200 200 > OUTLINECOLOR 0 0 0 > END > LABEL > ENCODING ISO-8859-1 > COLOR 0 0 0 > SIZE 10 > TYPE truetype > FONT luximr > END > END > END > > > I would be most grateful for any suggestion! > > > Kind regards, > > ?yvind Eide > From b.vdeijnden at AGI.RWS.MINVENW.NL Thu Jun 15 03:27:04 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Thu, 15 Jun 2006 12:27:04 +0200 Subject: MapServer returns cached images as new Message-ID: No unfortunately the patch did not work for me. I really hope it does get fixed in 4.9, since otherwise running PHP as a module is still problematic and needs workarounds. Best regards, Bart -----Oorspronkelijk bericht----- Van: antti siukola [mailto:siukola.antti at gmail.com] Verzonden: donderdag 15 juni 2006 12:04 Aan: Eijnden, B. van den (Bart) CC: MAPSERVER-USERS at lists.umn.edu Onderwerp: Re: [UMN_MAPSERVER-USERS] MapServer returns cached images as new Did you get that patch working? The target milestone seems to be for 4.8 so we can expect it to be implemented in 4.9 serie at the latest? Maybe ;) On 6/15/06, Eijnden, B. van den (Bart) wrote: > > > > It's still a known issue unfortunately, check: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1322 > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: antti siukola [mailto:siukola.antti at gmail.com] > Verzonden: donderdag 15 juni 2006 9:35 > Aan: Eijnden, B. van den (Bart) > CC: MAPSERVER-USERS at lists.umn.edu > Onderwerp: Re: [UMN_MAPSERVER-USERS] MapServer returns cached images as > new > > > > Yes I am > > AnttiS > > On 6/15/06, Eijnden, B. van den (Bart) > wrote: > > > > > > > > Are you using PHP/Mapscript? As an Apache module? > > > > Best regards, > > Bart > > > > -----Oorspronkelijk bericht----- > > Van: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens antti > siukola > > Verzonden: donderdag 15 juni 2006 8:44 > > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > > Onderwerp: [UMN_MAPSERVER-USERS] MapServer returns cached images as new > > > > > > > > Hi! > > > > I've have a problem with mapserver returning images from cache when > > navigating on the map. Totally random behavior. Is there some > > configuration for this or is this a bug? > > > > AnttiS > > > > 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. > ************************************************************************ > > 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 oyvind.eide at MUSPRO.UIO.NO Thu Jun 15 05:33:34 2006 From: oyvind.eide at MUSPRO.UIO.NO (=?iso-8859-1?Q?=D8yvind?= Eide) Date: Thu, 15 Jun 2006 14:33:34 +0200 Subject: Character set encoding problem In-Reply-To: <008801c6906b$8c00c940$e28bfea9@eriknb> Message-ID: On Thu, Jun 15, 2006 at 01:04:58PM +0200, Erik Baluba wrote: > Hi ?yvind, > ... > >I have data in an Oracle 10gR2 database in ISO-8859-1 encoded columns > >(WE8ISO8859P1) and the names of my geometries appear correctly in a > >sqlplus search. But on the test mapserver PNG all characters beyond > >decimal 127 (such as ???) come out as '?'. > > What is the NLS_LANG setting on the oracle client computer running your > webserver? If it is a Norwegian or English Windows the codepage is WIN1252 > and your NLS_LANG would be something like Norwegian_Norway.WE8MSWIN1252. If > so I see nothing wrong with your setup because character encodings for > '???' are the same in both ISO-8859-1 and WIN1252. Still, you can try to > set the ENCODING to CP1252 in your mapping file to see if it helps. Thank you Eric! The web server is running on a RHEL linux box. By adding the line SetEnv NLS_LANG "norwegian_norway.we8iso8859p1" to the apache conf file (in our case an extra httpd.conf file read after all the standard ones), the character set was fixed! Kind regards, ?yvind Eide From jemacchi at YAHOO.COM.AR Thu Jun 15 06:14:23 2006 From: jemacchi at YAHOO.COM.AR (=?ISO-8859-1?Q?Jos=E9_Macchi?=) Date: Thu, 15 Jun 2006 10:14:23 -0300 Subject: Geoar 0.1.0 Message-ID: WFS in not available right now. WMS is available but to config it, you have to change a datasource tag in source code.(future versions will be XML configurable). If you want to contribute, and improve it ...you are welcome ;-). More people involved, better. ___________________________________________________________ 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo http://correo.yahoo.com.ar From ad at IONICSOFT.COM Thu Jun 15 06:17:27 2006 From: ad at IONICSOFT.COM (Arnaud Diederen) Date: Thu, 15 Jun 2006 15:17:27 +0200 Subject: WMS Capabilities: LatLonBoundingBox Message-ID: Hello, I'm absolutely new to mapserver, so I downloaded the demo for the 4.x version (I'm using Debian GNU/Linux). The demo pages work ok, but when I do a GetCapabilities operation (http://localhost/cgi-bin/mapserv?service=WMS&version=1.3&map=/var/www/workshop/itasca.map&request=GetCapabilities - local intranet, sorry :( ), I get the attached XML document. What I'm wondering is why the LatLonBoundingBox tags holds those values, since they are supposed to be in 4326, if I read the WMS spec right. Am I doing something wrong? I looked the archives, and googled the internet, but I couldn't find any help on this exact topic. I would definitely appreciate if somebody could provide any kind of help; would it be just pointers on what I have to do/fix. Best regards, Arnaud -------------- next part -------------- A non-text attachment was scrubbed... Name: weird-latlon.xml Type: text/xml Size: 13286 bytes Desc: not available URL: From umberto.nicoletti at GMAIL.COM Thu Jun 15 13:04:42 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 15 Jun 2006 22:04:42 +0200 Subject: JavaMapscript SIGSEGV In-Reply-To: <5341EB12706351489DEFADBFEF06CC68412434@mercurio.sc.com> Message-ID: Heraldo, I have tried querying a postgis layer and it works great. This is the code that I use: protected List queryLayerByPoint(int i, pointObj queryPoint) { List results = new ArrayList(); layerObj layer = map.getLayer(i); if (layer != null && isVisible(layer)) { if (log.isDebugEnabled()) { log.debug("Querying layer: " + layer.getName()); } if (layer.queryByPoint(map, queryPoint, mapscript.MS_MULTIPLE, -1) == mapscript.MS_SUCCESS) { //resultCacheObj resultCache = layer.ggetResultcache(); if (layer.open() == mapscript.MS_SUCCESS) { //for (int j=0;j wrote: > Thank you very much. > > Heraldo G. Rodriguez > hrodriguez at siscat.com.ar > TE 4326-4002 int 255 > Dpto. Desarrollo > Sistemas Catastrales S.A > > > > -----Mensaje original----- > De: Umberto Nicoletti [mailto:umberto.nicoletti at gmail.com] > Enviado el: martes, 13 de junio de 2006 10:13 > Para: Rodriguez, Heraldo > CC: MAPSERVER-USERS at lists.umn.edu > Asunto: Re: [UMN_MAPSERVER-USERS] JavaMapscript SIGSEGV > > Open an issue on bugzilla (http://mapserver.gis.umn.edu/bugs/) and > attach the three logs. > I'll look into this asap. > > Umberto > > On 6/13/06, Rodriguez, Heraldo wrote: > > > > > > Humberto , > > This is the method that is crashing. I am attaching a couple of > > logs too. (line shapeObj shape = l.getFeature(r.getShapeindex(), -1); ) > > I hope it helps. Thanks > > > > public List queryPorPunto(int x, int y) { > > List lista = new ArrayList(); > > pointObj p = new pointObj(x, y, 0); > > String row = ""; > > > > layerObj l = map.getLayerByName("entorno"); > > l.queryByPoint(map, p, mapscriptConstants.MS_MULTIPLE, > -1); > > > > resultCacheObj results = l.getResults(); > > if (results == null) > > return lista; > > > > l.open(); > > for (int i = 0; i < results.getNumresults(); i++) > > { > > resultCacheMemberObj r = > > results.getResult(i); > > shapeObj shape = > > l.getFeature(r.getShapeindex(), -1); > > row = ""; > > for (int j = 0; j < shape.getNumvalues(); > > j++) > > { > > row = row + "" + > > shape.getValue(j) + ""; > > } > > lista.add(row); > > } > > l.close(); > > return lista; > > } > > > > > > > > > > > > > > Heraldo G. Rodriguez > > hrodriguez at siscat.com.ar > > TE 4326-4002 int 255 > > Dpto. Desarrollo > > Sistemas Catastrales S.A > > > > > > -----Mensaje original----- > > De: Umberto Nicoletti [mailto:umberto.nicoletti at gmail.com] > > Enviado el: martes, 13 de junio de 2006 3:50 > > Para: Rodriguez, Heraldo > > CC: MAPSERVER-USERS at lists.umn.edu > > Asunto: Re: [UMN_MAPSERVER-USERS] JavaMapscript SIGSEGV > > > > Hi, > > please post the hs_error_* file and the Java program that is causing the > > crash. > > > > Thanks, > > Umberto > > > > > > On 6/12/06, Rodriguez, Heraldo wrote: > > > Hi guys, > > > I have started developing with java mapscript and I have the > > same > > > problems with the shapeObj class. > > > Every time I want to create a new shape I get the message > > > > # > > > > # An unexpected error has been detected by HotSpot Virtual Machine: > > > > # > > > > # SIGSEGV (0xb) at pc=0x00002aaaaae43d5b, pid=23120, > tid=46912501734144 > > > > # > > > > # Java VM: Java HotSpot(TM) Client VM (1.4.2_11-b06 mixed mode) > > > > # Problematic frame: > > > ... > > > > > > I am using mapserver 4.8.1 with java 1.4.2_11 version under Debian > 3.1. > > > > > > Mapserver Compiling options > > > ./configure --with-freetype=/usr/local/bin/freetype-config > > > --with-zlib=/usr/lib --with-png=/usr/local/lib --with-jpeg=/usr/lib > > > --with-libiconv=/usr/local/lib --with-gd=/usr/local/bin/gdlib-config > > > --with-pdf=/usr/local/lib --with-proj=/usr/local/lib --with-threads > > > --with-geos=/usr/local/bin/geos-config > > --with-ogr=/usr/local/bin/gdal-config > > > --with-gdal=/usr/local/bin/gdal-config > > > --with-postgis=/usr/local/pgsql/bin/pg_config --with-wfs --with-wcs > > > --with-wmsclient --with-curl-config=/usr/local/bin/curl-config > > > > > > Steps to compile java mapscript > > > Run make > > > Make interface (swig version 1.3.29) > > > Make all > > > > > > I looked for a solution in google and mapserver documentation without > > > success. Could you please give me a clue to solve this? Thanks in > > > advance. > > > Best regards. > > > > > > > > > > > > Heraldo G. Rodriguez > > > hrodriguez at siscat.com.ar > > > TE 4326-4002 int 255 > > > Dpto. Desarrollo > > > Sistemas Catastrales S.A > > > > > > > > > > > > -----Mensaje original----- > > > De: Andre Sachs [mailto:asachs at CLUE.CO.ZA] > > > Enviado el: mi?rcoles, 31 de mayo de 2006 5:16 > > > Para: MAPSERVER-USERS at LISTS.UMN.EDU > > > Asunto: Re: [UMN_MAPSERVER-USERS] JavaMapscript SIGSEGV > > > > > > On 31 May 2006, at 8:37 AM, Umberto Nicoletti wrote: > > > > > > > Andre, could you report whether the patch attached to gentoo bugzilla > > > > works or not? > > > > > > Hi Umberto, > > > > > > Sorry for not replying earlier. > > > > > > The patch works in a 32 intel environment, thanks ! > > > > > > Due to time constraints on my current project I ditched my AMD 64, > > > Java 1.5 64 bit environment in favour of Intel 32 bit and this has > > > resolved my problem. > > > > > > The problems I experienced are somewhere in the application stack, > > > either in : > > > - Sun's 64 bit 1.5 jdk > > > - Gentoo's glibc 2.3.5-r2 > > > - Linux kernel 2.6.16 > > > > > > Once my current project is over (+- 3 weeks) I will be have some > > > spare time to hunt down the culprit. > > > > > > Regards, > > > Andre > > > -- > > > Andre Sachs > > > IT Architect, Clue Technologies PTY (LTD) > > > email: andre at clue.co.za > > > > > > > > > > > > From angusd at MIDWESTSURVEYS.COM Thu Jun 15 11:04:51 2006 From: angusd at MIDWESTSURVEYS.COM (Angus Dickey) Date: Thu, 15 Jun 2006 12:04:51 -0600 Subject: WMS Capabilities: LatLonBoundingBox In-Reply-To: <44915DE7.7010308@ionicsoft.com> Message-ID: I am having a similar problem. Apparently Mapserver will automatically calculate the bounding box if you define it using epsg codes in the map file ex: PROJECTION "init=epsg:4269" END This works for me when I use shapefiles, i.e. it calculates the correct bounding box in the right coordinates, however all my Postgis layers end up with a bounding box of: minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" Are youusing postgis layers? Does anybody know how to get mapserver to calculate the correct bounding box for postgis layers? Thanks for any help, ~Angus -----Original Message----- From: Arnaud Diederen [mailto:ad at IONICSOFT.COM] Sent: June 15, 2006 7:17 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] WMS Capabilities: LatLonBoundingBox Hello, I'm absolutely new to mapserver, so I downloaded the demo for the 4.x version (I'm using Debian GNU/Linux). The demo pages work ok, but when I do a GetCapabilities operation (http://localhost/cgi-bin/mapserv?service=WMS&version=1.3&map=/var/www/workshop/itasca.map&request=GetCapabilities - local intranet, sorry :( ), I get the attached XML document. What I'm wondering is why the LatLonBoundingBox tags holds those values, since they are supposed to be in 4326, if I read the WMS spec right. Am I doing something wrong? I looked the archives, and googled the internet, but I couldn't find any help on this exact topic. I would definitely appreciate if somebody could provide any kind of help; would it be just pointers on what I have to do/fix. Best regards, Arnaud From angusd at MIDWESTSURVEYS.COM Thu Jun 15 14:39:59 2006 From: angusd at MIDWESTSURVEYS.COM (Angus Dickey) Date: Thu, 15 Jun 2006 15:39:59 -0600 Subject: WMS Capabilities: LatLonBoundingBox In-Reply-To: <"*"@MHS> Message-ID: Thanks for the response Ross...makes sense. If anybody is interested what I ended up doing was running this: SELECT extent(geom_column) FROM layer_name; On my spatial layer and using the output in the wms_extent tag in a mapfile: "wms_extent" "-120.154159545898 48.9968566894531 -101.362113952637 60.0001945495605" ~Angus -----Original Message----- From: Ross Elliott [mailto:ross.elliott at infoterra-global.com] Sent: June 15, 2006 3:23 PM To: Angus Dickey Subject: RE: [UMN_MAPSERVER-USERS] WMS Capabilities: LatLonBoundingBox Mapserver will not calculate the extent for postgis layers as this operation can take a very long time on large layers. -----Original Message----- From: UMN MapServer Users List on behalf of Angus Dickey Sent: Thu 6/15/2006 7:04 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WMS Capabilities: LatLonBoundingBox I am having a similar problem. Apparently Mapserver will automatically calculate the bounding box if you define it using epsg codes in the map file ex: PROJECTION "init=epsg:4269" END This works for me when I use shapefiles, i.e. it calculates the correct bounding box in the right coordinates, however all my Postgis layers end up with a bounding box of: minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" Are youusing postgis layers? Does anybody know how to get mapserver to calculate the correct bounding box for postgis layers? Thanks for any help, ~Angus -----Original Message----- From: Arnaud Diederen [mailto:ad at IONICSOFT.COM] Sent: June 15, 2006 7:17 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] WMS Capabilities: LatLonBoundingBox Hello, I'm absolutely new to mapserver, so I downloaded the demo for the 4.x version (I'm using Debian GNU/Linux). The demo pages work ok, but when I do a GetCapabilities operation (http://localhost/cgi-bin/mapserv?service=WMS&version=1.3&map=/var/www/workshop/itasca.map&request=GetCapabilities - local intranet, sorry :( ), I get the attached XML document. What I'm wondering is why the LatLonBoundingBox tags holds those values, since they are supposed to be in 4326, if I read the WMS spec right. Am I doing something wrong? I looked the archives, and googled the internet, but I couldn't find any help on this exact topic. I would definitely appreciate if somebody could provide any kind of help; would it be just pointers on what I have to do/fix. Best regards, Arnaud From jeff2005 at SVS.GSFC.NASA.GOV Thu Jun 15 14:46:39 2006 From: jeff2005 at SVS.GSFC.NASA.GOV (Jeff de La Beaujardiere) Date: Thu, 15 Jun 2006 17:46:39 -0400 Subject: re-using raster CLASS definitions In-Reply-To: Message-ID: Is there a way to re-use raster class definitions in a mapfile? I have several shapefiles with a large number of polygon types mapped to different colors. The same types appear in all the files. At present I duplicate all the CLASS entries in each LAYER, but I would like to shorten the mapfile by collecting them somewhere. All the layers are in the same GROUP, if that helps. Thanks, Jeff DLB From rjames57 at YAHOO.COM Thu Jun 15 15:47:01 2006 From: rjames57 at YAHOO.COM (Randy James) Date: Thu, 15 Jun 2006 15:47:01 -0700 Subject: re-using raster CLASS definitions In-Reply-To: <4491D53F.5010403@svs.gsfc.nasa.gov> Message-ID: Hi Jeff Creating a tile index may be what you want. gdal has one also you can use tile4ms in your cgi-bin check it out at: http://mapserver.gis.umn.edu/docs/reference/utilityreference/tile4ms Randy --- Jeff de La Beaujardiere wrote: > Is there a way to re-use raster class definitions in a mapfile? I > have several > shapefiles with a large number of polygon types mapped to different > colors. The > same types appear in all the files. At present I duplicate all the > CLASS entries > in each LAYER, but I would like to shorten the mapfile by > collecting them > somewhere. All the layers are in the same GROUP, if that helps. > > Thanks, > Jeff DLB > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From szekerest at GMAIL.COM Thu Jun 15 16:14:45 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 16 Jun 2006 01:14:45 +0200 Subject: Mapscript ,Mono, Apache and Linux : a great story In-Reply-To: Message-ID: Xavier, All of the stack traces you reported represents me that you possibly have a layerObj reference with a previoulsy released native memory segment. This may occur if 2 or more layerObj references exclusively own the same native memory and one of them is disposed or goes out of scope. By this time i know one situation causing this problem is creating the layer using the ?layerObj(mapObj map)? constructor with non null map parameter. (classobj(layerobj) and styleObj(classObj) are also suffer from this issue). This problem was corrected in the current CVS HEAD. So it would be important to know if you have some special handling of these objects in your application or all of these object was created by parsing the map file. The given code fragment should theoretically work, however you should check the number of the results before calling getResult. Tamas _____ From: Xavier Mauclaire [mailto:xavier.mauclaire at geoter.fr] Sent: Thursday, June 15, 2006 10:55 AM To: 'Tamas Szekeres'; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : a great story Hi Tamas You will find next information which may help. Thanks in advance for your help The problem is that the server scratches randomly occurs. However, i saw in the logs (if the variable MALLOC_CHECK_ equals 0) the segmentation fault appears a lot of time in GetFeature function. I saw in the mailing List emails concerning this problem with Java. You will find next : 1) piece of code c# 2) mapfile used 3) apache2 error_log file system informations : apache 2.2 (ia upgrade apache yesterday 2.0.54 to 2.2) Mono 1.1.13 mod_mono 1.1.14 mapserver 4.8.3 with mapscript csharp postgresql 8.1.3 Postgis 1.1.1 gdal 1.3.1 geos 2.2.1 gd-2.0.33 libiconv 1.9. Compilation options of Mapserver ./configure --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-postgis=/usr/local/pgsql/bin/pg_config --with-xpm=/usr/local/lib --with-ming --with-png --with-jpeg --with-zlib --with-libiconv--without-tiff --with-threads --with-geos=/usr/local/bin/geos-config --with-gif --with-proj --with-gd=/usr/local -without-wms I'm really need any help. I don't know what to do. I'm sure that architecture choices i've done are good So it has to be working :-) regards ?.. -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.0/366 - Release Date: 2006.06.15. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.0/366 - Release Date: 2006.06.15. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lasse.korhonen at KOKKOLA.FI Thu Jun 15 23:18:26 2006 From: lasse.korhonen at KOKKOLA.FI (Lasse Korhonen) Date: Thu, 15 Jun 2006 23:18:26 -0700 Subject: oracle spatial In-Reply-To: <20060613140027.240700@gmx.net> Message-ID: Hi Daniel, we're facing exactly the same problems you described. Swapping of dll-files is enough to make previously working maps totally unfunctional. Maps based on oracle spatial, shapefiles or MapInfo-files all give an Apache related message "Internal Server Error". Last row in the error.log states "Premature end of script headers: mapserv.exe". I can get errors from MapServer if I break the syntax in map-file, and mistakes in SQL-statements raise errors from Oracle (connection is fine?). Therefore I believe the problem is not related to .map-files or database at all. I'm wondering if this strange behaviour is somehow related to "wrong" software environment. So far we have tested following combinations with no luck: MS4W v1.5.4 & Windows NT 4.0 & remote Oracle 10g R2 database MS4W v2.0 & Windows NT 4.0 & remote Oracle 10g R2 database MS4W v1.5.4 & Windows 2003 Server & local Oracle 10g R2 database Maybe Jukka could tell what operating system he had in his successful installation? -- View this message in context: http://www.nabble.com/oracle-spatial-t1774461.html#a4895493 Sent from the Mapserver - User forum at Nabble.com. From ad at IONICSOFT.COM Fri Jun 16 00:15:29 2006 From: ad at IONICSOFT.COM (Arnaud Diederen) Date: Fri, 16 Jun 2006 09:15:29 +0200 Subject: WMS Capabilities: LatLonBoundingBox In-Reply-To: Message-ID: Hi Angus, I'm not using PostGIS layers; this is the Itasca demo for mapserver 4.x, and putting the PROJECTION param fixes it, indeed! I wonder why it is not put (uncommented, actually) in the vanilla demo package. Is there a reason? Thank you very much for the information! Best regards, Arnaud Angus Dickey wrote: >I am having a similar problem. Apparently Mapserver will automatically calculate the bounding box if you define it using epsg codes in the map file ex: > >PROJECTION > "init=epsg:4269" >END > >This works for me when I use shapefiles, i.e. it calculates the correct bounding box in the right coordinates, however all my Postgis layers end up with a bounding box of: > >minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" > >Are youusing postgis layers? Does anybody know how to get mapserver to calculate the correct bounding box for postgis layers? > >Thanks for any help, > >~Angus > > >-----Original Message----- >From: Arnaud Diederen [mailto:ad at IONICSOFT.COM] >Sent: June 15, 2006 7:17 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] WMS Capabilities: LatLonBoundingBox > >Hello, > >I'm absolutely new to mapserver, so I downloaded the demo for the 4.x >version (I'm using Debian GNU/Linux). >The demo pages work ok, but when I do a GetCapabilities operation >(http://localhost/cgi-bin/mapserv?service=WMS&version=1.3&map=/var/www/workshop/itasca.map&request=GetCapabilities >- local intranet, sorry :( ), I get the attached XML document. >What I'm wondering is why the LatLonBoundingBox tags holds those values, >since they are supposed to be in 4326, if I read the WMS spec right. > >Am I doing something wrong? > >I looked the archives, and googled the internet, but I couldn't find any >help on this exact topic. >I would definitely appreciate if somebody could provide any kind of >help; would it be just pointers on what I have to do/fix. > >Best regards, > > Arnaud > > From bartvde at XS4ALL.NL Fri Jun 16 00:29:17 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 16 Jun 2006 09:29:17 +0200 Subject: WMS Capabilities: LatLonBoundingBox In-Reply-To: <44925A91.4070403@ionicsoft.com> Message-ID: Hi Arnaud, the reason is probably that it costs performance to go through the projection layer. For some things, like the simple demo, projection is not necessary (all layers are shown unprojected), but for WMS it is necessary. I think it could be a good idea to have a warning in the WMS GetCapabilities response that no projection was defined for the layer. Best regards, Bart Arnaud Diederen wrote: > Hi Angus, > > I'm not using PostGIS layers; this is the Itasca demo for mapserver > 4.x, and putting the PROJECTION param fixes it, indeed! > I wonder why it is not put (uncommented, actually) in the vanilla demo > package. Is there a reason? > > Thank you very much for the information! > > Best regards, > > Arnaud > > Angus Dickey wrote: > >> I am having a similar problem. Apparently Mapserver will >> automatically calculate the bounding box if you define it using epsg >> codes in the map file ex: >> >> PROJECTION >> "init=epsg:4269" >> END >> >> This works for me when I use shapefiles, i.e. it calculates the >> correct bounding box in the right coordinates, however all my Postgis >> layers end up with a bounding box of: >> >> minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" >> >> Are youusing postgis layers? Does anybody know how to get mapserver >> to calculate the correct bounding box for postgis layers? >> >> Thanks for any help, >> >> ~Angus >> >> >> -----Original Message----- >> From: Arnaud Diederen [mailto:ad at IONICSOFT.COM] Sent: June 15, 2006 >> 7:17 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] WMS Capabilities: LatLonBoundingBox >> >> Hello, >> >> I'm absolutely new to mapserver, so I downloaded the demo for the 4.x >> version (I'm using Debian GNU/Linux). >> The demo pages work ok, but when I do a GetCapabilities operation >> (http://localhost/cgi-bin/mapserv?service=WMS&version=1.3&map=/var/www/workshop/itasca.map&request=GetCapabilities >> - local intranet, sorry :( ), I get the attached XML document. >> What I'm wondering is why the LatLonBoundingBox tags holds those >> values, since they are supposed to be in 4326, if I read the WMS spec >> right. >> >> Am I doing something wrong? >> >> I looked the archives, and googled the internet, but I couldn't find >> any help on this exact topic. >> I would definitely appreciate if somebody could provide any kind of >> help; would it be just pointers on what I have to do/fix. >> >> Best regards, >> >> Arnaud >> >> > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From ad at IONICSOFT.COM Fri Jun 16 00:36:32 2006 From: ad at IONICSOFT.COM (Arnaud Diederen) Date: Fri, 16 Jun 2006 09:36:32 +0200 Subject: WMS Capabilities: LatLonBoundingBox In-Reply-To: <44925DCD.3060901@xs4all.nl> Message-ID: Hi Bart, Bart van den Eijnden (OSGIS) wrote: > Hi Arnaud, > > the reason is probably that it costs performance to go through the > projection layer. > > For some things, like the simple demo, projection is not necessary > (all layers are shown unprojected), but for WMS it is necessary. Fair enough! > > I think it could be a good idea to have a warning in the WMS > GetCapabilities response that no projection was defined for the layer. It seems like it is common practice to inspect (with the eyes) the Capabilities for an OGC service which behaves a weird way, so it might be a useful feature indeed. Best Regards, Arnaud > > Best regards, > Bart > > Arnaud Diederen wrote: > >> Hi Angus, >> >> I'm not using PostGIS layers; this is the Itasca demo for mapserver >> 4.x, and putting the PROJECTION param fixes it, indeed! >> I wonder why it is not put (uncommented, actually) in the vanilla >> demo package. Is there a reason? >> >> Thank you very much for the information! >> >> Best regards, >> >> Arnaud >> >> Angus Dickey wrote: >> >>> I am having a similar problem. Apparently Mapserver will >>> automatically calculate the bounding box if you define it using epsg >>> codes in the map file ex: >>> >>> PROJECTION >>> "init=epsg:4269" >>> END >>> >>> This works for me when I use shapefiles, i.e. it calculates the >>> correct bounding box in the right coordinates, however all my >>> Postgis layers end up with a bounding box of: >>> >>> minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" >>> >>> Are youusing postgis layers? Does anybody know how to get mapserver >>> to calculate the correct bounding box for postgis layers? >>> >>> Thanks for any help, >>> >>> ~Angus >>> >>> >>> -----Original Message----- >>> From: Arnaud Diederen [mailto:ad at IONICSOFT.COM] Sent: June 15, 2006 >>> 7:17 AM >>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>> Subject: [UMN_MAPSERVER-USERS] WMS Capabilities: LatLonBoundingBox >>> >>> Hello, >>> >>> I'm absolutely new to mapserver, so I downloaded the demo for the >>> 4.x version (I'm using Debian GNU/Linux). >>> The demo pages work ok, but when I do a GetCapabilities operation >>> (http://localhost/cgi-bin/mapserv?service=WMS&version=1.3&map=/var/www/workshop/itasca.map&request=GetCapabilities >>> - local intranet, sorry :( ), I get the attached XML document. >>> What I'm wondering is why the LatLonBoundingBox tags holds those >>> values, since they are supposed to be in 4326, if I read the WMS >>> spec right. >>> >>> Am I doing something wrong? >>> >>> I looked the archives, and googled the internet, but I couldn't find >>> any help on this exact topic. >>> I would definitely appreciate if somebody could provide any kind of >>> help; would it be just pointers on what I have to do/fix. >>> >>> Best regards, >>> >>> Arnaud >>> >>> >> >> > > From xavier.mauclaire at GEOTER.FR Fri Jun 16 00:40:51 2006 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Fri, 16 Jun 2006 09:40:51 +0200 Subject: getting error when Compiling Mapserver 4.8.3 for windows Message-ID: HI I'm trying to compile MApserver 4.8.3 for windows. i read last emails from the mailing list 1) i downloaded the MapServer BuildKit from Howard Butler http://hobu.stat.iastate.edu/mapserver/build_output/ the latest package version "mapserver-4.8.3-2-msvc71-buildk-kit.zip" 2) I use the vcvar32.bat to set Variables 3) in the mapserver-4.8.3 directory i changed the nmape.opt MS_BASE variable value and i launched the compilation nmake /fMakefile.vc the resut is Microsoft Windows XP [version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\xavier.mauclaire>c: C:\Documents and Settings\xavier.mauclaire>e: E:\>cd TempXavier E:\TempXavier>cd Mapserver E:\TempXavier\Mapserver>cd buildkit E:\TempXavier\Mapserver\buildkit>cd mapserver-4.8.3 E:\TempXavier\Mapserver\buildkit\mapserver-4.8.3>ls 'ls' n'est pas reconnu en tant que commande interne ou externe, un programme ex?cutable ou un fichier de commandes. E:\TempXavier\Mapserver\buildkit\mapserver-4.8.3>nmake /f makefile.vc 'nmake' n'est pas reconnu en tant que commande interne ou externe, un programme ex?cutable ou un fichier de commandes. E:\TempXavier\Mapserver\buildkit\mapserver-4.8.3>va 'va' n'est pas reconnu en tant que commande interne ou externe, un programme ex?cutable ou un fichier de commandes. E:\TempXavier\Mapserver\buildkit\mapserver-4.8.3>vcvars32.bat 'vcvars32.bat' n'est pas reconnu en tant que commande interne ou externe, un programme ex?cutable ou un fichier de commandes. E:\TempXavier\Mapserver\buildkit\mapserver-4.8.3>cd "c:\Program Files" E:\TempXavier\Mapserver\buildkit\mapserver-4.8.3>c: C:\Program Files>cd "Microsoft Visual Studio .NET 2003" C:\Program Files\Microsoft Visual Studio .NET 2003>cd Vc7 C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7>cd bin C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin>vcvars32.bat C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin>"C:\Program Files\Mic rosoft Visual Studio .NET 2003\Common7\Tools\vsvars32.bat" Setting environment for using Microsoft Visual Studio .NET 2003 tools. (If you have another version of Visual Studio or Visual C++ installed and wish to use its tools from the command line, run vcvars32.bat for that version.) C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin>e: E:\TempXavier\Mapserver\buildkit\mapserver-4.8.3>nmake /f makefile.vc Microsoft (R) Program Maintenance Utility Version 7.10.3077 Copyright (C) Microsoft Corporation. Tous droits r?serv?s. cl /nologo /Ox /MD /W3 /DDEBUG /EHsc -Ie:\tempxavier\mapserver\buildkit\ mapserver-4.8.3\..\gd-2.0.33 -Ie:\tempxavier\mapserver\buildkit\mapserver-4.8.3 \..\jpeg-6b -Ie:\tempxavier\mapserver\buildkit\mapserver-4.8.3\..\proj-4.4.9/s rc -Ie:\tempxavier\mapserver\buildkit\mapserver-4.8.3\..\regex-0.12 -Ie:\tempxav ier\mapserver\buildkit\mapserver-4.8.3\..\gdal-1.3.2/gcore -Ie:\tempxavier\mapse rver\buildkit\mapserver-4.8.3\..\gdal-1.3.2/alg -Ie:\tempxavier\mapserver\buildk it\mapserver-4.8.3\..\gdal-1.3.2/ogr -Ie:\tempxavier\mapserver\buildkit\mapserve r-4.8.3\..\gdal-1.3.2/port -Ie:\tempxavier\mapserver\buildkit\mapserver-4.8.3\.. \gdal-1.3.2/ogr/ogrsf_frmts -Ie:\tempxavier\mapserver\buildkit\mapserver-4.8.3\. .\gdal-1.3.2/ogr -Ie:\tempxavier\mapserver\buildkit\mapserver-4.8.3\..\gdal-1.3. 2/port -Ie:\tempxavier\mapserver\buildkit\mapserver-4.8.3\..\curl-7.15.0/includ e -Ie:\tempxavier\mapserver\buildkit\mapserver-4.8.3\..\ming-0.2a/src -Ie:\tempx avier\mapserver\buildkit\mapserver-4.8.3\..\ming-0.2a -Ie:\tempxavier\mapserver\ buildkit\mapserver-4.8.3\..\PDFlib-Lite-6.0.2/libs/pdflib -Ie:\tempxavier\mapser ver\buildkit\mapserver-4.8.3\..\postgresql-8.1.2/src/interfaces/libpq -Ie:\tempx avier\mapserver\buildkit\mapserver-4.8.3\..\postgresql-8.1.2/src/include -I e:\tempxavier\mapserver\buildkit\mapserver-4.8.3\..\libiconv-1.9.1\include -Ie: \tempxavier\mapserver\buildkit\mapserver-4.8.3\..\geos-2.2.2/source/headers -Ie: \tempxavier\mapserver\buildkit\mapserver-4.8.3\..\zlib-1.2.3 -DHAVE_STRING_H -DR EGEX_MALLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRLCAT -DUSE_POSTGIS - DWIN32 -D_WIN32 -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_ JPEG -DUSE_GD_WBMP -DUSE_GD_GIF -DGD_HAS_GDIMAGEGIFPTR -DUSE_GD_FT -DGD_HAS_GETB ITMAPFONT -DUSE_OGR -DUSE_WMS_SVR -DUSE_THREAD -DUSE_WMS_LYR -DUSE_MING_FLASH - DIGNORE_MISSING_DATA -DENABLE_STDERR_DEBUG -DUSE_GDAL -DUSE_WFS_SVR -DUSE_ WFS_LYR -DUSE_WCS_SVR -DUSE_PDF -DUSE_GD_ANTIALIAS -DUSE_ICONV -DUSE_GEOS -DUSE_ZLIB /c mapogr.cpp /Fomapogr.obj mapogr.cpp e:\TempXavier\Mapserver\buildkit\mapserver-4.8.3\..\gdal-1.3.2\port\cpl_stri ng.h (174) : fatal error C1083: Impossible d'ouvrir le fichier include : 'string' : N o such file or directory NMAKE : fatal error U1077: 'cl'?: code retour '0x2' Stop. any ideas regards ----------------------------------------- Xavier Mauclaire ------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From C.Wilmes at GMX.DE Fri Jun 16 01:06:38 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Fri, 16 Jun 2006 10:06:38 +0200 Subject: c#-mapscript, zooming problem on Landsat-Layer In-Reply-To: <449081b4.121e86bd.5012.ffff9bca@mx.gmail.com> Message-ID: Hi Tamas, Know it works, the Problem realy was the metadataObj of the Layer. After a short time the Object was destroyed...the number of metadata in the Object were OK but the programm were not able to find some specific metadata information, so I get that error message. I solved the problem by declaring the metadata-Object as a class-Member. So now it works, but what could be the reason for that problem? Another problem I've got is on closing the application. Not every but often I get the following error: System.AccessViolationException was unhandled Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt." Source="mapscript_csharp" StackTrace: at mapscriptPINVOKE.delete_mapObj(HandleRef jarg1) at mapObj.Dispose() at mapObj.Finalize() Best Regards Christian -------- Original-Nachricht -------- Datum: Wed, 14 Jun 2006 23:37:49 +0200 Von: Tamas Szekeres An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] c#-mapscript, zooming problem on Landsat-Layer > Hi Christian, > > If you are using the "layerObj(mapObj map)" constructor you might have to > use the latest CVS version with the following fix included in csmodule.i > > /*************************************************************************** > *** > * Preventing to take ownership of the memory when constructing objects > * with parent objects (causing nullreference exception, Bug 1743) > > **************************************************************************** > */ > > %typemap(csconstruct, excode=SWIGEXCODE) layerObj(mapObj map) %{: > this($imcall, true) { > if (map != null) this.swigCMemOwn = false;$excode > } > %} > %typemap(csconstruct, excode=SWIGEXCODE) classObj(layerObj layer) %{: > this($imcall, true) { > if (layer != null) this.swigCMemOwn = false;$excode > } > %} > %typemap(csconstruct, excode=SWIGEXCODE) styleObj(classObj parent_class) > %{: > this($imcall, true) { > if (parent_class != null) this.swigCMemOwn = false;$excode > } > %} > > The corresponding bug report is: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1743 > > However your error message is slightly confusing so i would not wonder if > it > was not the only problem. I am keen to try this out. > > Best Regards, > > Tamas Szekeres > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Christian Wilmes > Sent: Tuesday, June 13, 2006 12:30 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] c#-mapscript, zooming problem on > Landsat-Layer > > Hi all, > > I try to use I Layer from the Landsat-WMS in my c#-Application. The first > time I get the Layer everything works fine but after zooming or just > refreshing the map I get the following error: > msBuildWMSLayerURLBase(): WMS connection error. One of wms_onlineresource, > wms_server_version, wms_name metadata is missing in layer Landsat. Please > either provide a valid CONNECTION URL, or provide those values in the > layer's metadata. > > Trying it with other layers everything is ok. > > The part of the code where I add the Layer: > layerObj landsat = new layerObj(myMap); > landsat.name = "Landsat"; > landsat.type = MS_LAYER_TYPE.MS_LAYER_RASTER; > landsat.status = mapscript.MS_OFF; > landsat.connectiontype = MS_CONNECTION_TYPE.MS_WMS; > landsat.connection = "http://wms.jpl.nasa.gov/wms.cgi?"; > hashTableObj metaLandsat = new hashTableObj(); > metaLandsat.set("wms_name", "global_mosaic"); > metaLandsat.set("wms_server_version", "1.1.0"); > metaLandsat.set("wms_onlineresource", > "http://wms.jpl.nasa.gov/wms.cgi?"); > metaLandsat.set("wms_srs", "EPSG:4326"); > metaLandsat.set("wms_format", "image/jpeg"); > metaLandsat.set("wms_style", ""); > metaLandsat.set("wms_connectiontimeout", "100"); > landsat.metadata = metaLandsat; > landsat.setProjection("init=epsg:4326"); > > > > Hope anybody could help me with that problem. > > Best Regards > Christian > -- > > > "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.8.4/363 - Release Date: 2006.06.13. > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 2006.06.14. > -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From xavier.mauclaire at GEOTER.FR Fri Jun 16 00:44:50 2006 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Fri, 16 Jun 2006 09:44:50 +0200 Subject: Mapscript ,Mono, Apache and Linux : a great story In-Reply-To: <4491e80f.0556d3db.431a.ffff8736@mx.gmail.com> Message-ID: Tamas Thanks a lot for your answser. All the layerObj object i use in my program are d?clared in the mapfile so i don't need to create layerObj from scratch using the constructor. When you say that if a layerObj reference with a previously released native memory segment, it may causing the error, what are the consequences for my code ? Using the Dispose method is there the solution to avoid this problem ? How can i get CVS code ? Concernig the number of result, i test the resultCacheObj.numresults value. it is not enough ? Why this code works well under windows and scratches under linux ? regards ----------------------------------------- Xavier Mauclaire ------------------------------------------------------- _____ De : Tamas Szekeres [mailto:szekerest at gmail.com] Envoy? : vendredi 16 juin 2006 01:07 ? : 'Xavier Mauclaire'; MAPSERVER-USERS at LISTS.UMN.EDU Objet : RE: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : a great story Xavier, All of the stack traces you reported represents me that you possibly have a layerObj reference with a previoulsy released native memory segment. This may occur if 2 or more layerObj references exclusively own the same native memory and one of them is disposed or goes out of scope. By this time i know one situation causing this problem is creating the layer using the ?layerObj(mapObj map)? constructor with non null map parameter. (classobj(layerobj) and styleObj(classObj) are also suffer from this issue). This problem was corrected in the current CVS HEAD. So it would be important to know if you have some special handling of theese objects in your application or all of theese object was created by parsing the map file. The given code fragment should theoretically work, however you should check the number of the results before calling getResult. Tamas _____ From: Xavier Mauclaire [mailto:xavier.mauclaire at geoter.fr] Sent: Thursday, June 15, 2006 10:55 AM To: 'Tamas Szekeres'; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : a great story Hi Tamas You will find next information which may help. Thanks in advance for your help The problem is that the server scratches randomly occurs. However, i saw in the logs (if the variable MALLOC_CHECK_ equals 0) the segmentation fault appears a lot of time in GetFeature function. I saw in the mailing List emails concerning this problem with Java. You will find next : 1) piece of code c# 2) mapfile used 3) apache2 error_log file system informations : apache 2.2 (ia upgrade apache yesterday 2.0.54 to 2.2) Mono 1.1.13 mod_mono 1.1.14 mapserver 4.8.3 with mapscript csharp postgresql 8.1.3 Postgis 1.1.1 gdal 1.3.1 geos 2.2.1 gd-2.0.33 libiconv 1.9. Compilation options of Mapserver ./configure --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-postgis=/usr/local/pgsql/bin/pg_config --with-xpm=/usr/local/lib --with-ming --with-png --with-jpeg --with-zlib --with-libiconv--without-tiff --with-threads --with-geos=/usr/local/bin/geos-config --with-gif --with-proj --with-gd=/usr/local -without-wms I'm really need any help. I don't know what to do. I'm sure that architecture choices i've done are good So it has to be working :-) regards 1) Piece of Code where private shapeObj localiser_parcelle(Double dX, Double dY, out String zParcelleIdent){ shapeObj pShape = null; zParcelleIdent = ""; int liRes ; try { // recup?ration de la layer des parcelle // celle dont le nom est CONST_LAYERNAME_PARCELLE layerObj pLayerParcelle = pMapQuery.getLayerByName(cConstantes.CONST_LAYERNAME_PARCELLE); if(pLayerParcelle != null){ // creation du poitn de localisation pointObj pPoint = new pointObj(dX, dY,0.0,0.0 ); // on recherche la parcelle au point cliqu? pLayerParcelle.queryByPoint(pMapQuery,pPoint,mapscript.MS_SINGLE,0); resultCacheObj pRes = pLayerParcelle.getResults(); try{ resultCacheMemberObj pResMember = null; if(pRes.numresults > 0) { //on zoom sur la selection courante pMapQuery.setExtent(pRes.bounds.minx,pRes.bounds.miny,pRes.bounds.maxx,pRes. bounds.maxy); pLayerParcelle.open(); try{ // r?cup?ration de la premi?re parcelle pResMember = pRes.getResult(0); pShape = pLayerParcelle.getFeature(pResMember.shapeindex, pResMember.tileindex); if(pShape != null) { // r?cup?ration de l'identifiant de la parcellle Int32 liRang = -1; // recherche rang champs liRang = cRegInfos.SetLayerFieldRang(pLayerParcelle, cRegInfo.CONST_IDPARCELLE); zParcelleIdent = pShape.getValue(liRang); } //end if }finally{ pLayerParcelle.close(); } //e nd finally } //e nd if } finally { pRes.Dispose(); pRes = null; } //e nd finally } else throw new Exception("Couche des parcelles introuvable"); } finally{ } //end finally return pShape; } // end function 2) Mapfile # # MAP NAME MAPFILE STATUS ON SHAPEPATH "/home/raster971/" # Map image size. Change size as desired SIZE 750 750 IMAGETYPE png # Extent based on full extent of QGIS view EXTENT 635000 1768500 645000 1778700 SYMBOLSET "symbols/symbols.sym" IMAGECOLOR 255 255 255 FONTSET "fonts/fonts.list" # # Start of web interface definition. Only the TEMPLATE parameter # must be specified to display a map. See Mapserver documentation # WEB IMAGEPATH "" IMAGEURL "/tmp/" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" EXTENSION "png" IMAGEMODE RGB TRANSPARENT OFF END SCALEBAR IMAGECOLOR -1 -1 -1 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 LABEL COLOR 0 0 0 END SIZE 150 5 COLOR 255 255 255 UNITS METERS INTERVALS 4 TRANSPARENT on STATUS EMBED STYLE 0 POSITION LR END LAYER NAME limites_communales TYPE POLYGON STATUS DEFAULT CONNECTION "user=postgres password=trucmuche dbname=pprsaintclaude host=localhost port=5432" CONNECTIONTYPE postgis DATA "wkb_geometry from limites_communales" CLASS NAME "commune" END END LAYER NAME zonage_reglementaire TYPE POLYGON STATUS DEFAULT CONNECTION "user=postgres password=trucmuche dbname=pprsaintclaude host=localhost port=5432" CONNECTIONTYPE postgis TEMPLATE "rien.htm" DATA "wkb_geometry from zonage_reglementaire" CLASSITEM "code_reg" CLASS NAME "0" EXPRESSION "0" COLOR 255 255 255 OUTLINECOLOR -1 -1 -1 END CLASS NAME "1" EXPRESSION "1" COLOR 160 224 255 OUTLINECOLOR -1 -1 -1 END CLASS NAME "2" EXPRESSION "2" COLOR 64 192 255 OUTLINECOLOR -1 -1 -1 END CLASS NAME "3" EXPRESSION "3" COLOR 0 0 255 OUTLINECOLOR -1 -1 -1 END CLASS NAME "4" EXPRESSION "4" COLOR 255 128 128 OUTLINECOLOR -1 -1 -1 END CLASS NAME "5" EXPRESSION "5" STYLE SYMBOL "hatch45" COLOR 255 0 0 SIZE 6 WIDTH 1 END END CLASS NAME "6" EXPRESSION "6" COLOR 255 0 0 OUTLINECOLOR -1 -1 -1 END CLASS NAME "7" EXPRESSION "7" COLOR 96 160 0 OUTLINECOLOR -1 -1 -1 END CLASS NAME "8" EXPRESSION "8" COLOR 160 224 255 OUTLINECOLOR 0 255 255 END END LAYER NAME parcelles TYPE POLYGON STATUS DEFAULT TEMPLATE "rien.htm" CONNECTION "user=postgres password=trucmuche dbname=pprsaintclaude host=localhost port=5432" CONNECTIONTYPE postgis DATA "wkb_geometry from parcelles" CLASS NAME "parcelle" COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 END END END # Map File 3) Logs in the apache error_log file The following logs show error information of two scratches (After each segmentation fault i have to restart apache). You can notice the the error does not appears et the same location (Garbage collector of mono ??) [Fri Jun 16 10:41:41 2006] [notice] Apache/2.2.0 (Unix) mod_mono/1.1.14 configured -- resuming normal operations Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= Stacktrace: in (wrapper managed-to-native) mapscriptPINVOKE:delete_layerObj (System.Runtime.InteropServices.HandleRef) <0x4> in (wrapper managed-to-native) mapscriptPINVOKE:delete_layerObj (System.Runtime.InteropServices.HandleRef) <0xfe880ea1> in layerObj:Dispose () <0x41> in layerObj:Finalize () <0xe> in (wrapper runtime-invoke) System.Object:runtime_invoke_void (object,intptr,intptr,intptr) <0xc68dba2f> Native stacktrace: /usr/lib/pkgconfig/../../bin/mono(mono_handle_native_sigsegv+0xbb) [0x814ee2b] /usr/lib/pkgconfig/../../bin/mono [0x813b2cf] [0xffffe440] /usr/local/lib/libmapscript.so(msFree+0x21) [0x41a4c951] /usr/local/lib/libmapscript.so(freeLayer+0x35) [0x41a50655] /usr/local/lib/libmapscript.so(CSharp_delete_layerObj+0x7f) [0x41a28fef] [0x42fdeb6c] [0x4185f9aa] [0x4185f947] [0x4185f779] /usr/lib/pkgconfig/../../bin/mono [0x813b180] /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke+0x27) [0x80d63f7] /usr/lib/pkgconfig/../../bin/mono [0x80d2dc5] /usr/lib/pkgconfig/../../bin/mono [0x8114cc7] /usr/lib/pkgconfig/../../bin/mono [0x80d3b7c] /usr/lib/pkgconfig/../../bin/mono [0x8099fb2] /usr/lib/pkgconfig/../../bin/mono [0x80f5067] /usr/lib/pkgconfig/../../bin/mono [0x8113175] /lib/tls/libpthread.so.0 [0x400e5297] /lib/tls/libc.so.6(__clone+0x5e) [0x401e037e] [Fri Jun 16 10:43:55 2006] [notice] caught SIGTERM, shutting down [Fri Jun 16 10:43:56 2006] [notice] Apache/2.2.0 (Unix) mod_mono/1.1.14 configured -- resuming normal operations Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= Stacktrace: in (wrapper managed-to-native) mapscriptPINVOKE:layerObj_getFeature (System.Runtime.InteropServices.HandleRef,int,int) <0x4> in (wrapper managed-to-native) mapscriptPINVOKE:layerObj_getFeature (System.Runtime.InteropServices.HandleRef,int,int) <0xffffff87> in layerObj:getFeature (int,int) <0x27> in siteflash.GetParcelleReglement:localiser_parcelle (double,double,string&) <0x1df> in siteflash.GetParcelleReglement:ProcessRequest (System.Web.HttpContext) <0x56c> in __1:MoveNext () <0x10a0> in System.Web.HttpApplication:Tick () <0x1f> in System.Web.HttpApplication:Start (object) <0x37> in System.Web.HttpApplication:System.Web.IHttpAsyncHandler.BeginProcessRequest (System.Web.HttpContext,System.AsyncCallback,object) <0x68> in System.Web.HttpRuntime:RealProcessRequest (object) <0x1ab> in System.Web.HttpRuntime:ProcessRequest (System.Web.HttpWorkerRequest) <0x2c> in Mono.WebServer.MonoWorkerRequest:ProcessRequest () <0xa> in Mono.WebServer.BaseApplicationHost:ProcessRequest (Mono.WebServer.MonoWorkerRequest) <0x43> in Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xdc> in (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xffffff0a> in (wrapper xdomain-dispatch) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (object,byte[]&,byte[]&,int,string,string,string,string,string,int,string,in t,string,string[],string[]) <0xfffee09e> in (wrapper xdomain-invoke) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xffffff6a> in (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xffba766c> in Mono.WebServer.ModMonoWorker:InnerRun (object) <0x404> in Mono.WebServer.ModMonoWorker:Run (object) <0x17> in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object (object) <0xffffff95> in (wrapper runtime-invoke) System.Object:runtime_invoke_void_object (object,intptr,intptr,intptr) <0xc7371b5f> Native stacktrace: /usr/lib/pkgconfig/../../bin/mono(mono_handle_native_sigsegv+0xbb) [0x814ee2b] /usr/lib/pkgconfig/../../bin/mono [0x813b2cf] [0xffffe440] /lib/tls/libc.so.6(malloc+0x86) [0x40187ea6] /usr/local/pgsql/lib/libpq.so.4(pqResultAlloc+0xd5) [0x42025f25] /usr/local/pgsql/lib/libpq.so.4(pqParseInput3+0x2b7) [0x4202e677] /usr/local/pgsql/lib/libpq.so.4 [0x42026b04] /usr/local/pgsql/lib/libpq.so.4(PQgetResult+0x9d) [0x4202810d] /usr/local/pgsql/lib/libpq.so.4 [0x420282be] /usr/local/lib/libmapscript.so(msPOSTGISLayerRetrievePGVersion+0x43) [0x41ab70e3] /usr/local/lib/libmapscript.so(msPOSTGISLayerRetrievePK+0x31) [0x41ab7331] /usr/local/lib/libmapscript.so [0x41ab7aa4] /usr/local/lib/libmapscript.so(msPOSTGISLayerGetShape+0x7d) [0x41ab7e5d] /usr/local/lib/libmapscript.so(msPOSTGISLayerGetShapeVT+0x23) [0x41ab85b3] /usr/local/lib/libmapscript.so(msLayerGetShape+0x2e) [0x41a6db3e] /usr/local/lib/libmapscript.so(CSharp_layerObj_getFeature+0x46) [0x41a29636] [0x41861db2] [0x41861cd0] [0x41860ea8] [0x4186048d] [0x416f6421] [0x416f52a8] [0x416f1668] [0x416f1549] [0x41251854] [0x41251385] [0x41251343] [0x41250544] [0x41235535] [0x41234c9c] [0x41234a7b] [0x41222807] [0x41222643] [0x40dc9bdd] [0x40dc9730] [0x40dc96f4] [0x40dc964e] /usr/lib/pkgconfig/../../bin/mono [0x813b180] /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke+0x27) [0x80d63f7] /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke_array+0x270) [0x80d78c0] /usr/lib/pkgconfig/../../bin/mono(mono_message_invoke+0xc5) [0x80d93d5] /usr/lib/pkgconfig/../../bin/mono [0x80a509f] /usr/lib/pkgconfig/../../bin/mono [0x80a58c9] /usr/lib/pkgconfig/../../bin/mono [0x8099fb2] /usr/lib/pkgconfig/../../bin/mono [0x80f5067] /usr/lib/pkgconfig/../../bin/mono [0x8113175] /lib/tls/libpthread.so.0 [0x400e5297] /lib/tls/libc.so.6(__clone+0x5e) [0x401e037e] ----------------------------------------- Xavier Mauclaire ------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From dwija_dey at REDIFFMAIL.COM Fri Jun 16 01:57:03 2006 From: dwija_dey at REDIFFMAIL.COM (Pratap) Date: Fri, 16 Jun 2006 08:57:03 -0000 Subject: Is it a bug? Point attribute for Imagemap is not displaying Message-ID: Hi List At last i have added the client side imagemap, where i can show the the value from the .dbf file for polygon layer. But when i do the same for the point layer the '%s' field is get substituted by the layer name. Is that a bug? if anyone has implemented the imagemap for point layer plz. tell me where is the problem? My imagemap file ******** ******** OUTPUTFORMAT NAME imagemap MIMETYPE "text/html" #FORMATOPTION SKIPENDTAG=ON FORMATOPTION "SYMBOLHREF=javascript:clicked(%s)" FORMATOPTION "POLYHREF=javascript:alert(%s)" DRIVER imagemap END LAYER NAME hospital STATUS DEFAULT TYPE POINT DATA hospital CLASSITEM "H_NAME" CLASS NAME HOSPITAL STYLE COLOR 128 128 0 OUTLINECOLOR 0 0 0 SYMBOL 0 END END ********** ********** All i will get the imagemap for the above point layer is-> ********* ********* Why this strange behavior? I do hope it will work for point layer also. Whether i have to add something to my map file or in output section part? Any idea/experience will be highly appreciated. Thanks in advance Pratap -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank.koormann at INTEVATION.DE Fri Jun 16 04:17:47 2006 From: frank.koormann at INTEVATION.DE (Frank Koormann) Date: Fri, 16 Jun 2006 13:17:47 +0200 Subject: mapserver initialization delays In-Reply-To: <448DCDFD.2050901@turnkey-technology.com> Message-ID: Scott, * Scott Melby [060612 22:29]: > Thanks for the response. Although I agree that there is definitely > something that is getting "evicted" from memory, it does not appear to > me that the amount of pertinent data that is cached in memory is the > issue. The reason I say this, is that I can perform hundreds of > queries, all with differing bounding boxes and differing dataFilter > parameters (no result set overlap), and only the first query after a > long period is slow. Cache in the postgresql sense does not mean caching query results but data. Looking at your sample request of your initial post you seem to issue a geometry && 'BOX3D(-180 -180,180 180)' search. Given your data is in latlon this will result in a full table scan. Depending on the grade of fragmentation of your data even with sharper filters it might be necessary to load many data pages from disk into ram to pick out the objects in question. > Regardless of the cause of the delays, I really can't have my users > hitting a 40+ second delay for an interactive query on the site. Are > there known strategies for dealing with large datasets? Performance tuning usually depends on a bunch of parameters. However, some basic rules: Use fast disks and much RAM. You might want to optimize the "shared_buffers" parameter in your postgresql.conf. To further elaborate you could also take the queries generated by mapserver and feed them directly into psql to see if this is a mapserver startup or database performance issue. Some usually quoted performance tipps for PostgreSQL: http://www.powerpostgresql.com/PerfList http://candle.pha.pa.us/main/writings/pgsql/hw_performance/0.html HTH, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) PostGIS Support (http://intevation.de/services/gis/postgis.en.html) From zhonghaiw at GMAIL.COM Fri Jun 16 05:42:32 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Fri, 16 Jun 2006 14:42:32 +0200 Subject: oracle spatial In-Reply-To: <4895493.post@talk.nabble.com> Message-ID: Hi there, I am now facing the same problem now, after the DLL swapping according to the read-me file, the other old MapServer projects do not work any more, even under the CGI mode, and the error message looks like: [Fri Jun 16 14:38:55 2006] [error] [client 127.0.0.1] Premature end of script headers: mapserv.exe -- this is the error message in the Apache error log file. do anyone have any ideas? BTW: my system info: WinXP, MS4W 2.0, Oracle 10g R2 Instant Client the ogrinfo --formats that OCI is supported. many thanks. zhonghai On 6/16/06, Lasse Korhonen wrote: > > Hi Daniel, > > we're facing exactly the same problems you described. Swapping of > dll-files > is enough to make previously working maps totally unfunctional. Maps based > on oracle spatial, shapefiles or MapInfo-files all give an Apache related > message "Internal Server Error". Last row in the error.log states > "Premature > end of script headers: mapserv.exe". > > I can get errors from MapServer if I break the syntax in map-file, and > mistakes in SQL-statements raise errors from Oracle (connection is fine?). > Therefore I believe the problem is not related to .map-files or database > at > all. > > I'm wondering if this strange behaviour is somehow related to "wrong" > software environment. So far we have tested following combinations with no > luck: > > MS4W v1.5.4 & Windows NT 4.0 & remote Oracle 10g R2 database > MS4W v2.0 & Windows NT 4.0 & remote Oracle 10g R2 database > MS4W v1.5.4 & Windows 2003 Server & local Oracle 10g R2 database > > Maybe Jukka could tell what operating system he had in his successful > installation? > -- > View this message in context: > http://www.nabble.com/oracle-spatial-t1774461.html#a4895493 > Sent from the Mapserver - User forum at Nabble.com. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at DMSOLUTIONS.CA Fri Jun 16 06:09:02 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Fri, 16 Jun 2006 09:09:02 -0400 Subject: oracle spatial In-Reply-To: <2534c4120606160542k6ad6b644h653f0e4c12603778@mail.gmail.com> Message-ID: It sounds like an oracle10g libmap.dll build problem, and not your fault. checking into it. Until this is solved, if you need an Oracle connection you will have to use MS4W 1.5.3 (http://www.maptools.org/dl/ms4w/ms4w_1.5.3.zip), sorry. jeff Zhonghai Wang wrote: > Hi there, > > I am now facing the same problem now, after the DLL swapping according > to the read-me file, the other old MapServer projects do not work any > more, even under the CGI mode, and the error message looks like: > > [Fri Jun 16 14:38:55 2006] [error] [client 127.0.0.1 ] > Premature end of script headers: mapserv.exe -- this is the error > message in the Apache error log file. > > do anyone have any ideas? > > BTW: my system info: WinXP, MS4W 2.0, Oracle 10g R2 Instant Client > > the ogrinfo --formats that OCI is supported. > > many thanks. > > zhonghai > > > On 6/16/06, *Lasse Korhonen* > wrote: > > Hi Daniel, > > we're facing exactly the same problems you described. Swapping of > dll-files > is enough to make previously working maps totally unfunctional. Maps > based > on oracle spatial, shapefiles or MapInfo-files all give an Apache > related > message "Internal Server Error". Last row in the error.log states > "Premature > end of script headers: mapserv.exe". > > I can get errors from MapServer if I break the syntax in map-file, and > mistakes in SQL-statements raise errors from Oracle (connection is > fine?). > Therefore I believe the problem is not related to .map-files or > database at > all. > > I'm wondering if this strange behaviour is somehow related to "wrong" > software environment. So far we have tested following combinations > with no > luck: > > MS4W v1.5.4 & Windows NT 4.0 & remote Oracle 10g R2 database > MS4W v2.0 & Windows NT 4.0 & remote Oracle 10g R2 database > MS4W v1.5.4 & Windows 2003 Server & local Oracle 10g R2 database > > Maybe Jukka could tell what operating system he had in his successful > installation? > -- > View this message in context: > http://www.nabble.com/oracle-spatial-t1774461.html#a4895493 > Sent from the Mapserver - User forum at Nabble.com . > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From Jukka.Rahkonen at MMMTIKE.FI Fri Jun 16 06:10:41 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Fri, 16 Jun 2006 16:10:41 +0300 Subject: oracle spatial In-Reply-To: A<2534c4120606160542k6ad6b644h653f0e4c12603778@mail.gmail.com> Message-ID: Hi, I have Oracle 9i and I have faced no problem. Any happy 10g users out there? -Jukka- ________________________________ L?hett?j?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Puolesta Zhonghai Wang L?hetetty: 16. kes?kuuta 2006 15:43 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: Re: [UMN_MAPSERVER-USERS] oracle spatial Hi there, I am now facing the same problem now, after the DLL swapping according to the read-me file, the other old MapServer projects do not work any more, even under the CGI mode, and the error message looks like: [Fri Jun 16 14:38:55 2006] [error] [client 127.0.0.1] Premature end of script headers: mapserv.exe -- this is the error message in the Apache error log file. do anyone have any ideas? BTW: my system info: WinXP, MS4W 2.0, Oracle 10g R2 Instant Client the ogrinfo --formats that OCI is supported. many thanks. zhonghai On 6/16/06, Lasse Korhonen wrote: Hi Daniel, we're facing exactly the same problems you described. Swapping of dll-files is enough to make previously working maps totally unfunctional. Maps based on oracle spatial, shapefiles or MapInfo-files all give an Apache related message "Internal Server Error". Last row in the error.log states "Premature end of script headers: mapserv.exe". I can get errors from MapServer if I break the syntax in map-file, and mistakes in SQL-statements raise errors from Oracle (connection is fine?). Therefore I believe the problem is not related to .map-files or database at all. I'm wondering if this strange behaviour is somehow related to "wrong" software environment. So far we have tested following combinations with no luck: MS4W v1.5.4 & Windows NT 4.0 & remote Oracle 10g R2 database MS4W v2.0 & Windows NT 4.0 & remote Oracle 10g R2 database MS4W v1.5.4 & Windows 2003 Server & local Oracle 10g R2 database Maybe Jukka could tell what operating system he had in his successful installation? -- View this message in context: http://www.nabble.com/oracle-spatial-t1774461.html#a4895493 Sent from the Mapserver - User forum at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Fri Jun 16 06:17:11 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 16 Jun 2006 15:17:11 +0200 Subject: getting error when Compiling Mapserver 4.8.3 for windows In-Reply-To: Message-ID: Hi, Do you have Standard C++ Library header files installed on your system? should be in C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include by default. Best Regards, Tamas PS: Using Visual Studio 2003 .Net Command Prompt eliminates the need to run vcvars32.bat. 2006/6/16, Xavier Mauclaire : > > > HI > I'm trying to compile MApserver 4.8.3 for windows. > i read last emails from the mailing list > > 1) i downloaded the MapServer BuildKit from Howard Butler > > > http://hobu.stat.iastate.edu/mapserver/build_output/ > > > the latest package version > "mapserver-4.8.3-2-msvc71-buildk-kit.zip" > 2) I use the vcvar32.bat to set Variables > 3) in the mapserver-4.8.3 directory i changed the nmape.opt MS_BASE > variable value and i launched the compilation nmake /fMakefile.vc > > the resut is > > Microsoft Windows XP [version 5.1.2600] > (C) Copyright 1985-2001 Microsoft Corp. > > C:\Documents and Settings\xavier.mauclaire>c: > > C:\Documents and Settings\xavier.mauclaire>e: > > E:\>cd TempXavier > > E:\TempXavier>cd Mapserver > > E:\TempXavier\Mapserver>cd buildkit > > E:\TempXavier\Mapserver\buildkit>cd mapserver-4.8.3 > > E:\TempXavier\Mapserver\buildkit\mapserver-4.8.3>ls > 'ls' n'est pas reconnu en tant que commande interne > ou externe, un programme ex?cutable ou un fichier de commandes. > > E:\TempXavier\Mapserver\buildkit\mapserver-4.8.3>nmake /f > makefile.vc > 'nmake' n'est pas reconnu en tant que commande interne > ou externe, un programme ex?cutable ou un fichier de commandes. > > E:\TempXavier\Mapserver\buildkit\mapserver-4.8.3>va > 'va' n'est pas reconnu en tant que commande interne > ou externe, un programme ex?cutable ou un fichier de commandes. > > E:\TempXavier\Mapserver\buildkit\mapserver-4.8.3>vcvars32.bat > 'vcvars32.bat' n'est pas reconnu en tant que commande interne > ou externe, un programme ex?cutable ou un fichier de commandes. > > E:\TempXavier\Mapserver\buildkit\mapserver-4.8.3>cd > "c:\Program Files" > > E:\TempXavier\Mapserver\buildkit\mapserver-4.8.3>c: > > C:\Program Files>cd "Microsoft Visual Studio .NET 2003" > > C:\Program Files\Microsoft Visual Studio .NET 2003>cd Vc7 > > C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7>cd bin > > C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin>vcvars32.bat > > C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin>"C:\Program > Files\Mic > rosoft Visual Studio .NET 2003\Common7\Tools\vsvars32.bat" > Setting environment for using Microsoft Visual Studio .NET 2003 tools. > (If you have another version of Visual Studio or Visual C++ installed and > wish > to use its tools from the command line, run vcvars32.bat for that version.) > > C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin>e: > > E:\TempXavier\Mapserver\buildkit\mapserver-4.8.3>nmake /f > makefile.vc > > Microsoft (R) Program Maintenance Utility Version 7.10.3077 > Copyright (C) Microsoft Corporation. Tous droits r?serv?s. > > cl /nologo /Ox /MD /W3 /DDEBUG /EHsc > -Ie:\tempxavier\mapserver\buildkit\ > mapserver-4.8.3\..\gd-2.0.33 > -Ie:\tempxavier\mapserver\buildkit\mapserver-4.8.3 > \..\jpeg-6b > -Ie:\tempxavier\mapserver\buildkit\mapserver-4.8.3\..\proj-4.4.9/s > rc > -Ie:\tempxavier\mapserver\buildkit\mapserver-4.8.3\..\regex-0.12 > -Ie:\tempxav > ier\mapserver\buildkit\mapserver-4.8.3\..\gdal-1.3.2/gcore > -Ie:\tempxavier\mapse > rver\buildkit\mapserver-4.8.3\..\gdal-1.3.2/alg > -Ie:\tempxavier\mapserver\buildk > it\mapserver-4.8.3\..\gdal-1.3.2/ogr > -Ie:\tempxavier\mapserver\buildkit\mapserve > r-4.8.3\..\gdal-1.3.2/port > -Ie:\tempxavier\mapserver\buildkit\mapserver-4.8.3\.. > \gdal-1.3.2/ogr/ogrsf_frmts > -Ie:\tempxavier\mapserver\buildkit\mapserver-4.8.3\. > .\gdal-1.3.2/ogr > -Ie:\tempxavier\mapserver\buildkit\mapserver-4.8.3\..\gdal-1.3. > 2/port > -Ie:\tempxavier\mapserver\buildkit\mapserver-4.8.3\..\curl-7.15.0/includ > e > -Ie:\tempxavier\mapserver\buildkit\mapserver-4.8.3\..\ming-0.2a/src > -Ie:\tempx > avier\mapserver\buildkit\mapserver-4.8.3\..\ming-0.2a > -Ie:\tempxavier\mapserver\ > buildkit\mapserver-4.8.3\..\PDFlib-Lite-6.0.2/libs/pdflib > -Ie:\tempxavier\mapser > ver\buildkit\mapserver-4.8.3\..\postgresql-8.1.2/src/interfaces/libpq > -Ie:\tempx > avier\mapserver\buildkit\mapserver-4.8.3\..\postgresql-8.1.2/src/include > -I > e:\tempxavier\mapserver\buildkit\mapserver-4.8.3\..\libiconv-1.9.1\include > -Ie: > \tempxavier\mapserver\buildkit\mapserver-4.8.3\..\geos-2.2.2/source/headers > -Ie: > \tempxavier\mapserver\buildkit\mapserver-4.8.3\..\zlib-1.2.3 > -DHAVE_STRING_H -DR > EGEX_MALLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRLCAT > -DUSE_POSTGIS - > DWIN32 -D_WIN32 -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_JPEG -DUSE_GD_PNG > -DUSE_GD_ > JPEG -DUSE_GD_WBMP -DUSE_GD_GIF -DGD_HAS_GDIMAGEGIFPTR -DUSE_GD_FT > -DGD_HAS_GETB > ITMAPFONT -DUSE_OGR -DUSE_WMS_SVR -DUSE_THREAD -DUSE_WMS_LYR > -DUSE_MING_FLASH - > DIGNORE_MISSING_DATA -DENABLE_STDERR_DEBUG -DUSE_GDAL -DUSE_WFS_SVR > -DUSE_ > WFS_LYR -DUSE_WCS_SVR -DUSE_PDF -DUSE_GD_ANTIALIAS -DUSE_ICONV > -DUSE_GEOS > -DUSE_ZLIB /c mapogr.cpp /Fomapogr.obj > mapogr.cpp > e:\TempXavier\Mapserver\buildkit\mapserver-4.8.3\..\gdal-1.3.2\port\cpl_string.h > (174) : fatal error C1083: Impossible d'ouvrir le fichier include : 'string' > : N > o such file or directory > NMAKE : fatal error U1077: 'cl'?: code retour '0x2' > Stop. > > > > any ideas > > regards > > > > ----------------------------------------- > > Xavier Mauclaire > > ------------------------------------------------------- > > > > From nicolas.fortin at EC.GC.CA Fri Jun 16 06:20:57 2006 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Fri, 16 Jun 2006 09:20:57 -0400 Subject: [UMN_MAPSERVER-USERS] oracle spatial Message-ID: I use Oracle10g but neither MS4W nor Apache. I use IIS and my own compilation of mapserver. Windows XP SP2 IIS 5.1 Mapserver 4.8.3 CVS from 2006-06-07 Oracle 10g 10.1.0.2 All works fine. Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Rahkonen Jukka Envoy? : 16 juin 2006 09:11 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] oracle spatial Hi, I have Oracle 9i and I have faced no problem. Any happy 10g users out there? -Jukka- L?hett?j?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Puolesta Zhonghai Wang L?hetetty: 16. kes?kuuta 2006 15:43 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: Re: [UMN_MAPSERVER-USERS] oracle spatial Hi there, I am now facing the same problem now, after the DLL swapping according to the read-me file, the other old MapServer projects do not work any more, even under the CGI mode, and the error message looks like: [Fri Jun 16 14:38:55 2006] [error] [client 127.0.0.1] Premature end of script headers: mapserv.exe -- this is the error message in the Apache error log file. do anyone have any ideas? BTW: my system info: WinXP, MS4W 2.0, Oracle 10g R2 Instant Client the ogrinfo --formats that OCI is supported. many thanks. zhonghai On 6/16/06, Lasse Korhonen wrote: Hi Daniel, we're facing exactly the same problems you described. Swapping of dll-files is enough to make previously working maps totally unfunctional. Maps based on oracle spatial, shapefiles or MapInfo-files all give an Apache related message "Internal Server Error". Last row in the error.log states "Premature end of script headers: mapserv.exe". I can get errors from MapServer if I break the syntax in map-file, and mistakes in SQL-statements raise errors from Oracle (connection is fine?). Therefore I believe the problem is not related to .map-files or database at all. I'm wondering if this strange behaviour is somehow related to "wrong" software environment. So far we have tested following combinations with no luck: MS4W v1.5.4 & Windows NT 4.0 & remote Oracle 10g R2 database MS4W v2.0 & Windows NT 4.0 & remote Oracle 10g R2 database MS4W v1.5.4 & Windows 2003 Server & local Oracle 10g R2 database Maybe Jukka could tell what operating system he had in his successful installation? -- View this message in context: http://www.nabble.com/oracle-spatial-t1774461.html#a4895493 Sent from the Mapserver - User forum at Nabble.com. From szekerest at GMAIL.COM Fri Jun 16 06:57:18 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 16 Jun 2006 15:57:18 +0200 Subject: Mapscript ,Mono, Apache and Linux : a great story In-Reply-To: Message-ID: Xavier, > All the layerObj object i use in my program are d?clared in the mapfile so > i don't need to create layerObj from scratch using the constructor. > When you say that if a layerObj reference with a previously released native > memory segment, it may causing the error, what are the consequences for my > code ? Using the Dispose method is there the solution to avoid this problem > ? Most of the mapscript classes implement the IDisposable interface since they maintain unmanaged memory segments. It is a good practice to explicitly call Dispose (or by the using directive) if a newly created object is not needed any more. However you might want to maintain the mapObj reference for a longer period and the disposing will occur during the program destruction. Getting an existing object reference (eg. as returned by GetLayerByName) does not create a new object, so calling dispose is not needed. All of the objects internally maintain a flag indicating if it should free the internal memory during the finalization. So calling Dispose in the previous case might also not cause any problems. So you may not have to take care much of these issues the existing problems may dedicated to unproper handling of this reference and considered to be fixed. However it is not so easy to locate the reason of the problem since the crash will be slipped out on a subsequent finalization or the program termination. > > How can i get CVS code ? http://mapserver.gis.umn.edu/development/cvs/ using Tortoise CVS is fairly straightforward. > Why this code works well under windows and scratches under linux ? You may use different frameworks and CRT libraries. The problem may still exists but not manifested. Tamas From zhonghaiw at GMAIL.COM Fri Jun 16 07:09:09 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Fri, 16 Jun 2006 16:09:09 +0200 Subject: [UMN_MAPSERVER-USERS] oracle spatial In-Reply-To: <118A9CF846431048B65C4AFB0E57C0ED05EFB6@ECQCSTFMAIL1.quebec.int.ec.gc.ca> Message-ID: Hi Jeff, thanks you for your feedback. I tried with the command shp2img, both CONNECTTYPEs work well: OracleSpaital and OCI, the error only occurs with the HTTP request--I am using the CGI mode: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/Demo/OracleTest.map&mode=map hope this helps to find out the problem. thanks again, I will try it with MS4W 1.5.3. zhonghai On 6/16/06, Fortin,Nicolas [SteFoy] wrote: > > I use Oracle10g but neither MS4W nor Apache. I use IIS and my own > compilation of mapserver. > > Windows XP SP2 > IIS 5.1 > Mapserver 4.8.3 CVS from 2006-06-07 > Oracle 10g 10.1.0.2 > > All works fine. > > Nicolas > > > > > -----Message d'origine----- > De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la > part de Rahkonen Jukka > Envoy? : 16 juin 2006 09:11 > ? : MAPSERVER-USERS at LISTS.UMN.EDU > Objet : Re: [UMN_MAPSERVER-USERS] oracle spatial > > > Hi, > > I have Oracle 9i and I have faced no problem. Any happy 10g users out > there? > > -Jukka- > > > > > L?hett?j?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > Puolesta Zhonghai Wang > L?hetetty: 16. kes?kuuta 2006 15:43 > Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU > Aihe: Re: [UMN_MAPSERVER-USERS] oracle spatial > > > Hi there, > > I am now facing the same problem now, after the DLL swapping according to > the read-me file, the other old MapServer projects do not work any more, > even under the CGI mode, and the error message looks like: > > [Fri Jun 16 14:38:55 2006] [error] [client 127.0.0.1] Premature end of > script headers: mapserv.exe -- this is the error message in the Apache > error log file. > > do anyone have any ideas? > > BTW: my system info: WinXP, MS4W 2.0, Oracle 10g R2 Instant Client > > the ogrinfo --formats that OCI is supported. > > many thanks. > > zhonghai > > > On 6/16/06, Lasse Korhonen wrote: > Hi Daniel, > > we're facing exactly the same problems you described. Swapping of > dll-files > is enough to make previously working maps totally unfunctional. Maps based > on oracle spatial, shapefiles or MapInfo-files all give an Apache related > message "Internal Server Error". Last row in the error.log states > "Premature > end of script headers: mapserv.exe". > > I can get errors from MapServer if I break the syntax in map-file, and > mistakes in SQL-statements raise errors from Oracle (connection is fine?). > Therefore I believe the problem is not related to .map-files or database > at > all. > > I'm wondering if this strange behaviour is somehow related to "wrong" > software environment. So far we have tested following combinations with no > luck: > > MS4W v1.5.4 & Windows NT 4.0 & remote Oracle 10g R2 database > MS4W v2.0 & Windows NT 4.0 & remote Oracle 10g R2 database > MS4W v1.5.4 & Windows 2003 Server & local Oracle 10g R2 database > > Maybe Jukka could tell what operating system he had in his successful > installation? > -- > View this message in context: > http://www.nabble.com/oracle-spatial-t1774461.html#a4895493 > Sent from the Mapserver - User forum at Nabble.com. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Fri Jun 16 07:40:42 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 16 Jun 2006 16:40:42 +0200 Subject: c#-mapscript, zooming problem on Landsat-Layer In-Reply-To: <20060616080638.177040@gmx.net> Message-ID: Christian, > > Know it works, the Problem realy was the metadataObj of the Layer. After a short time the Object was destroyed...the number of metadata in the Object were OK but the programm were not able to find some specific metadata information, so I get that error message. > > I solved the problem by declaring the metadata-Object as a class-Member. So now it works, but what could be the reason for that problem? > Yeah. After looking into the code i see that setting the metadata of the layer is unsafe and to be avoided. I have posted a bug for it: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1803 Instead of creating a metadata object from scratch you should get the reference of the HashTableObj of the layer by reading layerObj.metadata a set the items as you have done before. > > Another problem I've got is on closing the application. Not every but often I get the following error: > System.AccessViolationException was unhandled > Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt." > Source="mapscript_csharp" > StackTrace: > at mapscriptPINVOKE.delete_mapObj(HandleRef jarg1) > at mapObj.Dispose() > at mapObj.Finalize() > > You should use the latest CVS version because you are using the layerObj(mapObj) costructor. For more details see: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1743 Best Regards, Tamas From zhonghaiw at GMAIL.COM Fri Jun 16 07:50:54 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Fri, 16 Jun 2006 16:50:54 +0200 Subject: oracle spatial In-Reply-To: <2534c4120606160745m42e2597du14b8f5a05bcbd23@mail.gmail.com> Message-ID: It's a little bit weird, I've test the version MS4W1.5.3 again, It also does not work. The same as MS4W2.0, with the command shp2img there is no problem to generate the map image. my MapFile contains both connectiontypes, this is the mapfile snippets: LAYER NAME "SEARCHZIP POLYGON" TYPE POLYGON STATUS DEFAULT CONNECTIONTYPE ORACLESPATIAL CONNECTION "Ar/Ar at GIS2" DATA "GEOLOC FROM SEARCHZIP USING NONE" CLASS NAME "ZIPAREA" COLOR 153 153 153 END END LAYER NAME "SEARCHCITY POLYGON" TYPE POLYGON STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "OCI:Ar/Ar at GIS2" DATA "SEARCHCITY" CLASS NAME "CITIES" COLOR 207 189 0 END END thanks for any hints to solve this problem. zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff2005 at SVS.GSFC.NASA.GOV Fri Jun 16 07:50:55 2006 From: jeff2005 at SVS.GSFC.NASA.GOV (Jeff de La Beaujardiere) Date: Fri, 16 Jun 2006 10:50:55 -0400 Subject: re-using raster CLASS definitions In-Reply-To: <20060615224701.77089.qmail@web30307.mail.mud.yahoo.com> Message-ID: Randy James wrote: > Creating a tile index may be what you want. gdal has one also you can > use tile4ms in your cgi-bin check it out at: > > http://mapserver.gis.umn.edu/docs/reference/utilityreference/tile4ms Thank you. I do not have tile4ms in my mapserver installation, but I successfully used ogrtindex. I mis-wrote in my first message that these were raster classes--they are in fact polygons whose interiors are filled with color, thus producing a raster-like image. The dataset is lunar geology classification, BTW. I'll post a link when publicly available. Thanks again, Jeff DLB From ad at IONICSOFT.COM Fri Jun 16 07:53:49 2006 From: ad at IONICSOFT.COM (Arnaud Diederen) Date: Fri, 16 Jun 2006 16:53:49 +0200 Subject: MapServer 4.x; GetFeatureInfo's SRS vs CRS Message-ID: Hello, When I issue a GetCapabilities on my installation of mapserver, using the following URL: http://localhost/cgi-bin/mapserv?map=/var/www/workshop/ita sca.map&service=WMS&version=1.3&request=GetCapabilities I get a capabilities document showing: So, the service expects requests of version 1.1.1 of the WMS spec, but when I issue a GetFeatureInfo with this URL: http://localhost/cgi-bin/mapserv?map=/var/www/workshop/itasca.map&SRS=EPSG:4326&BBOX=-99.30245,43.4354,-87.36445,49.404399999999995&TRANSPARENT=TRUE&BGCOLOR=0xFFFFFF&EXCEPTIONS=application/vnd.ogc.se_xml&WIDTH=800&HEIGHT=400&LAYERS=airports&STYLES=&REQUEST=GetFeatureInfo&VERSION=1.3&SERVICE=WMS&INFO_FORMAT=gml&X=363&Y=121&FEATURE_COUNT=100&QUERY_LAYERS=airports I get the following error: msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. hmm. But then, if I change the SRS parameter name to CRS, I get a valid (though empty) result: The weird thing is that in the version 1.1.1 of the spec, there is no CRS parameter for the GetFeatureInfo, but an SRS parameter. SRS was changed to CRS at version 1.3. It looks to me like a bug, am I wrong? Best regards, Arnaud Last Minute Addendum: When I try with the equivalent (projected) native logical bbox, in the native SRS (EPSG:26915, this is the Itasca demo!) mapserver doesn't mind the name of the SRS param. Both SRS and CRS work. Now, I'm totally lost o_O Will mapserver refuse to work properly if asked for features with a 4326 box? Thanks for any information! From Tom.Kralidis at EC.GC.CA Fri Jun 16 07:58:26 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 16 Jun 2006 10:58:26 -0400 Subject: MapServer 4.x; GetFeatureInfo's SRS vs CRS Message-ID: MapServer doesn't support WMS 1.3.0, only 1.1.1 1.0.0, and some in between in ad hoc fashion. You're GetFeatureInfo request cites version=1.3, where it should pass 1.1.1. What happens if you send a request like: http://localhost/cgi-bin/mapserv?map=/var/www/workshop/itasca.map&SRS=EP SG:4326&BBOX=-99.30245,43.4354,-87.36445,49.404399999999995&TRANSPARENT= TRUE&BGCOLOR=0xFFFFFF&EXCEPTIONS=application/vnd.ogc.se_xml&WIDTH=800&HE IGHT=400&LAYERS=airports&STYLES=&REQUEST=GetFeatureInfo&VERSION=1.1.1&SE RVICE=WMS&INFO_FORMAT=gml&X=363&Y=121&FEATURE_COUNT=100&QUERY_LAYERS=air ports ..Tom > > > Hello, > > When I issue a GetCapabilities on my installation of mapserver, using > the following URL: > > http://localhost/cgi-bin/mapserv?map=/var/www/workshop/ita > sca.map&service=WMS&version=1.3&request=GetCapabilities > > I get a capabilities document showing: > > > > > > So, the service expects requests of version 1.1.1 of the WMS > spec, but > when I issue a GetFeatureInfo with this URL: > > http://localhost/cgi-bin/mapserv?map=/var/www/workshop/itasca. map&SRS=EPSG:4326&BBOX=-99.30245,43.4354,-87.36445,49.404399999999995&TR ANSPARENT=TRUE&BGCOLOR=0xFFFFFF&EXCEPTIONS=application/vnd.ogc.se_xml&WI DTH=800&HEIGHT=400&LAYERS=airports&STYLES=&REQUEST=GetFeatureInfo&VERSIO N=1.3&SERVICE=WMS&INFO_FORMAT=gml&X=363&Y=121&FEATURE_COUNT=100&QUERY_LA YERS=airports I get the following error: msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. hmm. But then, if I change the SRS parameter name to CRS, I get a valid (though empty) result: The weird thing is that in the version 1.1.1 of the spec, there is no CRS parameter for the GetFeatureInfo, but an SRS parameter. SRS was changed to CRS at version 1.3. It looks to me like a bug, am I wrong? Best regards, Arnaud Last Minute Addendum: When I try with the equivalent (projected) native logical bbox, in the native SRS (EPSG:26915, this is the Itasca demo!) mapserver doesn't mind the name of the SRS param. Both SRS and CRS work. Now, I'm totally lost o_O Will mapserver refuse to work properly if asked for features with a 4326 box? Thanks for any information! From ad at IONICSOFT.COM Fri Jun 16 08:07:03 2006 From: ad at IONICSOFT.COM (Arnaud Diederen) Date: Fri, 16 Jun 2006 17:07:03 +0200 Subject: MapServer 4.x; GetFeatureInfo's SRS vs CRS In-Reply-To: <2576812186CDD411BF1500508B6DCE950E911532@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Hi Tom, thank you for your reply! Kralidis,Tom [Burlington] wrote: >MapServer doesn't support WMS 1.3.0, only 1.1.1 1.0.0, and some in >between in ad hoc fashion. > >You're GetFeatureInfo request cites version=1.3, where it should pass >1.1.1. What happens if you send a request like: > > >http://localhost/cgi-bin/mapserv?map=/var/www/workshop/itasca.map&SRS=EP >SG:4326&BBOX=-99.30245,43.4354,-87.36445,49.404399999999995&TRANSPARENT= >TRUE&BGCOLOR=0xFFFFFF&EXCEPTIONS=application/vnd.ogc.se_xml&WIDTH=800&HE >IGHT=400&LAYERS=airports&STYLES=&REQUEST=GetFeatureInfo&VERSION=1.1.1&SE >RVICE=WMS&INFO_FORMAT=gml&X=363&Y=121&FEATURE_COUNT=100&QUERY_LAYERS=air >ports > > It behaves exactly the same (the results with SRS and CRS are the same). Regards, Arnaud >..Tom > > > > >>Hello, >> >>When I issue a GetCapabilities on my installation of mapserver, using >>the following URL: >> >>http://localhost/cgi-bin/mapserv?map=/var/www/workshop/ita >>sca.map&service=WMS&version=1.3&request=GetCapabilities >> >>I get a capabilities document showing: >> >> >> >> >> >>So, the service expects requests of version 1.1.1 of the WMS >>spec, but >>when I issue a GetFeatureInfo with this URL: >> >>http://localhost/cgi-bin/mapserv?map=/var/www/workshop/itasca. >> >> >map&SRS=EPSG:4326&BBOX=-99.30245,43.4354,-87.36445,49.404399999999995&TR >ANSPARENT=TRUE&BGCOLOR=0xFFFFFF&EXCEPTIONS=application/vnd.ogc.se_xml&WI >DTH=800&HEIGHT=400&LAYERS=airports&STYLES=&REQUEST=GetFeatureInfo&VERSIO >N=1.3&SERVICE=WMS&INFO_FORMAT=gml&X=363&Y=121&FEATURE_COUNT=100&QUERY_LA >YERS=airports > >I get the following error: > > > > msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS >must be valid for all requested layers. > > > >hmm. But then, if I change the SRS parameter name to CRS, I get a valid >(though empty) result: > > xmlns:gml="http://www.opengis.net/gml" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > >The weird thing is that in the version 1.1.1 of the spec, there is no >CRS parameter for the GetFeatureInfo, but an SRS parameter. SRS was >changed to CRS at version 1.3. >It looks to me like a bug, am I wrong? > >Best regards, > > Arnaud > >Last Minute Addendum: When I try with the equivalent (projected) native >logical bbox, in the native SRS (EPSG:26915, this is the Itasca demo!) >mapserver doesn't mind the name of the SRS param. Both SRS and CRS work. > >Now, I'm totally lost o_O >Will mapserver refuse to work properly if asked for features with a 4326 > >box? > > >Thanks for any information! > > From ad at IONICSOFT.COM Fri Jun 16 08:08:23 2006 From: ad at IONICSOFT.COM (Arnaud Diederen) Date: Fri, 16 Jun 2006 17:08:23 +0200 Subject: MapServer 4.x; GetFeatureInfo's SRS vs CRS In-Reply-To: <4492C917.2080903@ionicsoft.com> Message-ID: Hi again, Arnaud Diederen wrote: > Hi Tom, > thank you for your reply! > > Kralidis,Tom [Burlington] wrote: > >> MapServer doesn't support WMS 1.3.0, only 1.1.1 1.0.0, and some in >> between in ad hoc fashion. >> >> You're GetFeatureInfo request cites version=1.3, where it should pass >> 1.1.1. What happens if you send a request like: >> >> >> http://localhost/cgi-bin/mapserv?map=/var/www/workshop/itasca.map&SRS=EP >> SG:4326&BBOX=-99.30245,43.4354,-87.36445,49.404399999999995&TRANSPARENT= >> TRUE&BGCOLOR=0xFFFFFF&EXCEPTIONS=application/vnd.ogc.se_xml&WIDTH=800&HE >> IGHT=400&LAYERS=airports&STYLES=&REQUEST=GetFeatureInfo&VERSION=1.1.1&SE >> RVICE=WMS&INFO_FORMAT=gml&X=363&Y=121&FEATURE_COUNT=100&QUERY_LAYERS=air >> ports >> >> > It behaves exactly the same (the results with SRS and CRS are the same). The same as before, I mean :) SRS -> error CRS -> ok Regards, Arnaud > > Regards, > > Arnaud > > > >> ..Tom >> >> >> >> >>> Hello, >>> >>> When I issue a GetCapabilities on my installation of mapserver, >>> using the following URL: >>> >>> http://localhost/cgi-bin/mapserv?map=/var/www/workshop/ita >>> sca.map&service=WMS&version=1.3&request=GetCapabilities >>> >>> I get a capabilities document showing: >>> >>> >>> >>> >>> >>> So, the service expects requests of version 1.1.1 of the WMS spec, >>> but when I issue a GetFeatureInfo with this URL: >>> >>> http://localhost/cgi-bin/mapserv?map=/var/www/workshop/itasca. >>> >> >> map&SRS=EPSG:4326&BBOX=-99.30245,43.4354,-87.36445,49.404399999999995&TR >> ANSPARENT=TRUE&BGCOLOR=0xFFFFFF&EXCEPTIONS=application/vnd.ogc.se_xml&WI >> DTH=800&HEIGHT=400&LAYERS=airports&STYLES=&REQUEST=GetFeatureInfo&VERSIO >> N=1.3&SERVICE=WMS&INFO_FORMAT=gml&X=363&Y=121&FEATURE_COUNT=100&QUERY_LA >> YERS=airports >> >> I get the following error: >> >> >> >> msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS >> must be valid for all requested layers. >> >> >> >> hmm. But then, if I change the SRS parameter name to CRS, I get a >> valid (though empty) result: >> >> > xmlns:gml="http://www.opengis.net/gml" >> xmlns:xlink="http://www.w3.org/1999/xlink" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> >> >> >> The weird thing is that in the version 1.1.1 of the spec, there is no >> CRS parameter for the GetFeatureInfo, but an SRS parameter. SRS was >> changed to CRS at version 1.3. >> It looks to me like a bug, am I wrong? >> >> Best regards, >> >> Arnaud >> >> Last Minute Addendum: When I try with the equivalent (projected) >> native logical bbox, in the native SRS (EPSG:26915, this is the >> Itasca demo!) mapserver doesn't mind the name of the SRS param. Both >> SRS and CRS work. >> >> Now, I'm totally lost o_O >> Will mapserver refuse to work properly if asked for features with a 4326 >> >> box? >> >> >> Thanks for any information! >> >> >> >> From earevaloch at GMAIL.COM Fri Jun 16 08:31:01 2006 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Fri, 16 Jun 2006 10:31:01 -0500 Subject: sobre conecction and conecctiontype......WMS Message-ID: hello list: I am forming in WMS in platform Windows I have used MS4W. when I am doing mapfile I see these lines in the example: CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?" CONNECTIONTYPE WMS they to me to explain as he is funciion of mswms_gmap. As I generate it??? That it does?? Note: mapserver where it lodges to mapfile this in a Linux. -------------- next part -------------- An HTML attachment was scrubbed... URL: From D.Stone at ED.AC.UK Fri Jun 16 09:26:30 2006 From: D.Stone at ED.AC.UK (DjwStone) Date: Fri, 16 Jun 2006 09:26:30 -0700 Subject: Query by point In-Reply-To: <4829017.post@talk.nabble.com> Message-ID: I think I've sorted this problem (for the second time!). The first thing I noticed was the DATA statement was wrongly bracketed, so now it would read: DATA "geom from (select dr, geom, stdname, reftostconf, saintid, locationref, placename, deddlo, deddhi, dedicationtype, stdesc, oid from saintloc where ((deddlo between 14010101 and 15001231) OR (deddhi between 14010101 and 15001231)) AND dedicationtype = 'Church dedication') as foo using srid=27700" But I still found the original problem recurred, i.e. the layer would display the correct points when the saint-name filter was supplied. However, when query mode was invoked and one of the points was clicked, the result template displayed data for a different church dedication at the same location (when there were multiple possibilities). In effect, it seems the filter was not being applied in query mode. The solution (not fully tested) seems to be to add the saint-name criterion to the DATA statement: DATA "geom from (select dr, geom, stdname, reftostconf, saintid, locationref, placename, deddlo, deddhi, dedicationtype, stdesc, oid from saintloc where ((deddlo between 14010101 and 15001231) OR (deddhi between 14010101 and 15001231)) AND dedicationtype = 'Church dedication' AND stdname='%stname%') as foo using srid=27700" and remove the FILTERITEM and FILTER lines. Cheers, Dave -- View this message in context: http://www.nabble.com/Query-by-point-t1774168.html#a4903656 Sent from the Mapserver - User forum at Nabble.com. From D.Stone at ED.AC.UK Fri Jun 16 09:31:03 2006 From: D.Stone at ED.AC.UK (DjwStone) Date: Fri, 16 Jun 2006 09:31:03 -0700 Subject: Query templates Message-ID: Is there any way to get the query template (LAYER/CLASS/TEMPLATE) to open in a separate window? Cheers, Dave -- View this message in context: http://www.nabble.com/Query-templates-t1799326.html#a4903724 Sent from the Mapserver - User forum at Nabble.com. From warmerdam at POBOX.COM Fri Jun 16 09:52:10 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 16 Jun 2006 12:52:10 -0400 Subject: re-using raster CLASS definitions In-Reply-To: <4491D53F.5010403@svs.gsfc.nasa.gov> Message-ID: Jeff de La Beaujardiere wrote: > Is there a way to re-use raster class definitions in a mapfile? I have > several shapefiles with a large number of polygon types mapped to > different colors. The same types appear in all the files. At present I > duplicate all the CLASS entries in each LAYER, but I would like to > shorten the mapfile by collecting them somewhere. All the layers are in > the same GROUP, if that helps. Jeff, There is no mechanism for doing this in MapServer. However, some people using a preprocessor (like the C preprocessor) to generate mapfiles from an input file in order to use #include and #ifdef type directives. 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 Fri Jun 16 11:10:38 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 16 Jun 2006 20:10:38 +0200 Subject: MapServer 4.x; GetFeatureInfo's SRS vs CRS In-Reply-To: <4492C5FD.1060806@ionicsoft.com> Message-ID: Arnaud, which SRS's are you advertizing in the MAP file? You need to advertize them using WMS_SRS (or the more general OWS_SRS) metadata. Can you post your current MAP file? Best regards, Bart Arnaud Diederen wrote: > Hello, > > When I issue a GetCapabilities on my installation of mapserver, using > the following URL: > > http://localhost/cgi-bin/mapserv?map=/var/www/workshop/ita > sca.map&service=WMS&version=1.3&request=GetCapabilities > > I get a capabilities document showing: > > > > > > So, the service expects requests of version 1.1.1 of the WMS spec, but > when I issue a GetFeatureInfo with this URL: > > http://localhost/cgi-bin/mapserv?map=/var/www/workshop/itasca.map&SRS=EPSG:4326&BBOX=-99.30245,43.4354,-87.36445,49.404399999999995&TRANSPARENT=TRUE&BGCOLOR=0xFFFFFF&EXCEPTIONS=application/vnd.ogc.se_xml&WIDTH=800&HEIGHT=400&LAYERS=airports&STYLES=&REQUEST=GetFeatureInfo&VERSION=1.3&SERVICE=WMS&INFO_FORMAT=gml&X=363&Y=121&FEATURE_COUNT=100&QUERY_LAYERS=airports > > > I get the following error: > > > > msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS > must be valid for all requested layers. > > > > hmm. But then, if I change the SRS parameter name to CRS, I get a > valid (though empty) result: > > xmlns:gml="http://www.opengis.net/gml" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > The weird thing is that in the version 1.1.1 of the spec, there is no > CRS parameter for the GetFeatureInfo, but an SRS parameter. SRS was > changed to CRS at version 1.3. > It looks to me like a bug, am I wrong? > > Best regards, > > Arnaud > > Last Minute Addendum: When I try with the equivalent (projected) > native logical bbox, in the native SRS (EPSG:26915, this is the Itasca > demo!) mapserver doesn't mind the name of the SRS param. Both SRS and > CRS work. Now, I'm totally lost o_O > Will mapserver refuse to work properly if asked for features with a > 4326 box? > > > Thanks for any information! > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From brauplists at GMAIL.COM Fri Jun 16 13:51:34 2006 From: brauplists at GMAIL.COM (Bruce Raup) Date: Fri, 16 Jun 2006 14:51:34 -0600 Subject: script for dealing with temporary files Message-ID: I see in the mapserver documentation that a suggested way for removing temporary files that mapserver creates is a simple 'find' command: #!/bin/csh find /usr/local/www/docs/tmp -follow -name "*.gif" -exec rm {} \; A problem with this is that it even removes files that have just been created. The -mtime option to find is a bit of help if you can wait a day to delete files, but we didn't have that option. So I wrote a simple script in perl that allows you to specify a minimum age in minutes a file should have before it gets deleted. I'm sure many other people have written such scripts, probably better ones than mine, but I thought I share mine since it's definitely better than the above 'find' command. It's available at http://cires.colorado.edu/~braup/software/clean_tmp_area.pl If you have any comments or suggestions for improvement, I'd be happy to hear about them. Cheers, Bruce -- Bruce Raup http://cires.colorado.edu/~braup/ From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Fri Jun 16 14:22:39 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Fri, 16 Jun 2006 17:22:39 -0400 Subject: script for dealing with temporary files Message-ID: Good idea. Here's mine, written in Python. It preserves the legend symbology but deletes other temporary images generated by mapserver: #!/home/atlas/web/bin/python # Directory where MapServer temporary files are created TMPDIR = '/dev/shm/atlas' # Time-To-Live (TTL) in minutes TTL = 5 # Nothing to change below from glob import glob from os.path import getatime from os import unlink from time import time import re filelist = glob(TMPDIR + '/*.gif') + glob(TMPDIR + '/*.img.tmp') grace = TTL * 60 for file in filelist: try: atime = getatime(file) if atime < time() - grace and not re.match('^.*?_\d{5,6}_\d{10}_\d{1,2}_\d{1,2}_\d{1,2}_\d{1,2}\.gif$', file): unlink(file) except: pass Cheers, J.F. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bruce Raup Sent: June 16, 2006 4:52 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] script for dealing with temporary files I see in the mapserver documentation that a suggested way for removing temporary files that mapserver creates is a simple 'find' command: #!/bin/csh find /usr/local/www/docs/tmp -follow -name "*.gif" -exec rm {} \; A problem with this is that it even removes files that have just been created. The -mtime option to find is a bit of help if you can wait a day to delete files, but we didn't have that option. So I wrote a simple script in perl that allows you to specify a minimum age in minutes a file should have before it gets deleted. I'm sure many other people have written such scripts, probably better ones than mine, but I thought I share mine since it's definitely better than the above 'find' command. It's available at http://cires.colorado.edu/~braup/software/clean_tmp_area.pl If you have any comments or suggestions for improvement, I'd be happy to hear about them. Cheers, Bruce -- Bruce Raup http://cires.colorado.edu/~braup/ From becky at BECKYPOOLE.COM Fri Jun 16 14:32:11 2006 From: becky at BECKYPOOLE.COM (Becky Poole) Date: Fri, 16 Jun 2006 16:32:11 -0500 Subject: WHY????????? MEEEEEEEE??????????????????????? Message-ID: I am getting thousands of emails that are going to this address asking all kinds of questions about mapserver. Can you tell me how to stop this madness????????? My mailbox if FULL ALL THE TIME WITH THIS STUFF. I NEED HELP TO MAKE IT STOP NOW!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! From mseibel at GMAIL.COM Fri Jun 16 15:41:39 2006 From: mseibel at GMAIL.COM (M S) Date: Fri, 16 Jun 2006 18:41:39 -0400 Subject: script for dealing with temporary files In-Reply-To: <7CDD7B94357FD5119E800002A537C46E0B8B7FF3@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: how about a cron job: 0 1 * * * /path/to/script that runs a shell script: rm -f /path/to/tmp/files/*; On 6/16/06, Doyon, Jean-Francois wrote: > > Good idea. > > Here's mine, written in Python. It preserves the legend symbology but > deletes other temporary images generated by mapserver: > > #!/home/atlas/web/bin/python > > # Directory where MapServer temporary files are created > > TMPDIR = '/dev/shm/atlas' > > # Time-To-Live (TTL) in minutes > > TTL = 5 > > # Nothing to change below > > from glob import glob > from os.path import getatime > from os import unlink > from time import time > import re > > filelist = glob(TMPDIR + '/*.gif') + glob(TMPDIR + '/*.img.tmp') > grace = TTL * 60 > > for file in filelist: > try: > atime = getatime(file) > if atime < time() - grace and not > re.match('^.*?_\d{5,6}_\d{10}_\d{1,2}_\d{1,2}_\d{1,2}_\d{1,2}\.gif$', > file): > unlink(file) > except: > pass > > Cheers, > J.F. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU ] On > Behalf Of Bruce Raup > Sent: June 16, 2006 4:52 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] script for dealing with temporary files > > I see in the mapserver documentation that a suggested way for removing > temporary files that mapserver creates is a simple 'find' command: > > #!/bin/csh > find /usr/local/www/docs/tmp -follow -name "*.gif" -exec rm {} \; > > A problem with this is that it even removes files that have just been > created. The -mtime option to find is a bit of help if you can wait a day > to delete files, but we didn't have that option. So I wrote a simple > script > in perl that allows you to specify a minimum age in minutes a file should > have before it gets deleted. I'm sure many other people have written such > scripts, probably better ones than mine, but I thought I share mine since > it's definitely better than the above 'find' command. It's available at > http://cires.colorado.edu/~braup/software/clean_tmp_area.pl > > If you have any comments or suggestions for improvement, I'd be happy to > hear about them. > > Cheers, > Bruce > > -- > Bruce Raup > http://cires.colorado.edu/~braup/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hydromap at GMAIL.COM Sat Jun 17 00:47:52 2006 From: hydromap at GMAIL.COM (Shoaib Burq) Date: Sat, 17 Jun 2006 17:47:52 +1000 Subject: WHY????????? MEEEEEEEE??????????????????????? In-Reply-To: Message-ID: fill in your email address here and click "Leave MAPSERVER-USERS" http://lists.umn.edu/cgi-bin/wa?SUBED1=mapserver-users&A=1 On 6/17/06, Becky Poole wrote: > I am getting thousands of emails that are going to this address asking all > kinds of questions about mapserver. Can you tell me how to stop this > madness????????? My mailbox if FULL ALL THE TIME WITH THIS STUFF. I NEED > HELP TO MAKE IT STOP NOW!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > From Steve.Lime at DNR.STATE.MN.US Sat Jun 17 06:23:45 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Sat, 17 Jun 2006 08:23:45 -0500 Subject: Query templates Message-ID: Dave: Sure. In your browse template you'll need to add (or add to) a little bit of javascript that is called when the form is submitted. Of the top of my head it's like:
...
Steve >>> DjwStone 06/16/06 11:31 AM >>> Is there any way to get the query template (LAYER/CLASS/TEMPLATE) to open in a separate window? Cheers, Dave -- View this message in context: http://www.nabble.com/Query-templates-t1799326.html#a4903724 Sent from the Mapserver - User forum at Nabble.com. From kikuchi at ICAT.NE.JP Fri Jun 16 04:07:53 2006 From: kikuchi at ICAT.NE.JP (kikuchi) Date: Fri, 16 Jun 2006 20:07:53 +0900 Subject: No subject Message-ID: Hi. I'm a fresh of using Mapserver. I'm planning to use an illustrated map, which is based on a paper town map (width: 1500m; height:1000m). unfortunately, that map is heading up northwest, but I wanna fix that position on the mapserver, not heading north. To do that so, I've heard that I have to create an own projection. Does anybody know how to rotate the map for heading up Northwest or how to create own projection? Is there any reference for that? Thanks, RIO From dnuttall at DNLT.COM Sat Jun 17 08:57:37 2006 From: dnuttall at DNLT.COM (Dave Nuttall) Date: Sat, 17 Jun 2006 10:57:37 -0500 Subject: U.S. Army SBIR Solicitation In-Reply-To: Message-ID: The latest solicitation from the US Army for "Small Business Innovative Research" (SBIR) proposals, includes the following item that may be of interest to some on this list. Contact me off-line if you're able/interested in bidding. Dave Nuttall San Antonio, Texas -- snip here -- A06-087 TITLE: Improved Web-Based Mapping TECHNOLOGY AREAS: Information Systems, Battlespace OBJECTIVE: Research available commercial web-based mapping tools to find and leverage for use in military web-based mapping applications. Develop an Improved Web-Based Mapping (IWM) application server product that provides thin client map access in a web browser but with fast response times. DESCRIPTION: NEBC (Network Enabled Battle Command) is an Army Technology Objective (ATO) in the Communications-Electronics Research, Development and Engineering Center (CERDEC), the Command and Control Directorate (C2D) focused developing C2 (Command and Control) mission planning and execution monitoring services. C2 Service clients will come in many varieties, but the main difference is thin versus thick. Thick clients are applications that require heavy install processes and take up large amounts of hard drive space. They tend to run faster than thin clients but are available to a smaller set of users. Thin clients require little or no install processes and take up almost no hard drive space. While thin clients tend to run slower than thick clients they are available to a larger group of users. Thin clients could be something as simple as a web browser. There exists a need to display mapping information over a network in a timely manner. Current solutions (ArcIMS, JointWebCOP, etc.) work adequately, but there exists new emerging solutions (Google Maps, MSN Virtual Earth) that seem to work much more efficiently and display mapping information over a thin client as if it was a thick application. By utilizing technology like AJAX (Asynchronous JavaScript and XML) the user can view information over a web browser with the response time close to that of a local application (thick client). The user can pan and zoom the map with such speed that it appears to be running locally with no delays for the communication to the server. The goal of this SBIR is to create an IWM web server application that allows commanders and other military and edge users to view mapping and plan information over a web browser in an extremely fast manner. Loading and wait times should be virtually non-existent. Research of existing commercial tools will have to be completed to determine what can be leveraged and what has to be created. In addition to displaying mapping products like DTED (Digital Terrain Elevation Data), the IWM should provide an API (Application Programming Interface) that would allow other data providers to incorporate their information into the map (e.g. weather, intelligence, logistics). Effectively this would create a combined mapping product that merges all different types of information into one uniform picture that can be provided to the user. Examples of this type of merging can be seen at HousingMaps, where real estate data is overlaid on mapping information coming from GoogleMaps. The end result is that the user is presented with data from multiple sources but integrated into one picture. PHASE I: Research commercially available thin client technologies (i.e., AJAX). Explore how these components could work with available military mapping technology and data elements. Any solution must work in concert with the C/JMTK (Commercial Joint Mapping Toolkit) as it is the standard for generating military maps and symbology. Also, this solution must be capable of allowing multiple providers to incorporate data into the map. PHASE II: Build an IWM that would reside on a web server and act as a map/data displayer to any thin clients. The IWM will also provide an API such that any other data provider could incorporate its information into the map. PHASE III: The final product and API specification could be commercially licensed to mapping companies like ESRI (Environmental Systems Research Institute) or included as part of the C/JMTK. Specific commercial applications include the creation of a fast web-based weather map viewer or dynamically updating traffic and congestion maps. For military use, the IWM could be included as an enhancement to the existing PM GCCS-A (Global Command and Control System - Army) product JWC (JointWebCOP). REFERENCES: 1) http://maps.google.com 2) http://www.jointwebcop.com 3) http://en.wikipedia.org/wiki/AJAX 4) http://www.cjmtk.com 5) http://maps.msn.com 6) http://zdnet.com.au/news/software/soa/Take_browsers_to_the_limit_Google/0,20 00061733,39204515,00.htm 7) http://www.housingmaps.com 8) http://www.esri.com KEYWORDS: mapping, ajax, cjmtk, thin client, web services From pcreso at PCRESO.COM Sat Jun 17 13:57:30 2006 From: pcreso at PCRESO.COM (Brent Wood) Date: Sat, 17 Jun 2006 13:57:30 -0700 Subject: mapserver mapscript vs mapserver cgi projection problem In-Reply-To: <20060616200331.CD9C.KIKUCHI@icat.ne.jp> Message-ID: Hi, The earlier problem of projections not working with java mapscript was due to the install package missing a couple of DLL's. proj4 was there, but apparently it also needs some others. So, hydra-like, every problem resolved generates new ones... In this case, I'm reprojecting a tileindex layer (EPSG:27200 - NZMG) into a lat/long map. The Linux mapserver CGI version does this perfectly. The Windows java mapscript implementation comes close, but has the rasters about 100m offset. I don't think it's a datum issue (but I could be wrong). Does anyone have any idea what the problem could be (or even better, what the solution is :-)? Thanks, Brent Wood From rubydunes at YAHOO.COM Sat Jun 17 21:45:13 2006 From: rubydunes at YAHOO.COM (rubydunes) Date: Sat, 17 Jun 2006 21:45:13 -0700 Subject: Buffering? Message-ID: Hey Everyone... I'm wondering what strategies others have used to buffer and select, that is to find all features within a certain distance from a selected feature. Is it built in somewhere and I just missed that part in the documentation? Thanks! Bill __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Steve.Lime at DNR.STATE.MN.US Sun Jun 18 04:32:56 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Sun, 18 Jun 2006 06:32:56 -0500 Subject: Buffering? Message-ID: Bill: You have a couple of options. If you want to create a new, buffered feature then you need to use mapscript with GEOS support compiled in. Then you can do something like: $bShape = $shape->buffer(500); If you want just query output then that is accomplished using tolerances. Both the CGI and mapscript have mechanisms to query using a arbitrary shape or using a feature query (staged query). So, if you select a polygon and then query other layers with non-zero tolerances then you are in effect doing a buffered query since mapserver will honor those tolerances... Steve >>> rubydunes 06/17/06 11:45 PM >>> Hey Everyone... I'm wondering what strategies others have used to buffer and select, that is to find all features within a certain distance from a selected feature. Is it built in somewhere and I just missed that part in the documentation? Thanks! Bill __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From umn-ms at HYDROTEC.DE Sun Jun 18 05:36:50 2006 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Sun, 18 Jun 2006 14:36:50 +0200 Subject: [UMN_MAPSERVER-DEV] SWIG mapscript critical problems!!! In-Reply-To: Message-ID: Same problem in Java-Mapscript: http://article.gmane.org/gmane.comp.gis.mapserver.user/11678 btw: Workaround - no solution! - ist to call delete() directly: http://article.gmane.org/gmane.comp.gis.mapserver.user/11536 Benedikt UMN MapServer Developers List schrieb am 16.06.2006 18:09:44: > Developers, > > Along with the recent postings on the user's list some of the folks > are complaining about funky > segfaults, memory reference exceptions when using some of the mapscript objects. > > I have found the following problems and would like to know if these > issues apply to the other languages or not. > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1803 > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1743 > > Best Regards, > > Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Sun Jun 18 11:34:47 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Sun, 18 Jun 2006 20:34:47 +0200 Subject: [UMN_MAPSERVER-DEV] SWIG mapscript critical problems!!! In-Reply-To: Message-ID: Hi, I can see that the java and C# are something similar in these cases. The reason that the workaround mentioned goes is that when destroying the object the current implementation prevents from destroying the swigCPtr referenced memory if the object belongs to a parent object. For example in class.i we have: ~classObj() { if (!self->layer) { freeclass(self); free(self); } } However the correct solution is to notify swig so as to set the internal swigCMemOwn to false if the object was constucted with a given parent object. For example In C# we can acieve this as: %typemap(csconstruct, excode=SWIGEXCODE) classObj(layerObj layer) %{: this($imcall, true) { if (layer != null) this.swigCMemOwn = false;$excode } %} And we can do the same for layerObj and styleObj as well. Best Regards, Tamas _____ From: Benedikt Rothe [mailto:b.rothe at hydrotec.de] On Behalf Of umn-ms at hydrotec.de Sent: Sunday, June 18, 2006 2:37 PM To: Tamas Szekeres; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-DEV] SWIG mapscript critical problems!!! Same problem in Java-Mapscript: http://article.gmane.org/gmane.comp.gis.mapserver.user/11678 btw: Workaround - no solution! - ist to call delete() directly: http://article.gmane.org/gmane.comp.gis.mapserver.user/11536 Benedikt UMN MapServer Developers List schrieb am 16.06.2006 18:09:44: > Developers, > > Along with the recent postings on the user's list some of the folks > are complaining about funky > segfaults, memory reference exceptions when using some of the mapscript objects. > > I have found the following problems and would like to know if these > issues apply to the other languages or not. > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1803 > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1743 > > Best Regards, > > Tamas -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.0/368 - Release Date: 2006.06.16. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.0/368 - Release Date: 2006.06.16. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Sun Jun 18 12:59:13 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sun, 18 Jun 2006 15:59:13 -0400 Subject: mapserver mapscript vs mapserver cgi projection problem Message-ID: Brent - Well, an error of that magnitude certainly looks like a datum problem, particularly if your lat/lon output uses a datum different than NZGD49, the datum used by the EPSG:27200 projection. The first thing I would check is to make sure your Windows installation of PROJ is set up with the required set of NADCON grid shift files. If the grid shift files are not present, PROJ will silently return the un-shifted (and therefore incorrect) results. - 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: Saturday, June 17, 2006 4:58 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mapserver mapscript vs mapserver cgi projection problem Hi, The earlier problem of projections not working with java mapscript was due to the install package missing a couple of DLL's. proj4 was there, but apparently it also needs some others. So, hydra-like, every problem resolved generates new ones... In this case, I'm reprojecting a tileindex layer (EPSG:27200 - NZMG) into a lat/long map. The Linux mapserver CGI version does this perfectly. The Windows java mapscript implementation comes close, but has the rasters about 100m offset. I don't think it's a datum issue (but I could be wrong). Does anyone have any idea what the problem could be (or even better, what the solution is :-)? Thanks, Brent Wood From becky at BECKYPOOLE.COM Sun Jun 18 16:58:10 2006 From: becky at BECKYPOOLE.COM (Becky Poole) Date: Sun, 18 Jun 2006 18:58:10 -0500 Subject: FW: Re: [UMN_MAPSERVER-USERS] mapserver mapscript vs mapserver cgi projection problem Message-ID: Dear Mapserver: I am getting hundreds of emails from many different people such as the one here and I don't know why. Do you have any reason why? I am a member of mapserver and have been for about a year but these email started about a month ago. I'm wondering if I am on some sort of email reply list concerning these questions. If I am can you please take me off..... OR if you know why I am getting these emails please let me know. Thank you, Becky Poole From: Ed McNierney Reply-To: Ed McNierney To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver mapscript vs mapserver cgi projection problem Date: Sun, 18 Jun 2006 15:59:13 -0400 Brent - Well, an error of that magnitude certainly looks like a datum problem, particularly if your lat/lon output uses a datum different than NZGD49, the datum used by the EPSG:27200 projection. The first thing I would check is to make sure your Windows installation of PROJ is set up with the required set of NADCON grid shift files. If the grid shift files are not present, PROJ will silently return the un-shifted (and therefore incorrect) results. - 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: Saturday, June 17, 2006 4:58 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mapserver mapscript vs mapserver cgi projection problem Hi, The earlier problem of projections not working with java mapscript was due to the install package missing a couple of DLL's. proj4 was there, but apparently it also needs some others. So, hydra-like, every problem resolved generates new ones... In this case, I'm reprojecting a tileindex layer (EPSG:27200 - NZMG) into a lat/long map. The Linux mapserver CGI version does this perfectly. The Windows java mapscript implementation comes close, but has the rasters about 100m offset. I don't think it's a datum issue (but I could be wrong). Does anyone have any idea what the problem could be (or even better, what the solution is :-)? Thanks, Brent Wood From ben at REMOTEINFORMATION.COM.AU Sun Jun 18 19:03:10 2006 From: ben at REMOTEINFORMATION.COM.AU (Ben Madin) Date: Mon, 19 Jun 2006 10:03:10 +0800 Subject: Finding centroids from shapefiles (php/mapscript) Message-ID: G'day all, I am hoping to put lines (arrows) between polygons (to show flow). I was thinking of starting and ending the arrows based on the centroid of the polygon, but although I have found some stuff on doing this with PostGIS, I am using shapefiles and MSSQL Server, so my question is : Can I find or calculate the centroid of a shapefile (ideally from php/ mapscript)? cheers Ben -- Ben Madin t/f: 08 9192 5535 m: 0448 887 220 ben at remoteinformation.com.au From narayani.tech at GMAIL.COM Sun Jun 18 23:59:06 2006 From: narayani.tech at GMAIL.COM (Narayani Barve) Date: Mon, 19 Jun 2006 12:29:06 +0530 Subject: problem in Mapserver installation Message-ID: Dear all, I am trying to install mapserver version 4.8.1 in windows 2000 system. I have loaded WAMP5 (window's Apache 2, MySQL 5 and Php 5). I downloaded the file "mapserver-4.8.1-win32-php4.4.2.zip". As per the installation instruction, I copied the dll files in the extentions directory in php. Unzipped the files in the directory C:\mapserver_binaries. And configured the path variable in windows. I also download the example "itasca" and copied it to the "c:\wamp\www", This is the localhost directory in WAMP. And changed the paramenter accordingly in the demo file. Now I have 2 problems. 1. Sample code with "itasca" is not working. It gives me error "firefox do not know how to open this address, because the protocol(c) isn't associated with any program". So I thought my mapserver is not installed properly. 2. So I copied the sample code given in the documention section of mapserver. The code is as follows. when I execute this code I get error Warning: "dl() [function.dl]: Not supported in multithreaded Web servers - use extension=php_mapscript_48.dll in your php.ini in C:\wamp\www\sample.php on line 10 " Now I do not know, whether the mapserver is configured properly or not. I am trying to configure Mapserver from some time, but I am not getting any success. Can anybody help me in giving some useful suggestion.? Any help is appreciated. Narayani -------------- next part -------------- An HTML attachment was scrubbed... URL: From ad at IONICSOFT.COM Mon Jun 19 00:25:13 2006 From: ad at IONICSOFT.COM (Arnaud Diederen) Date: Mon, 19 Jun 2006 09:25:13 +0200 Subject: MapServer 4.x; GetFeatureInfo's SRS vs CRS In-Reply-To: <4492F41E.2080002@xs4all.nl> Message-ID: Hi Bart, Bart van den Eijnden (OSGIS) wrote: > Arnaud, > which SRS's are you advertizing in the MAP file? You need to advertize > them using WMS_SRS (or the more general OWS_SRS) metadata. In the (attached) map file -a barely modified itasca.map from the demo- I advertise epsg 26915, but I thought (erroneously) that the epsg 4326 would be supported as well. Still, I found it funny that both CRS and SRS work for valid Epsg IDs, and that SRS doesn't work for invalid Epsg IDs. Regards, Arnaud > > Can you post your current MAP file? > > Best regards, > Bart > > Arnaud Diederen wrote: > >> Hello, >> >> When I issue a GetCapabilities on my installation of mapserver, using >> the following URL: >> >> http://localhost/cgi-bin/mapserv?map=/var/www/workshop/ita >> sca.map&service=WMS&version=1.3&request=GetCapabilities >> >> I get a capabilities document showing: >> >> >> >> >> >> So, the service expects requests of version 1.1.1 of the WMS spec, >> but when I issue a GetFeatureInfo with this URL: >> >> http://localhost/cgi-bin/mapserv?map=/var/www/workshop/itasca.map&SRS=EPSG:4326&BBOX=-99.30245,43.4354,-87.36445,49.404399999999995&TRANSPARENT=TRUE&BGCOLOR=0xFFFFFF&EXCEPTIONS=application/vnd.ogc.se_xml&WIDTH=800&HEIGHT=400&LAYERS=airports&STYLES=&REQUEST=GetFeatureInfo&VERSION=1.3&SERVICE=WMS&INFO_FORMAT=gml&X=363&Y=121&FEATURE_COUNT=100&QUERY_LAYERS=airports >> >> >> I get the following error: >> >> >> >> msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS >> must be valid for all requested layers. >> >> >> >> hmm. But then, if I change the SRS parameter name to CRS, I get a >> valid (though empty) result: >> >> > xmlns:gml="http://www.opengis.net/gml" >> xmlns:xlink="http://www.w3.org/1999/xlink" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> >> >> >> The weird thing is that in the version 1.1.1 of the spec, there is no >> CRS parameter for the GetFeatureInfo, but an SRS parameter. SRS was >> changed to CRS at version 1.3. >> It looks to me like a bug, am I wrong? >> >> Best regards, >> >> Arnaud >> >> Last Minute Addendum: When I try with the equivalent (projected) >> native logical bbox, in the native SRS (EPSG:26915, this is the >> Itasca demo!) mapserver doesn't mind the name of the SRS param. Both >> SRS and CRS work. Now, I'm totally lost o_O >> Will mapserver refuse to work properly if asked for features with a >> 4326 box? >> >> >> Thanks for any information! >> >> > > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: itasca.map URL: From madprof at GMX.CH Mon Jun 19 00:33:24 2006 From: madprof at GMX.CH (Daniel Goetz) Date: Mon, 19 Jun 2006 09:33:24 +0200 Subject: oracle spatial In-Reply-To: <2534c4120606160750n2115975sa16057382305f383@mail.gmail.com> Message-ID: Hi Jeff, I installed the ms4w 1.5.3 package on my computer, did the .dll swapping and as you prompted everything works fine. I can show oracle data via "OGR" and via "native" mapserver supprot. And I can map all other file-based formats and can combine them with oracle spatial data. Thank you all so much for your help. I am really thankful for your assistance. Thank you. regards Daniel P.S. And please let me know, when the problems with the libmap.dll (for oracle support) in the ms4w 2.0 package are fixed. Thank you. -------- Original-Nachricht -------- Datum: Fri, 16 Jun 2006 16:50:54 +0200 Von: Zhonghai Wang An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] RE : oracle spatial > It's a little bit weird, I've test the version MS4W1.5.3 again, It also > does > not work. The same as MS4W2.0, with the command shp2img there is no > problem > to generate the map image. my MapFile contains both connectiontypes, this > is > the mapfile snippets: > > LAYER > NAME "SEARCHZIP POLYGON" > TYPE POLYGON > STATUS DEFAULT > CONNECTIONTYPE ORACLESPATIAL > CONNECTION "Ar/Ar at GIS2" > DATA "GEOLOC FROM SEARCHZIP USING NONE" > > CLASS > NAME "ZIPAREA" > COLOR 153 153 153 > END > END > > LAYER > NAME "SEARCHCITY POLYGON" > TYPE POLYGON > STATUS DEFAULT > CONNECTIONTYPE OGR > CONNECTION "OCI:Ar/Ar at GIS2" > DATA "SEARCHCITY" > > CLASS > NAME "CITIES" > COLOR 207 189 0 > END > END > > thanks for any hints to solve this problem. > > zhonghai -- "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail From bartvde at XS4ALL.NL Mon Jun 19 00:36:28 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 19 Jun 2006 09:36:28 +0200 Subject: MapServer 4.x; GetFeatureInfo's SRS vs CRS In-Reply-To: <44965159.3020600@ionicsoft.com> Message-ID: Arnaud, what happens if you add EPSG:4326 to your WMS_SRS? Can you query in EPSG:4326 then? I.e.: WMS_SRS "EPSG:26915 EPSG:4326" You need to do this for your WEB METADATA section as well as for your LAYER's METADATA sections. More ideally, you could just leave out the LAYER's WMS_SRS since they inherit from the parent layer (WEB METADATA) anyway. > Still, I found it funny that both CRS and SRS work for valid Epsg IDs, > and that SRS doesn't work for invalid Epsg IDs. I think this is probably since Mapserver will default to the projection defined in the MAP file at the MAP level. Best regards, Bart > Hi Bart, > > Bart van den Eijnden (OSGIS) wrote: > >> Arnaud, >> which SRS's are you advertizing in the MAP file? You need to advertize >> them using WMS_SRS (or the more general OWS_SRS) metadata. > > > In the (attached) map file -a barely modified itasca.map from the demo- > I advertise epsg 26915, but I thought (erroneously) that the epsg 4326 > would be supported as well. > Still, I found it funny that both CRS and SRS work for valid Epsg IDs, > and that SRS doesn't work for invalid Epsg IDs. > > Regards, > Arnaud > >> >> Can you post your current MAP file? >> >> Best regards, >> Bart >> >> Arnaud Diederen wrote: >> >>> Hello, >>> >>> When I issue a GetCapabilities on my installation of mapserver, using >>> the following URL: >>> >>> http://localhost/cgi-bin/mapserv?map=/var/www/workshop/ita >>> sca.map&service=WMS&version=1.3&request=GetCapabilities >>> >>> I get a capabilities document showing: >>> >>> >>> >>> >>> >>> So, the service expects requests of version 1.1.1 of the WMS spec, >>> but when I issue a GetFeatureInfo with this URL: >>> >>> http://localhost/cgi-bin/mapserv?map=/var/www/workshop/itasca.map&SRS=EPSG:4326&BBOX=-99.30245,43.4354,-87.36445,49.404399999999995&TRANSPARENT=TRUE&BGCOLOR=0xFFFFFF&EXCEPTIONS=application/vnd.ogc.se_xml&WIDTH=800&HEIGHT=400&LAYERS=airports&STYLES=&REQUEST=GetFeatureInfo&VERSION=1.3&SERVICE=WMS&INFO_FORMAT=gml&X=363&Y=121&FEATURE_COUNT=100&QUERY_LAYERS=airports >>> >>> >>> I get the following error: >>> >>> >>> >>> msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS >>> must be valid for all requested layers. >>> >>> >>> >>> hmm. But then, if I change the SRS parameter name to CRS, I get a >>> valid (though empty) result: >>> >>> >> xmlns:gml="http://www.opengis.net/gml" >>> xmlns:xlink="http://www.w3.org/1999/xlink" >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> >>> >>> >>> The weird thing is that in the version 1.1.1 of the spec, there is no >>> CRS parameter for the GetFeatureInfo, but an SRS parameter. SRS was >>> changed to CRS at version 1.3. >>> It looks to me like a bug, am I wrong? >>> >>> Best regards, >>> >>> Arnaud >>> >>> Last Minute Addendum: When I try with the equivalent (projected) >>> native logical bbox, in the native SRS (EPSG:26915, this is the >>> Itasca demo!) mapserver doesn't mind the name of the SRS param. Both >>> SRS and CRS work. Now, I'm totally lost o_O >>> Will mapserver refuse to work properly if asked for features with a >>> 4326 box? >>> >>> >>> Thanks for any information! >>> >>> >> >> > > From zhonghaiw at GMAIL.COM Mon Jun 19 00:41:55 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Mon, 19 Jun 2006 09:41:55 +0200 Subject: oracle spatial In-Reply-To: <20060619073324.70470@gmx.net> Message-ID: Hi Daniel, does MS4W1.5.3 work for your application with oracle? how did you do the DLL swapping? can you give me some ideas how you did that? I've tried almost with all the MS4W packages, and I can not get them work. thanks zhonghai On 6/19/06, Daniel Goetz wrote: > > Hi Jeff, > > I installed the ms4w 1.5.3 package on my computer, did the .dll swapping > and as you prompted everything works fine. I can show oracle data via "OGR" > and via "native" mapserver supprot. And I can map all other file-based > formats and can combine them with oracle spatial data. > > Thank you all so much for your help. I am really thankful for your > assistance. Thank you. > > regards > > Daniel > > P.S. And please let me know, when the problems with the libmap.dll (for > oracle support) in the ms4w 2.0 package are fixed. Thank you. > -------- Original-Nachricht -------- > Datum: Fri, 16 Jun 2006 16:50:54 +0200 > Von: Zhonghai Wang > An: MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: Re: [UMN_MAPSERVER-USERS] RE : oracle spatial > > > It's a little bit weird, I've test the version MS4W1.5.3 again, It also > > does > > not work. The same as MS4W2.0, with the command shp2img there is no > > problem > > to generate the map image. my MapFile contains both connectiontypes, > this > > is > > the mapfile snippets: > > > > LAYER > > NAME "SEARCHZIP POLYGON" > > TYPE POLYGON > > STATUS DEFAULT > > CONNECTIONTYPE ORACLESPATIAL > > CONNECTION "Ar/Ar at GIS2" > > DATA "GEOLOC FROM SEARCHZIP USING NONE" > > > > CLASS > > NAME "ZIPAREA" > > COLOR 153 153 153 > > END > > END > > > > LAYER > > NAME "SEARCHCITY POLYGON" > > TYPE POLYGON > > STATUS DEFAULT > > CONNECTIONTYPE OGR > > CONNECTION "OCI:Ar/Ar at GIS2" > > DATA "SEARCHCITY" > > > > CLASS > > NAME "CITIES" > > COLOR 207 189 0 > > END > > END > > > > thanks for any hints to solve this problem. > > > > zhonghai > > -- > > > "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail > -------------- next part -------------- An HTML attachment was scrubbed... URL: From higon_jos at GVA.ES Mon Jun 19 00:49:04 2006 From: higon_jos at GVA.ES (=?ISO-8859-1?Q?Jos=E9_Vicente_Higon?=) Date: Mon, 19 Jun 2006 09:49:04 +0200 Subject: WCS interpolation parameter Message-ID: Hi list, Does anybody know whether maperver WCS can process the INTERPOLATION parameter (esp ogc-wcs1.0.0 sec. 8.3.6? Thanks in advance -- Jos? Vicente Hig?n Grupo de desarrollo de gvSIG Conselleria de Infraestructuras y Transporte Generalitat Valenciana Valencia - Spain http://www.gvsig.gva.es From zhonghaiw at GMAIL.COM Mon Jun 19 01:18:31 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Mon, 19 Jun 2006 10:18:31 +0200 Subject: MapServer with Magellan. Message-ID: Hi there, Is it possible to use MapServer with the Magellan GPS devices? did anyone have any experiences with this topic? best regards zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From vulukut at TESCILTURK.COM Mon Jun 19 01:47:59 2006 From: vulukut at TESCILTURK.COM (Volkan Ulukut) Date: Mon, 19 Jun 2006 11:47:59 +0300 Subject: MapServer with Magellan. In-Reply-To: <2534c4120606190118g525eb3bar33f0ed4a1c62fd15@mail.gmail.com> Message-ID: It is possible if you are able to import the data from your gps to any of the data sources mapserver is supporting (eg. mysql). Then all you have to do is connecting one of your layers to that data source _____ From: tesciltu at host.tescilturk.com [mailto:tesciltu at host.tescilturk.com] On Behalf Of Zhonghai Wang Sent: Monday, June 19, 2006 11:19 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] MapServer with Magellan. Hi there, Is it possible to use MapServer with the Magellan GPS devices? did anyone have any experiences with this topic? best regards zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at ANDREWLARCOMBE.CO.UK Mon Jun 19 01:54:43 2006 From: andrew at ANDREWLARCOMBE.CO.UK (Andrew Larcombe) Date: Mon, 19 Jun 2006 09:54:43 +0100 Subject: Logging and WMS requests Message-ID: Hi all, I've got mapserver working succesfully and it's responding to requests via the 'standard' CGI parameters (eg MODE=map&IMGEXT= etc). Requests are being handled succesfully and mapserver is writing out a logfile. I've added the relevant bits to the map file to respond to WMS requests, and responses to both GetCapabilities and GetMap requests are working fine. However, Mapserver doesn't appear to do any logging for the WMS requests though. :( So, I have 2 questions... 1. Is logging enabled for WMS requests? 2. What is the format for the log file? Many thanks, Andrew From xavier.mauclaire at GEOTER.FR Mon Jun 19 03:22:23 2006 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Mon, 19 Jun 2006 12:22:23 +0200 Subject: Mapscript ,Mono, Apache and Linux : a great story In-Reply-To: Message-ID: Tamas Thanks you for the answer, Concerning the scratching problem under the Linux platform, what could you advise me to to ? Best regards ----------------------------------------- Xavier Mauclaire ------------------------------------------------------- -----Message d'origine----- De : Tamas Szekeres [mailto:szekerest at gmail.com] Envoy? : vendredi 16 juin 2006 15:57 ? : Xavier Mauclaire Cc : MAPSERVER-USERS at lists.umn.edu Objet : Re: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : a great story Xavier, > All the layerObj object i use in my program are d?clared in the > mapfile so i don't need to create layerObj from scratch using the constructor. > When you say that if a layerObj reference with a previously released > native memory segment, it may causing the error, what are the > consequences for my code ? Using the Dispose method is there the > solution to avoid this problem ? Most of the mapscript classes implement the IDisposable interface since they maintain unmanaged memory segments. It is a good practice to explicitly call Dispose (or by the using directive) if a newly created object is not needed any more. However you might want to maintain the mapObj reference for a longer period and the disposing will occur during the program destruction. Getting an existing object reference (eg. as returned by GetLayerByName) does not create a new object, so calling dispose is not needed. All of the objects internally maintain a flag indicating if it should free the internal memory during the finalization. So calling Dispose in the previous case might also not cause any problems. So you may not have to take care much of these issues the existing problems may dedicated to unproper handling of this reference and considered to be fixed. However it is not so easy to locate the reason of the problem since the crash will be slipped out on a subsequent finalization or the program termination. > > How can i get CVS code ? http://mapserver.gis.umn.edu/development/cvs/ using Tortoise CVS is fairly straightforward. > Why this code works well under windows and scratches under linux ? You may use different frameworks and CRT libraries. The problem may still exists but not manifested. Tamas From szekerest at GMAIL.COM Mon Jun 19 04:41:01 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Mon, 19 Jun 2006 13:41:01 +0200 Subject: Mapscript ,Mono, Apache and Linux : a great story In-Reply-To: Message-ID: Xavier, I think the reason of the problem was happening outside of the code fragment you have given before. Would you send an entire sample that produces this behaviour on your system? Thanks, Tamas 2006/6/19, Xavier Mauclaire : > > Tamas > Thanks you for the answer, > Concerning the scratching problem under the Linux platform, what could you > advise me to to ? > > Best regards > > > ----------------------------------------- > Xavier Mauclaire > ------------------------------------------------------- > > > > -----Message d'origine----- > De : Tamas Szekeres [mailto:szekerest at gmail.com] > Envoy? : vendredi 16 juin 2006 15:57 > ? : Xavier Mauclaire > Cc : MAPSERVER-USERS at lists.umn.edu > Objet : Re: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : a > great story > > Xavier, > > > > All the layerObj object i use in my program are d?clared in the > > mapfile so i don't need to create layerObj from scratch using the > constructor. > > When you say that if a layerObj reference with a previously released > > native memory segment, it may causing the error, what are the > > consequences for my code ? Using the Dispose method is there the > > solution to avoid this problem ? > > Most of the mapscript classes implement the IDisposable interface since they > maintain unmanaged memory segments. It is a good practice to explicitly call > Dispose (or by the using directive) if a newly created object is not needed > any more. However you might want to maintain the mapObj reference for a > longer period and the disposing will occur during the program destruction. > Getting an existing object reference (eg. as returned by > GetLayerByName) does not create a new object, so calling dispose is not > needed. > All of the objects internally maintain a flag indicating if it should free > the internal memory during the finalization. So calling Dispose in the > previous case might also not cause any problems. > > So you may not have to take care much of these issues the existing problems > may dedicated to unproper handling of this reference and considered to be > fixed. However it is not so easy to locate the reason of the problem since > the crash will be slipped out on a subsequent finalization or the program > termination. > > > > > > How can i get CVS code ? > > http://mapserver.gis.umn.edu/development/cvs/ > > using Tortoise CVS is fairly straightforward. > > > Why this code works well under windows and scratches under linux ? > > You may use different frameworks and CRT libraries. The problem may still > exists but not manifested. > > > Tamas > > From warmerdam at POBOX.COM Mon Jun 19 06:22:14 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 19 Jun 2006 09:22:14 -0400 Subject: WCS interpolation parameter In-Reply-To: <449656F0.8060605@gva.es> Message-ID: Jos? Vicente Higon wrote: > Hi list, > Does anybody know whether maperver WCS can process the INTERPOLATION > parameter (esp ogc-wcs1.0.0 sec. 8.3.6? Jos?, I believe that as of MapServer 4.8.x the values "nearest neighbour" and "bilinear" are supported for the INTERPOLATION parameter. They should be reported properly in the WCS capabilities document. 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 andrew at ANDREWLARCOMBE.CO.UK Mon Jun 19 06:45:23 2006 From: andrew at ANDREWLARCOMBE.CO.UK (Andrew Larcombe) Date: Mon, 19 Jun 2006 14:45:23 +0100 Subject: Logging and WMS requests In-Reply-To: <44966653.8090307@andrewlarcombe.co.uk> Message-ID: Andrew Larcombe wrote: > 1. Is logging enabled for WMS requests? > 2. What is the format for the log file? I've answered my own question by digging around in the code. 1. The code processing WMS/WFS requests is handled very early on in main() as exits main before any logging is done. So, no WMS requests are not logged. Regards, Andrew From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Mon Jun 19 06:46:22 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Mon, 19 Jun 2006 09:46:22 -0400 Subject: script for dealing with temporary files Message-ID: The problem there is that you cronjob is likely to delete files as they're about to being used ... It's a fraction of a second, but it can happen (In fact, it did for me). The end result is that some very unlucky users get "broken" maps for no obvious reasons (because the cronjob ran at that point in time between the rendering of the map, and the browser fetching it). This is why letting the image sit around for a few minutes is recommended. Also, you can gain some performance from keeping the legend symbology around ... as they're relatively expensive, since there can be lots of very small images, and the HTTP over head is marginally significant. If you keep them around, not only does mapserver not render them unnecessarily, but also, the browsers cache them. It makes a noticeable difference for us anyways, with sometimes large HTML legends with lots of symbols. J.F. _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of M S Sent: June 16, 2006 6:42 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] script for dealing with temporary files how about a cron job: 0 1 * * * /path/to/script that runs a shell script: rm -f /path/to/tmp/files/*; On 6/16/06, Doyon, Jean-Francois < Jean-Francois.Doyon at ccrs.nrcan.gc.ca> wrote: Good idea. Here's mine, written in Python. It preserves the legend symbology but deletes other temporary images generated by mapserver: #!/home/atlas/web/bin/python # Directory where MapServer temporary files are created TMPDIR = '/dev/shm/atlas' # Time-To-Live (TTL) in minutes TTL = 5 # Nothing to change below from glob import glob from os.path import getatime from os import unlink from time import time import re filelist = glob(TMPDIR + '/*.gif') + glob(TMPDIR + '/*.img.tmp') grace = TTL * 60 for file in filelist: try: atime = getatime(file) if atime < time() - grace and not re.match('^.*?_\d{5,6}_\d{10}_\d{1,2}_\d{1,2}_\d{1,2}_\d{1,2}\.gif$', file): unlink(file) except: pass Cheers, J.F. -----Original Message----- From: UMN MapServer Users List [mailto: MAPSERVER-USERS at LISTS.UMN.EDU ] On Behalf Of Bruce Raup Sent: June 16, 2006 4:52 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] script for dealing with temporary files I see in the mapserver documentation that a suggested way for removing temporary files that mapserver creates is a simple 'find' command: #!/bin/csh find /usr/local/www/docs/tmp -follow -name "*.gif" -exec rm {} \; A problem with this is that it even removes files that have just been created. The -mtime option to find is a bit of help if you can wait a day to delete files, but we didn't have that option. So I wrote a simple script in perl that allows you to specify a minimum age in minutes a file should have before it gets deleted. I'm sure many other people have written such scripts, probably better ones than mine, but I thought I share mine since it's definitely better than the above 'find' command. It's available at http://cires.colorado.edu/~braup/software/clean_tmp_area.pl If you have any comments or suggestions for improvement, I'd be happy to hear about them. Cheers, Bruce -- Bruce Raup http://cires.colorado.edu/~braup/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From gerry.creager at TAMU.EDU Mon Jun 19 07:28:21 2006 From: gerry.creager at TAMU.EDU (Gerry Creager) Date: Mon, 19 Jun 2006 09:28:21 -0500 Subject: Logging and WMS requests In-Reply-To: <4496AA73.2050705@andrewlarcombe.co.uk> Message-ID: Feature request time? gerry Andrew Larcombe wrote: > Andrew Larcombe wrote: > >> 1. Is logging enabled for WMS requests? >> 2. What is the format for the log file? > > > I've answered my own question by digging around in the code. > > 1. The code processing WMS/WFS requests is handled very early on in > main() as exits main before any logging is done. So, no WMS requests are > not logged. > > Regards, > > Andrew -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX 979.862.3983 MAIL: AATLT, 3139 TAMU Physical: 1700 Research Parkway, Suite 160, College Station, TX 77843-3139 From C.Wilmes at GMX.DE Mon Jun 19 07:32:51 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Mon, 19 Jun 2006 16:32:51 +0200 Subject: scalebar-problem with csharp-mapscript In-Reply-To: Message-ID: Hi All, if I try to add a scalebar to my map I get exceptions.The code for the scalebar: labelObj labelScalebar = new labelObj(); labelScalebar.size = 12; labelScalebar.type = MS_FONT_TYPE.MS_BITMAP; labelScalebar.color = new colorObj(255, 0, 255, 0); scalebarObj scalebar = new scalebarObj(); scalebar.height = pictureBoxScalebar.Height; scalebar.width = pictureBoxScalebar.Width; scalebar.intervals = 5; scalebar.label = labelScalebar; scalebar.position = (int)MS_LABEL_POSITIONS.MS_UL; scalebar.style = 0; //0 or 1 scalebar.status = mapscript.MS_EMBED; scalebar.units = (int)MS_UNITS.MS_KILOMETERS; myMap.scalebar = scalebar; Using myMap.drawScalebar() I get the following exception: System.ApplicationException was unhandled Message="msGetBitmapFont(): GD library error. Invalid bitmap font. Must be one of tiny, small, medium, large or giant." Source="mapscript_csharp" StackTrace: at mapObj.drawScalebar() at GeoDataPipelineViewer.GDPV.RefreshMap() in C:\src\Visual Studio 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line 415 at GeoDataPipelineViewer.GDPV.showMap() in C:\src\Visual Studio 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line 385 at GeoDataPipelineViewer.GDPV..ctor() in C:\src\Visual Studio 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line 45 at GeoDataPipelineViewer.Program.Main() in C:\src\Visual Studio 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\Program.cs:line 19 at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() Using MyMap.draw() I get the following Exception: System.AccessViolationException was unhandled Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt." Source="mapscript_csharp" StackTrace: at mapscriptPINVOKE.mapObj_draw(HandleRef jarg1) at mapObj.draw() at GeoDataPipelineViewer.GDPV.RefreshMap() in C:\src\Visual Studio 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line 400 at GeoDataPipelineViewer.GDPV.showMap() in C:\src\Visual Studio 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line 385 at GeoDataPipelineViewer.GDPV..ctor() in C:\src\Visual Studio 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line 45 at GeoDataPipelineViewer.Program.Main() in C:\src\Visual Studio 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\Program.cs:line 19 at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() I think the problem is the label, like it is described in the first exception but how could I set the bitmap-font, and where can I find a enum for that or some constants like MS_MEDIUM? Or is there just another reason why that doesn't work? Best Regards Christian -- Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl From ltrevino at GPOBSI.COM.MX Mon Jun 19 07:44:38 2006 From: ltrevino at GPOBSI.COM.MX (=?iso-8859-1?Q?Luis_Trevi=F1o_Huerta?=) Date: Mon, 19 Jun 2006 09:44:38 -0500 Subject: How can I label a Point using different postgis table Message-ID: Hi list: I'm currenttly using a point layer that displays some GPS points that are stored on a postgis table called "loca". I'd like to label this points with data that comes from another table in the same postgis data base (this table is named "autos"), both tables share a common column named "idunit" and I would like to use autos.idunit as a label. How can I do this?. This is part of my map file: LAYER NAME gis STATUS ON TYPE POINT UNITS METERS DEBUG ON CONNECTION "user=XXX password=XXXXX dbname=bsiubica host=XXX.XXX.XXX.XX port=5432" CONNECTIONTYPE postgis DATA "posicion from loca as foo using unique cmpoid using srid=4326" PROJECTION "proj=longlat" "ellps=WGS84" "datum=WGS84" END FILTER 'idunit = %unid%' CLASS EXPRESSION ('[mo]' = '1') COLOR 255 255 26 #amarillo SYMBOL 7 SIZE 13 END END regards, Luis From tim at COMMENSPACE.ORG Mon Jun 19 08:33:12 2006 From: tim at COMMENSPACE.ORG (Tim Schaub) Date: Mon, 19 Jun 2006 08:33:12 -0700 Subject: Finding centroids from shapefiles (php/mapscript) In-Reply-To: A<64D96DE3-94F4-47E7-9D48-CDE5C2729C00@remoteinformation.com.au> Message-ID: > > Can I find or calculate the centroid of a shapefile (ideally > from php/ mapscript)? If you really want to find the centroid of each shape, I think you'd have to convert the shapeObj to well known text, parse through to get points, and calculate the centroid yourself. If the centroid of the shape's extent is sufficient, you can get the shape->bounds and find the center point. Tim > > cheers > > Ben > > > -- > > Ben Madin > > t/f: 08 9192 5535 > m: 0448 887 220 > ben at remoteinformation.com.au > From szekerest at GMAIL.COM Mon Jun 19 09:08:09 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Mon, 19 Jun 2006 18:08:09 +0200 Subject: scalebar-problem with csharp-mapscript In-Reply-To: <20060619143251.133310@gmx.net> Message-ID: Christian, scalebarObj is added to the map by default and also the labelObj is added to the scalebar so you should use these objects in the following way: scalebarObj scalebar = myMap.scalebar; scalebar.height = pictureBoxScalebar.Height; scalebar.width = pictureBoxScalebar.Width; scalebar.intervals = 5; scalebar.label = labelScalebar; scalebar.position = (int)MS_LABEL_POSITIONS.MS_UL; scalebar.style = 0; //0 or 1 scalebar.status = mapscript.MS_EMBED; scalebar.units = (int)MS_UNITS.MS_KILOMETERS; labelObj labelScalebar = scalebar.label; labelScalebar.size = 12; labelScalebar.type = MS_FONT_TYPE.MS_BITMAP; labelScalebar.color = new colorObj(255, 0, 255, 0); This problem is related to the following bug: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1803 You should also avoid to use the object members mentioned there as writeable properties. Best Regards, Tamas 2006/6/19, Christian Wilmes : > Hi All, > > if I try to add a scalebar to my map I get exceptions.The code for the scalebar: > labelObj labelScalebar = new labelObj(); > labelScalebar.size = 12; > labelScalebar.type = MS_FONT_TYPE.MS_BITMAP; > labelScalebar.color = new colorObj(255, 0, 255, 0); > > scalebarObj scalebar = new scalebarObj(); > scalebar.height = pictureBoxScalebar.Height; > scalebar.width = pictureBoxScalebar.Width; > scalebar.intervals = 5; > scalebar.label = labelScalebar; > scalebar.position = (int)MS_LABEL_POSITIONS.MS_UL; > scalebar.style = 0; //0 or 1 > scalebar.status = mapscript.MS_EMBED; > scalebar.units = (int)MS_UNITS.MS_KILOMETERS; > > myMap.scalebar = scalebar; > > > > > > > Using myMap.drawScalebar() I get the following exception: > System.ApplicationException was unhandled > Message="msGetBitmapFont(): GD library error. Invalid bitmap font. Must be one of tiny, small, medium, large or giant." > Source="mapscript_csharp" > StackTrace: > at mapObj.drawScalebar() > at GeoDataPipelineViewer.GDPV.RefreshMap() in C:\src\Visual Studio 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line 415 > at GeoDataPipelineViewer.GDPV.showMap() in C:\src\Visual Studio 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line 385 > at GeoDataPipelineViewer.GDPV..ctor() in C:\src\Visual Studio 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line 45 > at GeoDataPipelineViewer.Program.Main() in C:\src\Visual Studio 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\Program.cs:line 19 > at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) > at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) > at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() > at System.Threading.ThreadHelper.ThreadStart_Context(Object state) > at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) > at System.Threading.ThreadHelper.ThreadStart() > > > > > > > Using MyMap.draw() I get the following Exception: > System.AccessViolationException was unhandled > Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt." > Source="mapscript_csharp" > StackTrace: > at mapscriptPINVOKE.mapObj_draw(HandleRef jarg1) > at mapObj.draw() > at GeoDataPipelineViewer.GDPV.RefreshMap() in C:\src\Visual Studio 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line 400 > at GeoDataPipelineViewer.GDPV.showMap() in C:\src\Visual Studio 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line 385 > at GeoDataPipelineViewer.GDPV..ctor() in C:\src\Visual Studio 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line 45 > at GeoDataPipelineViewer.Program.Main() in C:\src\Visual Studio 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\Program.cs:line 19 > at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) > at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) > at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() > at System.Threading.ThreadHelper.ThreadStart_Context(Object state) > at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) > at System.Threading.ThreadHelper.ThreadStart() > > > I think the problem is the label, like it is described in the first exception but how could I set the bitmap-font, and where can I find a enum for that or some constants like MS_MEDIUM? > Or is there just another reason why that doesn't work? > > Best Regards > Christian > > > > -- > > > Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! > "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl > From xavier.mauclaire at GEOTER.FR Mon Jun 19 08:43:59 2006 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Mon, 19 Jun 2006 17:43:59 +0200 Subject: Selecting all layer features with mapscript Message-ID: Hi, I would like to statisticals op?rations on all layers features. To do that i need to sequentialy access to each feature of the layer. How can i do that ? regards ----------------------------------------- Xavier Mauclaire ------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From xavier.mauclaire at GEOTER.FR Mon Jun 19 09:05:37 2006 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Mon, 19 Jun 2006 18:05:37 +0200 Subject: Mapscript ,Mono, Apache and Linux : a great story Message-ID: Objet : RE: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : a great story Tamas, I did the following test before attempting to apply modifications you've suggested. I disabled the pMapSetSelection function in my program (It's the implest way to test) . When i run the site, i get error about getfeature. Apparently disabling this function doesn't avoid the getfeature segmentation fault. regards Error_log ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= Stacktrace: in (wrapper managed-to-native) mapscriptPINVOKE:layerObj_getFeature (System.Runtime.InteropServices.HandleRef,int,int) <0x4> in (wrapper managed-to-native) mapscriptPINVOKE:layerObj_getFeature (System.Runtime.InteropServices.HandleRef,int,int) <0xffffff87> in layerObj:getFeature (int,int) <0x27> in siteflash.GetParcelleReglement:croisement_reglement (shapeObj) <0x12b> in siteflash.GetParcelleReglement:ProcessRequest (System.Web.HttpContext) <0x5b1> in __1:MoveNext () <0x10a0> in System.Web.HttpApplication:Tick () <0x1f> in System.Web.HttpApplication:Start (object) <0x37> in System.Web.HttpApplication:System.Web.IHttpAsyncHandler.BeginProcessRequest (System.Web.HttpContext,System.AsyncCallback,object) <0x68> in System.Web.HttpRuntime:RealProcessRequest (object) <0x1ab> in System.Web.HttpRuntime:ProcessRequest (System.Web.HttpWorkerRequest) <0x2c> in Mono.WebServer.MonoWorkerRequest:ProcessRequest () <0xa> in Mono.WebServer.BaseApplicationHost:ProcessRequest (Mono.WebServer.MonoWorkerRequest) <0x43> in Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xdc> in (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xffffff0a> in (wrapper xdomain-dispatch) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (object,byte[]&,byte[]&,int,string,string,string,string,string,int,string,in t,string,string[],string[]) <0xfffee026> in (wrapper xdomain-invoke) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xffffff6a> in (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xffba766c> in Mono.WebServer.ModMonoWorker:InnerRun (object) <0x404> in Mono.WebServer.ModMonoWorker:Run (object) <0x17> in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object (object) <0xffffff95> in (wrapper runtime-invoke) System.Object:runtime_invoke_void_object (object,intptr,intptr,intptr) <0xc7371b5f> Native stacktrace: /usr/lib/pkgconfig/../../bin/mono(mono_handle_native_sigsegv+0xbb) [0x814ee2b] /usr/lib/pkgconfig/../../bin/mono [0x813b2cf] [0xffffe440] /lib/tls/libc.so.6(malloc+0x86) [0x40187ea6] /usr/local/lib/libmapscript.so(strstrIgnoreCase+0x47) [0x419316f7] /usr/local/lib/libmapscript.so [0x41931804] /usr/local/lib/libmapscript.so(msPOSTGISLayerGetShape+0x7d) [0x41931e5d] /usr/local/lib/libmapscript.so(msPOSTGISLayerGetShapeVT+0x23) [0x419325b3] /usr/local/lib/libmapscript.so(msLayerGetShape+0x2e) [0x418e7b3e] /usr/local/lib/libmapscript.so(CSharp_layerObj_getFeature+0x46) [0x418a3636] [0x41861b62] [0x41861a80] [0x418622cc] [0x4186029a] [0x416f6421] [0x416f52a8] [0x416f1668] [0x416f1549] [0x4125149c] [0x41250fcd] [0x41250f8b] [0x41250544] [0x412355ad] [0x41234d14] [0x41234af3] [0x41222807] [0x41222643] [0x40dc9bdd] [0x40dc9730] [0x40dc96f4] [0x40dc964e] /usr/lib/pkgconfig/../../bin/mono [0x813b180] /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke+0x27) [0x80d63f7] /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke_array+0x270) [0x80d78c0] /usr/lib/pkgconfig/../../bin/mono(mono_message_invoke+0xc5) [0x80d93d5] /usr/lib/pkgconfig/../../bin/mono [0x80a509f] /usr/lib/pkgconfig/../../bin/mono [0x80a58c9] /usr/lib/pkgconfig/../../bin/mono [0x8099fb2] /usr/lib/pkgconfig/../../bin/mono [0x80f5067] /usr/lib/pkgconfig/../../bin/mono [0x8113175] /lib/tls/libpthread.so.0 [0x400e5297] /lib/tls/libc.so.6(__clone+0x5e) [0x401e037e] ----------------------------------------- Xavier Mauclaire ------------------------------------------------------- -----Message d'origine----- De : Tamas Szekeres [mailto:szekerest at gmail.com] Envoy? : lundi 19 juin 2006 17:30 ? : Xavier Mauclaire Objet : Re: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : a great story Xavier, After looking into your code i've found private void pMapSetSelection(shapeObj pShapeParcelle) as a potential candidate for causing such a problem. For adding inline layers you should use either the costructors with parent objects (layerObj(mapObj map), classObj(layerObj layer), styleObj(classObj parent_class)) or the insertxxx functions (insertLayer, insertClass, insertStyle). Otherwise the layer will be added to your map twice. If you would like to use insertLayer you should create a layerObj with null parameter. The main difference between the two methods is that insertXXX will duplicate the object to be added so later you cannot use the original reference to set the properies of the object added. You must use getLayer() to get the reference of the layer added to the map. If you intend to use solely the layerObj(mapObj map), classObj(layerObj layer), styleObj(classObj parent_class) constructors (i consider it as the preferred way) you have to use the latest CVS version (or the nightly build) because we had a bug causing such memory problems: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1743 For fixing the problem i have added the followings to csmodule.i /*************************************************************************** *** * Preventing to take ownership of the memory when constructing objects * with parent objects (causing nullreference exception, Bug 1743) **************************************************************************** */ %typemap(csconstruct, excode=SWIGEXCODE) layerObj(mapObj map) %{: this($imcall, true) { if (map != null) this.swigCMemOwn = false;$excode } %} %typemap(csconstruct, excode=SWIGEXCODE) classObj(layerObj layer) %{: this($imcall, true) { if (layer != null) this.swigCMemOwn = false;$excode } %} %typemap(csconstruct, excode=SWIGEXCODE) styleObj(classObj parent_class) %{: this($imcall, true) { if (parent_class != null) this.swigCMemOwn = false;$excode } %} After making the patch (or using the CVS) i suggest the followings for pMapSetSelection layerObj pLayer = new layerObj(pMapQuery); pLayer.type = MS_LAYER_TYPE.MS_LAYER_POLYGON; pLayer.addFeature(pShapeParcelle); pLayer.name="selection"; classObj pClassItem = new classObj(pLayer); styleObj pStyle = new styleObj(pClassItem); pStyle.color.setRGB(-1,-1,-1); pStyle.outlinecolor.setRGB(0,0,0); pStyle.width = 4; pLayer.status = mapscript.MS_ON; Would you make the suggested changes and notify me whether it works or not? I think these problems may be responsible for the delete_layerObj crash, but i am a bit uncertain about it will fix the getFeature crash. But let us go further and see what happening. Tamas 2006/6/19, Xavier Mauclaire : > Tamas > > You will find next ths sources of my site You will understand that i > can't answer to the Mapserver mailing list with private sources. My > boss would be annoyed. > These sources are not open source so i would ask you to not diffuse them. > > This project has been made with visual studio 2003 > > regards > Thanks in advance > > > ----------------------------------------- > Xavier Mauclaire > ------------------------------------------------------- > > > > -----Message d'origine----- > De : Tamas Szekeres [mailto:szekerest at gmail.com] Envoy? : lundi 19 > juin 2006 13:41 ? : Xavier Mauclaire Cc : > MAPSERVER-USERS at lists.umn.edu Objet : Re: [UMN_MAPSERVER-USERS] > Mapscript ,Mono, Apache and Linux : a great story > > Xavier, > > I think the reason of the problem was happening outside of the code > fragment you have given before. > Would you send an entire sample that produces this behaviour on your system? > > Thanks, > > Tamas > > > 2006/6/19, Xavier Mauclaire : > > > > Tamas > > Thanks you for the answer, > > Concerning the scratching problem under the Linux platform, what > > could you advise me to to ? > > > > Best regards > > > > > > ----------------------------------------- > > Xavier Mauclaire > > ------------------------------------------------------- > > > > > > > > -----Message d'origine----- > > De : Tamas Szekeres [mailto:szekerest at gmail.com] Envoy? : vendredi > > 16 juin 2006 15:57 ? : Xavier Mauclaire Cc : > > MAPSERVER-USERS at lists.umn.edu Objet : Re: [UMN_MAPSERVER-USERS] > > Mapscript ,Mono, Apache and Linux : a great story > > > > Xavier, > > > > > > > All the layerObj object i use in my program are d?clared in the > > > mapfile so i don't need to create layerObj from scratch using the > > constructor. > > > When you say that if a layerObj reference with a previously > > > released native memory segment, it may causing the error, what are > > > the consequences for my code ? Using the Dispose method is there > > > the solution to avoid this problem ? > > > > Most of the mapscript classes implement the IDisposable interface > > since they maintain unmanaged memory segments. It is a good practice > > to explicitly call Dispose (or by the using directive) if a newly > > created object is not needed any more. However you might want to > > maintain the mapObj reference for a longer period and the disposing > > will > occur during the program destruction. > > Getting an existing object reference (eg. as returned by > > GetLayerByName) does not create a new object, so calling dispose is > > not needed. > > All of the objects internally maintain a flag indicating if it > > should free the internal memory during the finalization. So calling > > Dispose in the previous case might also not cause any problems. > > > > So you may not have to take care much of these issues the existing > > problems may dedicated to unproper handling of this reference and > > considered to be fixed. However it is not so easy to locate the > > reason of the problem since the crash will be slipped out on a > > subsequent finalization or the program termination. > > > > > > > > > > How can i get CVS code ? > > > > http://mapserver.gis.umn.edu/development/cvs/ > > > > using Tortoise CVS is fairly straightforward. > > > > > Why this code works well under windows and scratches under linux ? > > > > You may use different frameworks and CRT libraries. The problem may > > still exists but not manifested. > > > > > > Tamas > > > > > > > From C.Wilmes at GMX.DE Mon Jun 19 09:41:26 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Mon, 19 Jun 2006 18:41:26 +0200 Subject: scalebar-problem with csharp-mapscript In-Reply-To: Message-ID: Hi Tamas, thanks for your quick response. I tried it out, but there are still the same exeptions. My new code: scalebarObj scalebar = myMap.scalebar; labelObj labelScalebar = scalebar.label; labelScalebar.size = 12; labelScalebar.type = MS_FONT_TYPE.MS_BITMAP; labelScalebar.color = new colorObj(255, 0, 255, 0); scalebar.height = pictureBoxScalebar.Height; scalebar.width = pictureBoxScalebar.Width; scalebar.intervals = 5; //scalebar.label = labelScalebar; scalebar.position = (int)MS_LABEL_POSITIONS.MS_UL; scalebar.style = 0; //0 or 1 scalebar.status = mapscript.MS_EMBED; scalebar.units = (int)MS_UNITS.MS_KILOMETERS; Best Regards Christian -------- Original-Nachricht -------- Datum: Mon, 19 Jun 2006 18:08:09 +0200 Von: Tamas Szekeres An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] scalebar-problem with csharp-mapscript > Christian, > > scalebarObj is added to the map by default and also the labelObj is > added to the scalebar so you should use these objects in the following > way: > > scalebarObj scalebar = myMap.scalebar; > scalebar.height = pictureBoxScalebar.Height; > scalebar.width = pictureBoxScalebar.Width; > scalebar.intervals = 5; > scalebar.label = labelScalebar; > scalebar.position = (int)MS_LABEL_POSITIONS.MS_UL; > scalebar.style = 0; //0 or 1 > scalebar.status = mapscript.MS_EMBED; > scalebar.units = (int)MS_UNITS.MS_KILOMETERS; > labelObj labelScalebar = scalebar.label; > labelScalebar.size = 12; > labelScalebar.type = MS_FONT_TYPE.MS_BITMAP; > labelScalebar.color = new colorObj(255, 0, 255, 0); > > This problem is related to the following bug: > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1803 > > You should also avoid to use the object members mentioned there as > writeable properties. > > Best Regards, > > Tamas > > > > 2006/6/19, Christian Wilmes : > > Hi All, > > > > if I try to add a scalebar to my map I get exceptions.The code for the > scalebar: > > labelObj labelScalebar = new labelObj(); > > labelScalebar.size = 12; > > labelScalebar.type = MS_FONT_TYPE.MS_BITMAP; > > labelScalebar.color = new colorObj(255, 0, 255, 0); > > > > scalebarObj scalebar = new scalebarObj(); > > scalebar.height = pictureBoxScalebar.Height; > > scalebar.width = pictureBoxScalebar.Width; > > scalebar.intervals = 5; > > scalebar.label = labelScalebar; > > scalebar.position = (int)MS_LABEL_POSITIONS.MS_UL; > > scalebar.style = 0; //0 or 1 > > scalebar.status = mapscript.MS_EMBED; > > scalebar.units = (int)MS_UNITS.MS_KILOMETERS; > > > > myMap.scalebar = scalebar; > > > > > > > > > > > > > > Using myMap.drawScalebar() I get the following exception: > > System.ApplicationException was unhandled > > Message="msGetBitmapFont(): GD library error. Invalid bitmap font. > Must be one of tiny, small, medium, large or giant." > > Source="mapscript_csharp" > > StackTrace: > > at mapObj.drawScalebar() > > at GeoDataPipelineViewer.GDPV.RefreshMap() in C:\src\Visual > Studio 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line > 415 > > at GeoDataPipelineViewer.GDPV.showMap() in C:\src\Visual Studio > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line 385 > > at GeoDataPipelineViewer.GDPV..ctor() in C:\src\Visual Studio > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line 45 > > at GeoDataPipelineViewer.Program.Main() in C:\src\Visual Studio > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\Program.cs:line 19 > > at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] > args) > > at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence > assemblySecurity, String[] args) > > at > Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() > > at System.Threading.ThreadHelper.ThreadStart_Context(Object > state) > > at System.Threading.ExecutionContext.Run(ExecutionContext > executionContext, ContextCallback callback, Object state) > > at System.Threading.ThreadHelper.ThreadStart() > > > > > > > > > > > > > > Using MyMap.draw() I get the following Exception: > > System.AccessViolationException was unhandled > > Message="Attempted to read or write protected memory. This is often an > indication that other memory is corrupt." > > Source="mapscript_csharp" > > StackTrace: > > at mapscriptPINVOKE.mapObj_draw(HandleRef jarg1) > > at mapObj.draw() > > at GeoDataPipelineViewer.GDPV.RefreshMap() in C:\src\Visual > Studio 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line > 400 > > at GeoDataPipelineViewer.GDPV.showMap() in C:\src\Visual Studio > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line 385 > > at GeoDataPipelineViewer.GDPV..ctor() in C:\src\Visual Studio > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line 45 > > at GeoDataPipelineViewer.Program.Main() in C:\src\Visual Studio > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\Program.cs:line 19 > > at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] > args) > > at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence > assemblySecurity, String[] args) > > at > Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() > > at System.Threading.ThreadHelper.ThreadStart_Context(Object > state) > > at System.Threading.ExecutionContext.Run(ExecutionContext > executionContext, ContextCallback callback, Object state) > > at System.Threading.ThreadHelper.ThreadStart() > > > > > > I think the problem is the label, like it is described in the first > exception but how could I set the bitmap-font, and where can I find a enum for > that or some constants like MS_MEDIUM? > > Or is there just another reason why that doesn't work? > > > > Best Regards > > Christian > > > > > > > > -- > > > > > > Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! > > "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl > > -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From C.Wilmes at GMX.DE Mon Jun 19 09:54:21 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Mon, 19 Jun 2006 18:54:21 +0200 Subject: scalebar-problem with csharp-mapscript In-Reply-To: <20060619164126.133280@gmx.net> Message-ID: Hi, now I test it like that and it works: myMap.scalebar.height = 20; myMap.scalebar.width = 400; myMap.scalebar.intervals = 5; //scalebar.label = labelScalebar; myMap.scalebar.position = (int)MS_LABEL_POSITIONS.MS_UL; myMap.scalebar.style = 1; //0 or 1 myMap.scalebar.status = mapscript.MS_EMBED; myMap.scalebar.units = (int)MS_UNITS.MS_METERS; But the scalebar itself isn't correct. One Meter in the scalebar is about 1000 meters in the map. What could be the reason for that? Best Regards Christian -------- Original-Nachricht -------- Datum: Mon, 19 Jun 2006 18:41:26 +0200 Von: Christian Wilmes An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] scalebar-problem with csharp-mapscript > Hi Tamas, > > thanks for your quick response. I tried it out, but there are still the > same exeptions. > > My new code: > scalebarObj scalebar = myMap.scalebar; > labelObj labelScalebar = scalebar.label; > > labelScalebar.size = 12; > labelScalebar.type = MS_FONT_TYPE.MS_BITMAP; > labelScalebar.color = new colorObj(255, 0, 255, 0); > > > scalebar.height = pictureBoxScalebar.Height; > scalebar.width = pictureBoxScalebar.Width; > scalebar.intervals = 5; > //scalebar.label = labelScalebar; > scalebar.position = (int)MS_LABEL_POSITIONS.MS_UL; > scalebar.style = 0; //0 or 1 > scalebar.status = mapscript.MS_EMBED; > scalebar.units = (int)MS_UNITS.MS_KILOMETERS; > > > Best Regards > Christian > > > > -------- Original-Nachricht -------- > Datum: Mon, 19 Jun 2006 18:08:09 +0200 > Von: Tamas Szekeres > An: MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: Re: [UMN_MAPSERVER-USERS] scalebar-problem with csharp-mapscript > > > Christian, > > > > scalebarObj is added to the map by default and also the labelObj is > > added to the scalebar so you should use these objects in the following > > way: > > > > scalebarObj scalebar = myMap.scalebar; > > scalebar.height = pictureBoxScalebar.Height; > > scalebar.width = pictureBoxScalebar.Width; > > scalebar.intervals = 5; > > scalebar.label = labelScalebar; > > scalebar.position = (int)MS_LABEL_POSITIONS.MS_UL; > > scalebar.style = 0; //0 or 1 > > scalebar.status = mapscript.MS_EMBED; > > scalebar.units = (int)MS_UNITS.MS_KILOMETERS; > > labelObj labelScalebar = scalebar.label; > > labelScalebar.size = 12; > > labelScalebar.type = MS_FONT_TYPE.MS_BITMAP; > > labelScalebar.color = new colorObj(255, 0, 255, 0); > > > > This problem is related to the following bug: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1803 > > > > You should also avoid to use the object members mentioned there as > > writeable properties. > > > > Best Regards, > > > > Tamas > > > > > > > > 2006/6/19, Christian Wilmes : > > > Hi All, > > > > > > if I try to add a scalebar to my map I get exceptions.The code for the > > scalebar: > > > labelObj labelScalebar = new labelObj(); > > > labelScalebar.size = 12; > > > labelScalebar.type = MS_FONT_TYPE.MS_BITMAP; > > > labelScalebar.color = new colorObj(255, 0, 255, 0); > > > > > > scalebarObj scalebar = new scalebarObj(); > > > scalebar.height = pictureBoxScalebar.Height; > > > scalebar.width = pictureBoxScalebar.Width; > > > scalebar.intervals = 5; > > > scalebar.label = labelScalebar; > > > scalebar.position = (int)MS_LABEL_POSITIONS.MS_UL; > > > scalebar.style = 0; //0 or 1 > > > scalebar.status = mapscript.MS_EMBED; > > > scalebar.units = (int)MS_UNITS.MS_KILOMETERS; > > > > > > myMap.scalebar = scalebar; > > > > > > > > > > > > > > > > > > > > > Using myMap.drawScalebar() I get the following exception: > > > System.ApplicationException was unhandled > > > Message="msGetBitmapFont(): GD library error. Invalid bitmap font. > > Must be one of tiny, small, medium, large or giant." > > > Source="mapscript_csharp" > > > StackTrace: > > > at mapObj.drawScalebar() > > > at GeoDataPipelineViewer.GDPV.RefreshMap() in C:\src\Visual > > Studio > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line > > 415 > > > at GeoDataPipelineViewer.GDPV.showMap() in C:\src\Visual Studio > > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line > 385 > > > at GeoDataPipelineViewer.GDPV..ctor() in C:\src\Visual Studio > > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line > 45 > > > at GeoDataPipelineViewer.Program.Main() in C:\src\Visual Studio > > > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\Program.cs:line 19 > > > at System.AppDomain.nExecuteAssembly(Assembly assembly, > String[] > > args) > > > at System.AppDomain.ExecuteAssembly(String assemblyFile, > Evidence > > assemblySecurity, String[] args) > > > at > > Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() > > > at System.Threading.ThreadHelper.ThreadStart_Context(Object > > state) > > > at System.Threading.ExecutionContext.Run(ExecutionContext > > executionContext, ContextCallback callback, Object state) > > > at System.Threading.ThreadHelper.ThreadStart() > > > > > > > > > > > > > > > > > > > > > Using MyMap.draw() I get the following Exception: > > > System.AccessViolationException was unhandled > > > Message="Attempted to read or write protected memory. This is often > an > > indication that other memory is corrupt." > > > Source="mapscript_csharp" > > > StackTrace: > > > at mapscriptPINVOKE.mapObj_draw(HandleRef jarg1) > > > at mapObj.draw() > > > at GeoDataPipelineViewer.GDPV.RefreshMap() in C:\src\Visual > > Studio > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line > > 400 > > > at GeoDataPipelineViewer.GDPV.showMap() in C:\src\Visual Studio > > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line > 385 > > > at GeoDataPipelineViewer.GDPV..ctor() in C:\src\Visual Studio > > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line > 45 > > > at GeoDataPipelineViewer.Program.Main() in C:\src\Visual Studio > > > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\Program.cs:line 19 > > > at System.AppDomain.nExecuteAssembly(Assembly assembly, > String[] > > args) > > > at System.AppDomain.ExecuteAssembly(String assemblyFile, > Evidence > > assemblySecurity, String[] args) > > > at > > Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() > > > at System.Threading.ThreadHelper.ThreadStart_Context(Object > > state) > > > at System.Threading.ExecutionContext.Run(ExecutionContext > > executionContext, ContextCallback callback, Object state) > > > at System.Threading.ThreadHelper.ThreadStart() > > > > > > > > > I think the problem is the label, like it is described in the first > > exception but how could I set the bitmap-font, and where can I find a > enum for > > that or some constants like MS_MEDIUM? > > > Or is there just another reason why that doesn't work? > > > > > > Best Regards > > > Christian > > > > > > > > > > > > -- > > > > > > > > > Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! > > > "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl > > > > > -- > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer -- Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl From mtrp36 at HOTMAIL.COM Mon Jun 19 10:04:25 2006 From: mtrp36 at HOTMAIL.COM (K Kuo) Date: Mon, 19 Jun 2006 17:04:25 +0000 Subject: looking for eastern europe rail road file Message-ID: An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Mon Jun 19 11:55:48 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Mon, 19 Jun 2006 20:55:48 +0200 Subject: scalebar-problem with csharp-mapscript In-Reply-To: <20060619165421.133300@gmx.net> Message-ID: I haven't noticed previously that for bitmap fonts you should use the predefinied sizes like: labelScalebar.size = (int)MS_BITMAP_FONT_SIZES.MS_MEDIUM; Tamas -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christian Wilmes Sent: Monday, June 19, 2006 6:54 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] scalebar-problem with csharp-mapscript Hi, now I test it like that and it works: myMap.scalebar.height = 20; myMap.scalebar.width = 400; myMap.scalebar.intervals = 5; //scalebar.label = labelScalebar; myMap.scalebar.position = (int)MS_LABEL_POSITIONS.MS_UL; myMap.scalebar.style = 1; //0 or 1 myMap.scalebar.status = mapscript.MS_EMBED; myMap.scalebar.units = (int)MS_UNITS.MS_METERS; But the scalebar itself isn't correct. One Meter in the scalebar is about 1000 meters in the map. What could be the reason for that? Best Regards Christian -------- Original-Nachricht -------- Datum: Mon, 19 Jun 2006 18:41:26 +0200 Von: Christian Wilmes An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] scalebar-problem with csharp-mapscript > Hi Tamas, > > thanks for your quick response. I tried it out, but there are still the > same exeptions. > > My new code: > scalebarObj scalebar = myMap.scalebar; > labelObj labelScalebar = scalebar.label; > > labelScalebar.size = 12; > labelScalebar.type = MS_FONT_TYPE.MS_BITMAP; > labelScalebar.color = new colorObj(255, 0, 255, 0); > > > scalebar.height = pictureBoxScalebar.Height; > scalebar.width = pictureBoxScalebar.Width; > scalebar.intervals = 5; > //scalebar.label = labelScalebar; > scalebar.position = (int)MS_LABEL_POSITIONS.MS_UL; > scalebar.style = 0; //0 or 1 > scalebar.status = mapscript.MS_EMBED; > scalebar.units = (int)MS_UNITS.MS_KILOMETERS; > > > Best Regards > Christian > > > > -------- Original-Nachricht -------- > Datum: Mon, 19 Jun 2006 18:08:09 +0200 > Von: Tamas Szekeres > An: MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: Re: [UMN_MAPSERVER-USERS] scalebar-problem with csharp-mapscript > > > Christian, > > > > scalebarObj is added to the map by default and also the labelObj is > > added to the scalebar so you should use these objects in the following > > way: > > > > scalebarObj scalebar = myMap.scalebar; > > scalebar.height = pictureBoxScalebar.Height; > > scalebar.width = pictureBoxScalebar.Width; > > scalebar.intervals = 5; > > scalebar.label = labelScalebar; > > scalebar.position = (int)MS_LABEL_POSITIONS.MS_UL; > > scalebar.style = 0; //0 or 1 > > scalebar.status = mapscript.MS_EMBED; > > scalebar.units = (int)MS_UNITS.MS_KILOMETERS; > > labelObj labelScalebar = scalebar.label; > > labelScalebar.size = 12; > > labelScalebar.type = MS_FONT_TYPE.MS_BITMAP; > > labelScalebar.color = new colorObj(255, 0, 255, 0); > > > > This problem is related to the following bug: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1803 > > > > You should also avoid to use the object members mentioned there as > > writeable properties. > > > > Best Regards, > > > > Tamas > > > > > > > > 2006/6/19, Christian Wilmes : > > > Hi All, > > > > > > if I try to add a scalebar to my map I get exceptions.The code for the > > scalebar: > > > labelObj labelScalebar = new labelObj(); > > > labelScalebar.size = 12; > > > labelScalebar.type = MS_FONT_TYPE.MS_BITMAP; > > > labelScalebar.color = new colorObj(255, 0, 255, 0); > > > > > > scalebarObj scalebar = new scalebarObj(); > > > scalebar.height = pictureBoxScalebar.Height; > > > scalebar.width = pictureBoxScalebar.Width; > > > scalebar.intervals = 5; > > > scalebar.label = labelScalebar; > > > scalebar.position = (int)MS_LABEL_POSITIONS.MS_UL; > > > scalebar.style = 0; //0 or 1 > > > scalebar.status = mapscript.MS_EMBED; > > > scalebar.units = (int)MS_UNITS.MS_KILOMETERS; > > > > > > myMap.scalebar = scalebar; > > > > > > > > > > > > > > > > > > > > > Using myMap.drawScalebar() I get the following exception: > > > System.ApplicationException was unhandled > > > Message="msGetBitmapFont(): GD library error. Invalid bitmap font. > > Must be one of tiny, small, medium, large or giant." > > > Source="mapscript_csharp" > > > StackTrace: > > > at mapObj.drawScalebar() > > > at GeoDataPipelineViewer.GDPV.RefreshMap() in C:\src\Visual > > Studio > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line > > 415 > > > at GeoDataPipelineViewer.GDPV.showMap() in C:\src\Visual Studio > > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line > 385 > > > at GeoDataPipelineViewer.GDPV..ctor() in C:\src\Visual Studio > > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line > 45 > > > at GeoDataPipelineViewer.Program.Main() in C:\src\Visual Studio > > > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\Program.cs:line 19 > > > at System.AppDomain.nExecuteAssembly(Assembly assembly, > String[] > > args) > > > at System.AppDomain.ExecuteAssembly(String assemblyFile, > Evidence > > assemblySecurity, String[] args) > > > at > > Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() > > > at System.Threading.ThreadHelper.ThreadStart_Context(Object > > state) > > > at System.Threading.ExecutionContext.Run(ExecutionContext > > executionContext, ContextCallback callback, Object state) > > > at System.Threading.ThreadHelper.ThreadStart() > > > > > > > > > > > > > > > > > > > > > Using MyMap.draw() I get the following Exception: > > > System.AccessViolationException was unhandled > > > Message="Attempted to read or write protected memory. This is often > an > > indication that other memory is corrupt." > > > Source="mapscript_csharp" > > > StackTrace: > > > at mapscriptPINVOKE.mapObj_draw(HandleRef jarg1) > > > at mapObj.draw() > > > at GeoDataPipelineViewer.GDPV.RefreshMap() in C:\src\Visual > > Studio > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line > > 400 > > > at GeoDataPipelineViewer.GDPV.showMap() in C:\src\Visual Studio > > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line > 385 > > > at GeoDataPipelineViewer.GDPV..ctor() in C:\src\Visual Studio > > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line > 45 > > > at GeoDataPipelineViewer.Program.Main() in C:\src\Visual Studio > > > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\Program.cs:line 19 > > > at System.AppDomain.nExecuteAssembly(Assembly assembly, > String[] > > args) > > > at System.AppDomain.ExecuteAssembly(String assemblyFile, > Evidence > > assemblySecurity, String[] args) > > > at > > Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() > > > at System.Threading.ThreadHelper.ThreadStart_Context(Object > > state) > > > at System.Threading.ExecutionContext.Run(ExecutionContext > > executionContext, ContextCallback callback, Object state) > > > at System.Threading.ThreadHelper.ThreadStart() > > > > > > > > > I think the problem is the label, like it is described in the first > > exception but how could I set the bitmap-font, and where can I find a > enum for > > that or some constants like MS_MEDIUM? > > > Or is there just another reason why that doesn't work? > > > > > > Best Regards > > > Christian > > > > > > > > > > > > -- > > > > > > > > > Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! > > > "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl > > > > > -- > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer -- Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.1/369 - Release Date: 2006.06.19. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.1/369 - Release Date: 2006.06.19. From pmoen at STATE.ND.US Mon Jun 19 13:10:29 2006 From: pmoen at STATE.ND.US (Paul Moen) Date: Mon, 19 Jun 2006 15:10:29 -0500 Subject: gdal question on no data. Message-ID: Does anyone know how to take a tiff and apply jpeg compression without messing up the nodata areas? For example, I have a tif with weather radar imagery in colors black is the nodata color. I want to compress the tif using jpeg compression, but the compression causes some of the nodata colors to become something other than black. Is there a way to tell gdal to consider the black areas no data and do not use them in the compression process? gdal_translate -a_srs "epsg:2266" -co "COMPRESS=JPEG" 40.tif 40n.tif Paul T. Moen From aaronkoning at GMAIL.COM Mon Jun 19 13:24:07 2006 From: aaronkoning at GMAIL.COM (Aaron Koning) Date: Mon, 19 Jun 2006 13:24:07 -0700 Subject: How can I label a Point using different postgis table In-Reply-To: <005901c693ae$e4564750$6401a8c0@PAVILION> Message-ID: I believe you have two options here: 1. Create a database view that joins the two tables and set your DATA variable to that view. OR 2. Modify the DATA variable to include a JOIN statement. Aaron On 6/19/06, Luis Trevi?o Huerta wrote: > > Hi list: > > I'm currenttly using a point layer that displays some GPS points that are > stored on a postgis table called "loca". I'd like to label this points > with > data that comes from another table in the same postgis data base (this > table > is named "autos"), both tables share a common column named "idunit" and I > would like to use autos.idunit as a label. How can I do this?. This is > part > of my map file: > > LAYER > NAME gis > STATUS ON > TYPE POINT > UNITS METERS > > DEBUG ON > CONNECTION "user=XXX password=XXXXX dbname=bsiubica host=XXX.XXX.XXX.XX > port=5432" > CONNECTIONTYPE postgis > DATA "posicion from loca as foo using unique cmpoid using srid=4326" > > PROJECTION > "proj=longlat" > "ellps=WGS84" > "datum=WGS84" > END > > FILTER 'idunit = %unid%' > > CLASS > EXPRESSION ('[mo]' = '1') > COLOR 255 255 26 #amarillo > SYMBOL 7 > SIZE 13 > END > END > > regards, > Luis > -- +-------------------------------------------- | 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 aaronkoning at GMAIL.COM Mon Jun 19 13:27:31 2006 From: aaronkoning at GMAIL.COM (Aaron Koning) Date: Mon, 19 Jun 2006 13:27:31 -0700 Subject: Selecting all layer features with mapscript In-Reply-To: Message-ID: Are you using MapScript? The OGR C API or OGR/PHP might be the way to go (for sequential feature access) if you don't have a need for serving maps whilst performing "statisticals op?rations". More context/details would be helpful. Aaron On 6/19/06, Xavier Mauclaire wrote: > > Hi, > I would like to statisticals op?rations on all layers features. To do that > i need to sequentialy access to each feature of the layer. > How can i do that ? > > regards > > ----------------------------------------- > > *Xavier Mauclaire* > > ------------------------------------------------------- > > > > > -- +-------------------------------------------- | 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 aaronkoning at GMAIL.COM Mon Jun 19 13:52:38 2006 From: aaronkoning at GMAIL.COM (Aaron Koning) Date: Mon, 19 Jun 2006 13:52:38 -0700 Subject: Selecting all layer features with mapscript In-Reply-To: Message-ID: Check out GEOS and PostGIS, they have Area functions and other yummy stuff. I think that you would want to generate the area information before serving up the layers. Is their a reason why the area values must be generated dynamically (and not just a static field)? Aaron On 6/19/06, Xavm40 wrote: > > > > I'm using Mapscript with C#. > i need to get layer feature to make intersections avec to calcule areas. > I'm in trouble because i just saw that the shapeObj Object has no area > function. AAAHH > > regards > > > ----------------------------------------- > > *Xavier Mauclaire* > > ------------------------------------------------------- > > > > > > ------------------------------ > *De :* Aaron Koning [mailto:aaronkoning at gmail.com] > *Envoy? :* lundi 19 juin 2006 22:28 > *? :* Xavier Mauclaire; MAPSERVER-USERS at lists.umn.edu > *Objet :* Re: [UMN_MAPSERVER-USERS] Selecting all layer features with > mapscript > > Are you using MapScript? The OGR C API or OGR/PHP might be the way to go > (for sequential feature access) if you don't have a need for serving maps > whilst performing "statisticals op?rations". More context/details would be > helpful. > > Aaron > > On 6/19/06, Xavier Mauclaire wrote: > > > > Hi, > > I would like to statisticals op?rations on all layers features. To do > > that i need to sequentialy access to each feature of the layer. > > How can i do that ? > > > > regards > > > > ----------------------------------------- > > > > *Xavier Mauclaire* > > > > ------------------------------------------------------- > > > > > > > > > > > > > > -- > +-------------------------------------------- > | Aaron Koning > | Information Technologist > | Prince George, BC, Canada. > +-------------------------------------------- > | http://datashare.gis.unbc.ca/fist/ > | http://datashare.gis.unbc.ca/gctp-js/ > +-------------------------------------------- > -- +-------------------------------------------- | 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 aaronkoning at GMAIL.COM Mon Jun 19 14:13:49 2006 From: aaronkoning at GMAIL.COM (Aaron Koning) Date: Mon, 19 Jun 2006 14:13:49 -0700 Subject: Selecting all layer features with mapscript In-Reply-To: Message-ID: Not off hand. From what I can see in the docs, the only GEOS associated functions are: buffer, convexhull, union_geos, intersection and difference (all via the shapeobj). I don't see any area functions exposed in MapScript. What format is your data in? Maybe you could import it into PostGIS. Then if you need dynamic operations you can connect directly to the DB to perform them using PostGIS functions. Checkout: http://postgis.refractions.net/docs/ch06.html Aaron On 6/19/06, Xavm40 wrote: > > I've compiled mapserver with geos option but i don't how to use it with > mapscript and C#. Have you got any odea about this ? > regards > > > > ----------------------------------------- > > *Xavier Mauclaire* > > ------------------------------------------------------- > > > > > > ------------------------------ > *De :* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *De > la part de* Aaron Koning > *Envoy? :* lundi 19 juin 2006 22:53 > *? :* MAPSERVER-USERS at LISTS.UMN.EDU > > *Objet :* Re: [UMN_MAPSERVER-USERS] Selecting all layer features with > mapscript > > Check out GEOS and PostGIS, they have Area functions and other yummy > stuff. I think that you would want to generate the area information before > serving up the layers. Is their a reason why the area values must be > generated dynamically (and not just a static field)? > > Aaron > > On 6/19/06, Xavm40 wrote: > > > > > > > > I'm using Mapscript with C#. > > i need to get layer feature to make intersections avec to calcule areas. > > I'm in trouble because i just saw that the shapeObj Object has no area > > function. AAAHH > > > > regards > > > > > > ----------------------------------------- > > > > *Xavier Mauclaire* > > > > ------------------------------------------------------- > > > > > > > > > > > > ------------------------------ > > *De :* Aaron Koning [mailto:aaronkoning at gmail.com] > > *Envoy? :* lundi 19 juin 2006 22:28 > > *? :* Xavier Mauclaire; MAPSERVER-USERS at lists.umn.edu > > *Objet :* Re: [UMN_MAPSERVER-USERS] Selecting all layer features with > > mapscript > > > > Are you using MapScript? The OGR C API or OGR/PHP might be the way to > > go (for sequential feature access) if you don't have a need for serving maps > > whilst performing "statisticals op?rations". More context/details would > > be helpful. > > > > Aaron > > > > On 6/19/06, Xavier Mauclaire wrote: > > > > > > Hi, > > > I would like to statisticals op?rations on all layers features. To do > > > that i need to sequentialy access to each feature of the layer. > > > How can i do that ? > > > > > > regards > > > > > > ----------------------------------------- > > > > > > *Xavier Mauclaire* > > > > > > ------------------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > -- > > +-------------------------------------------- > > | Aaron Koning > > | Information Technologist > > | Prince George, BC, Canada. > > +-------------------------------------------- > > | http://datashare.gis.unbc.ca/fist/ > > | http://datashare.gis.unbc.ca/gctp-js/ > > +-------------------------------------------- > > > > > > -- > +-------------------------------------------- > | Aaron Koning > | Information Technologist > | Prince George, BC, Canada. > +-------------------------------------------- > | http://datashare.gis.unbc.ca/fist/ > | http://datashare.gis.unbc.ca/gctp-js/ > +-------------------------------------------- > -- +-------------------------------------------- | 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 warmerdam at POBOX.COM Mon Jun 19 20:27:40 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 19 Jun 2006 23:27:40 -0400 Subject: gdal question on no data. In-Reply-To: Message-ID: Paul Moen wrote: > Does anyone know how to take a tiff and apply jpeg compression without > messing up the nodata areas? For example, I have a tif with weather radar > imagery in colors black is the nodata color. I want to compress the tif > using jpeg compression, but the compression causes some of the nodata colors > to become something other than black. Is there a way to tell gdal to > consider the black areas no data and do not use them in the compression > process? > > gdal_translate -a_srs "epsg:2266" -co "COMPRESS=JPEG" 40.tif 40n.tif Paul, No, I am not aware of any approach to doing this. Generally speaking preserving nodata regions via nodata values when using lossy compression formats is a big pain, verging on impossible. 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 vulukut at TESCILTURK.COM Mon Jun 19 23:14:57 2006 From: vulukut at TESCILTURK.COM (Volkan Ulukut) Date: Tue, 20 Jun 2006 09:14:57 +0300 Subject: scalebar-problem with csharp-mapscript In-Reply-To: <20060619165421.133300@gmx.net> Message-ID: EXTENT and UNITS of your map should match, that might be the reason. If you gave geoextent and chose meter as units that might be the reason. dd is the unit for geoextent. -----Original Message----- From: tesciltu at host.tescilturk.com [mailto:tesciltu at host.tescilturk.com] On Behalf Of Christian Wilmes Sent: Monday, June 19, 2006 7:54 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] scalebar-problem with csharp-mapscript Hi, now I test it like that and it works: myMap.scalebar.height = 20; myMap.scalebar.width = 400; myMap.scalebar.intervals = 5; //scalebar.label = labelScalebar; myMap.scalebar.position = (int)MS_LABEL_POSITIONS.MS_UL; myMap.scalebar.style = 1; //0 or 1 myMap.scalebar.status = mapscript.MS_EMBED; myMap.scalebar.units = (int)MS_UNITS.MS_METERS; But the scalebar itself isn't correct. One Meter in the scalebar is about 1000 meters in the map. What could be the reason for that? Best Regards Christian -------- Original-Nachricht -------- Datum: Mon, 19 Jun 2006 18:41:26 +0200 Von: Christian Wilmes An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] scalebar-problem with csharp-mapscript > Hi Tamas, > > thanks for your quick response. I tried it out, but there are still the > same exeptions. > > My new code: > scalebarObj scalebar = myMap.scalebar; > labelObj labelScalebar = scalebar.label; > > labelScalebar.size = 12; > labelScalebar.type = MS_FONT_TYPE.MS_BITMAP; > labelScalebar.color = new colorObj(255, 0, 255, 0); > > > scalebar.height = pictureBoxScalebar.Height; > scalebar.width = pictureBoxScalebar.Width; > scalebar.intervals = 5; > //scalebar.label = labelScalebar; > scalebar.position = (int)MS_LABEL_POSITIONS.MS_UL; > scalebar.style = 0; //0 or 1 > scalebar.status = mapscript.MS_EMBED; > scalebar.units = (int)MS_UNITS.MS_KILOMETERS; > > > Best Regards > Christian > > > > -------- Original-Nachricht -------- > Datum: Mon, 19 Jun 2006 18:08:09 +0200 > Von: Tamas Szekeres > An: MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: Re: [UMN_MAPSERVER-USERS] scalebar-problem with csharp-mapscript > > > Christian, > > > > scalebarObj is added to the map by default and also the labelObj is > > added to the scalebar so you should use these objects in the following > > way: > > > > scalebarObj scalebar = myMap.scalebar; > > scalebar.height = pictureBoxScalebar.Height; > > scalebar.width = pictureBoxScalebar.Width; > > scalebar.intervals = 5; > > scalebar.label = labelScalebar; > > scalebar.position = (int)MS_LABEL_POSITIONS.MS_UL; > > scalebar.style = 0; //0 or 1 > > scalebar.status = mapscript.MS_EMBED; > > scalebar.units = (int)MS_UNITS.MS_KILOMETERS; > > labelObj labelScalebar = scalebar.label; > > labelScalebar.size = 12; > > labelScalebar.type = MS_FONT_TYPE.MS_BITMAP; > > labelScalebar.color = new colorObj(255, 0, 255, 0); > > > > This problem is related to the following bug: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1803 > > > > You should also avoid to use the object members mentioned there as > > writeable properties. > > > > Best Regards, > > > > Tamas > > > > > > > > 2006/6/19, Christian Wilmes : > > > Hi All, > > > > > > if I try to add a scalebar to my map I get exceptions.The code for the > > scalebar: > > > labelObj labelScalebar = new labelObj(); > > > labelScalebar.size = 12; > > > labelScalebar.type = MS_FONT_TYPE.MS_BITMAP; > > > labelScalebar.color = new colorObj(255, 0, 255, 0); > > > > > > scalebarObj scalebar = new scalebarObj(); > > > scalebar.height = pictureBoxScalebar.Height; > > > scalebar.width = pictureBoxScalebar.Width; > > > scalebar.intervals = 5; > > > scalebar.label = labelScalebar; > > > scalebar.position = (int)MS_LABEL_POSITIONS.MS_UL; > > > scalebar.style = 0; //0 or 1 > > > scalebar.status = mapscript.MS_EMBED; > > > scalebar.units = (int)MS_UNITS.MS_KILOMETERS; > > > > > > myMap.scalebar = scalebar; > > > > > > > > > > > > > > > > > > > > > Using myMap.drawScalebar() I get the following exception: > > > System.ApplicationException was unhandled > > > Message="msGetBitmapFont(): GD library error. Invalid bitmap font. > > Must be one of tiny, small, medium, large or giant." > > > Source="mapscript_csharp" > > > StackTrace: > > > at mapObj.drawScalebar() > > > at GeoDataPipelineViewer.GDPV.RefreshMap() in C:\src\Visual > > Studio > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line > > 415 > > > at GeoDataPipelineViewer.GDPV.showMap() in C:\src\Visual Studio > > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line > 385 > > > at GeoDataPipelineViewer.GDPV..ctor() in C:\src\Visual Studio > > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line > 45 > > > at GeoDataPipelineViewer.Program.Main() in C:\src\Visual Studio > > > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\Program.cs:line 19 > > > at System.AppDomain.nExecuteAssembly(Assembly assembly, > String[] > > args) > > > at System.AppDomain.ExecuteAssembly(String assemblyFile, > Evidence > > assemblySecurity, String[] args) > > > at > > Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() > > > at System.Threading.ThreadHelper.ThreadStart_Context(Object > > state) > > > at System.Threading.ExecutionContext.Run(ExecutionContext > > executionContext, ContextCallback callback, Object state) > > > at System.Threading.ThreadHelper.ThreadStart() > > > > > > > > > > > > > > > > > > > > > Using MyMap.draw() I get the following Exception: > > > System.AccessViolationException was unhandled > > > Message="Attempted to read or write protected memory. This is often > an > > indication that other memory is corrupt." > > > Source="mapscript_csharp" > > > StackTrace: > > > at mapscriptPINVOKE.mapObj_draw(HandleRef jarg1) > > > at mapObj.draw() > > > at GeoDataPipelineViewer.GDPV.RefreshMap() in C:\src\Visual > > Studio > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line > > 400 > > > at GeoDataPipelineViewer.GDPV.showMap() in C:\src\Visual Studio > > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line > 385 > > > at GeoDataPipelineViewer.GDPV..ctor() in C:\src\Visual Studio > > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\GDPV.cs:line > 45 > > > at GeoDataPipelineViewer.Program.Main() in C:\src\Visual Studio > > > 2005\Projects\GeoDataPipelineViewer\GeoDataPipelineViewer\Program.cs:line 19 > > > at System.AppDomain.nExecuteAssembly(Assembly assembly, > String[] > > args) > > > at System.AppDomain.ExecuteAssembly(String assemblyFile, > Evidence > > assemblySecurity, String[] args) > > > at > > Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() > > > at System.Threading.ThreadHelper.ThreadStart_Context(Object > > state) > > > at System.Threading.ExecutionContext.Run(ExecutionContext > > executionContext, ContextCallback callback, Object state) > > > at System.Threading.ThreadHelper.ThreadStart() > > > > > > > > > I think the problem is the label, like it is described in the first > > exception but how could I set the bitmap-font, and where can I find a > enum for > > that or some constants like MS_MEDIUM? > > > Or is there just another reason why that doesn't work? > > > > > > Best Regards > > > Christian > > > > > > > > > > > > -- > > > > > > > > > Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! > > > "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl > > > > > -- > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer -- Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl From m.coudert at OIEAU.FR Tue Jun 20 03:24:14 2006 From: m.coudert at OIEAU.FR (Mathieu Coudert) Date: Tue, 20 Jun 2006 12:24:14 +0200 Subject: MapServer Users in France Message-ID: Hi list, The result of a survey about Mapserver Users in France is now available here: http://www.silatitudes.com/documents/Enquete_MapServer_SILAT_2006.pdf The survey carried out by a team of French student. The report is in French. Bye, Mathieu -- 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 Sven.Schulz-2 at RUB.DE Tue Jun 20 06:30:01 2006 From: Sven.Schulz-2 at RUB.DE (Sven Schulz) Date: Tue, 20 Jun 2006 15:30:01 +0200 Subject: installing hostgis Message-ID: Hi out there, has anyone in this list ever tried to use hostgis (www.hostgis.com )? Found it yesterday and have problems with cfdisk to make partitions (i.e. swap can not be formatted). Any help is useful! Kind regards, Sven Schulz -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Sven Schulz (Sven.Schulz-2 at rub.de).vcf Type: text/x-vcard Size: 618 bytes Desc: not available URL: From parrott.sarah at GOOGLEMAIL.COM Tue Jun 20 07:34:32 2006 From: parrott.sarah at GOOGLEMAIL.COM (Sarah Parrott) Date: Tue, 20 Jun 2006 15:34:32 +0100 Subject: cannot make mapserver Message-ID: Hi, I'm trying to get mapserver to install on suse 10.1. I use the following configure: ./configure --with-tiff --with-gdal=/usr/bin/gdal-config --with-ogr=/usr/bin/gdal-config --with-proj --without-pdf --with-threads the final output of which is configure: creating ./config.status config.status: creating Makefile config.status: creating mapscript/java/Makefile config.status: creating mapscript/csharp/Makefile it didn't even get that far to start with but I've installed zlib, libpng, gd, gdal, ogr and freetype and now it gets that far. When i run make I get this: gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV -DUSE_THREAD -DUSE_ZLIB -I/usr/local/include -I/usr/src/packages/BUILD/gdal-root//usr/include maptemplate.c -o maptemplate.o In file included from maptemplate.h:45, from maptemplate.c:104: map.h:383:21: error: ogr_api.h: No such file or directory In file included from maptemplate.h:45, from maptemplate.c:104: map.h:1709: error: expected ')' before 'hGeometry' make: *** [maptemplate.o] Error 1 and that's as far as it gets. Any ideas what might be going wrong? Thanks, Sarah -------------- next part -------------- An HTML attachment was scrubbed... URL: From bryan at GEOMEGA.COM Tue Jun 20 07:53:21 2006 From: bryan at GEOMEGA.COM (Bryan Keith) Date: Tue, 20 Jun 2006 08:53:21 -0600 Subject: query SQLServer data and display on web page Message-ID: Hello, I'm new to MapServer and web programming. Some of the MapServer information seems to be geared toward people with minimal spatial data experience rather than minimal web experience. I have MapServer installed, and I'm able to display a static map with raster layers, vector layers, and web services. I have zoom and pan buttons on my application (from chameleon). Now I'd like to retrieve point data that's stored in SQLServer. The X and Y values are stored in the db as numeric fields, not as geometries. Do I need to make a shapefile to display these on the map? Do I need to get these into Postgresql and display via ogr? First I'd like to show all the locations and be able to query the locations on the map. In a separate table in SQLServer I have groundwater analytical results. Eventually I want the user to select an analyte, date range, and a few other criteria and show those results on the map. e.g., let's see all the groundwater locations tested for arsenic in April 2003. They'll be displayed with colored symbols depending on their concentrations. Since I don't know much about web programming, I'm not sure exactly what my questions should be, but here goes: what would the workflow look like? Here's a possibility: have a query button that brings up a page where the user can select the query criteria (written in html? or ? I could get help from one of our db guys if he could do this in asp.net.), make a shapefile?, use mapscript to modify the mapfile?, make the image and reload the page? Is that the general idea? Any tips, links to help pages or tutorials are appreciated. Bryan Bryan Keith GIS Specialist Geomega, Inc. Boulder, CO, USA From mccann.dave at GMAIL.COM Tue Jun 20 07:55:17 2006 From: mccann.dave at GMAIL.COM (Dave McCann) Date: Tue, 20 Jun 2006 09:55:17 -0500 Subject: SDE connection error Message-ID: Good morning list, I'm trying to test Mapserver from a MS4W installation with ArcSDE and have been unsuccessful so far. I'm trying to simply pull an SDE layer and display it in a browser to prove it works with my current configuration settings . In my map file I have defined the layer like this and enter the following URL to try and display the layer: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/testmap/htdocs/test.map &layer=county&mode=map MAP IMAGETYPE JPEG EXTENT -91.655009 -88.097889 34.996023 30.146096 SIZE 1000 1000 SHAPEPATH "../Data" IMAGECOLOR 255 255 255 LAYER NAME county TYPE POLYGON CONNECTION "sde-server,port:5151,pupsmap,sde_editor,*******" CONNECTIONTYPE SDE DATA "sde_editor.county,SHAPE" CLASS NAME "county" STYLE COLOR 232 232 232 OUTLINECOLOR 32 32 32 END END END END I'm getting this error in the event log: Faulting application mapserv.exe, version 0.0.0.0, faulting module mapserve.exe, version 0.0.0.0, fault address 0x00004da5 I have the latest MS4W release and have followed the steps to enable SDE 9.1 support. Any ideas? Dave McCann -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpintodacosta at GMAIL.COM Tue Jun 20 08:15:24 2006 From: jpintodacosta at GMAIL.COM (Joaquim Pinto da Costa) Date: Tue, 20 Jun 2006 16:15:24 +0100 Subject: What's the catch with ROSA on Windows client PCs Message-ID: I understand that this has may have been asked times and times before. But what's exactly the client requirements to run ROSA enabled sites? On some Windoses it runs fine on others just a blank screen. I thought it was Microsoft Java VM, no avail. I tried several versions of JAVA still no luck. I admit that my approach was not very scientific and I should have been more careful in trying to isolate the problem. Now I'm on a deadline and out of ideas. Any help would be VERY welcome Regards Joaquim (frustrated) From tkirstine at JDBARNES.COM Tue Jun 20 09:03:58 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Tue, 20 Jun 2006 12:03:58 -0400 Subject: shp2tile Message-ID: What happened to the shp2tile howto on the Mapserver site? Travis Kirstine First Base Solutions Limited 140 Renfrew Dr, Suite 100 Markham ON L3R 6B3 Phone 905.477.3600 Fax 905.477.3882 tkirstine at jdbarnes.com From jpintodacosta at GMAIL.COM Tue Jun 20 09:14:50 2006 From: jpintodacosta at GMAIL.COM (Joaquim Pinto da Costa) Date: Tue, 20 Jun 2006 17:14:50 +0100 Subject: What's the catch with ROSA on Windows client PCs In-Reply-To: <44981E0F.3040204@gmx.net> Message-ID: Philip thanks for the reply On 6/20/06, Spot wrote: > At the point when I became frustrated by ROSA I decided to use jBox > instead. I did not have the blank screen problem, but I still think > (with some limitations) it is the better choice. Did you try this? No but I'll give it try, but not now :-) > can be forced by switching to a different window and back to the browser > window. Is the map then shown properly? The site is always the same only the client behaviour changes. Some of the clients indeed exhibited that behavior, you needed to move the window to get the content, some kind of a redraw problem. On most PC it works fine, after some JAVA is installed, but some of them (including the one where I'm supposed to make a presentation) when they decide not to work nothing seams to cure them. Thanks Joaquim From kenlord at GMAIL.COM Tue Jun 20 09:25:41 2006 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 20 Jun 2006 09:25:41 -0700 Subject: What's the catch with ROSA on Windows client PCs In-Reply-To: <20a4d1220606200914g2eea2aafnd65ec26891169738@mail.gmail.com> Message-ID: Hi Joaquim, I've had that problem for a long time too. At one time another member of the community posted some code to force Rosa to refresh the map again when the page finishes loading, which fixed the problem for him, however I was not able to make it work. Try searching the MapServer list archives for Rosa and my name, and you may find the method he used. Perhaps it will work for you. Cheers, Ken Lord Vancouver BC On 6/20/06, Joaquim Pinto da Costa wrote: > Philip thanks for the reply > > On 6/20/06, Spot wrote: > > At the point when I became frustrated by ROSA I decided to use jBox > > instead. I did not have the blank screen problem, but I still think > > (with some limitations) it is the better choice. Did you try this? > > No but I'll give it try, but not now :-) > > > can be forced by switching to a different window and back to the browser > > window. Is the map then shown properly? > > The site is always the same only the client behaviour changes. Some of > the clients indeed exhibited that behavior, you needed to move the > window to get the content, some kind of a redraw problem. On most PC > it works fine, after some JAVA is installed, but some of them > (including the one where I'm supposed to make a presentation) when > they decide not to work nothing seams to cure them. > > Thanks > Joaquim > From jpintodacosta at GMAIL.COM Tue Jun 20 09:34:02 2006 From: jpintodacosta at GMAIL.COM (Joaquim Pinto da Costa) Date: Tue, 20 Jun 2006 17:34:02 +0100 Subject: What's the catch with ROSA on Windows client PCs In-Reply-To: <55dd01fa0606200925i1ab264c8k61a7c2761453ac2f@mail.gmail.com> Message-ID: > Try searching the MapServer list archives for Rosa and my name, and > you may find the method he used. Perhaps it will work for you. I'll give it a try. Thanks Joaquim From jpintodacosta at GMAIL.COM Tue Jun 20 10:16:47 2006 From: jpintodacosta at GMAIL.COM (Joaquim Pinto da Costa) Date: Tue, 20 Jun 2006 18:16:47 +0100 Subject: What's the catch with ROSA on Windows client PCs In-Reply-To: Message-ID: Thanks Robert > with different browsers and Rosa. Opera 7.53 and Firefox 1.07 seemed to > work well, but I have had trouble with Internet Explorer. To test I always use two browsers Firefox 1.5 and IE 6. But ROSA it's pretty consistent, when it fails on me it fails on both browsers ;-) It's my fault off-course I just want to know what am I doing wrong :-) J From denis.nadeau at GMAIL.COM Tue Jun 20 10:58:21 2006 From: denis.nadeau at GMAIL.COM (Denis Nadeau) Date: Tue, 20 Jun 2006 13:58:21 -0400 Subject: WMS Spatio temporal search Message-ID: Hi, I followed the instruction to set TIME and SPATIAL search from this URL. http://mapserver.gis.umn.edu/docs/howto/WCSServerFormatHowTo The Filter with TIME parameter works fine. My problem is that NASA ESG portal (http://esg.gsfc.nasa.gov/) does not set the &TIME parameter in its QUERY_STRING (File-Load View-OGC WMS Server). The results is a blank image I want to find a way to set a default value for the TIME parameter. Regards, Denis ----------------- .map file LAYER NAME 'time_idx' TYPE TILEINDEX DATA "/local/tools/gdaac/TS2/www/maptest/data/AIRS/testindex.shp" FILTERITEM 'TIME' #This work!!! FILTER '%TIME%' END LAYER NAME "AIRSRGB" TYPE RASTER STATUS DEFAULT DEBUG ON TILEINDEX "time_idx" TILEITEM "location" EXTENT -180.0 -90.0 180.0 90.0 DUMP TRUE PROJECTION "init=epsg:4326" ##recommended END METADATA wms_title "Aqua AIRS Visible/NIR False Color Composite, 10 km resolution, registered" ##required wms_extent "-180 -90 180 190" END CLASS NAME "VBRADLEGEND" KEYIMAGE "/datapool/OPS/user/services/cronproc/global_browse/ogc_registered/AIRVBRAD.003.20060508.day.legend.jpg" DEBUG ON END END # Layer -------------- next part -------------- An HTML attachment was scrubbed... URL: From djisgitt at SOUNDENERGY.COM Tue Jun 20 13:09:24 2006 From: djisgitt at SOUNDENERGY.COM (Don Isgitt) Date: Tue, 20 Jun 2006 15:09:24 -0500 Subject: installing hostgis In-Reply-To: <001201c6946d$a2366de0$391b9386@5127D> Message-ID: On Tue, 20 Jun 2006 08:30:01 -0500, Sven Schulz wrote: > Hi out there, > > > has anyone in this list ever tried to use hostgis (www.hostgis.com > )? Found it yesterday and have problems with > cfdisk to make partitions (i.e. swap can not be formatted). > > Any help is useful! > > > Kind regards, Sven Schulz > Guten tag, Sven. I have successfully installed hostgis running as a virtual machine under VMware (with Red Hat ES3 as the host). Mapserver is running fine under it. I wish you success. Don From woodbri at SWOODBRIDGE.COM Tue Jun 20 13:44:31 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 20 Jun 2006 16:44:31 -0400 Subject: shp2tile In-Reply-To: Message-ID: Travis Kirstine GIS Tech wrote: > What happened to the shp2tile howto on the Mapserver site? Was there one, that has disappeared? Or are you asking for someone to make one? What are you trying to tile, raster or shapefile data or other? -Steve W From rockwell_001 at YAHOO.COM Tue Jun 20 14:05:42 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Tue, 20 Jun 2006 14:05:42 -0700 Subject: WMS question Message-ID: Hi all, i have a question in WMS, can a polygon be hightlighted in a map in wms server, like can anything be included in the url that makes a certain polygon marked, for example i want the border of the polygon to be highlighted .... i was able to do it in mapscript but was wondering if the same thing can be done in WMS ... one more thing, i am not pretty sure what query layer does in wms ... Thanks for your time kris --------------------------------- Want to be your own boss? Learn how on Yahoo! Small Business. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Tue Jun 20 14:17:12 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 20 Jun 2006 16:17:12 -0500 Subject: MapServer Users in France Message-ID: Any chance of a english translation or at least an executive summary? Steve >>> Mathieu Coudert 6/20/2006 5:24:14 AM >>> Hi list, The result of a survey about Mapserver Users in France is now available here: http://www.silatitudes.com/documents/Enquete_MapServer_SILAT_2006.pdf The survey carried out by a team of French student. The report is in French. Bye, Mathieu -- 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 tkirstine at JDBARNES.COM Tue Jun 20 14:29:18 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Tue, 20 Jun 2006 17:29:18 -0400 Subject: shp2tile In-Reply-To: <44985E2F.3060500@swoodbridge.com> Message-ID: Steve, I believe there was some reference material on the shp2tile utility on the mapserver site. I thought it was located in the "Utility Programs" section http://mapserver.gis.umn.edu/docs/reference/utilityreference/referencemanual _view I was going to attempt to tile out a large shpfile. Travis -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Tuesday, June 20, 2006 4:45 PM To: Travis Kirstine GIS Tech Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] shp2tile Travis Kirstine GIS Tech wrote: > What happened to the shp2tile howto on the Mapserver site? Was there one, that has disappeared? Or are you asking for someone to make one? What are you trying to tile, raster or shapefile data or other? -Steve W From jpintodacosta at GMAIL.COM Tue Jun 20 15:02:09 2006 From: jpintodacosta at GMAIL.COM (Joaquim Pinto da Costa) Date: Tue, 20 Jun 2006 23:02:09 +0100 Subject: What's the catch with ROSA on Windows client PCs In-Reply-To: <20a4d1220606201016p450c3dfdqdea4128d2ef903d7@mail.gmail.com> Message-ID: Thanks guys it's working Has I told you before I wasn't very scientific but my guidelines are download MS JAVA VM, then the latest version of JAVA, then make sure that in the settings is MS JIT that is running JAVA and not JRE. I hope this can help others, if there is a next time I'll try to have a more scientific approach. On my way to Rome now and able to make the intended presentation. UF... Joaquim From kenlord at GMAIL.COM Tue Jun 20 15:18:19 2006 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 20 Jun 2006 15:18:19 -0700 Subject: What's the catch with ROSA on Windows client PCs In-Reply-To: <20a4d1220606201502t343af028h81bb64be8d49e0fd@mail.gmail.com> Message-ID: ... Just keep in mind that Microsoft no longer distributes their JVM as of a couple years ago, and encourages all customers to migrate away from existing installations of the MSJVM. http://www.microsoft.com/mscorp/java/ However, they still 'support' their JVM against security issues until the end of 2007. And, for our next trick, if you want to use the deprecated MSJVM to fix this old Rosa issue, how do you convince all the Internet Explorer users in your audience to install the fix? And for the record, Internet Explorer 7 Beta 2 also exhibits the Rosa problem. Cheers, Ken Lord Vancouver BC On 6/20/06, Joaquim Pinto da Costa wrote: > Thanks guys it's working > > Has I told you before I wasn't very scientific but my guidelines are > download MS JAVA VM, then the latest version of JAVA, then make sure > that in the settings is MS JIT that is running JAVA and not JRE. > > I hope this can help others, if there is a next time I'll try to have > a more scientific approach. > > On my way to Rome now and able to make the intended presentation. > > UF... > Joaquim > From Bonnie.Stewart at DLI.WA.GOV.AU Tue Jun 20 17:52:26 2006 From: Bonnie.Stewart at DLI.WA.GOV.AU (Bonnie Stewart) Date: Wed, 21 Jun 2006 08:52:26 +0800 Subject: WMS Spatio temporal search Message-ID: I spent a little while playing with a TIME filtered WMS which I connected to from ArcGIS, which doesn't support the TIME parameter - I ended up setting up a little ASP script to append my default TIME parameter onto the WMS request that ArcGIS sends. If you're interested in going down that path I can give you details of the script - it's not particularly fancy though :) Bonnie __________________________________ Bonnie Stewart Research Officer Satellite Remote Sensing Services Information Access Division Department of Land Information 65 Brockway Road, FLOREAT WA 6014 Ph. (08) 9387 0342 | Fx. (08) 9383 7142 bonnie.stewart at dli.wa.gov.au www.dli.wa.gov.au ________________________________ From: UMN MapServer Users List on behalf of Denis Nadeau Sent: Wed 21/06/2006 1:58 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] WMS Spatio temporal search Hi, I followed the instruction to set TIME and SPATIAL search from this URL. http://mapserver.gis.umn.edu/docs/howto/WCSServerFormatHowTo The Filter with TIME parameter works fine. My problem is that NASA ESG portal (http://esg.gsfc.nasa.gov/) does not set the &TIME parameter in its QUERY_STRING (File-Load View-OGC WMS Server). The results is a blank image I want to find a way to set a default value for the TIME parameter. Regards, Denis ----------------- .map file LAYER NAME 'time_idx' TYPE TILEINDEX DATA "/local/tools/gdaac/TS2/www/maptest/data/AIRS/testindex.shp" FILTERITEM 'TIME' #This work!!! FILTER '%TIME%' END LAYER NAME "AIRSRGB" TYPE RASTER STATUS DEFAULT DEBUG ON TILEINDEX "time_idx" TILEITEM "location" EXTENT -180.0 -90.0 180.0 90.0 DUMP TRUE PROJECTION "init=epsg:4326" ##recommended END METADATA wms_title "Aqua AIRS Visible/NIR False Color Composite, 10 km resolution, registered" ##required wms_extent "-180 -90 180 190" END CLASS NAME "VBRADLEGEND" KEYIMAGE "/datapool/OPS/user/services/cronproc/global_browse/ogc_registered/AIRVBRAD.003.20060508.day.legend.jpg" DEBUG ON END END # Layer 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 m.coudert at OIEAU.FR Wed Jun 21 00:37:49 2006 From: m.coudert at OIEAU.FR (Mathieu Coudert) Date: Wed, 21 Jun 2006 09:37:49 +0200 Subject: MapServer Users in France In-Reply-To: Message-ID: I don't know Steve but you can ask to this mail if they plan to do it... webmaster at silatitudes.com Mathieu -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Steve Lime Envoy??: mardi 20 juin 2006 23:17 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: Re: [UMN_MAPSERVER-USERS] MapServer Users in France Any chance of a english translation or at least an executive summary? Steve >>> Mathieu Coudert 6/20/2006 5:24:14 AM >>> Hi list, The result of a survey about Mapserver Users in France is now available here: http://www.silatitudes.com/documents/Enquete_MapServer_SILAT_2006.pdf The survey carried out by a team of French student. The report is in French. Bye, Mathieu -- 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. -- 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 vulukut at TESCILTURK.COM Wed Jun 21 05:09:07 2006 From: vulukut at TESCILTURK.COM (Volkan Ulukut) Date: Wed, 21 Jun 2006 15:09:07 +0300 Subject: STYLEITEM with MySQL possible? Message-ID: Hey List; I'm trying to get the style of each feature from my datasource (MySQL). More specifically i got one column on my shape table named "Category" and i need to show symbols according to that category. e.g 'anchor.png' for Port category, 'cross.png' for Hospital category etc. I've tried using: STYLEITEM "Category" But i guess it's not impelemented right now. Is there any other way to give each feature in a layer different symbols? Well there is always CLASSITEM but i wish to be able to add symbols dynamically (without touching the .map file) with MySQL. Also I remember reading somewhere that there are a limit of 64 for symbols in a .sym file. Is this true for symbols in .map file? -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Wed Jun 21 05:27:12 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Wed, 21 Jun 2006 14:27:12 +0200 Subject: Problem: MS4W1.5.3 with Oracle 9i Message-ID: Hi guys, I've been working on this topic for almost two weeks, and I still can not get it work. In last two days, Fernando Simon has helped me a lot to solve this problem, Simon, thank you, I really appreciate it. With his help I stepped forward to solve this problem, but I still can not get it work. according to Fernando Simon's suggestion I made the test with the command: C:\ms4w> mapserv.exe"QUERY_STRING=localhost/cgi-bin/mapserv.exe?&mode=map&map=C:\ms4w\apps\Demo\OracleTest.map" , and I get the map image successfully. In the OracleTest.map mapfile, two oracle layers are defined, one with native oracle suppport, one with OGR OCI interface. tests with the command mapserv -v and ogrinfo --formats indicate that oracle spatial and OCI are supported. with the "ogrinfo OCI:XX/XX at XXXX" command is also no problem to access the the oracle database, I can even use ogr2ogr command to convert the oracle spatial layer to ESRI Shapefile. but the problem is, if I am trying to access the oracle spatial database in web browse, an Internal Server Error is returned instead of the map image. i really can not figure out what the problem is. thanks for any ideas to solve this problem. zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kenton_Williams at UMIT.MAINE.EDU Wed Jun 21 05:37:08 2006 From: Kenton_Williams at UMIT.MAINE.EDU (Kenton Williams) Date: Wed, 21 Jun 2006 08:37:08 -0400 Subject: installing hostgis In-Reply-To: <001201c6946d$a2366de0$391b9386@5127D> Message-ID: Hello, I installed both version 3.5 and 3.6 on a test server I use. I didn't try to install it alongside anything else - I just formatted the hard drive since it's a test machine. I found the installation very quick and it worked great immediately. Version 3.6 is definitely an improvement (PHP5 included), although my computer's CD drive wouldn't boot off of the CD created from the downloadable ISO. I ended up needing to make a boot floppy to install it, which isn't difficult. My test server is a very odd machine that many distros don't work well on (because of their GUIs). While I have abandoned HGL for the time being for Fedora Core 5, if I were setting up a dedicated internet map server where a GUI is not wanted, I'd definitely go for HostGIS Linux. I did want a GUI so I could fiddle with other software like QGIS and GRASS, hence the switch. Kenton W. From bartvde at XS4ALL.NL Wed Jun 21 05:39:56 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 21 Jun 2006 14:39:56 +0200 Subject: Problem: MS4W1.5.3 with Oracle 9i In-Reply-To: <2534c4120606210527k57c896d3u939f0a34d9b6a165@mail.gmail.com> Message-ID: Are there any environment variables which are not passed on to the CGI but are available in a DOS window? For instance how have you added the Oracle client bin directory to the Windows PATH? You also need to do this in Apache's httpd.conf using SetEnv and after that restart apache. Best regards, Bart > Hi guys, > > I've been working on this topic for almost two weeks, and I still can not > get it work. In last two days, Fernando Simon has helped me a lot to solve > this problem, Simon, thank you, I really appreciate it. With his help I > stepped forward to solve this problem, but I still can not get it work. > > according to Fernando Simon's suggestion I made the test with the command: > > C:\ms4w> > mapserv.exe"QUERY_STRING=localhost/cgi-bin/mapserv.exe?&mode=map&map=C:\ms4w\apps\Demo\OracleTest.map" > , > > and I get the map image successfully. In the OracleTest.map mapfile, two > oracle layers are defined, one with native oracle suppport, one with OGR > OCI > interface. > > tests with the command mapserv -v and ogrinfo --formats indicate that > oracle > spatial and OCI are supported. with the "ogrinfo OCI:XX/XX at XXXX" command > is > also no problem to access the the oracle database, I can even use ogr2ogr > command to convert the oracle spatial layer to ESRI Shapefile. > > but the problem is, if I am trying to access the oracle spatial database > in > web browse, an Internal Server Error is returned instead of the map image. > i > really can not figure out what the problem is. > > thanks for any ideas to solve this problem. > > zhonghai > From zhonghaiw at GMAIL.COM Wed Jun 21 07:32:15 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Wed, 21 Jun 2006 16:32:15 +0200 Subject: Problem: MS4W1.5.3 with Oracle 9i In-Reply-To: <22934.145.50.39.8.1150893596.squirrel@webmail.xs4all.nl> Message-ID: Hi there, I've found the problem: permission in apache. if I start the Apache using apache-install.bat or apache-restart.bat, the user name in the taskmanager for Apache process will be automatically set as SYSTEM, which is not my user name, my user name is ZWA. If I change this user name manually, MapServer works perfect with the oracle spatial support. if I start the apache again, I must set the user name manually again back to ZWA. Is there any solution to set this globally? thanks for any ideas zhonghai On 6/21/06, Bart van den Eijnden (OSGIS) wrote: > > Are there any environment variables which are not passed on to the CGI but > are available in a DOS window? For instance how have you added the Oracle > client bin directory to the Windows PATH? > > You also need to do this in Apache's httpd.conf using SetEnv and after > that restart apache. > > Best regards, > Bart > > > Hi guys, > > > > I've been working on this topic for almost two weeks, and I still can > not > > get it work. In last two days, Fernando Simon has helped me a lot to > solve > > this problem, Simon, thank you, I really appreciate it. With his help I > > stepped forward to solve this problem, but I still can not get it work. > > > > according to Fernando Simon's suggestion I made the test with the > command: > > > > C:\ms4w> > > mapserv.exe > "QUERY_STRING=localhost/cgi-bin/mapserv.exe?&mode=map&map=C:\ms4w\apps\Demo\OracleTest.map" > > , > > > > and I get the map image successfully. In the OracleTest.map mapfile, two > > oracle layers are defined, one with native oracle suppport, one with OGR > > OCI > > interface. > > > > tests with the command mapserv -v and ogrinfo --formats indicate that > > oracle > > spatial and OCI are supported. with the "ogrinfo OCI:XX/XX at XXXX" command > > is > > also no problem to access the the oracle database, I can even use > ogr2ogr > > command to convert the oracle spatial layer to ESRI Shapefile. > > > > but the problem is, if I am trying to access the oracle spatial database > > in > > web browse, an Internal Server Error is returned instead of the map > image. > > i > > really can not figure out what the problem is. > > > > thanks for any ideas to solve this problem. > > > > zhonghai > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Wed Jun 21 08:54:54 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 21 Jun 2006 17:54:54 +0200 Subject: WMS question In-Reply-To: <20060620210542.53907.qmail@web34210.mail.mud.yahoo.com> Message-ID: This can be accomplished using SLD. In a WMS GetMap request you can add an inline SLD using the SLD_BODY parameter, or use the SLD parameter to point to a URL pointing to the actual SLD XML document. The Chameleon ExpressionBuilder widget has some code to do this or check out: http://mapserver.gis.umn.edu/docs/howto/sldhowto/?searchterm=SLD If a WMS layer is queryable, you can perform a WMS GetFeatureInfo request against it using an X and Y value in pixels, which can return a plain text, HTML or GML document. Best regards, Bart rock well wrote: > Hi all, i have a question in WMS, can a polygon be hightlighted in a > map in wms server, like can anything be included in the url that makes > a certain polygon marked, for example i want the border of the polygon > to be highlighted .... i was able to do it in mapscript but was > wondering if the same thing can be done in WMS ... > > one more thing, i am not pretty sure what query layer does in wms ... > > Thanks for your time > kris > > Want to be your own boss? Learn how on Yahoo! Small Business. > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From rockwell_001 at YAHOO.COM Wed Jun 21 10:20:15 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Wed, 21 Jun 2006 10:20:15 -0700 Subject: WMS question In-Reply-To: <44996BCE.3030407@xs4all.nl> Message-ID: Thanks for your reply bart, i am going to try this and let you know ... Once again thanks ...... "Bart van den Eijnden (OSGIS)" wrote: This can be accomplished using SLD. In a WMS GetMap request you can add an inline SLD using the SLD_BODY parameter, or use the SLD parameter to point to a URL pointing to the actual SLD XML document. The Chameleon ExpressionBuilder widget has some code to do this or check out: http://mapserver.gis.umn.edu/docs/howto/sldhowto/?searchterm=SLD If a WMS layer is queryable, you can perform a WMS GetFeatureInfo request against it using an X and Y value in pixels, which can return a plain text, HTML or GML document. Best regards, Bart rock well wrote: > Hi all, i have a question in WMS, can a polygon be hightlighted in a > map in wms server, like can anything be included in the url that makes > a certain polygon marked, for example i want the border of the polygon > to be highlighted .... i was able to do it in mapscript but was > wondering if the same thing can be done in WMS ... > > one more thing, i am not pretty sure what query layer does in wms ... > > Thanks for your time > kris > > Want to be your own boss? Learn how on Yahoo! Small Business. > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------------------------------- Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. -------------- next part -------------- An HTML attachment was scrubbed... URL: From xavier.mauclaire at GEOTER.FR Wed Jun 21 12:30:48 2006 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Wed, 21 Jun 2006 21:30:48 +0200 Subject: Mapscript ,Mono, Apache and Linux : a great story In-Reply-To: Message-ID: Tamas Do you think i may install an older version of mapserver, the 4.8.0 or other one ? I'm very annoyed regards ----------------------------------------- Xavier Mauclaire ------------------------------------------------------- -----Message d'origine----- De : Tamas Szekeres [mailto:szekerest at gmail.com] Envoy? : vendredi 16 juin 2006 15:57 ? : Xavier Mauclaire Cc : MAPSERVER-USERS at lists.umn.edu Objet : Re: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : a great story Xavier, > All the layerObj object i use in my program are d?clared in the > mapfile so i don't need to create layerObj from scratch using the constructor. > When you say that if a layerObj reference with a previously released > native memory segment, it may causing the error, what are the > consequences for my code ? Using the Dispose method is there the > solution to avoid this problem ? Most of the mapscript classes implement the IDisposable interface since they maintain unmanaged memory segments. It is a good practice to explicitly call Dispose (or by the using directive) if a newly created object is not needed any more. However you might want to maintain the mapObj reference for a longer period and the disposing will occur during the program destruction. Getting an existing object reference (eg. as returned by GetLayerByName) does not create a new object, so calling dispose is not needed. All of the objects internally maintain a flag indicating if it should free the internal memory during the finalization. So calling Dispose in the previous case might also not cause any problems. So you may not have to take care much of these issues the existing problems may dedicated to unproper handling of this reference and considered to be fixed. However it is not so easy to locate the reason of the problem since the crash will be slipped out on a subsequent finalization or the program termination. > > How can i get CVS code ? http://mapserver.gis.umn.edu/development/cvs/ using Tortoise CVS is fairly straightforward. > Why this code works well under windows and scratches under linux ? You may use different frameworks and CRT libraries. The problem may still exists but not manifested. Tamas From szekerest at GMAIL.COM Wed Jun 21 13:23:56 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 21 Jun 2006 22:23:56 +0200 Subject: Mapscript ,Mono, Apache and Linux : a great story In-Reply-To: Message-ID: Xavier, I would assure you i am keen to look for a fix for your issue. This problem was reported for java as well. I was dealing with mostly by reviewing your code so far, but it seems i shall have to set up a proper evironment to reproduce this problem. Unfortunately i didn't have enough time to realize it. Please confirm me about the followings i know about this issue is true: 1. The problem is manifested with the mono runtime using linux/apache with mod_mono 2. The problem is systematic and occurs every time when calling pLayerParcelle.getFeature in localiser_parcelle on a postgis layer (after excluding the code i have mentioned) How did you use your application to get this problem out? Would it be possible to make a simple test application that produces the same behaviour? It would be useful make a conversation about it on the mapserver IRC for example. Thanks, Tamas -----Original Message----- From: Xavier Mauclaire [mailto:xavier.mauclaire at geoter.fr] Sent: Wednesday, June 21, 2006 9:31 PM To: 'Tamas Szekeres' Cc: MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : a great story Tamas Do you think i may install an older version of mapserver, the 4.8.0 or other one ? I'm very annoyed regards ----------------------------------------- Xavier Mauclaire ------------------------------------------------------- -----Message d'origine----- De : Tamas Szekeres [mailto:szekerest at gmail.com] Envoy? : vendredi 16 juin 2006 15:57 ? : Xavier Mauclaire Cc : MAPSERVER-USERS at lists.umn.edu Objet : Re: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : a great story Xavier, > All the layerObj object i use in my program are d?clared in the > mapfile so i don't need to create layerObj from scratch using the constructor. > When you say that if a layerObj reference with a previously released > native memory segment, it may causing the error, what are the > consequences for my code ? Using the Dispose method is there the > solution to avoid this problem ? Most of the mapscript classes implement the IDisposable interface since they maintain unmanaged memory segments. It is a good practice to explicitly call Dispose (or by the using directive) if a newly created object is not needed any more. However you might want to maintain the mapObj reference for a longer period and the disposing will occur during the program destruction. Getting an existing object reference (eg. as returned by GetLayerByName) does not create a new object, so calling dispose is not needed. All of the objects internally maintain a flag indicating if it should free the internal memory during the finalization. So calling Dispose in the previous case might also not cause any problems. So you may not have to take care much of these issues the existing problems may dedicated to unproper handling of this reference and considered to be fixed. However it is not so easy to locate the reason of the problem since the crash will be slipped out on a subsequent finalization or the program termination. > > How can i get CVS code ? http://mapserver.gis.umn.edu/development/cvs/ using Tortoise CVS is fairly straightforward. > Why this code works well under windows and scratches under linux ? You may use different frameworks and CRT libraries. The problem may still exists but not manifested. Tamas -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 2006.06.21. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 2006.06.21. From xavier.mauclaire at GEOTER.FR Wed Jun 21 14:18:41 2006 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Wed, 21 Jun 2006 23:18:41 +0200 Subject: Mapscript ,Mono, Apache and Linux : a great story In-Reply-To: <4499aadf.393c4406.4f6b.ffffc1a2@mx.gmail.com> Message-ID: My configuration is the following Mono (1.1.13) gtk 2.8 Apache (2.2.?) with de mod_mono compiled for it mod_mono 1.1.14 MApscript (4.8.3). Postgres 8.1.3 and Postgis 1.1.1 Geos 2.2.1 GDAL 1.3.1 Ming 0.30 Proj4 (4.4.9) Libiconv 1.9.1 gd-2.0.33 All these programs has been compiler on the computer Mapserver has been compiled with the configure : ./configure --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-postgis=/usr/local/pgsql/bin/pg_config --with-ming --with-png --with-jpeg --with-zlib --with-tiff --with-geos=/usr/local/bin/geos-config --with-gif --with-proj --with-gd=/usr/local --with-httpd=/usr/sbin/httpd2 At The question : 1. The problem is manifested with the mono runtime using linux/apache with mod_mono : YES At The question : 2. The problem is systematic and occurs every time when calling pLayerParcelle.getFeature in localiser_parcelle on a postgis layer (after excluding the code i have mentioned) : I did not include your code at this time because (if i understood your last email, the modification was about the dynamic creation of LayerObjet object. My last answer was about this. I wrote that i disabled the function to make a test and i prodcued the same error with the getfeature Do you want that i make the test? Most of the error are on the getfeature function but not all. At The question : How did you use your application to get this problem out? I get the problem when i'm connecting to the web site with my browser At The question : Would it be possible to make a simple test application that produces the same behaviour? I can make an mono console application that create mapserver output file and test the result regards ----------------------------------------- Xavier Mauclaire ------------------------------------------------------- -----Message d'origine----- De : Tamas Szekeres [mailto:szekerest at gmail.com] Envoy? : mercredi 21 juin 2006 22:24 ? : 'Xavier Mauclaire' Cc : MAPSERVER-USERS at lists.umn.edu Objet : RE: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : a great story Xavier, I would assure you i am keen to look for a fix for your issue. This problem was reported for java as well. I was dealing with mostly by reviewing your code so far, but it seems i shall have to set up a proper evironment to reproduce this problem. Unfortunately i didn't have enough time to realize it. Please confirm me about the followings i know about this issue is true: 1. The problem is manifested with the mono runtime using linux/apache with mod_mono 2. The problem is systematic and occurs every time when calling pLayerParcelle.getFeature in localiser_parcelle on a postgis layer (after excluding the code i have mentioned) How did you use your application to get this problem out? Would it be possible to make a simple test application that produces the same behaviour? It would be useful make a conversation about it on the mapserver IRC for example. Thanks, Tamas -----Original Message----- From: Xavier Mauclaire [mailto:xavier.mauclaire at geoter.fr] Sent: Wednesday, June 21, 2006 9:31 PM To: 'Tamas Szekeres' Cc: MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : a great story Tamas Do you think i may install an older version of mapserver, the 4.8.0 or other one ? I'm very annoyed regards ----------------------------------------- Xavier Mauclaire ------------------------------------------------------- -----Message d'origine----- De : Tamas Szekeres [mailto:szekerest at gmail.com] Envoy? : vendredi 16 juin 2006 15:57 ? : Xavier Mauclaire Cc : MAPSERVER-USERS at lists.umn.edu Objet : Re: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : a great story Xavier, > All the layerObj object i use in my program are d?clared in the > mapfile so i don't need to create layerObj from scratch using the constructor. > When you say that if a layerObj reference with a previously released > native memory segment, it may causing the error, what are the > consequences for my code ? Using the Dispose method is there the > solution to avoid this problem ? Most of the mapscript classes implement the IDisposable interface since they maintain unmanaged memory segments. It is a good practice to explicitly call Dispose (or by the using directive) if a newly created object is not needed any more. However you might want to maintain the mapObj reference for a longer period and the disposing will occur during the program destruction. Getting an existing object reference (eg. as returned by GetLayerByName) does not create a new object, so calling dispose is not needed. All of the objects internally maintain a flag indicating if it should free the internal memory during the finalization. So calling Dispose in the previous case might also not cause any problems. So you may not have to take care much of these issues the existing problems may dedicated to unproper handling of this reference and considered to be fixed. However it is not so easy to locate the reason of the problem since the crash will be slipped out on a subsequent finalization or the program termination. > > How can i get CVS code ? http://mapserver.gis.umn.edu/development/cvs/ using Tortoise CVS is fairly straightforward. > Why this code works well under windows and scratches under linux ? You may use different frameworks and CRT libraries. The problem may still exists but not manifested. Tamas -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 2006.06.21. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 2006.06.21. From szekerest at GMAIL.COM Wed Jun 21 14:36:54 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 21 Jun 2006 23:36:54 +0200 Subject: Mapscript ,Mono, Apache and Linux : a great story In-Reply-To: Message-ID: >I did not include your code at this time because (if i understood your last >email, the modification was about the dynamic creation of LayerObjet >object. >My last answer was about this. I wrote that i disabled the function to make >a test and i prodcued the same error with the getfeature >Do you want that i make the test? >Most of the error are on the getfeature function but not all. Xavier, If you aren't using dynamically created layerObj classObj and styleObj with a parent object given in the constructor that change is not to be made. >I get the problem when i'm connecting to the web site with my browser You have several aspx files, what is the URL you are using? >I can make an mono console application that create mapserver output file and >test the result That would make the things much more easier. Best Regards, Tamas -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 2006.06.21. From xavier.mauclaire at GEOTER.FR Wed Jun 21 15:12:26 2006 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Thu, 22 Jun 2006 00:12:26 +0200 Subject: Mapscript ,Mono, Apache and Linux : a great story Message-ID: I'm going to use the dynamic layer so i'm going to update the source what about installing the 4.6 version of mapserver on the linux server ? The server scratches when i want to create a information form. This form is launch by the flash program. It uses the web getparcellereglement.aspx (client data(xml) are send using POST method) This verb is managed by the GetParcelleReglement.cs class. This class initializes mapserver and computes data. Finally it redirects to parcellereglement.aspx to display informations. I installed gaim to have discussion and i' connecting to the mapserver forum. my alias is xavier34 regards ----------------------------------------- Xavier Mauclaire Ing?nieur Informaticien GEOTER SAS 3, rue Jean Monnet 34830 Clapiers France T?l.: +33 (0)4.67.59.18.11 Fax: +33 (0)4.67.59.18.24 Email: xavier.mauclaire at geoter.fr Web site: http://www.geoter.fr ------------------------------------------------------- -----Message d'origine----- De : Tamas Szekeres [mailto:szekerest at gmail.com] Envoy? : mercredi 21 juin 2006 23:37 ? : 'Xavier Mauclaire' Cc : MAPSERVER-USERS at lists.umn.edu Objet : RE: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : a great story >I did not include your code at this time because (if i understood your >last email, the modification was about the dynamic creation of >LayerObjet object. >My last answer was about this. I wrote that i disabled the function to >make a test and i prodcued the same error with the getfeature Do you >want that i make the test? >Most of the error are on the getfeature function but not all. Xavier, If you aren't using dynamically created layerObj classObj and styleObj with a parent object given in the constructor that change is not to be made. >I get the problem when i'm connecting to the web site with my browser You have several aspx files, what is the URL you are using? >I can make an mono console application that create mapserver output >file and >test the result That would make the things much more easier. Best Regards, Tamas -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 2006.06.21. From rockwell_001 at YAHOO.COM Wed Jun 21 15:17:46 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Wed, 21 Jun 2006 15:17:46 -0700 Subject: WMS question In-Reply-To: <44996BCE.3030407@xs4all.nl> Message-ID: Hi Bart, i am trying to use sld_body to specifiy the path of the localurl for the xml file, but i get a blank image, i didnt really get the concept of how to write an xml file and then send it through the sld_body tag, can you suggest me with a real time example where a clear description is given as to how to specify the map file in the xml ... well i guess i might have understood something wrong, but can you/anyone suggest me ... i cut down my xml file to the following lines as i dont know what other lines mean Layer Name Thanks for your time kris "Bart van den Eijnden (OSGIS)" wrote: This can be accomplished using SLD. In a WMS GetMap request you can add an inline SLD using the SLD_BODY parameter, or use the SLD parameter to point to a URL pointing to the actual SLD XML document. The Chameleon ExpressionBuilder widget has some code to do this or check out: http://mapserver.gis.umn.edu/docs/howto/sldhowto/?searchterm=SLD If a WMS layer is queryable, you can perform a WMS GetFeatureInfo request against it using an X and Y value in pixels, which can return a plain text, HTML or GML document. Best regards, Bart rock well wrote: > Hi all, i have a question in WMS, can a polygon be hightlighted in a > map in wms server, like can anything be included in the url that makes > a certain polygon marked, for example i want the border of the polygon > to be highlighted .... i was able to do it in mapscript but was > wondering if the same thing can be done in WMS ... > > one more thing, i am not pretty sure what query layer does in wms ... > > Thanks for your time > kris > > Want to be your own boss? Learn how on Yahoo! Small Business. > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------------------------------- Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. -------------- next part -------------- An HTML attachment was scrubbed... URL: From karrarm at YAHOO.COM Wed Jun 21 17:21:34 2006 From: karrarm at YAHOO.COM (ramesh karra) Date: Wed, 21 Jun 2006 17:21:34 -0700 Subject: dl(): Unable to load dynamic library Message-ID: Hi, I have been using mapserver + kaMap successfully in windows environment for some time. Now, I am in the process of moving this to Linux environment. Since the Linux box is already running Apache server, I did not choose to install the rpm/fgs. Instead I have manually copied the files. Now, I am getting the following error dl(): Unable to load dynamic library './php_mapscript_4.8.2.so' - libmap.so.4.8.2: cannot open shared object file: No such file or directory in /users/krm/htdocs/init.php on line 106 Fatal error: Call to undefined function: ms_newmapobj() in /users/krm/htdocs/init.php line 113 I'd really appreciate any help in resolving this. Thanks Ramesh __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From ollerery at ENGR.ORST.EDU Wed Jun 21 17:15:06 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Wed, 21 Jun 2006 17:15:06 -0700 Subject: undefined symbol: _zval_dtor In-Reply-To: Message-ID: When trying to install mapserver on fedora core 5 i am getting the following error: [Wed Jun 21 16:50:18 2006] [error] [client 137.78.178.173] PHP Warning: dl() [function.dl]: Unable to load dynamic library '/usr/lib/php/modules/php_mapscript.so' - /usr/lib/php/modules/php_mapscript.so: undefined symbol: _zval_dtor in /usr/local/gmap-ms46/htdocs/phpinfo_mapscript.phtml on line 30, referer: http://neuron/gmap-ms46/htdocs/ any help would be greatly appreciated. From m.meier at SPIEKERMANN.DE Wed Jun 21 20:46:51 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Thu, 22 Jun 2006 05:46:51 +0200 Subject: dl(): Unable to load dynamic library In-Reply-To: <20060622002134.41620.qmail@web35703.mail.mud.yahoo.com> Message-ID: Hi, did you do 'ldconfig' after copying the shared libraries, so that the cache is rebuilt? Manfred ramesh karra schrieb: > Hi, > > I have been using mapserver + kaMap successfully in > windows environment for some time. > > Now, I am in the process of moving this to Linux > environment. Since the Linux box is already running > Apache server, I did not choose to install the > rpm/fgs. Instead I have manually copied the files. > > Now, I am getting the following error > > dl(): Unable to load dynamic library > './php_mapscript_4.8.2.so' - libmap.so.4.8.2: cannot > open shared object file: No such file or directory in > > /users/krm/htdocs/init.php on line 106 > > Fatal error: Call to undefined function: > ms_newmapobj() in /users/krm/htdocs/init.php line 113 > > I'd really appreciate any help in resolving this. > > Thanks > Ramesh > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > From karrarm at YAHOO.COM Wed Jun 21 21:04:46 2006 From: karrarm at YAHOO.COM (ramesh karra) Date: Wed, 21 Jun 2006 21:04:46 -0700 Subject: dl(): Unable to load dynamic library In-Reply-To: <449A12AB.7070700@spiekermann.de> Message-ID: No. I did not. Do you mean that I should add my library path to /etc/ld.so.conf and then do 'ldconfig'? What if I do not have the superuser permissions? Ramesh --- Manfred Meier wrote: > Hi, did you do 'ldconfig' after copying the shared > libraries, so that > the cache is rebuilt? > > Manfred > > ramesh karra schrieb: > > Hi, > > > > I have been using mapserver + kaMap successfully > in > > windows environment for some time. > > > > Now, I am in the process of moving this to Linux > > environment. Since the Linux box is already > running > > Apache server, I did not choose to install the > > rpm/fgs. Instead I have manually copied the files. > > > > Now, I am getting the following error > > > > dl(): Unable to load dynamic library > > './php_mapscript_4.8.2.so' - libmap.so.4.8.2: > cannot > > open shared object file: No such file or > directory in > > > > /users/krm/htdocs/init.php on line 106 > > > > Fatal error: Call to undefined function: > > ms_newmapobj() in /users/krm/htdocs/init.php line > 113 > > > > I'd really appreciate any help in resolving this. > > > > Thanks > > Ramesh > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From aaronkoning at GMAIL.COM Wed Jun 21 21:13:02 2006 From: aaronkoning at GMAIL.COM (Aaron Koning) Date: Wed, 21 Jun 2006 21:13:02 -0700 Subject: dl(): Unable to load dynamic library In-Reply-To: <20060622002134.41620.qmail@web35703.mail.mud.yahoo.com> Message-ID: "No such file or directory..." -> PHP can't find the library. Where is the file php_mapscript_4.8.2.so located in your filesystem? Is it in the PHP extensions directory? You can determine the location of this directory using the phpinfo() function: Put the php_mapscript_4.8.2.so file in the extensions directory and it should at least find the file. Aaron On 6/21/06, ramesh karra wrote: > > Hi, > > I have been using mapserver + kaMap successfully in > windows environment for some time. > > Now, I am in the process of moving this to Linux > environment. Since the Linux box is already running > Apache server, I did not choose to install the > rpm/fgs. Instead I have manually copied the files. > > Now, I am getting the following error > > dl(): Unable to load dynamic library > './php_mapscript_4.8.2.so' - libmap.so.4.8.2: cannot > open shared object file: No such file or directory in > > /users/krm/htdocs/init.php on line 106 > > Fatal error: Call to undefined function: > ms_newmapobj() in /users/krm/htdocs/init.php line 113 > > I'd really appreciate any help in resolving this. > > Thanks > Ramesh > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > -- +-------------------------------------------- | 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 m.meier at SPIEKERMANN.DE Wed Jun 21 21:17:09 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Thu, 22 Jun 2006 06:17:09 +0200 Subject: dl(): Unable to load dynamic library In-Reply-To: <20060622040446.28425.qmail@web35703.mail.mud.yahoo.com> Message-ID: Hello, I'm not a real system administrator, so i know only little about that. Some days ago i had a similar problem. To solve it, i copied the libraries in question to a dir which is known to the system, e.g. /usr/local/lib. Then i did 'ldconfig'. I did not alter the /etc/ld.so.conf. Manfred ramesh karra schrieb: > No. I did not. > Do you mean that I should add my library path to > /etc/ld.so.conf and then do 'ldconfig'? > > What if I do not have the superuser permissions? > > Ramesh > > --- Manfred Meier wrote: > > >>Hi, did you do 'ldconfig' after copying the shared >>libraries, so that >>the cache is rebuilt? >> >>Manfred >> >>ramesh karra schrieb: >> >>>Hi, >>> >>>I have been using mapserver + kaMap successfully >> >>in >> >>>windows environment for some time. >>> >>>Now, I am in the process of moving this to Linux >>>environment. Since the Linux box is already >> >>running >> >>>Apache server, I did not choose to install the >>>rpm/fgs. Instead I have manually copied the files. >>> >>>Now, I am getting the following error >>> >>>dl(): Unable to load dynamic library >>>'./php_mapscript_4.8.2.so' - libmap.so.4.8.2: >> >>cannot >> >>>open shared object file: No such file or >> >>directory in >> >>>/users/krm/htdocs/init.php on line 106 >>> >>>Fatal error: Call to undefined function: >>>ms_newmapobj() in /users/krm/htdocs/init.php line >> >>113 >> >>>I'd really appreciate any help in resolving this. >>> >>>Thanks >>>Ramesh >>> >>>__________________________________________________ >>>Do You Yahoo!? >>>Tired of spam? Yahoo! Mail has the best spam >> >>protection around >> >>>http://mail.yahoo.com >>> >> > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > From Antti.Roppola at BRS.GOV.AU Wed Jun 21 21:23:37 2006 From: Antti.Roppola at BRS.GOV.AU (Antti Roppola) Date: Thu, 22 Jun 2006 14:23:37 +1000 Subject: [UNCLASSIFIED]RE: [UMN_MAPSERVER-USERS] dl(): Unable to load dyna mic library Message-ID: Hi all, You must have root access to alter the linker cache. Without access to root or Apache, pretty much the only option is to use putenv() to set LD_LIBRARY_PATH. In order to do this, you'll need to alter php.ini to allow putenv to set LD_LIBRARY_PATH. I stress that there are serious security issues to ponder before changing this default behaviour. After all, a compromised PHP page could then be used to link against compromised libraries that have been uploaded to the server. My preference would be to try set LD_LIBRARY_PATH in php.ini and see if that works. Antti -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of ramesh karra Sent: Thursday, 22 June 2006 2:05 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] dl(): Unable to load dynamic library No. I did not. Do you mean that I should add my library path to /etc/ld.so.conf and then do 'ldconfig'? What if I do not have the superuser permissions? Ramesh ---------------------------------------------------------------------- IMPORTANT - This message has been issued by The Department of Agriculture, Fisheries and Forestry (DAFF). The information transmitted is for the use of the intended recipient only and may contain confidential and/or legally privileged material. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Any reproduction, publication, communication, re-transmission, disclosure, dissemination or other use of the information contained in this e-mail by persons or entities other than the intended recipient is prohibited. The taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error please notify the sender and delete all copies of this transmission together with any attachments. If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one advise the sender by return e-mail accordingly. Only e-mail correspondence which includes this footer, has been authorised by DAFF ---------------------------------------------------------------------- From mark at PRESLING.COM Wed Jun 21 21:23:06 2006 From: mark at PRESLING.COM (Mark Presling) Date: Thu, 22 Jun 2006 16:23:06 +1200 Subject: Layer priority Message-ID: Hi all. I'm new to the list and a relative newbie to MapServer. I'm having trouble with label priority... I have 3 layers - city, town, populated place and the populated place labels always render in preference to towns and cities, but I want city labels to always render with a higher priority. That is, if MapServer has to decide whether to render a pp label or a city label when they are in the same place I want the city one to be rendered. All I can find on this subject is an email from Stephen Lime in 2001 that said this: "Labels are placed into the cache as layers are processed- they have to be, and then the cache is processed in reverse order so that features in the last layer drawn (i.e. the top layer) are labeled first. I've not had problems with it." However, changing the order of layers in the mapfile doesn't fix it. I'm using WMS to access it, if that makes any difference. Here is what was said on IRC this morning: mrp: try playing with labelcache and postlabelcache in your layer definition you can do a lot to tweak labeling behaviours with those http://mapserver.gis.umn.edu/docs/reference/mapfile/layer Thanks bitnerd. I have tried these, *but I really want the label cache to work as normal so that I don't get overlaps and clutter.* The labels can be quite high density. I just need to be able to prioritise the order they are rendered, but the order in the mapfile doesn't seem to help mrp: Did you change the order of your layers in the .map file or in the WMS request? I'm not sure, but the order of layers in the WMS request may be significant. I am using uDig to access the WMS. Changing the order in .map and uDig don't seem to make a difference If you can see the apache log file, check the order of layers in the action wms and see if they vary. ok, I'll have a look now LAYERS=land,nmcregion,exotic,forest,lake,native,railway,river,riverbed,road,rsrp,town,populatedplace,city LAYERS=land,nmcregion,exotic,forest,lake,native,railway,river,riverbed,road,rsrp,town,city,populatedplace That's the WMS requests... the order of city and pp makes no difference Hmm, I'm out of ideas. they are currently ordered in the mapfile (top to bottom) as city, town, pp. Changing that order around seems to make no difference I just need to know what things I can try or look out for (and what the expected behaviour is). This is with all 3 layers turned on but with "POSTLABELCACHE true" set on the city and town layers: [Damn, the mailing list email size limit is too small for a single screenshot!!! That's not so good is it??] I would expect that because city is at the top of the list the labels would be rendered in the same order of priority. Thanks, Mark -- 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: mark.vcf Type: text/x-vcard Size: 143 bytes Desc: not available URL: From karrarm at YAHOO.COM Wed Jun 21 22:35:20 2006 From: karrarm at YAHOO.COM (ramesh karra) Date: Wed, 21 Jun 2006 22:35:20 -0700 Subject: [UNCLASSIFIED]RE: [UMN_MAPSERVER-USERS] dl(): Unable to load dyna mic library In-Reply-To: <61C2DEA055980B418D063F8646FCAEFC011DBCE6@ACT001CL03EX03.agdaff.gov.au> Message-ID: Thanks Antti! I tried setting LD_LIBRARY_PATH in php.ini and it did not work. If were to have a web-site hosted by some web-hosting company, how can I do it? Obviously, in that case I would have root or apache access. I think my current problem is similar to that. In general, what is the right way to host a web-site using mapserver? Thanks Ramesh --- Antti Roppola wrote: > Hi all, > > You must have root access to alter the linker cache. > > Without access to root or Apache, pretty much the > only option > is to use putenv() to set LD_LIBRARY_PATH. In order > to do this, > you'll need to alter php.ini to allow putenv to set > LD_LIBRARY_PATH. > > I stress that there are serious security issues to > ponder before > changing this default behaviour. After all, a > compromised PHP page > could then be used to link against compromised > libraries that have > been uploaded to the server. > > My preference would be to try set LD_LIBRARY_PATH in > php.ini and see > if that works. > > Antti > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > ramesh karra > Sent: Thursday, 22 June 2006 2:05 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] dl(): Unable to > load dynamic library > > No. I did not. > Do you mean that I should add my library path to > /etc/ld.so.conf and then do 'ldconfig'? > > What if I do not have the superuser permissions? > > Ramesh > > ---------------------------------------------------------------------- > > IMPORTANT - This message has been issued by The > Department of Agriculture, Fisheries and Forestry > (DAFF). The information transmitted is for the use > of the intended recipient only and may contain > confidential and/or legally privileged material. It > is your responsibility to check any attachments for > viruses and defects before opening or sending them > on. > Any reproduction, publication, communication, > re-transmission, disclosure, dissemination or other > use of the information contained in this e-mail by > persons or entities other than the intended > recipient is prohibited. The taking of any action > in reliance upon this information by persons or > entities other than the intended recipient is > prohibited. If you have received this e-mail in > error please notify the sender and delete all copies > of this transmission together with any attachments. > If you have received this e-mail as part of a valid > mailing list and no longer want to receive a message > such as this one advise the sender by return e-mail > accordingly. Only e-mail correspondence which > includes this footer, has been authorised by DAFF > ---------------------------------------------------------------------- > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From bartvde at XS4ALL.NL Wed Jun 21 23:14:03 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 22 Jun 2006 08:14:03 +0200 Subject: WMS question In-Reply-To: <20060621221746.86997.qmail@web34201.mail.mud.yahoo.com> Message-ID: Hi, an example SLD XML for highlighting a selection could be: expressionbuildertempsld OMSCHR Z@ 5 square #ff0000 Note there is some specific stuff (like the query OMSCHR like Z*) in there for my dataset which you need to change. You can put this on a webserver, eg http://localhost/mysld.xml and then use the following in your WMS GetMap request ......&request=GetMap&sld=http://localhost/mysld.xml Best regards, Bart > Hi Bart, i am trying to use sld_body to specifiy the path of the localurl > for the xml file, but i get a blank image, i didnt really get the concept > of how to write an xml file and then send it through the sld_body tag, can > you suggest me with a real time example where a clear description is given > as to how to specify the map file in the xml ... > > well i guess i might have understood something wrong, but can you/anyone > suggest me ... > > i cut down my xml file to the following lines as i dont know what other > lines mean > > > > Layer Name > > > > Thanks for your time > kris > > > "Bart van den Eijnden (OSGIS)" wrote: > This can be accomplished using SLD. In a WMS GetMap request you can add > an inline SLD using the SLD_BODY parameter, or use the SLD parameter to > point to a URL pointing to the actual SLD XML document. > > The Chameleon ExpressionBuilder widget has some code to do this or check > out: > > http://mapserver.gis.umn.edu/docs/howto/sldhowto/?searchterm=SLD > > If a WMS layer is queryable, you can perform a WMS GetFeatureInfo > request against it using an X and Y value in pixels, which can return a > plain text, HTML or GML document. > > Best regards, > Bart > > rock well wrote: > >> Hi all, i have a question in WMS, can a polygon be hightlighted in a >> map in wms server, like can anything be included in the url that makes >> a certain polygon marked, for example i want the border of the polygon >> to be highlighted .... i was able to do it in mapscript but was >> wondering if the same thing can be done in WMS ... >> >> one more thing, i am not pretty sure what query layer does in wms ... >> >> Thanks for your time >> kris >> >> Want to be your own boss? Learn how on Yahoo! Small Business. >> > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > > > --------------------------------- > Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. From marcoscobena at GMAIL.COM Thu Jun 22 00:52:59 2006 From: marcoscobena at GMAIL.COM (=?UTF-8?Q?Marcos_Cobe=C3=B1a?=) Date: Thu, 22 Jun 2006 09:52:59 +0200 Subject: WMS and SRS issue: "Invalid SRS given : SRS must be valid for all requested layers." Message-ID: Hi all, I'm trying to access to a layer made of SHP files, like this one: " # DGIS_12c.map # MAP NAME DGIS STATUS ON SIZE 800 475 # "Huelva, Spain " lat=37.258335, lon=-6.9508333 # EXTENT -180 -90 180 90 # 187889.12817030 4092316.51133811 197493.65136571 4099997.10096501 # 36.258335 -7.9508333 38.258335 -5.9508333 UNITS METERS SHAPEPATH "Data" IMAGECOLOR 255 255 255 IMAGETYPE PNG CONFIG "PROJ_LIB" "C:\Archivos de programa\Apache Software Foundation\Apache2.2\cgi-bin\DGIS\Data\Proj" # "C:\Documents and Settings\Marcos\Escritorio\Temporal\Sistema de Informaci?n Geogr?fica de Do?ana (DGIS)\ms4w_2.0\ms4w\proj\nad" WEB METADATA "wms_title" "Sistema de Informaci?n Geogr?fica de Do?ana (DGIS)" # http://localhost:8080/cgi-bin/DGIS/mapserv.exe?map=DGIS_12c.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities # "wms_onlineresource" "http://localhost:8080/cgi-bin/DGIS/mapserv.exe?map=DGIS_12c.map&" # "wms_srs" "epsg:4326" # "EPSG:4269 EPSG:4326" END END PROJECTION "init=EPSG:42304" END LAYER NAME "12c_linea" TYPE LINE STATUS ON DATA Data/12c/12c_linea CLASS NAME "12c_linea" COLOR 0 0 0 END METADATA "wms_title" "12c_linea" "wms_srs" "EPSG:4326" # "EPSG:4031" "wms_format" "image/png" END END [...] END " , where I've defined a projection ("init=EPSG:42304") and, for each layer, its own SRS ("EPSG:4326"). It works fine, it draws my shape in Canada (as expected with projections used). Once I change main projection to 4030: " # Unknown datum based upon the WGS 84 ellipsoid <4030> +proj=longlat +ellps=WGS84 +no_defs no_defs <> " , the one used in ArcView when shapes were created, I receive those errors: " msWMSLoadGetMapParams(): Invalid SRS given : SRS must be valid for all requested layers. " I've checked if projection file was been found or not, but it was. Does anyone know any hint? Thanks in advance. Regards, -- Marcos - http://www.youcannoteatbits.org From sdc at SDC.COM.AU Thu Jun 22 00:32:54 2006 From: sdc at SDC.COM.AU (Stephen Davies) Date: Thu, 22 Jun 2006 17:02:54 +0930 Subject: Comments in generated JPEGs Message-ID: My latest addition to my Mapserver application is a 3G phone interface. However, it seems that at least the Motorola 3vx phone cannot handle comments in JPEG images. The images generated by Mapserver/gd have the comment: CREATOR:gd-jpeg V1.0 (using IJG JPEG v62), quality=80 and the phone refuses to display them. If I manually remove the comment with gimp, the images display perfectly. Does anybody know how to stop Mapserver/gd from including the comment? Cheers and thanks, 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 C.Wilmes at GMX.DE Thu Jun 22 02:46:59 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Thu, 22 Jun 2006 11:46:59 +0200 Subject: c#-mapscript: Problem first time calling Map.draw(), numLayers gets one bigger Message-ID: Hi, if I'm calling the first time Map.draw(), the mapObj-Attribute numLayers gets raised itself from 0 to 1, 1 to 2, 2 to 3. The next times I'calling Map.draw() nothig happens with the numLayers-Attribut. I testet it with that 3 cases. What could be the reason for that curious behaviour? Best Regards Christian -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From zhonghaiw at GMAIL.COM Thu Jun 22 02:47:50 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Thu, 22 Jun 2006 11:47:50 +0200 Subject: begin with C# MapScript Message-ID: Hi ALL, with the help from this mailing list I am going to improve my application with the C# MapScript, but before I begin with something, I still have some doubts, and need you guys in this mailing list to encourage me, :-). Ok, here is my scenario: I've been worked on MapServer for about two months, but only based on the CGI mode and never with any MapScript API. With the help from this mailing list, I have now MS4W1.5.3 run on my computer with Oracle Spatial support, which is tested under the CGI mode. Now I have another application under the .NET FW, all I need to do is to get a map image from MapServer. AFAIK, the map images can be generated with the command in the command line, therefore I think if I could directly use the C# MapScript API to generate the map image, and without IIS or Apche web server. For example, I can call the draw() in the C# MapScript to generate the map image. But I am really not sure about this. and for the first step to C# MapScript, I would really appreciate it if I can get any example to using C# MapScript API from you guys here. thanks in advance kind regards zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Thu Jun 22 04:05:18 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 22 Jun 2006 13:05:18 +0200 Subject: c#-mapscript: Problem first time calling Map.draw(), numLayers gets one bigger In-Reply-To: <20060622094659.304860@gmx.net> Message-ID: Hi, Are you using embedded legend or scalebar? Tamas 2006/6/22, Christian Wilmes : > Hi, > > if I'm calling the first time Map.draw(), the mapObj-Attribute numLayers gets raised itself from 0 to 1, 1 to 2, 2 to 3. > > The next times I'calling Map.draw() nothig happens with the numLayers-Attribut. > > I testet it with that 3 cases. What could be the reason for that curious behaviour? > > Best Regards > Christian > -- > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer > From szekerest at GMAIL.COM Thu Jun 22 04:18:55 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 22 Jun 2006 13:18:55 +0200 Subject: begin with C# MapScript In-Reply-To: <2534c4120606220247g57e33278h816b956b2a60b5f3@mail.gmail.com> Message-ID: Hi, Take a look at the sample applications eg. the drawmap sample in the mapscript/csharp/examples directory. For drawing the map without saving into a file see: using(imageObj image = map.draw()) { byte[] img = image.getBytes(); using (MemoryStream ms = new MemoryStream(img)) { Image mapimage = Image.FromStream(ms); if (mapPicture.Image != null) { mapPicture.Image.Dispose(); mapPicture.Image = null; } mapPicture.Image = mapimage; } } Regards, Tamas 2006/6/22, Zhonghai Wang : > Hi ALL, > > with the help from this mailing list I am going to improve my application > with the C# MapScript, but before I begin with something, I still have some > doubts, and need you guys in this mailing list to encourage me, :-). Ok, > here is my scenario: > > I've been worked on MapServer for about two months, but only based on the > CGI mode and never with any MapScript API. With the help from this mailing > list, I have now MS4W1.5.3 run on my computer with Oracle Spatial support, > which is tested under the CGI mode. > > Now I have another application under the .NET FW, all I need to do is to get > a map image from MapServer. AFAIK, the map images can be generated with the > command in the command line, therefore I > think if I could directly use the C# MapScript API to generate the map > image, and without IIS or Apche web server. For example, I can call the > draw() in the C# MapScript to generate the map image. But I am really not > sure about this. > > and for the first step to C# MapScript, I would really appreciate it if I > can get any example to using C# MapScript API from you guys here. > > thanks in advance > > kind regards > > zhonghai From techie at OMLET.CO.UK Thu Jun 22 04:58:23 2006 From: techie at OMLET.CO.UK (James Tuthill) Date: Thu, 22 Jun 2006 12:58:23 +0100 Subject: standard mapping styles Message-ID: Hi, I am laying out some UK maps and was wondering if there are any 'standard' styles. I was thinking of the styling used for the maps.google.co.uk . The colour choices and detail level are perfect for my application. Can anyone send me examples of the styling and the map files or point me where I can learn more? When I mentioned this to the person I was buying the data off ( MapMechanics) they said that the styling was included in the shape files. I haven't heard of this before - is it is correct? Thanks, James From vulukut at TESCILTURK.COM Thu Jun 22 06:27:32 2006 From: vulukut at TESCILTURK.COM (Volkan Ulukut) Date: Thu, 22 Jun 2006 16:27:32 +0300 Subject: standard mapping styles In-Reply-To: <449A85DF.2030505@omlet.co.uk> Message-ID: Styling might be included in .TAB files. You can get them to your map with OGR Connection and STYLEITEM "AUTO" option. Here is how to do it http://mapserver.gis.umn.edu/docs/reference/vector_data/mapinfo And here is a great howto on symbol creation in mapserver http://ms.gis.umn.edu/docs/howto/cartosymbols -----Original Message----- From: James Tuthill [mailto:techie at OMLET.CO.UK] Sent: Thursday, June 22, 2006 2:58 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] standard mapping styles Hi, I am laying out some UK maps and was wondering if there are any 'standard' styles. I was thinking of the styling used for the maps.google.co.uk . The colour choices and detail level are perfect for my application. Can anyone send me examples of the styling and the map files or point me where I can learn more? When I mentioned this to the person I was buying the data off ( MapMechanics) they said that the styling was included in the shape files. I haven't heard of this before - is it is correct? Thanks, James From xavier.mauclaire at GEOTER.FR Thu Jun 22 06:37:58 2006 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Thu, 22 Jun 2006 15:37:58 +0200 Subject: Mapscript ,Mono, Apache and Linux : a great story Message-ID: Tamas This program has been created with VS2003. Under windows (.net) it works well. It has been compiled under linux with mono (file compile.sh) and tested under linux too. When running under linux it doesn't not work For the error you get, change, in the mapfile test.map the line IMAGETYPE swf By IMAGETYPE png Mapserver a been compiled with the swf option Do you want to have a chat on IRC? regards ----------------------------------------- Xavier Mauclaire Service informatique GEOTER SAS 3, rue Jean Monnet 34830 Clapiers France T?l.: +33 (0)4.67.59.18.11 Fax: +33 (0)4.67.59.18.24 Email: xavier.mauclaire at geoter.fr Web site: http://www.geoter.fr ------------------------------------------------------- -----Message d'origine----- De : Tamas Szekeres [mailto:szekerest at gmail.com] Envoy? : jeudi 22 juin 2006 13:53 ? : Xavier Mauclaire Objet : Re: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : a great story Hi Xavier, I 've tested on windows and i got: loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver SWF, but this driver isn't configured. at mapObj..ctor(String filename) at Test1.Form1.button1_Click(Object sender, EventArgs e) in c:\cvs\xavier\test\test\form1.cs:line 124 using your mapscript_csharp.dll. I am not so familiar with swf so give me some help. I am a bit confused whether you are tesing on windows or linux. regards, Tamas PS: I could not identify you on the mapserver IRC line :( 2006/6/22, Xavier Mauclaire : > Hi tamas > > You will find joined the file test.zip containing a little forms > programs using the mapserver getfeature function In the interface, > when you click on the button, the programs scratches like Mapserver. > You will notce that the code is not very clean (sorry). > Thre is another problem if i want to access s?quentially to each > feature of a layer. If i use a while loop with testing the value of > the spaheObj returned by the function getfeature,this loop is infinite > because this function always returns a non NULL value. I saw this problem with windows. > This is why i used a for loop. > > regards > > > > > ----------------------------------------- > Xavier Mauclaire > Service informatique > GEOTER SAS > 3, rue Jean Monnet > 34830 Clapiers France > T?l.: +33 (0)4.67.59.18.11 > Fax: +33 (0)4.67.59.18.24 > Email: xavier.mauclaire at geoter.fr > Web site: http://www.geoter.fr > ------------------------------------------------------- > > > > -----Message d'origine----- > De : Tamas Szekeres [mailto:szekerest at gmail.com] Envoy? : jeudi 22 > juin 2006 00:45 ? : 'Xavier Mauclaire' > Objet : RE: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : > a great story > > I'm afraid i not understand exactly your application model. I am not > falmiliar with flash. > > Could you explain the usage sequence in more detail and the steps to > test this problem? > > I will trying look into it tomorrow then. > How should i configure apache for your app? > > > Tamas > > > -----Original Message----- > From: Xavier Mauclaire [mailto:xavier.mauclaire at geoter.fr] > Sent: Thursday, June 22, 2006 12:02 AM > To: 'Tamas Szekeres' > Subject: RE: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : > a great story > > I'm going to use the dynamic layer so i'm going to update the source > > what about installing the 4.6 version of mapserver on the linux server ? > > The server scratches when i want to create a information form. This > form is launch by the flash program. It uses the web > getparcellereglement.aspx (client data(xml) are send using POST > method) This verb is managed by the GetParcelleReglement.cs class. > This class initializes mapserver and computes data. Finally it > redirects to parcellereglement.aspx to display informations. > > > I installed gaim to have discussion and i' connecting to the > mapserver forum. my alias is xavier34 regards > > ----------------------------------------- > Xavier Mauclaire > Ing?nieur Informaticien > GEOTER SAS > 3, rue Jean Monnet > 34830 Clapiers France > T?l.: +33 (0)4.67.59.18.11 > Fax: +33 (0)4.67.59.18.24 > Email: xavier.mauclaire at geoter.fr > Web site: http://www.geoter.fr > ------------------------------------------------------- > > > > -----Message d'origine----- > De : Tamas Szekeres [mailto:szekerest at gmail.com] Envoy? : mercredi 21 > juin > 2006 23:37 ? : 'Xavier Mauclaire' > Cc : MAPSERVER-USERS at lists.umn.edu > Objet : RE: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : > a great story > > > >I did not include your code at this time because (if i understood > >your last email, the modification was about the dynamic creation of > >LayerObjet object. > >My last answer was about this. I wrote that i disabled the function > >to make a test and i prodcued the same error with the getfeature Do > >you want that i make the test? > >Most of the error are on the getfeature function but not all. > > Xavier, > > If you aren't using dynamically created layerObj classObj and styleObj > with a parent object given in the constructor that change is not to be made. > > >I get the problem when i'm connecting to the web site with my browser > > You have several aspx files, what is the URL you are using? > > >I can make an mono console application that create mapserver output > >file > and > >test the result > > That would make the things much more easier. > > > Best Regards, > > > Tamas > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 2006.06.21. > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 2006.06.21. > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 2006.06.21. > > > > > From warmerdam at POBOX.COM Thu Jun 22 07:20:49 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 22 Jun 2006 10:20:49 -0400 Subject: WMS and SRS issue: "Invalid SRS given : SRS must be valid for all requested layers." In-Reply-To: <67c29c7c0606220052sdee852eudb6cf641f3320c4d@mail.gmail.com> Message-ID: Marcos Cobe?a wrote: > Hi all, > > I'm trying to access to a layer made of SHP files, like this one: ... > METADATA > "wms_title" "12c_linea" > "wms_srs" "EPSG:4326" # "EPSG:4031" > "wms_format" "image/png" > END > END > [...] > END > " > > , where I've defined a projection ("init=EPSG:42304") and, for each > layer, its own SRS ("EPSG:4326"). It works fine, it draws my shape in > Canada (as expected with projections used). > > Once I change main projection to 4030: ... > " > msWMSLoadGetMapParams(): Invalid SRS given : SRS must be valid for all > requested layers. > " Marcos, I have gone through the WMS validation code, and as I read it, you either have to list all legal request SRSes in the map's wms_srs metadata item or in all the requestable layers. So changing your layer wms_srs line to: "wms_srs" "EPSG:4326 EPSG:4030" ought to make it work. The error report isn't actually at the projections code, but rather in the code that validates what requests are legal according to your metadata. 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 Jun 22 07:23:50 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 22 Jun 2006 10:23:50 -0400 Subject: Comments in generated JPEGs In-Reply-To: <200606221702.54310.sdc@sdc.com.au> Message-ID: Stephen Davies wrote: > My latest addition to my Mapserver application is a 3G phone interface. > > However, it seems that at least the Motorola 3vx phone cannot handle > comments in JPEG images. > > The images generated by Mapserver/gd have the comment: > CREATOR:gd-jpeg V1.0 (using IJG JPEG v62), quality=80 > and the phone refuses to display them. > If I manually remove the comment with gimp, the images display > perfectly. > > Does anybody know how to stop Mapserver/gd from including the comment? Stephen, As far as I know, you would need to patch the version of GD you are using. If you look in GD's gd_jpeg.c file you should see a code segment like: jpeg_start_compress (&cinfo, TRUE); sprintf (comment, "CREATOR: gd-jpeg v%s (using IJG JPEG v%d),", GD_JPEG_VERSION, JPEG_LIB_VERSION); if (quality >= 0) sprintf (comment + strlen (comment), " quality = %d\n", quality); else strcat (comment + strlen (comment), " default quality\n"); jpeg_write_marker (&cinfo, JPEG_COM, (unsigned char *) comment, (unsigned int) strlen (comment)); if (im->trueColor) { ... try changing this to: jpeg_start_compress (&cinfo, TRUE); if (im->trueColor) { ... Quite a lame "feature" of the phone if you were to ask me! Good luck, -- ---------------------------------------+-------------------------------------- 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 szekerest at GMAIL.COM Thu Jun 22 07:54:07 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 22 Jun 2006 16:54:07 +0200 Subject: Mapscript ,Mono, Apache and Linux : a great story In-Reply-To: Message-ID: Xavier, I have tested your code under windows and linux and worked for me. I have got: Nombre d'?l?ments 10 However on linux i did not want to bother with gdiplus.dll and friends so i have rewritten the code as a console app that creates a new Form1 and invokes the button1_Click(). And I have also switched to png instead of swf because i have not compiled mapserver with SWF before. Would you confirm that using it as a console app with png output makes crash for you? Would you post your exception information? Thanks, Tamas 2006/6/22, Xavier Mauclaire : > > Tamas > This program has been created with VS2003. Under windows (.net) it works > well. > It has been compiled under linux with mono (file compile.sh) and tested > under linux too. When running under linux it doesn't not work > > For the error you get, change, in the mapfile test.map the line IMAGETYPE > swf By IMAGETYPE png > > Mapserver a been compiled with the swf option > > > > Do you want to have a chat on IRC? > > regards > > ----------------------------------------- > Xavier Mauclaire > Service informatique > GEOTER SAS > 3, rue Jean Monnet > 34830 Clapiers France > T?l.: +33 (0)4.67.59.18.11 > Fax: +33 (0)4.67.59.18.24 > Email: xavier.mauclaire at geoter.fr > Web site: http://www.geoter.fr > ------------------------------------------------------- > > > > -----Message d'origine----- > De : Tamas Szekeres [mailto:szekerest at gmail.com] Envoy? : jeudi 22 juin 2006 > 13:53 ? : Xavier Mauclaire Objet : Re: [UMN_MAPSERVER-USERS] Mapscript > ,Mono, Apache and Linux : a great story > > Hi Xavier, > > I 've tested on windows and i got: > > loadOutputFormat(): General error message. OUTPUTFORMAT clause > references driver SWF, but this driver isn't configured. at > mapObj..ctor(String filename) > at Test1.Form1.button1_Click(Object sender, EventArgs e) in > c:\cvs\xavier\test\test\form1.cs:line 124 > > using your mapscript_csharp.dll. I am not so familiar with swf so give me > some help. > > I am a bit confused whether you are tesing on windows or linux. > > regards, > > Tamas > > PS: I could not identify you on the mapserver IRC line :( > > > > 2006/6/22, Xavier Mauclaire : > > Hi tamas > > > > You will find joined the file test.zip containing a little forms > > programs using the mapserver getfeature function In the interface, > > when you click on the button, the programs scratches like Mapserver. > > You will notce that the code is not very clean (sorry). > > Thre is another problem if i want to access s?quentially to each > > feature of a layer. If i use a while loop with testing the value of > > the spaheObj returned by the function getfeature,this loop is infinite > > because this function always returns a non NULL value. I saw this problem > with windows. > > This is why i used a for loop. > > > > regards > > > > > > > > > > ----------------------------------------- > > Xavier Mauclaire > > Service informatique > > GEOTER SAS > > 3, rue Jean Monnet > > 34830 Clapiers France > > T?l.: +33 (0)4.67.59.18.11 > > Fax: +33 (0)4.67.59.18.24 > > Email: xavier.mauclaire at geoter.fr > > Web site: http://www.geoter.fr > > ------------------------------------------------------- > > > > > > > > -----Message d'origine----- > > De : Tamas Szekeres [mailto:szekerest at gmail.com] Envoy? : jeudi 22 > > juin 2006 00:45 ? : 'Xavier Mauclaire' > > Objet : RE: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : > > a great story > > > > I'm afraid i not understand exactly your application model. I am not > > falmiliar with flash. > > > > Could you explain the usage sequence in more detail and the steps to > > test this problem? > > > > I will trying look into it tomorrow then. > > How should i configure apache for your app? > > > > > > Tamas > > > > > > -----Original Message----- > > From: Xavier Mauclaire [mailto:xavier.mauclaire at geoter.fr] > > Sent: Thursday, June 22, 2006 12:02 AM > > To: 'Tamas Szekeres' > > Subject: RE: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : > > a great story > > > > I'm going to use the dynamic layer so i'm going to update the source > > > > what about installing the 4.6 version of mapserver on the linux server ? > > > > The server scratches when i want to create a information form. This > > form is launch by the flash program. It uses the web > > getparcellereglement.aspx (client data(xml) are send using POST > > method) This verb is managed by the GetParcelleReglement.cs class. > > This class initializes mapserver and computes data. Finally it > > redirects to parcellereglement.aspx to display informations. > > > > > > I installed gaim to have discussion and i' connecting to the > > mapserver forum. my alias is xavier34 regards > > > > ----------------------------------------- > > Xavier Mauclaire > > Ing?nieur Informaticien > > GEOTER SAS > > 3, rue Jean Monnet > > 34830 Clapiers France > > T?l.: +33 (0)4.67.59.18.11 > > Fax: +33 (0)4.67.59.18.24 > > Email: xavier.mauclaire at geoter.fr > > Web site: http://www.geoter.fr > > ------------------------------------------------------- > > > > > > > > -----Message d'origine----- > > De : Tamas Szekeres [mailto:szekerest at gmail.com] Envoy? : mercredi 21 > > juin > > 2006 23:37 ? : 'Xavier Mauclaire' > > Cc : MAPSERVER-USERS at lists.umn.edu > > Objet : RE: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : > > a great story > > > > > > >I did not include your code at this time because (if i understood > > >your last email, the modification was about the dynamic creation of > > >LayerObjet object. > > >My last answer was about this. I wrote that i disabled the function > > >to make a test and i prodcued the same error with the getfeature Do > > >you want that i make the test? > > >Most of the error are on the getfeature function but not all. > > > > Xavier, > > > > If you aren't using dynamically created layerObj classObj and styleObj > > with a parent object given in the constructor that change is not to be > made. > > > > >I get the problem when i'm connecting to the web site with my browser > > > > You have several aspx files, what is the URL you are using? > > > > >I can make an mono console application that create mapserver output > > >file > > and > > >test the result > > > > That would make the things much more easier. > > > > > > Best Regards, > > > > > > Tamas > > > > -- > > No virus found in this outgoing message. > > Checked by AVG Free Edition. > > Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 2006.06.21. > > > > > > > > -- > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 2006.06.21. > > > > > > -- > > No virus found in this outgoing message. > > Checked by AVG Free Edition. > > Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 2006.06.21. > > > > > > > > > > > From tian.jay at GMAIL.COM Thu Jun 22 07:57:56 2006 From: tian.jay at GMAIL.COM (Jie Tian) Date: Thu, 22 Jun 2006 10:57:56 -0400 Subject: Having trouble with running a demo In-Reply-To: <980cfe070606220756u403a6829w1a0c5b5c149dcb35@mail.gmail.com> Message-ID: > Hi friends, > > I am having trouble with running a demo. My working directory is > C:\ms4w\Apache\htdocs\workshop. Detailed directory is shown in the > attachment. > All the data and the html files are in the folder 'workshop'. I am > supposed to modify the index.hml file to get it work correctly. > The html is like below: > > > > > MapServer Itasca Application > > > > >

MapServer Itasca Application

>


> This demonstration application will take you through various levels of > complexity. Starting with a basic application that > allows a user to pan/zoom and change layers we add: >

    >
  • dynamically configured scalebars >
  • javascript-based panning >
  • query results to a frame >
  • and finally, a DHTML rubber-band zoom/query capabilty >
> The base data is the old-reliable Itasca dataset that we know and > love... > > >
onSubmit="submit_form()"> > > > > > > > value="/usr/local/www/docs/mapserver_demos/workshop/itasca.map"> > > > value="/usr/local/www/docs/tmp/"> > > > > > >
> >


> > > > I have tried all the ways to get it work. But I just couldn't get it right > cuz I am not good at html. Hope I can get help from any of you. > Thanks in advance. > > > -- > Jie Tian > Laboratory of Geographical Information & Spatial Analysis (LaGISA) > Department of Geography, Queen's University > Kingston, Ontario, Canada > -------------- next part -------------- An HTML attachment was scrubbed... URL: From atorres at ESTUDIANTES.UCI.CU Thu Jun 22 08:12:24 2006 From: atorres at ESTUDIANTES.UCI.CU (Alexander =?ISO-8859-1?Q?Rodr=EDguez?= Torres) Date: Thu, 22 Jun 2006 11:12:24 -0400 Subject: msWMSLoadGetParams Message-ID: I receive this error when I try load my map msWMSLoadGetMapParams():Invalid SRS given:SRS must be valid for all request layers Somebody can help me???? This is my .map MAP NAME "Mapa de la UCI" STATUS ON EXTENT 9387137.4 805683.77 10119140.81 1507910.77 SIZE 500 500 SHAPEPATH "/var/www/localhost/htdocs/MapaPost/data" SYMBOLSET "/var/www/localhost/htdocs/MapaPost/etc/symbols.sym" FONTSET "/var/www/localhost/htdocs/MapaPost/etc/fonts.txt" IMAGETYPE PNG IMAGECOLOR 174 183 207 UNITS METERS TEMPLATEPATTERN "UCI" WEB MINSCALE 259371 IMAGEPATH "/temp/" TEMPLATE mapa.html HEADER mapa_header.html IMAGEURL "/temp/" END REFERENCE STATUS ON IMAGE "/var/www/localhost/htdocs/MapaPost/images/keymap.png" SIZE 88 69 EXTENT 9387137.4 805683.77 10119140.81 1507910.77 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 MINBOXSIZE 3 MAXBOXSIZE 0 MARKER 0 MARKERSIZE 0 END QUERYMAP STATUS OFF SIZE -1 -1 COLOR 255 0 0 STYLE HILITE END # # Start of legend object # LEGEND STATUS ON IMAGECOLOR 255 255 255 POSITION LL KEYSIZE 18 12 KEYSPACING 5 5 TEMPLATE "ttt" LABEL TYPE BITMAP SIZE MEDIUM OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 89 PARTIALS TRUE FORCE FALSE END END # # Start of scalebar object # SCALEBAR STATUS ON COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 IMAGECOLOR 255 255 255 UNITS KILOMETERS INTERVALS 5 SIZE 150 5 STYLE 0 POSITION LL LABEL TYPE BITMAP SIZE SMALL OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 PARTIALS TRUE FORCE TRUE END END # # Start of OutputFormat object # OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE END LAYER NAME "Contornos" STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "user=postgres dbname=siguci host=localhost" CLASSITEM "the_geom" DATA "the_geom from contornos" TYPE POLYGON CLASS NAME "contornos" TEMPLATE "" STYLE SYMBOL 0 COLOR 0 128 0 OUTLINECOLOR 0 0 0 END END END LAYER NAME "Viales" STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "user=postgres dbname=siguci host=localhost" CLASSITEM "the_geom" DATA "the_geom from viales" TYPE LINE CLASS NAME "viales" TEMPLATE "" STYLE SYMBOL 0 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END END END LAYER NAME "Areas deportivas" STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "user=postgres dbname=siguci host=localhost" CLASSITEM "the_geom" DATA "the_geom from areasdeportivas" TYPE POLYGON CLASS NAME "areasdeportivas" TEMPLATE "deportivas.html" STYLE SYMBOL 0 COLOR 255 255 0 OUTLINECOLOR 0 0 0 END END #HEADER "deportivas_header.html" END LAYER NAME "Separadores" STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "user=postgres dbname=siguci host=localhost" CLASSITEM "the_geom" DATA "the_geom from separadores" TYPE POLYGON CLASS NAME "separadores" TEMPLATE "" STYLE SYMBOL 0 COLOR 0 128 0 OUTLINECOLOR 0 0 0 END END END LAYER NAME "Manzanas" STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "user=postgres dbname=siguci host=localhost" CLASSITEM "the_geom" DATA "the_geom from manzanas" TYPE POLYGON CLASS NAME "manzanas" TEMPLATE "manzanas.html" STYLE SYMBOL 0 COLOR 255 232 208 OUTLINECOLOR 0 0 0 END END #HEADER "manzanas_header.html" # FOOTER "manzanas_footer.html" END LAYER NAME "Edificios" STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "user=postgres dbname=siguci host=localhost" CLASSITEM "the_geom" DATA "the_geom from edificios" TYPE POLYGON CLASS NAME "edificios" TEMPLATE "edificios.html" STYLE SYMBOL 0 COLOR 192 192 192 OUTLINECOLOR 0 0 0 END END #HEADER "edificios_header.html" #FOOTER "edificios_footer.html" END END -- Ing. Alexander Rodriguez Torres. Universidad de las Ciencias Informaticas. E-Mail:atorres at estudiantes.uci.cu From ollerery at ENGR.ORST.EDU Thu Jun 22 08:30:59 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Thu, 22 Jun 2006 08:30:59 -0700 Subject: undefined symbol: _zval_dtor In-Reply-To: <449A12AB.7070700@spiekermann.de> Message-ID: Warning: dl() [function.dl]: Unable to load dynamic library '/usr/lib/php/modules/php_mapscript.so' - /usr/lib/php/modules/php_mapscript.so: undefined symbol: _zval_dtor in /usr/local/gmap-ms46/htdocs/phpinfo_mapscript.php on line 26 the php_mapscript.so library does not seem to be loading correctly, any help would be great. Apache/2.2.0 (Fedora) Core 5 PHP 4.4.2 Mapserver 4.8.3 From mariette.hachey at GEONET-TECH.COM Thu Jun 22 08:57:59 2006 From: mariette.hachey at GEONET-TECH.COM (Mariette Hachey) Date: Thu, 22 Jun 2006 08:57:59 -0700 Subject: S57 Message-ID: Greetings, I am attempting to get an S57 (ext .000) file working in mapserver using OGR. I have everything set up, but i am not seing any data nor any errors. I am using the projection and extent information that i got from ogrinfo. Please view a snippet from my map file. NAME "Kensington" STATUS ON SIZE 600 500 EXTENT -64.299969 46.2 -64.0 46.250027 UNITS METERS IMAGETYPE PNG24 SHAPEPATH "/ms4w/apps/Lunenburg/data" IMAGECOLOR 255 255 255 SYMBOLSET "../etc/symbols.sym" FONTSET "../etc/fonts.txt" WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms4w/" END PROJECTION "init=epsg:4326" END LAYER NAME "Hydro" TYPE LINE STATUS ON CONNECTIONTYPE OGR CONNECTION "1C5HYDRO.000" TOLERANCE 5 PROJECTION "init=epsg:4326" END CLASS STYLE COLOR 0 0 0 END END END END #End of Map File Thanks ahead for any assistance. Mariette Hachey -- View this message in context: http://www.nabble.com/S57-t1831020.html#a4996163 Sent from the Mapserver - User forum at Nabble.com. From tylermitchell at SHAW.CA Thu Jun 22 09:32:45 2006 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Thu, 22 Jun 2006 09:32:45 -0700 Subject: S57 In-Reply-To: <4996163.post@talk.nabble.com> Message-ID: Mariette, I have only ever used S57 for tutorials in workshops. Does this document help you at all? http://mapserver.gis.umn.edu/docs/reference/vector_data/S57 Tyler On 22-Jun-06, at 8:57 AM, Mariette Hachey wrote: > Greetings, > I am attempting to get an S57 (ext .000) file working in mapserver > using > OGR. I have everything set up, but i am not seing any data nor any > errors. I > am using the projection and extent information that i got from > ogrinfo. > Please view a snippet from my map file. > > NAME "Kensington" > STATUS ON > SIZE 600 500 > EXTENT -64.299969 46.2 -64.0 46.250027 > UNITS METERS > IMAGETYPE PNG24 > SHAPEPATH "/ms4w/apps/Lunenburg/data" > IMAGECOLOR 255 255 255 > SYMBOLSET "../etc/symbols.sym" > FONTSET "../etc/fonts.txt" > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms4w/" > END > PROJECTION > "init=epsg:4326" > END > LAYER > NAME "Hydro" > TYPE LINE > STATUS ON > CONNECTIONTYPE OGR > CONNECTION "1C5HYDRO.000" > TOLERANCE 5 > PROJECTION > "init=epsg:4326" > END > CLASS > STYLE > COLOR 0 0 0 > END > END > END > END #End of Map File > > Thanks ahead for any assistance. > Mariette Hachey > -- > View this message in context: http://www.nabble.com/S57- > t1831020.html#a4996163 > Sent from the Mapserver - User forum at Nabble.com. From mariette.hachey at GEONET-TECH.COM Thu Jun 22 09:55:45 2006 From: mariette.hachey at GEONET-TECH.COM (Mariette Hachey) Date: Thu, 22 Jun 2006 09:55:45 -0700 Subject: S57 In-Reply-To: <86CFC7DC-B9D2-42CF-B9E5-246FFD1A86FD@shaw.ca> Message-ID: That was exactly what i needed. I was missing the layer number after the file name. thanks -- View this message in context: http://www.nabble.com/S57-t1831020.html#a4997273 Sent from the Mapserver - User forum at Nabble.com. From xavier.mauclaire at GEOTER.FR Thu Jun 22 09:07:04 2006 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Thu, 22 Jun 2006 18:07:04 +0200 Subject: Mapscript ,Mono, Apache and Linux : a great story In-Reply-To: Message-ID: Good news tamas I changed th ouput swf to png and got the same error I don't test the program as console app yet. You will find attached the error files I installd mono from rpm package donwloaded from the mono site ans installed them without taking yast dependencies message into consid?ration. May this installation mode the source of my problems ? regards ----------------------------------------- Xavier Mauclaire Service informatique GEOTER SAS 3, rue Jean Monnet 34830 Clapiers France T?l.: +33 (0)4.67.59.18.11 Fax: +33 (0)4.67.59.18.24 Email: xavier.mauclaire at geoter.fr Web site: http://www.geoter.fr ------------------------------------------------------- -----Message d'origine----- De : Tamas Szekeres [mailto:szekerest at gmail.com] Envoy? : jeudi 22 juin 2006 16:54 ? : Xavier Mauclaire Cc : MAPSERVER-USERS at lists.umn.edu Objet : Re: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : a great story Xavier, I have tested your code under windows and linux and worked for me. I have got: Nombre d'?l?ments 10 However on linux i did not want to bother with gdiplus.dll and friends so i have rewritten the code as a console app that creates a new Form1 and invokes the button1_Click(). And I have also switched to png instead of swf because i have not compiled mapserver with SWF before. Would you confirm that using it as a console app with png output makes crash for you? Would you post your exception information? Thanks, Tamas 2006/6/22, Xavier Mauclaire : > > Tamas > This program has been created with VS2003. Under windows (.net) it > works well. > It has been compiled under linux with mono (file compile.sh) and > tested under linux too. When running under linux it doesn't not work > > For the error you get, change, in the mapfile test.map the line > IMAGETYPE swf By IMAGETYPE png > > Mapserver a been compiled with the swf option > > > > Do you want to have a chat on IRC? > > regards > > ----------------------------------------- > Xavier Mauclaire > Service informatique > GEOTER SAS > 3, rue Jean Monnet > 34830 Clapiers France > T?l.: +33 (0)4.67.59.18.11 > Fax: +33 (0)4.67.59.18.24 > Email: xavier.mauclaire at geoter.fr > Web site: http://www.geoter.fr > ------------------------------------------------------- > > > > -----Message d'origine----- > De : Tamas Szekeres [mailto:szekerest at gmail.com] Envoy? : jeudi 22 > juin 2006 > 13:53 ? : Xavier Mauclaire Objet : Re: [UMN_MAPSERVER-USERS] Mapscript > ,Mono, Apache and Linux : a great story > > Hi Xavier, > > I 've tested on windows and i got: > > loadOutputFormat(): General error message. OUTPUTFORMAT clause > references driver SWF, but this driver isn't configured. at > mapObj..ctor(String filename) > at Test1.Form1.button1_Click(Object sender, EventArgs e) in > c:\cvs\xavier\test\test\form1.cs:line 124 > > using your mapscript_csharp.dll. I am not so familiar with swf so give > me some help. > > I am a bit confused whether you are tesing on windows or linux. > > regards, > > Tamas > > PS: I could not identify you on the mapserver IRC line :( > > > > 2006/6/22, Xavier Mauclaire : > > Hi tamas > > > > You will find joined the file test.zip containing a little forms > > programs using the mapserver getfeature function In the interface, > > when you click on the button, the programs scratches like Mapserver. > > You will notce that the code is not very clean (sorry). > > Thre is another problem if i want to access s?quentially to each > > feature of a layer. If i use a while loop with testing the value of > > the spaheObj returned by the function getfeature,this loop is > > infinite because this function always returns a non NULL value. I > > saw this problem > with windows. > > This is why i used a for loop. > > > > regards > > > > > > > > > > ----------------------------------------- > > Xavier Mauclaire > > Service informatique > > GEOTER SAS > > 3, rue Jean Monnet > > 34830 Clapiers France > > T?l.: +33 (0)4.67.59.18.11 > > Fax: +33 (0)4.67.59.18.24 > > Email: xavier.mauclaire at geoter.fr > > Web site: http://www.geoter.fr > > ------------------------------------------------------- > > > > > > > > -----Message d'origine----- > > De : Tamas Szekeres [mailto:szekerest at gmail.com] Envoy? : jeudi 22 > > juin 2006 00:45 ? : 'Xavier Mauclaire' > > Objet : RE: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : > > a great story > > > > I'm afraid i not understand exactly your application model. I am not > > falmiliar with flash. > > > > Could you explain the usage sequence in more detail and the steps to > > test this problem? > > > > I will trying look into it tomorrow then. > > How should i configure apache for your app? > > > > > > Tamas > > > > > > -----Original Message----- > > From: Xavier Mauclaire [mailto:xavier.mauclaire at geoter.fr] > > Sent: Thursday, June 22, 2006 12:02 AM > > To: 'Tamas Szekeres' > > Subject: RE: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : > > a great story > > > > I'm going to use the dynamic layer so i'm going to update the source > > > > what about installing the 4.6 version of mapserver on the linux server ? > > > > The server scratches when i want to create a information form. This > > form is launch by the flash program. It uses the web > > getparcellereglement.aspx (client data(xml) are send using POST > > method) This verb is managed by the GetParcelleReglement.cs class. > > This class initializes mapserver and computes data. Finally it > > redirects to parcellereglement.aspx to display informations. > > > > > > I installed gaim to have discussion and i' connecting to the > > mapserver forum. my alias is xavier34 regards > > > > ----------------------------------------- > > Xavier Mauclaire > > Ing?nieur Informaticien > > GEOTER SAS > > 3, rue Jean Monnet > > 34830 Clapiers France > > T?l.: +33 (0)4.67.59.18.11 > > Fax: +33 (0)4.67.59.18.24 > > Email: xavier.mauclaire at geoter.fr > > Web site: http://www.geoter.fr > > ------------------------------------------------------- > > > > > > > > -----Message d'origine----- > > De : Tamas Szekeres [mailto:szekerest at gmail.com] Envoy? : mercredi > > 21 juin > > 2006 23:37 ? : 'Xavier Mauclaire' > > Cc : MAPSERVER-USERS at lists.umn.edu > > Objet : RE: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : > > a great story > > > > > > >I did not include your code at this time because (if i understood > > >your last email, the modification was about the dynamic creation of > > >LayerObjet object. > > >My last answer was about this. I wrote that i disabled the function > > >to make a test and i prodcued the same error with the getfeature Do > > >you want that i make the test? > > >Most of the error are on the getfeature function but not all. > > > > Xavier, > > > > If you aren't using dynamically created layerObj classObj and > > styleObj with a parent object given in the constructor that change > > is not to be > made. > > > > >I get the problem when i'm connecting to the web site with my > > >browser > > > > You have several aspx files, what is the URL you are using? > > > > >I can make an mono console application that create mapserver output > > >file > > and > > >test the result > > > > That would make the things much more easier. > > > > > > Best Regards, > > > > > > Tamas > > > > -- > > No virus found in this outgoing message. > > Checked by AVG Free Edition. > > Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 2006.06.21. > > > > > > > > -- > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 2006.06.21. > > > > > > -- > > No virus found in this outgoing message. > > Checked by AVG Free Edition. > > Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 2006.06.21. > > > > > > > > > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: error.zip Type: application/octet-stream Size: 4272 bytes Desc: not available URL: From giorgio.liberta at JRC.IT Thu Jun 22 10:00:59 2006 From: giorgio.liberta at JRC.IT (=?ISO-8859-1?Q?Giorgio_Libert=E0?=) Date: Thu, 22 Jun 2006 19:00:59 +0200 Subject: query raster layer Message-ID: Hello, I defined a layer as following LAYER NAME "clc_00_l1" STATUS ON METADATA "wms_title" "Landcover - Level1" "wms_abstract" "landcover - landuse layer." "wms_srs" "EPSG:4623" END TYPE RASTER DATA "landcover/clc_00.tif" MAXSCALE 900000000 MINSCALE 5 TRANSPARENCY 100 TEMPLATE "../templates/clc-body.html" HEADER "../templates/clc-header.html" FOOTER "../templates/clc-footer.html" CLASSITEM "[pixel]" CLASS NAME 'Artificial Surface' EXPRESSION (([pixel] > 0) and ([pixel] <= 11)) COLOR 255 25 150 END CLASS NAME 'Agricultural Areas' EXPRESSION (([pixel] > 11) and ([pixel] <= 22)) COLOR 255 255 38 END CLASS NAME 'Forest and semi-natural areas' EXPRESSION ([pixel] > 22 and [pixel] <= 34) COLOR 110 190 110 END CLASS NAME 'Wetlands' EXPRESSION ([pixel] > 34 and [pixel] <= 39) COLOR 100 60 240 END CLASS NAME 'Water bodies' EXPRESSION ([pixel] > 29 and [pixel] <= 44) COLOR 100 240 245 END END the raster file is a compressed tif generated using GDAL utils. When I try a WMS GetFeatureInfo I got the following error: msDrawShape(): General error message. Unknown layer type. Please can you help me. What's wrong with my layer? Maybe the definition is not complete? thx -- ------------------------------------------------ Giorgio Libert? European Commission - DG Joint Research Center Institute for Environment and Sustainability Land Management & Natural Hazards Unit TP 261, via Fermi Ispra (VA), 21020 Italy e-mail: giorgio.liberta at jrc.it Phone: +39 0332 785309 Fax: +39 0332 789074 Mobile: +39 340 2566207 ------------------------------------------------ The views expressed are purely those of the writer and may not in any circumstances be regarded as stating an official position of the European Commission. From warmerdam at POBOX.COM Thu Jun 22 10:17:56 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 22 Jun 2006 13:17:56 -0400 Subject: S57 In-Reply-To: <4997273.post@talk.nabble.com> Message-ID: Mariette Hachey wrote: > That was exactly what i needed. I was missing the layer number after the file > name. Mariette, I would encourage you to put the layer name in the DATA keyword instead of embedding the file layer desired within the CONNECTION string. (I think this is what the example shows). So do CONNECTION "data/abc.000" DATA "SOUNDG" rather than: CONNECTION "data/abc.000,7" I suggest this because the "embed into connection string" approach is deprecated and may be removed at some point in the future. Also, using the feature class names, like SOUNDG, is much more readable than using layer numbers which might change in future software updates. 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 atorres at ESTUDIANTES.UCI.CU Thu Jun 22 11:51:42 2006 From: atorres at ESTUDIANTES.UCI.CU (Alexander Rodriguez Torres) Date: Thu, 22 Jun 2006 14:51:42 -0400 Subject: msWMSLoadGetParams Message-ID: I receive this error when I try load my map msWMSLoadGetMapParams():Invalid SRS given:SRS must be valid for all request layers Somebody can help me???? This is my .map MAP NAME "Mapa de la UCI" STATUS ON EXTENT 9387137.4 805683.77 10119140.81 1507910.77 SIZE 500 500 SHAPEPATH "/var/www/localhost/htdocs/MapaPost/data" SYMBOLSET "/var/www/localhost/htdocs/MapaPost/etc/symbols.sym" FONTSET "/var/www/localhost/htdocs/MapaPost/etc/fonts.txt" IMAGETYPE PNG IMAGECOLOR 174 183 207 UNITS METERS TEMPLATEPATTERN "UCI" WEB MINSCALE 259371 IMAGEPATH "/temp/" TEMPLATE mapa.html HEADER mapa_header.html IMAGEURL "/temp/" END REFERENCE STATUS ON IMAGE "/var/www/localhost/htdocs/MapaPost/images/keymap.png" SIZE 88 69 EXTENT 9387137.4 805683.77 10119140.81 1507910.77 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 MINBOXSIZE 3 MAXBOXSIZE 0 MARKER 0 MARKERSIZE 0 END QUERYMAP STATUS OFF SIZE -1 -1 COLOR 255 0 0 STYLE HILITE END # # Start of legend object # LEGEND STATUS ON IMAGECOLOR 255 255 255 POSITION LL KEYSIZE 18 12 KEYSPACING 5 5 TEMPLATE "ttt" LABEL TYPE BITMAP SIZE MEDIUM OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 89 PARTIALS TRUE FORCE FALSE END END # # Start of scalebar object # SCALEBAR STATUS ON COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 IMAGECOLOR 255 255 255 UNITS KILOMETERS INTERVALS 5 SIZE 150 5 STYLE 0 POSITION LL LABEL TYPE BITMAP SIZE SMALL OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 PARTIALS TRUE FORCE TRUE END END # # Start of OutputFormat object # OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE END LAYER NAME "Contornos" STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "user=postgres dbname=siguci host=localhost" CLASSITEM "the_geom" DATA "the_geom from contornos" TYPE POLYGON CLASS NAME "contornos" TEMPLATE "" STYLE SYMBOL 0 COLOR 0 128 0 OUTLINECOLOR 0 0 0 END END END LAYER NAME "Viales" STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "user=postgres dbname=siguci host=localhost" CLASSITEM "the_geom" DATA "the_geom from viales" TYPE LINE CLASS NAME "viales" TEMPLATE "" STYLE SYMBOL 0 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END END END LAYER NAME "Areas deportivas" STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "user=postgres dbname=siguci host=localhost" CLASSITEM "the_geom" DATA "the_geom from areasdeportivas" TYPE POLYGON CLASS NAME "areasdeportivas" TEMPLATE "deportivas.html" STYLE SYMBOL 0 COLOR 255 255 0 OUTLINECOLOR 0 0 0 END END #HEADER "deportivas_header.html" END LAYER NAME "Separadores" STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "user=postgres dbname=siguci host=localhost" CLASSITEM "the_geom" DATA "the_geom from separadores" TYPE POLYGON CLASS NAME "separadores" TEMPLATE "" STYLE SYMBOL 0 COLOR 0 128 0 OUTLINECOLOR 0 0 0 END END END LAYER NAME "Manzanas" STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "user=postgres dbname=siguci host=localhost" CLASSITEM "the_geom" DATA "the_geom from manzanas" TYPE POLYGON CLASS NAME "manzanas" TEMPLATE "manzanas.html" STYLE SYMBOL 0 COLOR 255 232 208 OUTLINECOLOR 0 0 0 END END #HEADER "manzanas_header.html" # FOOTER "manzanas_footer.html" END LAYER NAME "Edificios" STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "user=postgres dbname=siguci host=localhost" CLASSITEM "the_geom" DATA "the_geom from edificios" TYPE POLYGON CLASS NAME "edificios" TEMPLATE "edificios.html" STYLE SYMBOL 0 COLOR 192 192 192 OUTLINECOLOR 0 0 0 END END #HEADER "edificios_header.html" #FOOTER "edificios_footer.html" END END -- Ing. Alexander Rodriguez Torres. Universidad de las Ciencias Informaticas. E-Mail:atorres at estudiantes.uci.cu -------------- next part -------------- An HTML attachment was scrubbed... URL: From ljfong at SDF.LONESTAR.ORG Thu Jun 22 11:42:22 2006 From: ljfong at SDF.LONESTAR.ORG (Hong) Date: Thu, 22 Jun 2006 11:42:22 -0700 Subject: C# MapScript - Extent of mapObj not set after object creation Message-ID: Hello, I have experienced problem using C# MapScript where I tried to create a mapObj using the mapObj constructor from a map file, after the object creation, the extent are not set properly. The mapfile "odessa.map" is as follows. NAME ODESSA STATUS on SIZE 684 592 EXTENT -104.10235082418987 29.77884364609445 -101.64625194665918 32.52517088808842 ... I used VB.NET to create the object: Dim p_map as mapObj = new mapObj("odessa.map") Tracking p_map through a debugger after object creation revealed that: p_map.extent.minx, p_map.extent.miny, p_map.extent.maxx, p_map.extent.maxy still have values of 0.0. My development environment: - MS Visual Studio 2003 (VB.NET) - DLLs (mapscript_csharp.dll, mapscript.dll, etc) from MS4W PHP4 Base Installer v1.5.4 - MS Windows XP Pro with IIS 5 - .NET Framework 1.1 This did not happen with older version of DLLs for MapServer 4.6. Has anyone else also used C# MapScript but with VB.NET as the programming language? Any help/suggestion appreciated. Hong From tpe at IDA.LIU.SE Thu Jun 22 11:42:41 2006 From: tpe at IDA.LIU.SE (Tommy Persson) Date: Thu, 22 Jun 2006 20:42:41 +0200 Subject: RT90 in input data and WGS84 in output Message-ID: I have just started to use mapserver and have problem getting it to work setting up a WMS server. My input data is GeoTIFF tiles in RT90 coordinate system (epsg:2400) and I would like to be able ask for the map using WGS84 coordinates. The result is that when I ask for an area in WGS84 the image is translated approximately 100 meter east/west and 10 meters north/south. To test this I created the map file below and the used:

  • TEST WGS84
  • TEST RT90
  • to access the data and the translation is obvious (and I have checked the translation between WGS84 and RT90 in the URL:s above and it seems to be correct). Any ides of how to fix this? Any obvious errors in the file below? Mapfile test.map: MAP NAME TestWMS STATUS ON SIZE 400 400 SYMBOLSET examples.sym EXTENT 1352800.0 6179200.0 1353900.0 6180100.0 UNITS METERS IMAGECOLOR 255 255 255 WEB IMAGEPATH "/var/tmp/" IMAGEURL "/var/tmp/" METADATA "wms_title" "GMap WMS Demo Server" ## REQUIRED "wms_onlineresource" "http://porter.ida.liu.se/cgi-bin/mapserv?map=test.map&" ## Recommended "wms_srs" "EPSG:2400 EPSG:4326" ## Recommended END END PROJECTION "init=epsg:2400" # rt90 END LAYER NAME "circles" METADATA "wms_title" "cirles" ## REQUIRED END PROJECTION "init=epsg:2400" # rt90 END STATUS DEFAULT TYPE POINT FEATURE POINTS 1353350 6179650 END POINTS 1353330 6179650 END POINTS 1353300 6179600 END POINTS 1353400 6179700 END POINTS 1353310 6179610 END # 10-changed POINTS 1353390 6179690 END # 10-changed POINTS 1353310 6179690 END # 10-changed POINTS 1353390 6179610 END # 10-changed END CLASS SYMBOL 'circle' COLOR 255 0 0 BACKGROUNDCOLOR 255 255 255 SIZE 10 END DUMP TRUE ## REQUIRED END END # Map File -- /Tommy Persson From ltrevino at GPOBSI.COM.MX Thu Jun 22 12:00:33 2006 From: ltrevino at GPOBSI.COM.MX (=?iso-8859-1?Q?Luis_Trevi=F1o_Huerta?=) Date: Thu, 22 Jun 2006 14:00:33 -0500 Subject: getInteger(): Symbol definition error. Parsing error near (+):(line 37) Message-ID: List, I'm using CGI mapserver 4.4.1 with jbox and I often get the getInteger(): Symbol definition error. Parsing error near (+):(line 37) error when I try to zoom in/out. This messege doesn't appear all the time. Can't catch this error even turning debug on. I checked my symbols file and seems to be OK. This is what the file has: #1 Symbol Name 'star' Type VECTOR Filled TRUE Points 0 .375 .35 .375 .5 0 .65 .375 1 .375 .75 .625 .875 1 .5 .75 .125 1 .25 .625 END END #2 Symbol Name 'circle' Type ELLIPSE Filled TRUE Points 1 1 END END #14 SYMBOL #linea redonda para calles NAME "cartoline_round" TYPE cartoline LINECAP round #[butt|round|square|triangle] LINEJOIN miter #[round|miter|bevel] LINEJOINMAXSIZE 3 # END and this is my map file: MAP NAME test- STATUS ON EXTENT -118.391 12.2196 -86.7448 34.9394 #MEX SIZE 600 450 SYMBOLSET 'symbolstest.sym' FONTSET 'fonts.txt' IMAGETYPE GIF IMAGECOLOR 255 255 255 UNITS dd WEB IMAGEPATH '/var/www/tmp/' IMAGEURL '/tmp/' TEMPLATE '/var/www/ubicaware/Ubicatemptest.html' LOG '/var/www/tmp/Aerrorubi.log' MINSCALE 4000 #MAXSCALE END PROJECTION "proj=longlat" "ellps=GRS80" "datum=WGS84" "no_defs" END #------CUADRAS----------------------------------------------------------------- LAYER NAME cuadras TYPE POLYGON STATUS ON DEBUG ON CONNECTION "user=postgres password=ynsmptspts dbname=newgeobsi host=192.168.216.35 port=5432" CONNECTIONTYPE postgis DATA "geometria from cuadrasp as foo using unique gid using srid=4326" CLASS COLOR 251 252 200 #crema OUTLINECOLOR 153 200 153 #gris muy claro END END #----------------------------------------------------------------------- #-----CALLES------------------------------------------------------------------------- LAYER NAME calless STATUS ON TYPE LINE DEBUG ON CONNECTION "user=postgres password=ynsmptspts dbname=newgeobsi host=192.168.216.35 port=5432" CONNECTIONTYPE postgis DATA "geometria from callesl as foo using unique gid using SRID=4326" CLASSITEM "type" LABELITEM "name" #**** AUTOPISTA ********************************* CLASS EXPRESSION ('[type]' = '1') #autopista STYLE SYMBOL 3 COLOR 255 0 0 SIZE 2 ANTIALIAS true END END LABEL ANGLE AUTO TYPE TRUETYPE FONT 'arial-bold' SIZE 9 MINSIZE 8 MAXSIZE 12 POSITION auto BUFFER 4 MINDISTANCE 40 BACKGROUNDCOLOR 255 255 0 COLOR 0 0 0 ANTIALIAS TRUE PARTIALS FALSE MINFEATURESIZE 5 END END #*******************AVENIDAS**************** CLASS EXPRESSION ('[type]' = '2' or '[type]' = '21') STYLE SYMBOL 3 COLOR 200 200 200 SIZE 1 ANTIALIAS true END END LABEL ANGLE AUTO TYPE TRUETYPE FONT 'verdana' SIZE 8 MINSIZE 6 MAXSIZE 9 POSITION AUTO #uc BUFFER 6 MINDISTANCE 250 COLOR 224 0 0 ANTIALIAS TRUE PARTIALS FALSE FORCE FALSE MINFEATURESIZE AUTO END END #*********************CALLES************************* CLASS EXPRESSION ('[type]' = '10' or '[type]' = '11' or '[type]' = '12') STYLE SYMBOL 2 COLOR 99 159 255 #azul SIZE 2 ANTIALIAS true END STYLE SYMBOL 2 COLOR 255 255 255 SIZE 1 ANTIALIAS true END END LABEL ANGLE AUTO TYPE TRUETYPE FONT 'comic' SIZE 6 MINSIZE 7 MAXSIZE 12 POSITION auto BUFFER 4 MINDISTANCE 150 COLOR 0 0 0 ANTIALIAS TRUE PARTIALS FALSE FORCE TRUE MINFEATURESIZE AUTO #puede ser auto END END END #----------------------------------------------------------------------- #------LIMITES----------------------------------------------------------------- LAYER NAME limites TYPE POLYGON STATUS ON DEBUG ON CONNECTION "user=postgres password=ynsmptspts dbname=newgeobsi host=192.168.216.35 port=5432" CONNECTIONTYPE postgis DATA "geometria from limites as foo using unique gid using srid=4326" LABELITEM "name" CLASS name Estado EXPRESSION ('[type]' = '4') OUTLINECOLOR 190 99 0 #cafe fuerte COLOR 255 252 194 #crema claro LABEL TYPE BITMAP FONT 'small' SIZE MEDIUM POSITION auto BUFFER 4 MINDISTANCE 0 COLOR 0 110 255 ANTIALIAS FALSE PARTIALS FALSE MINFEATURESIZE 0 END END #-------------------------------------------------------------------------------- END # Map File any idea of what is going on? Regards, Luis From szekerest at GMAIL.COM Thu Jun 22 12:47:57 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 22 Jun 2006 21:47:57 +0200 Subject: C# MapScript - Extent of mapObj not set after object creation In-Reply-To: <20060622184222.GA16172@SDF.LONESTAR.ORG> Message-ID: Hi, Are the other parameters correct like p_map.name? Could you post a bug report attaching the sample code and the map file? Best Regards, Tamas -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Hong Sent: Thursday, June 22, 2006 8:42 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] C# MapScript - Extent of mapObj not set after object creation Hello, I have experienced problem using C# MapScript where I tried to create a mapObj using the mapObj constructor from a map file, after the object creation, the extent are not set properly. The mapfile "odessa.map" is as follows. NAME ODESSA STATUS on SIZE 684 592 EXTENT -104.10235082418987 29.77884364609445 -101.64625194665918 32.52517088808842 ... I used VB.NET to create the object: Dim p_map as mapObj = new mapObj("odessa.map") Tracking p_map through a debugger after object creation revealed that: p_map.extent.minx, p_map.extent.miny, p_map.extent.maxx, p_map.extent.maxy still have values of 0.0. My development environment: - MS Visual Studio 2003 (VB.NET) - DLLs (mapscript_csharp.dll, mapscript.dll, etc) from MS4W PHP4 Base Installer v1.5.4 - MS Windows XP Pro with IIS 5 - .NET Framework 1.1 This did not happen with older version of DLLs for MapServer 4.6. Has anyone else also used C# MapScript but with VB.NET as the programming language? Any help/suggestion appreciated. Hong -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.2/373 - Release Date: 2006.06.22. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.2/373 - Release Date: 2006.06.22. From aquiney at REFRACTIONS.NET Thu Jun 22 12:20:01 2006 From: aquiney at REFRACTIONS.NET (Adam Quiney) Date: Thu, 22 Jun 2006 12:20:01 -0700 Subject: Mapserver <-> SDE Joins In-Reply-To: <449AD0C4.2000901@pobox.com> Message-ID: Hi all, We're putting together an application that uses Mapserver to connect to an ArcSDE instance running against an SQLServer back-end. Are joins (i.e. http://mapserver.gis.umn.edu/docs/reference/mapfile/join) supported with ArcSDE connections? I know the ArcSDE page says "on-the-fly" joins are not supported, but I wasn't sure if those referred to the same thing or some other SDE-specific join? We are currently storing a set of address points in our database. We also have a many-to-one relationship between these address points and any number of aliases that they could hold. We would like to be able to perform a join between each address point and all of its aliases. Is this possible on mapserver's end, or are we limited to creating a view in SDE that will support this? Lastly, if this *can* be done in mapserver, is it possible to flatten out the aliases so that the final feature that is displayed to the browser (and that would be queried upon a get-feature-info request) would have all of the attributes of the address point, along with an attribute for each attached alias (the alternative being that we have one address point/alias feature for each address point and alias pair). Thanks, --Adam From hobu at IASTATE.EDU Thu Jun 22 13:25:29 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Thu, 22 Jun 2006 15:25:29 -0500 Subject: Mapserver <-> SDE Joins In-Reply-To: Message-ID: At 02:20 PM 6/22/2006, Adam Quiney wrote: >Hi all, > >We're putting together an application that uses Mapserver to connect to >an ArcSDE instance running against an SQLServer back-end. > >Are joins (i.e. >http://mapserver.gis.umn.edu/docs/reference/mapfile/join) supported with >ArcSDE connections? I know the ArcSDE page says "on-the-fly" joins are >not supported, but I wasn't sure if those referred to the same thing or >some other SDE-specific join? on-the-fly joins means using the JOIN directive like is possible for Shapefile and MyGIS drivers. >We are currently storing a set of address points in our database. We >also have a many-to-one relationship between these address points and >any number of aliases that they could hold. We would like to be able to >perform a join between each address point and all of its aliases. Is >this possible on mapserver's end, or are we limited to creating a view >in SDE that will support this? SDE views are going to be the only way this can be done in MapServer currently. All of the other native database drivers in MapServer provide joins by virtual of having interfaces that behave like real databases, rather than the database abstraction stuff that the SDE SDK attempts to make. I haven't been able to find a need to develop JOIN support for SDE because views were always sufficient in the instances where I needed them. >Lastly, if this *can* be done in mapserver, is it possible to flatten >out the aliases so that the final feature that is displayed to the >browser (and that would be queried upon a get-feature-info request) >would have all of the attributes of the address point, along with an >attribute for each attached alias (the alternative being that we have >one address point/alias feature for each address point and alias pair). Another advantage of using an SDE view is that you can control this when creating it. Howard From szekerest at GMAIL.COM Thu Jun 22 13:47:54 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 22 Jun 2006 22:47:54 +0200 Subject: Mapscript ,Mono, Apache and Linux : a great story In-Reply-To: Message-ID: Xavier, I have tested also with WinForms mono and runs wihout any problems using the following configuration: I have SUSE 10 libgdiplus 1.1.8 (installed from the distribution) mono 1.1.8.3-6 (installed from the distribution) compiled mapserver CVS I have compiled mapserver without SWF support that may be a difference. Would you try the CVS version without SWF compiled in? I wish i would see that error myself :-( Best Regards, Tamas -----Original Message----- From: Xavier Mauclaire [mailto:xavier.mauclaire at geoter.fr] Sent: Thursday, June 22, 2006 6:07 PM To: 'Tamas Szekeres' Cc: MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : a great story Good news tamas I changed th ouput swf to png and got the same error I don't test the program as console app yet. You will find attached the error files I installd mono from rpm package donwloaded from the mono site ans installed them without taking yast dependencies message into consid?ration. May this installation mode the source of my problems ? regards ----------------------------------------- Xavier Mauclaire Service informatique GEOTER SAS 3, rue Jean Monnet 34830 Clapiers France T?l.: +33 (0)4.67.59.18.11 Fax: +33 (0)4.67.59.18.24 Email: xavier.mauclaire at geoter.fr Web site: http://www.geoter.fr ------------------------------------------------------- -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.2/373 - Release Date: 2006.06.22. From ltrevino at GPOBSI.COM.MX Thu Jun 22 14:47:30 2006 From: ltrevino at GPOBSI.COM.MX (=?iso-8859-1?Q?Luis_Trevi=F1o_Huerta?=) Date: Thu, 22 Jun 2006 16:47:30 -0500 Subject: How can I label a Point using different postgis table Message-ID: Thanks Aaron, I choose option number 2 and included a JOIN statement like this: DATA "posicion from (select loca.cmpoid, loca.mo, loca.posicion, autos.placas as placa from loca inner join autos on loca.idunit = autos.idunit where %uad%) as foo using unique cmpoid using srid=4326" the %uad% is for filtering purposes. works OK Regards, Luis ----- Original Message ----- From: Aaron Koning To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, June 19, 2006 3:24 PM Subject: Re: [UMN_MAPSERVER-USERS] How can I label a Point using different postgis table I believe you have two options here: 1. Create a database view that joins the two tables and set your DATA variable to that view. OR 2. Modify the DATA variable to include a JOIN statement. Aaron On 6/19/06, Luis Trevi?o Huerta wrote: Hi list: I'm currenttly using a point layer that displays some GPS points that are stored on a postgis table called "loca". I'd like to label this points with data that comes from another table in the same postgis data base (this table is named "autos"), both tables share a common column named "idunit" and I would like to use autos.idunit as a label. How can I do this?. This is part of my map file: LAYER NAME gis STATUS ON TYPE POINT UNITS METERS DEBUG ON CONNECTION "user=XXX password=XXXXX dbname=bsiubica host=XXX.XXX.XXX.XX port=5432" CONNECTIONTYPE postgis DATA "posicion from loca as foo using unique cmpoid using srid=4326" PROJECTION "proj=longlat" "ellps=WGS84" "datum=WGS84" END FILTER 'idunit = %unid%' CLASS EXPRESSION ('[mo]' = '1') COLOR 255 255 26 #amarillo SYMBOL 7 SIZE 13 END END regards, Luis -- +-------------------------------------------- | 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 ljfong at SDF.LONESTAR.ORG Thu Jun 22 14:53:35 2006 From: ljfong at SDF.LONESTAR.ORG (Hong) Date: Thu, 22 Jun 2006 14:53:35 -0700 Subject: C# MapScript - Extent of mapObj not set after object creation In-Reply-To: <449af3e9.722eb852.7535.501f@mx.gmail.com> Message-ID: On Thu, Jun 22, 2006 at 09:47:57PM +0200, Tamas Szekeres wrote: > Hi, > > Are the other parameters correct like p_map.name? As far as I can tell, other parameters seem to be correct. The parameter p_map.name is correct. > Could you post a bug report attaching the sample code and the map file? Done. Bug# 1807. Thank you. > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Hong > Sent: Thursday, June 22, 2006 8:42 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] C# MapScript - Extent of mapObj not set after > object creation > > Hello, > > I have experienced problem using C# MapScript where I tried to create a > mapObj > using the mapObj constructor from a map file, after the object creation, the > extent are not set properly. > > The mapfile "odessa.map" is as follows. > > NAME ODESSA > STATUS on > SIZE 684 592 > EXTENT -104.10235082418987 29.77884364609445 -101.64625194665918 > 32.52517088808842 > ... > > I used VB.NET to create the object: > > Dim p_map as mapObj = new mapObj("odessa.map") > > Tracking p_map through a debugger after object creation revealed that: > p_map.extent.minx, p_map.extent.miny, p_map.extent.maxx, p_map.extent.maxy > still have values of 0.0. > > My development environment: > - MS Visual Studio 2003 (VB.NET) > - DLLs (mapscript_csharp.dll, mapscript.dll, etc) from MS4W PHP4 Base > Installer v1.5.4 > - MS Windows XP Pro with IIS 5 > - .NET Framework 1.1 > > This did not happen with older version of DLLs for MapServer 4.6. > > Has anyone else also used C# MapScript but with VB.NET as the programming > language? > > Any help/suggestion appreciated. > > Hong > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.9.2/373 - Release Date: 2006.06.22. > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.9.2/373 - Release Date: 2006.06.22. > From n.gilbert at SURREY.AC.UK Thu Jun 22 14:56:36 2006 From: n.gilbert at SURREY.AC.UK (Nigel Gilbert) Date: Thu, 22 Jun 2006 22:56:36 +0100 Subject: ERROR: column 'oid' does not exist Message-ID: I am trying to use mapserver with a PostGIS enabled database. However, I get the mapserver error: prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(geom)),'XDR'),OID::text from world WHERE geom && setSRID('BOX3D(-1333.33333333333 -1000,1333.33333333333 1000)'::BOX3D, find_srid('','world','geom') )' Postgresql reports the error as 'ERROR: column "oid" does not exist ' I then noticed that the documentation for PostGIS, section 4.7.1 says that I should create an oid index for the table I am wanting to display. So, following the suggestion there, I tried, in the psql monitor: create index world_oid_index on world ( oid ); ERROR: column "oid" does not exist where 'world' is the table containing my geometry column. I haven't found anything useful to help in either the PostGIS documenation or the PostgreSQL docs. What am I doing wrong? Many thanks for your help! -- Nigel From tylermitchell at SHAW.CA Thu Jun 22 15:26:07 2006 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Thu, 22 Jun 2006 15:26:07 -0700 Subject: ERROR: column 'oid' does not exist In-Reply-To: Message-ID: Hi Nigel, Creating tables with or without OIDS is an option when creating tables, but you do not 'add' an oid column. Instead when you create the table use: CREATE TABLE tablename .... WITH OIDS; So add WITH OIDS at the end of your create table statement. If you want OIDS to be created by default, then I think there is a setting in your postmaster.conf file that will enable that. Previous versions of postgresql added them by default but more recent versions (at least 8.1) turned them off by default. Hope this helps, Tyler On 22-Jun-06, at 2:56 PM, Nigel Gilbert wrote: > I am trying to use mapserver with a PostGIS enabled database. > However, I > get the mapserver error: > > prepare_database(): Query error. Error executing POSTGIS DECLARE > (the actual > query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT > asbinary(force_collection(force_2d(geom)),'XDR'),OID::text from > world WHERE > geom && setSRID('BOX3D(-1333.33333333333 -1000,1333.33333333333 > 1000)'::BOX3D, find_srid('','world','geom') )' > > Postgresql reports the error as 'ERROR: column "oid" does not exist ' > > I then noticed that the documentation for PostGIS, section 4.7.1 > says that I > should create an oid index for the table I am wanting to display. So, > following the suggestion there, I tried, in the psql monitor: > > create index world_oid_index on world ( oid ); > ERROR: column "oid" does not exist > > where 'world' is the table containing my geometry column. I > haven't found > anything useful to help in either the PostGIS documenation or the > PostgreSQL > docs. > > What am I doing wrong? > > Many thanks for your help! > > > -- > Nigel From szekerest at GMAIL.COM Thu Jun 22 16:05:21 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 23 Jun 2006 01:05:21 +0200 Subject: C# MapScript - Extent of mapObj not set after object creation In-Reply-To: <20060622215335.GA6320@SDF.LONESTAR.ORG> Message-ID: Hi, I have tested your code and worked for me. Would you compile the latest mapserver + mapscript and test with those binaries? This is not my bug tracking day :-(( Regards, Tamas -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Hong Sent: Thursday, June 22, 2006 11:54 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] C# MapScript - Extent of mapObj not set after object creation On Thu, Jun 22, 2006 at 09:47:57PM +0200, Tamas Szekeres wrote: > Hi, > > Are the other parameters correct like p_map.name? As far as I can tell, other parameters seem to be correct. The parameter p_map.name is correct. > Could you post a bug report attaching the sample code and the map file? Done. Bug# 1807. Thank you. > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Hong > Sent: Thursday, June 22, 2006 8:42 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] C# MapScript - Extent of mapObj not set after > object creation > > Hello, > > I have experienced problem using C# MapScript where I tried to create a > mapObj > using the mapObj constructor from a map file, after the object creation, the > extent are not set properly. > > The mapfile "odessa.map" is as follows. > > NAME ODESSA > STATUS on > SIZE 684 592 > EXTENT -104.10235082418987 29.77884364609445 -101.64625194665918 > 32.52517088808842 > ... > > I used VB.NET to create the object: > > Dim p_map as mapObj = new mapObj("odessa.map") > > Tracking p_map through a debugger after object creation revealed that: > p_map.extent.minx, p_map.extent.miny, p_map.extent.maxx, p_map.extent.maxy > still have values of 0.0. > > My development environment: > - MS Visual Studio 2003 (VB.NET) > - DLLs (mapscript_csharp.dll, mapscript.dll, etc) from MS4W PHP4 Base > Installer v1.5.4 > - MS Windows XP Pro with IIS 5 > - .NET Framework 1.1 > > This did not happen with older version of DLLs for MapServer 4.6. > > Has anyone else also used C# MapScript but with VB.NET as the programming > language? > > Any help/suggestion appreciated. > > Hong > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.9.2/373 - Release Date: 2006.06.22. > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.9.2/373 - Release Date: 2006.06.22. > -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.2/373 - Release Date: 2006.06.22. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.2/373 - Release Date: 2006.06.22. From ljfong at SDF.LONESTAR.ORG Thu Jun 22 17:13:13 2006 From: ljfong at SDF.LONESTAR.ORG (Hong) Date: Thu, 22 Jun 2006 17:13:13 -0700 Subject: C# MapScript - Extent of mapObj not set after object creation In-Reply-To: <449b222d.17bfefc1.33fe.ffffbf19@mx.gmail.com> Message-ID: On Fri, Jun 23, 2006 at 01:05:21AM +0200, Tamas Szekeres wrote: > Hi, > > I have tested your code and worked for me. Would you compile the latest > mapserver + mapscript and test with those binaries? > This is not my bug tracking day :-(( Ok, further testing and head scratching revealed that it was the consequence of DLL hell on my development machine. Sorry for all the noise and excitement :( Hong From ollerery at ENGR.ORST.EDU Thu Jun 22 17:27:38 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Thu, 22 Jun 2006 17:27:38 -0700 Subject: php_dbase.so In-Reply-To: <20060623001313.GB6320@SDF.LONESTAR.ORG> Message-ID: I dont not seem to have the library php_dbase.so anywhere on my system and i cant seem to find how to get it. I have compilted php 5.1.4 using: ./configure --with-dbase and mapserver 4.8.3 using: ./configure --with-php=/usr/local/include/php/ --with-dbase but neither methods seem to create the library that i need. any ideas on what else i can do? Thanks. From warmerdam at POBOX.COM Thu Jun 22 19:58:37 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 22 Jun 2006 22:58:37 -0400 Subject: query raster layer In-Reply-To: <449ACCCB.7040705@jrc.it> Message-ID: Giorgio Libert? wrote: > the raster file is a compressed tif generated using GDAL utils. > > When I try a WMS GetFeatureInfo I got the following error: > > > msDrawShape(): General error message. Unknown layer type. > > > > Please can you help me. What's wrong with my layer? > Maybe the definition is not complete? Giorgio, I implemented the raster query support, and I never tested using it to support a WMS GetFeatureInfo. I suspect the code isn't setup properly to handle it. However, it would help if you gave more detail. What was your exact GetFeatureInfo request for instance? Ultimately, if you would like me to look into it in detail you will need to provide a mapfile, supporting data, and the exact url I can use to invoke mapserver to reproduce the problem. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From richard.greenwood at GMAIL.COM Thu Jun 22 20:24:34 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 22 Jun 2006 21:24:34 -0600 Subject: dBox dLegend raster/vector images Message-ID: I'm playing with dBox (nice stuff Steve!) converting the example to my own data. Only hitch is my legend has the 'broken link' image for all of my vector layer keyimages. For a raster layer you specify: KEYIMAGE /path/to/keyimage.png But what do you need to get a keyimage for vector layer? thanks, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From aaronkoning at GMAIL.COM Thu Jun 22 20:50:56 2006 From: aaronkoning at GMAIL.COM (Aaron Koning) Date: Thu, 22 Jun 2006 20:50:56 -0700 Subject: ERROR: column 'oid' does not exist In-Reply-To: Message-ID: If you imported the spatial layer with shp2pgsql or OGR programs, their should be a unique id field already (e.g. 'gid' with shp2pgsql). You can tell MapServer to use this unique id field instead of oid in the LAYER -> DATA variable of your MapFile. Example: DATA "the_geom FROM roads AS foo USING UNIQUE gid" Aaron On 6/22/06, Nigel Gilbert wrote: > > I am trying to use mapserver with a PostGIS enabled database. However, I > get the mapserver error: > > prepare_database(): Query error. Error executing POSTGIS DECLARE (the > actual > query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT > asbinary(force_collection(force_2d(geom)),'XDR'),OID::text from world > WHERE > geom && setSRID('BOX3D(-1333.33333333333 -1000,1333.33333333333 > 1000)'::BOX3D, find_srid('','world','geom') )' > > Postgresql reports the error as 'ERROR: column "oid" does not exist ' > > I then noticed that the documentation for PostGIS, section 4.7.1 says that > I > should create an oid index for the table I am wanting to display. So, > following the suggestion there, I tried, in the psql monitor: > > create index world_oid_index on world ( oid ); > ERROR: column "oid" does not exist > > where 'world' is the table containing my geometry column. I haven't found > anything useful to help in either the PostGIS documenation or the > PostgreSQL > docs. > > What am I doing wrong? > > Many thanks for your help! > > > -- > Nigel > -- +-------------------------------------------- | 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 tylermitchell at SHAW.CA Thu Jun 22 22:56:38 2006 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Thu, 22 Jun 2006 22:56:38 -0700 Subject: ERROR: column 'oid' does not exist In-Reply-To: <1319fbba0606222050q7af27968n9902c64780902cac@mail.gmail.com> Message-ID: On 22-Jun-06, at 8:50 PM, Aaron Koning wrote: > If you imported the spatial layer with shp2pgsql or OGR programs, > their should be a unique id field already (e.g. 'gid' with > shp2pgsql). You can tell MapServer to use this unique id field > instead of oid in the LAYER -> DATA variable of your MapFile. > > Example: > DATA "the_geom FROM roads AS foo USING UNIQUE gid" > That's a much better - thanks Aaron. I'm told by postgresql gurus not to ever use the oid... that it should only be used for internal database key purposes and cannot be relied on as stable. Oh well, thanks for pointing out a better option. Tyler From absarzaidi at YAHOO.COM Fri Jun 23 00:30:58 2006 From: absarzaidi at YAHOO.COM (absar ali) Date: Fri, 23 Jun 2006 00:30:58 -0700 Subject: No query layer defined Message-ID: GRRRRRRRRRRRRRR, i am using the following line to query the map window.open("/cgi-bin/mapserv.exe?map=karachi.map&mode=ITEMQUERY&qstring=charge&layer=charge_region"); actually stive lime gave me this, but its giving following error "msQueryByAttribute():General error message. No query layer defined" below is my map file, please check is there any thing wrong in my map file. I am using ka-map as my map client. my kamap is woring fine it displays all the layers but the hell query is not woring another thing my maps are not georeferenced so i cant use QueryByPoint. Please help me n guide me i am very depressed. Regards, Absar Ali ____________________________________________________ NAME Karachi STATUS ON SIZE 800 600 SHAPEPATH "karachiShape" WEB IMAGEPATH "C:/tmp/" IMAGEURL "C:/tmp/" END EXTENT 40.2283 -5.55177 49.7201 1.8823 UNITS dd IMAGECOLOR 255 255 255 IMAGETYPE png QUERYMAP STATUS ON # the map is queryable by default STYLE HILITE # the selected object is highligthed COLOR 255 0 0 SIZE -1 -1 END LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END LAYER NAME charge_region TEMPLATE "template/ka.html" METADATA "queryable" "true" END TYPE POLYGON STATUS ON DATA CHARGE_region LABELITEM "name" CLASS NAME "CHARGE_region" COLOR 146 154 155 OUTLINECOLOR 43 170 115 LABEL MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END END LAYER NAME circle_region TEMPLATE "template/ka.html" METADATA "queryable" "true" END TYPE POLYGON STATUS OFF DATA CIRCLE_region LABELITEM "name" CLASS NAME "CIRCLE_region" COLOR 90 15 155 OUTLINECOLOR 200 205 133 LABEL MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END END LAYER NAME important_locations_point METADATA "queryable" "true" END TYPE POINT STATUS OFF DATA "IMPORTANT LOCATIONS_point" CLASS NAME "IMPORTANT LOCATIONS_point" END END LAYER NAME town_region TEMPLATE "template/ka.html" METADATA "queryable" "true" END TYPE POLYGON STATUS OFF DATA TOWN_region LABELITEM "name" CLASS NAME "TOWN_region" COLOR 77 224 186 OUTLINECOLOR 244 237 138 LABEL MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END END LAYER NAME town_text TEMPLATE "template/ka.html" METADATA "queryable" "true" END TYPE POINT STATUS OFF DATA TOWN_text CLASS NAME "TOWN_text" END END LAYER NAME union_council_region TEMPLATE "template/ka.html" METADATA "queryable" "true" END TYPE POLYGON STATUS ON DATA "UNION COUNCIL_region" LABELITEM "name" CLASS NAME "UNION COUNCIL_region" COLOR 37 118 61 OUTLINECOLOR 220 54 199 LABEL MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END END END --------------------------------- Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better. -------------- next part -------------- An HTML attachment was scrubbed... URL: From madprof at GMX.CH Fri Jun 23 00:47:17 2006 From: madprof at GMX.CH (Daniel Goetz) Date: Fri, 23 Jun 2006 09:47:17 +0200 Subject: Having trouble with running a demo In-Reply-To: <980cfe070606220757t1a0d2acke0c9ad92daa7d14d@mail.gmail.com> Message-ID: Hi Jie, in my opinion you have to do the following: at first you have to repalce "mapserv40" by "mapserv.exe" everywhere it appears in the index.html. then you have to change "/usr/local/www/docs/mapserver_demos/workshop/itasca.map" in "/ms4w/apache/htdocs/workshop/itasca.map". Also change "/mapserver_demos/workshop" in "/workshop" Then create a directory called "tmp" in c:/ms4w/apache/htdocs. After you have done that change "/usr/local/www/docs/tmp/" in "/ms4w/apache/htdocs/tmp/". Save your changes in the index.html, run your browser and go to http://localhost/workshop/index.html Now the demo should work fine. regards Daniel -------- Original-Nachricht -------- Datum: Thu, 22 Jun 2006 10:57:56 -0400 Von: Jie Tian An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: [UMN_MAPSERVER-USERS] Having trouble with running a demo > > Hi friends, > > > > I am having trouble with running a demo. My working directory is > > C:\ms4w\Apache\htdocs\workshop. Detailed directory is shown in the > > attachment. > > All the data and the html files are in the folder 'workshop'. I am > > supposed to modify the index.hml file to get it work correctly. > > The html is like below: > > > > > > > > > > MapServer Itasca Application > > > > > > > > > >

    MapServer Itasca Application

    > >


    > > This demonstration application will take you through various levels > of > > complexity. Starting with a basic application that > > allows a user to pan/zoom and change layers we add: > >

      > >
    • dynamically configured scalebars > >
    • javascript-based panning > >
    • query results to a frame > >
    • and finally, a DHTML rubber-band zoom/query capabilty > >
    > > The base data is the old-reliable Itasca dataset that we know and > > love... > > > > > >
    > onSubmit="submit_form()"> > > > > > > > > > > > > > > > value="/usr/local/www/docs/mapserver_demos/workshop/itasca.map"> > > > > value="/mapserver_demos/workshop"> > > > value="/usr/local/www/docs/tmp/"> > > > > > > > > > > > >
    > > > >


    > > > > > > > > I have tried all the ways to get it work. But I just couldn't get it > right > > cuz I am not good at html. Hope I can get help from any of you. > > Thanks in advance. > > > > > > -- > > Jie Tian > > Laboratory of Geographical Information & Spatial Analysis (LaGISA) > > Department of Geography, Queen's University > > Kingston, Ontario, Canada > > -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From absarzaidi at YAHOO.COM Fri Jun 23 01:20:02 2006 From: absarzaidi at YAHOO.COM (absar ali) Date: Fri, 23 Jun 2006 01:20:02 -0700 Subject: templete problem Message-ID: i am using the following line to query the map window.open("/cgi-bin/mapserv.exe?map paramerters......................."); but it just prints . Code No [codeno] Name [name] why it is not printing any value, below is my html file. Data Template

  • Code No [codeno]
  • Name [name]
  • --------------------------------- Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Fri Jun 23 01:58:56 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 23 Jun 2006 10:58:56 +0200 Subject: query raster layer In-Reply-To: <449B58DD.2050302@pobox.com> Message-ID: Frank, I can confirm raster queries work in WMS GetFeatureInfo. We have been using it since we upgraded to 4.8.1. Best regards, Bart Frank Warmerdam wrote: > Giorgio Libert? wrote: > >> the raster file is a compressed tif generated using GDAL utils. >> >> When I try a WMS GetFeatureInfo I got the following error: >> >> >> msDrawShape(): General error message. Unknown layer type. >> >> >> >> Please can you help me. What's wrong with my layer? >> Maybe the definition is not complete? > > > Giorgio, > > I implemented the raster query support, and I never tested using it > to support a WMS GetFeatureInfo. I suspect the code isn't setup properly > to handle it. However, it would help if you gave more detail. What > was your exact GetFeatureInfo request for instance? Ultimately, if you > would like me to look into it in detail you will need to provide a > mapfile, supporting data, and the exact url I can use to invoke > mapserver to reproduce the problem. > > Best regards, -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From D.Stone at ED.AC.UK Fri Jun 23 03:40:06 2006 From: D.Stone at ED.AC.UK (DjwStone) Date: Fri, 23 Jun 2006 03:40:06 -0700 Subject: NQUERY problem Message-ID: I am having trouble querying point layers with CGI Mapserver. First I browse one or more layers specifying name and date criteria, and this returns the correct points on the map. If I switch to query mode, and click one of the points, the query template comes back with one hit (also correct) even if there should be several (from the doc, this seems to be as designed). In nquery mode however, I get the correct number of hits displayed with [nr], but their attributes are all identical!! I suspect I'm not processing properly in the query template, but I can't find an example. Here's the query template: Result no.: [lrn]
    Dedication Ref.: [dr]
    Dedication Type: [dedicationtype]
    Dedication date (range): [deddlo] - [deddhi]
    Saint Ref.: [saintid]
    Saint Name: [stdname]
    Description: [stdesc]
    Confidence: [reftostconf]%
    Location Ref.: [locationref] ([placename])
    Any suggestions/help very gratefully received! Dave -- View this message in context: http://www.nabble.com/NQUERY-problem-t1835570.html#a5009596 Sent from the Mapserver - User forum at Nabble.com. From marcoscobena at GMAIL.COM Fri Jun 23 03:46:22 2006 From: marcoscobena at GMAIL.COM (=?UTF-8?Q?Marcos_Cobe=C3=B1a?=) Date: Fri, 23 Jun 2006 12:46:22 +0200 Subject: msWMSLoadGetParams In-Reply-To: <1150989144.11069.1.camel@localhost.localdomain> Message-ID: Hi Alexander, I think you should use PROJECTION tag to define projection used in your different layers. Something like: PROJECTION "init=EPSG:4031" END We'll be waiting for your feedback, good luck! Regards, 2006/6/22, Alexander Rodr?guez Torres : > I receive this error when I try load my map > > msWMSLoadGetMapParams():Invalid SRS given:SRS must be valid for all > request layers > > Somebody can help me???? > > This is my .map > > MAP > NAME "Mapa de la UCI" > STATUS ON > EXTENT 9387137.4 805683.77 10119140.81 1507910.77 > SIZE 500 500 > SHAPEPATH "/var/www/localhost/htdocs/MapaPost/data" > SYMBOLSET "/var/www/localhost/htdocs/MapaPost/etc/symbols.sym" > FONTSET "/var/www/localhost/htdocs/MapaPost/etc/fonts.txt" > IMAGETYPE PNG > IMAGECOLOR 174 183 207 > UNITS METERS > TEMPLATEPATTERN "UCI" > WEB > MINSCALE 259371 > IMAGEPATH "/temp/" > TEMPLATE mapa.html > HEADER mapa_header.html > > IMAGEURL "/temp/" > END > REFERENCE > STATUS ON > IMAGE "/var/www/localhost/htdocs/MapaPost/images/keymap.png" > SIZE 88 69 > EXTENT 9387137.4 805683.77 10119140.81 1507910.77 > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > MINBOXSIZE 3 > MAXBOXSIZE 0 > MARKER 0 > MARKERSIZE 0 > END > QUERYMAP > STATUS OFF > SIZE -1 -1 > COLOR 255 0 0 > STYLE HILITE > END > # > # Start of legend object > # > LEGEND > STATUS ON > IMAGECOLOR 255 255 255 > POSITION LL > KEYSIZE 18 12 > KEYSPACING 5 5 > TEMPLATE "ttt" > LABEL > TYPE BITMAP > SIZE MEDIUM > OFFSET 0 0 > BUFFER 0 > MINDISTANCE -1 > MINFEATURESIZE -1 > COLOR 0 0 89 > PARTIALS TRUE > FORCE FALSE > END > END > # > # Start of scalebar object > # > SCALEBAR > STATUS ON > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > BACKGROUNDCOLOR 0 0 0 > IMAGECOLOR 255 255 255 > UNITS KILOMETERS > INTERVALS 5 > SIZE 150 5 > STYLE 0 > POSITION LL > LABEL > TYPE BITMAP > SIZE SMALL > OFFSET 0 0 > BUFFER 0 > MINDISTANCE -1 > MINFEATURESIZE -1 > COLOR 0 0 0 > PARTIALS TRUE > FORCE TRUE > END > END > # > # Start of OutputFormat object > # > OUTPUTFORMAT > NAME "png" > MIMETYPE "image/png" > DRIVER "GD/PNG" > EXTENSION "png" > IMAGEMODE PC256 > TRANSPARENT FALSE > END > LAYER > NAME "Contornos" > STATUS ON > CONNECTIONTYPE POSTGIS > CONNECTION "user=postgres dbname=siguci host=localhost" > CLASSITEM "the_geom" > DATA "the_geom from contornos" > TYPE POLYGON > CLASS > NAME "contornos" > TEMPLATE "" > STYLE > SYMBOL 0 > COLOR 0 128 0 > OUTLINECOLOR 0 0 0 > END > > > END > END > LAYER > NAME "Viales" > STATUS ON > CONNECTIONTYPE POSTGIS > CONNECTION "user=postgres dbname=siguci host=localhost" > CLASSITEM "the_geom" > DATA "the_geom from viales" > TYPE LINE > CLASS > NAME "viales" > TEMPLATE "" > STYLE > SYMBOL 0 > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > END > END > END > LAYER > NAME "Areas deportivas" > STATUS ON > CONNECTIONTYPE POSTGIS > CONNECTION "user=postgres dbname=siguci host=localhost" > CLASSITEM "the_geom" > DATA "the_geom from areasdeportivas" > TYPE POLYGON > CLASS > NAME "areasdeportivas" > TEMPLATE "deportivas.html" > STYLE > SYMBOL 0 > COLOR 255 255 0 > OUTLINECOLOR 0 0 0 > END > END > #HEADER "deportivas_header.html" > > END > LAYER > NAME "Separadores" > STATUS ON > CONNECTIONTYPE POSTGIS > CONNECTION "user=postgres dbname=siguci host=localhost" > CLASSITEM "the_geom" > DATA "the_geom from separadores" > TYPE POLYGON > CLASS > NAME "separadores" > TEMPLATE "" > STYLE > SYMBOL 0 > COLOR 0 128 0 > OUTLINECOLOR 0 0 0 > END > END > END > LAYER > NAME "Manzanas" > STATUS ON > CONNECTIONTYPE POSTGIS > CONNECTION "user=postgres dbname=siguci host=localhost" > CLASSITEM "the_geom" > DATA "the_geom from manzanas" > TYPE POLYGON > CLASS > NAME "manzanas" > TEMPLATE "manzanas.html" > STYLE > SYMBOL 0 > COLOR 255 232 208 > OUTLINECOLOR 0 0 0 > END > END > #HEADER "manzanas_header.html" > # FOOTER "manzanas_footer.html" > > END > LAYER > NAME "Edificios" > STATUS ON > CONNECTIONTYPE POSTGIS > CONNECTION "user=postgres dbname=siguci host=localhost" > CLASSITEM "the_geom" > DATA "the_geom from edificios" > TYPE POLYGON > CLASS > NAME "edificios" > TEMPLATE "edificios.html" > STYLE > SYMBOL 0 > COLOR 192 192 192 > OUTLINECOLOR 0 0 0 > END > END > #HEADER "edificios_header.html" > #FOOTER "edificios_footer.html" > > END > END > > -- > Ing. Alexander Rodriguez Torres. > Universidad de las Ciencias Informaticas. > E-Mail:atorres at estudiantes.uci.cu > -- Marcos - http://www.youcannoteatbits.org From bartvde at XS4ALL.NL Fri Jun 23 03:57:57 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 23 Jun 2006 12:57:57 +0200 Subject: msWMSLoadGetParams In-Reply-To: <67c29c7c0606230346k441766c2g64c7ea4c673e59f8@mail.gmail.com> Message-ID: Please note you need to use lowercase epsg in PROJECTION blocks. At least on Linux this is case-sensitive. Best regards, Bart Marcos Cobe?a wrote: > Hi Alexander, > > I think you should use PROJECTION tag to define projection used in > your different layers. Something like: > > PROJECTION > "init=EPSG:4031" > END > > We'll be waiting for your feedback, good luck! > > Regards, > > 2006/6/22, Alexander Rodr?guez Torres : > >> I receive this error when I try load my map >> >> msWMSLoadGetMapParams():Invalid SRS given:SRS must be valid for all >> request layers >> >> Somebody can help me???? >> >> This is my .map >> >> MAP >> NAME "Mapa de la UCI" >> STATUS ON >> EXTENT 9387137.4 805683.77 10119140.81 1507910.77 >> SIZE 500 500 >> SHAPEPATH "/var/www/localhost/htdocs/MapaPost/data" >> SYMBOLSET "/var/www/localhost/htdocs/MapaPost/etc/symbols.sym" >> FONTSET "/var/www/localhost/htdocs/MapaPost/etc/fonts.txt" >> IMAGETYPE PNG >> IMAGECOLOR 174 183 207 >> UNITS METERS >> TEMPLATEPATTERN "UCI" >> WEB >> MINSCALE 259371 >> IMAGEPATH "/temp/" >> TEMPLATE mapa.html >> HEADER mapa_header.html >> >> IMAGEURL "/temp/" >> END >> REFERENCE >> STATUS ON >> IMAGE "/var/www/localhost/htdocs/MapaPost/images/keymap.png" >> SIZE 88 69 >> EXTENT 9387137.4 805683.77 10119140.81 1507910.77 >> COLOR -1 -1 -1 >> OUTLINECOLOR 255 0 0 >> MINBOXSIZE 3 >> MAXBOXSIZE 0 >> MARKER 0 >> MARKERSIZE 0 >> END >> QUERYMAP >> STATUS OFF >> SIZE -1 -1 >> COLOR 255 0 0 >> STYLE HILITE >> END >> # >> # Start of legend object >> # >> LEGEND >> STATUS ON >> IMAGECOLOR 255 255 255 >> POSITION LL >> KEYSIZE 18 12 >> KEYSPACING 5 5 >> TEMPLATE "ttt" >> LABEL >> TYPE BITMAP >> SIZE MEDIUM >> OFFSET 0 0 >> BUFFER 0 >> MINDISTANCE -1 >> MINFEATURESIZE -1 >> COLOR 0 0 89 >> PARTIALS TRUE >> FORCE FALSE >> END >> END >> # >> # Start of scalebar object >> # >> SCALEBAR >> STATUS ON >> COLOR 255 255 255 >> OUTLINECOLOR 0 0 0 >> BACKGROUNDCOLOR 0 0 0 >> IMAGECOLOR 255 255 255 >> UNITS KILOMETERS >> INTERVALS 5 >> SIZE 150 5 >> STYLE 0 >> POSITION LL >> LABEL >> TYPE BITMAP >> SIZE SMALL >> OFFSET 0 0 >> BUFFER 0 >> MINDISTANCE -1 >> MINFEATURESIZE -1 >> COLOR 0 0 0 >> PARTIALS TRUE >> FORCE TRUE >> END >> END >> # >> # Start of OutputFormat object >> # >> OUTPUTFORMAT >> NAME "png" >> MIMETYPE "image/png" >> DRIVER "GD/PNG" >> EXTENSION "png" >> IMAGEMODE PC256 >> TRANSPARENT FALSE >> END >> LAYER >> NAME "Contornos" >> STATUS ON >> CONNECTIONTYPE POSTGIS >> CONNECTION "user=postgres dbname=siguci host=localhost" >> CLASSITEM "the_geom" >> DATA "the_geom from contornos" >> TYPE POLYGON >> CLASS >> NAME "contornos" >> TEMPLATE "" >> STYLE >> SYMBOL 0 >> COLOR 0 128 0 >> OUTLINECOLOR 0 0 0 >> END >> >> >> END >> END >> LAYER >> NAME "Viales" >> STATUS ON >> CONNECTIONTYPE POSTGIS >> CONNECTION "user=postgres dbname=siguci host=localhost" >> CLASSITEM "the_geom" >> DATA "the_geom from viales" >> TYPE LINE >> CLASS >> NAME "viales" >> TEMPLATE "" >> STYLE >> SYMBOL 0 >> COLOR 255 0 0 >> OUTLINECOLOR 0 0 0 >> END >> END >> END >> LAYER >> NAME "Areas deportivas" >> STATUS ON >> CONNECTIONTYPE POSTGIS >> CONNECTION "user=postgres dbname=siguci host=localhost" >> CLASSITEM "the_geom" >> DATA "the_geom from areasdeportivas" >> TYPE POLYGON >> CLASS >> NAME "areasdeportivas" >> TEMPLATE "deportivas.html" >> STYLE >> SYMBOL 0 >> COLOR 255 255 0 >> OUTLINECOLOR 0 0 0 >> END >> END >> #HEADER "deportivas_header.html" >> >> END >> LAYER >> NAME "Separadores" >> STATUS ON >> CONNECTIONTYPE POSTGIS >> CONNECTION "user=postgres dbname=siguci host=localhost" >> CLASSITEM "the_geom" >> DATA "the_geom from separadores" >> TYPE POLYGON >> CLASS >> NAME "separadores" >> TEMPLATE "" >> STYLE >> SYMBOL 0 >> COLOR 0 128 0 >> OUTLINECOLOR 0 0 0 >> END >> END >> END >> LAYER >> NAME "Manzanas" >> STATUS ON >> CONNECTIONTYPE POSTGIS >> CONNECTION "user=postgres dbname=siguci host=localhost" >> CLASSITEM "the_geom" >> DATA "the_geom from manzanas" >> TYPE POLYGON >> CLASS >> NAME "manzanas" >> TEMPLATE "manzanas.html" >> STYLE >> SYMBOL 0 >> COLOR 255 232 208 >> OUTLINECOLOR 0 0 0 >> END >> END >> #HEADER "manzanas_header.html" >> # FOOTER "manzanas_footer.html" >> >> END >> LAYER >> NAME "Edificios" >> STATUS ON >> CONNECTIONTYPE POSTGIS >> CONNECTION "user=postgres dbname=siguci host=localhost" >> CLASSITEM "the_geom" >> DATA "the_geom from edificios" >> TYPE POLYGON >> CLASS >> NAME "edificios" >> TEMPLATE "edificios.html" >> STYLE >> SYMBOL 0 >> COLOR 192 192 192 >> OUTLINECOLOR 0 0 0 >> END >> END >> #HEADER "edificios_header.html" >> #FOOTER "edificios_footer.html" >> >> END >> END >> >> -- >> Ing. Alexander Rodriguez Torres. >> Universidad de las Ciencias Informaticas. >> E-Mail:atorres at estudiantes.uci.cu >> > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From giorgio.liberta at JRC.IT Fri Jun 23 04:52:08 2006 From: giorgio.liberta at JRC.IT (=?ISO-8859-1?Q?Giorgio_Libert=E0?=) Date: Fri, 23 Jun 2006 13:52:08 +0200 Subject: query raster layer In-Reply-To: <449B58DD.2050302@pobox.com> Message-ID: Dear Frank, Thank you for your replay. For the moment I can not give you access to this part because I am developing this new functionality and the all stuff is on my intranet. Sorry. But anyway to give you more info: 1. I am using mapserver 4.8.3 with GDAL 1.2.6 2. the url example is dev-effis.h07.jrc.it/mapserv/WmsEffis?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=landcover&QUERY_LAYERS=landcover&FEATURE_COUNT=100&BBOX=-7.366837147853632,32.29370224938404,10.613480010522485,50.02771369326186&WIDTH=730&HEIGHT=720&X=192&Y=488&INFO_FORMAT=text/html 3. when I use the GetCapabilities the layer 'landcover' is queryable=1 thx & ciao Frank Warmerdam wrote: > Giorgio Libert? wrote: > >> the raster file is a compressed tif generated using GDAL utils. >> >> When I try a WMS GetFeatureInfo I got the following error: >> >> >> msDrawShape(): General error message. Unknown layer type. >> >> >> >> Please can you help me. What's wrong with my layer? >> Maybe the definition is not complete? > > > Giorgio, > > I implemented the raster query support, and I never tested using it > to support a WMS GetFeatureInfo. I suspect the code isn't setup properly > to handle it. However, it would help if you gave more detail. What > was your exact GetFeatureInfo request for instance? Ultimately, if you > would like me to look into it in detail you will need to provide a > mapfile, supporting data, and the exact url I can use to invoke > mapserver to reproduce the problem. > > Best regards, -- ------------------------------------------------ Giorgio Libert? European Commission - DG Joint Research Center Institute for Environment and Sustainability Land Management & Natural Hazards Unit TP 261, via Fermi Ispra (VA), 21020 Italy e-mail: giorgio.liberta at jrc.it Phone: +39 0332 785309 Fax: +39 0332 789074 Mobile: +39 340 2566207 ------------------------------------------------ The views expressed are purely those of the writer and may not in any circumstances be regarded as stating an official position of the European Commission. From szekerest at GMAIL.COM Fri Jun 23 05:07:48 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 23 Jun 2006 14:07:48 +0200 Subject: Mapscript ,Mono, Apache and Linux : a great story (heap corruption with geos) Message-ID: Xavier, After compiling with geos support i have found similar problems: Mono-INFO: DllImport loading library: './libmapscript.so'. Mono-INFO: Searching for 'CSharp_mapObj_getLayerByName'. Mono-INFO: Probing 'CSharp_mapObj_getLayerByName'. Mono-INFO: Found as 'CSharp_mapObj_getLayerByName'. Mono-INFO: DllImport attempting to load: 'libmapscript.so'. Mono-INFO: DllImport loading location: 'libmapscript.so'. Mono-INFO: DllImport error loading library: 'libmapscript.so: nem lehet megnyitni megosztott objektum f??jlt: Nincs ilyen f??jl vagy k??nyvt??r'. Mono-INFO: DllImport loading library: './libmapscript.so'. Mono-INFO: Searching for 'CSharp_layerObj_open'. Mono-INFO: Probing 'CSharp_layerObj_open'. Mono-INFO: Found as 'CSharp_layerObj_open'. Mono-INFO: DllImport attempting to load: 'libmapscript.so'. Mono-INFO: DllImport loading location: 'libmapscript.so'. Mono-INFO: DllImport error loading library: 'libmapscript.so: nem lehet megnyitni megosztott objektum f??jlt: Nincs ilyen f??jl vagy k??nyvt??r'. Mono-INFO: DllImport loading library: './libmapscript.so'. Mono-INFO: Searching for 'CSharp_layerObj_getFeature'. Mono-INFO: Probing 'CSharp_layerObj_getFeature'. Mono-INFO: Found as 'CSharp_layerObj_getFeature'. *** glibc detected *** malloc(): memory corruption: 0x08657d78 *** without geos support the program runs correctly (even with swf support) Would you test your application without geos compiled in? Regards, Tamas 2006/6/23, Xavier Mauclaire : > Under windows > > > C:\Documents and Settings\xavier.mauclaire>mapserv -v > MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPO > RTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > SUPPO > RTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL > INPUT=SH > APEFILE DEBUG=MSDEBUG > > > Under linux > > pclinux:/opt/mapserver # mapserv -v > MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=THREADS > SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > pclinux:/opt/mapserver # > > regards > > > ----------------------------------------- > Xavier Mauclaire > Service informatique > GEOTER SAS > 3, rue Jean Monnet > 34830 Clapiers France > T?l.: +33 (0)4.67.59.18.11 > Fax: +33 (0)4.67.59.18.24 > Email: xavier.mauclaire at geoter.fr > Web site: http://www.geoter.fr > ------------------------------------------------------- > From jdege at KORTERRA.COM Fri Jun 23 08:09:33 2006 From: jdege at KORTERRA.COM (Jeff Dege) Date: Fri, 23 Jun 2006 10:09:33 -0500 Subject: Thread-safety in mapscript_csharp.dll? Message-ID: I'm just beginning with mapserver, and I'm evaluating different possibilities. In our shop, Windows/IIS/ASP.NET/C# would be the preferred approach. Using the compiled ASP.NET 1.1 DLLs from MS4W, I've had no difficulty getting mapscript_csharp.dll to work. But the docs are full of warnings about lack of thread safety. The installation instructions for PHP_mapscript indicate that PHP should be installed to run in CGI mode, rather than in ISAPI mode, so that a separate instance of the mapscript DLLs are loaded for each request - because the mapscript DLLs aren't threadsafe. I'm assuming that the problem is still there when using the C# wrappers. Is there something I need to do, when using mapscript_csharp.dll from IIS, to prevent this problem? Something I need to set in the configuration or the code so that the ASP.NET pages are run as CGI? I'd really hate to waste too much time building on top of mapscript_csharp, only to find that it won't work reliably once multiple users start accessing it. Answers, or pointers to docs, would be appreciated. Thanks. From aiandolo at GRUPPOAS.IT Fri Jun 23 07:38:37 2006 From: aiandolo at GRUPPOAS.IT (Antonio Iandolo) Date: Fri, 23 Jun 2006 16:38:37 +0200 Subject: Deleting from a shapefile Message-ID: Hi all, I have a shapefile where I append points (permanently, not inline) using the php-mapscript addPoint method. My question is: is there a way to permanently delete points from such a shapefile? I could create a new temporary shapefile with all the same points except the deleted one, but it doesn't seem to me a great solution... Thanks in advance, Antonio From szekerest at GMAIL.COM Fri Jun 23 08:31:07 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 23 Jun 2006 17:31:07 +0200 Subject: JavaMapscript SIGSEGV In-Reply-To: <5341EB12706351489DEFADBFEF06CC684123DF@mercurio.sc.com> Message-ID: Hi, Enabling GEOS support for Makefile.in should fix this problem. Otherwise the shapeObj size is different for mapscript and mapserver causing heap corruption. Tamas 2006/6/12, Rodriguez, Heraldo : > Hi guys, > I have started developing with java mapscript and I have the same > problems with the shapeObj class. > Every time I want to create a new shape I get the message > > # > > # An unexpected error has been detected by HotSpot Virtual Machine: > > # > > # SIGSEGV (0xb) at pc=0x00002aaaaae43d5b, pid=23120, tid=46912501734144 > > # > > # Java VM: Java HotSpot(TM) Client VM (1.4.2_11-b06 mixed mode) > > # Problematic frame: > ... > > I am using mapserver 4.8.1 with java 1.4.2_11 version under Debian 3.1. > > Mapserver Compiling options > ./configure --with-freetype=/usr/local/bin/freetype-config > --with-zlib=/usr/lib --with-png=/usr/local/lib --with-jpeg=/usr/lib > --with-libiconv=/usr/local/lib --with-gd=/usr/local/bin/gdlib-config > --with-pdf=/usr/local/lib --with-proj=/usr/local/lib --with-threads > --with-geos=/usr/local/bin/geos-config --with-ogr=/usr/local/bin/gdal-config > --with-gdal=/usr/local/bin/gdal-config > --with-postgis=/usr/local/pgsql/bin/pg_config --with-wfs --with-wcs > --with-wmsclient --with-curl-config=/usr/local/bin/curl-config > > Steps to compile java mapscript > Run make > Make interface (swig version 1.3.29) > Make all > > I looked for a solution in google and mapserver documentation without > success. Could you please give me a clue to solve this? Thanks in > advance. > Best regards. > > > > Heraldo G. Rodriguez > hrodriguez at siscat.com.ar > TE 4326-4002 int 255 > Dpto. Desarrollo > Sistemas Catastrales S.A > > > > -----Mensaje original----- > De: Andre Sachs [mailto:asachs at CLUE.CO.ZA] > Enviado el: mi?rcoles, 31 de mayo de 2006 5:16 > Para: MAPSERVER-USERS at LISTS.UMN.EDU > Asunto: Re: [UMN_MAPSERVER-USERS] JavaMapscript SIGSEGV > > On 31 May 2006, at 8:37 AM, Umberto Nicoletti wrote: > > > Andre, could you report whether the patch attached to gentoo bugzilla > > works or not? > > Hi Umberto, > > Sorry for not replying earlier. > > The patch works in a 32 intel environment, thanks ! > > Due to time constraints on my current project I ditched my AMD 64, > Java 1.5 64 bit environment in favour of Intel 32 bit and this has > resolved my problem. > > The problems I experienced are somewhere in the application stack, > either in : > - Sun's 64 bit 1.5 jdk > - Gentoo's glibc 2.3.5-r2 > - Linux kernel 2.6.16 > > Once my current project is over (+- 3 weeks) I will be have some > spare time to hunt down the culprit. > > Regards, > Andre > -- > Andre Sachs > IT Architect, Clue Technologies PTY (LTD) > email: andre at clue.co.za > From mljacks2 at HOTMAIL.COM Fri Jun 23 08:45:43 2006 From: mljacks2 at HOTMAIL.COM (M.L. Jackson) Date: Fri, 23 Jun 2006 10:45:43 -0500 Subject: WMS Layer Problem Message-ID: Hi, I'm new to the Mapserver Listserv. I am having problems displaying the wms layer on my map. My problem is that I don't see any aerial shots at all. It is as if the map is being drawn without the layer. Here is a snippet out of my map file where the wms layer is defined: LAYER NAME "photo" STATUS DEFAULT TYPE RASTER MINSCALE 10000 #MAXSCALE 10000 CONNECTIONTYPE WMS CONNECTION "http://terraservice.net/OgcMap.ashx?" METADATA "wms_srs" "EPSG:4326" "wms_title" "Orthophoto" "wms_name" "DOQ" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_layers" "doq" "wms_group_title" "background" "wms_onlineresource" "http://terraservice.net/OgcMap.ashx?" "wms_latlonboundingbox" "-170 -60 15 75" #"wms_connectiontimeout" "120" END PROJECTION "init=epsg:4326" END DEBUG ON END BTW, my map extent is -178.21759836236586 18.924781799316406 -66.96927103600244 71.40623535327121. Thanks for your reply. _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From umberto.nicoletti at GMAIL.COM Fri Jun 23 11:43:06 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 23 Jun 2006 20:43:06 +0200 Subject: Thread-safety in mapscript_csharp.dll? In-Reply-To: <3BF1166FC5125A47ABB8FD2F2EE5FDD2353E57@mrburns.KorOffice.korterra.com> Message-ID: This document discusses what features are safe to use and what aren't: http://mapserver.gis.umn.edu/docs/faq/thread_safety This one is more Java-on-Linux-centred but should be helpful anyway: http://mapserver.gis.umn.edu/docs/howto/javamapscript HTH, Umberto On 6/23/06, Jeff Dege wrote: > I'm just beginning with mapserver, and I'm evaluating different > possibilities. > > In our shop, Windows/IIS/ASP.NET/C# would be the preferred approach. > > Using the compiled ASP.NET 1.1 DLLs from MS4W, I've had no difficulty > getting mapscript_csharp.dll to work. > > But the docs are full of warnings about lack of thread safety. The > installation instructions for PHP_mapscript indicate that PHP should be > installed to run in CGI mode, rather than in ISAPI mode, so that a > separate instance of the mapscript DLLs are loaded for each request - > because the mapscript DLLs aren't threadsafe. > > I'm assuming that the problem is still there when using the C# wrappers. > Is there something I need to do, when using mapscript_csharp.dll from > IIS, to prevent this problem? Something I need to set in the > configuration or the code so that the ASP.NET pages are run as CGI? > > I'd really hate to waste too much time building on top of > mapscript_csharp, only to find that it won't work reliably once multiple > users start accessing it. > > Answers, or pointers to docs, would be appreciated. > > Thanks. > From szekerest at GMAIL.COM Fri Jun 23 13:32:13 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 23 Jun 2006 22:32:13 +0200 Subject: Thread-safety in mapscript_csharp.dll? In-Reply-To: <3BF1166FC5125A47ABB8FD2F2EE5FDD2353E57@mrburns.KorOffice.korterra.com> Message-ID: Hi, MapServer was originally created to use in a single threaded application model, mapserv.exe is a single threaded CGI application. Using mapserver in a multithreaded environment should be handled with care. At the programmer's perspective when using the IIS ASP.NET implementation every request may be handled by different thread taken out from a pool of threads. During the creation of the first mapscript object the mapscript_csharp.dll (hosting the C# part of the interface) will be loaded into the executing appdomain. The interface uses P/Invoke to access the C part of the interface incorporated by the unmanaged mapscript.dll. mapscript.dll will load the subsequent dll-s needed for the functionality of the application depending on the libraries enabled on the compilation. Every host process (aspnet_wp.exe or w3wp.exe) will have one instance of the unmanaged dll-s loaded. You may have different application domains with logically separated managed assemblies but all off these assemblies will share the same unmanaged dll-s. Most of the mapscript C# objects implement IDisposable and hold a reference to an unmanaged memory segment. One should take into account the following issues: 1. Since these unmanaged dll-s are using shared (global) variables and resources, multiple requests will use the same variables from different threads, and should be protected by locks. 2. Mapscript objects members are not syncronized by locks so passing these objects between threads is to be avoided. 3. Mapscript objects should be properly disposed if not needed any more. Considering the previously mentioned facts we should draw at least the following conclusions: 1. Thread support should be enabled when compiling mapserver and mapscript C#. It will enable the locks on the shared variables for the most important components. Some of the components are not protected this way so those items should be avoided. See http://mapserver.gis.umn.edu/docs/faq/thread_safety for more details. 2. One should compile with only the features really needed by the application. 3. Should not retain mapscript objects between requests (eg. using in session variables). 4. Should use IDisposable.Dispose or the using{} clause to properly deallocate the unmanaged memory. Some of these conclusions may also apply to other languages using multithreaded application models. We are making some effort to eliminate the need of those variables and using "big locks" to increase the performance of the applications in multithreaded environments. To achieve this level most of the existing code should be reviewed. The first step for this activity was recorded at http://mapserver.gis.umn.edu/development/rfc/ms-rfc-15/ and will be enhanced upon the user's and developer's affinity for this issue. I'm considering few of the folks using mapserver and mapscript this way or they aren't complaining about much of these problems so far. Best Regards, Tamas Szekeres 2006/6/23, Jeff Dege : > I'm just beginning with mapserver, and I'm evaluating different > possibilities. > > In our shop, Windows/IIS/ASP.NET/C# would be the preferred approach. > > Using the compiled ASP.NET 1.1 DLLs from MS4W, I've had no difficulty > getting mapscript_csharp.dll to work. > > But the docs are full of warnings about lack of thread safety. The > installation instructions for PHP_mapscript indicate that PHP should be > installed to run in CGI mode, rather than in ISAPI mode, so that a > separate instance of the mapscript DLLs are loaded for each request - > because the mapscript DLLs aren't threadsafe. > > I'm assuming that the problem is still there when using the C# wrappers. > Is there something I need to do, when using mapscript_csharp.dll from > IIS, to prevent this problem? Something I need to set in the > configuration or the code so that the ASP.NET pages are run as CGI? > > I'd really hate to waste too much time building on top of > mapscript_csharp, only to find that it won't work reliably once multiple > users start accessing it. > > Answers, or pointers to docs, would be appreciated. > > Thanks. > From ltrevino at GPOBSI.COM.MX Fri Jun 23 13:36:16 2006 From: ltrevino at GPOBSI.COM.MX (=?iso-8859-1?Q?Luis_Trevi=F1o_Huerta?=) Date: Fri, 23 Jun 2006 15:36:16 -0500 Subject: how to build a geofence app. Message-ID: Hi list, Any idea, suggestion, howto, info source, whatever. of how can I build a GeoFence application with mapserver? I would like that the user is able to click over the map in order to build it?s own geofence. Is it posible. Regards, Luis From jdege at KORTERRA.COM Fri Jun 23 14:06:07 2006 From: jdege at KORTERRA.COM (Jeff Dege) Date: Fri, 23 Jun 2006 16:06:07 -0500 Subject: Thread-safety in mapscript_csharp.dll? In-Reply-To: Message-ID: > -----Original Message----- > From: Tamas Szekeres [mailto:szekerest at gmail.com] > Sent: Friday, June 23, 2006 3:32 PM > To: Jeff Dege > Cc: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Thread-safety in > mapscript_csharp.dll? > > Hi, > > MapServer was originally created to use in a single threaded > application model, mapserv.exe is a single threaded CGI application. > Using mapserver in a multithreaded environment should be handled with > care. I understand that. It's just what care I'm unsure of. > One should take into account the following issues: > > 1. Since these unmanaged dll-s are using shared (global) variables and > resources, multiple requests will use the same variables from > different threads, and should be protected by locks. Are you suggesting that we should protect access to the mapserver objects within the C# code, using the C# lock statement? Or are the locks within the mapscript_csharp.dll sufficient? > 2. Mapscript objects members are not syncronized by locks so passing > these objects between threads is to be avoided. > 3. Mapscript objects should be properly disposed if not > needed any more. > Considering the previously mentioned facts we should draw at least the > following conclusions: > > 1. Thread support should be enabled when compiling mapserver and > mapscript C#. It will enable the locks on the shared variables for the > most important components. > Some of the components are not protected this way so those items > should be avoided. See > http://mapserver.gis.umn.edu/docs/faq/thread_safety for more details. > 2. One should compile with only the features really needed by > the application. > 3. Should not retain mapscript objects between requests (eg. using in > session variables). > 4. Should use IDisposable.Dispose or the using{} clause to properly > deallocate the unmanaged memory. > > Some of these conclusions may also apply to other languages using > multithreaded application models. > > We are making some effort to eliminate the need of those variables and > using "big locks" to increase the performance of the applications in > multithreaded environments. To achieve this level most of the existing > code should be reviewed. > The first step for this activity was recorded at > http://mapserver.gis.umn.edu/development/rfc/ms-rfc-15/ and will be > enhanced upon the user's and developer's affinity for this issue. I'm > considering few of the folks using mapserver and mapscript this way or > they aren't complaining about much of these problems so far. Google has changed things. Our customers are demanding mapping, and demanding a more interactive mapping capability than they'd previously been satisfied with. I think you'll see a growing interest in running mapscript with ASP.NET and ATLAS. From rockwell_001 at YAHOO.COM Fri Jun 23 14:59:58 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Fri, 23 Jun 2006 14:59:58 -0700 Subject: Mapscript C# compilation Message-ID: Hi all, i am getting a few errors while compiling mapscript with c#, i downloaded the swigwin-1.3.29 latest development version and then i gave the path for swig.exe in the makefile.vc and tried to compile it but i got the following error OWSRequest.cs(33,24): error CS0117: 'mapscriptPINVOKE' does not contain a definition for 'delete_OWSRequest' I am not sure why this error is due to ... Thanks for your time kris --------------------------------- Yahoo! Sports Fantasy Football ?06 - Go with the leader. Start your league today! -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Fri Jun 23 15:01:48 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 23 Jun 2006 18:01:48 -0400 Subject: how to build a geofence app. In-Reply-To: <006f01c69704$adcbdd40$6401a8c0@PAVILION> Message-ID: Luis, I think the strategy for this would be to have an application like ka-map that allows the user to pan and zoom the map, then let the user start a geofence by digitizing points over the map. when they are done, submit the points back to the server and save them in a postgres or whatever. You can then compare the polygon to a lat/long and see if it is in/out of the polygon. -Steve W. Luis Trevi?o Huerta wrote: > Hi list, > > Any idea, suggestion, howto, info source, whatever. of how can I build a > GeoFence application with mapserver? > > I would like that the user is able to click over the map in order to > build it?s own geofence. Is it posible. > > Regards, > Luis From ltrevino at GPOBSI.COM.MX Fri Jun 23 15:20:38 2006 From: ltrevino at GPOBSI.COM.MX (=?iso-8859-1?Q?Luis_Trevi=F1o_Huerta?=) Date: Fri, 23 Jun 2006 17:20:38 -0500 Subject: how to build a geofence app. Message-ID: Thanks steve for the fast reply. I'll give it a try. Luis T. ----- Original Message ----- From: "Stephen Woodbridge" To: "Luis Trevi?o Huerta" Cc: Sent: Friday, June 23, 2006 5:01 PM Subject: Re: [UMN_MAPSERVER-USERS] how to build a geofence app. > Luis, > > I think the strategy for this would be to have an application like ka-map > that allows the user to pan and zoom the map, then let the user start a > geofence by digitizing points over the map. when they are done, submit the > points back to the server and save them in a postgres or whatever. You can > then compare the polygon to a lat/long and see if it is in/out of the > polygon. > > -Steve W. > > Luis Trevi?o Huerta wrote: >> Hi list, >> >> Any idea, suggestion, howto, info source, whatever. of how can I build a >> GeoFence application with mapserver? >> >> I would like that the user is able to click over the map in order to >> build it?s own geofence. Is it posible. >> >> Regards, >> Luis > From szekerest at GMAIL.COM Fri Jun 23 15:27:34 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Sat, 24 Jun 2006 00:27:34 +0200 Subject: Thread-safety in mapscript_csharp.dll? In-Reply-To: <3BF1166FC5125A47ABB8FD2F2EE5FDD2353E5D@mrburns.KorOffice.korterra.com> Message-ID: > Are you suggesting that we should protect access to the mapserver > objects within the C# code, using the C# lock statement? Or are the > locks within the mapscript_csharp.dll sufficient? > Nope. This kind of synchronization can only take place at the unmanaged side when using the IIS ASP.NET application models. The mapserver code should make the necessary work for you. Regards, Tamas From szekerest at GMAIL.COM Fri Jun 23 15:34:38 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Sat, 24 Jun 2006 00:34:38 +0200 Subject: Mapscript C# compilation In-Reply-To: <20060623215958.56594.qmail@web34214.mail.mud.yahoo.com> Message-ID: Hi, I've just tested and found no problems with the CVS-HEAD Which version are you using? Tamas 2006/6/23, rock well : > Hi all, i am getting a few errors while compiling mapscript with c#, i > downloaded the swigwin-1.3.29 latest development version and then i gave the > path for swig.exe in the makefile.vc and tried to compile it but i got the > following error > > OWSRequest.cs(33,24): error CS0117: 'mapscriptPINVOKE' does not contain a > definition for 'delete_OWSRequest' > > I am not sure why this error is due to ... > > Thanks for your time > kris > > ________________________________ > Yahoo! Sports Fantasy Football '06 - Go with the leader. Start your league > today! > > From s_jubeh at YAHOO.COM Fri Jun 23 15:47:21 2006 From: s_jubeh at YAHOO.COM (salah jubeh) Date: Fri, 23 Jun 2006 15:47:21 -0700 Subject: LEGEND + CLASS Message-ID: Hi all i would like to know how i can sheft the classes of the layer to the right e.g layer1 class1 class2 layer2 CLASSITEM 'INFRASTRUC' CLASS NAME 'Pollution Sources' END CLASS NAME 'Waste Tanks' EXPRESSION "Olive Mill" STYLE SYMBOL 'circle' SIZE 7 COLOR 255 50 50 END END CLASS NAME 'Olive mill' EXPRESSION "Waste Tank" STYLE SYMBOL 'circle' SIZE 7 COLOR 49 117 185 END END Please see the attached file Best Regard Eng. Salah Al Jubeh MCP,MCAD,MCSD Mobile:00306947192421 --------------------------------- Want to be your own boss? Learn how on Yahoo! Small Business. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: untitled.GIF Type: image/gif Size: 6204 bytes Desc: 3972276652-untitled.GIF URL: From rockwell_001 at YAHOO.COM Fri Jun 23 15:49:39 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Fri, 23 Jun 2006 15:49:39 -0700 Subject: Mapscript C# compilation In-Reply-To: Message-ID: HI Tamas, thanks for your reply, i am using mapserver-4.6.2 and swigwin-1.3.29 .... Thanks again, kris Tamas Szekeres wrote: Hi, I've just tested and found no problems with the CVS-HEAD Which version are you using? Tamas 2006/6/23, rock well : > Hi all, i am getting a few errors while compiling mapscript with c#, i > downloaded the swigwin-1.3.29 latest development version and then i gave the > path for swig.exe in the makefile.vc and tried to compile it but i got the > following error > > OWSRequest.cs(33,24): error CS0117: 'mapscriptPINVOKE' does not contain a > definition for 'delete_OWSRequest' > > I am not sure why this error is due to ... > > Thanks for your time > kris > > ________________________________ > Yahoo! Sports Fantasy Football '06 - Go with the leader. Start your league > today! > > --------------------------------- 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 szekerest at GMAIL.COM Fri Jun 23 16:10:20 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Sat, 24 Jun 2006 01:10:20 +0200 Subject: Mapscript C# compilation In-Reply-To: <20060623224939.69580.qmail@web34204.mail.mud.yahoo.com> Message-ID: Hi, This version is slightly outdated use 4.8.3 instead. And visit http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1677 Tamas 2006/6/24, rock well : > HI Tamas, thanks for your reply, i am using mapserver-4.6.2 and > swigwin-1.3.29 .... > > Thanks again, > kris > > Tamas Szekeres wrote: > Hi, > > I've just tested and found no problems with the CVS-HEAD > Which version are you using? > > Tamas > > > 2006/6/23, rock well : > > Hi all, i am getting a few errors while compiling mapscript with c#, i > > downloaded the swigwin-1.3.29 latest development version and then i gave > the > > path for swig.exe in the makefile.vc and tried to compile it but i got the > > following error > > > > OWSRequest.cs(33,24): error CS0117: 'mapscriptPINVOKE' does not contain a > > definition for 'delete_OWSRequest' > > > > I am not sure why this error is due to ... > > > > Thanks for your time > > kris > > > > ________________________________ > > Yahoo! Sports Fantasy Football '06 - Go with the leader. Start your league > > today! > > > > > > > > ________________________________ > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates > starting at 1?/min. > > From n.gilbert at SURREY.AC.UK Fri Jun 23 16:10:22 2006 From: n.gilbert at SURREY.AC.UK (Nigel Gilbert) Date: Sat, 24 Jun 2006 00:10:22 +0100 Subject: Class expression and PostGIS Message-ID: [Many thanks to those who helped me yesterday overcome a problem with creating an oid index, now solved as a result of their advice] I have a PostGIS database including a table, world, with columns, object_type (containing either one of the strings, 'plants' or 'agents') and 'geom', containing points. In my map file I have: LAYER NAME World CONNECTIONTYPE postgis CONNECTION "user=..... dbname=...." DATA "geom from world" STATUS ON TYPE POINT CLASS NAME Agents EXPRESSION ([object_type] = 'agents') STYLE COLOR 255 111 207 # pink END END CLASS NAME Plants EXPRESSION ([object_type] = 'plants') STYLE COLOR 0 128 64 # green END END END This gives a map displaying nothing, although if I comment out the expressions, I get the points I would then expect. In other words, the expressions are always returning false. But getting the data directly: select object_type, AsText(geom) from world limit 3; object_type | astext ---------------------------------------------------------------------------- --------------------------+---------------- plants | POINT(13 19) plants | POINT(228 840) plants | POINT(694 674) (3 rows) is fine. What's wrong?? Thanks again! Nigel From aaronkoning at GMAIL.COM Fri Jun 23 23:26:21 2006 From: aaronkoning at GMAIL.COM (Aaron Koning) Date: Fri, 23 Jun 2006 23:26:21 -0700 Subject: Class expression and PostGIS In-Reply-To: Message-ID: This post may be helpful: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0405/msg00714.html Aaron On 6/23/06, Nigel Gilbert wrote: > > [Many thanks to those who helped me yesterday overcome a problem with > creating an oid index, now solved as a result of their advice] > > I have a PostGIS database including a table, world, with columns, > object_type (containing either one of the strings, 'plants' or 'agents') > and > 'geom', containing points. In my map file I have: > > LAYER > NAME World > CONNECTIONTYPE postgis > CONNECTION "user=..... dbname=...." > DATA "geom from world" > STATUS ON > TYPE POINT > > CLASS > NAME Agents > EXPRESSION ([object_type] = 'agents') > STYLE > COLOR 255 111 207 # pink > END > END > > CLASS > NAME Plants > EXPRESSION ([object_type] = 'plants') > STYLE > COLOR 0 128 64 # green > END > END > END > > This gives a map displaying nothing, although if I comment out the > expressions, I get the points I would then expect. In other words, the > expressions are always returning false. But getting the data directly: > > select object_type, AsText(geom) from world limit 3; > object_type > | astext > > ---------------------------------------------------------------------------- > --------------------------+---------------- > plants > | POINT(13 19) > plants > | POINT(228 840) > plants > | POINT(694 674) > (3 rows) > > is fine. What's wrong?? > > Thanks again! > > Nigel > -- +-------------------------------------------- | 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 javaguru at IEEE.ORG Sat Jun 24 05:30:56 2006 From: javaguru at IEEE.ORG (Mark Thomas) Date: Sat, 24 Jun 2006 07:30:56 -0500 Subject: how to build a geofence app. In-Reply-To: Message-ID: Luis, Stephen is on the right track here. I did this at a previous company by letting the user zoom/pan to the ROI, then I had the user click 2 points; one the center point and the other a point on the wanted "edge" of the ROI. I then used the wz_jsgraphics.js library to draw both a circle, the geofence, and its bounding box based off of these 2 points, which created the radius of the circle. Once the user was satisfied, they could submit the geofence to the server for persistence. This method is easy if you only need square or circular geofences, but if you need irregularly shaped polygons then you'll have to have your users digitize points, just like Stephen said previously. Here's some sample code for drawing the geofence using wz_jsgraphics.js: lyr.drawLine(x1,y1,x2,y2); lyr.paint(); lyr.setColor("#ff0000"); var radius = Math.sqrt( Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2)); var x = x1 - radius; var y = y1 - radius; var w = radius * 2; var h = w; lyr.drawEllipse(x, y, w, h); lyr.paint(); lyr.setColor("#00ff00"); lyr.drawRect(x, y, w, h); lyr.paint(); On Sat, 2006-06-24 at 00:00 -0500, MAPSERVER-USERS automatic digest system wrote: > Skip repetitive navigational links > L-Soft - Home of the LISTSERV mailing list manager LISTSERV(R) 14.3 > MAPSERVER-USERS Digest - 22 Jun 2006 to 23 Jun 2006 (#2006-176) > > > Table of contents: > > * ERROR: column 'oid' does not exist > * No query layer defined > * Having trouble with running a demo > * templete problem > * query raster layer (2) > * NQUERY problem > * msWMSLoadGetParams (2) > * Mapscript ,Mono, Apache and Linux : a great story (heap > corruption with geos) > * Thread-safety in mapscript_csharp.dll? (5) > * Deleting from a shapefile > * JavaMapscript SIGSEGV > * WMS Layer Problem > * how to build a geofence app. (3) > * Mapscript C# compilation (4) > * LEGEND + CLASS > * Class expression and PostGIS > > > 1. ERROR: column 'oid' does not exist > * Re: ERROR: column 'oid' does not exist (06/22) > From: Tyler Mitchell > > > 2. No query layer defined > * No query layer defined (06/23) > From: absar ali > > > 3. Having trouble with running a demo > * Re: Having trouble with running a demo (06/23) > From: Daniel Goetz > > > 4. templete problem > * templete problem (06/23) > From: absar ali > > > 5. query raster layer > * Re: query raster layer (06/23) > From: "Bart van den Eijnden (OSGIS)" > > * Re: query raster layer (06/23) > From: Giorgio Libert > > > 6. NQUERY problem > * NQUERY problem (06/23) > From: DjwStone > > > 7. msWMSLoadGetParams > * Re: msWMSLoadGetParams (06/23) > From: Marcos Cobea > * Re: msWMSLoadGetParams (06/23) > From: "Bart van den Eijnden (OSGIS)" > > > > 8. Mapscript ,Mono, Apache and Linux : a great story (heap > corruption with geos) > * Re: Mapscript ,Mono, Apache and Linux : a great story > (heap corruption with geos) (06/23) > From: Tamas Szekeres > > > 9. Thread-safety in mapscript_csharp.dll? > * Thread-safety in mapscript_csharp.dll? (06/23) > From: Jeff Dege > * Re: Thread-safety in mapscript_csharp.dll? (06/23) > From: Umberto Nicoletti > * Re: Thread-safety in mapscript_csharp.dll? (06/23) > From: Tamas Szekeres > * Re: Thread-safety in mapscript_csharp.dll? (06/23) > From: Jeff Dege > * Re: Thread-safety in mapscript_csharp.dll? (06/24) > From: Tamas Szekeres > > > 10. Deleting from a shapefile > * Deleting from a shapefile (06/23) > From: Antonio Iandolo > > > 11. JavaMapscript SIGSEGV > * Re: JavaMapscript SIGSEGV (06/23) > From: Tamas Szekeres > > > 12. WMS Layer Problem > * WMS Layer Problem (06/23) > From: "M.L. Jackson" > > > 13. how to build a geofence app. > * how to build a geofence app. (06/23) > From: Luis Trevio Huerta > * Re: how to build a geofence app. (06/23) > From: Stephen Woodbridge > * Re: how to build a geofence app. (06/23) > From: Luis Trevio Huerta > > > 14. Mapscript C# compilation > * Mapscript C# compilation (06/23) > From: rock well > * Re: Mapscript C# compilation (06/24) > From: Tamas Szekeres > * Re: Mapscript C# compilation (06/23) > From: rock well > * Re: Mapscript C# compilation (06/24) > From: Tamas Szekeres > > > 15. LEGEND + CLASS > * LEGEND + CLASS (06/23) > From: salah jubeh > > > 16. Class expression and PostGIS > * Class expression and PostGIS (06/24) > From: Nigel Gilbert > > > > ______________________________________________________________________ > Powered by LISTSERV(R) Browse the MAPSERVER-USERS online archives. > email message attachment > > > -------- Forwarded Message -------- > > From: Tyler Mitchell > > Subject: Re: ERROR: column 'oid' does not exist > > Date: Thu, 22 Jun 2006 22:56:38 -0700 > > > > > > On 22-Jun-06, at 8:50 PM, Aaron Koning wrote: > > > > > If you imported the spatial layer with shp2pgsql or OGR programs, > > > their should be a unique id field already (e.g. 'gid' with > > > shp2pgsql). You can tell MapServer to use this unique id field > > > instead of oid in the LAYER -> DATA variable of your MapFile. > > > > > > Example: > > > DATA "the_geom FROM roads AS foo USING UNIQUE gid" > > > > > That's a much better - thanks Aaron. I'm told by postgresql gurus > > not to ever use the oid... that it should only be used for internal > > database key purposes and cannot be relied on as stable. Oh well, > > thanks for pointing out a better option. > > > > Tyler > > email message attachment > > > -------- Forwarded Message -------- > > From: absar ali > > Subject: No query layer defined > > Date: Fri, 23 Jun 2006 00:30:58 -0700 > > > > > > GRRRRRRRRRRRRRR, > > > > i am using the following line to query the map > > > > window.open("/cgi-bin/mapserv.exe?map=karachi.map&mode=ITEMQUERY&qstring=charge&layer=charge_region"); > > > > actually stive lime gave me this, but its giving following error > > "msQueryByAttribute():General error message. No query layer defined" > > > > below is my map file, please check is there any thing wrong in my map file. I am using ka-map as my map client. my kamap is woring fine it displays all the layers but the hell query is not woring another thing my maps are not georeferenced so i cant use QueryByPoint. > > > > Please help me n guide me i am very depressed. > > Regards, > > > > Absar Ali > > ____________________________________________________ > > > > NAME Karachi > > STATUS ON > > > > SIZE 800 600 > > SHAPEPATH "karachiShape" > > WEB > > IMAGEPATH "C:/tmp/" > > IMAGEURL "C:/tmp/" > > END > > > > EXTENT 40.2283 -5.55177 49.7201 1.8823 > > UNITS dd > > IMAGECOLOR 255 255 255 > > IMAGETYPE png > > QUERYMAP > > STATUS ON > > # the map is queryable by default > > STYLE HILITE > > # the selected object is highligthed > > COLOR 255 0 0 > > SIZE -1 -1 > > END > > LEGEND > > KEYSIZE 18 12 > > LABEL > > TYPE BITMAP > > SIZE MEDIUM > > COLOR 0 0 89 > > END > > STATUS ON > > END > > LAYER > > NAME charge_region > > TEMPLATE "template/ka.html" > > METADATA > > "queryable" "true" > > END > > TYPE POLYGON > > STATUS ON > > DATA CHARGE_region > > LABELITEM "name" > > CLASS > > NAME "CHARGE_region" > > COLOR 146 154 155 > > OUTLINECOLOR 43 170 115 > > LABEL > > MINFEATURESIZE 40 > > MINDISTANCE 150 > > POSITION CC > > SIZE TINY > > COLOR 0 0 0 > > END > > END > > END > > LAYER > > NAME circle_region > > TEMPLATE "template/ka.html" > > METADATA > > "queryable" "true" > > END > > TYPE POLYGON > > STATUS OFF > > DATA CIRCLE_region > > LABELITEM "name" > > CLASS > > NAME "CIRCLE_region" > > COLOR 90 15 155 > > OUTLINECOLOR 200 205 133 > > LABEL > > MINFEATURESIZE 40 > > MINDISTANCE 150 > > POSITION CC > > SIZE TINY > > COLOR 0 0 0 > > END > > END > > END > > LAYER > > NAME important_locations_point > > METADATA > > "queryable" "true" > > END > > TYPE POINT > > STATUS OFF > > DATA "IMPORTANT LOCATIONS_point" > > CLASS > > NAME "IMPORTANT LOCATIONS_point" > > END > > END > > LAYER > > NAME town_region > > TEMPLATE "template/ka.html" > > METADATA > > "queryable" "true" > > END > > TYPE POLYGON > > STATUS OFF > > DATA TOWN_region > > LABELITEM "name" > > CLASS > > NAME "TOWN_region" > > COLOR 77 224 186 > > OUTLINECOLOR 244 237 138 > > LABEL > > MINFEATURESIZE 40 > > MINDISTANCE 150 > > POSITION CC > > SIZE TINY > > COLOR 0 0 0 > > END > > END > > END > > LAYER > > NAME town_text > > TEMPLATE "template/ka.html" > > METADATA > > "queryable" "true" > > END > > TYPE POINT > > STATUS OFF > > DATA TOWN_text > > CLASS > > NAME "TOWN_text" > > END > > END > > LAYER > > NAME union_council_region > > TEMPLATE "template/ka.html" > > METADATA > > "queryable" "true" > > END > > TYPE POLYGON > > STATUS ON > > DATA "UNION COUNCIL_region" > > LABELITEM "name" > > CLASS > > NAME "UNION COUNCIL_region" > > COLOR 37 118 61 > > OUTLINECOLOR 220 54 199 > > LABEL > > MINFEATURESIZE 40 > > MINDISTANCE 150 > > POSITION CC > > SIZE TINY > > COLOR 0 0 0 > > END > > END > > END > > END > > > > > > Mark Thomas Sun Certified Java 5 Programmer Sun Certified Java 2 Programmer Sun Certified Web Component Developer -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at REFRACTIONS.NET Sat Jun 24 11:22:52 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Sat, 24 Jun 2006 11:22:52 -0700 Subject: Class expression and PostGIS In-Reply-To: Message-ID: Try EXPRESSION ('[object_type]' eq 'agents') "=" is a numeric comparison, and you want a string comparison. The extra '' around the attribute name also seem to help clarify things for the expression parser. On 23-Jun-06, at 4:10 PM, Nigel Gilbert wrote: > [Many thanks to those who helped me yesterday overcome a problem with > creating an oid index, now solved as a result of their advice] > > I have a PostGIS database including a table, world, with columns, > object_type (containing either one of the strings, 'plants' or > 'agents') and > 'geom', containing points. In my map file I have: > > LAYER > NAME World > CONNECTIONTYPE postgis > CONNECTION "user=..... dbname=...." > DATA "geom from world" > STATUS ON > TYPE POINT > > CLASS > NAME Agents > EXPRESSION ([object_type] = 'agents') > STYLE > COLOR 255 111 207 # pink > END > END > > CLASS > NAME Plants > EXPRESSION ([object_type] = 'plants') > STYLE > COLOR 0 128 64 # green > END > END > END > > This gives a map displaying nothing, although if I comment out the > expressions, I get the points I would then expect. In other words, > the > expressions are always returning false. But getting the data > directly: > > select object_type, AsText(geom) from world limit 3; > object_type > | astext > ---------------------------------------------------------------------- > ------ > --------------------------+---------------- > plants > | POINT(13 19) > plants > | POINT(228 840) > plants > | POINT(694 674) > (3 rows) > > is fine. What's wrong?? > > Thanks again! > > Nigel From candalt at ONLINE.NO Sat Jun 24 14:18:17 2006 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Sat, 24 Jun 2006 23:18:17 +0200 Subject: Raster tile and tilesize Message-ID: HI I want to make some raster layers in Mapserver at different scales. To do this I will use tiles. The raster I am going to make will cover a large area, so if I devide this into tiles say 200x200 pixel I will have a large amount of files.. Does anybody have some experience or recomandations conserning raster tile size, amount of files vs Mapserver speed? Regards Sture -------------- next part -------------- An HTML attachment was scrubbed... URL: From rappleby at HYDRO.GOV.AU Sun Jun 25 22:24:29 2006 From: rappleby at HYDRO.GOV.AU (rappleby) Date: Sun, 25 Jun 2006 22:24:29 -0700 Subject: mapserv CGI Problems Message-ID: Hi, I have just downloaded and compiled Mapserv. Everything went smoothly. From absarzaidi at YAHOO.COM Mon Jun 26 00:48:59 2006 From: absarzaidi at YAHOO.COM (absar ali) Date: Mon, 26 Jun 2006 00:48:59 -0700 Subject: Blank Template Message-ID: My ka-map is working fine, i am running query thru mapserver CGI file Every thing is working fine but the query displays the template file with no result it just print the file.here is my query output. why it is not printing the values from dbf file. code no name here is my template file.
  • code no [codeno]
  • name [name] --------------------------------- 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 frank.koormann at INTEVATION.DE Mon Jun 26 02:36:39 2006 From: frank.koormann at INTEVATION.DE (Frank Koormann) Date: Mon, 26 Jun 2006 11:36:39 +0200 Subject: templete problem In-Reply-To: <20060623082002.42584.qmail@web32603.mail.mud.yahoo.com> Message-ID: Am Freitag 23 Juni 2006 10:20 schrieb absar ali: > i am using the following line to query the map > ? ? > ? window.open("/cgi-bin/mapserv.exe?map > paramerters......................."); > ? but it just prints . > ? Code No [codeno] > ? Name [name] Templates ([codeno], [name]) must be written exactly like the attribute titles in the data. Most commonly are case sensitivity problems, since titles often are upper case. Try [CODENO] .... HTH, Frank From absarzaidi at YAHOO.COM Mon Jun 26 02:52:14 2006 From: absarzaidi at YAHOO.COM (absar ali) Date: Mon, 26 Jun 2006 02:52:14 -0700 Subject: Query Prints Blank Template Message-ID: dear Frank Koormann here is my map file, dont know why it prints the template with out data.please help me. ----------------------------------------------------------------------------------------------------------------------- NAME Karachi STATUS ON SIZE 800 600 SHAPEPATH "karachiShape" WEB IMAGEPATH "C:/tmp/" IMAGEURL "C:/tmp/" END EXTENT 40.2283 -5.55177 49.7201 1.8823 UNITS dd IMAGECOLOR 255 255 255 IMAGETYPE png QUERYMAP STATUS ON # the map is queryable by default STYLE HILITE # the selected object is highligthed COLOR 255 0 0 SIZE -1 -1 END LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END LAYER NAME charge_region TEMPLATE "template/ka.html" METADATA "queryable" "true" END TYPE POLYGON STATUS ON DATA CHARGE_region LABELITEM "name" CLASS NAME "CHARGE_region" COLOR 146 154 155 OUTLINECOLOR 43 170 115 LABEL MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END END LAYER NAME charge_polyline TEMPLATE "template/ka.html" METADATA "queryable" "true" END TYPE LINE STATUS OFF DATA CHARGE_polyline CLASS NAME "CHARGE_polyline" OUTLINECOLOR 3 97 136 END END LAYER NAME circle_region TEMPLATE "template/ka.html" METADATA "queryable" "true" END TYPE POLYGON STATUS OFF DATA CIRCLE_region LABELITEM "name" CLASS NAME "CIRCLE_region" COLOR 90 15 155 OUTLINECOLOR 200 205 133 LABEL MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END END LAYER NAME important_locations_point METADATA "queryable" "true" END TYPE POINT STATUS OFF DATA "IMPORTANT LOCATIONS_point" CLASS NAME "IMPORTANT LOCATIONS_point" END END LAYER NAME town_region TEMPLATE "template/ka.html" METADATA "queryable" "true" END TYPE POLYGON STATUS OFF DATA TOWN_region LABELITEM "name" CLASS NAME "TOWN_region" COLOR 77 224 186 OUTLINECOLOR 244 237 138 LABEL MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END END LAYER NAME town_text TEMPLATE "template/ka.html" METADATA "queryable" "true" END TYPE POINT STATUS OFF DATA TOWN_text CLASS NAME "TOWN_text" END END LAYER NAME union_council_region TEMPLATE "template/ka.html" METADATA "queryable" "true" END TYPE POLYGON STATUS ON DATA "UNION COUNCIL_region" LABELITEM "name" CLASS NAME "UNION COUNCIL_region" COLOR 37 118 61 OUTLINECOLOR 220 54 199 LABEL MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END END END ------------------------------------------------------------------------------------------------------------------------ Frank Koormann wrote: Am Freitag 23 Juni 2006 10:20 schrieb absar ali: > i am using the following line to query the map > > window.open("/cgi-bin/mapserv.exe?map > paramerters......................."); > but it just prints . > Code No [codeno] > Name [name] Templates ([codeno], [name]) must be written exactly like the attribute titles in the data. Most commonly are case sensitivity problems, since titles often are upper case. Try [CODENO] .... HTH, Frank --------------------------------- Yahoo! Sports Fantasy Football ?06 - Go with the leader. Start your league today! -------------- next part -------------- An HTML attachment was scrubbed... URL: From D.Stone at ED.AC.UK Mon Jun 26 03:48:22 2006 From: D.Stone at ED.AC.UK (DjwStone) Date: Mon, 26 Jun 2006 03:48:22 -0700 Subject: NQUERY mode again Message-ID: In view of my earlier NQUERY post eliciting zero response, could I try and explain better what I'm trying to do, and ask if NQUERY is the right technique? My map file has about 12 layers: parish boundaries(polygon), labels(annotation), and the rest are point layers showing the locations of a specific type and century (e.g. 15th-century altars). These location layers also have a saint's name substituted in at run-time so you can show 15th-century altars dedicated to St.Patrick, for instance. The template file is a simple development from one in the the MapServer tutorial; it allows the mode to be set to Browse or NQuery, one or more point layers chosen, and one saint's name selected. Browse mode works OK, and the right symbols are drawn on the map in the right place(s). When I change the mode to NQUERY, keeping the layer and saint-name selections the same, and click on a point-layer symbol on the map, what I'd expect to get back in the query template are attributes from all the 'hits' in all selected layers. Is that correct? As I indicated in the earlier post, the query template is in fact returning the expected number of hits, but the attributes of each one are identical which definitely is incorrect! Short of progressively simplifying my app to constrain the problem, can anyone suggest where in the haystack to start looking? Cheers, Dave -- View this message in context: http://www.nabble.com/NQUERY-mode-again-t1848174.html#a5044816 Sent from the Mapserver - User forum at Nabble.com. From tkirstine at JDBARNES.COM Mon Jun 26 05:49:39 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Mon, 26 Jun 2006 08:49:39 -0400 Subject: Raster tile and tilesize In-Reply-To: <004701c697d3$b6841180$800101df@avsdi> Message-ID: Raster tile and tilesizeSture, I found this useful. See the discussion:GeoTIFF overviews / TILEINDEX / Large dataset performance http://blog.gmane.org/gmane.comp.gis.mapserver.user/day=20050609 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Sture Dings?yr Sent: Saturday, June 24, 2006 5:18 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Raster tile and tilesize HI I want to make some raster layers in Mapserver at different scales. To do this I will use tiles. The raster I am going to make will cover a large area, so if I devide this into tiles say 200x200 pixel I will have a large amount of files.. Does anybody have some experience or recomandations conserning raster tile size, amount of files vs Mapserver speed? Regards Sture -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Mon Jun 26 06:16:09 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 26 Jun 2006 08:16:09 -0500 Subject: Thread-safety in mapscript_csharp.dll? In-Reply-To: A<3BF1166FC5125A47ABB8FD2F2EE5FDD2353E5D@mrburns.KorOffice.korterra.com> Message-ID: That's the cool thing about opensource. If your paying customers are demanding new features, you can improve the code base yourself, or fund someone to add the functionality for you. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Dege Sent: Friday, June 23, 2006 4:06 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Thread-safety in mapscript_csharp.dll? > -----Original Message----- > From: Tamas Szekeres [mailto:szekerest at gmail.com] > Sent: Friday, June 23, 2006 3:32 PM > To: Jeff Dege > Cc: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Thread-safety in > mapscript_csharp.dll? > > Hi, > > MapServer was originally created to use in a single threaded > application model, mapserv.exe is a single threaded CGI application. > Using mapserver in a multithreaded environment should be handled with > care. I understand that. It's just what care I'm unsure of. > One should take into account the following issues: > > 1. Since these unmanaged dll-s are using shared (global) variables and > resources, multiple requests will use the same variables from > different threads, and should be protected by locks. Are you suggesting that we should protect access to the mapserver objects within the C# code, using the C# lock statement? Or are the locks within the mapscript_csharp.dll sufficient? > 2. Mapscript objects members are not syncronized by locks so passing > these objects between threads is to be avoided. 3. Mapscript objects > should be properly disposed if not needed any more. > Considering the previously mentioned facts we should draw at least the > following conclusions: > > 1. Thread support should be enabled when compiling mapserver and > mapscript C#. It will enable the locks on the shared variables for the > most important components. Some of the components are not protected > this way so those items should be avoided. See > http://mapserver.gis.umn.edu/docs/faq/thread_safety for more details. > 2. One should compile with only the features really needed by > the application. > 3. Should not retain mapscript objects between requests (eg. using in > session variables). > 4. Should use IDisposable.Dispose or the using{} clause to properly > deallocate the unmanaged memory. > > Some of these conclusions may also apply to other languages using > multithreaded application models. > > We are making some effort to eliminate the need of those variables and > using "big locks" to increase the performance of the applications in > multithreaded environments. To achieve this level most of the existing > code should be reviewed. The first step for this activity was recorded > at http://mapserver.gis.umn.edu/development/rfc/ms-rfc-15/ and will be > enhanced upon the user's and developer's affinity for this issue. I'm > considering few of the folks using mapserver and mapscript this way or > they aren't complaining about much of these problems so far. Google has changed things. Our customers are demanding mapping, and demanding a more interactive mapping capability than they'd previously been satisfied with. I think you'll see a growing interest in running mapscript with ASP.NET and ATLAS. From C.Wilmes at GMX.DE Mon Jun 26 06:19:14 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Mon, 26 Jun 2006 15:19:14 +0200 Subject: csharp-mapscript: transform scale Message-ID: Hi All, I've got some WMS-Layers in my Map. In the getCapabilities is a min and a maxscale. The problem is, the units of my map and of the layer are different. So I have to transform them for using min and maxscale in the Layer. Is there any possibility to find out the units of a layer if there is no declaration in the getCapabilities-Document. There is only the epsg-format in the Document is that enbough? Are there any libraries which solves that problem? How is generally to calculate the scale from Meters to deegree? Best Regards Christian -- "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail From David.Fawcett at STATE.MN.US Mon Jun 26 06:24:50 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 26 Jun 2006 08:24:50 -0500 Subject: NQUERY mode again In-Reply-To: A<5044816.post@talk.nabble.com> Message-ID: Dave, That is a weird one. What version are you using? Can you post relevant sections of your map file and template files? David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of DjwStone Sent: Monday, June 26, 2006 5:48 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] NQUERY mode again In view of my earlier NQUERY post eliciting zero response, could I try and explain better what I'm trying to do, and ask if NQUERY is the right technique? My map file has about 12 layers: parish boundaries(polygon), labels(annotation), and the rest are point layers showing the locations of a specific type and century (e.g. 15th-century altars). These location layers also have a saint's name substituted in at run-time so you can show 15th-century altars dedicated to St.Patrick, for instance. The template file is a simple development from one in the the MapServer tutorial; it allows the mode to be set to Browse or NQuery, one or more point layers chosen, and one saint's name selected. Browse mode works OK, and the right symbols are drawn on the map in the right place(s). When I change the mode to NQUERY, keeping the layer and saint-name selections the same, and click on a point-layer symbol on the map, what I'd expect to get back in the query template are attributes from all the 'hits' in all selected layers. Is that correct? As I indicated in the earlier post, the query template is in fact returning the expected number of hits, but the attributes of each one are identical which definitely is incorrect! Short of progressively simplifying my app to constrain the problem, can anyone suggest where in the haystack to start looking? Cheers, Dave -- View this message in context: http://www.nabble.com/NQUERY-mode-again-t1848174.html#a5044816 Sent from the Mapserver - User forum at Nabble.com. From zhonghaiw at GMAIL.COM Mon Jun 26 06:55:51 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Mon, 26 Jun 2006 15:55:51 +0200 Subject: Oracle Spatial Filter problem Message-ID: Hi there, I am trying to render the map with oracle spatial database, and facing problems with the FILTER expression. at first I define the oracle spatial connection like: CONNECTIONTYPE ORACLESPATIAL CONNECTION "E110/E110 at PMCGIS2.WORLD" DATA "GEOLOC FROM E112_CELLS_GEO USING UNIQUE MI_PRINX SRID 8307" and this one works fine, therefore I am sure that the mapfile definition is ok, and then I change the data connection to : CONNECTIONTYPE ORACLESPATIAL CONNECTION "E110/E110 at PMCGIS2.WORLD" DATA "GEOLOC FROM E112_CELLS_GEO USING FILTER" FILTER "WHERE MI_PRINX =100" to use the FILTER function for a specific selection, but this definition gives aan error instead of the map image: ERROR: msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: ORA-00936: missing expression . Query statement: SELECT rownum, GEOLOC FROM E112_CELLS_GEO WHERE WHERE MI_PRI NX=100 AND SDO_FILTER( GEOLOC, MDSYS.SDO_GEOMETRY(2003, NULL, NULL, MDSYS.SDO_ELE M_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(5.95587,45.11214,10.49203, 48.514 26) ),'querytype=window') = 'TRUE' . Check your data statement. I can not figure out where the problem is. the MI_PRINX is the unique id of the table, if I make this query in the SQLPlus, the data will be returned, which means the where condition in the SQL is no problem. any ideas for this? kind regards zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsimon at UNIVALI.BR Mon Jun 26 07:12:39 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Mon, 26 Jun 2006 11:12:39 -0300 Subject: Oracle Spatial Filter problem In-Reply-To: <2534c4120606260655w461c75b5xa104bf5d24d2a09f@mail.gmail.com> Message-ID: Hi, Just remove the "WHERE" from FILTER parameter. Like: FILTER "MI_PRINX =100" Best regards. Fernando Simon Zhonghai Wang wrote: > Hi there, > > I am trying to render the map with oracle spatial database, and facing > problems with the FILTER expression. > > at first I define the oracle spatial connection like: > > CONNECTIONTYPE ORACLESPATIAL > CONNECTION "E110/E110 at PMCGIS2.WORLD " > DATA "GEOLOC FROM E112_CELLS_GEO USING UNIQUE MI_PRINX SRID 8307" > > and this one works fine, therefore I am sure that the mapfile > definition is ok, and then I change the data connection to : > > CONNECTIONTYPE ORACLESPATIAL > CONNECTION "E110/E110 at PMCGIS2.WORLD " > DATA "GEOLOC FROM E112_CELLS_GEO USING FILTER" > FILTER "WHERE MI_PRINX =100" > > to use the FILTER function for a specific selection, but this > definition gives aan error instead of the map image: > > ERROR: > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: > ORA-00936: missing expression . > Query statement: SELECT rownum, GEOLOC FROM E112_CELLS_GEO WHERE WHERE > MI_PRI > NX=100 AND SDO_FILTER( GEOLOC, MDSYS.SDO_GEOMETRY(2003, NULL, > NULL,MDSYS.SDO_ELE > M_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(5.95587 > ,45.11214,10.49203,48.514 > 26) ),'querytype=window') = 'TRUE' . > Check your data statement. > > I can not figure out where the problem is. the MI_PRINX is the unique > id of the table, if I make this query in the SQLPlus, the data will be > returned, which means the where condition in the SQL is no problem. > > any ideas for this? > > kind regards > > zhonghai > > > > > From zhonghaiw at GMAIL.COM Mon Jun 26 07:32:13 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Mon, 26 Jun 2006 16:32:13 +0200 Subject: Oracle Spatial Filter problem In-Reply-To: <449FEB57.3040905@univali.br> Message-ID: Hi Simon, how is everything? thanks for your hints. as you said, I set the Filter again like this: DATA "GEOLOC FROM E112_CELLS_GEO USING FILTER" FILTER "cell='BAMK5D'" with the cell='BAMK5D' condition in the SQLPlus 12 elements will be selected, but with mapserverit returns still some error messages: msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: ORA-29902: error in executing ODCIIndexStart() routine ORA-13208: internal error while evaluating [window SRID does not match layer SRID] operator ORA-06512: at "MDSYS.SDO_INDEX_METHOD_9I", line 259 ORA-06512: at line 1 . Query statement: SELECT rownum, GEOLOC FROM E112_CELLS_GEO WHERE cell='BAMK5D' AND SDO_FILTER( GEOLOC, MDSYS.SDO_GEOMETRY(2003, NULL, NULL, MDSYS.SDO_ELEM_INF O_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(5.95587,45.11214,10.49203, 48.51426) ) ,'querytype=window') = 'TRUE' . Check your data statement. It seems that I should specify certain SRID code, but in this case the SRID code is not necessary. BTW: the SRID is 8307 thanks zhonghai On 6/26/06, Fernando Simon wrote: > > Hi, > Just remove the "WHERE" from FILTER parameter. Like: FILTER > "MI_PRINX =100" > Best regards. > > Fernando Simon > > Zhonghai Wang wrote: > > Hi there, > > > > I am trying to render the map with oracle spatial database, and facing > > problems with the FILTER expression. > > > > at first I define the oracle spatial connection like: > > > > CONNECTIONTYPE ORACLESPATIAL > > CONNECTION "E110/E110 at PMCGIS2.WORLD " > > DATA "GEOLOC FROM E112_CELLS_GEO USING UNIQUE MI_PRINX SRID 8307" > > > > and this one works fine, therefore I am sure that the mapfile > > definition is ok, and then I change the data connection to : > > > > CONNECTIONTYPE ORACLESPATIAL > > CONNECTION "E110/E110 at PMCGIS2.WORLD " > > DATA "GEOLOC FROM E112_CELLS_GEO USING FILTER" > > FILTER "WHERE MI_PRINX =100" > > > > to use the FILTER function for a specific selection, but this > > definition gives aan error instead of the map image: > > > > ERROR: > > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: > > ORA-00936: missing expression . > > Query statement: SELECT rownum, GEOLOC FROM E112_CELLS_GEO WHERE WHERE > > MI_PRI > > NX=100 AND SDO_FILTER( GEOLOC, MDSYS.SDO_GEOMETRY(2003, NULL, > > NULL,MDSYS.SDO_ELE > > M_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(5.95587 > > ,45.11214,10.49203,48.514 > > 26) ),'querytype=window') = 'TRUE' . > > Check your data statement. > > > > I can not figure out where the problem is. the MI_PRINX is the unique > > id of the table, if I make this query in the SQLPlus, the data will be > > returned, which means the where condition in the SQL is no problem. > > > > any ideas for this? > > > > kind regards > > > > zhonghai > > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Mon Jun 26 07:41:24 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Mon, 26 Jun 2006 16:41:24 +0200 Subject: Oracle Spatial Filter problem In-Reply-To: <2534c4120606260732r6024de92l99fccb462feb5ea0@mail.gmail.com> Message-ID: Hi Simon, problem is solved, the Filter must be formatted somehow like: DATA "GEOLOC FROM E112_CELLS_GEO USING SRID 8307 FILTER" FILTER "cell='BAMK5D'" the SRID seems to be a must for the filter. thanks again for your help. zhonghai On 6/26/06, Zhonghai Wang wrote: > > Hi Simon, > > how is everything? thanks for your hints. > > as you said, I set the Filter again like this: > > DATA "GEOLOC FROM E112_CELLS_GEO USING FILTER" > FILTER "cell='BAMK5D'" > > with the cell='BAMK5D' condition in the SQLPlus 12 elements will be > selected, but with mapserverit returns still some error messages: > > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: ORA-29902: > error in executing ODCIIndexStart() routine > ORA-13208: internal error while evaluating [window SRID does not match > layer SRID] operator > ORA-06512: at "MDSYS.SDO_INDEX_METHOD_9I", line 259 > ORA-06512: at line 1 > . Query statement: SELECT rownum, GEOLOC FROM E112_CELLS_GEO WHERE > cell='BAMK5D' AND SDO_FILTER( GEOLOC, MDSYS.SDO_GEOMETRY(2003, NULL, NULL, > MDSYS.SDO_ELEM_INF > > O_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(5.95587,45.11214,10.49203, > 48.51426) ) > ,'querytype=window') = 'TRUE' . > Check your data statement. > > It seems that I should specify certain SRID code, but in this case the > SRID code is not necessary. > > BTW: the SRID is 8307 > > thanks > > zhonghai > > > On 6/26/06, Fernando Simon wrote: > > > > Hi, > > Just remove the "WHERE" from FILTER parameter. Like: FILTER > > "MI_PRINX =100" > > Best regards. > > > > Fernando Simon > > > > Zhonghai Wang wrote: > > > Hi there, > > > > > > I am trying to render the map with oracle spatial database, and facing > > > problems with the FILTER expression. > > > > > > at first I define the oracle spatial connection like: > > > > > > CONNECTIONTYPE ORACLESPATIAL > > > CONNECTION "E110/E110 at PMCGIS2.WORLD " > > > DATA "GEOLOC FROM E112_CELLS_GEO USING UNIQUE MI_PRINX SRID 8307" > > > > > > and this one works fine, therefore I am sure that the mapfile > > > definition is ok, and then I change the data connection to : > > > > > > CONNECTIONTYPE ORACLESPATIAL > > > CONNECTION "E110/E110 at PMCGIS2.WORLD " > > > DATA "GEOLOC FROM E112_CELLS_GEO USING FILTER" > > > FILTER "WHERE MI_PRINX =100" > > > > > > to use the FILTER function for a specific selection, but this > > > definition gives aan error instead of the map image: > > > > > > ERROR: > > > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: > > > ORA-00936: missing expression . > > > Query statement: SELECT rownum, GEOLOC FROM E112_CELLS_GEO WHERE WHERE > > > MI_PRI > > > NX=100 AND SDO_FILTER( GEOLOC, MDSYS.SDO_GEOMETRY(2003, NULL, > > > NULL,MDSYS.SDO_ELE > > > M_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(5.95587 > > > ,45.11214,10.49203,48.514 > > > 26) ),'querytype=window') = 'TRUE' . > > > Check your data statement. > > > > > > I can not figure out where the problem is. the MI_PRINX is the unique > > > id of the table, if I make this query in the SQLPlus, the data will be > > > returned, which means the where condition in the SQL is no problem. > > > > > > any ideas for this? > > > > > > kind regards > > > > > > zhonghai > > > > > > > > > > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsimon at UNIVALI.BR Mon Jun 26 07:50:12 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Mon, 26 Jun 2006 11:50:12 -0300 Subject: Oracle Spatial Filter problem In-Reply-To: <2534c4120606260732r6024de92l99fccb462feb5ea0@mail.gmail.com> Message-ID: Hi Zhonghai, Your welcome, everything is fine here. About the error, just define the SRID parameter in your DATA definition. Like: DATA "GEOLOC FROM E112_CELLS_GEO USING UNIQUE MI_PRINX SRID 8307 FILTER VERSION 9i" or another: DATA "GEOLOC FROM (SELECT MI_PRINX, GEOLOC FROM E112_CELLS_GEO WHERE cell='BAMK5D') USING UNIQUE MI_PRINX SRID 8307 FILTER VERSION 9i" If you are connecting in 9i database I recommend to use the VERSION 9I in your DATA definition to force the internal SQL to use just the functions for release 9i. You can check the Oracle Spatial parameters in this link: http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto Best regards. Fernando Simon Zhonghai Wang wrote: > Hi Simon, > > how is everything? thanks for your hints. > > as you said, I set the Filter again like this: > > DATA "GEOLOC FROM E112_CELLS_GEO USING FILTER" > FILTER "cell='BAMK5D'" > > with the cell='BAMK5D' condition in the SQLPlus 12 elements will be > selected, but with mapserverit returns still some error messages: > > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: > ORA-29902: error in executing ODCIIndexStart() routine > ORA-13208: internal error while evaluating [window SRID does not > match layer SRID] operator > ORA-06512: at "MDSYS.SDO_INDEX_METHOD_9I", line 259 > ORA-06512: at line 1 > . Query statement: SELECT rownum, GEOLOC FROM E112_CELLS_GEO WHERE > cell='BAMK5D' AND SDO_FILTER( GEOLOC, MDSYS.SDO_GEOMETRY(2003, NULL, > NULL, MDSYS.SDO_ELEM_INF > O_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(5.95587,45.11214,10.49203,48.51426) > ) > ,'querytype=window') = 'TRUE' . > Check your data statement. > > It seems that I should specify certain SRID code, but in this case the > SRID code is not necessary. > > BTW: the SRID is 8307 > > thanks > > zhonghai > > > On 6/26/06, *Fernando Simon* > wrote: > > Hi, > Just remove the "WHERE" from FILTER parameter. Like: FILTER > "MI_PRINX =100" > Best regards. > > Fernando Simon > > Zhonghai Wang wrote: > > Hi there, > > > > I am trying to render the map with oracle spatial database, and > facing > > problems with the FILTER expression. > > > > at first I define the oracle spatial connection like: > > > > CONNECTIONTYPE ORACLESPATIAL > > CONNECTION "E110/E110 at PMCGIS2.WORLD > >" > > DATA "GEOLOC FROM E112_CELLS_GEO USING UNIQUE MI_PRINX SRID 8307" > > > > and this one works fine, therefore I am sure that the mapfile > > definition is ok, and then I change the data connection to : > > > > CONNECTIONTYPE ORACLESPATIAL > > CONNECTION "E110/E110 at PMCGIS2.WORLD > >" > > DATA "GEOLOC FROM E112_CELLS_GEO USING FILTER" > > FILTER "WHERE MI_PRINX =100" > > > > to use the FILTER function for a specific selection, but this > > definition gives aan error instead of the map image: > > > > ERROR: > > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: > > ORA-00936: missing expression . > > Query statement: SELECT rownum, GEOLOC FROM E112_CELLS_GEO WHERE > WHERE > > MI_PRI > > NX=100 AND SDO_FILTER( GEOLOC, MDSYS.SDO_GEOMETRY(2003, NULL, > > NULL,MDSYS.SDO_ELE > > M_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(5.95587 > > ,45.11214,10.49203,48.514 > > 26) ),'querytype=window') = 'TRUE' . > > Check your data statement. > > > > I can not figure out where the problem is. the MI_PRINX is the > unique > > id of the table, if I make this query in the SQLPlus, the data > will be > > returned, which means the where condition in the SQL is no problem. > > > > any ideas for this? > > > > kind regards > > > > zhonghai > > > > > > > > > > > > From Ken.Boss at DNR.STATE.MN.US Mon Jun 26 07:51:37 2006 From: Ken.Boss at DNR.STATE.MN.US (Ken Boss) Date: Mon, 26 Jun 2006 09:51:37 -0500 Subject: dBox dLegend raster/vector images Message-ID: Hey Rich-- You should be able to do the same thing for a vector layer - just throw a KEYIMAGE line into the CLASS(es) section(s). At least, it works for me on my ms4w installation using make_dlegend_cgi.py. I'd note that there's a bug in the setup currently dictating that you _must_ define a KEYIMAGE for any raster layer(s), or things fall apart. Cheers, --Ken >>> Richard Greenwood 6/22/2006 10:24:34 PM >>> I'm playing with dBox (nice stuff Steve!) converting the example to my own data. Only hitch is my legend has the 'broken link' image for all of my vector layer keyimages. For a raster layer you specify: KEYIMAGE /path/to/keyimage.png But what do you need to get a keyimage for vector layer? thanks, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From D.Stone at ED.AC.UK Mon Jun 26 08:16:26 2006 From: D.Stone at ED.AC.UK (DjwStone) Date: Mon, 26 Jun 2006 08:16:26 -0700 Subject: NQUERY mode again In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB075C@s-sp22.pca.state.mn.us> Message-ID: Hi David -- it's MapServer 4.8.3 (and PostgreSQL 8.0.7). Apologies for the length of this; I've hacked a lot out, but hopefully nothing vital! Let me know if you want details of the 5-table view 'saintloc' referenced in the PostGIS layers' DATA definitions. Thanks for looking at this, Dave MAP FILE: MAP IMAGETYPE PNG # output image format EXTENT 54792 530130 470852 1211482 SIZE 600 600 # 600 by 600 pixel image output IMAGECOLOR 180 180 250 # default colour (water) SYMBOLSET "/var/www/html/saints/data/parish/symbol.list" FONTSET "/var/www/html/saints/data/parish/font.list" LEGEND STATUS ON # separate legend from map image END SCALEBAR STATUS ON # separate scalebar from map image UNITS KILOMETERS INTERVALS 3 # three sections to scalebar POSITION LR # embed scalebar at lower right corner TRANSPARENT TRUE # scalebar background OUTLINECOLOR 0 0 0 # black outline END REFERENCE STATUS ON IMAGE "../reference_small.png" EXTENT 54792 530130 470852 1211482 SIZE 100 131 # size in pixels COLOR -1 -1 -1 # transparent OUTLINECOLOR 255 0 0 # red border END WEB TEMPLATE "saint1.html" IMAGEPATH "/var/www/html/tmp/" IMAGEURL "/tmp/" LOG "/var/www/html/saints/saints.log" END QUERYMAP STATUS ON STYLE HILITE COLOR 255 255 0 END LAYER # Parish polygon layer begins here NAME parish DATA "../Scotland_cp_1890_area" # shapefile name STATUS DEFAULT TYPE POLYGON # MAXSCALE 500000 # LABELITEM 'PARISH' # shapefile attribute providing map labels # LABELMAXSCALE 2000000 # labels suppressed above this scale # CLASSITEM 'PARISH' # shapefile attribute used in class expressions CLASS NAME "Parish Boundaries" STYLE # COLOR 255 255 150 COLOR 255 255 255 OUTLINECOLOR 32 32 32 END END END # parish polygon layer ends here LAYER # Parish labels layer begins here NAME parish_labels DATA "../Scotland_cp_1890_area" # shapefile name STATUS OFF TYPE ANNOTATION LABELITEM 'PARISH' # shapefile attribute providing map labels CLASS LABEL COLOR 255 255 255 OUTLINECOLOR 0 0 0 POSITION CC MINFEATURESIZE 100 END END END # parish labels layer ends here LAYER # query layer using the saintloc PostgreSQL view CONNECTIONTYPE postgis NAME saint_chdedlocs_C12 CONNECTION "user=erdb13 dbname=stdraft" DATA "geom from (select dr, geom, stdname, reftostconf, saintid, locationref, placename, deddlo, deddhi, dedicationtype, stdesc, oid from saintloc where ((deddlo between 11010101 and 12001231) OR (deddhi between 11010101 and 12001231)) AND dedicationtype = 'Church dedication' AND stdname='%stname%') as foo using srid=27700" STATUS OFF DEBUG ON TYPE POINT TOLERANCE 25 HEADER "result_hdr.html" FOOTER "result_ftr.html" CLASS NAME "Church dedications - 12C" MINSCALE 2000000 TEMPLATE "result.html" DEBUG ON STYLE SYMBOL "square" SIZE 5 COLOR 0 255 0 OUTLINECOLOR 0 0 0 END END CLASS NAME "Church dedications - 12C" MAXSCALE 1900000 TEMPLATE "result.html" STYLE SYMBOL "square" SIZE 10 COLOR 0 255 0 OUTLINECOLOR 0 0 0 END END END # test query layer # Similar point layers for 13C ? 16C church dedications # Also 5 point layers for 12C ? 16C altar dedications TEMPLATE SAINT1.HTML: ...

    [scalebar] Legend
    [legend]
    Select Pan/Zoom options:
    Zoom In Re-centre Zoom Out Zoom Size 2 4 6 8 10

    Select Layers to Display:
    Press "CTRL" and Click to select more than one

    Select name of saint to plot on map:

    Select map mode:

    TEMPLATE RESULT.HTML:
    Result no.: [lrn]
    Dedication Ref.: [dr]
    Dedication Type: [dedicationtype]
    Dedication date (range): [deddlo] - [deddhi]
    Saint Ref.: [saintid]
    Saint Name: [stdname]
    Description: [stdesc]
    Confidence: [reftostconf]%
    Location Ref.: [locationref] ([placename])
    TYPICAL OUTPUT FROM RESULT.HTML: Query Metrics: Number of layers with results=1 Total number of results=44 Result no.: 1 Dedication Ref.: DE/JD/16 Dedication Type: Church dedication Dedication date (range): - 13660601 Saint Ref.: ST/JD/39 Saint Name: Monan Description: The principal source for St Monan is the Aberdeen Breviary. Confidence: 100% Location Ref.: LO/JD/9 (St Monans) Result no.: 2 Dedication Ref.: DE/JD/16 Dedication Type: Church dedication Dedication date (range): - 13660601 Saint Ref.: ST/JD/39 Saint Name: Monan Description: The principal source for St Monan is the Aberdeen Breviary. Confidence: 100% Location Ref.: LO/JD/9 (St Monans) ..... (etc. for 42 more copies!) -- View this message in context: http://www.nabble.com/NQUERY-mode-again-t1848174.html#a5048876 Sent from the Mapserver - User forum at Nabble.com. From mljacks2 at HOTMAIL.COM Mon Jun 26 08:23:22 2006 From: mljacks2 at HOTMAIL.COM (M.L. Jackson) Date: Mon, 26 Jun 2006 10:23:22 -0500 Subject: WMS Layer Problem Message-ID: Hi, I'm new to the Mapserver Listserv. I am having problems displaying the wms layer on my map. My problem is that I don't see any aerial shots at all. It is as if the map is being drawn without the layer. Here is a snippet out of my map file where the wms layer is defined: LAYER NAME "photo" STATUS DEFAULT TYPE RASTER MINSCALE 10000 #MAXSCALE 10000 CONNECTIONTYPE WMS CONNECTION "http://terraservice.net/OgcMap.ashx?" METADATA "wms_srs" "EPSG:4326" "wms_title" "Orthophoto" "wms_name" "DOQ" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_layers" "doq" "wms_group_title" "background" "wms_onlineresource" "http://terraservice.net/OgcMap.ashx?" "wms_latlonboundingbox" "-170 -60 15 75" #"wms_connectiontimeout" "120" END PROJECTION "init=epsg:4326" END DEBUG ON END BTW, my map extent is -178.21759836236586 18.924781799316406 -66.96927103600244 71.40623535327121. Thanks for your reply. _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From xavier.mauclaire at GEOTER.FR Mon Jun 26 08:39:45 2006 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Mon, 26 Jun 2006 17:39:45 +0200 Subject: Mapscript c# problems and apache2 scratches Message-ID: HI New problem with the mapscript c# library. I'm doing a web site using, among others, querybyshape function. If there are several requests using this function i scratches the server My configuration is the following Mono (1.1.13) gtk 2.8 Apache (2.2.?) with de mod_mono compiled for it mod_mono 1.1.14 MApscript (4.8.3). Postgres 8.1.3 and Postgis 1.1.1 GDAL 1.3.1 Ming 0.30 Proj4 (4.4.9) Libiconv 1.9.1 gd-2.0.33 All these programs has been compiler on the computer Mapserver has been compiled with the configure : ./configure --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-postgis=/usr/local/pgsql/bin/pg_config --with-ming --with-png --with-jpeg --with-zlib --with-tiff --with-gif --with-proj --with-gd=/usr/local --with-httpd=/usr/sbin/httpd2 The apache error_log file can contain the following errors ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= Stacktrace: in (wrapper managed-to-native) mapscriptPINVOKE:mapObj_draw (System.Runtime.InteropServices.HandleRef) <0x4> in (wrapper managed-to-native) mapscriptPINVOKE:mapObj_draw (System.Runtime.InteropServices.HandleRef) <0xffffff81> in mapObj:draw () <0x21> in siteflash.GetParcelleReglement:ProcessRequest (System.Web.HttpContext) <0x906> in __1:MoveNext () <0x10a0> in System.Web.HttpApplication:Tick () <0x1f> in System.Web.HttpApplication:Start (object) <0x37> in System.Web.HttpApplication:System.Web.IHttpAsyncHandler.BeginProcessRequest (System.Web.HttpContext,System.AsyncCallback,object) <0x68> in System.Web.HttpRuntime:RealProcessRequest (object) <0x1ab> in System.Web.HttpRuntime:ProcessRequest (System.Web.HttpWorkerRequest) <0x2c> in Mono.WebServer.MonoWorkerRequest:ProcessRequest () <0xa> in Mono.WebServer.BaseApplicationHost:ProcessRequest (Mono.WebServer.MonoWorkerRequest) <0x43> in Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xdc> in (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xffffff0a> in (wrapper xdomain-dispatch) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (object,byte[]&,byte[]&,int,string,string,string,string,string,int,string,in t,string,string[],string[]) <0xfffee24e> in (wrapper xdomain-invoke) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xffffff6a> in (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xffca8c24> in Mono.WebServer.ModMonoWorker:InnerRun (object) <0x404> in Mono.WebServer.ModMonoWorker:Run (object) <0x17> in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object (object) <0xffffff95> in (wrapper runtime-invoke) System.Object:runtime_invoke_void_object (object,intptr,intptr,intptr) <0xc7371b5f> Native stacktrace: /usr/lib/pkgconfig/../../bin/mono(mono_handle_native_sigsegv+0xbb) [0x814ee2b] /usr/lib/pkgconfig/../../bin/mono [0x813b2cf] [0xffffe440] /usr/local/lib/libmapscript.so(msPOSTGISLayerGetShapeRandom+0x8e) [0x41931e5e] /usr/local/lib/libmapscript.so(msPOSTGISLayerNextShape+0x33) [0x419320a3] /usr/local/lib/libmapscript.so(msLayerNextShape+0x28) [0x418eadb8] /usr/local/lib/libmapscript.so(msDrawVectorLayer+0x258) [0x418f2d48] /usr/local/lib/libmapscript.so(msDrawLayer+0x90) [0x418f3150] /usr/local/lib/libmapscript.so(msDrawMap+0x2fd) [0x418f3e1d] /usr/local/lib/libmapscript.so(CSharp_mapObj_draw+0x1d) [0x418a9e3d] [0x41860844] [0x41860762] [0x41865a27] [0x416f63d9] [0x416f5260] [0x416f1668] [0x416f1549] [0x41150854] [0x41150385] [0x41150343] [0x4114f544] [0x41133dcd] [0x41133534] [0x41133313] [0x4112124f] [0x4112108b] [0x40dc9bdd] [0x40dc9730] [0x40dc96f4] [0x40dc964e] /usr/lib/pkgconfig/../../bin/mono [0x813b180] /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke+0x27) [0x80d63f7] /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke_array+0x270) [0x80d78c0] /usr/lib/pkgconfig/../../bin/mono(mono_message_invoke+0xc5) [0x80d93d5] /usr/lib/pkgconfig/../../bin/mono [0x80a509f] /usr/lib/pkgconfig/../../bin/mono [0x80a58c9] /usr/lib/pkgconfig/../../bin/mono [0x8099fb2] /usr/lib/pkgconfig/../../bin/mono [0x80f5067] /usr/lib/pkgconfig/../../bin/mono [0x8113175] /lib/tls/libpthread.so.0 [0x400e5297] /lib/tls/libc.so.6(__clone+0x5e) [0x401e037e] [Tue Jun 27 17:33:45 2006] [notice] caught SIGTERM, shutting down [Tue Jun 27 17:34:29 2006] [notice] Apache/2.2.0 (Unix) mod_mono/1.1.14 configured -- resuming normal operations Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. or the message Stacktrace: in (wrapper managed-to-native) mapscriptPINVOKE:layerObj_queryByPoint (System.Runtime.InteropServices.HandleRef,System.Runtime.InteropServices.Han dleRef,System.Runtime.InteropServices.HandleRef,int,double) <0x4> in (wrapper managed-to-native) mapscriptPINVOKE:layerObj_queryByPoint (System.Runtime.InteropServices.HandleRef,System.Runtime.InteropServices.Han dleRef,System.Runtime.InteropServices.HandleRef,int,double) <0xffffff47> in layerObj:queryByPoint (mapObj,pointObj,int,double) <0x77> in siteflash.GetParcelleReglement:localiser_parcelle (double,double,string&) <0xc5> in siteflash.GetParcelleReglement:ProcessRequest (System.Web.HttpContext) <0x59e> in __1:MoveNext () <0x10a0> in System.Web.HttpApplication:Tick () <0x1f> in System.Web.HttpApplication:Start (object) <0x37> in System.Web.HttpApplication:System.Web.IHttpAsyncHandler.BeginProcessRequest (System.Web.HttpContext,System.AsyncCallback,object) <0x68> in System.Web.HttpRuntime:RealProcessRequest (object) <0x1ab> in System.Web.HttpRuntime:ProcessRequest (System.Web.HttpWorkerRequest) <0x2c> in Mono.WebServer.MonoWorkerRequest:ProcessRequest () <0xa> in Mono.WebServer.BaseApplicationHost:ProcessRequest (Mono.WebServer.MonoWorkerRequest) <0x43> in Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xdc> in (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xffffff0a> in (wrapper xdomain-dispatch) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (object,byte[]&,byte[]&,int,string,string,string,string,string,int,string,in t,string,string[],string[]) <0xffeed426> in (wrapper xdomain-invoke) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xffffff6a> in (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xffca89c4> in Mono.WebServer.ModMonoWorker:InnerRun (object) <0x404> in Mono.WebServer.ModMonoWorker:Run (object) <0x17> in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object (object) <0xffffff95> in (wrapper runtime-invoke) System.Object:runtime_invoke_void_object (object,intptr,intptr,intptr) <0xc7371b5f> Native stacktrace: /usr/lib/pkgconfig/../../bin/mono(mono_handle_native_sigsegv+0xbb) [0x814ee2b] /usr/lib/pkgconfig/../../bin/mono [0x813b2cf] [0xffffe440] /usr/local/lib/libmapscript.so(msLayerWhichShapes+0x39) [0x41aece19] /usr/local/lib/libmapscript.so(msQueryByPoint+0x351) [0x41ade7d1] /usr/local/lib/libmapscript.so(CSharp_layerObj_queryByPoint+0x4d) [0x41aa8f4d] [0x41a68626] [0x41a68478] [0x41a67fee] [0x41a676bf] [0x416f63d9] [0x416f5260] [0x416f1668] [0x416f1549] [0x41251fa4] [0x41251ad5] [0x41251a93] [0x41250544] [0x41234e55] [0x412345bc] [0x4123439b] [0x411214af] [0x411212eb] [0x40dc9bdd] [0x40dc9730] [0x40dc96f4] [0x40dc964e] /usr/lib/pkgconfig/../../bin/mono [0x813b180] /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke+0x27) [0x80d63f7] /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke_array+0x270) [0x80d78c0] /usr/lib/pkgconfig/../../bin/mono(mono_message_invoke+0xc5) [0x80d93d5] /usr/lib/pkgconfig/../../bin/mono [0x80a509f] /usr/lib/pkgconfig/../../bin/mono [0x80a58c9] /usr/lib/pkgconfig/../../bin/mono [0x8099fb2] /usr/lib/pkgconfig/../../bin/mono [0x80f5067] /usr/lib/pkgconfig/../../bin/mono [0x8113175] /lib/tls/libpthread.so.0 [0x400e5297] /lib/tls/libc.so.6(__clone+0x5e) [0x401e037e] ----------------------------------------- Xavier Mauclaire Service informatique GEOTER SAS 3, rue Jean Monnet 34830 Clapiers France T?l.: +33 (0)4.67.59.18.11 Fax: +33 (0)4.67.59.18.24 Email: xavier.mauclaire at geoter.fr Web site: http://www.geoter.fr ------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From banders at REFRACTIONS.NET Mon Jun 26 08:50:19 2006 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Mon, 26 Jun 2006 08:50:19 -0700 Subject: WMS Layer Problem In-Reply-To: Message-ID: I made a WMS request in my browser using the request parameters specified in your photo layer: http://terraservice.net/OgcMap.ashx?request=getmap&service=wms&version=1.1.1&width=500&height=500&layers=DOQ&bbox=-170,60,-150,75&srs=EPSG:4326&format=png The WMS gave an error: "Invalid Lon-Lat coordinates, must specify at least one (lon,lat) pair correctly; Longitude must be between -170 and -60 Latitude must be between 15 and 75 " With a different lat-long bounding box it seems to work. I tested with bbox=-124,46,-110,52. I think the source WMS server doesn't like your bounding box. That's just a guess. I don't know exactly what WMS URLs mapserver is using to request the photo layers. If you have a way to intercept those outgoing URLs that should give you enough clues to fix the problem. Brock M.L. Jackson wrote: > Hi, I'm new to the Mapserver Listserv. I am having problems displaying > the wms layer on my map. My problem is that I don't see any aerial > shots at all. It is as if the map is being drawn without the layer. > > Here is a snippet out of my map file where the wms layer is defined: > > LAYER > NAME "photo" > STATUS DEFAULT > TYPE RASTER > MINSCALE 10000 > #MAXSCALE 10000 > > CONNECTIONTYPE WMS > CONNECTION "http://terraservice.net/OgcMap.ashx?" > > METADATA > "wms_srs" "EPSG:4326" > "wms_title" "Orthophoto" > "wms_name" "DOQ" > "wms_server_version" "1.1.1" > "wms_format" "image/png" > "wms_layers" "doq" > "wms_group_title" "background" > "wms_onlineresource" "http://terraservice.net/OgcMap.ashx?" > "wms_latlonboundingbox" "-170 -60 15 75" > #"wms_connectiontimeout" "120" > END > PROJECTION > "init=epsg:4326" > END > DEBUG ON > END > > BTW, my map extent is -178.21759836236586 18.924781799316406 > -66.96927103600244 71.40623535327121. Thanks for your reply. > > _________________________________________________________________ > Don?t just search. Find. Check out the new MSN Search! > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From szekerest at GMAIL.COM Mon Jun 26 08:54:58 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Mon, 26 Jun 2006 17:54:58 +0200 Subject: Mapscript c# problems and apache2 scratches In-Reply-To: Message-ID: Xavier, Could you extract the problem as a sample application, like you have done with the previous issue? How did you make the test? How many requests should be made? Is the problem deterministic of occurs randomly at different functions. Tamas 2006/6/26, Xavier Mauclaire : > > > HI > > New problem with the mapscript c# library. > I'm doing a web site using, among others, querybyshape function. If there > are several requests using this function i scratches the server > > From szekerest at GMAIL.COM Mon Jun 26 08:57:57 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Mon, 26 Jun 2006 17:57:57 +0200 Subject: Fwd: [UMN_MAPSERVER-USERS] Thread-safety in mapscript_csharp.dll? In-Reply-To: Message-ID: Access to the variables and resources protected by locks takes place sequentially among the different threads. We have locks around the parser, PROJ initialization, GDAL initialization, connection pooling global data, error object ... For example when parsing the .map file multiple requests will waiting for each other within the same host process. I think it brings in a significant performance degradation and kills the scalability :( Spawning multiple processes for the requests seems to be better this time if the extra overhead of creating a process is acceptable. This behaviour may change in the future. Tamas 2006/6/26, Jeff Dege : > > > > -----Original Message----- > > From: Tamas Szekeres [mailto:szekerest at gmail.com] > > Sent: Friday, June 23, 2006 5:28 PM > > To: Jeff Dege > > Cc: MAPSERVER-USERS at lists.umn.edu > > Subject: Re: [UMN_MAPSERVER-USERS] Thread-safety in > > mapscript_csharp.dll? > > > > > Are you suggesting that we should protect access to the mapserver > > > objects within the C# code, using the C# lock statement? Or are the > > > locks within the mapscript_csharp.dll sufficient? > > > > > > > Nope. This kind of synchronization can only take place at the > > unmanaged side when using the IIS ASP.NET application models. The > > mapserver code should make the necessary work for you. > > What kind of impact do these locks have on performance, as the number of > simultaneous users increases? > > From mljacks2 at HOTMAIL.COM Mon Jun 26 09:06:33 2006 From: mljacks2 at HOTMAIL.COM (M.L. Jackson) Date: Mon, 26 Jun 2006 11:06:33 -0500 Subject: WMS Layer Problem In-Reply-To: <44A0023B.2000903@refractions.net> Message-ID: Thanks for the reply. I tried changing the bounding box and still nothing. I even removed all the layers except the wms layer to make sure it wasn't any conflict with the other layers. I noticed this message in red after I stopped the Tomcat server. It has only appeared a few times after stopping the server. " HTTP: Starting to prepare HTTP requests. HTTP request: id=2, http://terraservice.net/OgcMap.ashx?LAYERS=DOQ&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fpng&STYLES=&HEIGHT=600&VERSION=1.1.1&SRS=EPSG:4326&WIDTH=800&BBOX=%2D178%2E217598362366%2C3%2E44738582890752%2C%2D66%2E9692710360024%2C86%2E8836313236801&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage HTTP: Before download loop msHTTPWriteFct(id=2, 396 bytes) HTTP: After download loop msHTTPExecuteRequests() timing summary per layer (connect_time + time_to_first_packet + download_time = total_time in seconds) Layer 2: 0.062 + 0.703 + 0.062 = 0.827s msDrawRasterLayerLow(photo): entering. " Do you think that it is possible that the url for this layer is somehow being requested exactly how it appears in this Tomcat message? >From: Brock Anderson >Reply-To: Brock Anderson >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] WMS Layer Problem >Date: Mon, 26 Jun 2006 08:50:19 -0700 > >I made a WMS request in my browser using the request parameters specified >in your photo layer: > >http://terraservice.net/OgcMap.ashx?request=getmap&service=wms&version=1.1.1&width=500&height=500&layers=DOQ&bbox=-170,60,-150,75&srs=EPSG:4326&format=png > >The WMS gave an error: "Invalid Lon-Lat coordinates, must specify at least >one (lon,lat) pair correctly; Longitude must be between -170 and -60 >Latitude must be between 15 and 75 " > >With a different lat-long bounding box it seems to work. I tested with >bbox=-124,46,-110,52. I think the source WMS server doesn't like your >bounding box. > >That's just a guess. I don't know exactly what WMS URLs mapserver is using >to request the photo layers. If you have a way to intercept those outgoing >URLs that should give you enough clues to fix the problem. > >Brock > >M.L. Jackson wrote: > >>Hi, I'm new to the Mapserver Listserv. I am having problems displaying the >>wms layer on my map. My problem is that I don't see any aerial shots at >>all. It is as if the map is being drawn without the layer. >> >>Here is a snippet out of my map file where the wms layer is defined: >> >>LAYER >>NAME "photo" >>STATUS DEFAULT >>TYPE RASTER >>MINSCALE 10000 >>#MAXSCALE 10000 >> >>CONNECTIONTYPE WMS >>CONNECTION "http://terraservice.net/OgcMap.ashx?" >> >>METADATA >>"wms_srs" "EPSG:4326" >>"wms_title" "Orthophoto" >>"wms_name" "DOQ" >>"wms_server_version" "1.1.1" >>"wms_format" "image/png" >>"wms_layers" "doq" >>"wms_group_title" "background" >>"wms_onlineresource" "http://terraservice.net/OgcMap.ashx?" >>"wms_latlonboundingbox" "-170 -60 15 75" >>#"wms_connectiontimeout" "120" >>END >>PROJECTION >>"init=epsg:4326" >>END >>DEBUG ON >>END >> >>BTW, my map extent is -178.21759836236586 18.924781799316406 >>-66.96927103600244 71.40623535327121. Thanks for your reply. >> >>_________________________________________________________________ >>Don?t just search. Find. Check out the new MSN Search! >>http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From xavier.mauclaire at GEOTER.FR Mon Jun 26 09:09:00 2006 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Mon, 26 Jun 2006 18:09:00 +0200 Subject: Mapscript c# problems and apache2 scratches In-Reply-To: Message-ID: Hi Tamas I've done a tool that allows, by clicking on the map, to select the polygon in the postgis database. With this object loaded, i query other objects using the querybyshape function. After i produce an htlm report. If i click slowing in the map, no problem. If i click on several objets quickly the problems occurs. I don't know if i would be enabled to reproduce the problem with a little program. I'm going to work about this The function source is : private shapeObj localiser_parcelle(Double dX, Double dY, out String zParcelleIdent){ shapeObj pShape = null; zParcelleIdent = ""; int liRes ; try { // recup?ration de la layer des parcelle // celle dont le nom est CONST_LAYERNAME_PARCELLE layerObj pLayerParcelle = pMapQuery.getLayerByName(cConstantes.CONST_LAYERNAME_PARCELLE); if(pLayerParcelle != null){ // creation du poitn de localisation pointObj pPoint = new pointObj(dX, dY,0.0,0.0 ); // on recherche la parcelle au point cliqu? pLayerParcelle.queryByPoint(pMapQuery,pPoint,mapscript.MS_SINGLE,0); resultCacheObj pRes = pLayerParcelle.getResults(); try{ resultCacheMemberObj pResMember = null; if(pRes.numresults > 0) { //on zoom sur la selection courante pMapQuery.setExtent(pRes.bounds.minx,pRes.bounds.miny,pRes.bounds.maxx,pRes. bounds.maxy); pLayerParcelle.open(); try{ // r?cup?ration de la premi?re parcelle pResMember = pRes.getResult(0); pShape = pLayerParcelle.getFeature(pResMember.shapeindex, pResMember.tileindex); if(pShape != null) { // r?cup?ration de l'identifiant de la parcellle Int32 liRang = -1; // recherche rang champs liRang = cRegInfos.SetLayerFieldRang(pLayerParcelle, cRegInfo.CONST_IDPARCELLE); zParcelleIdent = pShape.getValue(liRang); } //end if }finally{ pLayerParcelle.close(); } //e nd finally } //e nd if } finally { pRes.Dispose(); pRes = null; } //e nd finally pLayerParcelle.Dispose(); pLayerParcelle = null; } else throw new Exception("Couche des parcelles introuvable"); } finally{ } //end finally return pShape; } //end fucntion regards ----------------------------------------- Xavier Mauclaire Service informatique GEOTER SAS 3, rue Jean Monnet 34830 Clapiers France T?l.: +33 (0)4.67.59.18.11 Fax: +33 (0)4.67.59.18.24 Email: xavier.mauclaire at geoter.fr Web site: http://www.geoter.fr ------------------------------------------------------- -----Message d'origine----- De : Tamas Szekeres [mailto:szekerest at gmail.com] Envoy? : lundi 26 juin 2006 17:55 ? : Xavier Mauclaire Cc : MAPSERVER-USERS at lists.umn.edu Objet : Re: Mapscript c# problems and apache2 scratches Xavier, Could you extract the problem as a sample application, like you have done with the previous issue? How did you make the test? How many requests should be made? Is the problem deterministic of occurs randomly at different functions. Tamas 2006/6/26, Xavier Mauclaire : > > > HI > > New problem with the mapscript c# library. > I'm doing a web site using, among others, querybyshape function. If > there are several requests using this function i scratches the server > > From banders at REFRACTIONS.NET Mon Jun 26 09:26:25 2006 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Mon, 26 Jun 2006 09:26:25 -0700 Subject: WMS Layer Problem In-Reply-To: Message-ID: Yes, that URL from the Tomcat log is probably the one that Mapserver used to request the photo layer. Recall the error message I mentioned before said "Invalid Lon-Lat coordinates, must specify at least one (lon,lat) pair correctly; Longitude must be between -170 and -60 Latitude must be between 15 and 75 ". The bbox in your URL is outside that range. Brock M.L. Jackson wrote: > Thanks for the reply. I tried changing the bounding box and still > nothing. I even removed all the layers except the wms layer to make > sure it wasn't any conflict with the other layers. > > I noticed this message in red after I stopped the Tomcat server. It > has only appeared a few times after stopping the server. > > " > HTTP: Starting to prepare HTTP requests. > > HTTP request: id=2, > http://terraservice.net/OgcMap.ashx?LAYERS=DOQ&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fpng&STYLES=&HEIGHT=600&VERSION=1.1.1&SRS=EPSG:4326&WIDTH=800&BBOX=%2D178%2E217598362366%2C3%2E44738582890752%2C%2D66%2E9692710360024%2C86%2E8836313236801&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage > > > HTTP: Before download loop > msHTTPWriteFct(id=2, 396 bytes) > HTTP: After download loop > msHTTPExecuteRequests() timing summary per layer (connect_time + > time_to_first_packet + download_time = total_time in seconds) > Layer 2: 0.062 + 0.703 + 0.062 = 0.827s > msDrawRasterLayerLow(photo): entering. > " > > Do you think that it is possible that the url for this layer is > somehow being requested exactly how it appears in this Tomcat message? > > > >> From: Brock Anderson >> Reply-To: Brock Anderson >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] WMS Layer Problem >> Date: Mon, 26 Jun 2006 08:50:19 -0700 >> >> I made a WMS request in my browser using the request parameters >> specified in your photo layer: >> >> http://terraservice.net/OgcMap.ashx?request=getmap&service=wms&version=1.1.1&width=500&height=500&layers=DOQ&bbox=-170,60,-150,75&srs=EPSG:4326&format=png >> >> >> The WMS gave an error: "Invalid Lon-Lat coordinates, must specify at >> least one (lon,lat) pair correctly; Longitude must be between -170 >> and -60 Latitude must be between 15 and 75 " >> >> With a different lat-long bounding box it seems to work. I tested >> with bbox=-124,46,-110,52. I think the source WMS server doesn't like >> your bounding box. >> >> That's just a guess. I don't know exactly what WMS URLs mapserver is >> using to request the photo layers. If you have a way to intercept >> those outgoing URLs that should give you enough clues to fix the >> problem. >> >> Brock >> >> M.L. Jackson wrote: >> >>> Hi, I'm new to the Mapserver Listserv. I am having problems >>> displaying the wms layer on my map. My problem is that I don't see >>> any aerial shots at all. It is as if the map is being drawn without >>> the layer. >>> >>> Here is a snippet out of my map file where the wms layer is defined: >>> >>> LAYER >>> NAME "photo" >>> STATUS DEFAULT >>> TYPE RASTER >>> MINSCALE 10000 >>> #MAXSCALE 10000 >>> >>> CONNECTIONTYPE WMS >>> CONNECTION "http://terraservice.net/OgcMap.ashx?" >>> >>> METADATA >>> "wms_srs" "EPSG:4326" >>> "wms_title" "Orthophoto" >>> "wms_name" "DOQ" >>> "wms_server_version" "1.1.1" >>> "wms_format" "image/png" >>> "wms_layers" "doq" >>> "wms_group_title" "background" >>> "wms_onlineresource" "http://terraservice.net/OgcMap.ashx?" >>> "wms_latlonboundingbox" "-170 -60 15 75" >>> #"wms_connectiontimeout" "120" >>> END >>> PROJECTION >>> "init=epsg:4326" >>> END >>> DEBUG ON >>> END >>> >>> BTW, my map extent is -178.21759836236586 18.924781799316406 >>> -66.96927103600244 71.40623535327121. Thanks for your reply. >>> >>> _________________________________________________________________ >>> Don?t just search. Find. Check out the new MSN Search! >>> http://search.msn.click-url.com/go/onm00200636ave/direct/01/ >> > > _________________________________________________________________ > Don?t just search. Find. Check out the new MSN Search! > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > From mljacks2 at HOTMAIL.COM Mon Jun 26 09:33:33 2006 From: mljacks2 at HOTMAIL.COM (M.L. Jackson) Date: Mon, 26 Jun 2006 11:33:33 -0500 Subject: WMS Layer Problem In-Reply-To: <44A00AB1.9080600@refractions.net> Message-ID: Actually, I'm using the bbox range that you indicated in your other reply and still not getting a wms layer image. That error message that I posted is old. I just thought that it might indicate a problem because I haven't changed much since then. >From: Brock Anderson >Reply-To: Brock Anderson >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] WMS Layer Problem >Date: Mon, 26 Jun 2006 09:26:25 -0700 > >Yes, that URL from the Tomcat log is probably the one that Mapserver used >to request the photo layer. > >Recall the error message I mentioned before said "Invalid Lon-Lat >coordinates, must specify at least one (lon,lat) pair correctly; Longitude >must be between -170 and -60 Latitude must be between 15 and 75 ". The bbox >in your URL is outside that range. > >Brock > >M.L. Jackson wrote: > >>Thanks for the reply. I tried changing the bounding box and still nothing. >>I even removed all the layers except the wms layer to make sure it wasn't >>any conflict with the other layers. >> >>I noticed this message in red after I stopped the Tomcat server. It has >>only appeared a few times after stopping the server. >> >>" >>HTTP: Starting to prepare HTTP requests. >> >>HTTP request: id=2, >>http://terraservice.net/OgcMap.ashx?LAYERS=DOQ&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fpng&STYLES=&HEIGHT=600&VERSION=1.1.1&SRS=EPSG:4326&WIDTH=800&BBOX=%2D178%2E217598362366%2C3%2E44738582890752%2C%2D66%2E9692710360024%2C86%2E8836313236801&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage >> >> >>HTTP: Before download loop >>msHTTPWriteFct(id=2, 396 bytes) >>HTTP: After download loop >>msHTTPExecuteRequests() timing summary per layer (connect_time + >>time_to_first_packet + download_time = total_time in seconds) >>Layer 2: 0.062 + 0.703 + 0.062 = 0.827s >>msDrawRasterLayerLow(photo): entering. >>" >> >>Do you think that it is possible that the url for this layer is somehow >>being requested exactly how it appears in this Tomcat message? >> >> >> >>>From: Brock Anderson >>>Reply-To: Brock Anderson >>>To: MAPSERVER-USERS at LISTS.UMN.EDU >>>Subject: Re: [UMN_MAPSERVER-USERS] WMS Layer Problem >>>Date: Mon, 26 Jun 2006 08:50:19 -0700 >>> >>>I made a WMS request in my browser using the request parameters specified >>>in your photo layer: >>> >>>http://terraservice.net/OgcMap.ashx?request=getmap&service=wms&version=1.1.1&width=500&height=500&layers=DOQ&bbox=-170,60,-150,75&srs=EPSG:4326&format=png >>> >>> >>>The WMS gave an error: "Invalid Lon-Lat coordinates, must specify at >>>least one (lon,lat) pair correctly; Longitude must be between -170 and >>>-60 Latitude must be between 15 and 75 " >>> >>>With a different lat-long bounding box it seems to work. I tested with >>>bbox=-124,46,-110,52. I think the source WMS server doesn't like your >>>bounding box. >>> >>>That's just a guess. I don't know exactly what WMS URLs mapserver is >>>using to request the photo layers. If you have a way to intercept those >>>outgoing URLs that should give you enough clues to fix the problem. >>> >>>Brock >>> >>>M.L. Jackson wrote: >>> >>>>Hi, I'm new to the Mapserver Listserv. I am having problems displaying >>>>the wms layer on my map. My problem is that I don't see any aerial shots >>>>at all. It is as if the map is being drawn without the layer. >>>> >>>>Here is a snippet out of my map file where the wms layer is defined: >>>> >>>>LAYER >>>>NAME "photo" >>>>STATUS DEFAULT >>>>TYPE RASTER >>>>MINSCALE 10000 >>>>#MAXSCALE 10000 >>>> >>>>CONNECTIONTYPE WMS >>>>CONNECTION "http://terraservice.net/OgcMap.ashx?" >>>> >>>>METADATA >>>>"wms_srs" "EPSG:4326" >>>>"wms_title" "Orthophoto" >>>>"wms_name" "DOQ" >>>>"wms_server_version" "1.1.1" >>>>"wms_format" "image/png" >>>>"wms_layers" "doq" >>>>"wms_group_title" "background" >>>>"wms_onlineresource" "http://terraservice.net/OgcMap.ashx?" >>>>"wms_latlonboundingbox" "-170 -60 15 75" >>>>#"wms_connectiontimeout" "120" >>>>END >>>>PROJECTION >>>>"init=epsg:4326" >>>>END >>>>DEBUG ON >>>>END >>>> >>>>BTW, my map extent is -178.21759836236586 18.924781799316406 >>>>-66.96927103600244 71.40623535327121. Thanks for your reply. >>>> >>>>_________________________________________________________________ >>>>Don?t just search. Find. Check out the new MSN Search! >>>>http://search.msn.click-url.com/go/onm00200636ave/direct/01/ >>> >> >>_________________________________________________________________ >>Don?t just search. Find. Check out the new MSN Search! >>http://search.msn.click-url.com/go/onm00200636ave/direct/01/ >> _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From banders at REFRACTIONS.NET Mon Jun 26 09:45:31 2006 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Mon, 26 Jun 2006 09:45:31 -0700 Subject: WMS Layer Problem In-Reply-To: Message-ID: Check your tomcat logs for incoming requests for the WMS photo service. Those will give clues. I suspect you'll find that the requests are using bboxes that are too large for your photo service. (Your photo service seems to reject requests with bboxes larger than the extents of the DOQ layer. It's a bit finicky, and you may have to work around that. Perhaps increase the extents of your photo service.) Brock M.L. Jackson wrote: > Actually, I'm using the bbox range that you indicated in your other > reply and still not getting a wms layer image. That error message that > I posted is old. I just thought that it might indicate a problem > because I haven't changed much since then. > > >> From: Brock Anderson >> Reply-To: Brock Anderson >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] WMS Layer Problem >> Date: Mon, 26 Jun 2006 09:26:25 -0700 >> >> Yes, that URL from the Tomcat log is probably the one that Mapserver >> used to request the photo layer. >> >> Recall the error message I mentioned before said "Invalid Lon-Lat >> coordinates, must specify at least one (lon,lat) pair correctly; >> Longitude must be between -170 and -60 Latitude must be between 15 >> and 75 ". The bbox in your URL is outside that range. >> >> Brock >> >> M.L. Jackson wrote: >> >>> Thanks for the reply. I tried changing the bounding box and still >>> nothing. I even removed all the layers except the wms layer to make >>> sure it wasn't any conflict with the other layers. >>> >>> I noticed this message in red after I stopped the Tomcat server. It >>> has only appeared a few times after stopping the server. >>> >>> " >>> HTTP: Starting to prepare HTTP requests. >>> >>> HTTP request: id=2, >>> http://terraservice.net/OgcMap.ashx?LAYERS=DOQ&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fpng&STYLES=&HEIGHT=600&VERSION=1.1.1&SRS=EPSG:4326&WIDTH=800&BBOX=%2D178%2E217598362366%2C3%2E44738582890752%2C%2D66%2E9692710360024%2C86%2E8836313236801&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage >>> >>> >>> >>> HTTP: Before download loop >>> msHTTPWriteFct(id=2, 396 bytes) >>> HTTP: After download loop >>> msHTTPExecuteRequests() timing summary per layer (connect_time + >>> time_to_first_packet + download_time = total_time in seconds) >>> Layer 2: 0.062 + 0.703 + 0.062 = 0.827s >>> msDrawRasterLayerLow(photo): entering. >>> " >>> >>> Do you think that it is possible that the url for this layer is >>> somehow being requested exactly how it appears in this Tomcat message? >>> >>> >>> >>>> From: Brock Anderson >>>> Reply-To: Brock Anderson >>>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>>> Subject: Re: [UMN_MAPSERVER-USERS] WMS Layer Problem >>>> Date: Mon, 26 Jun 2006 08:50:19 -0700 >>>> >>>> I made a WMS request in my browser using the request parameters >>>> specified in your photo layer: >>>> >>>> http://terraservice.net/OgcMap.ashx?request=getmap&service=wms&version=1.1.1&width=500&height=500&layers=DOQ&bbox=-170,60,-150,75&srs=EPSG:4326&format=png >>>> >>>> >>>> >>>> The WMS gave an error: "Invalid Lon-Lat coordinates, must specify >>>> at least one (lon,lat) pair correctly; Longitude must be between >>>> -170 and -60 Latitude must be between 15 and 75 " >>>> >>>> With a different lat-long bounding box it seems to work. I tested >>>> with bbox=-124,46,-110,52. I think the source WMS server doesn't >>>> like your bounding box. >>>> >>>> That's just a guess. I don't know exactly what WMS URLs mapserver >>>> is using to request the photo layers. If you have a way to >>>> intercept those outgoing URLs that should give you enough clues to >>>> fix the problem. >>>> >>>> Brock >>>> >>>> M.L. Jackson wrote: >>>> >>>>> Hi, I'm new to the Mapserver Listserv. I am having problems >>>>> displaying the wms layer on my map. My problem is that I don't see >>>>> any aerial shots at all. It is as if the map is being drawn >>>>> without the layer. >>>>> >>>>> Here is a snippet out of my map file where the wms layer is defined: >>>>> >>>>> LAYER >>>>> NAME "photo" >>>>> STATUS DEFAULT >>>>> TYPE RASTER >>>>> MINSCALE 10000 >>>>> #MAXSCALE 10000 >>>>> >>>>> CONNECTIONTYPE WMS >>>>> CONNECTION "http://terraservice.net/OgcMap.ashx?" >>>>> >>>>> METADATA >>>>> "wms_srs" "EPSG:4326" >>>>> "wms_title" "Orthophoto" >>>>> "wms_name" "DOQ" >>>>> "wms_server_version" "1.1.1" >>>>> "wms_format" "image/png" >>>>> "wms_layers" "doq" >>>>> "wms_group_title" "background" >>>>> "wms_onlineresource" "http://terraservice.net/OgcMap.ashx?" >>>>> "wms_latlonboundingbox" "-170 -60 15 75" >>>>> #"wms_connectiontimeout" "120" >>>>> END >>>>> PROJECTION >>>>> "init=epsg:4326" >>>>> END >>>>> DEBUG ON >>>>> END >>>>> >>>>> BTW, my map extent is -178.21759836236586 18.924781799316406 >>>>> -66.96927103600244 71.40623535327121. Thanks for your reply. >>>>> >>>>> _________________________________________________________________ >>>>> Don?t just search. Find. Check out the new MSN Search! >>>>> http://search.msn.click-url.com/go/onm00200636ave/direct/01/ >>>> >>>> >>> >>> _________________________________________________________________ >>> Don?t just search. Find. Check out the new MSN Search! >>> http://search.msn.click-url.com/go/onm00200636ave/direct/01/ >>> > > _________________________________________________________________ > Express yourself instantly with MSN Messenger! Download today - it's > FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From david.bitner at GMAIL.COM Mon Jun 26 09:40:42 2006 From: david.bitner at GMAIL.COM (David William Bitner) Date: Mon, 26 Jun 2006 11:40:42 -0500 Subject: Nexrad Base Reflectivity WMS-Time (Rasters with a PostGIS Tileindex) Message-ID: Daryl Herzman has added time support to the Nexrad Base Reflectivity WMS service out of Iowa State University. GetCapabilities: http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi?&SERVICE=WMS&REQUEST=GetCapabilities GetMap With Time Parameter Example: http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi?&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=nexrad_base_reflect,nexrad-n0r-wmst&time=2004-08-23T20:35 Snippet From Mapfile Added to WMS-T Docs to show PostGIS TileIndex setup: http://mapserver.gis.umn.edu/docs/howto/wms_time_support/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From akrherz at IASTATE.EDU Mon Jun 26 10:24:17 2006 From: akrherz at IASTATE.EDU (Daryl Herzmann) Date: Mon, 26 Jun 2006 12:24:17 -0500 Subject: Nexrad Base Reflectivity WMS-Time (Rasters with a PostGIS Tileindex) In-Reply-To: Message-ID: On Mon, 26 Jun 2006, David William Bitner wrote: > Daryl Herzman has added time support to the Nexrad Base Reflectivity WMS > service out of Iowa State University. > > GetCapabilities: > http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi?&SERVICE=WMS&REQUEST=GetCapabilities > > GetMap With Time Parameter Example: > http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi?&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=nexrad_base_reflect,nexrad-n0r-wmst&time=2004-08-23T20:35 > > Snippet From Mapfile Added to WMS-T Docs to show PostGIS TileIndex setup: > http://mapserver.gis.umn.edu/docs/howto/wms_time_support/ Greetings all. You can drop the '-t' from the URLs above. The above URLs are the testing ones and I have moved the WMS-T layers into the main NEXRAD WMS service. My fault for the confusion. Big thanks goes to FrankW for fixing CVS to get the time filtering from a postgis tileindex working corectly!! thanks! daryl -- /** * Daryl Herzmann, RHCE * Program Assistant -- Iowa Environmental Mesonet * http://mesonet.agron.iastate.edu */ From mljacks2 at HOTMAIL.COM Mon Jun 26 11:40:01 2006 From: mljacks2 at HOTMAIL.COM (M.L. Jackson) Date: Mon, 26 Jun 2006 13:40:01 -0500 Subject: WMS Layer Problem In-Reply-To: <44A00F2B.7060802@refractions.net> Message-ID: Is the MINSCALE property necessary? >From: Brock Anderson >To: "M.L. Jackson" >CC: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] WMS Layer Problem >Date: Mon, 26 Jun 2006 09:45:31 -0700 > >Check your tomcat logs for incoming requests for the WMS photo service. >Those will give clues. I suspect you'll find that the requests are using >bboxes that are too large for your photo service. (Your photo service seems >to reject requests with bboxes larger than the extents of the DOQ layer. >It's a bit finicky, and you may have to work around that. Perhaps increase >the extents of your photo service.) > >Brock > >M.L. Jackson wrote: > >>Actually, I'm using the bbox range that you indicated in your other reply >>and still not getting a wms layer image. That error message that I posted >>is old. I just thought that it might indicate a problem because I haven't >>changed much since then. >> >> >>>From: Brock Anderson >>>Reply-To: Brock Anderson >>>To: MAPSERVER-USERS at LISTS.UMN.EDU >>>Subject: Re: [UMN_MAPSERVER-USERS] WMS Layer Problem >>>Date: Mon, 26 Jun 2006 09:26:25 -0700 >>> >>>Yes, that URL from the Tomcat log is probably the one that Mapserver used >>>to request the photo layer. >>> >>>Recall the error message I mentioned before said "Invalid Lon-Lat >>>coordinates, must specify at least one (lon,lat) pair correctly; >>>Longitude must be between -170 and -60 Latitude must be between 15 and 75 >>>". The bbox in your URL is outside that range. >>> >>>Brock >>> >>>M.L. Jackson wrote: >>> >>>>Thanks for the reply. I tried changing the bounding box and still >>>>nothing. I even removed all the layers except the wms layer to make sure >>>>it wasn't any conflict with the other layers. >>>> >>>>I noticed this message in red after I stopped the Tomcat server. It has >>>>only appeared a few times after stopping the server. >>>> >>>>" >>>>HTTP: Starting to prepare HTTP requests. >>>> >>>>HTTP request: id=2, >>>>http://terraservice.net/OgcMap.ashx?LAYERS=DOQ&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fpng&STYLES=&HEIGHT=600&VERSION=1.1.1&SRS=EPSG:4326&WIDTH=800&BBOX=%2D178%2E217598362366%2C3%2E44738582890752%2C%2D66%2E9692710360024%2C86%2E8836313236801&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage >>>> >>>> >>>> >>>>HTTP: Before download loop >>>>msHTTPWriteFct(id=2, 396 bytes) >>>>HTTP: After download loop >>>>msHTTPExecuteRequests() timing summary per layer (connect_time + >>>>time_to_first_packet + download_time = total_time in seconds) >>>>Layer 2: 0.062 + 0.703 + 0.062 = 0.827s >>>>msDrawRasterLayerLow(photo): entering. >>>>" >>>> >>>>Do you think that it is possible that the url for this layer is somehow >>>>being requested exactly how it appears in this Tomcat message? >>>> >>>> >>>> >>>>>From: Brock Anderson >>>>>Reply-To: Brock Anderson >>>>>To: MAPSERVER-USERS at LISTS.UMN.EDU >>>>>Subject: Re: [UMN_MAPSERVER-USERS] WMS Layer Problem >>>>>Date: Mon, 26 Jun 2006 08:50:19 -0700 >>>>> >>>>>I made a WMS request in my browser using the request parameters >>>>>specified in your photo layer: >>>>> >>>>>http://terraservice.net/OgcMap.ashx?request=getmap&service=wms&version=1.1.1&width=500&height=500&layers=DOQ&bbox=-170,60,-150,75&srs=EPSG:4326&format=png >>>>> >>>>> >>>>> >>>>>The WMS gave an error: "Invalid Lon-Lat coordinates, must specify at >>>>>least one (lon,lat) pair correctly; Longitude must be between -170 and >>>>>-60 Latitude must be between 15 and 75 " >>>>> >>>>>With a different lat-long bounding box it seems to work. I tested with >>>>>bbox=-124,46,-110,52. I think the source WMS server doesn't like your >>>>>bounding box. >>>>> >>>>>That's just a guess. I don't know exactly what WMS URLs mapserver is >>>>>using to request the photo layers. If you have a way to intercept those >>>>>outgoing URLs that should give you enough clues to fix the problem. >>>>> >>>>>Brock >>>>> >>>>>M.L. Jackson wrote: >>>>> >>>>>>Hi, I'm new to the Mapserver Listserv. I am having problems displaying >>>>>>the wms layer on my map. My problem is that I don't see any aerial >>>>>>shots at all. It is as if the map is being drawn without the layer. >>>>>> >>>>>>Here is a snippet out of my map file where the wms layer is defined: >>>>>> >>>>>>LAYER >>>>>>NAME "photo" >>>>>>STATUS DEFAULT >>>>>>TYPE RASTER >>>>>>MINSCALE 10000 >>>>>>#MAXSCALE 10000 >>>>>> >>>>>>CONNECTIONTYPE WMS >>>>>>CONNECTION "http://terraservice.net/OgcMap.ashx?" >>>>>> >>>>>>METADATA >>>>>>"wms_srs" "EPSG:4326" >>>>>>"wms_title" "Orthophoto" >>>>>>"wms_name" "DOQ" >>>>>>"wms_server_version" "1.1.1" >>>>>>"wms_format" "image/png" >>>>>>"wms_layers" "doq" >>>>>>"wms_group_title" "background" >>>>>>"wms_onlineresource" "http://terraservice.net/OgcMap.ashx?" >>>>>>"wms_latlonboundingbox" "-170 -60 15 75" >>>>>>#"wms_connectiontimeout" "120" >>>>>>END >>>>>>PROJECTION >>>>>>"init=epsg:4326" >>>>>>END >>>>>>DEBUG ON >>>>>>END >>>>>> >>>>>>BTW, my map extent is -178.21759836236586 18.924781799316406 >>>>>>-66.96927103600244 71.40623535327121. Thanks for your reply. >>>>>> >>>>>>_________________________________________________________________ >>>>>>Don?t just search. Find. Check out the new MSN Search! >>>>>>http://search.msn.click-url.com/go/onm00200636ave/direct/01/ >>>>> >>>>> >>>> >>>>_________________________________________________________________ >>>>Don?t just search. Find. Check out the new MSN Search! >>>>http://search.msn.click-url.com/go/onm00200636ave/direct/01/ >>>> >> >>_________________________________________________________________ >>Express yourself instantly with MSN Messenger! Download today - it's FREE! >>http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > _________________________________________________________________ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement From adams at TERRESTRIS.DE Mon Jun 26 11:47:14 2006 From: adams at TERRESTRIS.DE (Till Adams) Date: Mon, 26 Jun 2006 20:47:14 +0200 Subject: shaoe to mysql connect In-Reply-To: <44A0023B.2000903@refractions.net> Message-ID: Dear list, we just tried to make a connect from a shapefile's attribute to a mysql database. My mapfile looks like this: CONNECTIONTYPE OGR CONNECTION "../c_poly1.shp" DATA "SELECT * from c_poly1 left join 'MYSQL:clusterpilot,host=localhost,user=myuser,tables=standort'.plz ON c_poly1.plz99=clusterpilot.plz" But when trying to access this I get a mysql connection problem: msOGRFileOpen(): OGR error. ExecuteSQL(SELECT * from c_poly1 left join 'MYSQL:clusterpilot,host=localhost,user=myuser,tables=standort'.plz ON c_poly1.plz99=clusterpilot.plz) failed. Unable to open secondary datasource `MYSQL:clusterpilot,host=localhost,user=myuser,tables=standort' required by JOIN. msHTTPExecuteRequests(): HTTP request error. HTTP GET request failed with status 404 () for http://maps.terrestris.de/mapbender22/tmp/kreis_3f628d46e5674fde39496748d853caa0.xm) Is there anything I have to compile in the OGR driver? (Ogr2ogr gives no mysql-capabilities) -- Or is my mapfile-syntax wrong? Any ideas? Thanks in advance, Till From cjesch at CCT.LSU.EDU Mon Jun 26 14:25:32 2006 From: cjesch at CCT.LSU.EDU (Carola Jesch) Date: Mon, 26 Jun 2006 16:25:32 -0500 Subject: wfs query template...please help Message-ID: Hi list, I am trying to connect to a WFS layer and it works fine as long as I only want to see the WFS points in my map. But now I am trying to see the corresponding attributes in a query template and nothing comes back. Here is my layer definition...am I doing something wrong? Please help. LAYER NAME lumconwfs STATUS ON TYPE POINT CONNECTIONTYPE WFS CONNECTION "http://capvstr-43.lsu.edu/cgi-bin/mapserv.exe?map=../htdocs/data/lumcon/lum con_wfsserver.map&" #path to wfsserver METADATA "wfs_service" "WFS" "wfs_typename" "lumconcsv" "wfs_version" "1.0.0" "wfs_maxfeatures" "1" "wfs_request_method" "GET" END PROJECTION "init=epsg:4326" END CLASS STYLE COLOR 255 255 0 SIZE 6 SYMBOL "star" END END TOLERANCE 10 HEADER './templates/lumcon_header.html' TEMPLATE './templates/lumcon_query.html' FOOTER './templates/lumcon_footer.html' END # Layer ----Thanks! Carola From richard.greenwood at GMAIL.COM Mon Jun 26 20:07:37 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Mon, 26 Jun 2006 21:07:37 -0600 Subject: dBox dLegend raster/vector images In-Reply-To: Message-ID: On 6/26/06, Ken Boss wrote: > Hey Rich-- > > You should be able to do the same thing for a vector layer - just throw a KEYIMAGE line into the CLASS(es) section(s). At least, it works for me on my ms4w installation using make_dlegend_cgi.py. Hey Ken, Always a pleasure to hear from you. Where I'm lost is that in the demo there is a keyimage defined for the ratser layer, but the vector layers seem to get their keyimage created on the fly. When I try this in my application I just get a "broken link" image in my legend for all my layers. I'm not doing a very good job of articulating my problem (and if I could articulate it better, I would probably have solved it by now!) Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From sdc at SDC.COM.AU Mon Jun 26 23:35:40 2006 From: sdc at SDC.COM.AU (Stephen Davies) Date: Tue, 27 Jun 2006 16:05:40 +0930 Subject: Mapserver/GD JPEGs Message-ID: Last week I posted a request regarding comments in JPEGs and their apparent effect on Motorola 3G telephones. Since then I have found that a) the issue seems to affect all WAP phones and b) it is not just comments that cause the problem. It seems that these devices can only handle very simple images and those generated by Mapserver/GD fall outside their capabilities. I have found that, as well as removing the comments from my map images, I have to go further. My current work-around is to use a PERL script to generate the map image to disk and then use the mogrify utility from Image Magik to "clean" it. The mogrify command is simply: mogrify -quality 100 image.jpg but whatever this does to the image is enough to make it displayable on a telephone when sent as an img src=. If anybody knows more about what is happening here and/or what the underlying problem is, I would love to hear it. Cheers, 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 yu.gotou at GTEC-NI.COM Mon Jun 26 23:51:02 2006 From: yu.gotou at GTEC-NI.COM (GotouYutaka) Date: Tue, 27 Jun 2006 15:51:02 +0900 Subject: Receive Rejected posting to MAPSERVER-USERS@LISTS.UMN.EDU Message-ID: I tried to post the list. I recieved this message everytime. Your message is being returned to you unprocessed because it appears to have already been distributed to the MAPSERVER-USERS list. That is, a message with identical text (but possibly with different mail headers) has been posted to the list recently, either by you or by someone else. If you have reason to resend this message to the list (for instance because you have been notified of a hardware failure with loss of data), please alter the text of the message in some way and resend it to the list. Note that altering the "Subject:" line or adding blank lines at the top or bottom of the message is not sufficient; you should instead add a sentence or two at the top explaining why you are resending the message, so that the other subscribers understand why they are getting two copies of the same message. why? **************************************** yu.gotou at gtec-ni.com From zhonghaiw at GMAIL.COM Tue Jun 27 00:54:55 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Tue, 27 Jun 2006 09:54:55 +0200 Subject: C# MapScript: change the point value of the inline feature. Message-ID: Hi guys, trying to render a copyright-info like info on the top of ht map image, and this is done with the Inline Featrure in a separate layer. If the map size is changed, the point value of the label position should also be changed. has anybody done this before? kind regards zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From madprof at GMX.CH Tue Jun 27 01:13:49 2006 From: madprof at GMX.CH (Daniel Goetz) Date: Tue, 27 Jun 2006 10:13:49 +0200 Subject: LABELMINSCALE/LABELMAXSCALE Message-ID: Hi, I want to write a wms-konform .map-file. Therefor I have some raster-Layers in the bottom, a oracle-spatial-layer with polygons in the middle and on top I want to have some Layers (point) just for labeling. To test my .map-file in the process of writing, I wrote me a small html.template with pan and zoom abilities. Erverything went fine so long. But when I embeded my .mapfile in "mapender" (this "template" is more or less a WMS-konform client-software; see therefor: http://www.mapbender.org/ ) as a WMS, the Layers for labeling (POINT-Layers) were not shown anymore. (You remember with the same .map-file and a simple html-template everything went fine). So I tried to do some changes on the LAYER-Definitions of the affected Layers in the .map-file. and it turned out, that WMS-GetMap-Request could not deal with the "LABELMINSCALE" and the "LABELMAXSCALE" Parameters in the LAYERS-Object. Here I give you the LAYER-Definition of my .mapfile where I have outcommented the LABELMINSCALE and LABELMAXSCALE lines (and then it works): LAYER NAME "LABEL_GFZ" CONNECTIONTYPE OracleSpatial CONNECTION "username/password at service" DATA "GEOM FROM VIEW_LABEL_GFZ USING SRID 82032" TYPE ANNOTATION STATUS ON PROJECTION "init=epsg:4326" END LABELITEM "LABEL_TEXT" # LABELMAXSCALE 13000 # LABELMINSCALE 2500 SYMBOLSCALE 4000 METADATA WMS_TITLE "VIEW_LABEL_GFZ" END CLASS LABEL TYPE truetype FONT arial SIZE 11 MAXSIZE 17 MINSIZE 7 ANTIALIAS TRUE COLOR 0 0 0 OUTLINECOLOR 255 255 255 POSITION lc FORCE TRUE END END LABELANGLEITEM "(100-ORIENTATION)*0.9" END Has anybody experience with this problem or any ideas what went wrong? Might it be that the Parameter LABELMINSCAL and LABELMAXSCAL are not konform with the OGC-WMS-specification? Or is there another reason why the Layers are shown via html-template but not via WMS-GetMapt-Request? Could anybody help? Thank you so much for your help, your time and your ideas. Thank you. regards Daniel -- "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail From adams at TERRESTRIS.DE Tue Jun 27 01:29:26 2006 From: adams at TERRESTRIS.DE (Till Adams) Date: Tue, 27 Jun 2006 10:29:26 +0200 Subject: shape mysql connect problem Message-ID: Dear list, we just tried to make a connect from a shapefile's attribute to a mysql database. My mapfile looks like this: CONNECTIONTYPE OGR CONNECTION "../c_poly1.shp" DATA "SELECT * from c_poly1 left join 'MYSQL:clusterpilot,host=localhost,user=myuser,tables=standort'.plz ON c_poly1.plz99=clusterpilot.plz" But when trying to access this I get a mysql connection problem: msOGRFileOpen(): OGR error. ExecuteSQL(SELECT * from c_poly1 left join 'MYSQL:clusterpilot,host=localhost,user=myuser,tables=standort'.plz ON c_poly1.plz99=clusterpilot.plz) failed. Unable to open secondary datasource `MYSQL:clusterpilot,host=localhost,user=myuser,tables=standort' required by JOIN. msHTTPExecuteRequests(): HTTP request error. HTTP GET request failed with status 404 () for http://maps.terrestris.de/mapbender22/tmp/kreis_3f628d46e5674fde39496748d853caa0.xm) Is there anything I have to compile in the OGR driver, (Ogr2ogr gives no mysql-capabilities) e.g. with-mysql (I've tried this but the compiler said, could not find mysql.conf? -- Or is my mapfile-syntax wrong? Any ideas? Thanks in advance, Till From frank.koormann at INTEVATION.DE Tue Jun 27 03:46:13 2006 From: frank.koormann at INTEVATION.DE (Frank Koormann) Date: Tue, 27 Jun 2006 12:46:13 +0200 Subject: templete problem In-Reply-To: <200606261136.39419.frank.koormann@intevation.de> Message-ID: * Frank Koormann [060626 11:40]: > Am Freitag 23 Juni 2006 10:20 schrieb absar ali: > > i am using the following line to query the map > > ? ? > > ? window.open("/cgi-bin/mapserv.exe?map > > paramerters......................."); > > ? but it just prints . > > ? Code No [codeno] > > ? Name [name] > > Templates ([codeno], [name]) must be written exactly like the > attribute titles in the data. Most commonly are case sensitivity > problems, since titles often are upper case. Try [CODENO] .... For the records: It was a case sensitivity problem, | Code No [CODENO] | Name [NAME] solved the problem. -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From jeff at PROPERTYKEY.COM Tue Jun 27 06:16:00 2006 From: jeff at PROPERTYKEY.COM (Jeff Hoffmann) Date: Tue, 27 Jun 2006 08:16:00 -0500 Subject: Mapserver/GD JPEGs In-Reply-To: <200606271605.40612.sdc@sdc.com.au> Message-ID: Stephen Davies wrote: > Last week I posted a request regarding comments in JPEGs and their > apparent effect on Motorola 3G telephones. > > Since then I have found that a) the issue seems to affect all WAP phones > and b) it is not just comments that cause the problem. > > It seems that these devices can only handle very simple images and those > generated by Mapserver/GD fall outside their capabilities. > > I have found that, as well as removing the comments from my map images, > I have to go further. > > My current work-around is to use a PERL script to generate the map image > to disk and then use the mogrify utility from Image Magik to "clean" > it. The mogrify command is simply: > > mogrify -quality 100 image.jpg > > but whatever this does to the image is enough to make it displayable on > a telephone when sent as an img src=. > > If anybody knows more about what is happening here and/or what the > underlying problem is, I would love to hear it. I don't really know a lot of details about what you're doing, but I do know that in my experience, phones don't like progressive JPEGs so I turn that option off (INTERLACE OFF for older versions or FORMATOPTION "INTERLACE=OFF" for newer versions that use an OUTPUTFORMAT block). I think it's enabled by default, so if you don't have an INTERLACE setting, it's most likely creating progressive JPEGs. (I'd guess mogrify may be re-encoding from progressive to non-progressive, and that's why you're seeing the behavior you're seeing.) -- Jeff Hoffmann Head Plate Spinner PropertyKey.com From Ken.Boss at DNR.STATE.MN.US Tue Jun 27 07:43:23 2006 From: Ken.Boss at DNR.STATE.MN.US (Ken Boss) Date: Tue, 27 Jun 2006 09:43:23 -0500 Subject: dBox dLegend raster/vector images Message-ID: Rich-- Sorry, I misunderstood your question. AFAICT, the most likely reasons for broken auto-generated vector-layer keyimages would be either: a misconfigured WEB IMAGEURL parameter in the mapfile or a misconfigured config.dlegend_server parameter in the html template You might also want to look at settings in the mapfile's WEB METADATA section (see Steve's post at http://article.gmane.org/gmane.comp.gis.mapserver.user/20286), but I'm not convinced a misconfiguration there would result in broken keyimages. HTH, --Ken >>> Richard Greenwood 6/26/2006 10:07:37 PM >>> On 6/26/06, Ken Boss wrote: > Hey Rich-- > > You should be able to do the same thing for a vector layer - just throw a KEYIMAGE line into the CLASS(es) section(s). At least, it works for me on my ms4w installation using make_dlegend_cgi.py. Hey Ken, Always a pleasure to hear from you. Where I'm lost is that in the demo there is a keyimage defined for the ratser layer, but the vector layers seem to get their keyimage created on the fly. When I try this in my application I just get a "broken link" image in my legend for all my layers. I'm not doing a very good job of articulating my problem (and if I could articulate it better, I would probably have solved it by now!) Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From kobben at ITC.NL Tue Jun 27 08:12:43 2006 From: kobben at ITC.NL (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Tue, 27 Jun 2006 17:12:43 +0200 Subject: WMS-WFS chaining (bug?) Message-ID: Hi, I found a strange / undocumented feature when trying to chain a Mapserver WMS service with a MapServer WFS. Both are using 4.2.2. In the WMS map configuration, I defined the layer that was to come from the WFS as follows (following the HowTo on the website): ... LAYER NAME airports TYPE POINT STATUS ON CONNECTIONTYPE WFS CONNECTION "http://geoserver.itc.nl/cgi-bin/mapserv.exe?map=D:/Inetpub/geoserver/kobben/thailand/wfs_config.map&" METADATA "wfs_typename" "airportsWFS" "wfs_version" "1.0.0" "wfs_request_method" "GET" "wfs_connectiontimeout" "60" "wfs_maxfeatures" "100" END ... But this yielded an error message that went: msBuildWFSLayerGetURL(): WFS connection error. Metadata wfs_service must be set in the layare Cryptic message, and it took me a looooong time to find that it DID work when I added SERVICE=WFS to the CONNECTION string, although the HowTo states that adding such things there is deprecated... ... CONNECTION "http://geoserver.itc.nl/cgi-bin/mapserv.exe?map=D:/Inetpub/geoserver/kobben/thailand/wfs_config.map&&SERVICE=WFS&" ... You can try it out yourself at http://geoserver.itc.nl/cgi-bin/mapserv.exe?map=D:/Inetpub/geoserver/kobben/thailand/chain_config.map&&VERSION=1.1.1&REQUEST=GetMap&LAYERS=world,airports&SRS=EPSG:4326&BBOX=97,5,106,21&WIDTH=600&HEIGHT=800&FORMAT=image/png Is this a bug, or does it mean it's time to upgrade my Mapserver, or....? -- Barend K?bben International Institute for Geo-information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) ph: +31 (0)53 4874253; fax: +31 (0)53 4874335 From dylan.beaudette at GMAIL.COM Tue Jun 27 10:42:36 2006 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Tue, 27 Jun 2006 10:42:36 -0700 Subject: current dbox example application Message-ID: Hi everyone, Just grabbed the latest dbox sample application, and it looks great. However, I am having some problems implementing the dlegend component. Currently, there is no legend displayed in its container, and a call to make_legend_cgi.py manually yields the following error: XML Parsing Error: xml processing instruction not at start of external entity Location: http://casoilresource.lawr.ucdavis.edu/cgi-bin/make_dlegend_xml_cgi.py?map=/data1/website/mapserver/dbox-0.9a1/soil_web_v3/soil_web_v3.map&server=casoilresource.lawr.ucdavis.edu Line Number 2, Column 1: ^ the site in question can be accessed at this URL: http://casoilresource.lawr.ucdavis.edu/mapserver/dbox-0.9a1/soil_web_v3/example.html I can't seem to figure out what the heck is going on... Any ideas? Thanks in advance, -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From Ken.Boss at DNR.STATE.MN.US Tue Jun 27 11:07:55 2006 From: Ken.Boss at DNR.STATE.MN.US (Ken Boss) Date: Tue, 27 Jun 2006 13:07:55 -0500 Subject: current dbox example application Message-ID: Hello Dylan-- That error is a bit of a red herring; if you view source for the page you can see the bit of XML that make_dlegend_xml.py has constructed. You're well on your way, but you'll need to set some WEB METADATA items in your mapfile to configure the legend output. At present the only documentation for that aspect is a message Steve posted to the list a few weeks ago - http://article.gmane.org/gmane.comp.gis.mapserver.user/20286. HTH, --Ken >>> Dylan Beaudette 6/27/2006 12:42:36 PM >>> Hi everyone, Just grabbed the latest dbox sample application, and it looks great. However, I am having some problems implementing the dlegend component. Currently, there is no legend displayed in its container, and a call to make_legend_cgi.py manually yields the following error: XML Parsing Error: xml processing instruction not at start of external entity Location: http://casoilresource.lawr.ucdavis.edu/cgi-bin/make_dlegend_xml_cgi.py?map=/data1/website/mapserver/dbox-0.9a1/soil_web_v3/soil_web_v3.map&server=casoilresource.lawr.ucdavis.edu Line Number 2, Column 1: ^ the site in question can be accessed at this URL: http://casoilresource.lawr.ucdavis.edu/mapserver/dbox-0.9a1/soil_web_v3/example.html I can't seem to figure out what the heck is going on... Any ideas? Thanks in advance, -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From aquiney at REFRACTIONS.NET Tue Jun 27 11:25:57 2006 From: aquiney at REFRACTIONS.NET (Adam Quiney) Date: Tue, 27 Jun 2006 11:25:57 -0700 Subject: current dbox example application In-Reply-To: <200606271042.36179.dylan.beaudette@gmail.com> Message-ID: Hi All, Our group is trying to get a windows XP installation of MS4W to play nice with an ArcSDE instance running against an SQL Server (running on Windows XP as well, but a different machine) back-end. We noticed that we were segmentation faults drawing out pretty simple layers from the SDE instance, so as an experiment we pulled the layers out into shapefiles and accessed those instead - most of our problems disappeared. However, we have at least two layers for which pulling them out into shapefiles is not an option. These layers are still causing problems by generating unpredictable segmentation faults. The layers are live data and undergo a fairly thorough QA/QC process, so I don't believe the problem lies in the data. Are there any known issues between mapserver 4.8.3 (that which is packaged with MS4W) and ArcSDE 9.1, or does anyone have any idea what might be causing this? Thanks, --Adam From richard.greenwood at GMAIL.COM Tue Jun 27 11:50:04 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 27 Jun 2006 12:50:04 -0600 Subject: dBox dLegend raster/vector images In-Reply-To: Message-ID: On 6/27/06, Ken Boss wrote: > Rich-- > > Sorry, I misunderstood your question. AFAICT, the most likely reasons for broken auto-generated vector-layer keyimages would be either: > > a misconfigured WEB IMAGEURL parameter in the mapfile Thanks Ken, that was it. I didn't have IMAGEPATH & IMAGEURL set correctly, but I didn't even think of looking there because the maps were coming out just fine.My attention was focused on the various new legend parameters and I missed the obvious! Thanks, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From aquiney at REFRACTIONS.NET Tue Jun 27 12:04:15 2006 From: aquiney at REFRACTIONS.NET (Adam Quiney) Date: Tue, 27 Jun 2006 12:04:15 -0700 Subject: Mapserver <-> ArcSDE In-Reply-To: <44A17835.5020102@refractions.net> Message-ID: Whoops, my bad, left the wrong title in the last post - sorry for the repost. --Adam Adam Quiney wrote: > Hi All, > > Our group is trying to get a windows XP installation of MS4W to play > nice with an ArcSDE instance running against an SQL Server (running on > Windows XP as well, but a different machine) back-end. We noticed > that we were segmentation faults drawing out pretty simple layers from > the SDE instance, so as an experiment we pulled the layers out into > shapefiles and accessed those instead - most of our problems disappeared. > > However, we have at least two layers for which pulling them out into > shapefiles is not an option. These layers are still causing problems > by generating unpredictable segmentation faults. The layers are live > data and undergo a fairly thorough QA/QC process, so I don't believe > the problem lies in the data. > > Are there any known issues between mapserver 4.8.3 (that which is > packaged with MS4W) and ArcSDE 9.1, or does anyone have any idea what > might be causing this? > > Thanks, > > --Adam -- Adam Quiney Refractions Research Inc. (250) 383-3022 From dylan.beaudette at GMAIL.COM Tue Jun 27 13:06:29 2006 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Tue, 27 Jun 2006 13:06:29 -0700 Subject: current dbox example application In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB076F@s-sp22.pca.state.mn.us> Message-ID: David, and others: Thanks for the hints. I have added this section to my mapfile: METADATA # dLegend XML legend control dlegend_metagroups "foreground,background" dlegend_foreground_name "Foreground Layers:" dlegend_foreground_layers_and_groups "counties,ca_urban,ca_us_highways,ca_state_highways,ca_local_roads" dlegend_background_name "Background Layers:" dlegend_background_layers_and_groups "landsat,doqq" END .... and I am getting this output from make_legend_xml.py: casoilresource.lawr.ucdavis.edu ...and the website looks like this: http://casoilresource.lawr.ucdavis.edu/mapserver/dbox-0.9a1/soil_web_v3/example.html note that there is only a "Foreground Layers" entry in the legend, and none of the layers actually show up when zooming in... any thoughts? Dylan On Tuesday 27 June 2006 11:14, Fawcett, David wrote: > Dylan, > > Based on your last post to Ken and his comments about Web Metadata, I am > including a mapfile that uses dLegend. I just happened to be playing > with it when your messages popped up. > > David. > > start mapfile > ___________________ > > MAP > NAME rivers > STATUS ON > SIZE 410 352 # was 400 400 > EXTENT 155791 4720323 794359 5570749 > UNITS METERS > STATUS ON > FONTSET "symbols/fonts/fonts.list" > SHAPEPATH "/var/www/flatlandmaps.com/maps/mnrivers/data" > IMAGECOLOR 255 255 255 > SYMBOLSET "symbols/symbol.sym" > IMAGETYPE PNG24 > > > WEB > IMAGEPATH "/var/www/flatlandmaps.com/htdocs/tmp/" > > IMAGEURL "/tmp/" > TEMPLATE "rivers.html" > MINSCALE 100 > MAXSCALE 15500000 > > METADATA > # dLegend XML legend control > dlegend_metagroups "foreground,background" > > dlegend_foreground_name "Foreground Layers:" > #dlegend_foreground_layers_and_groups > "cnty,Highway,radar,shuttles,riverpoint,entryexit,features" > dlegend_foreground_layers_and_groups > "radar,cnty,riverpoint,Highway,shuttles,features,entryexit,sheds" > dlegend_background_name "Background Layers:" > dlegend_background_layers_and_groups "fsa,doqs,drgs" > dlegend_background_element "radio" > END > > END # End of Web Interface > > PROJECTION > "init=epsg:26915" > END > > REFERENCE > IMAGE "images/reference.gif" > EXTENT 189784 4807000 761653 5475346 > #EXTENT 189784 4816400 761654 5472400 > SIZE 125 125 > MINBOXSIZE 5 > MAXBOXSIZE 100 > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > MARKERSIZE 8 > MARKER 'star' > STATUS ON > END > > LEGEND > KEYSIZE 21 14 > STATUS ON > END > > SCALEBAR > STATUS ON > LABEL > SIZE tiny > COLOR 0 0 0 > END > SIZE 120 3 > COLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS MILES > STYLE 1 > INTERVALS 1 > TRANSPARENT TRUE > END # Scalebar > > QUERYMAP > SIZE 200 200 > STATUS ON > STYLE NORMAL #SELECTED > COLOR 255 255 0 > END > > > ############################ > # Start BackGround Layers # > # # > ############################ > > > LAYER # DNR FSA Color Orthophotos > NAME "fsacolor" > TYPE RASTER > GROUP fsa > STATUS ON > CLASS > NAME '2003 Color Air Photos' > KEYIMAGE symbols/legend_keyimages/fsa_keyimage.png > END > CONNECTIONTYPE WMS > CONNECTION > "http://deli.dnr.state.mn.us/cgi-bin/wms?map=DELI_WMS_MAPFILE&REQUEST=ma > p&LAYERS=L390003782306&STYLES=" > > METADATA > "wms_title" "Farm Services Administration (FSA) Color Orthophotos" > "wms_name" "L390003782306" > "wms_server_version" "1.1.1" > "wms_srs" "epsg:26915" > "wms_format" "image/jpeg" > END > > PROJECTION > "init=epsg:26915" > END > END # DNR FSA WMS image ends here > > LAYER # DNR BW DOQs > NAME "mndoqs" > GROUP doqs > TYPE RASTER > OFFSITE 0 0 0 > STATUS OFF > CLASS > NAME 'B&W Air Photos' > KEYIMAGE symbols/legend_keyimages/doq_keyimage.png > END > CONNECTIONTYPE WMS > CONNECTION > "http://deli.dnr.state.mn.us/cgi-bin/wms?map=DELI_WMS_MAPFILE&STYLES=&LA > YERS=L370000050906&REQUEST=GetMap&TRANSPARENT=true" > > METADATA > "wms_title" "USGS Digital Orthophoto Quad (DOQ) - 3 meter" > "wms_name" "L370000050906" > "wms_server_version" "1.1.1" > "wms_srs" "epsg:26915" > "wms_format" "image/png" > END > > PROJECTION > "init=epsg:26915" > END > END # DNR DOQ WMS image ends here > > > > LAYER # DNR 24K DRGs > NAME "mndrgs24" > GROUP drgs > TYPE RASTER > OFFSITE 255 255 255 > STATUS OFF > CLASS > NAME 'USGS Topo Maps' > KEYIMAGE symbols/legend_keyimages/drg_keyimage.png > END > #MINSCALE 10000 > MAXSCALE 30000 > CONNECTIONTYPE WMS > CONNECTION > "http://deli.dnr.state.mn.us/cgi-bin/wms?map=DELI_WMS_MAPFILE&STYLES=&LA > YERS=L380000030906&REQUEST=GetMap&TRANSPARENT=true" > > METADATA > "wms_title" "1:24k Digital Raster Graphic - Collars Removed" > "wms_name" "L380000030906" > "wms_server_version" "1.1.1" > "wms_srs" "epsg:26915" > "wms_format" "image/png" > END > > PROJECTION > "init=epsg:26915" > END > END # DNR 24K DRGs WMS image ends here > > LAYER # DNR 100K DRGs > NAME "mndrgs100" > GROUP drgs > TYPE RASTER > OFFSITE 255 255 255 > STATUS OFF > MINSCALE 30000 > MAXSCALE 125000 > CONNECTIONTYPE WMS > CONNECTION > "http://deli.dnr.state.mn.us/cgi-bin/wms?map=DELI_WMS_MAPFILE&STYLES=&LA > YERS=L380000020906&REQUEST=GetMap&TRANSPARENT=true" > > METADATA > "wms_title" "1:100k Digital Raster Graphic - Collars Removed" > "wms_name" "L380000020906" > "wms_server_version" "1.1.1" > "wms_srs" "epsg:26915" > "wms_format" "image/png" > END > > PROJECTION > "init=epsg:26915" > END > END # DNR 100K DRGs WMS image ends here > > > > LAYER # DNR 250K DRGs > NAME "mndrgs250" > GROUP drgs > TYPE RASTER > OFFSITE 255 255 255 > STATUS OFF > MINSCALE 125000 > MAXSCALE 500000 > CONNECTIONTYPE WMS > CONNECTION > "http://deli.dnr.state.mn.us/cgi-bin/wms?map=DELI_WMS_MAPFILE&STYLES=&LA > YERS=L380000010906&REQUEST=GetMap&TRANSPARENT=true" > > METADATA > "wms_title" "1:250k Digital Raster Graphic - Collars Removed" > "wms_name" "L380000010906" > "wms_server_version" "1.1.1" > "wms_srs" "epsg:26915" > "wms_format" "image/png" > END > > PROJECTION > "init=epsg:26915" > END > END # DNR 100K DRGs WMS image ends here > > > LAYER > NAME "nonmn" > STATUS OFF > TYPE POLYGON > DATA nonmn > TRANSPARENCY 40 > CLASS > STYLE > COLOR 161 173 196 > #COLOR 204 204 153 > #SYMBOL 'dashed1' > END > STYLE > OUTLINECOLOR 51 102 153 > END > END > > END > LAYER > NAME "countybig" > STATUS DEFAULT > TYPE POLYGON > GROUP "cnty" > DATA county > MINSCALE 2000000 > TRANSPARENCY 50 > CLASS > OUTLINECOLOR 153 153 153 > #COLOR 196 193 161 > COLOR 204 204 153 > #SYMBOL 'dashed1' > END > END > > LAYER > NAME "countysmall" > STATUS DEFAULT > GROUP "cnty" > TYPE POLYGON > DATA county > LABELITEM "NAME" > MAXSCALE 2000000 > TRANSPARENCY 50 > CLASS > STYLE > OUTLINECOLOR 102 102 102 #COLOR 196 193 > 161 > #SYMBOL 'dashed1' > END #end style > LABEL > TYPE TRUETYPE > FONT "arial-bold" > SIZE 10 > POSITION cc > MINSIZE 6 > MAXSIZE 12 > COLOR 153 153 153 > SHADOWCOLOR 204 204 204 > ANTIALIAS FALSE #TRUE > PARTIALS FALSE > MINFEATURESIZE 40 > END > > END > END > > LAYER > NAME "hwygenlg" > DATA bighwy > MAXSCALE 900000 > STATUS ON > GROUP "Highway" > TYPE line > TRANSPARENCY 60 > CLASSITEM "RCLASS" > CLASS # County State-Aid Highway > EXPRESSION "4" > SYMBOL 'circle' > SIZE 2 > COLOR 255 153 51 > END > CLASS > EXPRESSION "3" # Minnesota Trunk Highway > SYMBOL 'circle' > SIZE 3 > COLOR 153 51 0 > END > CLASS # US Trunk Highway > EXPRESSION "2" > SYMBOL 'circle' > SIZE 3 > COLOR 204 153 0 > OVERLAYSYMBOL 'circle' > OVERLAYSIZE 1 > OVERLAYCOLOR 204 153 51 > END > CLASS # Interstate Highway > EXPRESSION "1" > SYMBOL 'circle' > SIZE 3 > COLOR 0 0 0 > OVERLAYSYMBOL 'circle' > OVERLAYSIZE 1 > OVERLAYCOLOR 255 51 51 > END > END # bighwy > > > > LAYER > NAME "hwyfine" > DATA bighwy > STATUS OFF > GROUP "Highway" > MAXSCALE 900000 > TYPE ANNOTATION > LABELITEM "ROUTE_NUM" > CLASSITEM "RCLASS" > TRANSPARENCY 50 > CLASS # Interstate Highway > EXPRESSION "1" > COLOR 0 0 0 # dummy color > SYMBOL symbols/interstate.gif > LABEL > MINFEATURESIZE 10 > MINDISTANCE 150 > POSITION cc > SIZE 10 > COLOR 204 204 204 > TYPE TRUETYPE > FONT "arial" > END > END > CLASS # US Trunk Highway > EXPRESSION "2" > COLOR 0 0 0 # dummy color > SYMBOL symbols/ushwy.gif > LABEL > MINFEATURESIZE 10 > MINDISTANCE 150 > POSITION cc > SIZE 8 > COLOR 0 0 0 > TYPE TRUETYPE > FONT "arial" > END > END > CLASS > EXPRESSION "3" # Minnesota Trunk Highway > COLOR 0 0 0 # dummy color > SYMBOL symbols/sthwy.gif > LABEL > MINFEATURESIZE 10 > MINDISTANCE 150 > POSITION cc > SIZE 7 > COLOR 0 0 0 > TYPE TRUETYPE > FONT "arial" > END > END > CLASS # County State-Aid Highway > EXPRESSION "4" > COLOR 0 0 0 # dummy color > SYMBOL symbols/ctyhwy.gif > LABEL > MINFEATURESIZE 10 > MINDISTANCE 150 > POSITION cc > SIZE 7 > COLOR 0 0 0 > TYPE TRUETYPE > FONT "arial" > END > END > END # bighwy > > ############################ > # END BackGround Layers # > # # > ############################ > > ############################ > # Start BackGround Layers # > # # > ############################ > > LAYER # Base Reflectivity Radar IA > NAME "radar" > TYPE RASTER > #GROUP "radar" > OFFSITE 0 0 0 > STATUS ON > CLASS > NAME 'Nexrad Radar' > KEYIMAGE symbols/legend_keyimages/radar_keyimage.png > END > CONNECTIONTYPE WMS > CONNECTION > "http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi" > > METADATA > "wms_title" "IEM WMS Service" > "wms_name" "nexrad_base_reflect" > "wms_server_version" "1.1.1" > "wms_srs" "epsg:26915" > "wms_format" "image/png" > END > > PROJECTION > "init=epsg:26915" > END > END # Weather Radar layer ends here > > LAYER > NAME "features" > STATUS ON > TYPE ANNOTATION > #GROUP features > DATA riverfeatures #shapefile for layer > #SYMBOLSCALE 1000000 > #LABELMAXSCALE 4000000 > LABELITEM "name" > TOLERANCE 10 > #CLASSITEM "run" > CLASS > NAME "feature" > LABEL > TYPE TRUETYPE > FONT "arial-bold" > SIZE 10 > POSITION auto > MINSIZE 6 > MAXSIZE 11 > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > ANTIALIAS TRUE > PARTIALS FALSE > MINDISTANCE 4 > END #label > END #class > END #layer > > LAYER > NAME "shuttles" > STATUS ON > TYPE LINE > GROUP shuttles > DATA shuttle #shapefile for layer > #SYMBOLSCALE 1000000 > LABELMAXSCALE 4000000 > #LABELITEM "name" > TOLERANCE 10 > CLASSITEM "type" > CLASS > NAME "shuttleroute" > EXPRESSION "shuttle" > SYMBOL 'circle' > SIZE 3 > COLOR 0 0 0 > OVERLAYSYMBOL 'circle' > OVERLAYSIZE 1 > OVERLAYCOLOR 255 51 51 > #LABEL > #TYPE TRUETYPE > #FONT "arial-bold" > #SIZE 10 > #POSITION auto > #MINSIZE 6 > #MAXSIZE 11 > #COLOR 0 0 0 > #OUTLINECOLOR 255 255 255 > #ANTIALIAS TRUE > #PARTIALS FALSE > #MINFEATURESIZE 10 > #MINDISTANCE 4 > #END #label > END #class > CLASS > NAME "bikeshuttle" > EXPRESSION "bike" > SYMBOL 'circle' > SIZE 3 > COLOR 0 0 0 > OVERLAYSYMBOL 'dashed1' > OVERLAYSIZE 1 > OVERLAYCOLOR 255 51 51 > #LABEL > #TYPE TRUETYPE > #FONT "arial-bold" > #SIZE 10 > #POSITION auto > #MINSIZE 6 > #MAXSIZE 11 > #COLOR 0 0 0 > #OUTLINECOLOR 255 255 255 > #ANTIALIAS TRUE > #PARTIALS FALSE > #MINFEATURESIZE 10 > #MINDISTANCE 4 > #END #label > END #class > END #layer > > > > LAYER > NAME "riverpoint" > STATUS DEFAULT > TYPE POINT > #GROUP riverpnt > DATA "riverpoint" #shapefile for layer > #MINSCALE 750000 > #MAXSCALE 500000 > #SYMBOLSCALE 1000000 > #TOLERANCE 10 > CLASS > NAME "Run" > SYMBOL 'circle' > SIZE 10 > COLOR 0 255 0 > > END #class > > END #layer > > LAYER > NAME "entryexit" > STATUS ON > TYPE POINT > #GROUP entryexit > DATA inout #shapefile for layer > #SYMBOLSCALE 1000000 > TOLERANCE 10 > CLASSITEM "type" > CLASS > NAME "put_in" > EXPRESSION "putin" > SYMBOL 'upramp' > SIZE 7 > COLOR 0 255 0 > END #class > CLASS > NAME "take_out" > EXPRESSION "takeout" > SYMBOL 'upramp' > SIZE 7 > COLOR 255 0 0 > END #class > END #layer > > > LAYER > NAME sheds > STATUS ON > TYPE POLYGON > DATA wwSheds > #CLASSITEM "MAJOR" > CLASS > NAME "Watershed" > #COLOR 0 255 0 > OUTLINECOLOR 255 0 0 POLYLINE > END > > END > > > END #End of Map File > > > > > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Dylan Beaudette > Sent: Tuesday, June 27, 2006 12:43 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] current dbox example application > > > Hi everyone, > > Just grabbed the latest dbox sample application, and it looks great. > However, > I am having some problems implementing the dlegend component. Currently, > > there is no legend displayed in its container, and a call to > make_legend_cgi.py manually yields the following error: > > XML Parsing Error: xml processing instruction not at start of external > entity > Location: > http://casoilresource.lawr.ucdavis.edu/cgi-bin/make_dlegend_xml_cgi.py?m > ap=/data1/website/mapserver/dbox-0.9a1/soil_web_v3/soil_web_v3.map&serve > r=casoilresource.lawr.ucdavis.edu > Line Number 2, Column 1: > > ^ > > > the site in question can be accessed at this URL: > > http://casoilresource.lawr.ucdavis.edu/mapserver/dbox-0.9a1/soil_web_v3/ > example.html > > I can't seem to figure out what the heck is going on... > > > Any ideas? > > Thanks in advance, -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From woodbri at SWOODBRIDGE.COM Tue Jun 27 13:06:39 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 27 Jun 2006 16:06:39 -0400 Subject: current dbox example application In-Reply-To: <200606271306.30156.dylan.beaudette@gmail.com> Message-ID: Dylan, You need to get firebug installed in firefox. then you can see all that is going on, like the following the was mixed in with your xml. -Steve W. Dylan Beaudette wrote: > David, and others: > > Thanks for the hints. > > I have added this section to my mapfile: > > METADATA > # dLegend XML legend control > dlegend_metagroups "foreground,background" > dlegend_foreground_name "Foreground Layers:" > dlegend_foreground_layers_and_groups "counties,ca_urban,ca_us_highways,ca_state_highways,ca_local_roads" > > dlegend_background_name "Background Layers:" > dlegend_background_layers_and_groups "landsat,doqq" > END > > > .... and I am getting this output from make_legend_xml.py: > > > > casoilresource.lawr.ucdavis.edu > > icon="/mapserver/dbox-0.9a1/soil_web_v3/temp/dlegend_82831151434692_counties.gif" /> > maxscale="759340.0" > icon="/mapserver/dbox-0.9a1/soil_web_v3/temp/dlegend_82831151434692_ca_urban.gif" /> > icon="/mapserver/dbox-0.9a1/soil_web_v3/temp/dlegend_82831151434692_ca_us_highways.gif" /> > icon="/mapserver/dbox-0.9a1/soil_web_v3/temp/dlegend_82831151434692_ca_state_highways.gif" /> > icon="/mapserver/dbox-0.9a1/soil_web_v3/temp/dlegend_82831151434692_ca_local_roads.gif" /> > > > icon="/mapserver/dbox-0.9a1/soil_web_v3/temp/dlegend_82831151434692_landsat.gif" /> > icon="/mapserver/dbox-0.9a1/soil_web_v3/temp/dlegend_82831151434692_doqq.gif" /> > > > > > > ...and the website looks like this: > > http://casoilresource.lawr.ucdavis.edu/mapserver/dbox-0.9a1/soil_web_v3/example.html > > > note that there is only a "Foreground Layers" entry in the legend, and none of > the layers actually show up when zooming in... > > any thoughts? > > Dylan > > > On Tuesday 27 June 2006 11:14, Fawcett, David wrote: >> Dylan, >> >> Based on your last post to Ken and his comments about Web Metadata, I am >> including a mapfile that uses dLegend. I just happened to be playing >> with it when your messages popped up. >> >> David. >> >> start mapfile >> ___________________ >> >> MAP >> NAME rivers >> STATUS ON >> SIZE 410 352 # was 400 400 >> EXTENT 155791 4720323 794359 5570749 >> UNITS METERS >> STATUS ON >> FONTSET "symbols/fonts/fonts.list" >> SHAPEPATH "/var/www/flatlandmaps.com/maps/mnrivers/data" >> IMAGECOLOR 255 255 255 >> SYMBOLSET "symbols/symbol.sym" >> IMAGETYPE PNG24 >> >> >> WEB >> IMAGEPATH "/var/www/flatlandmaps.com/htdocs/tmp/" >> >> IMAGEURL "/tmp/" >> TEMPLATE "rivers.html" >> MINSCALE 100 >> MAXSCALE 15500000 >> >> METADATA >> # dLegend XML legend control >> dlegend_metagroups "foreground,background" >> >> dlegend_foreground_name "Foreground Layers:" >> #dlegend_foreground_layers_and_groups >> "cnty,Highway,radar,shuttles,riverpoint,entryexit,features" >> dlegend_foreground_layers_and_groups >> "radar,cnty,riverpoint,Highway,shuttles,features,entryexit,sheds" >> dlegend_background_name "Background Layers:" >> dlegend_background_layers_and_groups "fsa,doqs,drgs" >> dlegend_background_element "radio" >> END >> >> END # End of Web Interface >> >> PROJECTION >> "init=epsg:26915" >> END >> >> REFERENCE >> IMAGE "images/reference.gif" >> EXTENT 189784 4807000 761653 5475346 >> #EXTENT 189784 4816400 761654 5472400 >> SIZE 125 125 >> MINBOXSIZE 5 >> MAXBOXSIZE 100 >> COLOR 255 0 0 >> OUTLINECOLOR 0 0 0 >> MARKERSIZE 8 >> MARKER 'star' >> STATUS ON >> END >> >> LEGEND >> KEYSIZE 21 14 >> STATUS ON >> END >> >> SCALEBAR >> STATUS ON >> LABEL >> SIZE tiny >> COLOR 0 0 0 >> END >> SIZE 120 3 >> COLOR 0 0 0 >> OUTLINECOLOR 0 0 0 >> UNITS MILES >> STYLE 1 >> INTERVALS 1 >> TRANSPARENT TRUE >> END # Scalebar >> >> QUERYMAP >> SIZE 200 200 >> STATUS ON >> STYLE NORMAL #SELECTED >> COLOR 255 255 0 >> END >> >> >> ############################ >> # Start BackGround Layers # >> # # >> ############################ >> >> >> LAYER # DNR FSA Color Orthophotos >> NAME "fsacolor" >> TYPE RASTER >> GROUP fsa >> STATUS ON >> CLASS >> NAME '2003 Color Air Photos' >> KEYIMAGE symbols/legend_keyimages/fsa_keyimage.png >> END >> CONNECTIONTYPE WMS >> CONNECTION >> "http://deli.dnr.state.mn.us/cgi-bin/wms?map=DELI_WMS_MAPFILE&REQUEST=ma >> p&LAYERS=L390003782306&STYLES=" >> >> METADATA >> "wms_title" "Farm Services Administration (FSA) Color Orthophotos" >> "wms_name" "L390003782306" >> "wms_server_version" "1.1.1" >> "wms_srs" "epsg:26915" >> "wms_format" "image/jpeg" >> END >> >> PROJECTION >> "init=epsg:26915" >> END >> END # DNR FSA WMS image ends here >> >> LAYER # DNR BW DOQs >> NAME "mndoqs" >> GROUP doqs >> TYPE RASTER >> OFFSITE 0 0 0 >> STATUS OFF >> CLASS >> NAME 'B&W Air Photos' >> KEYIMAGE symbols/legend_keyimages/doq_keyimage.png >> END >> CONNECTIONTYPE WMS >> CONNECTION >> "http://deli.dnr.state.mn.us/cgi-bin/wms?map=DELI_WMS_MAPFILE&STYLES=&LA >> YERS=L370000050906&REQUEST=GetMap&TRANSPARENT=true" >> >> METADATA >> "wms_title" "USGS Digital Orthophoto Quad (DOQ) - 3 meter" >> "wms_name" "L370000050906" >> "wms_server_version" "1.1.1" >> "wms_srs" "epsg:26915" >> "wms_format" "image/png" >> END >> >> PROJECTION >> "init=epsg:26915" >> END >> END # DNR DOQ WMS image ends here >> >> >> >> LAYER # DNR 24K DRGs >> NAME "mndrgs24" >> GROUP drgs >> TYPE RASTER >> OFFSITE 255 255 255 >> STATUS OFF >> CLASS >> NAME 'USGS Topo Maps' >> KEYIMAGE symbols/legend_keyimages/drg_keyimage.png >> END >> #MINSCALE 10000 >> MAXSCALE 30000 >> CONNECTIONTYPE WMS >> CONNECTION >> "http://deli.dnr.state.mn.us/cgi-bin/wms?map=DELI_WMS_MAPFILE&STYLES=&LA >> YERS=L380000030906&REQUEST=GetMap&TRANSPARENT=true" >> >> METADATA >> "wms_title" "1:24k Digital Raster Graphic - Collars Removed" >> "wms_name" "L380000030906" >> "wms_server_version" "1.1.1" >> "wms_srs" "epsg:26915" >> "wms_format" "image/png" >> END >> >> PROJECTION >> "init=epsg:26915" >> END >> END # DNR 24K DRGs WMS image ends here >> >> LAYER # DNR 100K DRGs >> NAME "mndrgs100" >> GROUP drgs >> TYPE RASTER >> OFFSITE 255 255 255 >> STATUS OFF >> MINSCALE 30000 >> MAXSCALE 125000 >> CONNECTIONTYPE WMS >> CONNECTION >> "http://deli.dnr.state.mn.us/cgi-bin/wms?map=DELI_WMS_MAPFILE&STYLES=&LA >> YERS=L380000020906&REQUEST=GetMap&TRANSPARENT=true" >> >> METADATA >> "wms_title" "1:100k Digital Raster Graphic - Collars Removed" >> "wms_name" "L380000020906" >> "wms_server_version" "1.1.1" >> "wms_srs" "epsg:26915" >> "wms_format" "image/png" >> END >> >> PROJECTION >> "init=epsg:26915" >> END >> END # DNR 100K DRGs WMS image ends here >> >> >> >> LAYER # DNR 250K DRGs >> NAME "mndrgs250" >> GROUP drgs >> TYPE RASTER >> OFFSITE 255 255 255 >> STATUS OFF >> MINSCALE 125000 >> MAXSCALE 500000 >> CONNECTIONTYPE WMS >> CONNECTION >> "http://deli.dnr.state.mn.us/cgi-bin/wms?map=DELI_WMS_MAPFILE&STYLES=&LA >> YERS=L380000010906&REQUEST=GetMap&TRANSPARENT=true" >> >> METADATA >> "wms_title" "1:250k Digital Raster Graphic - Collars Removed" >> "wms_name" "L380000010906" >> "wms_server_version" "1.1.1" >> "wms_srs" "epsg:26915" >> "wms_format" "image/png" >> END >> >> PROJECTION >> "init=epsg:26915" >> END >> END # DNR 100K DRGs WMS image ends here >> >> >> LAYER >> NAME "nonmn" >> STATUS OFF >> TYPE POLYGON >> DATA nonmn >> TRANSPARENCY 40 >> CLASS >> STYLE >> COLOR 161 173 196 >> #COLOR 204 204 153 >> #SYMBOL 'dashed1' >> END >> STYLE >> OUTLINECOLOR 51 102 153 >> END >> END >> >> END >> LAYER >> NAME "countybig" >> STATUS DEFAULT >> TYPE POLYGON >> GROUP "cnty" >> DATA county >> MINSCALE 2000000 >> TRANSPARENCY 50 >> CLASS >> OUTLINECOLOR 153 153 153 >> #COLOR 196 193 161 >> COLOR 204 204 153 >> #SYMBOL 'dashed1' >> END >> END >> >> LAYER >> NAME "countysmall" >> STATUS DEFAULT >> GROUP "cnty" >> TYPE POLYGON >> DATA county >> LABELITEM "NAME" >> MAXSCALE 2000000 >> TRANSPARENCY 50 >> CLASS >> STYLE >> OUTLINECOLOR 102 102 102 #COLOR 196 193 >> 161 >> #SYMBOL 'dashed1' >> END #end style >> LABEL >> TYPE TRUETYPE >> FONT "arial-bold" >> SIZE 10 >> POSITION cc >> MINSIZE 6 >> MAXSIZE 12 >> COLOR 153 153 153 >> SHADOWCOLOR 204 204 204 >> ANTIALIAS FALSE #TRUE >> PARTIALS FALSE >> MINFEATURESIZE 40 >> END >> >> END >> END >> >> LAYER >> NAME "hwygenlg" >> DATA bighwy >> MAXSCALE 900000 >> STATUS ON >> GROUP "Highway" >> TYPE line >> TRANSPARENCY 60 >> CLASSITEM "RCLASS" >> CLASS # County State-Aid Highway >> EXPRESSION "4" >> SYMBOL 'circle' >> SIZE 2 >> COLOR 255 153 51 >> END >> CLASS >> EXPRESSION "3" # Minnesota Trunk Highway >> SYMBOL 'circle' >> SIZE 3 >> COLOR 153 51 0 >> END >> CLASS # US Trunk Highway >> EXPRESSION "2" >> SYMBOL 'circle' >> SIZE 3 >> COLOR 204 153 0 >> OVERLAYSYMBOL 'circle' >> OVERLAYSIZE 1 >> OVERLAYCOLOR 204 153 51 >> END >> CLASS # Interstate Highway >> EXPRESSION "1" >> SYMBOL 'circle' >> SIZE 3 >> COLOR 0 0 0 >> OVERLAYSYMBOL 'circle' >> OVERLAYSIZE 1 >> OVERLAYCOLOR 255 51 51 >> END >> END # bighwy >> >> >> >> LAYER >> NAME "hwyfine" >> DATA bighwy >> STATUS OFF >> GROUP "Highway" >> MAXSCALE 900000 >> TYPE ANNOTATION >> LABELITEM "ROUTE_NUM" >> CLASSITEM "RCLASS" >> TRANSPARENCY 50 >> CLASS # Interstate Highway >> EXPRESSION "1" >> COLOR 0 0 0 # dummy color >> SYMBOL symbols/interstate.gif >> LABEL >> MINFEATURESIZE 10 >> MINDISTANCE 150 >> POSITION cc >> SIZE 10 >> COLOR 204 204 204 >> TYPE TRUETYPE >> FONT "arial" >> END >> END >> CLASS # US Trunk Highway >> EXPRESSION "2" >> COLOR 0 0 0 # dummy color >> SYMBOL symbols/ushwy.gif >> LABEL >> MINFEATURESIZE 10 >> MINDISTANCE 150 >> POSITION cc >> SIZE 8 >> COLOR 0 0 0 >> TYPE TRUETYPE >> FONT "arial" >> END >> END >> CLASS >> EXPRESSION "3" # Minnesota Trunk Highway >> COLOR 0 0 0 # dummy color >> SYMBOL symbols/sthwy.gif >> LABEL >> MINFEATURESIZE 10 >> MINDISTANCE 150 >> POSITION cc >> SIZE 7 >> COLOR 0 0 0 >> TYPE TRUETYPE >> FONT "arial" >> END >> END >> CLASS # County State-Aid Highway >> EXPRESSION "4" >> COLOR 0 0 0 # dummy color >> SYMBOL symbols/ctyhwy.gif >> LABEL >> MINFEATURESIZE 10 >> MINDISTANCE 150 >> POSITION cc >> SIZE 7 >> COLOR 0 0 0 >> TYPE TRUETYPE >> FONT "arial" >> END >> END >> END # bighwy >> >> ############################ >> # END BackGround Layers # >> # # >> ############################ >> >> ############################ >> # Start BackGround Layers # >> # # >> ############################ >> >> LAYER # Base Reflectivity Radar IA >> NAME "radar" >> TYPE RASTER >> #GROUP "radar" >> OFFSITE 0 0 0 >> STATUS ON >> CLASS >> NAME 'Nexrad Radar' >> KEYIMAGE symbols/legend_keyimages/radar_keyimage.png >> END >> CONNECTIONTYPE WMS >> CONNECTION >> "http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi" >> >> METADATA >> "wms_title" "IEM WMS Service" >> "wms_name" "nexrad_base_reflect" >> "wms_server_version" "1.1.1" >> "wms_srs" "epsg:26915" >> "wms_format" "image/png" >> END >> >> PROJECTION >> "init=epsg:26915" >> END >> END # Weather Radar layer ends here >> >> LAYER >> NAME "features" >> STATUS ON >> TYPE ANNOTATION >> #GROUP features >> DATA riverfeatures #shapefile for layer >> #SYMBOLSCALE 1000000 >> #LABELMAXSCALE 4000000 >> LABELITEM "name" >> TOLERANCE 10 >> #CLASSITEM "run" >> CLASS >> NAME "feature" >> LABEL >> TYPE TRUETYPE >> FONT "arial-bold" >> SIZE 10 >> POSITION auto >> MINSIZE 6 >> MAXSIZE 11 >> COLOR 0 0 0 >> OUTLINECOLOR 255 255 255 >> ANTIALIAS TRUE >> PARTIALS FALSE >> MINDISTANCE 4 >> END #label >> END #class >> END #layer >> >> LAYER >> NAME "shuttles" >> STATUS ON >> TYPE LINE >> GROUP shuttles >> DATA shuttle #shapefile for layer >> #SYMBOLSCALE 1000000 >> LABELMAXSCALE 4000000 >> #LABELITEM "name" >> TOLERANCE 10 >> CLASSITEM "type" >> CLASS >> NAME "shuttleroute" >> EXPRESSION "shuttle" >> SYMBOL 'circle' >> SIZE 3 >> COLOR 0 0 0 >> OVERLAYSYMBOL 'circle' >> OVERLAYSIZE 1 >> OVERLAYCOLOR 255 51 51 >> #LABEL >> #TYPE TRUETYPE >> #FONT "arial-bold" >> #SIZE 10 >> #POSITION auto >> #MINSIZE 6 >> #MAXSIZE 11 >> #COLOR 0 0 0 >> #OUTLINECOLOR 255 255 255 >> #ANTIALIAS TRUE >> #PARTIALS FALSE >> #MINFEATURESIZE 10 >> #MINDISTANCE 4 >> #END #label >> END #class >> CLASS >> NAME "bikeshuttle" >> EXPRESSION "bike" >> SYMBOL 'circle' >> SIZE 3 >> COLOR 0 0 0 >> OVERLAYSYMBOL 'dashed1' >> OVERLAYSIZE 1 >> OVERLAYCOLOR 255 51 51 >> #LABEL >> #TYPE TRUETYPE >> #FONT "arial-bold" >> #SIZE 10 >> #POSITION auto >> #MINSIZE 6 >> #MAXSIZE 11 >> #COLOR 0 0 0 >> #OUTLINECOLOR 255 255 255 >> #ANTIALIAS TRUE >> #PARTIALS FALSE >> #MINFEATURESIZE 10 >> #MINDISTANCE 4 >> #END #label >> END #class >> END #layer >> >> >> >> LAYER >> NAME "riverpoint" >> STATUS DEFAULT >> TYPE POINT >> #GROUP riverpnt >> DATA "riverpoint" #shapefile for layer >> #MINSCALE 750000 >> #MAXSCALE 500000 >> #SYMBOLSCALE 1000000 >> #TOLERANCE 10 >> CLASS >> NAME "Run" >> SYMBOL 'circle' >> SIZE 10 >> COLOR 0 255 0 >> >> END #class >> >> END #layer >> >> LAYER >> NAME "entryexit" >> STATUS ON >> TYPE POINT >> #GROUP entryexit >> DATA inout #shapefile for layer >> #SYMBOLSCALE 1000000 >> TOLERANCE 10 >> CLASSITEM "type" >> CLASS >> NAME "put_in" >> EXPRESSION "putin" >> SYMBOL 'upramp' >> SIZE 7 >> COLOR 0 255 0 >> END #class >> CLASS >> NAME "take_out" >> EXPRESSION "takeout" >> SYMBOL 'upramp' >> SIZE 7 >> COLOR 255 0 0 >> END #class >> END #layer >> >> >> LAYER >> NAME sheds >> STATUS ON >> TYPE POLYGON >> DATA wwSheds >> #CLASSITEM "MAJOR" >> CLASS >> NAME "Watershed" >> #COLOR 0 255 0 >> OUTLINECOLOR 255 0 0 POLYLINE >> END >> >> END >> >> >> END #End of Map File >> >> >> >> >> >> >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >> Behalf Of Dylan Beaudette >> Sent: Tuesday, June 27, 2006 12:43 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] current dbox example application >> >> >> Hi everyone, >> >> Just grabbed the latest dbox sample application, and it looks great. >> However, >> I am having some problems implementing the dlegend component. Currently, >> >> there is no legend displayed in its container, and a call to >> make_legend_cgi.py manually yields the following error: >> >> XML Parsing Error: xml processing instruction not at start of external >> entity >> Location: >> http://casoilresource.lawr.ucdavis.edu/cgi-bin/make_dlegend_xml_cgi.py?m >> ap=/data1/website/mapserver/dbox-0.9a1/soil_web_v3/soil_web_v3.map&serve >> r=casoilresource.lawr.ucdavis.edu >> Line Number 2, Column 1: >> >> ^ >> >> >> the site in question can be accessed at this URL: >> >> http://casoilresource.lawr.ucdavis.edu/mapserver/dbox-0.9a1/soil_web_v3/ >> example.html >> >> I can't seem to figure out what the heck is going on... >> >> >> Any ideas? >> >> Thanks in advance, > From Ken.Boss at DNR.STATE.MN.US Tue Jun 27 13:08:05 2006 From: Ken.Boss at DNR.STATE.MN.US (Ken Boss) Date: Tue, 27 Jun 2006 15:08:05 -0500 Subject: Fwd: Re: [UMN_MAPSERVER-USERS] current dbox example application Message-ID: Dylan-- I accessed the output of make_dlegend_cgi.py directly (through the link in your previous message), viewed the source, and found this at the bottom: "Unable to open file /data1/website/mapserver/dbox-0.9a1/soil_web_v3/temp/dlegend_85541151438196_counties.gif for writing" Is there a permissions problem on that directory? I see also that the XML output is pointing to auto-generated keyimages for your two continuous raster layers. I think you're likely to find that you'll have to create static keyimages for the rasters and reference them in a KEYIMAGE item in the LAYER object. The itasca demo version has examples of this. HTH, --Ken >>> Dylan Beaudette 6/27/2006 3:06:29 PM >>> David, and others: Thanks for the hints. I have added this section to my mapfile: METADATA # dLegend XML legend control dlegend_metagroups "foreground,background" dlegend_foreground_name "Foreground Layers:" dlegend_foreground_layers_and_groups "counties,ca_urban,ca_us_highways,ca_state_highways,ca_local_roads" dlegend_background_name "Background Layers:" dlegend_background_layers_and_groups "landsat,doqq" END .... and I am getting this output from make_legend_xml.py: casoilresource.lawr.ucdavis.edu ...and the website looks like this: http://casoilresource.lawr.ucdavis.edu/mapserver/dbox-0.9a1/soil_web_v3/example.html note that there is only a "Foreground Layers" entry in the legend, and none of the layers actually show up when zooming in... any thoughts? Dylan On Tuesday 27 June 2006 11:14, Fawcett, David wrote: > Dylan, > > Based on your last post to Ken and his comments about Web Metadata, I am > including a mapfile that uses dLegend. I just happened to be playing > with it when your messages popped up. > > David. > > start mapfile > ___________________ > > MAP > NAME rivers > STATUS ON > SIZE 410 352 # was 400 400 > EXTENT 155791 4720323 794359 5570749 > UNITS METERS > STATUS ON > FONTSET "symbols/fonts/fonts.list" > SHAPEPATH "/var/www/flatlandmaps.com/maps/mnrivers/data" > IMAGECOLOR 255 255 255 > SYMBOLSET "symbols/symbol.sym" > IMAGETYPE PNG24 > > > WEB > IMAGEPATH "/var/www/flatlandmaps.com/htdocs/tmp/" > > IMAGEURL "/tmp/" > TEMPLATE "rivers.html" > MINSCALE 100 > MAXSCALE 15500000 > > METADATA > # dLegend XML legend control > dlegend_metagroups "foreground,background" > > dlegend_foreground_name "Foreground Layers:" > #dlegend_foreground_layers_and_groups > "cnty,Highway,radar,shuttles,riverpoint,entryexit,features" > dlegend_foreground_layers_and_groups > "radar,cnty,riverpoint,Highway,shuttles,features,entryexit,sheds" > dlegend_background_name "Background Layers:" > dlegend_background_layers_and_groups "fsa,doqs,drgs" > dlegend_background_element "radio" > END > > END # End of Web Interface > > PROJECTION > "init=epsg:26915" > END > > REFERENCE > IMAGE "images/reference.gif" > EXTENT 189784 4807000 761653 5475346 > #EXTENT 189784 4816400 761654 5472400 > SIZE 125 125 > MINBOXSIZE 5 > MAXBOXSIZE 100 > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > MARKERSIZE 8 > MARKER 'star' > STATUS ON > END > > LEGEND > KEYSIZE 21 14 > STATUS ON > END > > SCALEBAR > STATUS ON > LABEL > SIZE tiny > COLOR 0 0 0 > END > SIZE 120 3 > COLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS MILES > STYLE 1 > INTERVALS 1 > TRANSPARENT TRUE > END # Scalebar > > QUERYMAP > SIZE 200 200 > STATUS ON > STYLE NORMAL #SELECTED > COLOR 255 255 0 > END > > > ############################ > # Start BackGround Layers # > # # > ############################ > > > LAYER # DNR FSA Color Orthophotos > NAME "fsacolor" > TYPE RASTER > GROUP fsa > STATUS ON > CLASS > NAME '2003 Color Air Photos' > KEYIMAGE symbols/legend_keyimages/fsa_keyimage.png > END > CONNECTIONTYPE WMS > CONNECTION > "http://deli.dnr.state.mn.us/cgi-bin/wms?map=DELI_WMS_MAPFILE&REQUEST=ma > p&LAYERS=L390003782306&STYLES=" > > METADATA > "wms_title" "Farm Services Administration (FSA) Color Orthophotos" > "wms_name" "L390003782306" > "wms_server_version" "1.1.1" > "wms_srs" "epsg:26915" > "wms_format" "image/jpeg" > END > > PROJECTION > "init=epsg:26915" > END > END # DNR FSA WMS image ends here > > LAYER # DNR BW DOQs > NAME "mndoqs" > GROUP doqs > TYPE RASTER > OFFSITE 0 0 0 > STATUS OFF > CLASS > NAME 'B&W Air Photos' > KEYIMAGE symbols/legend_keyimages/doq_keyimage.png > END > CONNECTIONTYPE WMS > CONNECTION > "http://deli.dnr.state.mn.us/cgi-bin/wms?map=DELI_WMS_MAPFILE&STYLES=&LA > YERS=L370000050906&REQUEST=GetMap&TRANSPARENT=true" > > METADATA > "wms_title" "USGS Digital Orthophoto Quad (DOQ) - 3 meter" > "wms_name" "L370000050906" > "wms_server_version" "1.1.1" > "wms_srs" "epsg:26915" > "wms_format" "image/png" > END > > PROJECTION > "init=epsg:26915" > END > END # DNR DOQ WMS image ends here > > > > LAYER # DNR 24K DRGs > NAME "mndrgs24" > GROUP drgs > TYPE RASTER > OFFSITE 255 255 255 > STATUS OFF > CLASS > NAME 'USGS Topo Maps' > KEYIMAGE symbols/legend_keyimages/drg_keyimage.png > END > #MINSCALE 10000 > MAXSCALE 30000 > CONNECTIONTYPE WMS > CONNECTION > "http://deli.dnr.state.mn.us/cgi-bin/wms?map=DELI_WMS_MAPFILE&STYLES=&LA > YERS=L380000030906&REQUEST=GetMap&TRANSPARENT=true" > > METADATA > "wms_title" "1:24k Digital Raster Graphic - Collars Removed" > "wms_name" "L380000030906" > "wms_server_version" "1.1.1" > "wms_srs" "epsg:26915" > "wms_format" "image/png" > END > > PROJECTION > "init=epsg:26915" > END > END # DNR 24K DRGs WMS image ends here > > LAYER # DNR 100K DRGs > NAME "mndrgs100" > GROUP drgs > TYPE RASTER > OFFSITE 255 255 255 > STATUS OFF > MINSCALE 30000 > MAXSCALE 125000 > CONNECTIONTYPE WMS > CONNECTION > "http://deli.dnr.state.mn.us/cgi-bin/wms?map=DELI_WMS_MAPFILE&STYLES=&LA > YERS=L380000020906&REQUEST=GetMap&TRANSPARENT=true" > > METADATA > "wms_title" "1:100k Digital Raster Graphic - Collars Removed" > "wms_name" "L380000020906" > "wms_server_version" "1.1.1" > "wms_srs" "epsg:26915" > "wms_format" "image/png" > END > > PROJECTION > "init=epsg:26915" > END > END # DNR 100K DRGs WMS image ends here > > > > LAYER # DNR 250K DRGs > NAME "mndrgs250" > GROUP drgs > TYPE RASTER > OFFSITE 255 255 255 > STATUS OFF > MINSCALE 125000 > MAXSCALE 500000 > CONNECTIONTYPE WMS > CONNECTION > "http://deli.dnr.state.mn.us/cgi-bin/wms?map=DELI_WMS_MAPFILE&STYLES=&LA > YERS=L380000010906&REQUEST=GetMap&TRANSPARENT=true" > > METADATA > "wms_title" "1:250k Digital Raster Graphic - Collars Removed" > "wms_name" "L380000010906" > "wms_server_version" "1.1.1" > "wms_srs" "epsg:26915" > "wms_format" "image/png" > END > > PROJECTION > "init=epsg:26915" > END > END # DNR 100K DRGs WMS image ends here > > > LAYER > NAME "nonmn" > STATUS OFF > TYPE POLYGON > DATA nonmn > TRANSPARENCY 40 > CLASS > STYLE > COLOR 161 173 196 > #COLOR 204 204 153 > #SYMBOL 'dashed1' > END > STYLE > OUTLINECOLOR 51 102 153 > END > END > > END > LAYER > NAME "countybig" > STATUS DEFAULT > TYPE POLYGON > GROUP "cnty" > DATA county > MINSCALE 2000000 > TRANSPARENCY 50 > CLASS > OUTLINECOLOR 153 153 153 > #COLOR 196 193 161 > COLOR 204 204 153 > #SYMBOL 'dashed1' > END > END > > LAYER > NAME "countysmall" > STATUS DEFAULT > GROUP "cnty" > TYPE POLYGON > DATA county > LABELITEM "NAME" > MAXSCALE 2000000 > TRANSPARENCY 50 > CLASS > STYLE > OUTLINECOLOR 102 102 102 #COLOR 196 193 > 161 > #SYMBOL 'dashed1' > END #end style > LABEL > TYPE TRUETYPE > FONT "arial-bold" > SIZE 10 > POSITION cc > MINSIZE 6 > MAXSIZE 12 > COLOR 153 153 153 > SHADOWCOLOR 204 204 204 > ANTIALIAS FALSE #TRUE > PARTIALS FALSE > MINFEATURESIZE 40 > END > > END > END > > LAYER > NAME "hwygenlg" > DATA bighwy > MAXSCALE 900000 > STATUS ON > GROUP "Highway" > TYPE line > TRANSPARENCY 60 > CLASSITEM "RCLASS" > CLASS # County State-Aid Highway > EXPRESSION "4" > SYMBOL 'circle' > SIZE 2 > COLOR 255 153 51 > END > CLASS > EXPRESSION "3" # Minnesota Trunk Highway > SYMBOL 'circle' > SIZE 3 > COLOR 153 51 0 > END > CLASS # US Trunk Highway > EXPRESSION "2" > SYMBOL 'circle' > SIZE 3 > COLOR 204 153 0 > OVERLAYSYMBOL 'circle' > OVERLAYSIZE 1 > OVERLAYCOLOR 204 153 51 > END > CLASS # Interstate Highway > EXPRESSION "1" > SYMBOL 'circle' > SIZE 3 > COLOR 0 0 0 > OVERLAYSYMBOL 'circle' > OVERLAYSIZE 1 > OVERLAYCOLOR 255 51 51 > END > END # bighwy > > > > LAYER > NAME "hwyfine" > DATA bighwy > STATUS OFF > GROUP "Highway" > MAXSCALE 900000 > TYPE ANNOTATION > LABELITEM "ROUTE_NUM" > CLASSITEM "RCLASS" > TRANSPARENCY 50 > CLASS # Interstate Highway > EXPRESSION "1" > COLOR 0 0 0 # dummy color > SYMBOL symbols/interstate.gif > LABEL > MINFEATURESIZE 10 > MINDISTANCE 150 > POSITION cc > SIZE 10 > COLOR 204 204 204 > TYPE TRUETYPE > FONT "arial" > END > END > CLASS # US Trunk Highway > EXPRESSION "2" > COLOR 0 0 0 # dummy color > SYMBOL symbols/ushwy.gif > LABEL > MINFEATURESIZE 10 > MINDISTANCE 150 > POSITION cc > SIZE 8 > COLOR 0 0 0 > TYPE TRUETYPE > FONT "arial" > END > END > CLASS > EXPRESSION "3" # Minnesota Trunk Highway > COLOR 0 0 0 # dummy color > SYMBOL symbols/sthwy.gif > LABEL > MINFEATURESIZE 10 > MINDISTANCE 150 > POSITION cc > SIZE 7 > COLOR 0 0 0 > TYPE TRUETYPE > FONT "arial" > END > END > CLASS # County State-Aid Highway > EXPRESSION "4" > COLOR 0 0 0 # dummy color > SYMBOL symbols/ctyhwy.gif > LABEL > MINFEATURESIZE 10 > MINDISTANCE 150 > POSITION cc > SIZE 7 > COLOR 0 0 0 > TYPE TRUETYPE > FONT "arial" > END > END > END # bighwy > > ############################ > # END BackGround Layers # > # # > ############################ > > ############################ > # Start BackGround Layers # > # # > ############################ > > LAYER # Base Reflectivity Radar IA > NAME "radar" > TYPE RASTER > #GROUP "radar" > OFFSITE 0 0 0 > STATUS ON > CLASS > NAME 'Nexrad Radar' > KEYIMAGE symbols/legend_keyimages/radar_keyimage.png > END > CONNECTIONTYPE WMS > CONNECTION > "http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi" > > METADATA > "wms_title" "IEM WMS Service" > "wms_name" "nexrad_base_reflect" > "wms_server_version" "1.1.1" > "wms_srs" "epsg:26915" > "wms_format" "image/png" > END > > PROJECTION > "init=epsg:26915" > END > END # Weather Radar layer ends here > > LAYER > NAME "features" > STATUS ON > TYPE ANNOTATION > #GROUP features > DATA riverfeatures #shapefile for layer > #SYMBOLSCALE 1000000 > #LABELMAXSCALE 4000000 > LABELITEM "name" > TOLERANCE 10 > #CLASSITEM "run" > CLASS > NAME "feature" > LABEL > TYPE TRUETYPE > FONT "arial-bold" > SIZE 10 > POSITION auto > MINSIZE 6 > MAXSIZE 11 > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > ANTIALIAS TRUE > PARTIALS FALSE > MINDISTANCE 4 > END #label > END #class > END #layer > > LAYER > NAME "shuttles" > STATUS ON > TYPE LINE > GROUP shuttles > DATA shuttle #shapefile for layer > #SYMBOLSCALE 1000000 > LABELMAXSCALE 4000000 > #LABELITEM "name" > TOLERANCE 10 > CLASSITEM "type" > CLASS > NAME "shuttleroute" > EXPRESSION "shuttle" > SYMBOL 'circle' > SIZE 3 > COLOR 0 0 0 > OVERLAYSYMBOL 'circle' > OVERLAYSIZE 1 > OVERLAYCOLOR 255 51 51 > #LABEL > #TYPE TRUETYPE > #FONT "arial-bold" > #SIZE 10 > #POSITION auto > #MINSIZE 6 > #MAXSIZE 11 > #COLOR 0 0 0 > #OUTLINECOLOR 255 255 255 > #ANTIALIAS TRUE > #PARTIALS FALSE > #MINFEATURESIZE 10 > #MINDISTANCE 4 > #END #label > END #class > CLASS > NAME "bikeshuttle" > EXPRESSION "bike" > SYMBOL 'circle' > SIZE 3 > COLOR 0 0 0 > OVERLAYSYMBOL 'dashed1' > OVERLAYSIZE 1 > OVERLAYCOLOR 255 51 51 > #LABEL > #TYPE TRUETYPE > #FONT "arial-bold" > #SIZE 10 > #POSITION auto > #MINSIZE 6 > #MAXSIZE 11 > #COLOR 0 0 0 > #OUTLINECOLOR 255 255 255 > #ANTIALIAS TRUE > #PARTIALS FALSE > #MINFEATURESIZE 10 > #MINDISTANCE 4 > #END #label > END #class > END #layer > > > > LAYER > NAME "riverpoint" > STATUS DEFAULT > TYPE POINT > #GROUP riverpnt > DATA "riverpoint" #shapefile for layer > #MINSCALE 750000 > #MAXSCALE 500000 > #SYMBOLSCALE 1000000 > #TOLERANCE 10 > CLASS > NAME "Run" > SYMBOL 'circle' > SIZE 10 > COLOR 0 255 0 > > END #class > > END #layer > > LAYER > NAME "entryexit" > STATUS ON > TYPE POINT > #GROUP entryexit > DATA inout #shapefile for layer > #SYMBOLSCALE 1000000 > TOLERANCE 10 > CLASSITEM "type" > CLASS > NAME "put_in" > EXPRESSION "putin" > SYMBOL 'upramp' > SIZE 7 > COLOR 0 255 0 > END #class > CLASS > NAME "take_out" > EXPRESSION "takeout" > SYMBOL 'upramp' > SIZE 7 > COLOR 255 0 0 > END #class > END #layer > > > LAYER > NAME sheds > STATUS ON > TYPE POLYGON > DATA wwSheds > #CLASSITEM "MAJOR" > CLASS > NAME "Watershed" > #COLOR 0 255 0 > OUTLINECOLOR 255 0 0 POLYLINE > END > > END > > > END #End of Map File > > > > > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Dylan Beaudette > Sent: Tuesday, June 27, 2006 12:43 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] current dbox example application > > > Hi everyone, > > Just grabbed the latest dbox sample application, and it looks great. > However, > I am having some problems implementing the dlegend component. Currently, > > there is no legend displayed in its container, and a call to > make_legend_cgi.py manually yields the following error: > > XML Parsing Error: xml processing instruction not at start of external > entity > Location: > http://casoilresource.lawr.ucdavis.edu/cgi-bin/make_dlegend_xml_cgi.py?m > ap=/data1/website/mapserver/dbox-0.9a1/soil_web_v3/soil_web_v3.map&serve > r=casoilresource.lawr.ucdavis.edu > Line Number 2, Column 1: > > ^ > > > the site in question can be accessed at this URL: > > http://casoilresource.lawr.ucdavis.edu/mapserver/dbox-0.9a1/soil_web_v3/ > example.html > > I can't seem to figure out what the heck is going on... > > > Any ideas? > > Thanks in advance, -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From dylan.beaudette at GMAIL.COM Tue Jun 27 13:55:23 2006 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Tue, 27 Jun 2006 13:55:23 -0700 Subject: current dbox example application In-Reply-To: Message-ID: Ken: Yikes. I should have spotted that permissions error! now many of my layers are showing up in the legend, which is good. Also looks like I need to generate these static keymimages for the two raster layers... I thought that those where auto-generated... Thanks again for the insightful tips! Cheers, Dylan On Tuesday 27 June 2006 13:02, Ken Boss wrote: > Dylan-- > > I accessed the output of make_dlegend_cgi.py directly (through the link in > your previous message), viewed the source, and found this at the bottom: > > "Unable to open file > /data1/website/mapserver/dbox-0.9a1/soil_web_v3/temp/dlegend_85541151438196 >_counties.gif for writing" > > Is there a permissions problem on that directory? > > I see also that the XML output is pointing to auto-generated keyimages for > your two continuous raster layers. I think you're likely to find that > you'll have to create static keyimages for the rasters and reference them > in a KEYIMAGE item in the LAYER object. The itasca demo version has > examples of this. > > HTH, > > --Ken > > >>> Dylan Beaudette 6/27/2006 3:06:29 PM >>> > > David, and others: > > Thanks for the hints. > > I have added this section to my mapfile: > > METADATA > # dLegend XML legend control > dlegend_metagroups "foreground,background" > dlegend_foreground_name "Foreground Layers:" > dlegend_foreground_layers_and_groups > "counties,ca_urban,ca_us_highways,ca_state_highways,ca_local_roads" > > dlegend_background_name "Background Layers:" > dlegend_background_layers_and_groups "landsat,doqq" > END > > > .... and I am getting this output from make_legend_xml.py: > > > > casoilresource.lawr.ucdavis.edu > > icon="/mapserver/dbox-0.9a1/soil_web_v3/temp/dlegend_82831151434692_countie >s.gif" /> maxscale="759340.0" > icon="/mapserver/dbox-0.9a1/soil_web_v3/temp/dlegend_82831151434692_ca_urba >n.gif" /> maxscale="759340.0" > icon="/mapserver/dbox-0.9a1/soil_web_v3/temp/dlegend_82831151434692_ca_us_h >ighways.gif" /> maxscale="100000.0" > icon="/mapserver/dbox-0.9a1/soil_web_v3/temp/dlegend_82831151434692_ca_stat >e_highways.gif" /> maxscale="65000.0" > icon="/mapserver/dbox-0.9a1/soil_web_v3/temp/dlegend_82831151434692_ca_loca >l_roads.gif" /> > > icon="/mapserver/dbox-0.9a1/soil_web_v3/temp/dlegend_82831151434692_landsat >.gif" /> icon="/mapserver/dbox-0.9a1/soil_web_v3/temp/dlegend_82831151434692_doqq.gi >f" /> > > > > > ...and the website looks like this: > > http://casoilresource.lawr.ucdavis.edu/mapserver/dbox-0.9a1/soil_web_v3/exa >mple.html > > > note that there is only a "Foreground Layers" entry in the legend, and none > of the layers actually show up when zooming in... > > any thoughts? > > Dylan > > On Tuesday 27 June 2006 11:14, Fawcett, David wrote: > > Dylan, > > > > Based on your last post to Ken and his comments about Web Metadata, I am > > including a mapfile that uses dLegend. I just happened to be playing > > with it when your messages popped up. > > > > David. > > > > start mapfile > > ___________________ > > > > MAP > > NAME rivers > > STATUS ON > > SIZE 410 352 # was 400 400 > > EXTENT 155791 4720323 794359 5570749 > > UNITS METERS > > STATUS ON > > FONTSET "symbols/fonts/fonts.list" > > SHAPEPATH "/var/www/flatlandmaps.com/maps/mnrivers/data" > > IMAGECOLOR 255 255 255 > > SYMBOLSET "symbols/symbol.sym" > > IMAGETYPE PNG24 > > > > > > WEB > > IMAGEPATH "/var/www/flatlandmaps.com/htdocs/tmp/" > > > > IMAGEURL "/tmp/" > > TEMPLATE "rivers.html" > > MINSCALE 100 > > MAXSCALE 15500000 > > > > METADATA > > # dLegend XML legend control > > dlegend_metagroups "foreground,background" > > > > dlegend_foreground_name "Foreground Layers:" > > #dlegend_foreground_layers_and_groups > > "cnty,Highway,radar,shuttles,riverpoint,entryexit,features" > > dlegend_foreground_layers_and_groups > > "radar,cnty,riverpoint,Highway,shuttles,features,entryexit,sheds" > > dlegend_background_name "Background Layers:" > > dlegend_background_layers_and_groups "fsa,doqs,drgs" > > dlegend_background_element "radio" > > END > > > > END # End of Web Interface > > > > PROJECTION > > "init=epsg:26915" > > END > > > > REFERENCE > > IMAGE "images/reference.gif" > > EXTENT 189784 4807000 761653 5475346 > > #EXTENT 189784 4816400 761654 5472400 > > SIZE 125 125 > > MINBOXSIZE 5 > > MAXBOXSIZE 100 > > COLOR 255 0 0 > > OUTLINECOLOR 0 0 0 > > MARKERSIZE 8 > > MARKER 'star' > > STATUS ON > > END > > > > LEGEND > > KEYSIZE 21 14 > > STATUS ON > > END > > > > SCALEBAR > > STATUS ON > > LABEL > > SIZE tiny > > COLOR 0 0 0 > > END > > SIZE 120 3 > > COLOR 0 0 0 > > OUTLINECOLOR 0 0 0 > > UNITS MILES > > STYLE 1 > > INTERVALS 1 > > TRANSPARENT TRUE > > END # Scalebar > > > > QUERYMAP > > SIZE 200 200 > > STATUS ON > > STYLE NORMAL #SELECTED > > COLOR 255 255 0 > > END > > > > > > ############################ > > # Start BackGround Layers # > > # # > > ############################ > > > > > > LAYER # DNR FSA Color Orthophotos > > NAME "fsacolor" > > TYPE RASTER > > GROUP fsa > > STATUS ON > > CLASS > > NAME '2003 Color Air Photos' > > KEYIMAGE symbols/legend_keyimages/fsa_keyimage.png > > END > > CONNECTIONTYPE WMS > > CONNECTION > > "http://deli.dnr.state.mn.us/cgi-bin/wms?map=DELI_WMS_MAPFILE&REQUEST=ma > > p&LAYERS=L390003782306&STYLES=" > > > > METADATA > > "wms_title" "Farm Services Administration (FSA) Color Orthophotos" > > "wms_name" "L390003782306" > > "wms_server_version" "1.1.1" > > "wms_srs" "epsg:26915" > > "wms_format" "image/jpeg" > > END > > > > PROJECTION > > "init=epsg:26915" > > END > > END # DNR FSA WMS image ends here > > > > LAYER # DNR BW DOQs > > NAME "mndoqs" > > GROUP doqs > > TYPE RASTER > > OFFSITE 0 0 0 > > STATUS OFF > > CLASS > > NAME 'B&W Air Photos' > > KEYIMAGE symbols/legend_keyimages/doq_keyimage.png > > END > > CONNECTIONTYPE WMS > > CONNECTION > > "http://deli.dnr.state.mn.us/cgi-bin/wms?map=DELI_WMS_MAPFILE&STYLES=&LA > > YERS=L370000050906&REQUEST=GetMap&TRANSPARENT=true" > > > > METADATA > > "wms_title" "USGS Digital Orthophoto Quad (DOQ) - 3 meter" > > "wms_name" "L370000050906" > > "wms_server_version" "1.1.1" > > "wms_srs" "epsg:26915" > > "wms_format" "image/png" > > END > > > > PROJECTION > > "init=epsg:26915" > > END > > END # DNR DOQ WMS image ends here > > > > > > > > LAYER # DNR 24K DRGs > > NAME "mndrgs24" > > GROUP drgs > > TYPE RASTER > > OFFSITE 255 255 255 > > STATUS OFF > > CLASS > > NAME 'USGS Topo Maps' > > KEYIMAGE symbols/legend_keyimages/drg_keyimage.png > > END > > #MINSCALE 10000 > > MAXSCALE 30000 > > CONNECTIONTYPE WMS > > CONNECTION > > "http://deli.dnr.state.mn.us/cgi-bin/wms?map=DELI_WMS_MAPFILE&STYLES=&LA > > YERS=L380000030906&REQUEST=GetMap&TRANSPARENT=true" > > > > METADATA > > "wms_title" "1:24k Digital Raster Graphic - Collars Removed" > > "wms_name" "L380000030906" > > "wms_server_version" "1.1.1" > > "wms_srs" "epsg:26915" > > "wms_format" "image/png" > > END > > > > PROJECTION > > "init=epsg:26915" > > END > > END # DNR 24K DRGs WMS image ends here > > > > LAYER # DNR 100K DRGs > > NAME "mndrgs100" > > GROUP drgs > > TYPE RASTER > > OFFSITE 255 255 255 > > STATUS OFF > > MINSCALE 30000 > > MAXSCALE 125000 > > CONNECTIONTYPE WMS > > CONNECTION > > "http://deli.dnr.state.mn.us/cgi-bin/wms?map=DELI_WMS_MAPFILE&STYLES=&LA > > YERS=L380000020906&REQUEST=GetMap&TRANSPARENT=true" > > > > METADATA > > "wms_title" "1:100k Digital Raster Graphic - Collars Removed" > > "wms_name" "L380000020906" > > "wms_server_version" "1.1.1" > > "wms_srs" "epsg:26915" > > "wms_format" "image/png" > > END > > > > PROJECTION > > "init=epsg:26915" > > END > > END # DNR 100K DRGs WMS image ends here > > > > > > > > LAYER # DNR 250K DRGs > > NAME "mndrgs250" > > GROUP drgs > > TYPE RASTER > > OFFSITE 255 255 255 > > STATUS OFF > > MINSCALE 125000 > > MAXSCALE 500000 > > CONNECTIONTYPE WMS > > CONNECTION > > "http://deli.dnr.state.mn.us/cgi-bin/wms?map=DELI_WMS_MAPFILE&STYLES=&LA > > YERS=L380000010906&REQUEST=GetMap&TRANSPARENT=true" > > > > METADATA > > "wms_title" "1:250k Digital Raster Graphic - Collars Removed" > > "wms_name" "L380000010906" > > "wms_server_version" "1.1.1" > > "wms_srs" "epsg:26915" > > "wms_format" "image/png" > > END > > > > PROJECTION > > "init=epsg:26915" > > END > > END # DNR 100K DRGs WMS image ends here > > > > > > LAYER > > NAME "nonmn" > > STATUS OFF > > TYPE POLYGON > > DATA nonmn > > TRANSPARENCY 40 > > CLASS > > STYLE > > COLOR 161 173 196 > > #COLOR 204 204 153 > > #SYMBOL 'dashed1' > > END > > STYLE > > OUTLINECOLOR 51 102 153 > > END > > END > > > > END > > LAYER > > NAME "countybig" > > STATUS DEFAULT > > TYPE POLYGON > > GROUP "cnty" > > DATA county > > MINSCALE 2000000 > > TRANSPARENCY 50 > > CLASS > > OUTLINECOLOR 153 153 153 > > #COLOR 196 193 161 > > COLOR 204 204 153 > > #SYMBOL 'dashed1' > > END > > END > > > > LAYER > > NAME "countysmall" > > STATUS DEFAULT > > GROUP "cnty" > > TYPE POLYGON > > DATA county > > LABELITEM "NAME" > > MAXSCALE 2000000 > > TRANSPARENCY 50 > > CLASS > > STYLE > > OUTLINECOLOR 102 102 102 #COLOR 196 193 > > 161 > > #SYMBOL 'dashed1' > > END #end style > > LABEL > > TYPE TRUETYPE > > FONT "arial-bold" > > SIZE 10 > > POSITION cc > > MINSIZE 6 > > MAXSIZE 12 > > COLOR 153 153 153 > > SHADOWCOLOR 204 204 204 > > ANTIALIAS FALSE #TRUE > > PARTIALS FALSE > > MINFEATURESIZE 40 > > END > > > > END > > END > > > > LAYER > > NAME "hwygenlg" > > DATA bighwy > > MAXSCALE 900000 > > STATUS ON > > GROUP "Highway" > > TYPE line > > TRANSPARENCY 60 > > CLASSITEM "RCLASS" > > CLASS # County State-Aid Highway > > EXPRESSION "4" > > SYMBOL 'circle' > > SIZE 2 > > COLOR 255 153 51 > > END > > CLASS > > EXPRESSION "3" # Minnesota Trunk Highway > > SYMBOL 'circle' > > SIZE 3 > > COLOR 153 51 0 > > END > > CLASS # US Trunk Highway > > EXPRESSION "2" > > SYMBOL 'circle' > > SIZE 3 > > COLOR 204 153 0 > > OVERLAYSYMBOL 'circle' > > OVERLAYSIZE 1 > > OVERLAYCOLOR 204 153 51 > > END > > CLASS # Interstate Highway > > EXPRESSION "1" > > SYMBOL 'circle' > > SIZE 3 > > COLOR 0 0 0 > > OVERLAYSYMBOL 'circle' > > OVERLAYSIZE 1 > > OVERLAYCOLOR 255 51 51 > > END > > END # bighwy > > > > > > > > LAYER > > NAME "hwyfine" > > DATA bighwy > > STATUS OFF > > GROUP "Highway" > > MAXSCALE 900000 > > TYPE ANNOTATION > > LABELITEM "ROUTE_NUM" > > CLASSITEM "RCLASS" > > TRANSPARENCY 50 > > CLASS # Interstate Highway > > EXPRESSION "1" > > COLOR 0 0 0 # dummy color > > SYMBOL symbols/interstate.gif > > LABEL > > MINFEATURESIZE 10 > > MINDISTANCE 150 > > POSITION cc > > SIZE 10 > > COLOR 204 204 204 > > TYPE TRUETYPE > > FONT "arial" > > END > > END > > CLASS # US Trunk Highway > > EXPRESSION "2" > > COLOR 0 0 0 # dummy color > > SYMBOL symbols/ushwy.gif > > LABEL > > MINFEATURESIZE 10 > > MINDISTANCE 150 > > POSITION cc > > SIZE 8 > > COLOR 0 0 0 > > TYPE TRUETYPE > > FONT "arial" > > END > > END > > CLASS > > EXPRESSION "3" # Minnesota Trunk Highway > > COLOR 0 0 0 # dummy color > > SYMBOL symbols/sthwy.gif > > LABEL > > MINFEATURESIZE 10 > > MINDISTANCE 150 > > POSITION cc > > SIZE 7 > > COLOR 0 0 0 > > TYPE TRUETYPE > > FONT "arial" > > END > > END > > CLASS # County State-Aid Highway > > EXPRESSION "4" > > COLOR 0 0 0 # dummy color > > SYMBOL symbols/ctyhwy.gif > > LABEL > > MINFEATURESIZE 10 > > MINDISTANCE 150 > > POSITION cc > > SIZE 7 > > COLOR 0 0 0 > > TYPE TRUETYPE > > FONT "arial" > > END > > END > > END # bighwy > > > > ############################ > > # END BackGround Layers # > > # # > > ############################ > > > > ############################ > > # Start BackGround Layers # > > # # > > ############################ > > > > LAYER # Base Reflectivity Radar IA > > NAME "radar" > > TYPE RASTER > > #GROUP "radar" > > OFFSITE 0 0 0 > > STATUS ON > > CLASS > > NAME 'Nexrad Radar' > > KEYIMAGE symbols/legend_keyimages/radar_keyimage.png > > END > > CONNECTIONTYPE WMS > > CONNECTION > > "http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi" > > > > METADATA > > "wms_title" "IEM WMS Service" > > "wms_name" "nexrad_base_reflect" > > "wms_server_version" "1.1.1" > > "wms_srs" "epsg:26915" > > "wms_format" "image/png" > > END > > > > PROJECTION > > "init=epsg:26915" > > END > > END # Weather Radar layer ends here > > > > LAYER > > NAME "features" > > STATUS ON > > TYPE ANNOTATION > > #GROUP features > > DATA riverfeatures #shapefile for layer > > #SYMBOLSCALE 1000000 > > #LABELMAXSCALE 4000000 > > LABELITEM "name" > > TOLERANCE 10 > > #CLASSITEM "run" > > CLASS > > NAME "feature" > > LABEL > > TYPE TRUETYPE > > FONT "arial-bold" > > SIZE 10 > > POSITION auto > > MINSIZE 6 > > MAXSIZE 11 > > COLOR 0 0 0 > > OUTLINECOLOR 255 255 255 > > ANTIALIAS TRUE > > PARTIALS FALSE > > MINDISTANCE 4 > > END #label > > END #class > > END #layer > > > > LAYER > > NAME "shuttles" > > STATUS ON > > TYPE LINE > > GROUP shuttles > > DATA shuttle #shapefile for layer > > #SYMBOLSCALE 1000000 > > LABELMAXSCALE 4000000 > > #LABELITEM "name" > > TOLERANCE 10 > > CLASSITEM "type" > > CLASS > > NAME "shuttleroute" > > EXPRESSION "shuttle" > > SYMBOL 'circle' > > SIZE 3 > > COLOR 0 0 0 > > OVERLAYSYMBOL 'circle' > > OVERLAYSIZE 1 > > OVERLAYCOLOR 255 51 51 > > #LABEL > > #TYPE TRUETYPE > > #FONT "arial-bold" > > #SIZE 10 > > #POSITION auto > > #MINSIZE 6 > > #MAXSIZE 11 > > #COLOR 0 0 0 > > #OUTLINECOLOR 255 255 255 > > #ANTIALIAS TRUE > > #PARTIALS FALSE > > #MINFEATURESIZE 10 > > #MINDISTANCE 4 > > #END #label > > END #class > > CLASS > > NAME "bikeshuttle" > > EXPRESSION "bike" > > SYMBOL 'circle' > > SIZE 3 > > COLOR 0 0 0 > > OVERLAYSYMBOL 'dashed1' > > OVERLAYSIZE 1 > > OVERLAYCOLOR 255 51 51 > > #LABEL > > #TYPE TRUETYPE > > #FONT "arial-bold" > > #SIZE 10 > > #POSITION auto > > #MINSIZE 6 > > #MAXSIZE 11 > > #COLOR 0 0 0 > > #OUTLINECOLOR 255 255 255 > > #ANTIALIAS TRUE > > #PARTIALS FALSE > > #MINFEATURESIZE 10 > > #MINDISTANCE 4 > > #END #label > > END #class > > END #layer > > > > > > > > LAYER > > NAME "riverpoint" > > STATUS DEFAULT > > TYPE POINT > > #GROUP riverpnt > > DATA "riverpoint" #shapefile for layer > > #MINSCALE 750000 > > #MAXSCALE 500000 > > #SYMBOLSCALE 1000000 > > #TOLERANCE 10 > > CLASS > > NAME "Run" > > SYMBOL 'circle' > > SIZE 10 > > COLOR 0 255 0 > > > > END #class > > > > END #layer > > > > LAYER > > NAME "entryexit" > > STATUS ON > > TYPE POINT > > #GROUP entryexit > > DATA inout #shapefile for layer > > #SYMBOLSCALE 1000000 > > TOLERANCE 10 > > CLASSITEM "type" > > CLASS > > NAME "put_in" > > EXPRESSION "putin" > > SYMBOL 'upramp' > > SIZE 7 > > COLOR 0 255 0 > > END #class > > CLASS > > NAME "take_out" > > EXPRESSION "takeout" > > SYMBOL 'upramp' > > SIZE 7 > > COLOR 255 0 0 > > END #class > > END #layer > > > > > > LAYER > > NAME sheds > > STATUS ON > > TYPE POLYGON > > DATA wwSheds > > #CLASSITEM "MAJOR" > > CLASS > > NAME "Watershed" > > #COLOR 0 255 0 > > OUTLINECOLOR 255 0 0 POLYLINE > > END > > > > END > > > > > > END #End of Map File > > > > > > > > > > > > > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > Behalf Of Dylan Beaudette > > Sent: Tuesday, June 27, 2006 12:43 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] current dbox example application > > > > > > Hi everyone, > > > > Just grabbed the latest dbox sample application, and it looks great. > > However, > > I am having some problems implementing the dlegend component. Currently, > > > > there is no legend displayed in its container, and a call to > > make_legend_cgi.py manually yields the following error: > > > > XML Parsing Error: xml processing instruction not at start of external > > entity > > Location: > > http://casoilresource.lawr.ucdavis.edu/cgi-bin/make_dlegend_xml_cgi.py?m > > ap=/data1/website/mapserver/dbox-0.9a1/soil_web_v3/soil_web_v3.map&serve > > r=casoilresource.lawr.ucdavis.edu > > Line Number 2, Column 1: > > > > ^ > > > > > > the site in question can be accessed at this URL: > > > > http://casoilresource.lawr.ucdavis.edu/mapserver/dbox-0.9a1/soil_web_v3/ > > example.html > > > > I can't seem to figure out what the heck is going on... > > > > > > Any ideas? > > > > Thanks in advance, -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From dylan.beaudette at GMAIL.COM Tue Jun 27 14:05:46 2006 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Tue, 27 Jun 2006 14:05:46 -0700 Subject: current dbox example application In-Reply-To: <44A18FCF.3010206@swoodbridge.com> Message-ID: On Tuesday 27 June 2006 13:06, Stephen Woodbridge wrote: > Dylan, > > You need to get firebug installed in firefox. then you can see all that > is going on, like the following the was mixed in with your xml. Thanks Steve, installed some of the Firefox extensions, all these months I was doing things the hard way! Cheers, -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From szekerest at GMAIL.COM Tue Jun 27 15:08:15 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 28 Jun 2006 00:08:15 +0200 Subject: Mapscript c# problems and apache2 scratches In-Reply-To: Message-ID: Xavier, After digging into your code i have found the following problems: In pMapSetSelection: "layerObj pLayer = new layerObj(pMapQuery);" will implicitly add the newly created layer to the map (to the end of the layers list) with index=1 (you have already a layer with index = 0) You will have the following layers then: 0 - zonage_reglementaire 1 - selection After that you are calling "pMapQuery.insertLayer(pLayer, 0);" which will shift the layers upwards: 0 - zonage_reglementaire 1 - zonage_reglementaire 2 - selection Free the layer with index = 0 !!!! 0 - freed 1 - zonage_reglementaire 2 - selection Copy the given layer to index = 0 0 - zonage_reglementaire 1 - zonage_reglementaire 2 - selection After freeing zonage_reglementaire the resultache of the layer will be cleared so the subsequent call of pLayerParcelle.getResults() will return null and a nullreference exception will be raised. I think the previously described operation is unexpected and you might want to add the selection layer only once. Therefore you must not call inserLayer when creating the layer using the constructor with a map object. If you will use the current CVS version MS_POSITIONS_ENUM.MS_CC should be used instead of MS_LABEL_POSITIONS.MS_CC. I have tested your code on windows. Best Regards, Tamas 2006/6/27, Xavier Mauclaire : > Hi tamas > You will find joined a sample application that produce an error. I don't > know if this error is the same as the one that occurs with the web site. > This sample application uses theads to simulate asp.net requests. Each > thread loads 3 time a mapfile and do a searchbypoint. After this a dynamic > layer is created with the pMapSetSelection(pMapQuery, pShape); function > If this function is launched the program scratches otherwise all works well. > Finally ne image is generated. > mY problem is that i don't know if thr generated error is the same as the > mapObj_Draw error i get on my server > > On the linux server i changed the csmodule.i and append your update code > request at the end of the file > > %typemap(csconstruct, excode=SWIGEXCODE) layerObj(mapObj map) %{: > this($imcall, true) { > if (map != null) this.swigCMemOwn = false;$excode } %} > %typemap(csconstruct, excode=SWIGEXCODE) classObj(layerObj layer) %{: > this($imcall, true) { > if (layer != null) this.swigCMemOwn = false;$excode } %} > %typemap(csconstruct, excode=SWIGEXCODE) styleObj(classObj > parent_class) %{: this($imcall, true) { > if (parent_class != null) this.swigCMemOwn = false;$excode } %} > > Hope this will help > > regards > > > ----------------------------------------- > Xavier Mauclaire > Service informatique > GEOTER SAS > 3, rue Jean Monnet > 34830 Clapiers France > T?l.: +33 (0)4.67.59.18.11 > Fax: +33 (0)4.67.59.18.24 > Email: xavier.mauclaire at geoter.fr > Web site: http://www.geoter.fr > ------------------------------------------------------- > > > > -----Message d'origine----- > De : Tamas Szekeres [mailto:szekerest at gmail.com] > Envoy? : lundi 26 juin 2006 17:55 > ? : Xavier Mauclaire > Cc : MAPSERVER-USERS at lists.umn.edu > Objet : Re: Mapscript c# problems and apache2 scratches > > Xavier, > > Could you extract the problem as a sample application, like you have done > with the previous issue? > How did you make the test? How many requests should be made? Is the problem > deterministic of occurs randomly at different functions. > > Tamas > > > 2006/6/26, Xavier Mauclaire : > > > > > > HI > > > > New problem with the mapscript c# library. > > I'm doing a web site using, among others, querybyshape function. If > > there are several requests using this function i scratches the server > > > > > > > From ltrevino at GPOBSI.COM.MX Tue Jun 27 15:45:28 2006 From: ltrevino at GPOBSI.COM.MX (=?iso-8859-1?Q?Luis_Trevi=F1o_Huerta?=) Date: Tue, 27 Jun 2006 17:45:28 -0500 Subject: mouse click with jBox Message-ID: Hi list, I'd like to save in a javascript variable, the position (lat/lon) when the user clicks over the map, Does anybody know how can I get the mouse click position using jBox? Regards, Luis From wchoonhooi at GMAIL.COM Tue Jun 27 18:17:44 2006 From: wchoonhooi at GMAIL.COM (Hooi) Date: Wed, 28 Jun 2006 09:17:44 +0800 Subject: Raster image issue Message-ID: Hi, all. I am new here. I access to http://localhost/cgi-bin/mapserv?map=test.map&layer=lakespy2&mode=map but JPEG was displayed. FYI, I able to see vector image. Need help on this, thanks. Below is my mapserver version output:- MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=FREETYPE INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I'm using GDAL 1.3.0 Below is output of #gdalinfo /var/www/cgi-bin/data/map.jpg Driver: JPEG/JPEG JFIF Size is 2524, 1738 Coordinate System is `' Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 1738.0) Upper Right ( 2524.0, 0.0) Lower Right ( 2524.0, 1738.0) Center ( 1262.0, 869.0) Band 1 Block=2524x1 Type=Byte, ColorInterp=Red Band 2 Block=2524x1 Type=Byte, ColorInterp=Green Band 3 Block=2524x1 Type=Byte, ColorInterp=Blue Below is my mapfile :- MAP NAME ITASCA STATUS ON SIZE 600 600 EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 UNITS METERS SHAPEPATH "data" IMAGECOLOR 255 255 255 TEMPLATEPATTERN "itasca" IMAGETYPE JPEG # Layer objects are defined beneath the map object. You need at least one # layer defined in your map file before you can display a map... You can # define as many layers as you'd like although a limit is typically hard-coded # in map.h in the MapServer source. The default limit is set at 100. You'd # have to have a very specialized application to need more than 100 layers in # your application. # Start of LAYER DEFINITIONS --------------------------------------------- WEB HEADER templates/header.html TEMPLATE "set in index.html" FOOTER templates/footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "set in index.html" IMAGEURL "set in index.html" METADATA WMS_TITLE "UMN MapServer Itasca Demo" WMS_ABSTRACT "This is a UMN MapServer application for Itasca County located in north central Minnesota." WMS_ACCESSCONSTRAINTS "none" # change this value to match your setup WMS_ONLINERESOURCE "http://localhost/index.html" WMS_SRS "EPSG:26915" END END LAYER NAME lakespy2 TYPE RASTER STATUS ON DATA map.tif CLASS NAME 'Lakes & Rivers' TEMPLATE "templates/lakespy2.html" STYLE COLOR 49 117 185 END END HEADER "templates/lakespy2_header.html" FOOTER "templates/lakespy2_footer.html" TOLERANCE 3 DUMP TRUE # allow GML export METADATA WMS_TITLE "Lakes and Rivers" WMS_ABSTRACT "DLG lake and river polygons for Itasca County. See http://deli.dnr.state.mn.us/metadata/full/dlglkpy2.html for more information." WMS_SRS "EPSG:26915" END END # lakes LAYER NAME dlgstln2 TYPE LINE STATUS OFF DATA dlgstln2 CLASS NAME "Streams" TEMPLATE "templates/dlgstln2.html" STYLE COLOR 49 117 185 END END HEADER "templates/dlgstln2_header.html" FOOTER "templates/dlgstln2_footer.html" TOLERANCE 5 DUMP TRUE # allow GML export METADATA WMS_TITLE "Streams" WMS_ABSTRACT "DLG streams for Itasca County. See http://deli.dnr.state.mn.us/metadata/full/dlgstln2.html for more information." WMS_SRS "EPSG:26915" END END # streams END # All map files must come to an end just as all other things must come to... -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Tue Jun 27 21:35:42 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 28 Jun 2006 00:35:42 -0400 Subject: Raster image issue In-Reply-To: Message-ID: Hooi wrote: > Hi, all. I am new here. > I access to > http://localhost/cgi-bin/mapserv?map=test.map&layer=lakespy2&mode=map > > but JPEG was displayed. FYI, I able to see vector image. Need help on > this, thanks. > > Below is my mapserver version output:- > MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=FREETYPE INPUT=EPPL7 INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE Hooi, I skimmed through your whole email message but was unable to determine what sort of problem you are having. You mention a jpeg was displayed. What something wrong with it? I am guessing that your raster layer didn't display properly, is that right? It is a bit odd to have a single class for a raster layer. As far as I know the current arrangement would just cause the whole raster to be render in color 49 117 185. Is that your intention? If the problem is with your raster layer it might also be helpful to see a gdalinfo report on the raster file (map.tif) as opposed to map.jpg. Was map.jpg the output file? PS. I often try with full absolute paths when I suspect problems with how the data is being found. You might want to try that. 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 Tue Jun 27 22:45:19 2006 From: sdc at SDC.COM.AU (Stephen Davies) Date: Wed, 28 Jun 2006 15:15:19 +0930 Subject: Mapserver/GD JPEGs In-Reply-To: <44A12F90.5030909@propertykey.com> Message-ID: Thanks Jeff. That seems to be the issue. How did you know that INTERLACE=OFF was relevant to JPEGs? As I read the doco, it is only relevant for PNG and GIF images. Do you now if phones have the same aversion to interlaced GIFs? Cheers and thanks, Stephen Davies On Tuesday 27 June 2006 22:46, Jeff Hoffmann wrote: > Stephen Davies wrote: > > Last week I posted a request regarding comments in JPEGs and their > > apparent effect on Motorola 3G telephones. > > > > Since then I have found that a) the issue seems to affect all WAP > > phones and b) it is not just comments that cause the problem. > > > > It seems that these devices can only handle very simple images and > > those generated by Mapserver/GD fall outside their capabilities. > > > > I have found that, as well as removing the comments from my map > > images, I have to go further. > > > > My current work-around is to use a PERL script to generate the map > > image to disk and then use the mogrify utility from Image Magik to > > "clean" it. The mogrify command is simply: > > > > mogrify -quality 100 image.jpg > > > > but whatever this does to the image is enough to make it > > displayable on a telephone when sent as an img src=. > > > > If anybody knows more about what is happening here and/or what the > > underlying problem is, I would love to hear it. > > I don't really know a lot of details about what you're doing, but I > do know that in my experience, phones don't like progressive JPEGs so > I turn that option off (INTERLACE OFF for older versions or > FORMATOPTION "INTERLACE=OFF" for newer versions that use an > OUTPUTFORMAT block). I think it's enabled by default, so if you > don't have an INTERLACE setting, it's most likely creating > progressive JPEGs. (I'd guess mogrify may be re-encoding from > progressive to non-progressive, and that's why you're seeing the > behavior you're seeing.) > > > -- > Jeff Hoffmann > Head Plate Spinner > PropertyKey.com -- ======================================================================= 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 Steve.Lime at DNR.STATE.MN.US Tue Jun 27 23:31:26 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 28 Jun 2006 01:31:26 -0500 Subject: mouse click with jBox Message-ID: Jbox doesn't operate in map coordinates. It's rather stupid and only knows about pixels. I believe there is a callback function called something like setbox that returns the minx, miny, maxx, maxy of the last mouse up event. In the case of a box draw you'll get 4 seperate values, if just a point click then minx=maxx and miny=maxy. In any event, you can get the click (in pixels) in that callback function. You'll have to turn the click into map coordinates yourself. How you do that depends on the implementation. Typically though you'll know the extent of the image and the size. From there you can compute a cellsize (maxx - minx)/(width-1), and then converting to pixels is easy: mx = minx + cellsize*px; my = maxy - cellsize*py; Where mx, my are the map coordinates, minx, miny, etc... are the map extent of the map and px, py are the pixel coordinates. Steve >>> Luis Trevi?o Huerta 06/27/06 5:45 PM >>> Hi list, I'd like to save in a javascript variable, the position (lat/lon) when the user clicks over the map, Does anybody know how can I get the mouse click position using jBox? Regards, Luis From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Jun 28 00:29:44 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Wed, 28 Jun 2006 09:29:44 +0200 Subject: WMS-WFS chaining (bug?) Message-ID: Barend, I checked the source code briefly (mapwfslayer.c), and there is the following note: * Revision 1.34 2005/04/22 15:47:10 assefa * Bug 1302: the wfs/ows_service parameter is not used any more. The * service is always set to WFS for WFS layers. So it's time to upgrade indeed .... Alternatively you could have used (so you do not need to add service=WFS to your CONNECTION which indeed is not recommended at all): LAYER .. METADATA .. wfs_service "WFS" .. END END Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Barend K?bben Verzonden: dinsdag 27 juni 2006 17:13 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] WMS-WFS chaining (bug?) Hi, I found a strange / undocumented feature when trying to chain a Mapserver WMS service with a MapServer WFS. Both are using 4.2.2. In the WMS map configuration, I defined the layer that was to come from the WFS as follows (following the HowTo on the website): ... LAYER NAME airports TYPE POINT STATUS ON CONNECTIONTYPE WFS CONNECTION "http://geoserver.itc.nl/cgi-bin/mapserv.exe?map=D:/Inetpub/geoserver/kobben/thailand/wfs_config.map&" METADATA "wfs_typename" "airportsWFS" "wfs_version" "1.0.0" "wfs_request_method" "GET" "wfs_connectiontimeout" "60" "wfs_maxfeatures" "100" END ... But this yielded an error message that went: msBuildWFSLayerGetURL(): WFS connection error. Metadata wfs_service must be set in the layare Cryptic message, and it took me a looooong time to find that it DID work when I added SERVICE=WFS to the CONNECTION string, although the HowTo states that adding such things there is deprecated... ... CONNECTION "http://geoserver.itc.nl/cgi-bin/mapserv.exe?map=D:/Inetpub/geoserver/kobben/thailand/wfs_config.map&&SERVICE=WFS&" ... You can try it out yourself at http://geoserver.itc.nl/cgi-bin/mapserv.exe?map=D:/Inetpub/geoserver/kobben/thailand/chain_config.map&&VERSION=1.1.1&REQUEST=GetMap&LAYERS=world,airports&SRS=EPSG:4326&BBOX=97,5,106,21&WIDTH=600&HEIGHT=800&FORMAT=image/png Is this a bug, or does it mean it's time to upgrade my Mapserver, or....? -- Barend K?bben International Institute for Geo-information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) ph: +31 (0)53 4874253; fax: +31 (0)53 4874335 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 luca76 at GMAIL.COM Wed Jun 28 01:56:38 2006 From: luca76 at GMAIL.COM (Luca Manganelli) Date: Wed, 28 Jun 2006 10:56:38 +0200 Subject: CLASSITEM and EXPRESSION for a float field Message-ID: Hi, I'm attempting to use the EXPRESSION for a float field, but I don't know the right manner. I.e.: LAYER NAME 'test' ... CLASSITEM 'floatfield' .... CLASS NAME "testclass1" EXPRESSION '9' ... END END my mapserver doesn't view the objects with EXPRESSION '9', so I suspect that the '9' is not right (I tried with '9.0', too). Any idea? From dwija_dey at REDIFFMAIL.COM Wed Jun 28 03:18:30 2006 From: dwija_dey at REDIFFMAIL.COM (Pratap) Date: Wed, 28 Jun 2006 10:18:30 -0000 Subject: In which C file/function ? Message-ID: Hi List Can any one plz tell me in which C file/function the code for marking symbol by color is written? At present after query by point, I can able to mark the symbol red, but for any subsequent query the all the previous query point is lost on the map. I want all the previous query point to be in some particular color and my last query point should be in red. Thanks in advance With regards Pratap -------------- next part -------------- An HTML attachment was scrubbed... URL: From karsten.blessmann at STADT-BRANDENBURG.DE Wed Jun 28 02:54:48 2006 From: karsten.blessmann at STADT-BRANDENBURG.DE (=?ISO-8859-1?Q?Karsten=20Ble=DFmann?=) Date: Wed, 28 Jun 2006 11:54:48 +0200 Subject: CLASSITEM and EXPRESSION for a float field Message-ID: Try this: ... ... CLASSITEM "objart" ... ... CLASS NAME "anyone" EXPRESSION ([objart] = 3000) ... ... END it works on our server - [objart] is float8 on a PostGIS DB ... .. Regards Karsten Blessmann Luca Manganelli wrote on 28.06.2006 10:56:38: > Hi, I'm attempting to use the EXPRESSION for a float field, but I > don't know the right manner. > > I.e.: > > LAYER > NAME 'test' > ... > CLASSITEM 'floatfield' > .... > CLASS > NAME "testclass1" > EXPRESSION '9' > ... > END > END > > my mapserver doesn't view the objects with EXPRESSION '9', so I > suspect that the '9' is not right (I tried with '9.0', too). > > Any idea? From marcoscobena at GMAIL.COM Wed Jun 28 04:28:12 2006 From: marcoscobena at GMAIL.COM (=?UTF-8?Q?Marcos_Cobe=C3=B1a?=) Date: Wed, 28 Jun 2006 13:28:12 +0200 Subject: WMS and SRS issue: "Invalid SRS given : SRS must be valid for all requested layers." In-Reply-To: <449AA741.6090906@pobox.com> Message-ID: Hi Frank, Thank you so much for your help, I tried that but, eventhough it doesn't crash anymore, it still doesn't paint the shapes. Under ArcView, my shapes (SHP) are using this projection: "+proj=longlat +ellps=WGS84 +no_defs" , which, in my epsg projection file used, corresponds to: " # Unknown datum based upon the WGS 84 ellipsoid <4030> +proj=longlat +ellps=WGS84 +no_defs no_defs <> " Why then I still don't see shapes painted? Just in case, my MAP file: " # DGIS_12c.map # MAP NAME DGIS STATUS ON SIZE 800 475 # "Huelva, Spain " lat=37.258335, lon=-6.9508333 # EXTENT -180 -90 180 90 # 187889.12817030 4092316.51133811 197493.65136571 4099997.10096501 # 36.258335 -7.9508333 38.258335 -5.9508333 UNITS METERS SHAPEPATH "Data" IMAGECOLOR 255 255 255 IMAGETYPE PNG CONFIG "PROJ_LIB" "C:\Archivos de programa\Apache Software Foundation\Apache2.2\cgi-bin\DGIS\Data\Proj" # "C:\Documents and Settings\Marcos\Escritorio\Temporal\Sistema de Informaci?n Geogr?fica de Do?ana (DGIS)\ms4w_2.0\ms4w\proj\nad" WEB METADATA "wms_title" "Sistema de Informaci?n Geogr?fica de Do?ana (DGIS)" # http://localhost:8080/cgi-bin/DGIS/mapserv.exe?map=DGIS_12c.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities # "wms_onlineresource" "http://localhost:8080/cgi-bin/DGIS/mapserv.exe?map=DGIS_12c.map&" "wms_srs" "EPSG:4326" # "EPSG:4269 EPSG:4326" END END PROJECTION "init=EPSG:4326" END LAYER NAME "12c_linea" TYPE LINE STATUS ON DATA Data/12c/12c_linea CLASS NAME "12c_linea" COLOR 0 0 0 END METADATA "wms_title" "12c_linea" # "wms_srs" "EPSG:4326 EPSG:4030" "wms_format" "image/png" END END " Thanks in advance. Regards, 2006/6/22, Frank Warmerdam : > Marcos Cobe?a wrote: > > Hi all, > > > > I'm trying to access to a layer made of SHP files, like this one: > ... > > METADATA > > "wms_title" "12c_linea" > > "wms_srs" "EPSG:4326" # "EPSG:4031" > > "wms_format" "image/png" > > END > > END > > [...] > > END > > " > > > > , where I've defined a projection ("init=EPSG:42304") and, for each > > layer, its own SRS ("EPSG:4326"). It works fine, it draws my shape in > > Canada (as expected with projections used). > > > > Once I change main projection to 4030: > ... > > " > > msWMSLoadGetMapParams(): Invalid SRS given : SRS must be valid for all > > requested layers. > > " > > Marcos, > > I have gone through the WMS validation code, and as I read it, you > either have to list all legal request SRSes in the map's wms_srs metadata > item or in all the requestable layers. So changing your layer wms_srs > line to: > > "wms_srs" "EPSG:4326 EPSG:4030" > > ought to make it work. > > The error report isn't actually at the projections code, but rather > in the code that validates what requests are legal according to your > metadata. > > 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 > > -- Marcos - http://www.youcannoteatbits.org From marcoscobena at GMAIL.COM Wed Jun 28 04:33:07 2006 From: marcoscobena at GMAIL.COM (=?UTF-8?Q?Marcos_Cobe=C3=B1a?=) Date: Wed, 28 Jun 2006 13:33:07 +0200 Subject: On drawing polygons and WMS Message-ID: Hi dudes, I need to draw polygons dinamically into a MAP, provided by WMS queries upon OpenLayers. My question is where I should draw them: client or server side? Client side depends on OpenLayers, but if I choose server one I cannot use then WMS queries, just because it doesn't allow to send, for example, WKT data into the URL. How would you achieve this goal? Really thanks in advance. Regards, -- Marcos - http://www.youcannoteatbits.org From jeff at PROPERTYKEY.COM Wed Jun 28 05:44:05 2006 From: jeff at PROPERTYKEY.COM (Jeff Hoffmann) Date: Wed, 28 Jun 2006 07:44:05 -0500 Subject: Mapserver/GD JPEGs In-Reply-To: <200606281515.19149.sdc@sdc.com.au> Message-ID: Stephen Davies wrote: > Thanks Jeff. > That seems to be the issue. > How did you know that INTERLACE=OFF was relevant to JPEGs? As I read the > doco, it is only relevant for PNG and GIF images. That's a good question. You're right, it's not specifically stated in the documentation. My guess is that it's something I remember from the GD library -- there's one function called gdImageInterlace that makes JPEGs progressive and PNG/GIF interlaced, so even if it's not specifically stated, it makes sense to work that way in MapServer. > Do you now if phones have the same aversion to interlaced GIFs? The only place I've had to mess with the INTERLACE option is with JPEGs. I actually don't know for sure what the default is for PNG and GIF, but whatever it is seemed to work fine for me. -- Jeff Hoffmann Head Plate Spinner PropertyKey.com From siukola.antti at GMAIL.COM Wed Jun 28 05:45:46 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Wed, 28 Jun 2006 15:45:46 +0300 Subject: MapServer returns cached images as new In-Reply-To: <1FEE21DC1054D5119FCC0002A5517B2405F97C58@rws-mdi-dt2-01.agi.rws.minvenw.nl> Message-ID: Hi! I solved this problem by using saveImage function instead of saveWebImage and generating the filename with md5 from users ip, php's microtime and some random numbers. Also had to tell the imagepath and imageurl manually. This seems to work pretty well. AnttiS On 6/15/06, Eijnden, B. van den (Bart) wrote: > > > > No unfortunately the patch did not work for me. > > I really hope it does get fixed in 4.9, since otherwise running PHP as a > module is still problematic and needs workarounds. > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: antti siukola [mailto:siukola.antti at gmail.com] > Verzonden: donderdag 15 juni 2006 12:04 > > Aan: Eijnden, B. van den (Bart) > CC: MAPSERVER-USERS at lists.umn.edu > Onderwerp: Re: [UMN_MAPSERVER-USERS] MapServer returns cached images as > new > > > > > > Did you get that patch working? The target milestone seems to be for > 4.8 so we can expect it to be implemented in 4.9 serie at the latest? > Maybe ;) > > On 6/15/06, Eijnden, B. van den (Bart) > wrote: > > > > > > > > It's still a known issue unfortunately, check: > > > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1322 > > > > Best regards, > > Bart > > > > -----Oorspronkelijk bericht----- > > Van: antti siukola [mailto:siukola.antti at gmail.com] > > Verzonden: donderdag 15 juni 2006 9:35 > > Aan: Eijnden, B. van den (Bart) > > CC: MAPSERVER-USERS at lists.umn.edu > > Onderwerp: Re: [UMN_MAPSERVER-USERS] MapServer returns cached images as > > new > > > > > > > > Yes I am > > > > AnttiS > > > > On 6/15/06, Eijnden, B. van den (Bart) > > wrote: > > > > > > > > > > > > Are you using PHP/Mapscript? As an Apache module? > > > > > > Best regards, > > > Bart > > > > > > -----Oorspronkelijk bericht----- > > > Van: UMN MapServer Users List > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens antti > > siukola > > > Verzonden: donderdag 15 juni 2006 8:44 > > > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > > > Onderwerp: [UMN_MAPSERVER-USERS] MapServer returns cached images as new > > > > > > > > > > > > Hi! > > > > > > I've have a problem with mapserver returning images from cache when > > > navigating on the map. Totally random behavior. Is there some > > > configuration for this or is this a bug? > > > > > > AnttiS > > > > > > 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. > > > ************************************************************************ > > > > > 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 Jun 28 06:58:32 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 28 Jun 2006 09:58:32 -0400 Subject: WMS and SRS issue: "Invalid SRS given : SRS must be valid for all requested layers." In-Reply-To: <67c29c7c0606280428g3ad632ddp40d7fca3f2881a5c@mail.gmail.com> Message-ID: Marcos Cobe?a wrote: > Hi Frank, > > Thank you so much for your help, I tried that but, eventhough it > doesn't crash anymore, it still doesn't paint the shapes. > > Under ArcView, my shapes (SHP) are using this projection: > > "+proj=longlat +ellps=WGS84 +no_defs" > > , which, in my epsg projection file used, corresponds to: > > " > # Unknown datum based upon the WGS 84 ellipsoid > <4030> +proj=longlat +ellps=WGS84 +no_defs no_defs <> > " > > Why then I still don't see shapes painted? Marcos, I don't know why you aren't getting a result. Many reasons are possible. But I would encourage you to use EPSG:4326 in place of EPSG:4030. EPSG:4030 and EPSG:4326 are the same thing except that 4030 does not imply that we are using the normal WGS84 datum on the WGS84 ellipsoid. But it seems very likely that in your case the WGS84 datum would apply so you might as well just use 4326 everywhere to avoid problems. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From Kenton_Williams at UMIT.MAINE.EDU Wed Jun 28 07:44:35 2006 From: Kenton_Williams at UMIT.MAINE.EDU (Kenton Williams) Date: Wed, 28 Jun 2006 10:44:35 -0400 Subject: Odd Label problem with mapfile Message-ID: Hello, I have an odd problem with some labels in my mapfile. I have verified that all of the layers work just fine with the exception of the citynames layer, which is just used to make labels from the Cities layer that can be turned on and off (using dbox). The cities layer draws just fine. The other layers that are included to draw labels work fine. The database table is intact for the citynames layer. For some reason, when mapserver is told to draw this layer, it just hangs - refusing to draw anything at all. The other two layers that create labels are polygon layers and this troublesome layer is a point layer. I assumed that this does not make a difference. Am I missing something? Kenton W. -------------- next part -------------- A non-text attachment was scrubbed... Name: cgd_global.map Type: application/octet-stream Size: 2734 bytes Desc: not available URL: From Mark.Adams at DPRA.COM Wed Jun 28 08:35:50 2006 From: Mark.Adams at DPRA.COM (Mark Adams) Date: Wed, 28 Jun 2006 10:35:50 -0500 Subject: Oracle Spatial query problem Message-ID: We're working with mapserver and PHP mapscript, we have a build of mapserver that supports Oracle Spatial. We're using Oracle 9i. Mostly it is working fine, however we have discovered a fundamental problem, not sure if this is a know design limitation or not. When we query a layer that has the connection type "ORACLESPATIAL", if any of the queried fields has a field VALUE length > 256 characters in any of the queried records, we get the following error: "Fatal error: [MapServer Error]: msOracleSpatialLayerGetShape(): Error: ORA-1406: fetched column value was truncated . Query statement: SELECT Field1, field2, field3, Field4, field5, field6, Field7, field8, field9, Field10, field11, field12, GEOM FROM MyTable WHERE Field1= 9506 .Check your data statement." This error appears on the line: $oShape = $Layer->getShape($oRes->tileindex,$oRes->shapeindex) Note that it doesn't matter what the actual field length is, if a field is defined as varchar(4000) but the field value is only 250 characters it will work, but as soon as the value is greater than 256 characters it fails. Is this a known limitation, or a bug? I'm hoping it can be resolved, because if not it will blow up what was looking like a fine solution. Thanks all. ------------------------------ 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 ollerery at ENGR.ORST.EDU Wed Jun 28 09:12:33 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Wed, 28 Jun 2006 09:12:33 -0700 Subject: WMS and SRS issue In-Reply-To: <44A28B08.3060405@pobox.com> Message-ID: Question 1: I am using the SRS 4326 when trying to display a .tif image of canada. When i set the extent on the top of the map file to: EXTENT -180 -90 180 90 i am only getting a very small portion of the map, so i assume that the units begin used by the extend are meters. I want to be able to specify the extent by lat/long. How can i do this? Question 2: When using the web browser as a client my image displays just fine, but when i try to connect to the same URL in ArcMap or uDig I can see the layers info but no image gets displayed. uDig reports an error (Unable to decode image returned from the server) Thank you for any help that you can provide. WMS URL: http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/mywms.map& SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=test_layer Map FILE: NAME WMSDEMO STATUS ON SIZE 500 400 EXTENT 0 0 2800 2800 #EXTENT -180 -90 180 90 #EXTENT -2200000 -712631 3072800 3840000 #UNITS METERS SHAPEPATH "../data" IMAGECOLOR 255 255 255 WEB TEMPLATE test_template.html IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA WMS_TITLE "WMS test mapserver" WMS_ACCESSCONSTRAINTS "none" WMS_ONLINERESOURCE "http://neuron/cgi-bin/mapserv?map=mywms.map&" WMS_SRS "EPSG:4326" #"AUTO:42003" END END PROJECTION "init=epsg:4326" END LAYER # Shaded Relief Raster NAME test_layer DATA bath_mapserver.tif STATUS ON TYPE RASTER METADATA WMS_TITLE "Shaded Relief Map of the Upper Great Lakes Region" WMS_ABSTRACT "Shaded Relief Map, clipped from National Atlas dataset" WMS_SRS "EPSG:4326" WMS_FORMAT "image/png" END END END # of map file From warmerdam at POBOX.COM Wed Jun 28 09:24:37 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 28 Jun 2006 12:24:37 -0400 Subject: Oracle Spatial query problem In-Reply-To: <49B9846C39F25A4FA9010649708616107754F9@mhk-ex1.ad.dpra.com> Message-ID: Mark Adams wrote: > We?re working with mapserver and PHP mapscript, we have a build of > mapserver that supports Oracle Spatial. We?re using Oracle 9i. Mostly it > is working fine, however we have discovered a fundamental problem, not > sure if this is a know design limitation or not. When we query a layer > that has the connection type "ORACLESPATIAL", if any of the queried > fields has a field VALUE length > 256 characters in any of the queried > records, we get the following error: > > > > ?Fatal error: [MapServer Error]: msOracleSpatialLayerGetShape(): > Error: ORA-1406: fetched column value was truncated . Query statement: > SELECT Field1, field2, field3, Field4, field5, field6, Field7, field8, > field9, Field10, field11, field12, GEOM FROM MyTable WHERE Field1= 9506 > .Check your data statement.? > > > > This error appears on the line: > > $oShape = $Layer->getShape($oRes->tileindex,$oRes->shapeindex) > > > > Note that it doesn?t matter what the actual field length is, if a field > is defined as varchar(4000) but the field value is only 250 characters > it will work, but as soon as the value is greater than 256 characters it > fails. > > > > Is this a known limitation, or a bug? I?m hoping it can be resolved, > because if not it will blow up what was looking like a fine solution. Mark, Skimming the code, I believe you can increase the value of TEXT_SIZE near the beginning of maporaclespatial.c to increase this limit. Fernando Simon would need to give the final word on the best approach. I certainly feel that this ought to be handled more dynamically at some point. Looking into the OGR Oracle code, I'm not sure if it handles this properly either. It supports binding fields with widths larger than 256, but I'm not sure what it would do with a variable length field with no defined limit (if such things exist). 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 cavallini at FAUNALIA.IT Wed Jun 28 09:47:59 2006 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Wed, 28 Jun 2006 18:47:59 +0200 Subject: ogr-grass Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all. We're experimenting with the ogr driver for grass vector (just entered into Debian unstable - thanks Steve Halasz!). Everything works well 8eg ogr2ogr), but we cannot figure out how to pass the PostgreSQL connection string through MapServer. AFAICT, mapserver works as www-data user, and rough attempts to give these credential to www-data (copying .grasslogin6 in /home/www-data) had no success (DBMI-Postgres driver error: Cannot connect to Postgres: fe_sendauth: no password supplied). With dbf driver everything is ok. Anybody has a hint? All the best. pc - -- Paolo Cavallini email+jabber: cavallini at faunalia.it www.faunalia.it Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEorK//NedwLUzIr4RAl/iAJwLsH15ivHb2t7CmoXW+bbPoI7AKgCdEsf+ b1KYyL5ZFWqnZUM2oXdsoc4= =Aqpf -----END PGP SIGNATURE----- From denis.nadeau at GMAIL.COM Wed Jun 28 12:51:49 2006 From: denis.nadeau at GMAIL.COM (Denis Nadeau) Date: Wed, 28 Jun 2006 15:51:49 -0400 Subject: POSGIS timefilter date_trunc bug Message-ID: Hi, I have created a database on PostgreSQL version 8.0.3. I have translated my shapefile to an sql file using shp2pgsql version 1.1.2 from PostGIS. I have created and populated my table correctly with the result sql command file. gid | location | time | imgdate | the_geom -----+----------+------+---------+---------- I am using WMS with timedefault, timeitem and timeextent: METADATA wms_title "denis" wms_timeextent "2006-01-01/2006-06-18" wms_timeitem "time" wms_timedefault "2006-06-10" wms_extent "-180.0 -90.0 180.0 102.96" END MapSever connects to postgresql correctly. My filter is translated to: "date_trunc('day', time) = '2006-06-10' When I run mapserver I get the following message: content-type: application/vnd.ogc.se_xml msDrawMap(): Image handling error. Failed to draw layer named 'AIRSRGB2'. prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT "time"::text,"location"::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from mapserver WHERE (date_trunc('day', time) = '2006-06-10') and (the_geom && setSRID( 'BOX3D(-179.82 - 89.91,179.82 89.91)'::BOX3D,find_srid('','mapserver','the_geom') ))' Postgresql reports the error as 'ERROR: function date_trunc("unknown", character varying) does not exist HINT: No function matches the given name and argument types. You may need to add explicit type casts. ' More Help: Error with POSTGIS data variable. You specified 'check your .map file'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan 23/2004. Regards, Denis -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpicinbono at WORLDONLINE.FR Wed Jun 28 12:58:35 2006 From: bpicinbono at WORLDONLINE.FR (Blaise) Date: Wed, 28 Jun 2006 21:58:35 +0200 Subject: Mapserver/GD JPEGs In-Reply-To: <200606271605.40612.sdc@sdc.com.au> Message-ID: Le Mardi 27 Juin 2006 08:35, Stephen Davies a ?crit?: > Last week I posted a request regarding comments in JPEGs and their > apparent effect on Motorola 3G telephones. > > Since then I have found that a) the issue seems to affect all WAP phones > and b) it is not just comments that cause the problem. > > It seems that these devices can only handle very simple images and those > generated by Mapserver/GD fall outside their capabilities. > > I have found that, as well as removing the comments from my map images, > I have to go further. > > My current work-around is to use a PERL script to generate the map image > to disk and then use the mogrify utility from Image Magik to "clean" > it. The mogrify command is simply: > > mogrify -quality 100 image.jpg > > but whatever this does to the image is enough to make it displayable on > a telephone when sent as an img src=. > > If anybody knows more about what is happening here and/or what the > underlying problem is, I would love to hear it. > > Cheers, > Stephen Davies Hi Stephen Is it working ok with quality 100 jpeg images ? In this case, you could force mapserver to create quality 100 jpeg images with the QUALITY parameter. Check this doc : http://mapserver.gis.umn.edu/docs/reference/mapfile/outputformat/ Regards Blaise From mljacks2 at HOTMAIL.COM Wed Jun 28 13:12:17 2006 From: mljacks2 at HOTMAIL.COM (M.L. Jackson) Date: Wed, 28 Jun 2006 15:12:17 -0500 Subject: Invisible WMS layer??? Help please. Message-ID: My wms layer does not display and it does not produce an error. This is what my wms layer looks like: LAYER NAME "photo" STATUS DEFAULT TYPE RASTER MINSCALE 10000 #MAXSCALE 10000 CONNECTIONTYPE WMS CONNECTION "http://terraservice.net/OgcMap.ashx?" METADATA "wms_srs" "EPSG:4326" "wms_title" "Orthophoto" "wms_name" "DOQ" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_layers" "doq" "wms_group_title" "background" "wms_onlineresource" "http://terraservice.net/OgcMap.ashx?" "wms_latlonboundingbox" "-124 46 -110 52" #"wms_connectiontimeout" "120" END PROJECTION "init=epsg:4326" END DEBUG ON END I have debugging on and it has generated files for errors before. Whatever is going on now is not producing an error file though. The mapserver application comes up displaying the map as usual but no matter how far I zoom into the map there are no aerial shots (via the wms layer). Any and all help is appreciated. _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From bart_doggers at YAHOO.COM Wed Jun 28 13:23:33 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Wed, 28 Jun 2006 13:23:33 -0700 Subject: map server question? Message-ID: Hi, I am running MapServer on a Linux server. I dont know what this error means loadForm(): Web application error. CGI variable "map" is not set. How do I fix this error? Please provide me with the step-by-step guidance since I never used this product before, thanks for your time. Albert --------------------------------- 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 denis.nadeau at GMAIL.COM Wed Jun 28 13:55:49 2006 From: denis.nadeau at GMAIL.COM (Denis Nadeau) Date: Wed, 28 Jun 2006 16:55:49 -0400 Subject: POSGIS timefilter date_trunc bug In-Reply-To: Message-ID: Hi, I found the solution to this problem. When using shp2pgsql the data type for the date and time column are set to varchar datatype. Make sure that the table was create with DATE datatype for timestamps columns. Example: CREATE TABLE "mapserver" (gid serial PRIMARY KEY, "location" varchar, "time" date, "imgdate" date); The WMS time filter works fine now with PostGIS connection. Regards, Denis -------------- next part -------------- An HTML attachment was scrubbed... URL: From awilliams at RAPIDMAP.COM.AU Wed Jun 28 15:44:38 2006 From: awilliams at RAPIDMAP.COM.AU (Andrew Williams) Date: Thu, 29 Jun 2006 08:44:38 +1000 Subject: Odd Label problem with mapfile Message-ID: I'm not a brain at this stuff myself, but I seem to recall having a similar problem. The solution if I'm correct is Type ANNOTATION instead of Type Point. Anyway worth a try in the absence of other replys. Andrew -----Original Message----- From: Kenton Williams [mailto:Kenton_Williams at UMIT.MAINE.EDU] Sent: Thu 6/29/2006 12:44 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] Odd Label problem with mapfile Hello, I have an odd problem with some labels in my mapfile. I have verified that all of the layers work just fine with the exception of the citynames layer, which is just used to make labels from the Cities layer that can be turned on and off (using dbox). The cities layer draws just fine. The other layers that are included to draw labels work fine. The database table is intact for the citynames layer. For some reason, when mapserver is told to draw this layer, it just hangs - refusing to draw anything at all. The other two layers that create labels are polygon layers and this troublesome layer is a point layer. I assumed that this does not make a difference. Am I missing something? Kenton W. From Steve.Lime at DNR.STATE.MN.US Wed Jun 28 15:45:06 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 28 Jun 2006 17:45:06 -0500 Subject: CLASSITEM and EXPRESSION for a float field Message-ID: In this case you are doing a straight string comparison. I believe for shapefiles the double to string conversion respects the number of decimal places defined for the field. So if you have 5 decimal places you'll need: EXPRESSION '9.00000' Steve >>> Luca Manganelli 06/28/06 3:56 AM >>> Hi, I'm attempting to use the EXPRESSION for a float field, but I don't know the right manner. I.e.: LAYER NAME 'test' ... CLASSITEM 'floatfield' .... CLASS NAME "testclass1" EXPRESSION '9' ... END END my mapserver doesn't view the objects with EXPRESSION '9', so I suspect that the '9' is not right (I tried with '9.0', too). Any idea? From banders at REFRACTIONS.NET Wed Jun 28 16:31:33 2006 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Wed, 28 Jun 2006 16:31:33 -0700 Subject: Invisible WMS layer??? Help please. In-Reply-To: Message-ID: Mapserver may be fairly silent about errors when it acts as a WMS client. Most likely the request that Mapserver sends to the other WMS server is failing somehow. I think you mentioned previously that you have direct access to the other WMS service (which mapserver uses as the source for its photo layer.) You can probably set that service up to report incoming WMS request URLs, and you can use those URLs to track down the problem. Brock M.L. Jackson wrote: > My wms layer does not display and it does not produce an error. This > is what my wms layer looks like: > > LAYER > NAME "photo" > STATUS DEFAULT > TYPE RASTER > MINSCALE 10000 > #MAXSCALE 10000 > > CONNECTIONTYPE WMS > CONNECTION "http://terraservice.net/OgcMap.ashx?" > > METADATA > "wms_srs" "EPSG:4326" > "wms_title" "Orthophoto" > "wms_name" "DOQ" > "wms_server_version" "1.1.1" > "wms_format" "image/png" > "wms_layers" "doq" > "wms_group_title" "background" > "wms_onlineresource" "http://terraservice.net/OgcMap.ashx?" > "wms_latlonboundingbox" "-124 46 -110 52" > #"wms_connectiontimeout" "120" > END > PROJECTION > "init=epsg:4326" > END > DEBUG ON > END > > I have debugging on and it has generated files for errors before. > Whatever is going on now is not producing an error file though. The > mapserver application comes up displaying the map as usual but no > matter how far I zoom into the map there are no aerial shots (via the > wms layer). Any and all help is appreciated. > > _________________________________________________________________ > Don?t just search. Find. Check out the new MSN Search! > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From holl at GDF-HANNOVER.DE Wed Jun 28 23:57:56 2006 From: holl at GDF-HANNOVER.DE (Stephan Holl) Date: Thu, 29 Jun 2006 08:57:56 +0200 Subject: [GRASS-user] ogr-grass In-Reply-To: <44A2B2BF.7080006@faunalia.it> Message-ID: Hello Paolo, On Wed, 28 Jun 2006 18:47:59 +0200 Paolo Cavallini wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi all. > We're experimenting with the ogr driver for grass vector (just entered > into Debian unstable - thanks Steve Halasz!). Everything works well > 8eg ogr2ogr), but we cannot figure out how to pass the PostgreSQL > connection string through MapServer. AFAICT, mapserver works as > www-data user, and rough attempts to give these credential to > www-data (copying .grasslogin6 in /home/www-data) had no success > (DBMI-Postgres driver error: Cannot connect to Postgres: fe_sendauth: > no password supplied). With dbf driver everything is ok. > Anybody has a hint? you are going to access GRASS-data with postgressql-stored attributes through mapserver? Perhaps you need to do db.login as www-data first to create the needed dot-files?! Just another thought: Does the user www-data have rights to access to postgresql at all? Did you try with psql -U www-data ? Does it work? Hope this helps Stephan -- GDF Hannover - Solutions for spatial data analysis and remote sensing Hannover Office - Mengendamm 16d - D-30177 Hannover Internet: www.gdf-hannover.de - Email: holl at gdf-hannover.de Phone : ++49-(0)511.39088507 - Fax: ++49-(0)511.39088508 From sdc at SDC.COM.AU Thu Jun 29 00:08:04 2006 From: sdc at SDC.COM.AU (Stephen Davies) Date: Thu, 29 Jun 2006 16:38:04 +0930 Subject: Mapserver/GD JPEGs Message-ID: Thanks Blaise but my map file already had that entry. The actual solution is to turn off interlacing as suggested by Jeff Hoffmann. Cheers, Stephen Le Mardi 27 Juin 2006 08:35, Stephen Davies a =E9crit=A0: > Last week I posted a request regarding comments in JPEGs and their > apparent effect on Motorola 3G telephones. > > Since then I have found that a) the issue seems to affect all WAP phones > and b) it is not just comments that cause the problem. > > It seems that these devices can only handle very simple images and those > generated by Mapserver/GD fall outside their capabilities. > > I have found that, as well as removing the comments from my map images, > I have to go further. > > My current work-around is to use a PERL script to generate the map image > to disk and then use the mogrify utility from Image Magik to "clean" > it. The mogrify command is simply: > > mogrify -quality 100 image.jpg > > but whatever this does to the image is enough to make it displayable on > a telephone when sent as an img src=3D. > > If anybody knows more about what is happening here and/or what the > underlying problem is, I would love to hear it. > > Cheers, > Stephen Davies Hi Stephen Is it working ok with quality 100 jpeg images ? In this case, you could for= ce=20 mapserver to create quality 100 jpeg images with the QUALITY parameter. Che= ck=20 this doc : http://mapserver.gis.umn.edu/docs/reference/mapfile/outputformat/ Regards Blaise -- ======================================================================= 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 schick at SDAC.HANNOVER.BGR.DE Thu Jun 29 01:27:28 2006 From: schick at SDAC.HANNOVER.BGR.DE (Agneta Schick) Date: Thu, 29 Jun 2006 10:27:28 +0200 Subject: Perl Mapscript Warnings Message-ID: Hello, I'm upgrading from Version 3.6.5 on Solaris 8 (sun4-solaris 32int) to Version 4.8.3 on Solaris 10 (i86pc-solaris-64int) The application which ran with V. 3.6.5, now dies when I try to open the mapfile with "new mapscript::mapObj($quake_map)". I tested the mapfile with "mapserv?map=../htdocs/test_map/mytest.map&mode=map" with no problem. Could the new version of mapscript be the cause?? I got the following warnings making perl mapscript: "/usr/local/include/ogr_core.h", line 215: warning: enumerator value overflows INT_MAX (2147483647) "/usr/local/include/ogr_core.h", line 216: warning: enumerator value overflows INT_MAX (2147483647) "/usr/local/include/ogr_core.h", line 217: warning: enumerator value overflows INT_MAX (2147483647) "/usr/local/include/ogr_core.h", line 218: warning: enumerator value overflows INT_MAX (2147483647) "/usr/local/include/ogr_core.h", line 219: warning: enumerator value overflows INT_MAX (2147483647) "/usr/local/include/ogr_core.h", line 220: warning: enumerator value overflows INT_MAX (2147483647) "/usr/local/include/ogr_core.h", line 222: warning: enumerator value overflows INT_MAX (2147483647) "mapscript_wrap.c", line 1978: warning: statement not reached swig-1.3.29 and gdal-1.3.2 are installed. I'm grateful for any hints. Upto now I only see the message "Unable to open mapfile"! Agneta Schick ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Agneta Schick Bundesanstalt fuer Geowissenschaften und Rohstoffe Federal Institute for Geosciences and Natural Resources Stilleweg 2 D- 30655 Hannover Tel.: +49 511 643 3136 GERMANY FAX.: +49 511 643 3663 schick at sdac.hannover.bgr.de http://www.seismologie.bgr.de ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From marcoscobena at GMAIL.COM Thu Jun 29 02:26:05 2006 From: marcoscobena at GMAIL.COM (=?UTF-8?Q?Marcos_Cobe=C3=B1a?=) Date: Thu, 29 Jun 2006 11:26:05 +0200 Subject: WMS and SRS issue: "Invalid SRS given : SRS must be valid for all requested layers." In-Reply-To: <44A28B08.3060405@pobox.com> Message-ID: Hi again Frank, Really thanks for your support, I think I've found the issue. Taking network dumps I've seen the query OpenLayers use: http://localhost:8080/cgi-bin/DGIS/mapserv.exe?bbox=-6.299999999999988,37.35000000000001,-5.849999999999988,37.80000000000001&width=256&height=256&map=DGIS_12c.map&layers=12c_linea&transparent=true&format=image/png&service=WMS&version=1.1.1&request=GetMap&styles=&exceptions=application/vnd.ogc.se_inimage&srs=EPSG:4326 , which should draw some shapes, but it doesn't. Changing bbox values with those ones: http://localhost:8080/cgi-bin/DGIS/mapserv.exe?bbox=187889.12817030,4092316.51133811,197493.65136571,4099997.10096501&width=256&height=256&map=DGIS_12c.map&layers=12c_linea&transparent=true&format=image/png&service=WMS&version=1.1.1&request=GetMap&styles=&exceptions=application/vnd.ogc.se_inimage&srs=EPSG:4326 , draws everything as expected. The issue, then, seems to be in the way we ask MS for the layer. Is there any way to tell MS to receive degree positions instead of the other ones? Thanks in advance. Regards, 2006/6/28, Frank Warmerdam : > Marcos Cobe?a wrote: > > Hi Frank, > > > > Thank you so much for your help, I tried that but, eventhough it > > doesn't crash anymore, it still doesn't paint the shapes. > > > > Under ArcView, my shapes (SHP) are using this projection: > > > > "+proj=longlat +ellps=WGS84 +no_defs" > > > > , which, in my epsg projection file used, corresponds to: > > > > " > > # Unknown datum based upon the WGS 84 ellipsoid > > <4030> +proj=longlat +ellps=WGS84 +no_defs no_defs <> > > " > > > > Why then I still don't see shapes painted? > > Marcos, > > I don't know why you aren't getting a result. Many reasons are possible. > > But I would encourage you to use EPSG:4326 in place of EPSG:4030. EPSG:4030 > and EPSG:4326 are the same thing except that 4030 does not imply that we are > using the normal WGS84 datum on the WGS84 ellipsoid. But it seems very likely > that in your case the WGS84 datum would apply so you might as well just use > 4326 everywhere to avoid problems. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGF, http://osgeo.org > > -- Marcos - http://www.youcannoteatbits.org From D.Stone at ED.AC.UK Thu Jun 29 03:29:03 2006 From: D.Stone at ED.AC.UK (DjwStone) Date: Thu, 29 Jun 2006 03:29:03 -0700 Subject: NQUERY mode again In-Reply-To: <5044816.post@talk.nabble.com> Message-ID: I've collected some more evidence in connection with this problem. This has mostly been prompted by (1) a suspicion that the 5-table join might be the cause, and (2) the fear that the 'using unique...' clause could be. Experiment 1: Remove the joins completely from the layer definition so it reads: DATA "geom from (SELECT locationref, placename, qualifyingname, locationtype, locationgridref, parishref, religiousorder, geom, oid FROM loccoords WHERE placename='%locname%') as foo using unique oid using srid=27700" Result 1: The layer displays OK, with 'locname' substituting and filtering as expected. Clicking the map at the layer symbol caused the query template to display with attributes from all the locations named 'locname' Experiment 2: Re-introduce 2 joins to model a many-to-many relationship between locations and dedications; note the addition also of the composite key 'myuid' to use with 'using unique': DATA "geom from (SELECT d.dedicationref, dedicationtype, dedsaintsnamed, c.locationref, placename, qualifyingname, locationtype, religiousorder, geom, c.oid, c.locationref||d.dedicationref as myuid FROM (dedication d INNER JOIN reftolocn r ON d.dedicationref = r.dedicationref) INNER JOIN loccoords c ON r.locationref = c.locationref WHERE placename='%locname%') as foo using unique myuid using srid=27700" Result 2: The layer displays OK as before. However, 'querying the map' produces a completely blank query template (I posted this problem on MAPSERVER-USERS a while back). Experiment 3: Remove the 'using unique myuid' from the DATA definition for Expt.2; this was the only resolution to the blank template problem found so far. DATA "geom from (SELECT d.dedicationref, dedicationtype, dedsaintsnamed, c.locationref, placename, qualifyingname, locationtype, religiousorder, geom, c.oid, c.locationref||d.dedicationref as myuid FROM (dedication d INNER JOIN reftolocn r ON d.dedicationref = r.dedicationref) INNER JOIN loccoords c ON r.locationref = c.locationref WHERE placename='%locname%') as foo using srid=27700" Result 3: The layer displays OK. Querying the map produces the right NUMBER of results, but their CONTENT is incorrect. For example, when %locname% is set to 'Leith', the database shows 5 dedications at 3 locations called Leith (1 location has 3 dedications). The query template, however, lists 5 sets of results each with the correct location attributes, but for the location with 3 dedications, all 3 show the same dedication attributes: Result no.: 3 Location Ref.: LO/JD/605 Location Type: Chapel Place-name: Leith Dedication Type: Church dedication Dedication Ref.: DE/JD/693 Result no.: 4 Location Ref.: LO/JD/605 Location Type: Chapel Place-name: Leith Dedication Type: Church dedication Dedication Ref.: DE/JD/693 -------------------- should be DE/JD/1584 What this appears to show is that NQUERY isn't handling the join results correctly (or I'm not setting up the environment correctly). Either way, any help would be most gratefully received. Cheers, Dave -- View this message in context: http://www.nabble.com/NQUERY-mode-again-tf1848174.html#a5100344 Sent from the Mapserver - User forum at Nabble.com. From listario at GMAIL.COM Thu Jun 29 05:01:48 2006 From: listario at GMAIL.COM (J. Parapar) Date: Thu, 29 Jun 2006 14:01:48 +0200 Subject: NQUERY mode again In-Reply-To: <5100344.post@talk.nabble.com> Message-ID: Hi Dave. Have you taken a look at the PostgreSQL log? The SQL queries generated by MapServer can help you to determine a working way to write the DATA expression. Best regards, Jorge 2006/6/29, DjwStone : > I've collected some more evidence in connection with this problem. This has > mostly been prompted by (1) a suspicion that the 5-table join might be the > cause, and (2) the fear that the 'using unique...' clause could be. > > Experiment 1: Remove the joins completely from the layer definition so it > reads: > > DATA "geom from (SELECT locationref, placename, qualifyingname, > locationtype, locationgridref, parishref, religiousorder, geom, oid FROM > loccoords WHERE placename='%locname%') as foo using unique oid using > srid=27700" > > Result 1: > The layer displays OK, with 'locname' substituting and filtering as > expected. Clicking the map at the layer symbol caused the query template to > display with attributes from all the locations named 'locname' > > Experiment 2: Re-introduce 2 joins to model a many-to-many relationship > between locations and dedications; note the addition also of the composite > key 'myuid' to use with 'using unique': > > DATA "geom from (SELECT d.dedicationref, dedicationtype, > dedsaintsnamed, c.locationref, placename, qualifyingname, locationtype, > religiousorder, geom, c.oid, c.locationref||d.dedicationref as myuid FROM > (dedication d INNER JOIN reftolocn r ON d.dedicationref = r.dedicationref) > INNER JOIN loccoords c ON r.locationref = c.locationref WHERE > placename='%locname%') as foo using unique myuid using srid=27700" > > Result 2: > The layer displays OK as before. However, 'querying the map' produces a > completely blank query template (I posted this problem on MAPSERVER-USERS a > while back). > > Experiment 3: Remove the 'using unique myuid' from the DATA definition for > Expt.2; this was the only resolution to the blank template problem found so > far. > > DATA "geom from (SELECT d.dedicationref, dedicationtype, > dedsaintsnamed, c.locationref, placename, qualifyingname, locationtype, > religiousorder, geom, c.oid, c.locationref||d.dedicationref as myuid FROM > (dedication d INNER JOIN reftolocn r ON d.dedicationref = r.dedicationref) > INNER JOIN loccoords c ON r.locationref = c.locationref WHERE > placename='%locname%') as foo using srid=27700" > > Result 3: > The layer displays OK. Querying the map produces the right NUMBER of > results, but their CONTENT is incorrect. For example, when %locname% is set > to 'Leith', the database shows 5 dedications at 3 locations called Leith (1 > location has 3 dedications). The query template, however, lists 5 sets of > results each with the correct location attributes, but for the location with > 3 dedications, all 3 show the same dedication attributes: > > Result no.: 3 > Location Ref.: LO/JD/605 > Location Type: Chapel > Place-name: Leith > Dedication Type: Church dedication > Dedication Ref.: DE/JD/693 > > Result no.: 4 > Location Ref.: LO/JD/605 > Location Type: Chapel > Place-name: Leith > Dedication Type: Church dedication > Dedication Ref.: DE/JD/693 -------------------- should be DE/JD/1584 > > What this appears to show is that NQUERY isn't handling the join results > correctly (or I'm not setting up the environment correctly). Either way, any > help would be most gratefully received. > > Cheers, > > Dave > -- > View this message in context: http://www.nabble.com/NQUERY-mode-again-tf1848174.html#a5100344 > Sent from the Mapserver - User forum at Nabble.com. > From fsimon at UNIVALI.BR Thu Jun 29 05:06:44 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Thu, 29 Jun 2006 09:06:44 -0300 Subject: Oracle Spatial query problem In-Reply-To: <44A2AD45.6080506@pobox.com> Message-ID: Hi, As Frank hint the best way is increase the value of TEXT_SIZE constant in the maporaclespatial.c and recompile the code. This was define with this size to be equal with the max size than an DBF can store in a column, but you can increase without problem. Best regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Frank Warmerdam wrote: > Mark Adams wrote: >> We?re working with mapserver and PHP mapscript, we have a build of >> mapserver that supports Oracle Spatial. We?re using Oracle 9i. Mostly >> it is working fine, however we have discovered a fundamental problem, >> not sure if this is a know design limitation or not. When we query a >> layer that has the connection type "ORACLESPATIAL", if any of the >> queried fields has a field VALUE length > 256 characters in any of >> the queried records, we get the following error: >> >> >> >> ?Fatal error: [MapServer Error]: >> msOracleSpatialLayerGetShape(): Error: ORA-1406: fetched column value >> was truncated . Query statement: SELECT Field1, field2, field3, >> Field4, field5, field6, Field7, field8, field9, Field10, field11, >> field12, GEOM FROM MyTable WHERE Field1= 9506 .Check your data >> statement.? >> >> >> >> This error appears on the line: >> >> $oShape = $Layer->getShape($oRes->tileindex,$oRes->shapeindex) >> >> >> >> Note that it doesn?t matter what the actual field length is, if a >> field is defined as varchar(4000) but the field value is only 250 >> characters it will work, but as soon as the value is greater than 256 >> characters it fails. >> >> >> >> Is this a known limitation, or a bug? I?m hoping it can be resolved, >> because if not it will blow up what was looking like a fine solution. > > Mark, > > Skimming the code, I believe you can increase the value of TEXT_SIZE near > the beginning of maporaclespatial.c to increase this limit. Fernando > Simon > would need to give the final word on the best approach. I certainly feel > that this ought to be handled more dynamically at some point. > > Looking into the OGR Oracle code, I'm not sure if it handles this > properly > either. It supports binding fields with widths larger than 256, but > I'm not > sure what it would do with a variable length field with no defined > limit (if > such things exist). > > Best regards, From xavier.mauclaire at GEOTER.FR Thu Jun 29 05:21:43 2006 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Thu, 29 Jun 2006 14:21:43 +0200 Subject: Mapscript c# problems and apache2 scratches In-Reply-To: Message-ID: Hi tamas I'm going to prepare you another little tool because i don't know if the last one was revealing the error i got under linux. I remind you the error regards =============================================================== Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= Stacktrace: in (wrapper managed-to-native) mapscriptPINVOKE:mapObj_draw (System.Runtime.InteropServices.HandleRef) <0x4> in (wrapper managed-to-native) mapscriptPINVOKE:mapObj_draw (System.Runtime.InteropServices.HandleRef) <0xffffff81> in mapObj:draw () <0x21> in siteflash.GetParcelleReglement:ProcessRequest (System.Web.HttpContext) <0x8e5> in __1:MoveNext () <0x10a0> in System.Web.HttpApplication:Tick () <0x1f> in System.Web.HttpApplication:Start (object) <0x37> in System.Web.HttpApplication:System.Web.IHttpAsyncHandler.BeginProcessRequest (System.Web.HttpContext,System.AsyncCallback,object) <0x68> in System.Web.HttpRuntime:RealProcessRequest (object) <0x1ab> in System.Web.HttpRuntime:ProcessRequest (System.Web.HttpWorkerRequest) <0x2c> in Mono.WebServer.MonoWorkerRequest:ProcessRequest () <0xa> in Mono.WebServer.BaseApplicationHost:ProcessRequest (Mono.WebServer.MonoWorkerRequest) <0x43> in Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xdc> in (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xffffff0a> in (wrapper xdomain-dispatch) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (object,byte[]&,byte[]&,int,string,string,string,string,string,int,string,in t,string,string[],string[]) <0xfffee24e> in (wrapper xdomain-invoke) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xffffff6a> in (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xffca8c24> in Mono.WebServer.ModMonoWorker:InnerRun (object) <0x404> in Mono.WebServer.ModMonoWorker:Run (object) <0x17> in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object (object) <0xffffff95> in (wrapper runtime-invoke) System.Object:runtime_invoke_void_object (object,intptr,intptr,intptr) <0xc7371b5f> Native stacktrace: /usr/lib/pkgconfig/../../bin/mono(mono_handle_native_sigsegv+0xbb) [0x814ee2b] /usr/lib/pkgconfig/../../bin/mono [0x813b2cf] [0xffffe440] /usr/local/lib/libmapscript.so(msLayerClose+0x1d) [0x418eb11d] /usr/local/lib/libmapscript.so(msDrawVectorLayer+0x35e) [0x418f2e4e] /usr/local/lib/libmapscript.so(msDrawLayer+0x90) [0x418f3150] /usr/local/lib/libmapscript.so(msDrawMap+0x2fd) [0x418f3e1d] /usr/local/lib/libmapscript.so(CSharp_mapObj_draw+0x1d) [0x418a9e3d] [0x4185fbdc] [0x4185fafa] [0x41865026] [0x416f6719] [0x416f55a0] [0x416f19d8] [0x416f18b9] [0x4115049c] [0x4114ffcd] [0x4114ff8b] [0x4114f544] [0x41133dcd] [0x41133534] [0x41133313] [0x4112124f] [0x4112108b] [0x40dc9bdd] [0x40dc9730] [0x40dc96f4] [0x40dc964e] /usr/lib/pkgconfig/../../bin/mono [0x813b180] /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke+0x27) [0x80d63f7] /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke_array+0x270) [0x80d78c0] /usr/lib/pkgconfig/../../bin/mono(mono_message_invoke+0xc5) [0x80d93d5] /usr/lib/pkgconfig/../../bin/mono [0x80a509f] /usr/lib/pkgconfig/../../bin/mono [0x80a58c9] /usr/lib/pkgconfig/../../bin/mono [0x8099fb2] /usr/lib/pkgconfig/../../bin/mono [0x80f5067] /usr/lib/pkgconfig/../../bin/mono [0x8113175] /lib/tls/libpthread.so.0 [0x400e5297] /lib/tls/libc.so.6(__clone+0x5e) [0x401e037e] [Thu Jun 29 09:36:47 2006] [notice] caught SIGTERM, shutting down [Thu Jun 29 09:36:48 2006] [notice] Apache/2.2.0 (Unix) mod_mono/1.1.14 configured -- resuming normal operations ----------------------------------------- Xavier Mauclaire Service informatique GEOTER SAS 3, rue Jean Monnet 34830 Clapiers France T?l.: +33 (0)4.67.59.18.11 Fax: +33 (0)4.67.59.18.24 Email: xavier.mauclaire at geoter.fr Web site: http://www.geoter.fr ------------------------------------------------------- -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Tamas Szekeres Envoy? : mercredi 28 juin 2006 00:08 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] Mapscript c# problems and apache2 scratches Xavier, After digging into your code i have found the following problems: In pMapSetSelection: "layerObj pLayer = new layerObj(pMapQuery);" will implicitly add the newly created layer to the map (to the end of the layers list) with index=1 (you have already a layer with index = 0) You will have the following layers then: 0 - zonage_reglementaire 1 - selection After that you are calling "pMapQuery.insertLayer(pLayer, 0);" which will shift the layers upwards: 0 - zonage_reglementaire 1 - zonage_reglementaire 2 - selection Free the layer with index = 0 !!!! 0 - freed 1 - zonage_reglementaire 2 - selection Copy the given layer to index = 0 0 - zonage_reglementaire 1 - zonage_reglementaire 2 - selection After freeing zonage_reglementaire the resultache of the layer will be cleared so the subsequent call of pLayerParcelle.getResults() will return null and a nullreference exception will be raised. I think the previously described operation is unexpected and you might want to add the selection layer only once. Therefore you must not call inserLayer when creating the layer using the constructor with a map object. If you will use the current CVS version MS_POSITIONS_ENUM.MS_CC should be used instead of MS_LABEL_POSITIONS.MS_CC. I have tested your code on windows. Best Regards, Tamas 2006/6/27, Xavier Mauclaire : > Hi tamas > You will find joined a sample application that produce an error. I > don't know if this error is the same as the one that occurs with the web site. > This sample application uses theads to simulate asp.net requests. Each > thread loads 3 time a mapfile and do a searchbypoint. After this a > dynamic layer is created with the pMapSetSelection(pMapQuery, pShape); > function If this function is launched the program scratches otherwise all works well. > Finally ne image is generated. > mY problem is that i don't know if thr generated error is the same as > the mapObj_Draw error i get on my server > > On the linux server i changed the csmodule.i and append your update > code request at the end of the file > > %typemap(csconstruct, excode=SWIGEXCODE) layerObj(mapObj map) %{: > this($imcall, true) { > if (map != null) this.swigCMemOwn = false;$excode } %} > %typemap(csconstruct, excode=SWIGEXCODE) classObj(layerObj layer) %{: > this($imcall, true) { > if (layer != null) this.swigCMemOwn = false;$excode } %} > %typemap(csconstruct, excode=SWIGEXCODE) styleObj(classObj > parent_class) %{: this($imcall, true) { > if (parent_class != null) this.swigCMemOwn = false;$excode } %} > > Hope this will help > > regards > > > ----------------------------------------- > Xavier Mauclaire > Service informatique > GEOTER SAS > 3, rue Jean Monnet > 34830 Clapiers France > T?l.: +33 (0)4.67.59.18.11 > Fax: +33 (0)4.67.59.18.24 > Email: xavier.mauclaire at geoter.fr > Web site: http://www.geoter.fr > ------------------------------------------------------- > > > > -----Message d'origine----- > De : Tamas Szekeres [mailto:szekerest at gmail.com] Envoy? : lundi 26 > juin 2006 17:55 ? : Xavier Mauclaire Cc : > MAPSERVER-USERS at lists.umn.edu Objet : Re: Mapscript c# problems and > apache2 scratches > > Xavier, > > Could you extract the problem as a sample application, like you have > done with the previous issue? > How did you make the test? How many requests should be made? Is the > problem deterministic of occurs randomly at different functions. > > Tamas > > > 2006/6/26, Xavier Mauclaire : > > > > > > HI > > > > New problem with the mapscript c# library. > > I'm doing a web site using, among others, querybyshape function. If > > there are several requests using this function i scratches the > > server > > > > > > > From madprof at GMX.CH Thu Jun 29 05:32:52 2006 From: madprof at GMX.CH (Daniel Goetz) Date: Thu, 29 Jun 2006 14:32:52 +0200 Subject: Test Suite Message-ID: Hi, I am trying to learn from the examples given on the "Mapserver Test Suite" site. http://maps.dnr.state.mn.us/mapserver_demos/tests46/ But I have some problems with it. The first is that mapserver sends back an empty (white) image when I give the following command in my browser (I have the ms4w_Vers 1.5.3 package installed): http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apache/htdocs/oracle/lmaa.map&program=/cgi-bin/mapserv.exe/htmlroot=/oracle/maqp_web_imagepath=/ms4w/apache/htdocs/tmp/&map_web_imageurl=/tmp/ This command should be the exact copy of the command given in the example "Simple Point Query (mode=query), with pan/zoom" when starting the example from the "test suite start page". I have just adjusted the parameters to my environmet. the original command copied from the example is: http://maps.dnr.state.mn.us/cgi-bin/mapserv46?map=/usr/local/www/docs_maps/mapserver_demos/tests46/query_persistent/test.map&program=/cgi-bin/mapserv46&htmlroot=/mapserver_demos/tests46&map_web_imagepath=/usr/local/www/docs_maps/tmp/&map_web_imageurl=/tmp/ Not until I add "&layers=all&" I get the desired map. What went wrong? Why do I need to add the "layers=all" phrase and in the example it is not necessary? The STATUS in my MAP-Object and in the LAYER-objects is "ON". Secondy, I only get the "pan and zoom" template work, when I add the following to the "form" tag in the html code: It is the same thing that I have just described. I need to have the "layer=all" statement in the commandline. But why do I have to and in the example it's not necessary? Thirdly, what exactly is my "htmlroot" directory? Is it the "htdocs" within the "apache" directory? Or is it the directory where my .map-file is stored? Or any other? Does anybody have an idea? Fourthly, in the .map-file of the "Simple Point Query (mode=query), with pan/zoom" example the STYLE value in the QUERYMAP-object is "select". In my opinion it must be "hilite" to get the result shown in the map. Am I right? Might it be, that the link "map file" points to a .map-file that doesn't belong to the "Simple Point Query (mode=query), with pan/zoom" example? Moreover the TEMPLATE paramters in the LAYER-objects of that .map-file point to a template called "quad.html". But the link "URL query template" that is provided on the "starting page" of the "Simple Point Query (mode=query), with pan/zoom" example points to a file called "selected.html". Is this a mistake? Can anybody please enlighten me? The next thing I have noticed is that the link "URL query template" could not be opened. I get a error notice (ERROR 404): file not found on this server. What went wrong? I would urgently need this source code because otherwise I can not understand how to preseve a selected feature (colored) even if I do some further zomming and panning. Can anybody help me? Perhaps somebody could explain me how I can preserve a selected feature colored? Thank you so much. Last thing is, that the source code of the linked "template file" differs from the source code of the "real" template. Namely the following tag is missing in the linkes "template file" source code: Moreover I do not understand what this line stands for. What means "[county]" and why and how can mapserver interpret this expression. Where does the required information come from? O.K. that should be enough for the moment. Perhaps this were too much questions but if I can not answer these question I am not able to rebuild the "Simple Point Query (mode=query), with pan/zoom" example. And I want to be able to perserve selected (colored) features even if I do some zomming and panning. I want to thank you for your time, your ideas, your help, endeavors and your indulgence. Many thanks. regards Daniel -- Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl From szekerest at GMAIL.COM Thu Jun 29 06:10:48 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 29 Jun 2006 15:10:48 +0200 Subject: Mapscript c# problems and apache2 scratches In-Reply-To: Message-ID: Xavier, 2006/6/29, Xavier Mauclaire : > Hi tamas > > I'm going to prepare you another little tool because i don't know if the > last one was revealing the error i got under linux. I don't know either. Your call stack points to mapObj_draw as the primary location of the problem. However the problems i have mentioned before should also be handled in your code. It would be great if you could extract the problem as a console app in order to find a fix for this issue. If the problem is happening solely on apache with mod_mono create the sample accordingly and please describe in brief how to set up your application and the test method. I'll be away from saturday until the end of the next week. Best regards, Tamas From bart_doggers at YAHOO.COM Thu Jun 29 06:17:43 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Thu, 29 Jun 2006 06:17:43 -0700 Subject: load Map error Message-ID: Hi, I am getting this error loadMap(): Web application error. CGI variable "map" is not set. That is when I am clicking the submit button and it doesnt load up the map. Can anyone help me? Thanks, Albert --------------------------------- 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 David.Fawcett at STATE.MN.US Thu Jun 29 06:21:03 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 29 Jun 2006 08:21:03 -0500 Subject: Test Suite In-Reply-To: A<20060629123252.244870@gmx.net> Message-ID: Daniel, To answer your first two questions, status on makes the layers available, but does not display them. With status on, you still need to explicitly add the layer names to your URL or form request. If you set the layers to status default, they will always display. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Daniel Goetz Sent: Thursday, June 29, 2006 7:33 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Test Suite Hi, I am trying to learn from the examples given on the "Mapserver Test Suite" site. http://maps.dnr.state.mn.us/mapserver_demos/tests46/ But I have some problems with it. The first is that mapserver sends back an empty (white) image when I give the following command in my browser (I have the ms4w_Vers 1.5.3 package installed): http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apache/htdocs/oracle/lmaa.map&program=/cgi-bin/mapserv.exe/htmlroot=/oracle/maqp_web_imagepath=/ms4w/apache/htdocs/tmp/&map_web_imageurl=/tmp/ This command should be the exact copy of the command given in the example "Simple Point Query (mode=query), with pan/zoom" when starting the example from the "test suite start page". I have just adjusted the parameters to my environmet. the original command copied from the example is: http://maps.dnr.state.mn.us/cgi-bin/mapserv46?map=/usr/local/www/docs_maps/mapserver_demos/tests46/query_persistent/test.map&program=/cgi-bin/mapserv46&htmlroot=/mapserver_demos/tests46&map_web_imagepath=/usr/local/www/docs_maps/tmp/&map_web_imageurl=/tmp/ Not until I add "&layers=all&" I get the desired map. What went wrong? Why do I need to add the "layers=all" phrase and in the example it is not necessary? The STATUS in my MAP-Object and in the LAYER-objects is "ON". Secondy, I only get the "pan and zoom" template work, when I add the following to the "form" tag in the html code: It is the same thing that I have just described. I need to have the "layer=all" statement in the commandline. But why do I have to and in the example it's not necessary? Thirdly, what exactly is my "htmlroot" directory? Is it the "htdocs" within the "apache" directory? Or is it the directory where my .map-file is stored? Or any other? Does anybody have an idea? Fourthly, in the .map-file of the "Simple Point Query (mode=query), with pan/zoom" example the STYLE value in the QUERYMAP-object is "select". In my opinion it must be "hilite" to get the result shown in the map. Am I right? Might it be, that the link "map file" points to a .map-file that doesn't belong to the "Simple Point Query (mode=query), with pan/zoom" example? Moreover the TEMPLATE paramters in the LAYER-objects of that .map-file point to a template called "quad.html". But the link "URL query template" that is provided on the "starting page" of the "Simple Point Query (mode=query), with pan/zoom" example points to a file called "selected.html". Is this a mistake? Can anybody please enlighten me? The next thing I have noticed is that the link "URL query template" could not be opened. I get a error notice (ERROR 404): file not found on this server. What went wrong? I would urgently need this source code because otherwise I can not understand how to preseve a selected feature (colored) even if I do some further zomming and panning. Can anybody help me? Perhaps somebody could explain me how I can preserve a selected feature colored? Thank you so much. Last thing is, that the source code of the linked "template file" differs from the source code of the "real" template. Namely the following tag is missing in the linkes "template file" source code: Moreover I do not understand what this line stands for. What means "[county]" and why and how can mapserver interpret this expression. Where does the required information come from? O.K. that should be enough for the moment. Perhaps this were too much questions but if I can not answer these question I am not able to rebuild the "Simple Point Query (mode=query), with pan/zoom" example. And I want to be able to perserve selected (colored) features even if I do some zomming and panning. I want to thank you for your time, your ideas, your help, endeavors and your indulgence. Many thanks. regards Daniel -- Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl From David.Fawcett at STATE.MN.US Thu Jun 29 06:26:01 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 29 Jun 2006 08:26:01 -0500 Subject: load Map error In-Reply-To: A<20060629131743.73840.qmail@web55704.mail.re3.yahoo.com> Message-ID: Albert, You are calling the MapServer cgi program, but you are not telling it which map file to use for configuration. If you are calling the program with a get request (in a URL), it should look something like: http://my.site/cgi-bin/mapserv?map=/home/mydirectory/mymapfile.map You will likely set other variables in the URL also, like mode, layers, etc. If you are calling the MapServer cgi from a html form, you are missing a hidden html variable named map that, like the url variable above, would contain the path to your map file. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Thursday, June 29, 2006 8:18 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] load Map error Hi, I am getting this error loadMap(): Web application error. CGI variable "map" is not set. That is when I am clicking the submit button and it doesnt load up the map. Can anyone help me? Thanks, Albert ________________________________ 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 mccann.dave at GMAIL.COM Thu Jun 29 06:45:28 2006 From: mccann.dave at GMAIL.COM (Dave McCann) Date: Thu, 29 Jun 2006 08:45:28 -0500 Subject: Mapserv.exe FastCGI support for IIS 6 Message-ID: I'm trying to test mapserver with IIS 6 with FastCGI. As far as I know I've followed the instructions to set it up. How do I know if it's actually working? Can anyone give me some pointers to get it working or to test it? Thanks, Dave McCann -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Thu Jun 29 06:53:14 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 29 Jun 2006 09:53:14 -0400 Subject: WMS and SRS issue: "Invalid SRS given : SRS must be valid for all requested layers." In-Reply-To: <67c29c7c0606290226vf646426t1758b9abecfc11f9@mail.gmail.com> Message-ID: Marcos Cobe?a wrote: > Hi again Frank, > > Really thanks for your support, I think I've found the issue. > > Taking network dumps I've seen the query OpenLayers use: > > http://localhost:8080/cgi-bin/DGIS/mapserv.exe?bbox=-6.299999999999988,37.35000000000001,-5.849999999999988,37.80000000000001&width=256&height=256&map=DGIS_12c.map&layers=12c_linea&transparent=true&format=image/png&service=WMS&version=1.1.1&request=GetMap&styles=&exceptions=application/vnd.ogc.se_inimage&srs=EPSG:4326 > > > , which should draw some shapes, but it doesn't. Changing bbox values > with those ones: > > http://localhost:8080/cgi-bin/DGIS/mapserv.exe?bbox=187889.12817030,4092316.51133811,197493.65136571,4099997.10096501&width=256&height=256&map=DGIS_12c.map&layers=12c_linea&transparent=true&format=image/png&service=WMS&version=1.1.1&request=GetMap&styles=&exceptions=application/vnd.ogc.se_inimage&srs=EPSG:4326 > > > , draws everything as expected. The issue, then, seems to be in the > way we ask MS for the layer. Is there any way to tell MS to receive > degree positions instead of the other ones? Marcos, Good sleuthing. The issue I believe is that MapServer does not know enough about the coordinate system of it's data to properly reproject things from whatever the projected coordinates are to lat/long. You need to establish the true coordinate system of the data and properly identify that in the .map file in a PROJECTION block on the layers. The WMS request is correct since it indicates via SRS=EPSG:4326 that the bbox is lat/long. 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 Jun 29 07:02:02 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 29 Jun 2006 10:02:02 -0400 Subject: Mapserv.exe FastCGI support for IIS 6 In-Reply-To: <003c01c69b82$496b9980$d50fa8c0@progressivepartnering.com> Message-ID: Dave McCann wrote: > I'm trying to test mapserver with IIS 6 with FastCGI. > > As far as I know I've followed the instructions to set it up. > > How do I know if it's actually working? > > Can anyone give me some pointers to get it working or to test it? Dave, Have you looked over the apache fastcgi instructions? I've never tested it with IIS, nor am I too keen on it. So I suspect that is all you will have to work from. 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 bart_doggers at YAHOO.COM Thu Jun 29 07:36:38 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Thu, 29 Jun 2006 07:36:38 -0700 Subject: loadMap(): Message-ID: Hi, I am using Post action in my html. I get this error loadMap(): Web application error. CGI variable "map" is not set. I look at the wapperscript but thats only a get action. Then I put name="map" in the input of the html and get this error msLoadMap(): Unknown identifier. Parsing error near (255):(line 4). So what should do? Can anyone help me? Albert --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Thu Jun 29 07:40:58 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 29 Jun 2006 09:40:58 -0500 Subject: FW: [UMN_MAPSERVER-USERS] msLoadMap(): Unknown identifier. Parsing error near (255):(line 4) Message-ID: Albert, Please CC' the entire list on your responses. From bart_doggers at YAHOO.COM Thu Jun 29 07:47:24 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Thu, 29 Jun 2006 07:47:24 -0700 Subject: FW: [UMN_MAPSERVER-USERS] msLoadMap(): Unknown identifier. Parsing error near (255):(line 4) In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB077B@s-sp22.pca.state.mn.us> Message-ID: There is the my map file #This is our first mapfile NAME "First" SIZE 400 300 IMAGETYPE 255 255 255 IMAGETYPE JPEG SHAPEPATH "/home/mapdata/" EXTENT -125.00 20.00 -65.00 50.00 WEB TEMPLATE '/var/www/htdocs/first.html' IMAGEPATH '/var/www/htdocs/tmp' IMAGEURL '/tmp/' END LAYER NAME "US States" STATUS default TYPE line DATA "statesp020" LABELITEM "STATE" CLASS STYLE COLOR 0 0 0 END COLOR 0 0 0 SIZE SMALL END END END END and there is my html MapServer First Map
    Thanks, Albert "Fawcett, David" wrote:Message Albert, Please CC' the entire list on your responses. From your description, you have an error in your mapfile. I would suggest including the text of your mapfile in your response to the list. David. -----Original Message----- From: Albert Anderson [mailto:bart_doggers at yahoo.com] Sent: Thursday, June 29, 2006 9:13 AM To: Fawcett, David Subject: RE: [UMN_MAPSERVER-USERS] msLoadMap(): Unknown identifier. Parsing error near (255):(line 4) Hi, I did a wapperscript and put name="map" in the html where the input is. Now I am getting this error msLoadMap(): Unknown identifier. Parsing error near (255):(line 4) . Could you please help me. Thanks, Albert "Fawcett, David" wrote: Albert, You are calling the MapServer cgi program, but you are not telling it which map file to use for configuration. If you are calling the program with a get request (in a URL), it should look something like: http://my.site/cgi-bin/mapserv?map=/home/mydirectory/mymapfile.map You will likely set other variables in the URL also, like mode, layers, etc. If you are calling the MapServer cgi from a html form, you are missing a hidden html variable named map that, like the url variable above, would contain the path to your map file. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Thursday, June 29, 2006 8:18 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] load Map error Hi, I am getting this error loadMap(): Web application error. CGI variable "map" is not set. That is when I am clicking the submit button and it doesnt load up the map. Can anyone help me? Thanks, Albert --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1???/min. --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs. Try it free. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Thu Jun 29 07:57:31 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 29 Jun 2006 09:57:31 -0500 Subject: FW: [UMN_MAPSERVER-USERS] msLoadMap(): Unknown identifier. Parsing error near (255):(line 4) In-Reply-To: A<20060629144724.89350.qmail@web55704.mail.re3.yahoo.com> Message-ID: Albert, On line 4, you have 'IMAGETYPE 255 255 255' This is causing the error. You should either comment this line out, or change it to 'IMAGECOLOR 255 255 255' David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Thursday, June 29, 2006 9:47 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] FW: [UMN_MAPSERVER-USERS] msLoadMap(): Unknown identifier. Parsing error near (255):(line 4) There is the my map file #This is our first mapfile NAME "First" SIZE 400 300 IMAGETYPE 255 255 255 IMAGETYPE JPEG SHAPEPATH "/home/mapdata/" EXTENT -125.00 20.00 -65.00 50.00 WEB TEMPLATE '/var/www/htdocs/first.html' IMAGEPATH '/var/www/htdocs/tmp' IMAGEURL '/tmp/' END LAYER NAME "US States" STATUS default TYPE line DATA "statesp020" LABELITEM "STATE" CLASS STYLE COLOR 0 0 0 END COLOR 0 0 0 SIZE SMALL END END END END and there is my html MapServer First Map
    Thanks, Albert "Fawcett, David" wrote: Albert, Please CC' the entire list on your responses. From your description, you have an error in your mapfile. I would suggest including the text of your mapfile in your response to the list. David. -----Original Message----- From: Albert Anderson [mailto:bart_doggers at yahoo.com] Sent: Thursday, June 29, 2006 9:13 AM To: Fawcett, David Subject: RE: [UMN_MAPSERVER-USERS] msLoadMap(): Unknown identifier. Parsing error near (255):(line 4) Hi, I did a wapperscript and put name="map" in the html where the input is. Now I am getting this error msLoadMap(): Unknown identifier. Parsing error near (255):(line 4) . Could you please help me. Thanks, Albert "Fawcett, David" wrote: Albert, You are calling the MapServer cgi program, but you are not telling it which map file to use for configuration. If you are calling the program with a get request (in a URL), it should look something like: http://my.site/cgi-bin/mapserv?map=/home/mydirectory/mymapfile.map You will likely set other variables in the URL also, like mode, layers, etc. If you are calling the MapServer cgi from a html form, you are missing a hidden html variable named map that, like the url variable above, would contain the path to your map file. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Thursday, June 29, 2006 8:18 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] load Map error Hi, I am getting this error loadMap(): Web application error. CGI variable "map" is not set. That is when I am clicking the submit button and it doesnt load up the map. Can anyone help me? Thanks, Albert ________________________________ Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1???/min. ________________________________ Yahoo! Music Unlimited - Access over 1 million songs. Try it free. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Thu Jun 29 07:59:17 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 29 Jun 2006 16:59:17 +0200 Subject: FW: [UMN_MAPSERVER-USERS] msLoadMap(): Unknown identifier. Parsing error near (255):(line 4) In-Reply-To: <20060629144724.89350.qmail@web55704.mail.re3.yahoo.com> Message-ID: You might have to replace IMAGETYPE 255 255 255 with IMAGECOLOR 255 255 255 Regards, Tamas 2006/6/29, Albert Anderson : > There is the my map file > #This is our first mapfile > NAME "First" > SIZE 400 300 > IMAGETYPE 255 255 255 > IMAGETYPE JPEG > SHAPEPATH "/home/mapdata/" > EXTENT -125.00 20.00 -65.00 50.00 > WEB > TEMPLATE '/var/www/htdocs/first.html' > IMAGEPATH '/var/www/htdocs/tmp' > IMAGEURL '/tmp/' > END > LAYER > NAME "US States" > STATUS default > TYPE line > DATA "statesp020" > LABELITEM "STATE" > CLASS > STYLE > COLOR 0 0 0 > END > COLOR 0 0 0 > SIZE SMALL > END > END > END > END > > and there is my html > > > MapServer First Map > >
    > value="/home/mapdata/first.map"> > value="/var/www/htdocs/tmp/"> > >
    > > > > > Thanks, > Albert > > > > > "Fawcett, David" wrote: > > Albert, > > Please CC' the entire list on your responses. > > From your description, you have an error in your mapfile. I would suggest > including the text of your mapfile in your response to the list. > > David. > > > -----Original Message----- > From: Albert Anderson [mailto:bart_doggers at yahoo.com] > Sent: Thursday, June 29, 2006 9:13 AM > To: Fawcett, David > Subject: RE: [UMN_MAPSERVER-USERS] msLoadMap(): Unknown identifier. Parsing > error near (255):(line 4) > > Hi, > > I did a wapperscript and put name="map" in the html where the input is. > Now I am getting this error msLoadMap(): Unknown identifier. Parsing error > near (255):(line 4) . Could you please help me. > > Thanks, > Albert > > "Fawcett, David" wrote: > > Albert, > > You are calling the MapServer cgi program, but you are not telling it which > map file to use for configuration. If you are calling the program with a > get request (in a URL), it should look something like: > > http://my.site/cgi-bin/mapserv?map=/home/mydirectory/mymapfile.map > > You will likely set other variables in the URL also, like mode, layers, etc. > > > If you are calling the MapServer cgi from a html form, you are missing a > hidden html variable named map that, like the url variable above, would > contain the path to your map file. > > David. > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Albert Anderson > Sent: Thursday, June 29, 2006 8:18 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] load Map error > > Hi, > > I am getting this error loadMap(): Web application error. CGI variable > "map" is not set. That is when I am clicking the submit button and it > doesnt load up the map. Can anyone help me? > > > > Thanks, > Albert > > ________________________________ > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates > starting at 1?/min. > > ________________________________ > Yahoo! Music Unlimited - Access over 1 million songs. Try it free. > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com From mikesaunt at GMAIL.COM Thu Jun 29 08:02:47 2006 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Thu, 29 Jun 2006 16:02:47 +0100 Subject: MapServer 4.8.3 and ArcSDE 8.3 Message-ID: Hi All Wondering if anyone can help. I have a client who is running ArcSDE 8.3 on Oracle and we want to connect MapServer 4.8.3 (via the pre compiled Windows binaries from MS4W and using the libmap for sde) to this instance of ArcSDE. We've downloaded the ArcSDE C API client library but won't be able to test until on site - was hoping someone may have had this backward version exepreince with ArcSDE Anyone aware of any issues? Many Thanks in advance Mike PS - I've been doing some testing here with MapServer over MapInfo MapXtreme.NET. MapServer wins hands down even reading MapInfo TAB! Well done to all involved. -------------- next part -------------- An HTML attachment was scrubbed... URL: From trondmm-mapserver at CRUSADERS.NO Thu Jun 29 08:10:38 2006 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Thu, 29 Jun 2006 17:10:38 +0200 Subject: Projection problems - Mixing maps with different geoids Message-ID: Hi. I'm having a bit of a problem. I'm using mapserver to draw shapefiles on top of output from a WMS-server. The maps from the remote WMS server uses an unstandard projection with these parameters: +proj=stere +lat_0=90 +lon_0=0 +lat_ts=60 +a=6371000 +b=6371000 +units=m +no_defs If I set up my WMS server to use this projection as well, and define all my shapefile layers to use their projection (which is UTM33), the data from the shapefiles is drawn quite a bit too far south (well, too close to equator, really). This seems to be because of the difference in geoids in the two projections. The cs2cs program demonstrates the offset, here for 60N, 10E: echo "10 60" \ | proj +init=epsg:32633 \ | cs2cs +init=epsg:32633 +to +proj=stere +lat_0=90 +lon_0=0 +lat_ts=60 +a=6371000 +b=6371000 +units=m +no_defs \ | invproj +proj=stere +lat_0=90 +lon_0=0 +lat_ts=60 +a=6371000 +b=6371000 +units=m +no_defs 10dE 59d49'59.074"N -8867.78 If I use invproj and proj, instead of cs2cs, everything works as expected: echo "10 60" \ | proj +init=epsg:32633 \ | invproj +init=epsg:32633 \ | proj +proj=stere +lat_0=90 +lon_0=0 +lat_ts=60 +a=6371000 +b=6371000 +units=m +no_defs \ | invproj +proj=stere +lat_0=90 +lon_0=0 +lat_ts=60 +a=6371000 +b=6371000 +units=m +no_defs 10dE 60dN I know this last example seems silly, but the point is that doing an inverse and forward projection on the coordinates gives a correct result, while doing cs2cs does not. Interestingly, the program shpproj, which is included with shapelib, is apparently doing an inverse and forward projection. So, converting my shapefiles with the command: shpproj infile.shp outfile.shp \ -in=epsg:32633 \ -out="+proj=stere +lat_0=90 +lon_0=0 +lat_ts=60 +a=6371000 +b=6371000 +units=m +no_defs" gives me a shapefile I can use. Converting the shapefiles is a workaround I can live with for a while, but I was wondering if it's possible to set up mapserver so that I can use the shapefiles directly. Not too important right now, but once I start fetching data from remote WFS-servers, it'll probably be a bigger issue. -- Trond Michelsen From e.witteveen at HAWARIT.COM Thu Jun 29 08:18:47 2006 From: e.witteveen at HAWARIT.COM (Eduard Witteveen) Date: Thu, 29 Jun 2006 17:18:47 +0200 Subject: Asynchrone clients? Message-ID: Hello, Does anyone know a asynchrone (opensource) web-clients that retrieve gisdata? I would like to use a client that keeps retrieving data from the area , but in which you can also click / pan / zoom in the meantime(with keeping already loaded vector data). If i would have to implement it i know it can be done by using the "google" way of retrieving square's of data. Is there also a way to make a streaming sollution with mapserver, or should i write my own server using GDAL directly..(fetch objects around a certain coordinate with ((distance to coordinate) * area) as order for which one to send first) Any thoughts? -- 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 mljacks2 at HOTMAIL.COM Thu Jun 29 08:22:37 2006 From: mljacks2 at HOTMAIL.COM (M.L. Jackson) Date: Thu, 29 Jun 2006 10:22:37 -0500 Subject: Invisible WMS layer??? Help please. In-Reply-To: <44A31155.5050505@refractions.net> Message-ID: I must have mistyped something or misunderstood. What service reports wms request urls? I only ran across the url which seemed to be rarely and randomly generated in Tomcat's output. >From: Brock Anderson >Reply-To: Brock Anderson >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] Invisible WMS layer??? Help please. >Date: Wed, 28 Jun 2006 16:31:33 -0700 > >Mapserver may be fairly silent about errors when it acts as a WMS client. >Most likely the request that Mapserver sends to the other WMS server is >failing somehow. I think you mentioned previously that you have direct >access to the other WMS service (which mapserver uses as the source for its >photo layer.) You can probably set that service up to report incoming WMS >request URLs, and you can use those URLs to track down the problem. > >Brock > >M.L. Jackson wrote: > >>My wms layer does not display and it does not produce an error. This is >>what my wms layer looks like: >> >>LAYER >>NAME "photo" >>STATUS DEFAULT >>TYPE RASTER >>MINSCALE 10000 >>#MAXSCALE 10000 >> >>CONNECTIONTYPE WMS >>CONNECTION "http://terraservice.net/OgcMap.ashx?" >> >>METADATA >>"wms_srs" "EPSG:4326" >>"wms_title" "Orthophoto" >>"wms_name" "DOQ" >>"wms_server_version" "1.1.1" >>"wms_format" "image/png" >>"wms_layers" "doq" >>"wms_group_title" "background" >>"wms_onlineresource" "http://terraservice.net/OgcMap.ashx?" >>"wms_latlonboundingbox" "-124 46 -110 52" >>#"wms_connectiontimeout" "120" >>END >>PROJECTION >>"init=epsg:4326" >>END >>DEBUG ON >>END >> >>I have debugging on and it has generated files for errors before. Whatever >>is going on now is not producing an error file though. The mapserver >>application comes up displaying the map as usual but no matter how far I >>zoom into the map there are no aerial shots (via the wms layer). Any and >>all help is appreciated. >> >>_________________________________________________________________ >>Don?t just search. Find. Check out the new MSN Search! >>http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar ? get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ From marcoscobena at GMAIL.COM Thu Jun 29 08:45:24 2006 From: marcoscobena at GMAIL.COM (=?UTF-8?Q?Marcos_Cobe=C3=B1a?=) Date: Thu, 29 Jun 2006 17:45:24 +0200 Subject: Asynchrone clients? In-Reply-To: <44A3EF57.8010403@HAWARIT.COM> Message-ID: Hi Eduard, Give a try to OpenLayers (http://openlayers.org/), just cool. :-) Regards, 2006/6/29, Eduard Witteveen : > Hello, > > Does anyone know a asynchrone (opensource) web-clients that retrieve > gisdata? > I would like to use a client that keeps retrieving data from the area , > but in which you can also click / pan / zoom in the meantime(with > keeping already loaded vector data). > > If i would have to implement it i know it can be done by using the > "google" way of retrieving square's of data. Is there also a way to make > a streaming sollution with mapserver, or should i write my own server > using GDAL directly..(fetch objects around a certain coordinate with > ((distance to coordinate) * area) as order for which one to send first) > > Any thoughts? > > -- > 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 > -- Marcos - http://www.youcannoteatbits.org From yu.gotou at GTEC-NI.COM Thu Jun 29 01:24:37 2006 From: yu.gotou at GTEC-NI.COM (GotouYutaka) Date: Thu, 29 Jun 2006 17:24:37 +0900 Subject: tile index on shpafile Message-ID: Hi everyone, I tried tileindex on shpefile. this mapfile works successfully on WinXP,Apache and Mapserver-4.6.1. but when I try this on Linux,Apache and MapServer-4.6.2, polygon is rendered too big. I tried to chang MapServer version to 4.8.3, retrun same result. How I do? ================================== LAYER name hoge tileindex hoge.shp tileitem LOCATION TYPE POLYGON STATUS on ==================================== ********************************** YuGo From banders at REFRACTIONS.NET Thu Jun 29 09:08:33 2006 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Thu, 29 Jun 2006 09:08:33 -0700 Subject: MapServer 4.8.3 and ArcSDE 8.3 In-Reply-To: <5a9686e80606290802v5108d955pfb37b6d5e5b9542c@mail.gmail.com> Message-ID: Mike, I use a slightly older version of Mapserver against ArcSDE 8.3 and ArcSDE 9. (I believe the ArcSDE 9.x C API works with 8.3 as well.) I'm fairly sure the latest MS4W will connect to ArcSDE 8.3. Brock Mike Saunt wrote: > Hi All > > Wondering if anyone can help. I have a client who is running ArcSDE > 8.3 on Oracle and we want to connect MapServer 4.8.3 (via the pre > compiled Windows binaries from MS4W and using the libmap for sde) to > this instance of ArcSDE. We've downloaded the ArcSDE C API client > library but won't be able to test until on site - was hoping someone > may have had this backward version exepreince with ArcSDE > > Anyone aware of any issues? > > Many Thanks in advance > Mike > > PS - I've been doing some testing here with MapServer over MapInfo > MapXtreme.NET. MapServer wins hands down even reading MapInfo TAB! > Well done to all involved. From listuser at HERZSYS.DE Thu Jun 29 08:42:39 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Thu, 29 Jun 2006 17:42:39 +0200 Subject: mapscript + inline features Message-ID: Hi all, i'm using java mapscript from ms4w and i try to query a layer with inline feature (no direct data source). I get the correct count of results from a querybyrect but i can't get the feature and it's values. This is because the resultCacheObj has an index of -1. So it is not possible to use the getFeature. The getFeature works for the inline features if i use a possible index like 0. Any hint / solution? Best regards Norbert ***************************************************************** ----------------- test.java ----------------- public class InlineFeatureTest { public static void main(String[] args) { URL mapURL = InlineFeatureTest.class.getResource("/test/test.map"); StringBuffer sb = new StringBuffer(mapURL.getFile()); sb.deleteCharAt(0); mapObj map = new mapObj(sb.toString()); layerObj layer = map.getLayerByName("inline"); if (layer == null) return; shapeObj shape = new shapeObj(MS_SHAPE_TYPE.MS_SHAPE_POINT.swigValue()); lineObj line = new lineObj(); boolean error = false; if (line.add(new pointObj(3500000, 5500000, 0)) == MS_RETURN_VALUE.MS_FAILURE.swigValue()) error = true; if (shape.add(line) == MS_RETURN_VALUE.MS_FAILURE.swigValue()) error = true; shape.setValue(0, "test1"); shape.setValue(1, "test2"); shape.setValue(2, "test3"); if (layer.addFeature(shape) == MS_RETURN_VALUE.MS_FAILURE.swigValue()) error = true; if (error) System.out.println("can't add point"); map.queryByRect(new rectObj(3400000, 5400000, 3600000, 5600000, 0)); int numRes = layer.getNumResults(); resultCacheObj infoResults = null; if (layer.open() == MS_RETURN_VALUE.MS_FAILURE.swigValue()) System.out.println("can't open layer"); System.out.println("num res: " + numRes); if (numRes > 0) { infoResults = layer.getResults(); for (int resNr = 0; resNr < numRes; resNr++){ resultCacheMemberObj resObj = infoResults.getResult(resNr); int shpIndex = resObj.getShapeindex(); System.out.println("shp " + resNr + ": " + shpIndex); if (shpIndex >= 0) { shapeObj tmpFeature = layer.getFeature(shpIndex, -1); System.out.println("num values = " + tmpFeature.getNumvalues()); } } } } } --------------------- test.map --------------------- MAP EXTENT 3565000 5630000 3570000 5680000 IMAGECOLOR 255 255 255 IMAGETYPE png SIZE 500 500 STATUS ON UNITS METERS NAME "MS" OUTPUTFORMAT NAME "PNG" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE "PC256" TRANSPARENT FALSE END SYMBOL NAME "circle" TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END PROJECTION "init=epsg:31467" END QUERYMAP COLOR 255 255 0 SIZE -1 -1 STATUS OFF STYLE HILITE END WEB IMAGEPATH "../temp/" IMAGEURL "./mapserver/temp/" END LAYER NAME "inline" PROJECTION "init=epsg:31467" END SIZEUNITS PIXELS STATUS DEFAULT TOLERANCEUNITS PIXELS UNITS METERS TYPE POINT TEMPLATE "dummy" CLASS METADATA END STYLE ANGLE 360 COLOR 255 0 0 SYMBOL "circle" SIZE 10 END END END END From cavallini at FAUNALIA.IT Thu Jun 29 09:13:48 2006 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Thu, 29 Jun 2006 18:13:48 +0200 Subject: [GRASS-user] ogr-grass In-Reply-To: <20060628194956.GB5098@localdomain> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 If I understand correctly, I do not think this is relevant. You're suggesting a Postgis connection, what we need is an ogr connection to postgresql data linked to a grass layer. Thanks anyway. pc Jachym Cepicky wrote: > Hallo > > is http://mapserver.gis.umn.edu/docs/reference/vector_data/postgis what > you are searching for? > > LAYER > NAME pg_test > TYPE POLYGON > CONNECTIONTYPE POSTGIS > CONNECTION "host=yourhostname dbname=yourdatabasename user=yourdbusername password=yourdbpassword port=yourpgport" > DATA "wkb_geometry FROM province" > CLASS > ... > END > END > > > J?chym - -- Paolo Cavallini email+jabber: cavallini at faunalia.it www.faunalia.it Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEo/w7/NedwLUzIr4RAlncAJ9o5CUjSYmh1B0RzlrWy9gSrovwKwCgquzF ewaJyXDdJyF6EUXlm71y+7I= =12oi -----END PGP SIGNATURE----- From crschmidt at CRSCHMIDT.NET Thu Jun 29 08:55:40 2006 From: crschmidt at CRSCHMIDT.NET (Christopher Schmidt) Date: Thu, 29 Jun 2006 11:55:40 -0400 Subject: Introducing OpenLayers v1.0 Message-ID: OpenLayers is an BSD-licensed pure JavaScript API for building map applications on the Web. OpenLayers offer offers the ability to display a number of different types of data in a configurable mapping interface. On behalf of the OpenLayers development team, I have the honor and pleasure of presenting version 1.0 of OpenLayers. 1.0 Release API URL: http://openlayers.org/api/1.0/OpenLayers.js Latest Stable API URL: http://openlayers.org/api/OpenLayers.js 1.0 Release Tarball: http://openlayers.org/download/OpenLayers-1.0.tar.gz You can see some example OpenLayers applications here: http://openlayers.org/gallery/ The 1.0 release includes support for display of: * Markers * Popups * Tiled WMS Images * WFS Results (as points) * Textual (tab-seperated) data Development continues at a fast pace. Currently, the development branch of OpenLayers supports: * ka-Map data * WorldWind data * Untiled WMS Requests * GeoRSS data Our next release will support drawing and reprojection of vector data on to: * Google Maps * Yahoo Maps * Microsoft Virtual Earth One of the many goals of OpenLayers is to allow users to use one API, and one look and feel, but display data from any source. To that end, we have created a system which allows for any data provider to create their own layers to be displayed alongside any others in OpenLayers. The API is inspired by the Google Maps API, designed to make the simple things easy, and the difficult things possible. OpenLayers makes an excellent, easy to set up compliment to Mapserver WMS servers, allowing one to quickly and easily browse a new map that you may have set up, changing only the 'map' and 'layers' parameters of your WMS request. Additionally, the next release of OpenLayers, with ka-Map support, will allow users who have previously needed a more complex setup to get started with tiled interfaces to their mapfiles more quickly and easily. Development of OpenLayers is currently funded in part by MetaCarta: http://www.metacarta.com/ Please give OpenLayers a whirl and let us know what you think! http://openlayers.org/ -- Christopher Schmidt Web Developer From marcoscobena at GMAIL.COM Thu Jun 29 09:44:57 2006 From: marcoscobena at GMAIL.COM (=?UTF-8?Q?Marcos_Cobe=C3=B1a?=) Date: Thu, 29 Jun 2006 18:44:57 +0200 Subject: Introducing OpenLayers v1.0 In-Reply-To: <20060629155540.GF11230@crschmidt.net> Message-ID: Really, really, really good job! :-) Keep on that way! Thanks. Regards, 2006/6/29, Christopher Schmidt : > OpenLayers is an BSD-licensed pure JavaScript API for building map > applications on the Web. OpenLayers offer offers the ability to > display a number of different types of data in a configurable mapping > interface. > > On behalf of the OpenLayers development team, I have the honor and > pleasure of presenting version 1.0 of OpenLayers. > > 1.0 Release API URL: http://openlayers.org/api/1.0/OpenLayers.js > Latest Stable API URL: http://openlayers.org/api/OpenLayers.js > 1.0 Release Tarball: http://openlayers.org/download/OpenLayers-1.0.tar.gz > > You can see some example OpenLayers applications here: > > http://openlayers.org/gallery/ > > The 1.0 release includes support for display of: > > * Markers > * Popups > * Tiled WMS Images > * WFS Results (as points) > * Textual (tab-seperated) data > > Development continues at a fast pace. Currently, the development > branch of OpenLayers supports: > > * ka-Map data > * WorldWind data > * Untiled WMS Requests > * GeoRSS data > > Our next release will support drawing and reprojection of vector data on > to: > > * Google Maps > * Yahoo Maps > * Microsoft Virtual Earth > > One of the many goals of OpenLayers is to allow users to use one API, > and one look and feel, but display data from any source. To that end, we > have created a system which allows for any data provider to create their > own layers to be displayed alongside any others in OpenLayers. The API > is inspired by the Google Maps API, designed to make the simple things > easy, and the difficult things possible. > > OpenLayers makes an excellent, easy to set up compliment to Mapserver > WMS servers, allowing one to quickly and easily browse a new map that > you may have set up, changing only the 'map' and 'layers' parameters of > your WMS request. Additionally, the next release of OpenLayers, with > ka-Map support, will allow users who have previously needed a more > complex setup to get started with tiled interfaces to their mapfiles > more quickly and easily. > > Development of OpenLayers is currently funded in part by MetaCarta: > > http://www.metacarta.com/ > > Please give OpenLayers a whirl and let us know what you think! > > http://openlayers.org/ > > -- > Christopher Schmidt > Web Developer > -- Marcos - http://www.youcannoteatbits.org From listuser at HERZSYS.DE Thu Jun 29 08:53:08 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Thu, 29 Jun 2006 17:53:08 +0200 Subject: MapServer 4.8.3 and ArcSDE 8.3 In-Reply-To: <5a9686e80606290802v5108d955pfb37b6d5e5b9542c@mail.gmail.com> Message-ID: Mike Saunt wrote: > Hi All > > Wondering if anyone can help. I have a client who is running ArcSDE > 8.3 on > Oracle and we want to connect MapServer 4.8.3 (via the pre compiled > Windows > binaries from MS4W and using the libmap for sde) to this instance of > ArcSDE. We've downloaded the ArcSDE C API client library but won't be > able > to test until on site - was hoping someone may have had this backward > version exepreince with ArcSDE > > Anyone aware of any issues? > > Many Thanks in advance > Mike > > PS - I've been doing some testing here with MapServer over MapInfo > MapXtreme.NET. MapServer wins hands down even reading MapInfo TAB! > Well > done to all involved. > Hi, i had to use the ArcSDE client 9.0 under SUSE SLES 9 to connect to an ArcSDE 8.2 on informix. This worked. I'm not sure if this helps in your case but my hint is to use the client in the version of which the libs in ms4w are compiled against to avoid conflicts. The newer client should connect and read from an older SDE. Regards Norbert From joe at OTSYS.COM Thu Jun 29 11:14:18 2006 From: joe at OTSYS.COM (Joseph Bussell) Date: Thu, 29 Jun 2006 11:14:18 -0700 Subject: PERL interface trouble Message-ID: Greetings Listers, It has been a while since I deployed a new Mapserver application. I have been leaning on old source on an old box to get the work done. I have been given a new server to set up for our Air Force project and have had some issues with getting my code to work. First of all I am using Mapscript ala PERL. I recognize that the PERL interface has not been updated due to a lack of user interest, but I am still partial to using it if it can still be done (mostly since I will not have to rewrite my routing path functionality). My problem is getting the actual mapObj to construct from my mapfile. I have not been able to get any debug information our by checking /tmp/mserrors, which used to work nicely in such cases. All I get is an undefined reference. My code for construction is simple: my $map = new mapscript::mapObj( $mapfile ) or carp "Could not create mapscript object from mapfile: $mapfile"; in my httpd.conf I define MS_ERRORFILE /tmp/mserrors.txt My mapfile exists and is very simple. I am running: CentOS release 4.3 AMD64, dual core machine Apache/2.0.52 mapserver-4.8.3.tar.gz perl, v5.8.5 built for x86_64-linux-thread-multi Thank you for your time. Joe Bussell On Time Systems From mljacks2 at HOTMAIL.COM Thu Jun 29 12:00:43 2006 From: mljacks2 at HOTMAIL.COM (M.L. Jackson) Date: Thu, 29 Jun 2006 14:00:43 -0500 Subject: Map Requests from WMS Message-ID: I am attempting to set up a wms client. Does anyone know how http map requests are actually made through the remote map servers? I have reason to believe that the bounding box in my wms request is being translated into hexadecimal. The following was output generated by my Tomcat server after I stopped it: HTTP: Starting to prepare HTTP requests. HTTP request: id=2, http://terraservice.net/OgcMap.ashx?LAYERS=DOQ&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fpng&STYLES=&HEIGHT=600&VERSION=1.1.1&SRS=EPSG:4326&WIDTH=800&BBOX=%2D178%2E217598362366%2C3%2E44738582890752%2C%2D66%2E9692710360024%2C86%2E8836313236801&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage HTTP: Before download loop msHTTPWriteFct(id=2, 396 bytes) HTTP: After download loop msHTTPExecuteRequests() timing summary per layer (connect_time + time_to_first_packet + download_time = total_time in seconds) Layer 2: 0.062 + 0.703 + 0.062 = 0.827s msDrawRasterLayerLow(photo): entering. I've only seen the above message on a few occasions in Tomcat's output screen. If you need any info about my map file, then let me know. Thanks. _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From rockwell_001 at YAHOO.COM Thu Jun 29 12:21:24 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Thu, 29 Jun 2006 12:21:24 -0700 Subject: Mapserver 4.8.3 error Message-ID: Hello list, i was using mapserver 4.6.2 previously and have recently compiled mapserver 4.8.3 and also compiled phpmapscript to work with it. I then copied the phpmapscript.dll to the php extension folder. When i try to run the file with a simple mapfile i get the "php-cgi.exe application error - memory could not be read error". I guess i am getting this error when i try to draw the map using the mapscript draw function. I am not sure why am i getting this error, but is the configuration different for mapserver 4.8.3 than mapserver 4.6.2. Thanks for your time ... kris --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs.Try it free. -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Thu Jun 29 12:56:06 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 29 Jun 2006 15:56:06 -0400 Subject: PERL interface trouble In-Reply-To: <44A4187A.3020709@otsys.com> Message-ID: Hi Joe, A couple of things. 1) what version does you existing code work on? 2) There are probably two areas that you will need to change a) the mapfile b) the perl I would start with using shp2img to make sure you mapfile can load. It will at least print errors that you can read. shp2img -m /path/to/file.map -o junk.png ... Once you can get an image then you will probably have more luck tracking down the various mapscript changes. These will depend on what version of mapscript your code was written for. -Steve W. Joseph Bussell wrote: > Greetings Listers, > It has been a while since I deployed a new Mapserver application. I > have been leaning on old source on an old box to get the work done. I > have been given a new server to set up for our Air Force project and > have had some issues with getting my code to work. First of all I am > using Mapscript ala PERL. I recognize that the PERL interface has not > been updated due to a lack of user interest, but I am still partial to > using it if it can still be done (mostly since I will not have to > rewrite my routing path functionality). > > My problem is getting the actual mapObj to construct from my mapfile. > I have not been able to get any debug information our by checking > /tmp/mserrors, which used to work nicely in such cases. All I get is an > undefined reference. My code for construction is simple: > > my $map = new mapscript::mapObj( $mapfile ) or carp "Could not create > mapscript object from mapfile: $mapfile"; > > in my httpd.conf I define > MS_ERRORFILE /tmp/mserrors.txt > > My mapfile exists and is very simple. > I am running: > CentOS release 4.3 > AMD64, dual core machine > Apache/2.0.52 > mapserver-4.8.3.tar.gz > perl, v5.8.5 built for x86_64-linux-thread-multi > > Thank you for your time. > > Joe Bussell > On Time Systems > From David.Fawcett at STATE.MN.US Thu Jun 29 13:04:24 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 29 Jun 2006 15:04:24 -0500 Subject: Map Requests from WMS In-Reply-To: A Message-ID: Your bbox has not been hex encoded. It has been URL encoded to provide a valid URL. &BBOX=%2D178%2E217598362366%2C3%2E44738582890752%2C%2D66%2E9692710360024 %2C86%2E8836313236801 Interprets to: &BBOX=-178.217598362366,3.44738582890752,-66.9692710360024,86.8836313236 801 David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of M.L. Jackson Sent: Thursday, June 29, 2006 2:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Map Requests from WMS I am attempting to set up a wms client. Does anyone know how http map requests are actually made through the remote map servers? I have reason to believe that the bounding box in my wms request is being translated into hexadecimal. The following was output generated by my Tomcat server after I stopped it: HTTP: Starting to prepare HTTP requests. HTTP request: id=2, http://terraservice.net/OgcMap.ashx?LAYERS=DOQ&REQUEST=GetMap&SERVICE=WM S&FORMAT=image%2Fpng&STYLES=&HEIGHT=600&VERSION=1.1.1&SRS=EPSG:4326&WIDT H=800&BBOX=%2D178%2E217598362366%2C3%2E44738582890752%2C%2D66%2E96927103 60024%2C86%2E8836313236801&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.o gc.se_inimage HTTP: Before download loop msHTTPWriteFct(id=2, 396 bytes) HTTP: After download loop msHTTPExecuteRequests() timing summary per layer (connect_time + time_to_first_packet + download_time = total_time in seconds) Layer 2: 0.062 + 0.703 + 0.062 = 0.827s msDrawRasterLayerLow(photo): entering. I've only seen the above message on a few occasions in Tomcat's output screen. If you need any info about my map file, then let me know. Thanks. _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From joe at OTSYS.COM Thu Jun 29 13:32:50 2006 From: joe at OTSYS.COM (Joseph Bussell) Date: Thu, 29 Jun 2006 13:32:50 -0700 Subject: PERL interface trouble In-Reply-To: <44A43056.90501@swoodbridge.com> Message-ID: I have verified that shp2img constructs an image that derives form my mapfile. This part looks good. My mapscript code was written for 4.4.2, but the one function that is failing does not appear to have significantly changed. I am not getting past construction of the basic mapObj from the mapfile. Specifically, the call to : my $map = new mapscript::mapObj( $mapfile ) or carp "Could not create mapscript object from mapfile: $mapfile"; produces the error message. I also went into mapscript.pm and added debug code there to be sure I was using the correct module. The low level call is producing an unusable result. Joe Bussell On Time Systems Stephen Woodbridge wrote: > Hi Joe, > > A couple of things. > > 1) what version does you existing code work on? > 2) There are probably two areas that you will need to change > a) the mapfile > b) the perl > > I would start with using shp2img to make sure you mapfile can load. It > will at least print errors that you can read. > > shp2img -m /path/to/file.map -o junk.png ... > > Once you can get an image then you will probably have more luck > tracking down the various mapscript changes. These will depend on what > version of mapscript your code was written for. > > -Steve W. > > Joseph Bussell wrote: > >> Greetings Listers, >> It has been a while since I deployed a new Mapserver application. >> I have been leaning on old source on an old box to get the work >> done. I have been given a new server to set up for our Air Force >> project and have had some issues with getting my code to work. First >> of all I am using Mapscript ala PERL. I recognize that the PERL >> interface has not been updated due to a lack of user interest, but I >> am still partial to using it if it can still be done (mostly since I >> will not have to rewrite my routing path functionality). >> >> My problem is getting the actual mapObj to construct from my >> mapfile. I have not been able to get any debug information our by >> checking /tmp/mserrors, which used to work nicely in such cases. All >> I get is an undefined reference. My code for construction is simple: >> >> my $map = new mapscript::mapObj( $mapfile ) or carp "Could not >> create mapscript object from mapfile: $mapfile"; >> >> in my httpd.conf I define >> MS_ERRORFILE /tmp/mserrors.txt >> >> My mapfile exists and is very simple. >> I am running: >> CentOS release 4.3 >> AMD64, dual core machine >> Apache/2.0.52 >> mapserver-4.8.3.tar.gz >> perl, v5.8.5 built for x86_64-linux-thread-multi >> >> Thank you for your time. >> >> Joe Bussell >> On Time Systems >> > > From mljacks2 at HOTMAIL.COM Thu Jun 29 13:32:56 2006 From: mljacks2 at HOTMAIL.COM (M.L. Jackson) Date: Thu, 29 Jun 2006 15:32:56 -0500 Subject: Map Requests from WMS In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB0781@s-sp22.pca.state.mn.us> Message-ID: So there is absolutely nothing wrong with the url, correct? Other comments are welcome as well. >From: "Fawcett, David" >To: "M.L. Jackson" , > >Subject: RE: [UMN_MAPSERVER-USERS] Map Requests from WMS >Date: Thu, 29 Jun 2006 15:04:24 -0500 > >Your bbox has not been hex encoded. It has been URL encoded to provide >a valid URL. > >&BBOX=%2D178%2E217598362366%2C3%2E44738582890752%2C%2D66%2E9692710360024 >%2C86%2E8836313236801 > >Interprets to: > >&BBOX=-178.217598362366,3.44738582890752,-66.9692710360024,86.8836313236 >801 > >David. > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of M.L. Jackson >Sent: Thursday, June 29, 2006 2:01 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] Map Requests from WMS > > >I am attempting to set up a wms client. Does anyone know how http map >requests are actually made through the remote map servers? I have >reason to >believe that the bounding box in my wms request is being translated into > >hexadecimal. The following was output generated by my Tomcat server >after I >stopped it: > >HTTP: Starting to prepare HTTP requests. > >HTTP request: id=2, >http://terraservice.net/OgcMap.ashx?LAYERS=DOQ&REQUEST=GetMap&SERVICE=WM >S&FORMAT=image%2Fpng&STYLES=&HEIGHT=600&VERSION=1.1.1&SRS=EPSG:4326&WIDT >H=800&BBOX=%2D178%2E217598362366%2C3%2E44738582890752%2C%2D66%2E96927103 >60024%2C86%2E8836313236801&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.o >gc.se_inimage > >HTTP: Before download loop >msHTTPWriteFct(id=2, 396 bytes) >HTTP: After download loop >msHTTPExecuteRequests() timing summary per layer (connect_time + >time_to_first_packet + download_time = total_time in seconds) Layer 2: >0.062 + 0.703 + 0.062 = 0.827s >msDrawRasterLayerLow(photo): entering. > > > >I've only seen the above message on a few occasions in Tomcat's output >screen. If you need any info about my map file, then let me know. >Thanks. > >_________________________________________________________________ >Don't just search. Find. Check out the new MSN Search! >http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From madprof at GMX.CH Thu Jun 29 23:22:31 2006 From: madprof at GMX.CH (Daniel Goetz) Date: Fri, 30 Jun 2006 08:22:31 +0200 Subject: Test Suite Message-ID: Hi again, thank you David for your explanation and your help. But perhaps there is anyone out there that could check whether there is a mistake in the documentation/exemplification (mapfile and "URL query template"-Link) of the "Simple Point Query (mode=query), with pan/zoom" example of the "Mapserver Test Suite" like decribed in my email before. If there isn't any mistake in the example I would need somebody who could give me some advise how to manage to presever selected features selected (highlighted) even if I do some further zooming and pannig after the selection-procedure. Many thanks for your further help. regards Daniel -------- Original-Nachricht -------- Datum: Thu, 29 Jun 2006 08:21:03 -0500 Von: "Fawcett, David" An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] Test Suite > Daniel, > > To answer your first two questions, status on makes the layers available, > but does not display them. With status on, you still need to explicitly > add the layer names to your URL or form request. If you set the layers to > status default, they will always display. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Daniel Goetz > Sent: Thursday, June 29, 2006 7:33 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Test Suite > > > Hi, > > I am trying to learn from the examples given on the "Mapserver Test Suite" > site. > > http://maps.dnr.state.mn.us/mapserver_demos/tests46/ > > But I have some problems with it. The first is that mapserver sends back > an empty (white) image when I give the following command in my browser (I > have the ms4w_Vers 1.5.3 package installed): > > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apache/htdocs/oracle/lmaa.map&program=/cgi-bin/mapserv.exe/htmlroot=/oracle/maqp_web_imagepath=/ms4w/apache/htdocs/tmp/&map_web_imageurl=/tmp/ > > This command should be the exact copy of the command given in the example > "Simple Point Query (mode=query), with pan/zoom" when starting the example > from the "test suite start page". I have just adjusted the parameters to my > environmet. the original command copied from the example is: > > http://maps.dnr.state.mn.us/cgi-bin/mapserv46?map=/usr/local/www/docs_maps/mapserver_demos/tests46/query_persistent/test.map&program=/cgi-bin/mapserv46&htmlroot=/mapserver_demos/tests46&map_web_imagepath=/usr/local/www/docs_maps/tmp/&map_web_imageurl=/tmp/ > > Not until I add "&layers=all&" I get the desired map. What went wrong? Why > do I need to add the "layers=all" phrase and in the example it is not > necessary? The STATUS in my MAP-Object and in the LAYER-objects is "ON". > > > > Secondy, I only get the "pan and zoom" template work, when I add the > following to the "form" tag in the html code: > > > > It is the same thing that I have just described. I need to have the > "layer=all" statement in the commandline. But why do I have to and in the example > it's not necessary? > > > Thirdly, what exactly is my "htmlroot" directory? Is it the "htdocs" > within the "apache" directory? Or is it the directory where my .map-file is > stored? Or any other? Does anybody have an idea? > > > Fourthly, in the .map-file of the "Simple Point Query (mode=query), with > pan/zoom" example the STYLE value in the QUERYMAP-object is "select". In my > opinion it must be "hilite" to get the result shown in the map. Am I right? > Might it be, that the link "map file" points to a .map-file that doesn't > belong to the "Simple Point Query (mode=query), with pan/zoom" example? > > Moreover the TEMPLATE paramters in the LAYER-objects of that .map-file > point to a template called "quad.html". But the link "URL query template" that > is provided on the "starting page" of the "Simple Point Query > (mode=query), with pan/zoom" example points to a file called "selected.html". Is this a > mistake? Can anybody please enlighten me? > > The next thing I have noticed is that the link "URL query template" could > not be opened. I get a error notice (ERROR 404): file not found on this > server. What went wrong? I would urgently need this source code because > otherwise I can not understand how to preseve a selected feature (colored) even > if I do some further zomming and panning. Can anybody help me? Perhaps > somebody could explain me how I can preserve a selected feature colored? Thank > you so much. > > > Last thing is, that the source code of the linked "template file" differs > from the source code of the "real" template. Namely the following tag is > missing in the linkes "template file" source code: > > > > Moreover I do not understand what this line stands for. What means > "[county]" and why and how can mapserver interpret this expression. Where does the > required information come from? > > O.K. that should be enough for the moment. Perhaps this were too much > questions but if I can not answer these question I am not able to rebuild the > "Simple Point Query (mode=query), with pan/zoom" example. And I want to be > able to perserve selected (colored) features even if I do some zomming and > panning. > > I want to thank you for your time, your ideas, your help, endeavors and > your indulgence. Many thanks. > > > regards > > Daniel > -- > > > Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! > "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From mikesaunt at GMAIL.COM Fri Jun 30 00:15:55 2006 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Fri, 30 Jun 2006 08:15:55 +0100 Subject: MapServer 4.8.3 and ArcSDE 8.3 In-Reply-To: <44A3FB01.6020205@refractions.net> Message-ID: Many thanks Brock and Norbert I will check with the client re what API version they have (they have ArcGIS 9.1) - I am presuming that the C API Client DLL's are supplied as standard by ESRI UK. I'll keep you all in the loop. Cheers Mike On 29/06/06, Brock Anderson wrote: > > Mike, > > I use a slightly older version of Mapserver against ArcSDE 8.3 and > ArcSDE 9. (I believe the ArcSDE 9.x C API works with 8.3 as well.) I'm > fairly sure the latest MS4W will connect to ArcSDE 8.3. > > Brock > > Mike Saunt wrote: > > > Hi All > > > > Wondering if anyone can help. I have a client who is running ArcSDE > > 8.3 on Oracle and we want to connect MapServer 4.8.3 (via the pre > > compiled Windows binaries from MS4W and using the libmap for sde) to > > this instance of ArcSDE. We've downloaded the ArcSDE C API client > > library but won't be able to test until on site - was hoping someone > > may have had this backward version exepreince with ArcSDE > > > > Anyone aware of any issues? > > > > Many Thanks in advance > > Mike > > > > PS - I've been doing some testing here with MapServer over MapInfo > > MapXtreme.NET. MapServer wins hands down even reading MapInfo TAB! > > Well done to all involved. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aiandolo at GRUPPOAS.IT Fri Jun 30 01:00:57 2006 From: aiandolo at GRUPPOAS.IT (Antonio Iandolo) Date: Fri, 30 Jun 2006 10:00:57 +0200 Subject: Mapserver binaries for Oracle10g Message-ID: Hi all, I'd like to set up an environment to use the native support for Oracle10g (not OGR) with MapServer I've downloaded MS4W 1.5.3, as stated on http://maptools.org/ms4w/index.phtml?page=downloads.html ("Note for Oracle users: Until bug#1499 is fixed, for Oracle connections you must use MS4W 1.5.3"), and so I have: MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPO RTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPO RTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SH APEFILE DEBUG=MSDEBUG 1) What am I missing to get the INPUT=ORACLESPATIAL with Mapserver? 2) How come mapserv.exe is 32Kb, while it was about 3.120Kb before??? 3) Does anybody have a link to get windows binaries for MapServer 4.8.3 built with Oracle support? Thanks in advance, Antonio From bartvde at XS4ALL.NL Fri Jun 30 01:14:01 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 30 Jun 2006 10:14:01 +0200 Subject: Mapserver binaries for Oracle10g In-Reply-To: <00d901c69c1b$51c76570$5d00a8c0@aiandolo> Message-ID: Mapserv.exe is small since it depends on libmap.dll now. I.e. most of the application code is now in a dll and not in the executable itself. How to enable Oracle is explained in the MS4W readme file, excerpt pasted here: Steps to Enable Oracle 10g Support in MS4W ****************************************** 1. Make sure you have Oracle 10g client software installed on your machine (the same machine that you are running MS4W on). 2. Download libmap.dll for Oracle 10g from http://hobu.stat.iastate.edu/mapserver/build_output/4_8_3 3. Replace the existing libmap.dll in /ms4w/Apache/cgi-bin/ with the downloaded one. 4. Move the ogr_OCI.dll plugin file up one level from /ms4w/gdalplugins/ignored/ into /ms4w/gdalplugins/ 5. Restart Apache to be safe. 6. For mapfile configuration see http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto Best regards, Bart Antonio Iandolo wrote: >Hi all, >I'd like to set up an environment to use the native support for >Oracle10g (not OGR) with MapServer > >I've downloaded MS4W 1.5.3, as stated on >http://maptools.org/ms4w/index.phtml?page=downloads.html ("Note for >Oracle users: Until bug#1499 is fixed, for Oracle connections you must >use MS4W 1.5.3"), and so I have: > >MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >OUTPUT=PDF > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE >SUPPORTS=WMS_SERVER SUPPO >RTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT >SUPPORTS=WCS_SERVER SUPPO >RTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL >INPUT=SH >APEFILE DEBUG=MSDEBUG > >1) What am I missing to get the INPUT=ORACLESPATIAL with Mapserver? > >2) How come mapserv.exe is 32Kb, while it was about 3.120Kb before??? > >3) Does anybody have a link to get windows binaries for MapServer 4.8.3 >built with Oracle support? > >Thanks in advance, >Antonio > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From aiandolo at GRUPPOAS.IT Fri Jun 30 01:10:55 2006 From: aiandolo at GRUPPOAS.IT (Antonio Iandolo) Date: Fri, 30 Jun 2006 10:10:55 +0200 Subject: R: [UMN_MAPSERVER-USERS] Mapserver binaries for Oracle10g In-Reply-To: <00d901c69c1b$51c76570$5d00a8c0@aiandolo> Message-ID: Ops... I'm really sorry...I forgot to copy libmap.dll from the "ignored" folder to the cgi-bin Now it works... (...INPUT=ORACLESPATIAL) Anyway I still don't know why now mapserv.exe is 32Kb, while it was about 3.120Kb before.... Greetings > -----Messaggio originale----- > Da: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Per conto di Antonio Iandolo > Inviato: venerd? 30 giugno 2006 10.01 > A: MAPSERVER-USERS at LISTS.UMN.EDU > Oggetto: [UMN_MAPSERVER-USERS] Mapserver binaries for Oracle10g > > > Hi all, > I'd like to set up an environment to use the native support > for Oracle10g (not OGR) with MapServer > > I've downloaded MS4W 1.5.3, as stated on > http://maptools.org/ms4w/index.phtml?> page=downloads.html > ("Note for Oracle users: Until bug#1499 > is fixed, for Oracle connections you must use MS4W 1.5.3"), > and so I have: > > MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPO RTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > SUPPO RTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SH APEFILE DEBUG=MSDEBUG > > 1) What am I missing to get the INPUT=ORACLESPATIAL with Mapserver? > > 2) How come mapserv.exe is 32Kb, while it was about 3.120Kb before??? > > 3) Does anybody have a link to get windows binaries for > MapServer 4.8.3 built with Oracle support? > > Thanks in advance, > Antonio > From Jukka.Rahkonen at MMMTIKE.FI Fri Jun 30 01:18:59 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Fri, 30 Jun 2006 11:18:59 +0300 Subject: Mapserver binaries for Oracle10g Message-ID: Hi, Read the installation readme included in the MS4W zip. There you should find instructions for substituting one .dll and moving another to different directory. Regards, -Jukka Rahkonen- -----Original Message----- From: UMN MapServer Users List on behalf of Antonio Iandolo Sent: Fri 30.6.2006 11:00 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapserver binaries for Oracle10g Hi all, I'd like to set up an environment to use the native support for Oracle10g (not OGR) with MapServer I've downloaded MS4W 1.5.3, as stated on http://maptools.org/ms4w/index.phtml?page=downloads.html ("Note for Oracle users: Until bug#1499 is fixed, for Oracle connections you must use MS4W 1.5.3"), and so I have: MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPO RTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPO RTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SH APEFILE DEBUG=MSDEBUG 1) What am I missing to get the INPUT=ORACLESPATIAL with Mapserver? 2) How come mapserv.exe is 32Kb, while it was about 3.120Kb before??? 3) Does anybody have a link to get windows binaries for MapServer 4.8.3 built with Oracle support? Thanks in advance, Antonio From cavallini at FAUNALIA.IT Fri Jun 30 01:24:14 2006 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Fri, 30 Jun 2006 10:24:14 +0200 Subject: [GRASS-user] ogr-grass In-Reply-To: <20060629085756.7260ee15@butan.gdf-hannover.de> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Stephen. In fact, www-data accesses the db; it does not seem able to use the .grasslogin6. Anybody has a hint? Many thanks. pc Stephan Holl wrote: > Hello Paolo, > > you are going to access GRASS-data with postgressql-stored attributes > through mapserver? > Perhaps you need to do db.login as www-data first to create the needed > dot-files?! > > Just another thought: > Does the user www-data have rights to access to postgresql at all? Did > you try with psql -U www-data ? Does it work? > > Hope this helps > > Stephan > > - -- Paolo Cavallini email+jabber: cavallini at faunalia.it www.faunalia.it Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEpN+u/NedwLUzIr4RAtWgAJ93NZOqsw8kWaCPuVbe0bMez3r6DACgrN3Z m1pP5dDW3Ksfxx18RZ0uh2Y= =DBoV -----END PGP SIGNATURE----- From e.witteveen at HAWARIT.COM Fri Jun 30 01:51:00 2006 From: e.witteveen at HAWARIT.COM (Eduard Witteveen) Date: Fri, 30 Jun 2006 10:51:00 +0200 Subject: Asynchrone clients? (continues vectordata retrieval / use gdal directly?) In-Reply-To: <67c29c7c0606290845h12c51c01ya001d9de40429b53@mail.gmail.com> Message-ID: Marcos Cobe?a schreef: >> Does anyone know a asynchrone (opensource) web-clients that retrieve >> gisdata? >> I would like to use a client that keeps retrieving data from the area, >> but in which you can also click / pan / zoom in the meantime(with >> keeping already loaded vector data). > Give a try to OpenLayers (http://openlayers.org/), just cool. :-) Thank you, this openlayers viewer really looks great. However, i want to have the viewer running on vector data. Currently we have a prototype-flashviewer(based upon the flash output of mapserver), but due to the amount of data in the viewer, the rendering becomes really slow (the conversion movie --> memory takes a lot of time) >> If i would have to implement it i know it can be done by using the >> "google" way of retrieving square's of data. Is there also a way to make >> a streaming sollution with mapserver, or should i write my own server >> using GDAL directly..(fetch objects around a certain coordinate with >> ((distance to coordinate) * area) as order for which one to send first) Maybe i should ask this question at the GDAL list? -- 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 holl at GDF-HANNOVER.DE Fri Jun 30 03:54:36 2006 From: holl at GDF-HANNOVER.DE (Stephan Holl) Date: Fri, 30 Jun 2006 12:54:36 +0200 Subject: [GRASS-user] ogr-grass In-Reply-To: <44A4DFAE.6080106@faunalia.it> Message-ID: Hello Paolo, On Fri, 30 Jun 2006 10:24:14 +0200 Paolo Cavallini wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Stephen. > In fact, www-data accesses the db; it does not seem able to use the > .grasslogin6. > Anybody has a hint? > Many thanks. > pc have you set the HOME variable for user www-data using apaches SetEnv-stuff in apache.conf? Perhaps this might help? Best Stephan -- GDF Hannover - Solutions for spatial data analysis and remote sensing Hannover Office - Mengendamm 16d - D-30177 Hannover Internet: www.gdf-hannover.de - Email: holl at gdf-hannover.de Phone : ++49-(0)511.39088507 - Fax: ++49-(0)511.39088508 From mljacks2 at HOTMAIL.COM Fri Jun 30 06:03:03 2006 From: mljacks2 at HOTMAIL.COM (M.L. Jackson) Date: Fri, 30 Jun 2006 08:03:03 -0500 Subject: AW: [UMN_MAPSERVER-USERS] Map Requests from WMS In-Reply-To: Message-ID: Thanks for both of your replies. They have been very helpful. With the extents for North America (excluding Alaska), everything works fine. I'm assuming that I should find another wms server if I want to use the original extents which include Alaska and Hawaii. Is this correct? >From: "Arnd Wippermann" >To: "'M.L. Jackson'" >Subject: AW: [UMN_MAPSERVER-USERS] Map Requests from WMS >Date: Thu, 29 Jun 2006 23:53:35 +0200 > >Hello, > >It's not hex, but escaped. Use this as Url and you see the text unescaped: >javascript:unescape("http://terraservice.net/OgcMap.ashx?LAYERS=DOQ&REQUEST= >GetMap&SERVICE=WMS&FORMAT=image%2Fpng&STYLES=&HEIGHT=600&VERSION=1.1.1&SRS=E >PSG:4326&WIDTH=800&BBOX=%2D178%2E217598362366%2C3%2E44738582890752%2C%2D66%2 >E9692710360024%2C86%2E8836313236801&TRANSPARENT=TRUE&EXCEPTIONS=application/ >vnd.ogc.se_inimage") > >It's ok. But the extents are not correct. Therefor the server sends an >error >message > >(Service Exception Report > >Found 3 errors > >Invalid Lon-Lat coordinates, must specify at least one (lon,lat) pair >correctly; Longitude must be between -170 and -60 Latitude must be between >15 and 75 >DOQ Target Resolution '0' cannot be less than 1 meters per pixel >Did not find a layer to process) > >, which Mapserver can't understand and this leads to the Mapserver error >message. > >I think, the WMS http://terraservice.net/OgcMap.ashx is not up to date. > >Arnd Wippermann >http://gis.ibbeck.de/pinguinale/ >mailto:pinguinale at ibbeck.de > > >-----Urspr?ngliche Nachricht----- >Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im >Auftrag von M.L. Jackson >Gesendet: Donnerstag, 29. Juni 2006 21:01 >An: MAPSERVER-USERS at LISTS.UMN.EDU >Betreff: [UMN_MAPSERVER-USERS] Map Requests from WMS > >I am attempting to set up a wms client. Does anyone know how http map >requests are actually made through the remote map servers? I have reason >to >believe that the bounding box in my wms request is being translated into >hexadecimal. The following was output generated by my Tomcat server after >I >stopped it: > >HTTP: Starting to prepare HTTP requests. > >HTTP request: id=2, >http://terraservice.net/OgcMap.ashx?LAYERS=DOQ&REQUEST=GetMap&SERVICE=WMS&FO >RMAT=image%2Fpng&STYLES=&HEIGHT=600&VERSION=1.1.1&SRS=EPSG:4326&WIDTH=800&BB >OX=%2D178%2E217598362366%2C3%2E44738582890752%2C%2D66%2E9692710360024%2C86%2 >E8836313236801&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage > >HTTP: Before download loop >msHTTPWriteFct(id=2, 396 bytes) >HTTP: After download loop >msHTTPExecuteRequests() timing summary per layer (connect_time + >time_to_first_packet + download_time = total_time in seconds) Layer 2: >0.062 >+ 0.703 + 0.062 = 0.827s >msDrawRasterLayerLow(photo): entering. > > > >I've only seen the above message on a few occasions in Tomcat's output >screen. If you need any info about my map file, then let me know. Thanks. > >_________________________________________________________________ >Don?t just search. Find. Check out the new MSN Search! >http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From dovidio at PLANETEK.IT Fri Jun 30 06:52:51 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Fri, 30 Jun 2006 15:52:51 +0200 Subject: Cascading WMS - WFS Message-ID: Dear ML, I have a problem. Some Months ago I have configured MapServer as WMS service where one layers was taken from another apServer configured as WFS. It worked fine and i was able to display gml format returned ny WFS MapServer as an image in WMS MapServer ! Now I have tried to request for the same map and I have received the following error : msHTTPExecuteRequests(): HTTP request error. Can't open output file \\naru04\Inetpub\wwwroot\applicazioni\tmp\b4b1804569004f917244a03b13bd0963.tmp.gml. msBuildWFSLayerPostRequest(): WFS connection error. Metadata wfs_service must be set in the layer I have tried also to set metadata wfs parameters in the layer and not in the CONNECTION tag but it's the same !!! why ? Thanks ******************************************************************************************** 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 dovidio at PLANETEK.IT Fri Jun 30 06:57:14 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Fri, 30 Jun 2006 15:57:14 +0200 Subject: add spatial filter (WFS) Message-ID: How can I do to add spatial filter in a browser request to MapServer WFS Service ??? I have tried this : http://..........................................&filter=(ID50 but it doesn't work ! why ? Thanks ! ******************************************************************************************** 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 bart_doggers at YAHOO.COM Fri Jun 30 07:16:04 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Fri, 30 Jun 2006 07:16:04 -0700 Subject: not seeing my map Message-ID: Hi, I coded a simple map file but I cant see the map. It just shows up in blank page. I dont get any errors. There is the codes. Can some one help me? Richland County MapServer
    map file code #This is Richland County Map Server NAME "Richland" SIZE 300 100 IMAGECOLOR 255 255 255 IMAGETYPE JPEG SHAPEPATH "/home/mapdata/" EXTENT -20.00 20.00 -10.00 90.00 WEB TEMPLATE '/var/www/htdocs/richland.html' IMAGEPATH '/var/www/htdocs/tmp' IMAGEURL '/tmp/' END LAYER NAME "Richland" STATUS default TYPE polygon DATA "RICH_bndy" CLASS STYLE COLOR 0 0 0 END END END END Thanks, Albert __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bart_doggers at YAHOO.COM Fri Jun 30 08:01:35 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Fri, 30 Jun 2006 08:01:35 -0700 Subject: How do you get or use fontsets Message-ID: Hi, I cant figure this out IMAGETYPE PNG SHAPEPATH "/home/mapdata" FONTSET "/var/www/htdocs/fontset.txt" What does fontset mean? I download this code for the book that I am using. I dont have fontset.txt in my htdocs. I have VeraB.ttf, VeraBd.ttf, and so on. What do I need to do with them files? Do I have to rename, change the configurations? Do I need to go somewhere and download fontsets or create? I am confusses. Because in the code I take that out and I get an error msGetLabelSize(): TrueType Font error. Requested font (arialbd) not found. Can someone help me understand this? Thanks, Albert --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bart_doggers at YAHOO.COM Fri Jun 30 08:23:45 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Fri, 30 Jun 2006 08:23:45 -0700 Subject: how do you create fonts? Message-ID: Hi, I have question how do you created fonts? Do you use the fontset.txt file that you create and put them in there or what? Thanks, Albert --------------------------------- 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 ollerery at ENGR.ORST.EDU Fri Jun 30 09:05:01 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Fri, 30 Jun 2006 09:05:01 -0700 Subject: Coordinate Systems In-Reply-To: <20060630152345.9832.qmail@web55709.mail.re3.yahoo.com> Message-ID: I keep on seeing lat/long values represented as large integer number and I am unsure how this conversion is made. For example 356800E, 5767999N I assume maps to a specific lat/long location but how do I determine exactly where. My problem is that I need to create world files for several aerial photos that have lat/long values in the title but I am not sure how to georeference these images using MapServer. Example file name: thm_dir_N00_000.png, them_dir_N00_030.png Also, I believe that I can use gdal_translate to georeference these images would the correct format be: gdal_translate -a_ullr 180 0 210 -30 thm_dir_N-30_180.png thm_dir_N-30_180.tiff From David.Fawcett at STATE.MN.US Fri Jun 30 09:26:58 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 30 Jun 2006 11:26:58 -0500 Subject: Coordinate Systems In-Reply-To: A<1151683501.44a54bad700d8@webmail.oregonstate.edu> Message-ID: Ryan, Are these degrees of Long/Lat, or are they meters from a projection like UTM. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ryan Ollerenshaw Sent: Friday, June 30, 2006 11:05 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Coordinate Systems I keep on seeing lat/long values represented as large integer number and I am unsure how this conversion is made. For example 356800E, 5767999N I assume maps to a specific lat/long location but how do I determine exactly where. My problem is that I need to create world files for several aerial photos that have lat/long values in the title but I am not sure how to georeference these images using MapServer. Example file name: thm_dir_N00_000.png, them_dir_N00_030.png Also, I believe that I can use gdal_translate to georeference these images would the correct format be: gdal_translate -a_ullr 180 0 210 -30 thm_dir_N-30_180.png thm_dir_N-30_180.tiff From listario at GMAIL.COM Fri Jun 30 09:52:57 2006 From: listario at GMAIL.COM (J. Parapar) Date: Fri, 30 Jun 2006 18:52:57 +0200 Subject: How do you get or use fontsets In-Reply-To: <20060630150136.31496.qmail@web55707.mail.re3.yahoo.com> Message-ID: Hi Albert: fontset.txt must be a list with the paths of the fonts files like: andale-mono /myfonts/andalemo.ttf arial /myfonts/arial.ttf arial-bold /myfonts/arialbd.ttf arial-italic /myfonts/ariali.ttf arial-bold-italic /myfonts/arialbi.ttf Of course, you have to replace /myfonts/ with your paths Best regards, Jorge 2006/6/30, Albert Anderson : > Hi, > > I cant figure this out > IMAGETYPE PNG > SHAPEPATH "/home/mapdata" > FONTSET "/var/www/htdocs/fontset.txt" > What does fontset mean? I download this code for the book that I am using. > I dont have fontset.txt in my htdocs. I have VeraB.ttf, VeraBd.ttf, and so > on. What do I need to do with them files? Do I have to rename, change the > configurations? Do I need to go somewhere and download fontsets or create? > I am confusses. Because in the code I take that out and I get an error > > msGetLabelSize(): TrueType Font error. Requested font (arialbd) not found. > > Can someone help me understand this? > > Thanks, > Albert > > > > ________________________________ > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail Beta. > > From ollerery at ENGR.ORST.EDU Fri Jun 30 10:41:56 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Fri, 30 Jun 2006 10:41:56 -0700 Subject: Coordinate Systems In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB0785@s-sp22.pca.state.mn.us> Message-ID: These numbers are to large to be Lat/long values, so if they are meters from a projection where is this projection originating from? If it is from the prime meridian and equator then there must be a way to get mapserver to accept lat/long values and do the conversion to meters on the the fly. Quoting "Fawcett, David" : > Ryan, > > Are these degrees of Long/Lat, or are they meters from a projection like > UTM. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Ryan Ollerenshaw > Sent: Friday, June 30, 2006 11:05 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Coordinate Systems > > > I keep on seeing lat/long values represented as large integer number and > I am unsure how this conversion is made. For example 356800E, 5767999N > I assume maps to a specific lat/long location but how do I determine > exactly where. > > My problem is that I need to create world files for several aerial > photos that have lat/long values in the title but I am not sure how to > georeference these images using MapServer. > > Example file name: thm_dir_N00_000.png, them_dir_N00_030.png > > Also, > I believe that I can use gdal_translate to georeference these images > would the correct format be: gdal_translate -a_ullr 180 0 210 -30 > thm_dir_N-30_180.png thm_dir_N-30_180.tiff > From byhisdeeds at GMAIL.COM Fri Jun 30 10:59:02 2006 From: byhisdeeds at GMAIL.COM (John Preston) Date: Fri, 30 Jun 2006 12:59:02 -0500 Subject: Newbie projection question. Message-ID: Hi, I'm a newbie to mapserver and have a basic question I can't verify that I'm doing correctly so I'm writing here. I have a mapserver setup as a WMS server which I will use an OpenLayers client to access. I'm using OpenLayers so that I can overlay maps from various sources (other WMS servers). The map files that I have are tiff images with world files in local coordinates. I therefore setup my map that will be served up by my mapserver with the following info: MAP ... # Extent of map files converted from local coiordinates to LAT/LON EXTENT -78.5 17.5 -76 18.5 PROJECTION "proj=lcc" "lat_1=..." "lat_2=..." "lon_0=..." "lat_0=..." "x_0=..." "y_0=..." END ... LAYER DATA "/path/to/tiff/image" ... END END Needless to say, I get an empty image back when I try and access the maps specifying a bounding box that should cover the area of the tiff image. I have not set the projection info for the individual layers as they are the same as the map. Am I doing something wrong From joe at OTSYS.COM Fri Jun 30 12:09:06 2006 From: joe at OTSYS.COM (Joseph Bussell) Date: Fri, 30 Jun 2006 12:09:06 -0700 Subject: PERL interface trouble In-Reply-To: <44A438F2.4080008@otsys.com> Message-ID: Does anyone use the latest code with PERL Mapscript? If shp2img works with my mapfile, is there anything else I can do to understand why my new call for the mapObj fails? Joe Bussell On Time Systems Joseph Bussell wrote: > I have verified that shp2img constructs an image that derives form my > mapfile. This part looks good. My mapscript code was written for > 4.4.2, but the one function that is failing does not appear to have > significantly changed. I am not getting past construction of the > basic mapObj from the mapfile. Specifically, the call to : > > my $map = new mapscript::mapObj( $mapfile ) or carp "Could not create > mapscript object from mapfile: $mapfile"; > > produces the error message. I also went into mapscript.pm and added > debug code there to be sure I was using the correct module. The low > level call is producing an unusable result. > Joe Bussell > On Time Systems > > > Stephen Woodbridge wrote: > >> Hi Joe, >> >> A couple of things. >> >> 1) what version does you existing code work on? >> 2) There are probably two areas that you will need to change >> a) the mapfile >> b) the perl >> >> I would start with using shp2img to make sure you mapfile can load. >> It will at least print errors that you can read. >> >> shp2img -m /path/to/file.map -o junk.png ... >> >> Once you can get an image then you will probably have more luck >> tracking down the various mapscript changes. These will depend on >> what version of mapscript your code was written for. >> >> -Steve W. >> >> Joseph Bussell wrote: >> >>> Greetings Listers, >>> It has been a while since I deployed a new Mapserver application. >>> I have been leaning on old source on an old box to get the work >>> done. I have been given a new server to set up for our Air Force >>> project and have had some issues with getting my code to work. >>> First of all I am using Mapscript ala PERL. I recognize that the >>> PERL interface has not been updated due to a lack of user interest, >>> but I am still partial to using it if it can still be done (mostly >>> since I will not have to rewrite my routing path functionality). >>> >>> My problem is getting the actual mapObj to construct from my >>> mapfile. I have not been able to get any debug information our by >>> checking /tmp/mserrors, which used to work nicely in such cases. >>> All I get is an undefined reference. My code for construction is >>> simple: >>> >>> my $map = new mapscript::mapObj( $mapfile ) or carp "Could not >>> create mapscript object from mapfile: $mapfile"; >>> >>> in my httpd.conf I define >>> MS_ERRORFILE /tmp/mserrors.txt >>> >>> My mapfile exists and is very simple. >>> I am running: >>> CentOS release 4.3 >>> AMD64, dual core machine >>> Apache/2.0.52 >>> mapserver-4.8.3.tar.gz >>> perl, v5.8.5 built for x86_64-linux-thread-multi >>> >>> Thank you for your time. >>> >>> Joe Bussell >>> On Time Systems >>> >> >> > From pneal at MBL.EDU Fri Jun 30 12:50:19 2006 From: pneal at MBL.EDU (Phillip Neal) Date: Fri, 30 Jun 2006 15:50:19 -0400 Subject: No subject Message-ID: Phillip Neal pneal at mbl.edu "An ocean without its unnamed monsters would be like a completely dreamless sleep." John Steinbeck - 'The Log from the Sea of Cortez' -------------- next part -------------- An HTML attachment was scrubbed... URL: From ollerery at ENGR.ORST.EDU Fri Jun 30 13:09:52 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Fri, 30 Jun 2006 13:09:52 -0700 Subject: Image tilling In-Reply-To: Message-ID: What I am trying to do is to georeference aerial photos of a large area, eventually the entire earth. So what I need is to be able to specify the lat/long of each photo (which I have) using only the lat/long coordinate system. I would like the user to be able to specify a bounding box (lat/long) for a given area then have my mapserver return all the available images for that given area. Currently I think that I can use: gdal_translate -a_ullr 180 0 210 -30 thm_dir_N-30_180.png thm_dir_N-30_180.tiff To georeference all of my photos, then: gdaltindex thm_dir.shp *.tif To create a shape file with an index of all the photos, then I can specify my layer in the mapfile as: LAYER NAME "tileindex" STATUS ON TILEINDEX "thm_dir.shp" TILEITEM "Location" TYPE RASTER END But when I display this layer in MapServer I get a blank image, and when I try to view the shape file in ArcMap I can see my tiles but they are just displayed as blank polygons with no images. I think that my problem is incorrectly specifying the EXTENT in the map file, but i am not sure what i should put if i want my tiles to eventually cover then entire world. Thanks, -Ryan Here is my entire map file incase that helps any: NAME WMSDEMO STATUS ON SIZE 500 400 #EXTENT 0 0 2800 2800 #EXTENT -180 -90 180 90 EXTENT -9200000 -912631 3072800 3840000 #UNITS METERS SHAPEPATH "../data" IMAGECOLOR 255 255 255 WEB TEMPLATE test_template.html IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA WMS_TITLE "WMS test mapserver" WMS_ACCESSCONSTRAINTS "none" #WMS_ONLINERESOURCE "http://neuron/cgi-bin/mapserv?map=display.map&" WMS_SRS "EPSG:4326" #"AUTO:42003" END END PROJECTION "init=epsg:4326" END LAYER # Shaded Relief Raster NAME test_layer DATA bath_mapserver.tif STATUS ON TYPE RASTER END LAYER NAME "hpool" STATUS ON #DATA "thm_dir_00_030.tiff" TILEINDEX "thm_dir.shp" #TILEITEM "Location" TYPE RASTER END END # of map file From tkirstine at JDBARNES.COM Fri Jun 30 13:28:56 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Fri, 30 Jun 2006 16:28:56 -0400 Subject: Image tilling In-Reply-To: <1151698192.44a5851034af6@webmail.oregonstate.edu> Message-ID: If you are able to create a tile index and it looks alright when viewed in a gis application (open ev, arcgis etc..) then I would check out the name of the field containing the paths (and the paths as well) to the images. In my experiance gdaltindex creates a field named "location" not "Location". If you want to check your extent use ogrinfo on your tile index. ogrinfo -al -so thm_dir.shp I hope this helps Travis -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Ryan Ollerenshaw Sent: Friday, June 30, 2006 4:10 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Image tilling What I am trying to do is to georeference aerial photos of a large area, eventually the entire earth. So what I need is to be able to specify the lat/long of each photo (which I have) using only the lat/long coordinate system. I would like the user to be able to specify a bounding box (lat/long) for a given area then have my mapserver return all the available images for that given area. Currently I think that I can use: gdal_translate -a_ullr 180 0 210 -30 thm_dir_N-30_180.png thm_dir_N-30_180.tiff To georeference all of my photos, then: gdaltindex thm_dir.shp *.tif To create a shape file with an index of all the photos, then I can specify my layer in the mapfile as: LAYER NAME "tileindex" STATUS ON TILEINDEX "thm_dir.shp" TILEITEM "Location" TYPE RASTER END But when I display this layer in MapServer I get a blank image, and when I try to view the shape file in ArcMap I can see my tiles but they are just displayed as blank polygons with no images. I think that my problem is incorrectly specifying the EXTENT in the map file, but i am not sure what i should put if i want my tiles to eventually cover then entire world. Thanks, -Ryan Here is my entire map file incase that helps any: NAME WMSDEMO STATUS ON SIZE 500 400 #EXTENT 0 0 2800 2800 #EXTENT -180 -90 180 90 EXTENT -9200000 -912631 3072800 3840000 #UNITS METERS SHAPEPATH "../data" IMAGECOLOR 255 255 255 WEB TEMPLATE test_template.html IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA WMS_TITLE "WMS test mapserver" WMS_ACCESSCONSTRAINTS "none" #WMS_ONLINERESOURCE "http://neuron/cgi-bin/mapserv?map=display.map&" WMS_SRS "EPSG:4326" #"AUTO:42003" END END PROJECTION "init=epsg:4326" END LAYER # Shaded Relief Raster NAME test_layer DATA bath_mapserver.tif STATUS ON TYPE RASTER END LAYER NAME "hpool" STATUS ON #DATA "thm_dir_00_030.tiff" TILEINDEX "thm_dir.shp" #TILEITEM "Location" TYPE RASTER END END # of map file From bart_doggers at YAHOO.COM Fri Jun 30 13:40:25 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Fri, 30 Jun 2006 13:40:25 -0700 Subject: How do you get or use fontsets In-Reply-To: <4ac992660606300952r38f30b80m645c180e9419ae64@mail.gmail.com> Message-ID: Hi, Where Do I put the tff's at. In var/www/htdocs/fonts in the fonts? where my fontset.txt is? I put arial var/www/htdocs/fonts/arial.ttf arial-bd var/www/htdocs/fonts/arialbd.tff in the fontset.txt and it still shows up the error message msGetLabelSize(): TrueType Font error. Requested font (arialbd) not found. I'm I putting something in the wrong place? Thanks, Albert "J. Parapar" wrote: Hi Albert: fontset.txt must be a list with the paths of the fonts files like: andale-mono /myfonts/andalemo.ttf arial /myfonts/arial.ttf arial-bold /myfonts/arialbd.ttf arial-italic /myfonts/ariali.ttf arial-bold-italic /myfonts/arialbi.ttf Of course, you have to replace /myfonts/ with your paths Best regards, Jorge 2006/6/30, Albert Anderson : > Hi, > > I cant figure this out > IMAGETYPE PNG > SHAPEPATH "/home/mapdata" > FONTSET "/var/www/htdocs/fontset.txt" > What does fontset mean? I download this code for the book that I am using. > I dont have fontset.txt in my htdocs. I have VeraB.ttf, VeraBd.ttf, and so > on. What do I need to do with them files? Do I have to rename, change the > configurations? Do I need to go somewhere and download fontsets or create? > I am confusses. Because in the code I take that out and I get an error > > msGetLabelSize(): TrueType Font error. Requested font (arialbd) not found. > > Can someone help me understand this? > > Thanks, > Albert > > > > ________________________________ > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail Beta. > > --------------------------------- 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 crschmidt at CRSCHMIDT.NET Fri Jun 30 17:14:42 2006 From: crschmidt at CRSCHMIDT.NET (Christopher Schmidt) Date: Fri, 30 Jun 2006 20:14:42 -0400 Subject: Nexrad Base Reflectivity WMS-Time (Rasters with a PostGIS Tileindex) In-Reply-To: Message-ID: On Mon, Jun 26, 2006 at 11:40:42AM -0500, David William Bitner wrote: > Daryl Herzman has added time support to the Nexrad Base Reflectivity WMS > service out of Iowa State University. > > GetCapabilities: > http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi?&SERVICE=WMS&REQUEST=GetCapabilities > > GetMap With Time Parameter Example: > http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi?&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=nexrad_base_reflect,nexrad-n0r-wmst&time=2004-08-23T20:35 Implementation in OpenLayers: http://openlayers.org/dev/examples/wmst.html Thanks to David for kicking my butt to get it done, and giving me an example to copy from. OpenLayers now has support for changing parameters on layers after they're added, which is a useful feature for lots of things like this: for example, one could change the 'layers' parameter in javascript code, which was not possible before. Thanks! -- Christopher Schmidt Web Developer