From umberto.nicoletti at gmail.com Mon Sep 1 00:02:33 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Mon, 1 Sep 2008 09:02:33 +0200 Subject: [mapserver-users] Java mapscript: connection timeout In-Reply-To: References: Message-ID: <75b4b93e0809010002y12cc877bpcb50c772a9848992@mail.gmail.com> Please post the exact error message and architecture you're running (version of Windows, linux, etc)? Umberto On Mon, Sep 1, 2008 at 7:53 AM, Ishwari Sivagnanam wrote: > Hello all, > I developed a mapserver site in Java mapscript and have run into a timeout > issue. I have tried to explain the problem as best as I can below. I am new > to web application development and mapserver so I apologize for errors in > the description. > > I have two seperate mapserver pages in my website. The scripting is done > using Java Mapscript and JSP pages. The backend data comes from a > Postgresql/ PostGIS database. I developed the exact same application in PHP > and 'deployed' it. I have had no issues with that site. The Java mapscript > was developed along the same lines as the PHP application. > Both mapserver pages share ~ 10 base maps. Additionally each of these pages > has a set of thematic maps. Page 1 has 2 thematic maps of the same point > layer and a third thematic layer with a summary statistic for a polygon > layer. Page 2 has a single thematic map which displays a summary statistic > of a polygon layer. Page 1 by itself works well. Page 2 by itself works > well. > The problem occurs when > (a) page 1 and page 2 are merged or > (b) if they are deployed parallely in the same site > I get an message which says "Connection timed out". > I have tried searching the web for an answer but haven't been very > successful > > Version and Specs: > ---------------------------- > MapServer version 5.0.0 > PHP MapScript Version - ($Revision: 6872 $ $Date: 2007-09-10 10:45:30 -0400 > (Mon, 10 Sep 2007) $) > PostgreSQL 8.2.3 > PostGIS 1.3.2 > > Apache Tomcat 5.5 > Java 1.6 > Java mapscript - Downloaded and installed using the page in the > mapserver.umn.. website > > Could somebody help me please? > > Ishwari > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From gabmessner at gmail.com Mon Sep 1 01:23:10 2008 From: gabmessner at gmail.com (Gabriel Messner) Date: Mon, 1 Sep 2008 10:23:10 +0200 Subject: [mapserver-users] Raster does not accept expression values Message-ID: <1708890c0809010123t2e115efejfd271f9bf50e0ae7@mail.gmail.com> I have a Float32 raster, which was made with Arcgis Spatial Analyst. When retrieving it with mapserver using different Class with Expression values, nothing appears, but with just one Class the raster is shown right in a gray scale palette. Any help would be appreciated. AYER NAME "PopulationDensity" TYPE RASTER DATA 'D:/Raster/PopulationDensity.tif' TOLERANCE 0 TOLERANCEUNITS pixels TEMPLATE " " METADATA "force_imagetype" "gif" "RESULT_FIELDS" "x,y,value_list" "RESULT_HEADERS" "UTM-X,UTM-Y,Density" END CLASS NAME '0-10' EXPRESSION ([pixel] >= 0 AND [pixel] < 10) STYLE COLOR 0 194 181 END END CLASS NAME '10-25' EXPRESSION ([pixel] >= 10 AND [pixel] < 25) STYLE COLOR 0 242 36 END END CLASS NAME '25-50' EXPRESSION ([pixel] >= 25 AND [pixel] < 50) STYLE COLOR 173 255 47 END END CLASS NAME '50-100' EXPRESSION ([pixel] >= 50 AND [pixel] < 100) STYLE COLOR 234 255 0 END END CLASS NAME '100-250' EXPRESSION ([pixel] >= 100 AND [pixel] < 250) STYLE COLOR 255 176 0 END END CLASS NAME '250-500' EXPRESSION ([pixel] >= 250 AND [pixel] < 500) STYLE COLOR 244 127 11 END END CLASS NAME '500-1000' EXPRESSION ([pixel] >= 500 AND [pixel] < 1000) STYLE COLOR 87 62 37 END END CLASS NAME '1000-25000' EXPRESSION ([pixel] >= 1000 AND [pixel] < 25000) STYLE COLOR 122 116 135 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From ishwari.s at gmail.com Mon Sep 1 02:04:40 2008 From: ishwari.s at gmail.com (Ishwari Sivagnanam) Date: Mon, 1 Sep 2008 14:34:40 +0530 Subject: [mapserver-users] Java mapscript: connection timeout In-Reply-To: <75b4b93e0809010002y12cc877bpcb50c772a9848992@mail.gmail.com> References: <75b4b93e0809010002y12cc877bpcb50c772a9848992@mail.gmail.com> Message-ID: The error message is the standard "Connection timeout" or "Unable to connect" page that appears in Firefox and the 'page not available' (I couldn't attach a screen capture). The platform is windows XP. Ocassionally loading the application stops Tomcat completely. Should I send the error log ? Thanks, Ishwari On Mon, Sep 1, 2008 at 12:32 PM, Umberto Nicoletti < umberto.nicoletti at gmail.com> wrote: > Please post the exact error message and architecture you're running > (version of Windows, linux, etc)? > > Umberto > > On Mon, Sep 1, 2008 at 7:53 AM, Ishwari Sivagnanam > wrote: > > Hello all, > > I developed a mapserver site in Java mapscript and have run into a > timeout > > issue. I have tried to explain the problem as best as I can below. I am > new > > to web application development and mapserver so I apologize for errors in > > the description. > > > > I have two seperate mapserver pages in my website. The scripting is done > > using Java Mapscript and JSP pages. The backend data comes from a > > Postgresql/ PostGIS database. I developed the exact same application in > PHP > > and 'deployed' it. I have had no issues with that site. The Java > mapscript > > was developed along the same lines as the PHP application. > > Both mapserver pages share ~ 10 base maps. Additionally each of these > pages > > has a set of thematic maps. Page 1 has 2 thematic maps of the same point > > layer and a third thematic layer with a summary statistic for a polygon > > layer. Page 2 has a single thematic map which displays a summary > statistic > > of a polygon layer. Page 1 by itself works well. Page 2 by itself works > > well. > > The problem occurs when > > (a) page 1 and page 2 are merged or > > (b) if they are deployed parallely in the same site > > I get an message which says "Connection timed out". > > I have tried searching the web for an answer but haven't been very > > successful > > > > Version and Specs: > > ---------------------------- > > MapServer version 5.0.0 > > PHP MapScript Version - ($Revision: 6872 $ $Date: 2007-09-10 10:45:30 > -0400 > > (Mon, 10 Sep 2007) $) > > PostgreSQL 8.2.3 > > PostGIS 1.3.2 > > > > Apache Tomcat 5.5 > > Java 1.6 > > Java mapscript - Downloaded and installed using the page in the > > mapserver.umn.. website > > > > Could somebody help me please? > > > > Ishwari > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at gmail.com Mon Sep 1 02:21:48 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Mon, 1 Sep 2008 11:21:48 +0200 Subject: [mapserver-users] Java mapscript: connection timeout In-Reply-To: References: <75b4b93e0809010002y12cc877bpcb50c772a9848992@mail.gmail.com> Message-ID: <75b4b93e0809010221x225f4a03x25deae39c99acb96@mail.gmail.com> Ok, now we're getting somewhere, but I need more information. Read the fine manual (all of it, twice ;-)) at: http://mapserver.gis.umn.edu/docs/howto/javamapscript and report all the information it mentions in the last section. In particular I need to know if you compiled java mapscript by yourself or used the ms4w packages. Also make sure you attach the hs_err*.log files. Regards, Umberto On Mon, Sep 1, 2008 at 11:04 AM, Ishwari Sivagnanam wrote: > The error message is the standard "Connection timeout" or "Unable to > connect" page that appears in Firefox and the 'page not available' (I > couldn't attach a screen capture). The platform is windows XP. > > Ocassionally loading the application stops Tomcat completely. > > Should I send the error log ? > > Thanks, > Ishwari > > > > > > On Mon, Sep 1, 2008 at 12:32 PM, Umberto Nicoletti > wrote: >> >> Please post the exact error message and architecture you're running >> (version of Windows, linux, etc)? >> >> Umberto >> >> On Mon, Sep 1, 2008 at 7:53 AM, Ishwari Sivagnanam >> wrote: >> > Hello all, >> > I developed a mapserver site in Java mapscript and have run into a >> > timeout >> > issue. I have tried to explain the problem as best as I can below. I am >> > new >> > to web application development and mapserver so I apologize for errors >> > in >> > the description. >> > >> > I have two seperate mapserver pages in my website. The scripting is done >> > using Java Mapscript and JSP pages. The backend data comes from a >> > Postgresql/ PostGIS database. I developed the exact same application in >> > PHP >> > and 'deployed' it. I have had no issues with that site. The Java >> > mapscript >> > was developed along the same lines as the PHP application. >> > Both mapserver pages share ~ 10 base maps. Additionally each of these >> > pages >> > has a set of thematic maps. Page 1 has 2 thematic maps of the same point >> > layer and a third thematic layer with a summary statistic for a polygon >> > layer. Page 2 has a single thematic map which displays a summary >> > statistic >> > of a polygon layer. Page 1 by itself works well. Page 2 by itself works >> > well. >> > The problem occurs when >> > (a) page 1 and page 2 are merged or >> > (b) if they are deployed parallely in the same site >> > I get an message which says "Connection timed out". >> > I have tried searching the web for an answer but haven't been very >> > successful >> > >> > Version and Specs: >> > ---------------------------- >> > MapServer version 5.0.0 >> > PHP MapScript Version - ($Revision: 6872 $ $Date: 2007-09-10 10:45:30 >> > -0400 >> > (Mon, 10 Sep 2007) $) >> > PostgreSQL 8.2.3 >> > PostGIS 1.3.2 >> > >> > Apache Tomcat 5.5 >> > Java 1.6 >> > Java mapscript - Downloaded and installed using the page in the >> > mapserver.umn.. website >> > >> > Could somebody help me please? >> > >> > Ishwari >> > >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From gis at vanbooth.com Mon Sep 1 03:24:38 2008 From: gis at vanbooth.com (Rob) Date: Mon, 1 Sep 2008 11:24:38 +0100 Subject: [MAPSERVER-USERS] Problems calculating MAXSCALES In-Reply-To: <48A3E57D0200008F0001A933@co5.dnr.state.mn.us> References: <48A3E57D0200008F0001A933@co5.dnr.state.mn.us> Message-ID: <2a955f950809010324x14e333dfl3e0bfd6b53fd94fd@mail.gmail.com> Many thanks for the reply Steve. I'm trying to modify the mapserver code to compute the cellsize based on my original extent calculations, and not the extent calculations that Mapserver now uses. Based on the following links http://mapserver.gis.umn.edu/development/rfc/ms-rfc-25/ http://trac.osgeo.org/mapserver/ticket/2015 http://trac.osgeo.org/mapserver/changeset/6529 http://trac.osgeo.org/mapserver/changeset/5895 I have modified the folllowing : maputil.c - msAdjustExtent ox = MS_MAX(((width) - (rect->maxx - rect->minx)/cellsize)/2,0); oy = MS_MAX(((height) - (rect->maxy - rect->miny)/cellsize)/2,0); mapscale.c - msCalculateScale md = (width)/(resolution*msInchesPerUnit(units, center_y)); maptemplate.c - setExtent case FROMSCALE: cellsize = (msObj->Scale/msObj->Map->resolution)/msInchesPerUnit(msObj->Map->units,0); // user supplied a point and a scale msObj->Map->extent.minx = msObj->MapPnt.x - cellsize*msObj->Map->width/2.0; msObj->Map->extent.miny = msObj->MapPnt.y - cellsize*msObj->Map->height/2.0; msObj->Map->extent.maxx = msObj->MapPnt.x + cellsize*msObj->Map->width/2.0; msObj->Map->extent.maxy = msObj->MapPnt.y + cellsize*msObj->Map->height/2.0; mapserver.h #define MS_CELLSIZE(min,max,d) ((max - min)/d) I'm still getting figures that are ever so slightly out (1:1,999,995 instead of 1:2m), but these margins still vary depending on image size, so I still can't just modify my MAXSCALEDENOM values to compensate for any potential rounding errors that may be causing the discrepancies. I'm not up to speed on what all the components of the code do - should I also be modifying some of the width-1 calculations that are in mapprimitive.c (msOffsetPointRelativeTo) ? Is there anything else I have missed? Thanks Rob 2008/8/14 Steve Lime : > Your assuming that an extent in ESRI represents the same thing MapServer. It doesn't assuming an ESRI extent is UL corner of UL pixel and the LR corner of the LR pixel for the rendered map. MapServer would use the centers of each pixel. You need to account for those differences when comparing the two. (MapServer has roots with ERDAS Imagine and that was the model it used at the time.) Compute cellsize from the ESRI extent (maxx-minx)/width and then offset the extent by 1/2 cellsize (UL + cellsize, LR - cellsize) to get the MapServer equivalent. If you do that then the scales will match. > > Perhaps this will change at some point and lead to even more confusion. > > Steve > From ishwari.s at gmail.com Mon Sep 1 04:28:38 2008 From: ishwari.s at gmail.com (Ishwari Sivagnanam) Date: Mon, 1 Sep 2008 16:58:38 +0530 Subject: [mapserver-users] Java mapscript: connection timeout In-Reply-To: <75b4b93e0809010221x225f4a03x25deae39c99acb96@mail.gmail.com> References: <75b4b93e0809010002y12cc877bpcb50c772a9848992@mail.gmail.com> <75b4b93e0809010221x225f4a03x25deae39c99acb96@mail.gmail.com> Message-ID: Given below are the specs for what I have installed on my machine. I downloaded and installed the ms4w package with the windows installer. So I haven't done any builds. And I haven't removed any dlls. I added the ntwdblib.dll to the cgi-bin folder. I believe this is used to connect SQL server and PHP. The data was originally in SQL server before I moved it all to Postgres. OS: Windows XP gcc version : don't know what this is MapServer: version 5.0.0 Java : JDK 1.6 (NetBeans IDE 5.5.1) Java mapscript - the .dll and .jar file that are part of the ms4w package Apache Tomcat 5.5 Other: -------- PHP MapScript Version - ($Revision: 6872 $ $Date: 2007-09-10 10:45:30 -0400 (Mon, 10 Sep 2007) $) ogr: i use the ogr2ogr library to call MapInfo layers Database: -------------- PostgreSQL 8.2.3 PostGIS 1.3.2 I read through the howto document that you pointed me to. I will check on the connection pooling. Unsafe components: I do use the ogr library since I have mapInfo files. I can move them to postgis. But I don't know how to disable the components. Since I didn't compile Java Mapscript I don't know how to fix this. Please find attached the most recent hs_err*.log from my machine. Thanks for your help :-) Ishwari On Mon, Sep 1, 2008 at 2:51 PM, Umberto Nicoletti < umberto.nicoletti at gmail.com> wrote: > Ok, now we're getting somewhere, but I need more information. > Read the fine manual (all of it, twice ;-)) at: > > http://mapserver.gis.umn.edu/docs/howto/javamapscript > > and report all the information it mentions in the last section. > In particular I need to know if you compiled java mapscript by > yourself or used the ms4w packages. > Also make sure you attach the hs_err*.log files. > > Regards, > Umberto > > On Mon, Sep 1, 2008 at 11:04 AM, Ishwari Sivagnanam > wrote: > > The error message is the standard "Connection timeout" or "Unable to > > connect" page that appears in Firefox and the 'page not available' (I > > couldn't attach a screen capture). The platform is windows XP. > > > > Ocassionally loading the application stops Tomcat completely. > > > > Should I send the error log ? > > > > Thanks, > > Ishwari > > > > > > > > > > > > On Mon, Sep 1, 2008 at 12:32 PM, Umberto Nicoletti > > wrote: > >> > >> Please post the exact error message and architecture you're running > >> (version of Windows, linux, etc)? > >> > >> Umberto > >> > >> On Mon, Sep 1, 2008 at 7:53 AM, Ishwari Sivagnanam > > >> wrote: > >> > Hello all, > >> > I developed a mapserver site in Java mapscript and have run into a > >> > timeout > >> > issue. I have tried to explain the problem as best as I can below. I > am > >> > new > >> > to web application development and mapserver so I apologize for errors > >> > in > >> > the description. > >> > > >> > I have two seperate mapserver pages in my website. The scripting is > done > >> > using Java Mapscript and JSP pages. The backend data comes from a > >> > Postgresql/ PostGIS database. I developed the exact same application > in > >> > PHP > >> > and 'deployed' it. I have had no issues with that site. The Java > >> > mapscript > >> > was developed along the same lines as the PHP application. > >> > Both mapserver pages share ~ 10 base maps. Additionally each of these > >> > pages > >> > has a set of thematic maps. Page 1 has 2 thematic maps of the same > point > >> > layer and a third thematic layer with a summary statistic for a > polygon > >> > layer. Page 2 has a single thematic map which displays a summary > >> > statistic > >> > of a polygon layer. Page 1 by itself works well. Page 2 by itself > works > >> > well. > >> > The problem occurs when > >> > (a) page 1 and page 2 are merged or > >> > (b) if they are deployed parallely in the same site > >> > I get an message which says "Connection timed out". > >> > I have tried searching the web for an answer but haven't been very > >> > successful > >> > > >> > Version and Specs: > >> > ---------------------------- > >> > MapServer version 5.0.0 > >> > PHP MapScript Version - ($Revision: 6872 $ $Date: 2007-09-10 10:45:30 > >> > -0400 > >> > (Mon, 10 Sep 2007) $) > >> > PostgreSQL 8.2.3 > >> > PostGIS 1.3.2 > >> > > >> > Apache Tomcat 5.5 > >> > Java 1.6 > >> > Java mapscript - Downloaded and installed using the page in the > >> > mapserver.umn.. website > >> > > >> > Could somebody help me please? > >> > > >> > Ishwari > >> > > >> > > >> > _______________________________________________ > >> > mapserver-users mailing list > >> > mapserver-users at lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > >> > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid5892.log Type: application/octet-stream Size: 16605 bytes Desc: not available URL: From umberto.nicoletti at gmail.com Mon Sep 1 05:23:26 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Mon, 1 Sep 2008 14:23:26 +0200 Subject: [mapserver-users] Java mapscript: connection timeout In-Reply-To: References: <75b4b93e0809010002y12cc877bpcb50c772a9848992@mail.gmail.com> <75b4b93e0809010221x225f4a03x25deae39c99acb96@mail.gmail.com> Message-ID: <75b4b93e0809010523t5c4c512ard0e080d4cdc9df5c@mail.gmail.com> I would start by removing the ogr layers: move them to postgis or even better to shapefiles using the ogr2ogr utility. Try to have only shapefiles or postgis layers in your mapfiles and see if that helps. Disabling the ogr component is not strictly necessary (even thouh it is recommended) provided that you do not use it. Regards, Umberto On Mon, Sep 1, 2008 at 1:28 PM, Ishwari Sivagnanam wrote: > Given below are the specs for what I have installed on my machine. I > downloaded and installed the ms4w package with the windows installer. So I > haven't done any builds. And I haven't removed any dlls. > > I added the ntwdblib.dll to the cgi-bin folder. I believe this is used to > connect SQL server and PHP. The data was originally in SQL server before I > moved it all to Postgres. > > OS: Windows XP > gcc version : don't know what this is > MapServer: version 5.0.0 > Java : JDK 1.6 (NetBeans IDE 5.5.1) > Java mapscript - the .dll and .jar file that are part of the ms4w package > Apache Tomcat 5.5 > > Other: > -------- > PHP MapScript Version - ($Revision: 6872 $ $Date: 2007-09-10 10:45:30 -0400 > (Mon, 10 Sep 2007) $) > ogr: i use the ogr2ogr library to call MapInfo layers > > Database: > -------------- > PostgreSQL 8.2.3 > PostGIS 1.3.2 > > I read through the howto document that you pointed me to. I will check on > the connection pooling. > > Unsafe components: I do use the ogr library since I have mapInfo files. I > can move them to postgis. But I don't know how to disable the components. > Since I didn't compile Java Mapscript I don't know how to fix this. > > Please find attached the most recent hs_err*.log from my machine. > > Thanks for your help > :-) > > Ishwari > > On Mon, Sep 1, 2008 at 2:51 PM, Umberto Nicoletti > wrote: >> >> Ok, now we're getting somewhere, but I need more information. >> Read the fine manual (all of it, twice ;-)) at: >> >> http://mapserver.gis.umn.edu/docs/howto/javamapscript >> >> and report all the information it mentions in the last section. >> In particular I need to know if you compiled java mapscript by >> yourself or used the ms4w packages. >> Also make sure you attach the hs_err*.log files. >> >> Regards, >> Umberto >> >> On Mon, Sep 1, 2008 at 11:04 AM, Ishwari Sivagnanam >> wrote: >> > The error message is the standard "Connection timeout" or "Unable to >> > connect" page that appears in Firefox and the 'page not available' (I >> > couldn't attach a screen capture). The platform is windows XP. >> > >> > Ocassionally loading the application stops Tomcat completely. >> > >> > Should I send the error log ? >> > >> > Thanks, >> > Ishwari >> > >> > >> > >> > >> > >> > On Mon, Sep 1, 2008 at 12:32 PM, Umberto Nicoletti >> > wrote: >> >> >> >> Please post the exact error message and architecture you're running >> >> (version of Windows, linux, etc)? >> >> >> >> Umberto >> >> >> >> On Mon, Sep 1, 2008 at 7:53 AM, Ishwari Sivagnanam >> >> >> >> wrote: >> >> > Hello all, >> >> > I developed a mapserver site in Java mapscript and have run into a >> >> > timeout >> >> > issue. I have tried to explain the problem as best as I can below. I >> >> > am >> >> > new >> >> > to web application development and mapserver so I apologize for >> >> > errors >> >> > in >> >> > the description. >> >> > >> >> > I have two seperate mapserver pages in my website. The scripting is >> >> > done >> >> > using Java Mapscript and JSP pages. The backend data comes from a >> >> > Postgresql/ PostGIS database. I developed the exact same application >> >> > in >> >> > PHP >> >> > and 'deployed' it. I have had no issues with that site. The Java >> >> > mapscript >> >> > was developed along the same lines as the PHP application. >> >> > Both mapserver pages share ~ 10 base maps. Additionally each of these >> >> > pages >> >> > has a set of thematic maps. Page 1 has 2 thematic maps of the same >> >> > point >> >> > layer and a third thematic layer with a summary statistic for a >> >> > polygon >> >> > layer. Page 2 has a single thematic map which displays a summary >> >> > statistic >> >> > of a polygon layer. Page 1 by itself works well. Page 2 by itself >> >> > works >> >> > well. >> >> > The problem occurs when >> >> > (a) page 1 and page 2 are merged or >> >> > (b) if they are deployed parallely in the same site >> >> > I get an message which says "Connection timed out". >> >> > I have tried searching the web for an answer but haven't been very >> >> > successful >> >> > >> >> > Version and Specs: >> >> > ---------------------------- >> >> > MapServer version 5.0.0 >> >> > PHP MapScript Version - ($Revision: 6872 $ $Date: 2007-09-10 10:45:30 >> >> > -0400 >> >> > (Mon, 10 Sep 2007) $) >> >> > PostgreSQL 8.2.3 >> >> > PostGIS 1.3.2 >> >> > >> >> > Apache Tomcat 5.5 >> >> > Java 1.6 >> >> > Java mapscript - Downloaded and installed using the page in the >> >> > mapserver.umn.. website >> >> > >> >> > Could somebody help me please? >> >> > >> >> > Ishwari >> >> > >> >> > >> >> > _______________________________________________ >> >> > mapserver-users mailing list >> >> > mapserver-users at lists.osgeo.org >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > >> >> > >> > >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From amptarraco at hotmail.com Mon Sep 1 08:33:47 2008 From: amptarraco at hotmail.com (capgre) Date: Mon, 1 Sep 2008 08:33:47 -0700 (PDT) Subject: [mapserver-users] WMS query problems in Mapserver 5.2 Message-ID: <1220283227191-801600.post@n2.nabble.com> Hi, We just installed the version 5.2 of Mapserver in our server. We have noticed that when performing a WMS query (GetMap, GetFeatureInfo or GetLegendGraphic requests), if the parameter SERVICE=WMS is not provided, Mapserver returns the following exception: msWFSDispatch(): WFS server error. Incomplete WFS request: SERVICE parameter missing Requests without the parameter work fine when using prior versions of mapserver. As long as I know, the WMS specification does not mention that this parameter is mandatory in the requests (except in GetCapabilities). Does anyone know if this behavior is expected in mapserver or should be considered a bug? -- View this message in context: http://n2.nabble.com/WMS-query-problems-in-Mapserver-5.2-tp801600p801600.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hrodriguez at siscat.com.ar Mon Sep 1 08:08:43 2008 From: hrodriguez at siscat.com.ar (Rodriguez, Heraldo) Date: Mon, 1 Sep 2008 12:08:43 -0300 Subject: [mapserver-users] Spam: odd behaviour with labels using AGG In-Reply-To: <75b4b93e0809010221x225f4a03x25deae39c99acb96@mail.gmail.com> Message-ID: <296E5F9B6BB1C445BDDC9C94FC83835E0A6426@ZEUS-Exchg2k3.sc.com> Hi everyone, We have just upgraded from mapserver 4.8.2 to 5.2 in order to use the new AGG rendering engine. The graphics look great, but labels show a weird behaviour . All labels seem to overlap and collide with others ( using the same map and using gd instead of agg we have no problems with labels) We are using javamapscript , We compiled mapserver with the following parameters ./configure --with-postgis=/usr/bin/pg_config --enable-debug --with-threads --without-pdf --without-tiff --with-gdal=/usr/bin/gdal-config --with-ogr=/usr/bin/gdal-config --with-freetype=/usr/bin --with-png=/usr/bin --with-libiconv=/usr/local/bin/iconv --without-xpm --with-zlib=/usr --without-eppl --with-agg=/usr/local --without-mygis in a Debian 4.0 etch. Tha layer with problems is calles Any help would be appreciated. Thanks in advance . Our Map file is the following MAP IMAGETYPE AGG EXTENT -9289.683594 -10641.172852 13757.177734 13053.350586 SIZE 490 500 IMAGECOLOR 255 255 0 TEMPLATEPATTERN 'template1*' FONTSET "/usr/local/mapserver/font.list" OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA TRANSPARENT ON EXTENSION "png" END OUTPUTFORMAT NAME PNG24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA TRANSPARENT ON EXTENSION "png" END OUTPUTFORMAT NAME AGG DRIVER AGG/PNG IMAGEMODE RGB extension "png" mimetype "image/png" END OUTPUTFORMAT NAME AGGA DRIVER AGG/PNG IMAGEMODE RGBA END SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE TINY END STYLE 0 SIZE 100 2 COLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS Meters INTERVALS 2 TRANSPARENT ON STATUS EMBED END # Scalebar object SYMBOL NAME "triangle" TYPE vector FILLED true POINTS 0 4 2 0 4 4 0 4 END END # SYMBOL # NAME "cartoline" # TYPE cartoline # LINECAP round #[butt|round|square|triangle] # LINEJOIN miter #[round|miter|bevel] # LINEJOINMAXSIZE 3 ## STYLE ## 40 17 1 17 1 17 1 17 ## END #END # SYMBOL # NAME "carto2" # TYPE cartoline # LINECAP round #[butt|round|square|triangle] # LINEJOIN miter #[round|miter|bevel] # LINEJOINMAXSIZE 3 # STYLE # 3 4 # END # END SYMBOL NAME 'rectangle-train' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE PATTERN 10 10 10 10 END END SYMBOL NAME "circle" TYPE ellipse FILLED true POINTS 1 1 END END SYMBOL NAME 'punkt' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END SYMBOL NAME "prueba" TYPE TRUETYPE FONT "cartografia" CHARACTER "1" END LEGEND KEYSIZE 12 8 Label Size 7 type truetype font "vera" end STATUS ON END QUERYMAP Color 255 255 0 Style Hilite END LAYER NAME entorno CONNECTION "user=***** password=******* dbname=**** host=*****.sc.com port=5432" CONNECTIONTYPE postgis # DATA entorno/the_geom DATA "the_geom FROM entorno" GROUP Geograficos STATUS ON TYPE POLYGON CLASSITEM "destino" CLASS NAME "Rio de la Plata" EXPRESSION 'RIO DE LA PLATA' TEMPLATE './QueryTemplates/entorno.html' STYLE # COLOR 209 221 235 # g Earth COLOR 153 179 204 OUTLINECOLOR 209 221 235 END END CLASS NAME "Provincia" EXPRESSION 'PROVINCIA DE BUENOS AIRES' TEMPLATE './QueryTemplates/entorno.html' STYLE # COLOR 236 237 223 COLOR 230 231 217 # COLOR 230 231 217 # OUTLINECOLOR 236 237 223 END END CLASS NAME "Entorno Capital" TEMPLATE './QueryTemplates/entorno.html' STYLE # COLOR 255 255 255 # g Earth # COLOR 235 230 220 # COLOR 237 234 226 COLOR 255 255 255 # COLOR 247 244 238 # OUTLINECOLOR 255 255 255 END END END LAYER NAME calles CONNECTION "user=***** password=******* dbname=**** host=*****.sc.com port=5432" CONNECTIONTYPE postgis DATA "the_geom FROM calles" GROUP Geograficos STATUS ON TYPE LINE # columna agregada a la tabla por cuestiones de las etiquetas LABELITEM rotulo SYMBOLscaledenom 40000 CLASSITEM nombre labelMaxscaledenom 25000 CLASS NAME "calles" TEMPLATE './QueryTemplates/calles.html' STYLE color 255 255 255 OUTLINECOLOR 106 106 106 # SYMBOL "cartoline" END Label minsize 3 Size 3 maxsize 9 type truetype ANGLE FOLLOW Priority 5 buffer 10 PARTIALS false FORCE false MINDISTANCE 300 outlinecolor 255 255 255 font "vera" color 35 35 35 end END END LAYER NAME manzanas CONNECTION "user=***** password=******* dbname=**** host=*****.sc.com port=5432" CONNECTIONTYPE postgis GROUP Geograficos DATA "the_geom FROM manzanas" STATUS ON TYPE POLYGON LABELITEM manz LabelMaxscaledenom 2500 CLASS NAME "Manzanas" TEMPLATE './QueryTemplates/manzanas.html' STYLE # COLOR 252 224 131 # COLOR 246 231 175 COLOR 237 234 226 #g earth # COLOR 248 218 161 # COLOR 246 231 195 # COLOR 247 231 215 OUTLINECOLOR 255 255 255 END Label Size 9 type truetype ANGLE FOLLOW PARTIALS false POSITION UC font "vera" color 66 66 66 end END END LAYER NAME parcelas CONNECTION "user=***** password=******* dbname=**** host=*****.sc.com port=5432" CONNECTIONTYPE postgis DATA "the_geom FROM parcelas" STATUS ON TYPE POLYGON OPACITY 80 MAXscaledenom 15000 LABELITEM parcela LabelMaxscaledenom 1200 CLASS NAME "parcelas" TEMPLATE './QueryTemplates/plazas.html' STYLE COLOR 242 239 233 #g earth OUTLINECOLOR 210 210 210 END Label minsize 7 Size 7 maxsize 8 type truetype PARTIALS false Buffer 0 MINDISTANCE 10 font "vera" color 86 86 86 minfeaturesize 1 FORCE true end END END LAYER NAME parcelas_lab CONNECTION "user=***** password=******* dbname=**** host=*****.sc.com port=5432" CONNECTIONTYPE postgis DATA "the_geom FROM parcelas_lab" STATUS Off TYPE POINT OPACITY 80 MAXscaledenom 1200 LABELITEM parcela LabelMaxscaledenom 1200 CLASS NAME "parcelas_lab" TEMPLATE './QueryTemplates/plazas.html' STYLE COLOR 242 239 233 # Minsize 4 # size 4 # MAXSIZE 6 END Label minsize 7 Size 7 maxsize 8 type truetype PARTIALS false # POSITION uc Buffer 0 MINDISTANCE 10 # OUTLINECOLOR 255 255 255 font "vera" color 86 86 86 # color 237 234 226 minfeaturesize 1 FORCE true end END END LAYER NAME plazas CONNECTION "user=***** password=******* dbname=**** host=*****.sc.com port=5432" CONNECTIONTYPE postgis DATA "the_geom FROM plazas" STATUS ON GROUP Geograficos TYPE POLYGON LabelMaxscaledenom 10000 LABELITEM destino TEMPLATE './QueryTemplates/entorno.html' CLASS NAME "Plazas" # TEMPLATE './QueryTemplates/plazas.html' STYLE # COLOR 189 230 175 transparente # COLOR 124 206 100 original # COLOR 140 210 120 # g Earth COLOR 167 204 149 # COLOR 15 164 141 OUTLINECOLOR 255 255 255 END Label Minsize 6 Size 8 MAXSIZE 9 type truetype PARTIALS false Position CC Buffer 0 outlinecolor 255 255 255 font "vera" COLOR 25 25 25 minfeaturesize 35 end END END LAYER NAME plazas_lab CONNECTION "user=***** password=******* dbname=**** host=*****.sc.com port=5432" CONNECTIONTYPE postgis DATA "the_geom FROM pzlab" STATUS Off GROUP Geograficos TYPE POINT LabelMaxscaledenom 10000 LABELITEM destino TEMPLATE './QueryTemplates/entorno.html' CLASS NAME "Plazas" # TEMPLATE './QueryTemplates/plazas.html' STYLE # COLOR 189 230 175 transparente # COLOR 124 206 100 original # COLOR 140 210 120 # g Earth COLOR 167 204 149 # COLOR 15 164 141 OUTLINECOLOR 255 255 255 END Label Minsize 6 Size 8 MAXSIZE 9 type truetype # ANGLE AUTO PARTIALS false Position CC Buffer 0 # MINDISTANCE 200 outlinecolor 255 255 255 font "vera" # color 0 0 200 COLOR 25 25 25 minfeaturesize 35 end END END LAYER NAME secciones CONNECTION "user=***** password=******* dbname=**** host=*****.sc.com port=5432" CONNECTIONTYPE postgis DATA "the_geom FROM secciones" GROUP Geograficos STATUS ON TYPE POLYGON LABELITEM seccion_id LabelMaxscaledenom 70000 LabelMinscaledenom 4000 CLASS NAME "Secciones" TEMPLATE './QueryTemplates/barrios.html' STYLE OUTLINECOLOR 48 123 193 width 2 END Label Minsize 8 Size 8 MAXSIZE 9 type truetype PARTIALS false POSITION uc Buffer 0 outlinecolor 255 255 255 font "vera" COLOR 48 123 193 end END END LAYER NAME circunscripciones CONNECTION "user=***** password=******* dbname=**** host=*****.sc.com port=5432" CONNECTIONTYPE postgis DATA "the_geom FROM circunscripciones" GROUP Geograficos STATUS ON TYPE POLYGON LABELITEM circuns_id LabelMaxscaledenom 90000 LabelMinscaledenom 4000 CLASS NAME "Circunscripciones" TEMPLATE './QueryTemplates/barrios.html' STYLE OUTLINECOLOR 255 123 193 width 2 END Label Minsize 8 Size 10 MAXSIZE 12 type truetype PARTIALS false POSITION uc Buffer 0 outlinecolor 255 255 255 font "vera" COLOR 255 123 193 MINDISTANCE 400 end END END LAYER NAME vias CONNECTION "user=***** password=******* dbname=**** host=*****.sc.com port=5432" CONNECTIONTYPE postgis DATA "the_geom FROM vias" GROUP Geograficos STATUS ON TYPE LINE LABELMAXscaledenom 2700 MAXscaledenom 2700 LABELITEM ffcc SYMBOLscaledenom 1000 CLASS NAME "vias" TEMPLATE './QueryTemplates/vias.html' STYLE COLOR 186 186 186 SYMBOL 'punkt' MAXSIZE 6 SIZE 6 END STYLE COLOR 255 250 115 SYMBOL 'punkt' MAXSIZE 4 SIZE 4 END STYLE COLOR 186 186 186 SYMBOL 'rectangle-train' MAXSIZE 4 SIZE 4 END Label MAXSIZE 11 Size 11 type truetype ANGLE FOLLOW PARTIALS false POSITION UC MINDISTANCE 250 outlinecolor 255 255 255 font "vera" color 5 5 5 end END END SYMBOL #North Arrow NAME "northarrow1" TYPE pixmap IMAGE "north.png" END LAYER NAME "North Arrow" POSTLABELCACHE TRUE STATUS ON TRANSFORM FALSE TYPE POINT OPACITY 80 FEATURE POINTS 20 25 END END CLASS SYMBOL 'northarrow1' STYLE END END END END From schroeter at netgis.de Mon Sep 1 08:49:58 2008 From: schroeter at netgis.de (Sven Schroeter) Date: Mon, 1 Sep 2008 17:49:58 +0200 Subject: [mapserver-users] GetFeatureInfo for number in textfield Message-ID: <000701c90c4a$63a71fa0$08b2a8c0@SVEN> Hi, My System: Mapserver 5.02 on Win 2003 Server with Postgres/Postgis 8.3/1.3. I make a GetFeatureInfo Request from a WMS-Service: With INFO_FORMAT=text/plain every field from my Postgis-table comes with a correctly result: For example GetFeatureInfo results: Layer 'naturschutzgebiet' Feature 13288152: geodb_oid = '175' objectid = '175' nr = '23308' name = 'Ernstberg' ... The Field "nr" is a textfield with some numbers as strings, for example nr = '23308'. If I try to get a result via html-template (INFO_FORMAT=text/html) everything works fine except the field "nr". For this field I get in every query a "1". any ideas? Thanks Sven From thomas.bonfort at gmail.com Mon Sep 1 09:27:06 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 1 Sep 2008 18:27:06 +0200 Subject: [mapserver-users] Spam: odd behaviour with labels using AGG In-Reply-To: <296E5F9B6BB1C445BDDC9C94FC83835E0A6426@ZEUS-Exchg2k3.sc.com> References: <75b4b93e0809010221x225f4a03x25deae39c99acb96@mail.gmail.com> <296E5F9B6BB1C445BDDC9C94FC83835E0A6426@ZEUS-Exchg2k3.sc.com> Message-ID: can you link to a screenshot of the problem please? also could you try with the trunk version, or apply the patch of http://trac.osgeo.org/mapserver/ticket/2756 and report if that fixes the problem cheers, thomas On Mon, Sep 1, 2008 at 5:08 PM, Rodriguez, Heraldo wrote: > Hi everyone, > We have just upgraded from mapserver 4.8.2 to 5.2 in order > to use the new AGG rendering engine. > The graphics look great, but labels show a weird > behaviour . All labels seem to overlap and collide with others ( using > the same map and using gd instead of agg we have no problems with > labels) > We are using javamapscript , > We compiled mapserver with the following parameters > > ./configure --with-postgis=/usr/bin/pg_config --enable-debug > --with-threads --without-pdf --without-tiff > --with-gdal=/usr/bin/gdal-config --with-ogr=/usr/bin/gdal-config > --with-freetype=/usr/bin --with-png=/usr/bin > --with-libiconv=/usr/local/bin/iconv --without-xpm --with-zlib=/usr > --without-eppl --with-agg=/usr/local --without-mygis > > in a Debian 4.0 etch. > > Tha layer with problems is calles > > Any help would be appreciated. Thanks in advance . > > Our Map file is the following > > MAP > IMAGETYPE AGG > EXTENT -9289.683594 -10641.172852 13757.177734 > 13053.350586 > SIZE 490 500 > IMAGECOLOR 255 255 0 > TEMPLATEPATTERN 'template1*' > FONTSET "/usr/local/mapserver/font.list" > > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > TRANSPARENT ON > EXTENSION "png" > END > > OUTPUTFORMAT > NAME PNG24 > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > TRANSPARENT ON > EXTENSION "png" > END > > OUTPUTFORMAT > NAME AGG > DRIVER AGG/PNG > IMAGEMODE RGB > extension "png" > mimetype "image/png" > END > > OUTPUTFORMAT > NAME AGGA > DRIVER AGG/PNG > IMAGEMODE RGBA > END > > > > > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE TINY > END > STYLE 0 > SIZE 100 2 > COLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS Meters > INTERVALS 2 > TRANSPARENT ON > STATUS EMBED > END # Scalebar object > > > SYMBOL > NAME "triangle" > TYPE vector > FILLED true > POINTS > 0 4 > 2 0 > 4 4 > 0 4 > END > END > > # SYMBOL > # NAME "cartoline" > # TYPE cartoline > # LINECAP round #[butt|round|square|triangle] > # LINEJOIN miter #[round|miter|bevel] > # LINEJOINMAXSIZE 3 > ## STYLE > ## 40 17 1 17 1 17 1 17 > ## END > #END > > # SYMBOL > # NAME "carto2" > # TYPE cartoline > # LINECAP round #[butt|round|square|triangle] > # LINEJOIN miter #[round|miter|bevel] > # LINEJOINMAXSIZE 3 > # STYLE > # 3 4 > # END > # END > > SYMBOL > NAME 'rectangle-train' > TYPE ELLIPSE > POINTS > 1 1 > END > FILLED TRUE > PATTERN > 10 10 10 10 > END > END > > SYMBOL > NAME "circle" > TYPE ellipse > FILLED true > POINTS > 1 1 > END > END > > > > SYMBOL > NAME 'punkt' > TYPE ELLIPSE > POINTS > 1 1 > END > FILLED TRUE > END > > SYMBOL > NAME "prueba" > TYPE TRUETYPE > FONT "cartografia" > CHARACTER "1" > END > > > > LEGEND > KEYSIZE 12 8 > Label > Size 7 > type truetype > font "vera" > end > STATUS ON > END > > QUERYMAP > Color 255 255 0 > Style Hilite > END > > LAYER > NAME entorno > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > # DATA entorno/the_geom > DATA "the_geom FROM entorno" > GROUP Geograficos > STATUS ON > TYPE POLYGON > CLASSITEM "destino" > CLASS > NAME "Rio de la Plata" > EXPRESSION 'RIO DE LA PLATA' > TEMPLATE './QueryTemplates/entorno.html' > STYLE > # COLOR 209 221 235 > # g Earth > COLOR 153 179 204 > OUTLINECOLOR 209 221 235 > END > END > > CLASS > NAME "Provincia" > EXPRESSION 'PROVINCIA DE BUENOS AIRES' > TEMPLATE './QueryTemplates/entorno.html' > STYLE > # COLOR 236 237 223 > COLOR 230 231 217 > # COLOR 230 231 217 > # OUTLINECOLOR 236 237 223 > END > END > > CLASS > NAME "Entorno Capital" > TEMPLATE './QueryTemplates/entorno.html' > STYLE > # COLOR 255 255 255 > # g Earth > # COLOR 235 230 220 > # COLOR 237 234 226 > COLOR 255 255 255 > # COLOR 247 244 238 > # OUTLINECOLOR 255 255 255 > END > END > END > > > > LAYER > NAME calles > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > DATA "the_geom FROM calles" > > GROUP Geograficos > STATUS ON > TYPE LINE > > # columna agregada a la tabla por cuestiones de las > etiquetas > LABELITEM rotulo > SYMBOLscaledenom 40000 > CLASSITEM nombre > labelMaxscaledenom 25000 > CLASS > NAME "calles" > TEMPLATE './QueryTemplates/calles.html' > STYLE > color 255 255 255 > OUTLINECOLOR 106 106 106 > # SYMBOL "cartoline" > END > Label > minsize 3 > Size 3 > maxsize 9 > type truetype > ANGLE FOLLOW > Priority 5 > buffer 10 > PARTIALS false > FORCE false > MINDISTANCE 300 > outlinecolor 255 255 255 > font "vera" > color 35 35 35 > end > > END > END > > LAYER > NAME manzanas > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > GROUP Geograficos > DATA "the_geom FROM manzanas" > STATUS ON > TYPE POLYGON > LABELITEM manz > LabelMaxscaledenom 2500 > CLASS > NAME "Manzanas" > TEMPLATE './QueryTemplates/manzanas.html' > STYLE > # COLOR 252 224 131 > # COLOR 246 231 175 > COLOR 237 234 226 #g earth > # COLOR 248 218 161 > # COLOR 246 231 195 > # COLOR 247 231 215 > OUTLINECOLOR 255 255 255 > END > Label > Size 9 > type truetype > ANGLE FOLLOW > PARTIALS false > POSITION UC > font "vera" > color 66 66 66 > end > END > END > > > LAYER > NAME parcelas > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > DATA "the_geom FROM parcelas" > STATUS ON > TYPE POLYGON > OPACITY 80 > MAXscaledenom 15000 > LABELITEM parcela > LabelMaxscaledenom 1200 > CLASS > NAME "parcelas" > TEMPLATE './QueryTemplates/plazas.html' > STYLE > COLOR 242 239 233 #g > earth > OUTLINECOLOR 210 210 210 > END > Label > minsize 7 > Size 7 > maxsize 8 > type truetype > PARTIALS false > Buffer 0 > MINDISTANCE 10 > font "vera" > color 86 86 86 > minfeaturesize 1 > FORCE true > end > END > END > > LAYER > NAME parcelas_lab > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > DATA "the_geom FROM parcelas_lab" > STATUS Off > TYPE POINT > OPACITY 80 > MAXscaledenom 1200 > LABELITEM parcela > LabelMaxscaledenom 1200 > CLASS > NAME "parcelas_lab" > TEMPLATE './QueryTemplates/plazas.html' > STYLE > COLOR 242 239 233 > # Minsize 4 > # size 4 > # MAXSIZE 6 > END > Label > minsize 7 > Size 7 > maxsize 8 > type truetype > PARTIALS false > # POSITION uc > Buffer 0 > MINDISTANCE 10 > # OUTLINECOLOR 255 255 255 > font "vera" > color 86 86 86 > # color 237 234 226 > minfeaturesize 1 > FORCE true > end > > END > END > > > LAYER > NAME plazas > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > DATA "the_geom FROM plazas" > STATUS ON > GROUP Geograficos > TYPE POLYGON > LabelMaxscaledenom 10000 > LABELITEM destino > TEMPLATE './QueryTemplates/entorno.html' > CLASS > NAME "Plazas" > # TEMPLATE './QueryTemplates/plazas.html' > STYLE > # COLOR 189 230 175 transparente > # COLOR 124 206 100 original > # COLOR 140 210 120 > # g Earth > COLOR 167 204 149 > # COLOR 15 164 141 > OUTLINECOLOR 255 255 255 > END > Label > Minsize 6 > Size 8 > MAXSIZE 9 > type truetype > PARTIALS false > Position CC > Buffer 0 > outlinecolor 255 255 255 > font "vera" > COLOR 25 25 25 > minfeaturesize 35 > end > END > > END > > > > LAYER > NAME plazas_lab > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > DATA "the_geom FROM pzlab" > STATUS Off > GROUP Geograficos > TYPE POINT > LabelMaxscaledenom 10000 > LABELITEM destino > TEMPLATE './QueryTemplates/entorno.html' > CLASS > NAME "Plazas" > # TEMPLATE './QueryTemplates/plazas.html' > STYLE > # COLOR 189 230 175 transparente > # COLOR 124 206 100 original > # COLOR 140 210 120 > # g Earth > COLOR 167 204 149 > # COLOR 15 164 141 > OUTLINECOLOR 255 255 255 > END > Label > Minsize 6 > Size 8 > MAXSIZE 9 > type truetype > # ANGLE AUTO > PARTIALS false > Position CC > Buffer 0 > # MINDISTANCE 200 > outlinecolor 255 255 255 > font "vera" > # color 0 0 200 > COLOR 25 25 25 > minfeaturesize 35 > end > END > END > > > > LAYER > NAME secciones > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > DATA "the_geom FROM secciones" > GROUP Geograficos > STATUS ON > TYPE POLYGON > LABELITEM seccion_id > LabelMaxscaledenom 70000 > LabelMinscaledenom 4000 > CLASS > NAME "Secciones" > TEMPLATE './QueryTemplates/barrios.html' > STYLE > OUTLINECOLOR 48 123 193 > width 2 > END > > Label > Minsize 8 > Size 8 > MAXSIZE 9 > type truetype > PARTIALS false > POSITION uc > Buffer 0 > outlinecolor 255 255 255 > font "vera" > COLOR 48 123 193 > end > > END > END > > > LAYER > NAME circunscripciones > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > DATA "the_geom FROM circunscripciones" > GROUP Geograficos > STATUS ON > TYPE POLYGON > LABELITEM circuns_id > LabelMaxscaledenom 90000 > LabelMinscaledenom 4000 > CLASS > NAME "Circunscripciones" > TEMPLATE './QueryTemplates/barrios.html' > STYLE > OUTLINECOLOR 255 123 193 > width 2 > END > > Label > Minsize 8 > Size 10 > MAXSIZE 12 > type truetype > PARTIALS false > POSITION uc > Buffer 0 > outlinecolor 255 255 255 > font "vera" > COLOR 255 123 193 > MINDISTANCE 400 > end > > END > END > > LAYER > NAME vias > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > DATA "the_geom FROM vias" > GROUP Geograficos > STATUS ON > TYPE LINE > LABELMAXscaledenom 2700 > MAXscaledenom 2700 > LABELITEM ffcc > SYMBOLscaledenom 1000 > CLASS > NAME "vias" > TEMPLATE './QueryTemplates/vias.html' > > STYLE > COLOR 186 186 186 > SYMBOL 'punkt' > MAXSIZE 6 > SIZE 6 > END > STYLE > COLOR 255 250 115 > SYMBOL 'punkt' > MAXSIZE 4 > SIZE 4 > END > > STYLE > COLOR 186 186 186 > SYMBOL 'rectangle-train' > MAXSIZE 4 > SIZE 4 > END > > Label > MAXSIZE 11 > Size 11 > type truetype > ANGLE FOLLOW > PARTIALS false > POSITION UC > MINDISTANCE 250 > outlinecolor 255 255 255 > font "vera" > color 5 5 5 > end > > > END > END > > SYMBOL #North Arrow > NAME "northarrow1" > TYPE pixmap > IMAGE "north.png" > END > > LAYER > NAME "North Arrow" > POSTLABELCACHE TRUE > STATUS ON > TRANSFORM FALSE > TYPE POINT > OPACITY 80 > FEATURE > POINTS 20 25 END > END > CLASS > SYMBOL 'northarrow1' > STYLE END > END > END > > > > END > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From hrodriguez at siscat.com.ar Mon Sep 1 09:52:48 2008 From: hrodriguez at siscat.com.ar (Rodriguez, Heraldo) Date: Mon, 1 Sep 2008 13:52:48 -0300 Subject: [mapserver-users] Spam: odd behaviour with labels using AGG In-Reply-To: Message-ID: <296E5F9B6BB1C445BDDC9C94FC83835E0A6444@ZEUS-Exchg2k3.sc.com> http://img217.imageshack.us/img217/2537/cabildoagg3po6.png In the meantime i'll try to apply the patch and see what happen. Thanks a lot. Lic. Heraldo G. Rodriguez hrodriguez at siscat.com.ar TEL: 54-11-4326-4002 int 255 Dpto. Desarrollo Sistemas Catastrales S.A -----Mensaje original----- De: thomas bonfort [mailto:thomas.bonfort at gmail.com] Enviado el: lunes, 01 de septiembre de 2008 13:27 Para: Rodriguez, Heraldo CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] Spam: odd behaviour with labels using AGG can you link to a screenshot of the problem please? also could you try with the trunk version, or apply the patch of http://trac.osgeo.org/mapserver/ticket/2756 and report if that fixes the problem cheers, thomas On Mon, Sep 1, 2008 at 5:08 PM, Rodriguez, Heraldo wrote: > Hi everyone, > We have just upgraded from mapserver 4.8.2 to 5.2 in order > to use the new AGG rendering engine. > The graphics look great, but labels show a weird > behaviour . All labels seem to overlap and collide with others ( using > the same map and using gd instead of agg we have no problems with > labels) > We are using javamapscript , > We compiled mapserver with the following parameters > > ./configure --with-postgis=/usr/bin/pg_config --enable-debug > --with-threads --without-pdf --without-tiff > --with-gdal=/usr/bin/gdal-config --with-ogr=/usr/bin/gdal-config > --with-freetype=/usr/bin --with-png=/usr/bin > --with-libiconv=/usr/local/bin/iconv --without-xpm --with-zlib=/usr > --without-eppl --with-agg=/usr/local --without-mygis > > in a Debian 4.0 etch. > > Tha layer with problems is calles > > Any help would be appreciated. Thanks in advance . > > Our Map file is the following > > MAP > IMAGETYPE AGG > EXTENT -9289.683594 -10641.172852 13757.177734 > 13053.350586 > SIZE 490 500 > IMAGECOLOR 255 255 0 > TEMPLATEPATTERN 'template1*' > FONTSET "/usr/local/mapserver/font.list" > > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > TRANSPARENT ON > EXTENSION "png" > END > > OUTPUTFORMAT > NAME PNG24 > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > TRANSPARENT ON > EXTENSION "png" > END > > OUTPUTFORMAT > NAME AGG > DRIVER AGG/PNG > IMAGEMODE RGB > extension "png" > mimetype "image/png" > END > > OUTPUTFORMAT > NAME AGGA > DRIVER AGG/PNG > IMAGEMODE RGBA > END > > > > > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE TINY > END > STYLE 0 > SIZE 100 2 > COLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS Meters > INTERVALS 2 > TRANSPARENT ON > STATUS EMBED > END # Scalebar object > > > SYMBOL > NAME "triangle" > TYPE vector > FILLED true > POINTS > 0 4 > 2 0 > 4 4 > 0 4 > END > END > > # SYMBOL > # NAME "cartoline" > # TYPE cartoline > # LINECAP round #[butt|round|square|triangle] > # LINEJOIN miter #[round|miter|bevel] > # LINEJOINMAXSIZE 3 > ## STYLE > ## 40 17 1 17 1 17 1 17 > ## END > #END > > # SYMBOL > # NAME "carto2" > # TYPE cartoline > # LINECAP round #[butt|round|square|triangle] > # LINEJOIN miter #[round|miter|bevel] > # LINEJOINMAXSIZE 3 > # STYLE > # 3 4 > # END > # END > > SYMBOL > NAME 'rectangle-train' > TYPE ELLIPSE > POINTS > 1 1 > END > FILLED TRUE > PATTERN > 10 10 10 10 > END > END > > SYMBOL > NAME "circle" > TYPE ellipse > FILLED true > POINTS > 1 1 > END > END > > > > SYMBOL > NAME 'punkt' > TYPE ELLIPSE > POINTS > 1 1 > END > FILLED TRUE > END > > SYMBOL > NAME "prueba" > TYPE TRUETYPE > FONT "cartografia" > CHARACTER "1" > END > > > > LEGEND > KEYSIZE 12 8 > Label > Size 7 > type truetype > font "vera" > end > STATUS ON > END > > QUERYMAP > Color 255 255 0 > Style Hilite > END > > LAYER > NAME entorno > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > # DATA entorno/the_geom > DATA "the_geom FROM entorno" > GROUP Geograficos > STATUS ON > TYPE POLYGON > CLASSITEM "destino" > CLASS > NAME "Rio de la Plata" > EXPRESSION 'RIO DE LA PLATA' > TEMPLATE './QueryTemplates/entorno.html' > STYLE > # COLOR 209 221 235 > # g Earth > COLOR 153 179 204 > OUTLINECOLOR 209 221 235 > END > END > > CLASS > NAME "Provincia" > EXPRESSION 'PROVINCIA DE BUENOS AIRES' > TEMPLATE './QueryTemplates/entorno.html' > STYLE > # COLOR 236 237 223 > COLOR 230 231 217 > # COLOR 230 231 217 > # OUTLINECOLOR 236 237 223 > END > END > > CLASS > NAME "Entorno Capital" > TEMPLATE './QueryTemplates/entorno.html' > STYLE > # COLOR 255 255 255 > # g Earth > # COLOR 235 230 220 > # COLOR 237 234 226 > COLOR 255 255 255 > # COLOR 247 244 238 > # OUTLINECOLOR 255 255 255 > END > END > END > > > > LAYER > NAME calles > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > DATA "the_geom FROM calles" > > GROUP Geograficos > STATUS ON > TYPE LINE > > # columna agregada a la tabla por cuestiones de las > etiquetas > LABELITEM rotulo > SYMBOLscaledenom 40000 > CLASSITEM nombre > labelMaxscaledenom 25000 > CLASS > NAME "calles" > TEMPLATE './QueryTemplates/calles.html' > STYLE > color 255 255 255 > OUTLINECOLOR 106 106 106 > # SYMBOL "cartoline" > END > Label > minsize 3 > Size 3 > maxsize 9 > type truetype > ANGLE FOLLOW > Priority 5 > buffer 10 > PARTIALS false > FORCE false > MINDISTANCE 300 > outlinecolor 255 255 255 > font "vera" > color 35 35 35 > end > > END > END > > LAYER > NAME manzanas > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > GROUP Geograficos > DATA "the_geom FROM manzanas" > STATUS ON > TYPE POLYGON > LABELITEM manz > LabelMaxscaledenom 2500 > CLASS > NAME "Manzanas" > TEMPLATE './QueryTemplates/manzanas.html' > STYLE > # COLOR 252 224 131 > # COLOR 246 231 175 > COLOR 237 234 226 #g earth > # COLOR 248 218 161 > # COLOR 246 231 195 > # COLOR 247 231 215 > OUTLINECOLOR 255 255 255 > END > Label > Size 9 > type truetype > ANGLE FOLLOW > PARTIALS false > POSITION UC > font "vera" > color 66 66 66 > end > END > END > > > LAYER > NAME parcelas > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > DATA "the_geom FROM parcelas" > STATUS ON > TYPE POLYGON > OPACITY 80 > MAXscaledenom 15000 > LABELITEM parcela > LabelMaxscaledenom 1200 > CLASS > NAME "parcelas" > TEMPLATE './QueryTemplates/plazas.html' > STYLE > COLOR 242 239 233 #g > earth > OUTLINECOLOR 210 210 210 > END > Label > minsize 7 > Size 7 > maxsize 8 > type truetype > PARTIALS false > Buffer 0 > MINDISTANCE 10 > font "vera" > color 86 86 86 > minfeaturesize 1 > FORCE true > end > END > END > > LAYER > NAME parcelas_lab > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > DATA "the_geom FROM parcelas_lab" > STATUS Off > TYPE POINT > OPACITY 80 > MAXscaledenom 1200 > LABELITEM parcela > LabelMaxscaledenom 1200 > CLASS > NAME "parcelas_lab" > TEMPLATE './QueryTemplates/plazas.html' > STYLE > COLOR 242 239 233 > # Minsize 4 > # size 4 > # MAXSIZE 6 > END > Label > minsize 7 > Size 7 > maxsize 8 > type truetype > PARTIALS false > # POSITION uc > Buffer 0 > MINDISTANCE 10 > # OUTLINECOLOR 255 255 255 > font "vera" > color 86 86 86 > # color 237 234 226 > minfeaturesize 1 > FORCE true > end > > END > END > > > LAYER > NAME plazas > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > DATA "the_geom FROM plazas" > STATUS ON > GROUP Geograficos > TYPE POLYGON > LabelMaxscaledenom 10000 > LABELITEM destino > TEMPLATE './QueryTemplates/entorno.html' > CLASS > NAME "Plazas" > # TEMPLATE './QueryTemplates/plazas.html' > STYLE > # COLOR 189 230 175 transparente > # COLOR 124 206 100 original > # COLOR 140 210 120 > # g Earth > COLOR 167 204 149 > # COLOR 15 164 141 > OUTLINECOLOR 255 255 255 > END > Label > Minsize 6 > Size 8 > MAXSIZE 9 > type truetype > PARTIALS false > Position CC > Buffer 0 > outlinecolor 255 255 255 > font "vera" > COLOR 25 25 25 > minfeaturesize 35 > end > END > > END > > > > LAYER > NAME plazas_lab > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > DATA "the_geom FROM pzlab" > STATUS Off > GROUP Geograficos > TYPE POINT > LabelMaxscaledenom 10000 > LABELITEM destino > TEMPLATE './QueryTemplates/entorno.html' > CLASS > NAME "Plazas" > # TEMPLATE './QueryTemplates/plazas.html' > STYLE > # COLOR 189 230 175 transparente > # COLOR 124 206 100 original > # COLOR 140 210 120 > # g Earth > COLOR 167 204 149 > # COLOR 15 164 141 > OUTLINECOLOR 255 255 255 > END > Label > Minsize 6 > Size 8 > MAXSIZE 9 > type truetype > # ANGLE AUTO > PARTIALS false > Position CC > Buffer 0 > # MINDISTANCE 200 > outlinecolor 255 255 255 > font "vera" > # color 0 0 200 > COLOR 25 25 25 > minfeaturesize 35 > end > END > END > > > > LAYER > NAME secciones > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > DATA "the_geom FROM secciones" > GROUP Geograficos > STATUS ON > TYPE POLYGON > LABELITEM seccion_id > LabelMaxscaledenom 70000 > LabelMinscaledenom 4000 > CLASS > NAME "Secciones" > TEMPLATE './QueryTemplates/barrios.html' > STYLE > OUTLINECOLOR 48 123 193 > width 2 > END > > Label > Minsize 8 > Size 8 > MAXSIZE 9 > type truetype > PARTIALS false > POSITION uc > Buffer 0 > outlinecolor 255 255 255 > font "vera" > COLOR 48 123 193 > end > > END > END > > > LAYER > NAME circunscripciones > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > DATA "the_geom FROM circunscripciones" > GROUP Geograficos > STATUS ON > TYPE POLYGON > LABELITEM circuns_id > LabelMaxscaledenom 90000 > LabelMinscaledenom 4000 > CLASS > NAME "Circunscripciones" > TEMPLATE './QueryTemplates/barrios.html' > STYLE > OUTLINECOLOR 255 123 193 > width 2 > END > > Label > Minsize 8 > Size 10 > MAXSIZE 12 > type truetype > PARTIALS false > POSITION uc > Buffer 0 > outlinecolor 255 255 255 > font "vera" > COLOR 255 123 193 > MINDISTANCE 400 > end > > END > END > > LAYER > NAME vias > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > DATA "the_geom FROM vias" > GROUP Geograficos > STATUS ON > TYPE LINE > LABELMAXscaledenom 2700 > MAXscaledenom 2700 > LABELITEM ffcc > SYMBOLscaledenom 1000 > CLASS > NAME "vias" > TEMPLATE './QueryTemplates/vias.html' > > STYLE > COLOR 186 186 186 > SYMBOL 'punkt' > MAXSIZE 6 > SIZE 6 > END > STYLE > COLOR 255 250 115 > SYMBOL 'punkt' > MAXSIZE 4 > SIZE 4 > END > > STYLE > COLOR 186 186 186 > SYMBOL 'rectangle-train' > MAXSIZE 4 > SIZE 4 > END > > Label > MAXSIZE 11 > Size 11 > type truetype > ANGLE FOLLOW > PARTIALS false > POSITION UC > MINDISTANCE 250 > outlinecolor 255 255 255 > font "vera" > color 5 5 5 > end > > > END > END > > SYMBOL #North Arrow > NAME "northarrow1" > TYPE pixmap > IMAGE "north.png" > END > > LAYER > NAME "North Arrow" > POSTLABELCACHE TRUE > STATUS ON > TRANSFORM FALSE > TYPE POINT > OPACITY 80 > FEATURE > POINTS 20 25 END > END > CLASS > SYMBOL 'northarrow1' > STYLE END > END > END > > > > END > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From hrodriguez at siscat.com.ar Mon Sep 1 11:22:13 2008 From: hrodriguez at siscat.com.ar (Rodriguez, Heraldo) Date: Mon, 1 Sep 2008 15:22:13 -0300 Subject: [mapserver-users] Spam: odd behaviour with labels using AGG In-Reply-To: Message-ID: <296E5F9B6BB1C445BDDC9C94FC83835E0A644F@ZEUS-Exchg2k3.sc.com> I applied the patch and at first glance it works . (I will need to do more testing to be sure of that.). Thanks a lot. Lic. Heraldo G. Rodriguez hrodriguez at siscat.com.ar TEL: 54-11-4326-4002 int 255 Dpto. Desarrollo Sistemas Catastrales S.A -----Mensaje original----- De: thomas bonfort [mailto:thomas.bonfort at gmail.com] Enviado el: lunes, 01 de septiembre de 2008 13:27 Para: Rodriguez, Heraldo CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] Spam: odd behaviour with labels using AGG can you link to a screenshot of the problem please? also could you try with the trunk version, or apply the patch of http://trac.osgeo.org/mapserver/ticket/2756 and report if that fixes the problem cheers, thomas On Mon, Sep 1, 2008 at 5:08 PM, Rodriguez, Heraldo wrote: > Hi everyone, > We have just upgraded from mapserver 4.8.2 to 5.2 in order > to use the new AGG rendering engine. > The graphics look great, but labels show a weird > behaviour . All labels seem to overlap and collide with others ( using > the same map and using gd instead of agg we have no problems with > labels) > We are using javamapscript , > We compiled mapserver with the following parameters > > ./configure --with-postgis=/usr/bin/pg_config --enable-debug > --with-threads --without-pdf --without-tiff > --with-gdal=/usr/bin/gdal-config --with-ogr=/usr/bin/gdal-config > --with-freetype=/usr/bin --with-png=/usr/bin > --with-libiconv=/usr/local/bin/iconv --without-xpm --with-zlib=/usr > --without-eppl --with-agg=/usr/local --without-mygis > > in a Debian 4.0 etch. > > Tha layer with problems is calles > > Any help would be appreciated. Thanks in advance . > > Our Map file is the following > > MAP > IMAGETYPE AGG > EXTENT -9289.683594 -10641.172852 13757.177734 > 13053.350586 > SIZE 490 500 > IMAGECOLOR 255 255 0 > TEMPLATEPATTERN 'template1*' > FONTSET "/usr/local/mapserver/font.list" > > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > TRANSPARENT ON > EXTENSION "png" > END > > OUTPUTFORMAT > NAME PNG24 > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > TRANSPARENT ON > EXTENSION "png" > END > > OUTPUTFORMAT > NAME AGG > DRIVER AGG/PNG > IMAGEMODE RGB > extension "png" > mimetype "image/png" > END > > OUTPUTFORMAT > NAME AGGA > DRIVER AGG/PNG > IMAGEMODE RGBA > END > > > > > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE TINY > END > STYLE 0 > SIZE 100 2 > COLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS Meters > INTERVALS 2 > TRANSPARENT ON > STATUS EMBED > END # Scalebar object > > > SYMBOL > NAME "triangle" > TYPE vector > FILLED true > POINTS > 0 4 > 2 0 > 4 4 > 0 4 > END > END > > # SYMBOL > # NAME "cartoline" > # TYPE cartoline > # LINECAP round #[butt|round|square|triangle] > # LINEJOIN miter #[round|miter|bevel] > # LINEJOINMAXSIZE 3 > ## STYLE > ## 40 17 1 17 1 17 1 17 > ## END > #END > > # SYMBOL > # NAME "carto2" > # TYPE cartoline > # LINECAP round #[butt|round|square|triangle] > # LINEJOIN miter #[round|miter|bevel] > # LINEJOINMAXSIZE 3 > # STYLE > # 3 4 > # END > # END > > SYMBOL > NAME 'rectangle-train' > TYPE ELLIPSE > POINTS > 1 1 > END > FILLED TRUE > PATTERN > 10 10 10 10 > END > END > > SYMBOL > NAME "circle" > TYPE ellipse > FILLED true > POINTS > 1 1 > END > END > > > > SYMBOL > NAME 'punkt' > TYPE ELLIPSE > POINTS > 1 1 > END > FILLED TRUE > END > > SYMBOL > NAME "prueba" > TYPE TRUETYPE > FONT "cartografia" > CHARACTER "1" > END > > > > LEGEND > KEYSIZE 12 8 > Label > Size 7 > type truetype > font "vera" > end > STATUS ON > END > > QUERYMAP > Color 255 255 0 > Style Hilite > END > > LAYER > NAME entorno > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > # DATA entorno/the_geom > DATA "the_geom FROM entorno" > GROUP Geograficos > STATUS ON > TYPE POLYGON > CLASSITEM "destino" > CLASS > NAME "Rio de la Plata" > EXPRESSION 'RIO DE LA PLATA' > TEMPLATE './QueryTemplates/entorno.html' > STYLE > # COLOR 209 221 235 > # g Earth > COLOR 153 179 204 > OUTLINECOLOR 209 221 235 > END > END > > CLASS > NAME "Provincia" > EXPRESSION 'PROVINCIA DE BUENOS AIRES' > TEMPLATE './QueryTemplates/entorno.html' > STYLE > # COLOR 236 237 223 > COLOR 230 231 217 > # COLOR 230 231 217 > # OUTLINECOLOR 236 237 223 > END > END > > CLASS > NAME "Entorno Capital" > TEMPLATE './QueryTemplates/entorno.html' > STYLE > # COLOR 255 255 255 > # g Earth > # COLOR 235 230 220 > # COLOR 237 234 226 > COLOR 255 255 255 > # COLOR 247 244 238 > # OUTLINECOLOR 255 255 255 > END > END > END > > > > LAYER > NAME calles > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > DATA "the_geom FROM calles" > > GROUP Geograficos > STATUS ON > TYPE LINE > > # columna agregada a la tabla por cuestiones de las > etiquetas > LABELITEM rotulo > SYMBOLscaledenom 40000 > CLASSITEM nombre > labelMaxscaledenom 25000 > CLASS > NAME "calles" > TEMPLATE './QueryTemplates/calles.html' > STYLE > color 255 255 255 > OUTLINECOLOR 106 106 106 > # SYMBOL "cartoline" > END > Label > minsize 3 > Size 3 > maxsize 9 > type truetype > ANGLE FOLLOW > Priority 5 > buffer 10 > PARTIALS false > FORCE false > MINDISTANCE 300 > outlinecolor 255 255 255 > font "vera" > color 35 35 35 > end > > END > END > > LAYER > NAME manzanas > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > GROUP Geograficos > DATA "the_geom FROM manzanas" > STATUS ON > TYPE POLYGON > LABELITEM manz > LabelMaxscaledenom 2500 > CLASS > NAME "Manzanas" > TEMPLATE './QueryTemplates/manzanas.html' > STYLE > # COLOR 252 224 131 > # COLOR 246 231 175 > COLOR 237 234 226 #g earth > # COLOR 248 218 161 > # COLOR 246 231 195 > # COLOR 247 231 215 > OUTLINECOLOR 255 255 255 > END > Label > Size 9 > type truetype > ANGLE FOLLOW > PARTIALS false > POSITION UC > font "vera" > color 66 66 66 > end > END > END > > > LAYER > NAME parcelas > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > DATA "the_geom FROM parcelas" > STATUS ON > TYPE POLYGON > OPACITY 80 > MAXscaledenom 15000 > LABELITEM parcela > LabelMaxscaledenom 1200 > CLASS > NAME "parcelas" > TEMPLATE './QueryTemplates/plazas.html' > STYLE > COLOR 242 239 233 #g > earth > OUTLINECOLOR 210 210 210 > END > Label > minsize 7 > Size 7 > maxsize 8 > type truetype > PARTIALS false > Buffer 0 > MINDISTANCE 10 > font "vera" > color 86 86 86 > minfeaturesize 1 > FORCE true > end > END > END > > LAYER > NAME parcelas_lab > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > DATA "the_geom FROM parcelas_lab" > STATUS Off > TYPE POINT > OPACITY 80 > MAXscaledenom 1200 > LABELITEM parcela > LabelMaxscaledenom 1200 > CLASS > NAME "parcelas_lab" > TEMPLATE './QueryTemplates/plazas.html' > STYLE > COLOR 242 239 233 > # Minsize 4 > # size 4 > # MAXSIZE 6 > END > Label > minsize 7 > Size 7 > maxsize 8 > type truetype > PARTIALS false > # POSITION uc > Buffer 0 > MINDISTANCE 10 > # OUTLINECOLOR 255 255 255 > font "vera" > color 86 86 86 > # color 237 234 226 > minfeaturesize 1 > FORCE true > end > > END > END > > > LAYER > NAME plazas > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > DATA "the_geom FROM plazas" > STATUS ON > GROUP Geograficos > TYPE POLYGON > LabelMaxscaledenom 10000 > LABELITEM destino > TEMPLATE './QueryTemplates/entorno.html' > CLASS > NAME "Plazas" > # TEMPLATE './QueryTemplates/plazas.html' > STYLE > # COLOR 189 230 175 transparente > # COLOR 124 206 100 original > # COLOR 140 210 120 > # g Earth > COLOR 167 204 149 > # COLOR 15 164 141 > OUTLINECOLOR 255 255 255 > END > Label > Minsize 6 > Size 8 > MAXSIZE 9 > type truetype > PARTIALS false > Position CC > Buffer 0 > outlinecolor 255 255 255 > font "vera" > COLOR 25 25 25 > minfeaturesize 35 > end > END > > END > > > > LAYER > NAME plazas_lab > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > DATA "the_geom FROM pzlab" > STATUS Off > GROUP Geograficos > TYPE POINT > LabelMaxscaledenom 10000 > LABELITEM destino > TEMPLATE './QueryTemplates/entorno.html' > CLASS > NAME "Plazas" > # TEMPLATE './QueryTemplates/plazas.html' > STYLE > # COLOR 189 230 175 transparente > # COLOR 124 206 100 original > # COLOR 140 210 120 > # g Earth > COLOR 167 204 149 > # COLOR 15 164 141 > OUTLINECOLOR 255 255 255 > END > Label > Minsize 6 > Size 8 > MAXSIZE 9 > type truetype > # ANGLE AUTO > PARTIALS false > Position CC > Buffer 0 > # MINDISTANCE 200 > outlinecolor 255 255 255 > font "vera" > # color 0 0 200 > COLOR 25 25 25 > minfeaturesize 35 > end > END > END > > > > LAYER > NAME secciones > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > DATA "the_geom FROM secciones" > GROUP Geograficos > STATUS ON > TYPE POLYGON > LABELITEM seccion_id > LabelMaxscaledenom 70000 > LabelMinscaledenom 4000 > CLASS > NAME "Secciones" > TEMPLATE './QueryTemplates/barrios.html' > STYLE > OUTLINECOLOR 48 123 193 > width 2 > END > > Label > Minsize 8 > Size 8 > MAXSIZE 9 > type truetype > PARTIALS false > POSITION uc > Buffer 0 > outlinecolor 255 255 255 > font "vera" > COLOR 48 123 193 > end > > END > END > > > LAYER > NAME circunscripciones > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > DATA "the_geom FROM circunscripciones" > GROUP Geograficos > STATUS ON > TYPE POLYGON > LABELITEM circuns_id > LabelMaxscaledenom 90000 > LabelMinscaledenom 4000 > CLASS > NAME "Circunscripciones" > TEMPLATE './QueryTemplates/barrios.html' > STYLE > OUTLINECOLOR 255 123 193 > width 2 > END > > Label > Minsize 8 > Size 10 > MAXSIZE 12 > type truetype > PARTIALS false > POSITION uc > Buffer 0 > outlinecolor 255 255 255 > font "vera" > COLOR 255 123 193 > MINDISTANCE 400 > end > > END > END > > LAYER > NAME vias > CONNECTION "user=***** password=******* dbname=**** > host=*****.sc.com port=5432" > CONNECTIONTYPE postgis > DATA "the_geom FROM vias" > GROUP Geograficos > STATUS ON > TYPE LINE > LABELMAXscaledenom 2700 > MAXscaledenom 2700 > LABELITEM ffcc > SYMBOLscaledenom 1000 > CLASS > NAME "vias" > TEMPLATE './QueryTemplates/vias.html' > > STYLE > COLOR 186 186 186 > SYMBOL 'punkt' > MAXSIZE 6 > SIZE 6 > END > STYLE > COLOR 255 250 115 > SYMBOL 'punkt' > MAXSIZE 4 > SIZE 4 > END > > STYLE > COLOR 186 186 186 > SYMBOL 'rectangle-train' > MAXSIZE 4 > SIZE 4 > END > > Label > MAXSIZE 11 > Size 11 > type truetype > ANGLE FOLLOW > PARTIALS false > POSITION UC > MINDISTANCE 250 > outlinecolor 255 255 255 > font "vera" > color 5 5 5 > end > > > END > END > > SYMBOL #North Arrow > NAME "northarrow1" > TYPE pixmap > IMAGE "north.png" > END > > LAYER > NAME "North Arrow" > POSTLABELCACHE TRUE > STATUS ON > TRANSFORM FALSE > TYPE POINT > OPACITY 80 > FEATURE > POINTS 20 25 END > END > CLASS > SYMBOL 'northarrow1' > STYLE END > END > END > > > > END > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at dnr.state.mn.us Mon Sep 1 15:34:05 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 01 Sep 2008 17:34:05 -0500 Subject: [mapserver-users] Dynamic symbols based on attribute - how? Message-ID: <48BC278D0200008F0001B02A@co5.dnr.state.mn.us> Steve: You can bind the symbol to an attribute but the attribute must contain the entire text necessary to access the image. That is, the column "icon" must contain the "C:\Inetpub\wwwroot\Map\images\". Then you can do: SYMBOL [icon] If you're using PostGIS you can do this on-the-fly. Shapefiles will require some processing. Steve >>> "Steve White" 08/30/08 4:09 PM >>> I'm using MS4W version 2.2.7 and have an Icon field in my shp file. My map file CLASS for the layer looks like this: CLASS TEMPLATE "C:\Inetpub\wwwroot\Map\test.html" SYMBOL "C:\Inetpub\wwwroot\Map\images\[Icon]" SIZE 16 COLOR 255 0 255 END This doesn't want to play because I get the following error: Undefined overlay symbol "C:\Inetpub\wwwroot\Map\images\[Icon]" If I add an explicit png file name it works, like this: CLASS TEMPLATE "C:\Inetpub\wwwroot\Map\test.html" SYMBOL "C:\Inetpub\wwwroot\Map\images\test.png" SIZE 16 COLOR 255 0 255 END I thought it was possible to use attribute data in a map file like this. How would I get this to work so that my data holds the filenames and I can have different icons per item? Cheers, Steve From Steve.Lime at dnr.state.mn.us Mon Sep 1 15:48:29 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 01 Sep 2008 17:48:29 -0500 Subject: [mapserver-users] GetFeatureInfo for number in textfield Message-ID: <48BC2AED0200008F0001B037@co5.dnr.state.mn.us> nr is also a template substitution string (means number of results) in mapserver templates so I'm guessing that's being returned instead of the column values. A value of 1 for every result seems to confirm that. The work around would be to rename the column in your SQL statement (eg "nr as mynr"). Steve >>> "Sven Schroeter" 09/01/08 10:54 AM >>> Hi, My System: Mapserver 5.02 on Win 2003 Server with Postgres/Postgis 8.3/1.3. I make a GetFeatureInfo Request from a WMS-Service: With INFO_FORMAT=text/plain every field from my Postgis-table comes with a correctly result: For example GetFeatureInfo results: Layer 'naturschutzgebiet' Feature 13288152: geodb_oid = '175' objectid = '175' nr = '23308' name = 'Ernstberg' ... The Field "nr" is a textfield with some numbers as strings, for example nr = '23308'. If I try to get a result via html-template (INFO_FORMAT=text/html) everything works fine except the field "nr". For this field I get in every query a "1". any ideas? Thanks Sven _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From schroeter at netgis.de Tue Sep 2 00:32:33 2008 From: schroeter at netgis.de (Sven Schroeter) Date: Tue, 2 Sep 2008 09:32:33 +0200 Subject: [mapserver-users] GetFeatureInfo for number in textfield References: <48BC2AED0200008F0001B037@co5.dnr.state.mn.us> Message-ID: <003401c90cce$108e7e60$08b2a8c0@SVEN> Steve, it's really the problem with the template substitution string, with "mynr" it works, thank you very much! Sven ----- Original Message ----- From: "Steve Lime" To: ; Sent: Tuesday, September 02, 2008 12:48 AM Subject: Re: [mapserver-users] GetFeatureInfo for number in textfield nr is also a template substitution string (means number of results) in mapserver templates so I'm guessing that's being returned instead of the column values. A value of 1 for every result seems to confirm that. The work around would be to rename the column in your SQL statement (eg "nr as mynr"). Steve >>> "Sven Schroeter" 09/01/08 10:54 AM >>> Hi, My System: Mapserver 5.02 on Win 2003 Server with Postgres/Postgis 8.3/1.3. I make a GetFeatureInfo Request from a WMS-Service: With INFO_FORMAT=text/plain every field from my Postgis-table comes with a correctly result: For example GetFeatureInfo results: Layer 'naturschutzgebiet' Feature 13288152: geodb_oid = '175' objectid = '175' nr = '23308' name = 'Ernstberg' ... The Field "nr" is a textfield with some numbers as strings, for example nr = '23308'. If I try to get a result via html-template (INFO_FORMAT=text/html) everything works fine except the field "nr". For this field I get in every query a "1". any ideas? Thanks Sven _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From gis at vanbooth.com Tue Sep 2 03:03:02 2008 From: gis at vanbooth.com (Rob) Date: Tue, 2 Sep 2008 11:03:02 +0100 Subject: [mapserver-users] Recalculating CELLSIZE Message-ID: <2a955f950809020303y4822c0c4o3ec945c00bce9ea@mail.gmail.com> Many, many apologies if this is a repost(?), but I couldn't see my reply in the Nabble thread list. Following on from my previous posts about problems with MAXSCALE, it looks like I've made some basic assumptions regarding scale and extents based on how MapServer 4.8.3 worked, but that have since been changed as part of RFC-25. What I think I need to do is modify the code so that those basic assumptions hold true once more. I'm trying to modify the mapserver code to compute the cellsize based on my original extent calculations, and not the extent calculations that Mapserver now uses. Based on the following links http://mapserver.gis.umn.edu/development/rfc/ms-rfc-25/ http://trac.osgeo.org/mapserver/ticket/2015 http://trac.osgeo.org/mapserver/changeset/6529 http://trac.osgeo.org/mapserver/changeset/5895 I have modified the folllowing : maputil.c - msAdjustExtent ox = MS_MAX(((width) - (rect->maxx - rect->minx)/cellsize)/2,0); oy = MS_MAX(((height) - (rect->maxy - rect->miny)/cellsize)/2,0); mapscale.c - msCalculateScale md = (width)/(resolution*msInchesPerUnit(units, center_y)); maptemplate.c - setExtent case FROMSCALE: cellsize = (msObj->Scale/msObj->Map->resolution)/msInchesPerUnit(msObj->Map->units,0); // user supplied a point and a scale msObj->Map->extent.minx = msObj->MapPnt.x - cellsize*msObj->Map->width/2.0; msObj->Map->extent.miny = msObj->MapPnt.y - cellsize*msObj->Map->height/2.0; msObj->Map->extent.maxx = msObj->MapPnt.x + cellsize*msObj->Map->width/2.0; msObj->Map->extent.maxy = msObj->MapPnt.y + cellsize*msObj->Map->height/2.0; mapserver.h #define MS_CELLSIZE(min,max,d) ((max - min)/d) I'm still getting figures that are ever so slightly out (1:1,999,995 instead of 1:2m), but these margins still vary depending on image size, so I still can't just modify my MAXSCALEDENOM values to compensate for any potential rounding errors that may be causing the discrepancies. I'm not up to speed on what all the components of the code do - should I also be modifying some of the width-1 calculations that are in mapprimitive.c (msOffsetPointRelativeTo) ? Is there anything else I have missed? Many thanks in advance Rob From ramses2k at gmx.de Tue Sep 2 03:10:14 2008 From: ramses2k at gmx.de (ramses2k) Date: Tue, 2 Sep 2008 12:10:14 +0200 Subject: [MAPSERVER-USERS] Problems calculating MAXSCALES References: <48A3E57D0200008F0001A933@co5.dnr.state.mn.us> <2a955f950809010324x14e333dfl3e0bfd6b53fd94fd@mail.gmail.com> Message-ID: <004901c90ce4$1776aca0$0902a8c0@diebels> Dear List, I got Raster files of a local authority which I want to use and show in Mapserver. The files are TIF format (up to 10MB is that too big?), and 3 description files - *.tfw , *.tab, *.eck - are included (listed below). Has anyone got experience how to set up the mapfile properly? TFW: ____________________________ 0.5 0.0 0.0 -0.5 3452000 5500000 TAB: ______________________________________ !table !version 300 !charset WindowsLatin1 Definition Table File "PG10_3452_5494_508.tif" Type "RASTER" (3452000,5494000) (0,11999) Label "Pt 1", (3458000,5494000) (11999,11999) Label "Pt 2", (3458000,5500000) (11999,0) Label "Pt 3", (3452000,5500000) (0,0) Label "Pt 4" CoordSys Earth Projection 8, 1000, "m", 9, 0, 1, 3500000, 0 Units "m" ECK _____________________ 600 600 3428016.63 5518516.46 719 9497 3428313.61 5540758.79 10277 9390 3452208.86 5540492.54 10198 493 3452010.88 5518249.89 From c.willmes at uni-koeln.de Tue Sep 2 03:42:49 2008 From: c.willmes at uni-koeln.de (Christian Willmes) Date: Tue, 02 Sep 2008 12:42:49 +0200 Subject: [mapserver-users] Image handling error Message-ID: <48BD18A9.30305@uni-koeln.de> Hello, I'm trying to set up a WMS using Mapserver. On my local System I get it to work using vector data (shapefiles) and raster data input. On the public webserver from our universities computing centre, I don't get it to work with 'quite' similar setup as on my local test system (problem is, I don't get admin rights to configure it my self on the server, so I have to ask the admins for every installation etc). Just using vector data it works fine, but by using raster data input I get the following message: <----- msDrawMap(): Image handling error. Failed to draw layer named 'srtm_elevation'. msDrawRaster(): Image handling error. Unrecognized or unsupported image format drawEPP(): Image handling error. EPPL7 support is not available. -------> I asked the admins to check the gdal installation on the server. It seems all is installed properly. The raster format I'm using is supported according to the gdalinfo output the admins provided me: <------ a0646 at lvr18$ gdalinfo --formats Supported Formats: [...] GTiff (rw+): GeoTIFF [...] PNG (rw): Portable Network Graphics JPEG (rw): JPEG JFIF [...] BMP (rw+): MS Windows Device Independent Bitmap -----> I converted the data to the four above mentioned formats (wich are supported by the servers GDAL installation according to gdalinfo). But its all the same error on the server. These data are all works fine on my local setup with mapserver. There was a similar Thread a month ago (http://lists.osgeo.org/pipermail/mapserver-users/2008-August/057027.html) on this list. But as far as I can see no resolution for the problem? Is this problem solved meanwhile? Thanks very much in advance! Best regards, Christian -- Christian Willmes AG GIS & Fernerkundung | GIS & RS Group Geographisches Institut | Institute of Geography Universit?t K?ln | University of Cologne http://www.geographie.uni-koeln.de/gis/ Tel.: +49 (0)221 470 7431 From Tom.Kralidis at ec.gc.ca Tue Sep 2 04:07:35 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Tue, 2 Sep 2008 07:07:35 -0400 Subject: [mapserver-users] WMS query problems in Mapserver 5.2 In-Reply-To: <1220283227191-801600.post@n2.nabble.com> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF508@ecburexch1.ontario.int.ec.gc.ca> FYI this was addressed in http://trac.osgeo.org/mapserver/ticket/2737 and will be in 5.2.1 ..Tom ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of capgre Sent: 01 September, 2008 11:34 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS query problems in Mapserver 5.2 Hi, We just installed the version 5.2 of Mapserver in our server. We have noticed that when performing a WMS query (GetMap, GetFeatureInfo or GetLegendGraphic requests), if the parameter SERVICE=WMS is not provided, Mapserver returns the following exception: msWFSDispatch(): WFS server error. Incomplete WFS request: SERVICE parameter missing Requests without the parameter work fine when using prior versions of mapserver. As long as I know, the WMS specification does not mention that this parameter is mandatory in the requests (except in GetCapabilities). Does anyone know if this behavior is expected in mapserver or should be considered a bug? ________________________________ View this message in context: WMS query problems in Mapserver 5.2 Sent from the Mapserver - User mailing list archive at Nabble.com. From nils.zierath at uni-bonn.de Tue Sep 2 04:13:34 2008 From: nils.zierath at uni-bonn.de (Nils Zierath) Date: Tue, 02 Sep 2008 13:13:34 +0200 Subject: [mapserver-users] howto draw amount of points features of one layer depending on scale In-Reply-To: <48B5642A.2040306@dmsolutions.ca> References: <48B4251F.6050905@uni-bonn.de> <48B42F47.9060601@pdx.edu> <48B559DC.8060603@uni-bonn.de> <48B5642A.2040306@dmsolutions.ca> Message-ID: <48BD1FDE.4010902@uni-bonn.de> Yewondwossen, thanks for the link. I had to switch off the "FORCE true" option of the sample map file and it now works perfectly. Nils Yewondwossen Assefa schrieb: > Nils, > > look at this thread: it gives details of what you want to accomplish > with an example of a working layer: > > http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg00164.html > > Best Regards, > > Nils Zierath wrote: >> Hi David, >> your suggestion is similar to Jeff's? >> How would I treat a point as lable? I haven't had any luck in >> displaying the points with "TYPE ANNOTATION". >> >> What would the syntax in the mapfile would look like to either treat a >> point as lable or with "TYPE ANNOTATION"? >> >> My mapfile currently looks like: >> >> LAYER >> NAME 'Field research locations' >> DATA '../vector/gps/fieldresearch_complete' >> STATUS default >> TYPE point >> #TYPE annotation >> TRANSPARENCY 100 >> TOLERANCE 7 >> TOLERANCEUNITS pixels >> UNITS kilometers >> >> METADATA >> ... >> END #METADATA >> >> PROJECTION >> ... >> END #PROJECTION >> >> CLASSITEM 'StudyFocus' >> #LABELITEM 'LableAnnot' >> >> CLASS >> NAME 'Research locations (all)' >> #MINSCALEDENOM 1000000 >> >> STYLE >> SYMBOL 'ttf_pin-sm' >> SIZE 10 >> COLOR 255 180 0 >> ANGLE 345 >> END #STYLE >> END #CLASS >> END #LAYER >> >> >> >> David Percy schrieb: >>> If you treated them as labels when zoomed out (maxscale 50000 for >>> example), then you could take advantage of the label colission >>> features of mapserver to avoid overlaps. >>> >>> when zoomed in further you could have another layer (minscale 50000 >>> for example) that shows all the detail... >>> >>> so you would have two layer definitions in this case... >>> Cheers, >>> Percy >>> >>> >>> Nils Zierath wrote: >>>> Dear list, >>>> I got a layer with gps points. On the largest scale of my map the >>>> symbols for points overlap and are not distinguishable from one >>>> another since they are too close together. >>>> >>>> Is it possible to tell mapserver to draw only that many of the >>>> points/symbols that do not overlap, so that more points will be >>>> shown the more I zoom into the map? >>>> >>>> Thank you, >>>> Nils >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > From ramses2k at gmx.de Tue Sep 2 04:15:13 2008 From: ramses2k at gmx.de (ramses2k) Date: Tue, 2 Sep 2008 13:15:13 +0200 Subject: [MAPSERVER-USERS] Handling TIF Raster files References: <48A3E57D0200008F0001A933@co5.dnr.state.mn.us><2a955f950809010324x14e333dfl3e0bfd6b53fd94fd@mail.gmail.com> <004901c90ce4$1776aca0$0902a8c0@diebels> Message-ID: <006901c90ced$2b6dfa20$0902a8c0@diebels> Dear List, I got Raster files of a local authority which I want to use and show in Mapserver. The files got TIF format (up to 10MB is that too big?), and 3 description files - *.tfw , *.tab, *.eck - are included (listed below). Has anyone got experience how to set up the mapfile properly? Regards Clemens > TFW: > ____________________________ > 0.5 > 0.0 > 0.0 > -0.5 > 3452000 > 5500000 > > > > TAB: > ______________________________________ > !table > !version 300 > !charset WindowsLatin1 > > Definition Table > File "PG10_3452_5494_508.tif" > Type "RASTER" > (3452000,5494000) (0,11999) Label "Pt 1", > (3458000,5494000) (11999,11999) Label "Pt 2", > (3458000,5500000) (11999,0) Label "Pt 3", > (3452000,5500000) (0,0) Label "Pt 4" > CoordSys Earth Projection 8, 1000, "m", 9, 0, 1, 3500000, 0 > Units "m" > > > ECK > _____________________ > 600 600 3428016.63 5518516.46 > 719 9497 3428313.61 5540758.79 > 10277 9390 3452208.86 5540492.54 > 10198 493 3452010.88 5518249.89 > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From warmerdam at pobox.com Tue Sep 2 05:49:39 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 02 Sep 2008 08:49:39 -0400 Subject: [MAPSERVER-USERS] Handling TIF Raster files In-Reply-To: <006901c90ced$2b6dfa20$0902a8c0@diebels> References: <48A3E57D0200008F0001A933@co5.dnr.state.mn.us><2a955f950809010324x14e333dfl3e0bfd6b53fd94fd@mail.gmail.com> <004901c90ce4$1776aca0$0902a8c0@diebels> <006901c90ced$2b6dfa20$0902a8c0@diebels> Message-ID: <48BD3663.9010304@pobox.com> ramses2k wrote: > Dear List, > > I got Raster files of a local authority which I want to use and show in > Mapserver. The files got TIF format (up to 10MB is that too big?), and 3 > description files - *.tfw , *.tab, *.eck - are included (listed > below). Has anyone got experience how to set up the mapfile properly? Clemens, The .tab file includes a projection definition that in WKT looks like: PROJCS["unnamed", GEOGCS["unnamed", DATUM["DHDN_Potsdam_Rauenberg", SPHEROID["Bessel 1841",6377397.155,299.1528128], TOWGS84[582,105,414,1.04,0.35,-3.08,8.3]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",9], PARAMETER["scale_factor",1], PARAMETER["false_easting",3500000], PARAMETER["false_northing",0], UNIT["Meter",1]] In your MAP file you would use a clause like this within your LAYER. PROJECTION "+proj=tmerc +lon_0=9 +x_0=3500000 +ellps=bessel +towgs84=582,105,414,1.04,0.35,-3.08,8.3" END The .tfw file should be used directly by MapServer to georeference your image. The eck file seems to be an alternative to the .tfw file with georeferencing for the image. Beyond this I would encourage you to review the Raster Data HOWTO for more information on raster layers. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From shurhenv at mail.ru Tue Sep 2 07:14:38 2008 From: shurhenv at mail.ru (shurhen) Date: Tue, 02 Sep 2008 18:14:38 +0400 Subject: [mapserver-users] Highlighting query results Message-ID: Hi! I'm newbie in mapserver :) I need to highlight query results. I wanna select object by attribute and then highlight it. But I've not found any information how can I do this. Most of GIS have possibility to highlight selected objects, therefore I suppose what MapServer has this ability too. "Selected" means to highlight object when I click at it, and to return to its previous color when I click at another object. I've found similar question http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0309/msg00063.html but unfortunately it remains without any answer :( If there is no way except to color selected object manually, please help me to do this too. Here is Mapscript code example based on the info what I found on this site: a_layer.queryByAttributes(m_map, null, a_query, 1); using (resultCacheObj results = a_layer.getResults()) { if (results != null && results.numresults > 0) { a_layer.open(); for(int i = 0; i < results.numresults; i++) { resultCacheMemberObj a_result = results.getResult(i); shapeObj a_obj = a_layer.getFeature(a_result.shapeindex, a_result.tileindex); // WHAT NEXT?? } a_layer.close(); } } PS Sorry for my English, but I hope you've understood me From shane at mid-westgis.com Tue Sep 2 08:47:18 2008 From: shane at mid-westgis.com (Shane McDermott) Date: Tue, 2 Sep 2008 10:47:18 -0500 Subject: [mapserver-users] MapServer Developer needed Message-ID: <20080902154824.1C8CDE012B3@lists.osgeo.org> I am looking for a developer that can modify an existing application that was developed using MapServer. If you are interested please contact me at shane at mid-westgis.com or call me at 217-222-7793. Shane McDermott, President Mid-West GIS, Inc. 510 Maine St, Suite 510 Quincy, IL 62301 Email - shane at mid-westgis.com Web - www.Mid-WestGIS.com Phone (217) 222-7793 Cell (217) 242-1125 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 2902 bytes Desc: not available URL: From warmerdam at pobox.com Tue Sep 2 09:05:48 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 02 Sep 2008 12:05:48 -0400 Subject: [mapserver-users] MapServer Developer needed In-Reply-To: <20080902154824.1C8CDE012B3@lists.osgeo.org> References: <20080902154824.1C8CDE012B3@lists.osgeo.org> Message-ID: <48BD645C.4040105@pobox.com> Shane McDermott wrote: > I am looking for a developer that can modify an existing application > that was developed using MapServer. If you are interested please contact > me at shane at mid-westgis.com or call me at 217-222-7793. Shane, In addition to asking here, you can also search the OSGeo service provider directory for various kinds of MapServer related consultants and service providers. http://www.osgeo.org/search_profile the following query returns all those registering themselves as having MapServer expertise and providing service in the USA. http://www.osgeo.org/search_profile?SET=1&MUL_COUNTRY%5B%5D=00007&MUL_TECH%5B%5D=00018 When sending out an email request it can be very helpful to narrow down the skills that will be needed somewhat. For instance, are you looking for a core developer that can modify the MapServer C code? Or someone working at the mapserver-cgi + mapfile level? Or perhaps you require expertise with a particular mapscript language such as PHP MapScript? Or a particular application development environment like Chameleon, Mapbender, Fusion, or CartoWeb? Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From Steve.Lime at dnr.state.mn.us Tue Sep 2 11:11:33 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 02 Sep 2008 13:11:33 -0500 Subject: [mapserver-users] Highlighting query results In-Reply-To: References: Message-ID: <48BD3B85.5157.008F.0@dnr.state.mn.us> MapServer supports what's called a query map. It basically replaces the color of the top-most style for a layer with one defined in the query map object (default is yellow). Typically in MapScript you'd do: a_layer.queryByAttributes(m_map, null, a_query, 1); img = m_map.drawQuery(); You can of course get fancier and step through the result set by hand but I wouldn't recommend starting that way. Steve >>> On 9/2/2008 at 9:14 AM, in message , shurhen wrote: > Hi! > > I'm newbie in mapserver :) > > I need to highlight query results. I wanna select object by attribute and > then highlight it. But I've not found any information how can I do this. Most > of GIS have possibility to highlight selected objects, therefore I suppose > what MapServer has this ability too. "Selected" means to highlight object > when I click at it, and to return to its previous color when I click at > another object. > I've found similar question > > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0309/msg00063.html > > but unfortunately it remains without any answer :( > > If there is no way except to color selected object manually, please help me > to do this too. > > Here is Mapscript code example based on the info what I found on this site: > > a_layer.queryByAttributes(m_map, null, a_query, 1); > using (resultCacheObj results = a_layer.getResults()) > { > if (results != null && results.numresults > 0) > { > a_layer.open(); > for(int i = 0; i < results.numresults; i++) > { > resultCacheMemberObj a_result = > results.getResult(i); > shapeObj a_obj = > a_layer.getFeature(a_result.shapeindex, a_result.tileindex); > > > > // WHAT NEXT?? > > > } > a_layer.close(); > } > } > > PS Sorry for my English, but I hope you've understood me > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From paulborodaev at gmail.com Tue Sep 2 14:06:49 2008 From: paulborodaev at gmail.com (BrainDrain) Date: Tue, 2 Sep 2008 14:06:49 -0700 (PDT) Subject: [MAPSERVER-USERS] How to handle correctly OL 'gutter' parameter with mapserver (illustrated) Message-ID: <19278385.post@talk.nabble.com> I use OpenLayers in conjunction with MapServer. I construct image with 256x256 tiles and when I got problem with partilal pixmap simbols 32x32 http://www.nabble.com/file/p19278385/ex1.jpg I have fixed it by using 'oversize' tile effect of putting gutter (16px) parameter into may OL layer: http://www.nabble.com/file/p19278385/ex2.jpg but this solution produces other problem, which I don't know how to fix - partial labels (specifying 'PARTIALS FALSE' in map file doesn't help in this case because it deals with real (requested) tile image size, not with visible size): http://www.nabble.com/file/p19278385/ex3.jpg This is very important for me now! I could replace pixmap's with truetype's, but could it helps me? -- View this message in context: http://www.nabble.com/How-to-handle-correctly-OL-%27gutter%27-parameter-with-mapserver-%28illustrated%29-tp19278385p19278385.html Sent from the Mapserver - User mailing list archive at Nabble.com. From rpinho_eng at yahoo.com.br Tue Sep 2 15:05:50 2008 From: rpinho_eng at yahoo.com.br (Ricardo Pinho) Date: Tue, 2 Sep 2008 15:05:50 -0700 (PDT) Subject: [mapserver-users] GISVM - Free GIS Virtual Machine Pre-release Message-ID: <898840.32095.qm@web65714.mail.ac4.yahoo.com> Dear all, A pre-release version of "GIS Virtual Machine" is available at : www.gisvm.com GISVM is intended to be a full-feature GIS Workstation based exclusively on free GIS software, including Mapserver and PHP MapScript. Please feel free to download it and enjoy!!! Regards, -- Ricardo Pinho Novos endere?os, o Yahoo! que voc? conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com. http://br.new.mail.yahoo.com/addresses From paulborodaev at gmail.com Tue Sep 2 22:32:38 2008 From: paulborodaev at gmail.com (BrainDrain) Date: Tue, 2 Sep 2008 22:32:38 -0700 (PDT) Subject: [MAPSERVER-USERS] Highlighting query results In-Reply-To: <48BD3B85.5157.008F.0@dnr.state.mn.us> References: <48BD3B85.5157.008F.0@dnr.state.mn.us> Message-ID: <19283148.post@talk.nabble.com> Instead of draw query I use map.saveQuery to file and then 'queryFile' param of mapserv cgi. I think it is useful too (C# mapscript slower then cgi on windows). Steve Lime wrote: > > MapServer supports what's called a query map. It basically replaces the > color of the top-most > style for a layer with one defined in the query map object (default is > yellow). Typically in MapScript > you'd do: > > a_layer.queryByAttributes(m_map, null, a_query, 1); > img = m_map.drawQuery(); > > You can of course get fancier and step through the result set by hand but > I wouldn't recommend > starting that way. > > Steve > > >>>> On 9/2/2008 at 9:14 AM, in message > , shurhen > > wrote: >> Hi! >> >> I'm newbie in mapserver :) >> >> I need to highlight query results. I wanna select object by attribute and >> then highlight it. But I've not found any information how can I do this. >> Most >> of GIS have possibility to highlight selected objects, therefore I >> suppose >> what MapServer has this ability too. "Selected" means to highlight object >> when I click at it, and to return to its previous color when I click at >> another object. >> I've found similar question >> >> http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0309/msg00063.html >> >> but unfortunately it remains without any answer :( >> >> If there is no way except to color selected object manually, please help >> me >> to do this too. >> >> Here is Mapscript code example based on the info what I found on this >> site: >> >> a_layer.queryByAttributes(m_map, null, a_query, 1); >> using (resultCacheObj results = a_layer.getResults()) >> { >> if (results != null && results.numresults > 0) >> { >> a_layer.open(); >> for(int i = 0; i < results.numresults; i++) >> { >> resultCacheMemberObj a_result = >> results.getResult(i); >> shapeObj a_obj = >> a_layer.getFeature(a_result.shapeindex, a_result.tileindex); >> >> >> >> // WHAT NEXT?? >> >> >> } >> a_layer.close(); >> } >> } >> >> PS Sorry for my English, but I hope you've understood me >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Highlighting-query-results-tp19271759p19283148.html Sent from the Mapserver - User mailing list archive at Nabble.com. From amptarraco at hotmail.com Wed Sep 3 01:29:24 2008 From: amptarraco at hotmail.com (capgre) Date: Wed, 3 Sep 2008 01:29:24 -0700 (PDT) Subject: [mapserver-users] WMS query problems in Mapserver 5.2 In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF508@ecburexch1.ontario.int.ec.gc.ca> References: <1220283227191-801600.post@n2.nabble.com> <2DC5CCA14756424BBBEE8B4B2E4A682F036CF508@ecburexch1.ontario.int.ec.gc.ca> Message-ID: <1220430564902-835732.post@n2.nabble.com> Thank you very much Kralidis,Tom [Burlington] wrote: > > > FYI this was addressed in http://trac.osgeo.org/mapserver/ticket/2737 > and will be in 5.2.1 > > ..Tom > > > > ________________________________ > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of capgre > Sent: 01 September, 2008 11:34 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] WMS query problems in Mapserver 5.2 > > > Hi, We just installed the version 5.2 of Mapserver in our > server. We have noticed that when performing a WMS query (GetMap, > GetFeatureInfo or GetLegendGraphic requests), if the parameter > SERVICE=WMS is not provided, Mapserver returns the following exception: > msWFSDispatch(): WFS server error. Incomplete WFS request: SERVICE > parameter missing Requests without the parameter work fine when using > prior versions of mapserver. As long as I know, the WMS specification > does not mention that this parameter is mandatory in the requests > (except in GetCapabilities). Does anyone know if this behavior is > expected in mapserver or should be considered a bug? > > ________________________________ > > View this message in context: WMS query problems in Mapserver > 5.2 > 0.html> > Sent from the Mapserver - User mailing list archive > at Nabble.com. > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/WMS-query-problems-in-Mapserver-5.2-tp801600p835732.html Sent from the Mapserver - User mailing list archive at Nabble.com. From JXA at cowi.dk Wed Sep 3 04:32:51 2008 From: JXA at cowi.dk (Jeppe Lund Andersen) Date: Wed, 3 Sep 2008 13:32:51 +0200 Subject: [mapserver-users] Gdal - geometry_columns Message-ID: Hello I have upgrade mapserver from 4.8.4 to version 5.2 and Gdal from 1.3.2 to 1.5.2 Now I got this error Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'ODBC'. in c:\inetpub\wwwroot\jar3\xmlkort.php on line 591 Warning: [MapServer Error]: msOGRFileNextShape(): No column definitions found for table 'test', layer not usable. in c:\inetpub\wwwroot\jar3\xmlkort.php on line 591 Fatal error: Call to a member function on a non-object in c:\inetpub\wwwroot\jar3\xmlkort.php on line 621 The error is that I have a row in geometry_columns table called "test", but dont have any view for it so if I delete the row test in geometry_columns it works fine. For me it seems that Gdal now has a check that sees, if all rows in geometry_columns has a view - is that true, if so what is the reason for this ? and is it possible to remove this check Jeppe Lund Andersen -------------- next part -------------- An HTML attachment was scrubbed... URL: From shurhenv at mail.ru Wed Sep 3 05:54:41 2008 From: shurhenv at mail.ru (shurhen) Date: Wed, 03 Sep 2008 16:54:41 +0400 Subject: =?koi8-r?Q?Re=3A_[MAPSERVER-USERS]_Highlighting_query_results?= Message-ID: Thank you, Steve! I tried your way, but I have not got result - selected object still remains same as others. I've added these lines in map-file but there are no results: QUERYMAP COLOR 0 0 255 STATUS ON STYLE HILITE END What I've missed? 2BrainDrain: Thank you, I'll try and your way too. Steve Lime wrote: > > MapServer supports what's called a query map. It basically replaces the > color of the top-most > style for a layer with one defined in the query map object (default is > yellow). Typically in MapScript > you'd do: > > a_layer.queryByAttributes(m_map, null, a_query, 1); > img = m_map.drawQuery(); > > You can of course get fancier and step through the result set by hand but > I wouldn't recommend > starting that way. > > Steve From godwin.liz at gmail.com Wed Sep 3 08:03:04 2008 From: godwin.liz at gmail.com (Liz Godwin) Date: Wed, 3 Sep 2008 11:03:04 -0400 Subject: [mapserver-users] ArcSDE 9.2 support Message-ID: Hey folks, I noticed there was a closed bug on this issue, but I am still having problems connecting to SDE with Unicade enabled. http://trac.osgeo.org/mapserver/ticket/2225 We have the most recent version of Mapserver (5.2) and all the libraries are updated, and it still does not work. On windows with MS4W 2.2.9 and the SDE 9.2 plugin, I get the attached image (unicode.png). On Linux, I get an Internal Server Error (Premature End of Script Error in Apache log) and no debug information is written to the mapserver log. Is there something to configure that we're missing to support this change? We have a workaround in mind, but it's a lot of work to reload all the data to remove unicode. LAYER # on Linux DEBUG 5 NAME myname TYPE point STATUS DEFAULT CONNECTIONTYPE SDE CONNECTION "host,port:xxxx,instance,user,pass" DATA "MARTVECTOR.CUL_NSF_POP_PLACE,SHAPE" LABELITEM "xxxx" CLASS NAME "Points" SYMBOL 'tent' COLOR 255 0 0 OUTLINECOLOR 125 125 125 SIZE 10 LABEL COLOR 255 0 0 FONT arial TYPE truetype size 10 END END -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: unicode.png Type: image/png Size: 8624 bytes Desc: not available URL: From weiy at ornl.gov Wed Sep 3 09:38:08 2008 From: weiy at ornl.gov (Yaxing Wei) Date: Wed, 03 Sep 2008 12:38:08 -0400 Subject: [mapserver-users] Problem with MapServer WCS's (ms4w-2.2.8) support for ArcSDE 9.2 Message-ID: <48BEBD70.3080206@ornl.gov> I'm trying to connect MapServer (ms4w-2.2.8) WMS and WCS with ArcSDE 9.2 database. I used the following configuration in the WMS mapfile and MapServer WMS works fine with ArcSDE data sources: LAYER NAME "dem_layer" TYPE RASTER CONNECTIONTYPE PLUGIN PLUGIN "C:/Program Files/ms4w/Apache/specialplugins/msplugin_sde_92.dll" DATA "SDE:host,port:5151,sde,username,password,SDE.SDE.DEM_LAYER,RASTER" STATUS ON METADATA "wms_title" "dem_layer" "wms_srs" "EPSG:4326" END END I tried to use a similar configuration in WCS mapfile: LAYER NAME "dem_layer" TYPE RASTER CONNECTIONTYPE PLUGIN PLUGIN "C:/Program Files/ms4w/Apache/specialplugins/msplugin_sde_92.dll" DATA "SDE:host,port:5151,sde,username,password,SDE.SDE.DEM_LAYER,RASTER" STATUS ON METADATA "wcs_label" "dem_layer" "wcs_srs" "EPSG:4326" "wcs_formats" "GeoTIFF" "wcs_rangeset_name" "Rangeset" "wcs_rangeset_label" "Rangeset" END PROJECTION "init=epsg:4326" END DUMP TRUE END The Exception message for a WCS request to this layer looks like: msWCSGetCoverageMetadata(): Unable to access file. `D:/Data/wcs_data/SDE:host,port:5151,sde,username,password,SDE.SDE.DEM_LAYER,RASTER' does not exist in the file system, and is not recognised as a supported dataset name. Seems MapServer WCS doesn't recoganise this data is in fact from ArcSDE. It always tries to access a file in a local directory (D:/Data/wcs_data/), which is specified by parameter SHAPEPATH. Can anyone help me to figure this out? Thanks. Sincerely, Yaxing From weiy at ornl.gov Wed Sep 3 09:21:33 2008 From: weiy at ornl.gov (Yaxing Wei) Date: Wed, 03 Sep 2008 12:21:33 -0400 Subject: [mapserver-users] How to make MapServer WMS/WCS support multi-band raster data Message-ID: <48BEB98D.9030504@ornl.gov> I'm trying to put some GeoTIFF format raster data with multiple bands into MapServer WMS and WCS. My goal is: - For WMS, use something like "bands=2" in a WMS request to retrieve an image of a specific band. - For WCS, use something like "bands=2" or "bands=2,4,7" in a WCS request to retrieve data of some specific bands. What I did is: - In the mapfile for WCS, I added "wcs_rangeset_axes" "bands" in the LAYER's METADATA part, so I'm able to use "band=2" or "band=4" to retrieve only ONE band in each WCS request. But I can't retrieve multiple bands using something like "bands=2,4,7", the Exception message looks like: msWCSGetCoverage(): WCS server error. Error specifying "bands" parameter value(s). I have no idea at all about how to configure WMS mapfile to enable the bands parameter. Can anyone help me to solve this issue? Thank you very much. Sincerely, Yaxing From uday_spam at yahoo.com Wed Sep 3 10:04:21 2008 From: uday_spam at yahoo.com (udaysr) Date: Wed, 3 Sep 2008 10:04:21 -0700 (PDT) Subject: [MAPSERVER-USERS] Joining two tables and directing multiple row results to a template Message-ID: <19293398.post@talk.nabble.com> Hi, I have a question about joining two tables and viewing my multiple row (one-to-many) results. Essentially, I am doing what is described in an earlier post by Steven Monai on joining two tables 'opo' and 'pippo': http://www.nabble.com/Re%3A--UMN_MAPSERVER-USERS--Join-between-Postgis-table-and-Postgresql-table-p1477848.html I have two tables, x_addresses and x_voters. Multiple voters can reside in the same address. I want to display points for each address, and when these points are clicked on, I want to display all the voters who reside at this address. Each address could have 0 or more voters associated with it. Each voter has either 0 or 1 address. This is exactly the situation described in the post above, and I am doing the following in my map file: LAYER NAME "MyAddressPoints" TYPE POINT STATUS OFF # database CONNECTIONTYPE postgis CONNECTION "user=xxxx dbname=xxxx host=localhost" PROCESSING "CLOSE_CONNECTION=DEFER" DATA "the_geom from (select addr.the_geom, addr.house_number, addr.street_info, addr.city, addr.state, addr.zip, addr.county_fips, addr.precinct_name, addr.latitude, addr.longitude, addr.address_id, vtr.gid, addr.voters, vtr.first_name, vtr.last_name, vtr.voter_id, vtr.status from x_addresses as addr LEFT OUTER JOIN x_voters as vtr on addr.address_id=vtr.address_id where addr.latitude is not null and addr.longitude is not null) as temp using unique gid using SRID=4326" MAXSCALEDENOM 400000 PROJECTION "init=epsg:4326" END TEMPLATE "templates/repeat.html" HEADER "templates/header.html" FOOTER "templates/footer.html" My query works (as intended, I believe). The issue is that I want to be able to display all results on double clicking on the point displayed. I think there is an inefficiency in that points are displayed one over the other when there are multiple voters at the same address, per this query. (Smaller question - can that be optimized? Should I preferably be using the JOIN tag?) But my primary issue is that I am not able to display the details of the multiple persons using the templates. The repeat.html template just has table rows in it: Street[street_info] City, State[city], [state] Zip[zip] Lat/Long[latitude]/[longitude] County FIPS[county_fips] PrecinctName[precinct_name] Voter Count[voters] Voter Voter ID[voter_id] First Name[first_name] Last Name[last_name] Status([status]) BTW, I set the mode query parameter in the URL to the map file to NQUERY. The web application uses OpenLayers and php, and the URL accessed when double clicking on an address point is specified in Javascript as follows: var url = MyAddressPoints.getFullRequestString({ REQUEST: "GetFeatureInfo", EXCEPTIONS: "application/vnd.ogc.se_xml", BBOX: MyAddressPoints.map.getExtent().toBBOX(), X: e.xy.x, Y: e.xy.y, INFO_FORMAT: 'text/html', QUERY_LAYERS: MyAddressPoints.params.LAYERS, WIDTH: MyAddressPoints.map.size.w, HEIGHT: MyAddressPoints.map.size.h}); OpenLayers.loadURL(url, '', this, setHTML); This just displays a single voter all the time in the table, instead of the multiple I would like to display. Is there a way to obtain multiple row results from a single point double click and display them? Thank you! - Uday -- View this message in context: http://www.nabble.com/Joining-two-tables-and-directing-multiple-row-results-to-a-template-tp19293398p19293398.html Sent from the Mapserver - User mailing list archive at Nabble.com. From rjpawley at shaw.ca Wed Sep 3 10:19:57 2008 From: rjpawley at shaw.ca (Bob Pawley) Date: Wed, 3 Sep 2008 10:19:57 -0700 Subject: [mapserver-users] Brand New User Message-ID: <00e101c90de9$49f98480$6401a8c0@owner> Hi This is my first foray into servers et al. I have a couple of questions for anyone who wishes to answer. I have downloaded ms4w (Windows install package) installed it and tested for working by asking for version number through command line as well as an HTTP request to mapserver.exe. Both were successful. Eventually I want to access a Postgis database. I have also downloaded Workshp -5 and installed it under ms4w/Apache/htdocs My first challenge comes with setting the url and pathways in Workshop-5 Map File and html pages. I want to set the system up as a local app until I get it running. 1. Can Someone give me a url and pathway example of a local setup? (I've attempted variations on localhost and localhost.localdomain with no success). 2. Since Map File appears to be project oriented is this a file that I need to generate in order to access Poistgis? Bob From weiy at ornl.gov Wed Sep 3 10:27:55 2008 From: weiy at ornl.gov (Yaxing Wei) Date: Wed, 03 Sep 2008 13:27:55 -0400 Subject: [mapserver-users] Re: How to make MapServer WMS/WCS support multi-band raster data In-Reply-To: <48BEB98D.9030504@ornl.gov> References: <48BEB98D.9030504@ornl.gov> Message-ID: <48BEC91B.7080604@ornl.gov> FYI. Yaxing Wei Postdoctoral Research Associate Environmental Science Division Oak Ridge National Laboratory P.O. Box 2008, MS 6407 Oak Ridge, TN 37830 Phone: 865-241-3403 Fax: 865-574-4665 Yaxing Wei wrote: > I'm trying to put some GeoTIFF format raster data with multiple bands > into MapServer WMS and WCS. > > My goal is: > - For WMS, use something like "bands=2" in a WMS request to retrieve > an image of a specific band. > - For WCS, use something like "bands=2" or "bands=2,4,7" in a WCS > request to retrieve data of some specific bands. > > What I did is: > - In the mapfile for WCS, I added > "wcs_rangeset_axes" "bands" > in the LAYER's METADATA part, so I'm able to use "band=2" or > "band=4" to retrieve only ONE band in each WCS request. But I can't > retrieve multiple bands using something like "bands=2,4,7", the > Exception message looks like: > locator="bands">msWCSGetCoverage(): WCS server error. Error specifying > "bands" parameter value(s). > > I have no idea at all about how to configure WMS mapfile to enable the > bands parameter. > > Can anyone help me to solve this issue? Thank you very much. > > Sincerely, > Yaxing > > From jmckenna at gatewaygeomatics.com Wed Sep 3 10:29:20 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 03 Sep 2008 13:29:20 -0400 Subject: [mapserver-users] ArcSDE 9.2 support In-Reply-To: References: Message-ID: <48BEC970.1000008@gatewaygeomatics.com> My only comment is that the SDE plugins in MS4W are quite old (~2007/09/17), but Howard would have to speak to whether that could be an issue. Liz, what happens when u try CONNECTIONTYPE PLUGIN (as instructed in the MS4W readme[1])? [1] http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#sde -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ Liz Godwin wrote: > Hey folks, > > I noticed there was a closed bug on this issue, but I am still having > problems connecting to SDE with Unicade enabled. > http://trac.osgeo.org/mapserver/ticket/2225 > > We have the most recent version of Mapserver (5.2) and all the libraries > are updated, and it still does not work. On windows with MS4W 2.2.9 and > the SDE 9.2 plugin, I get the attached image (unicode.png). On Linux, I > get an Internal Server Error (Premature End of Script Error in Apache > log) and no debug information is written to the mapserver log. > > Is there something to configure that we're missing to support this change? > > We have a workaround in mind, but it's a lot of work to reload all the > data to remove unicode. > > LAYER # on Linux > DEBUG 5 > NAME myname > TYPE point > STATUS DEFAULT > CONNECTIONTYPE SDE > CONNECTION "host,port:xxxx,instance,user,pass" > DATA "MARTVECTOR.CUL_NSF_POP_PLACE,SHAPE" > > LABELITEM "xxxx" > CLASS > NAME "Points" > SYMBOL 'tent' > COLOR 255 0 0 > OUTLINECOLOR 125 125 125 > SIZE 10 > LABEL > > COLOR 255 0 0 > FONT arial > TYPE truetype > size 10 > END > END > From jmckenna at gatewaygeomatics.com Wed Sep 3 10:57:48 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 03 Sep 2008 13:57:48 -0400 Subject: [mapserver-users] Brand New User In-Reply-To: <00e101c90de9$49f98480$6401a8c0@owner> References: <00e101c90de9$49f98480$6401a8c0@owner> Message-ID: <48BED01C.2070501@gatewaygeomatics.com> Hello, Welcome into the foray :) I have some comments below inline: Bob Pawley wrote: > Hi > > This is my first foray into servers et al. I have a couple of questions > for anyone who wishes to answer. > > I have downloaded ms4w (Windows install package) installed it and tested > for working by asking for version number through command line as well as > an HTTP request to mapserver.exe. Both were successful. great! > > Eventually I want to access a Postgis database. > > I have also downloaded Workshp -5 and installed it under ms4w/Apache/htdocs MS4W is designed to have all of the add-on applications live in /ms4w/apps/. Also, to quote from the MS4W README: "...a new httpd_*.conf file should [also] be added to /ms4w/httpd.d/httpd_*.conf. (The /httpd.d/ directory contains Apache configuration files that define which files on your computer/server are Web-accessible. For each Web application that you install, a new configuration file [will need to be created]." Once you have created the new Apache alias that way, then you should restart Apache (run /ms4w/restart-apache.bat from the commandline) and goto 127.0.0.1/youralias > > My first challenge comes with setting the url and pathways in Workshop-5 > Map File and html pages. > > I want to set the system up as a local app until I get it running. > > 1. Can Someone give me a url and pathway example of a local setup? (I've > attempted variations on localhost and localhost.localdomain with no > success). see above > > 2. Since Map File appears to be project oriented is this a file that I > need to generate in order to access Poistgis? > Yes you will need to generate a custom mapfile. Here are some resources for you: - Vector Data Reference guide, for PostGIS: http://mapserver.gis.umn.edu/docs/reference/vector_data/postgis - testing your .map file with the shp2img.exe utility (after executing /ms4w/setenv.bat at the commandline): http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img Also, please note that MS4W does have its own mailing list for configuration issues (join at: http://lists.maptools.org/mailman/listinfo/ms4w-users_ have fun. -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From Steve.Lime at dnr.state.mn.us Wed Sep 3 11:00:12 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 03 Sep 2008 13:00:12 -0500 Subject: [MAPSERVER-USERS] Highlighting query results In-Reply-To: References: Message-ID: <48BE8A5C.5157.008F.0@dnr.state.mn.us> Are you sure the search is returning something? (e.g. it worked) Steve >>> On 9/3/2008 at 7:54 AM, in message , shurhen wrote: > Thank you, Steve! > > I tried your way, but I have not got result - selected object still remains > same as others. > I've added these lines in map-file but there are no results: > > QUERYMAP > COLOR 0 0 255 > STATUS ON > STYLE HILITE > END > > What I've missed? > > > 2BrainDrain: Thank you, I'll try and your way too. > > Steve Lime wrote: >> >> MapServer supports what's called a query map. It basically replaces the >> color of the top-most >> style for a layer with one defined in the query map object (default is >> yellow). Typically in MapScript >> you'd do: >> >> a_layer.queryByAttributes(m_map, null, a_query, 1); >> img = m_map.drawQuery(); >> >> You can of course get fancier and step through the result set by hand but >> I wouldn't recommend >> starting that way. >> >> Steve > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From caronrob2000 at yahoo.ca Wed Sep 3 11:12:12 2008 From: caronrob2000 at yahoo.ca (Roberto Caron) Date: Wed, 3 Sep 2008 11:12:12 -0700 (PDT) Subject: [mapserver-users] Question related to MapScript Message-ID: <270119.59510.qm@web35203.mail.mud.yahoo.com> Hi, In our infrastructure, Map Server will be installed on a machine and our Web Apps Servlet will on another machine. Some Web Apps Servlet will have to use MapScript Jar file to create map file. We were wondering if the both must be sit on the same machine or they can leave separate as long as we provide all the dependencies. Thanks Roberto (Fujitsu) __________________________________________________________________ Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkennedy at outerquest.com Wed Sep 3 12:04:14 2008 From: pkennedy at outerquest.com (Pete Kennedy) Date: Wed, 3 Sep 2008 12:04:14 -0700 Subject: [mapserver-users] how do you unsubscribe from this list Message-ID: <52e7fe511f9346c596bc6e3250a40cc6@maila15.webcontrolcenter.com> anyone know? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From thy at 42.dk Wed Sep 3 12:22:57 2008 From: thy at 42.dk (Kristian Thy) Date: Wed, 3 Sep 2008 21:22:57 +0200 Subject: [mapserver-users] how do you unsubscribe from this list In-Reply-To: <52e7fe511f9346c596bc6e3250a40cc6@maila15.webcontrolcenter.com> References: <52e7fe511f9346c596bc6e3250a40cc6@maila15.webcontrolcenter.com> Message-ID: <20080903192257.GA24716@42.dk> On Wed, Sep 03, Pete Kennedy wrote: > anyone know? Have you tried looking at the link at the bottom of each and every mail you receive from the list? \\kristian -- ... et nemo ex vobis interrogat me: ?Quo vadis?? From gregor at hostgis.com Wed Sep 3 12:24:42 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed, 03 Sep 2008 13:24:42 -0600 Subject: [mapserver-users] how do you unsubscribe from this list In-Reply-To: <52e7fe511f9346c596bc6e3250a40cc6@maila15.webcontrolcenter.com> References: <52e7fe511f9346c596bc6e3250a40cc6@maila15.webcontrolcenter.com> Message-ID: <48BEE47A.1050005@hostgis.com> http://mapserver.gis.umn.edu/community/mailinglists/mapserver-users/ http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From akrherz at iastate.edu Wed Sep 3 13:00:53 2008 From: akrherz at iastate.edu (akrherz at iastate.edu) Date: Wed, 3 Sep 2008 15:00:53 -0500 (CDT) Subject: [mapserver-users] rfc43 gtile returning blank images, while WMS works Message-ID: Hi Mapsurfers, I have been messing around with RFC43 (GTile support) and only seem to get blank tiles. For example, here is a GTile request http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?layers=nexrad-n0r-900913&mode=tile&tilemode=gmap&tile=0+1+2 I then turn that URL into an equivalent WMS request: http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?width=256&height=256&FORMAT=image/png&srs=EPSG:900913&request=GetMap&service=WMS&version=1.1.1&layers=nexrad-n0r-900913&bbox=-20026376.390922,11131.949078,-10029886.119078,10007622.220922 and get data. Any ideas what I may be doing wrong? thanks! daryl From rjpawley at shaw.ca Wed Sep 3 13:34:21 2008 From: rjpawley at shaw.ca (Bob Pawley) Date: Wed, 3 Sep 2008 13:34:21 -0700 Subject: [mapserver-users] Brand New User References: <00e101c90de9$49f98480$6401a8c0@owner> <48BED01C.2070501@gatewaygeomatics.com> Message-ID: <015201c90e04$72adf170$6401a8c0@owner> Thanks Jeff "...a new httpd_*.conf file should [also] be added to /ms4w/httpd.d/httpd_*.conf." Does this mean that these files are installed when the Web application (in this case Workshop-5) is extracted into ms4w/app or is this a file which I need to generate?? At the moment I can't find any such file under ms4w/httpd. If I need to generate the file is there an example around?? Bob ----- Original Message ----- From: "Jeff McKenna" To: Sent: Wednesday, September 03, 2008 10:57 AM Subject: Re: [mapserver-users] Brand New User > Hello, > > Welcome into the foray :) I have some comments below inline: > > > Bob Pawley wrote: >> Hi >> >> This is my first foray into servers et al. I have a couple of questions >> for anyone who wishes to answer. >> >> I have downloaded ms4w (Windows install package) installed it and tested >> for working by asking for version number through command line as well as >> an HTTP request to mapserver.exe. Both were successful. > > great! > >> >> Eventually I want to access a Postgis database. >> >> I have also downloaded Workshp -5 and installed it under >> ms4w/Apache/htdocs > > MS4W is designed to have all of the add-on applications live in > /ms4w/apps/. > > Also, to quote from the MS4W README: > > "...a new httpd_*.conf file should [also] be added to > /ms4w/httpd.d/httpd_*.conf. (The /httpd.d/ directory contains Apache > configuration files that define which files on your computer/server are > Web-accessible. For each Web application that you install, a new > configuration file [will need to be created]." > > Once you have created the new Apache alias that way, then you should > restart Apache (run /ms4w/restart-apache.bat from the commandline) and > goto 127.0.0.1/youralias > > >> >> My first challenge comes with setting the url and pathways in Workshop-5 >> Map File and html pages. >> >> I want to set the system up as a local app until I get it running. >> >> 1. Can Someone give me a url and pathway example of a local setup? (I've >> attempted variations on localhost and localhost.localdomain with no >> success). > > see above > >> >> 2. Since Map File appears to be project oriented is this a file that I >> need to generate in order to access Poistgis? >> > > Yes you will need to generate a custom mapfile. Here are some resources > for you: > > - Vector Data Reference guide, for PostGIS: > http://mapserver.gis.umn.edu/docs/reference/vector_data/postgis > - testing your .map file with the shp2img.exe utility (after executing > /ms4w/setenv.bat at the commandline): > http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img > > Also, please note that MS4W does have its own mailing list for > configuration issues (join at: > http://lists.maptools.org/mailman/listinfo/ms4w-users_ > > have fun. > > -- > Jeff McKenna > FOSS4G Consulting and Training Services > http://www.gatewaygeomatics.com/ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From SansonR at asurequality.com Wed Sep 3 13:38:40 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Thu, 04 Sep 2008 08:38:40 +1200 Subject: [mapserver-users] ArcSDE 9.3 support? In-Reply-To: References: Message-ID: <48BF9E90.379F.0037.0@asurequality.com> Does anyone know if ArcSDE v 9.3 will be supported? We will soon be migrating from v9.1 to 9.3. Many thanks, Robert Sanson ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed Sep 3 14:28:20 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 03 Sep 2008 17:28:20 -0400 Subject: [mapserver-users] Brand New User In-Reply-To: <015201c90e04$72adf170$6401a8c0@owner> References: <00e101c90de9$49f98480$6401a8c0@owner> <48BED01C.2070501@gatewaygeomatics.com> <015201c90e04$72adf170$6401a8c0@owner> Message-ID: <48BF0174.3060706@gatewaygeomatics.com> Again, MS4W does have its own mailing list so it would be better to use that for configuration questions. You could download an MS4W add-on package from the MS4W downloads page, extract it at the same drive root, and look in ms4w/httpd.d/ again. Once more, please move this discussion to the MS4W mailing list. thank you. -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ Bob Pawley wrote: > Thanks Jeff > > "...a new httpd_*.conf file should [also] be added to > /ms4w/httpd.d/httpd_*.conf." > > Does this mean that these files are installed when the Web application (in > this case Workshop-5) is extracted into ms4w/app or is this a file which I > need to generate?? At the moment I can't find any such file under > ms4w/httpd. > > If I need to generate the file is there an example around?? > > Bob > ----- Original Message ----- From: "Jeff McKenna" > > To: > Sent: Wednesday, September 03, 2008 10:57 AM > Subject: Re: [mapserver-users] Brand New User > > >> Hello, >> >> Welcome into the foray :) I have some comments below inline: >> >> >> Bob Pawley wrote: >>> Hi >>> >>> This is my first foray into servers et al. I have a couple of >>> questions for anyone who wishes to answer. >>> >>> I have downloaded ms4w (Windows install package) installed it and >>> tested for working by asking for version number through command line >>> as well as an HTTP request to mapserver.exe. Both were successful. >> >> great! >> >>> >>> Eventually I want to access a Postgis database. >>> >>> I have also downloaded Workshp -5 and installed it under >>> ms4w/Apache/htdocs >> >> MS4W is designed to have all of the add-on applications live in >> /ms4w/apps/. >> >> Also, to quote from the MS4W README: >> >> "...a new httpd_*.conf file should [also] be added to >> /ms4w/httpd.d/httpd_*.conf. (The /httpd.d/ directory contains Apache >> configuration files that define which files on your computer/server >> are Web-accessible. For each Web application that you install, a new >> configuration file [will need to be created]." >> >> Once you have created the new Apache alias that way, then you should >> restart Apache (run /ms4w/restart-apache.bat from the commandline) and >> goto 127.0.0.1/youralias >> >> >>> >>> My first challenge comes with setting the url and pathways in >>> Workshop-5 Map File and html pages. >>> >>> I want to set the system up as a local app until I get it running. >>> >>> 1. Can Someone give me a url and pathway example of a local setup? >>> (I've attempted variations on localhost and localhost.localdomain >>> with no success). >> >> see above >> >>> >>> 2. Since Map File appears to be project oriented is this a file that >>> I need to generate in order to access Poistgis? >>> >> >> Yes you will need to generate a custom mapfile. Here are some >> resources for you: >> >> - Vector Data Reference guide, for PostGIS: >> http://mapserver.gis.umn.edu/docs/reference/vector_data/postgis >> - testing your .map file with the shp2img.exe utility (after executing >> /ms4w/setenv.bat at the commandline): >> http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img >> >> Also, please note that MS4W does have its own mailing list for >> configuration issues (join at: >> http://lists.maptools.org/mailman/listinfo/ms4w-users_ >> >> have fun. >> >> -- >> Jeff McKenna >> FOSS4G Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From godwin.liz at gmail.com Wed Sep 3 14:43:54 2008 From: godwin.liz at gmail.com (Liz Godwin) Date: Wed, 3 Sep 2008 17:43:54 -0400 Subject: [mapserver-users] ArcSDE 9.2 support In-Reply-To: <48BEC970.1000008@gatewaygeomatics.com> References: <48BEC970.1000008@gatewaygeomatics.com> Message-ID: Hi Jeff, I should have added that part. On Windows with MS4W, I DO use the CONNECTIONTYPE PLUGIN configuration with the plugin. It renders properly the points, but not the labels. On Linux (the layer snippit I included) I get a server failure, no rendering at all. Liz On Wed, Sep 3, 2008 at 1:29 PM, Jeff McKenna wrote: > My only comment is that the SDE plugins in MS4W are quite old > (~2007/09/17), but Howard would have to speak to whether that could be > an issue. Liz, what happens when u try CONNECTIONTYPE PLUGIN (as > instructed in the MS4W readme[1])? > > [1] http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#sde > > > -- > Jeff McKenna > FOSS4G Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > Liz Godwin wrote: > >> Hey folks, >> >> I noticed there was a closed bug on this issue, but I am still having >> problems connecting to SDE with Unicade enabled. >> http://trac.osgeo.org/mapserver/ticket/2225 >> >> We have the most recent version of Mapserver (5.2) and all the libraries >> are updated, and it still does not work. On windows with MS4W 2.2.9 and the >> SDE 9.2 plugin, I get the attached image (unicode.png). On Linux, I get an >> Internal Server Error (Premature End of Script Error in Apache log) and no >> debug information is written to the mapserver log. >> >> Is there something to configure that we're missing to support this change? >> >> We have a workaround in mind, but it's a lot of work to reload all the >> data to remove unicode. >> >> LAYER # on Linux >> DEBUG 5 >> NAME myname >> TYPE point >> STATUS DEFAULT >> CONNECTIONTYPE SDE >> CONNECTION "host,port:xxxx,instance,user,pass" >> DATA "MARTVECTOR.CUL_NSF_POP_PLACE,SHAPE" >> LABELITEM "xxxx" >> CLASS >> NAME "Points" >> SYMBOL 'tent' >> COLOR 255 0 0 >> OUTLINECOLOR 125 125 125 >> SIZE 10 >> LABEL >> COLOR 255 0 0 >> FONT arial >> TYPE truetype >> size 10 >> END >> END >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed Sep 3 15:29:45 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 03 Sep 2008 18:29:45 -0400 Subject: [mapserver-users] ArcSDE 9.2 support In-Reply-To: References: <48BEC970.1000008@gatewaygeomatics.com> Message-ID: <48BF0FD9.5070504@gatewaygeomatics.com> Interesting. And what happens on Windows when u use CONNECTIONTYPE SDE (and move the ogr_SDE.dll)? just curious. -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ Liz Godwin wrote: > Hi Jeff, > > I should have added that part. On Windows with MS4W, I DO use the > CONNECTIONTYPE PLUGIN configuration with the plugin. It renders > properly the points, but not the labels. On Linux (the layer snippit I > included) I get a server failure, no rendering at all. > > Liz > > On Wed, Sep 3, 2008 at 1:29 PM, Jeff McKenna > > > wrote: > > My only comment is that the SDE plugins in MS4W are quite old > (~2007/09/17), but Howard would have to speak to whether that could be > an issue. Liz, what happens when u try CONNECTIONTYPE PLUGIN (as > instructed in the MS4W readme[1])? > > [1] > http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#sde > > > -- > Jeff McKenna > FOSS4G Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > Liz Godwin wrote: > > Hey folks, > > I noticed there was a closed bug on this issue, but I am still > having problems connecting to SDE with Unicade enabled. > http://trac.osgeo.org/mapserver/ticket/2225 > > We have the most recent version of Mapserver (5.2) and all the > libraries are updated, and it still does not work. On windows > with MS4W 2.2.9 and the SDE 9.2 plugin, I get the attached image > (unicode.png). On Linux, I get an Internal Server Error > (Premature End of Script Error in Apache log) and no debug > information is written to the mapserver log. > > Is there something to configure that we're missing to support > this change? > > We have a workaround in mind, but it's a lot of work to reload > all the data to remove unicode. > > LAYER # on Linux > DEBUG 5 > NAME myname > TYPE point > STATUS DEFAULT > CONNECTIONTYPE SDE > CONNECTION "host,port:xxxx,instance,user,pass" > DATA "MARTVECTOR.CUL_NSF_POP_PLACE,SHAPE" > LABELITEM "xxxx" > CLASS > NAME "Points" > SYMBOL 'tent' > COLOR 255 0 0 > OUTLINECOLOR 125 125 125 > SIZE 10 > LABEL > COLOR 255 0 0 > FONT arial > TYPE truetype > size 10 > END > END From johan.hallgren at logica.com Wed Sep 3 23:19:29 2008 From: johan.hallgren at logica.com (Hallgren, Johan) Date: Thu, 4 Sep 2008 08:19:29 +0200 Subject: [mapserver-users] Combine Spatial & attribute queries Message-ID: Hello I'm working with Mapserver 5.2 and with the C# interface. Now I use a Oracle spatial layer and we would like to query the layer with a combination of spatial and attribute queries. Today a first use queryByRect and then queryByAttribute. Two queries will be sent to Oracle and the resultCache will only have the result of the latest query. How can I solve this? Primarily I only will send one query to the database, both with the spatial and the attribute part. br Johan Johan Hallgren Logica Pelle Bergs backe 3 Box 1938, 791 19 Falun Tel (och mobil): 023-547 46 (int: +46-2354746) johan.hallgren at logica.com http://www.logica.se -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Wed Sep 3 23:35:17 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Thu, 4 Sep 2008 12:05:17 +0530 Subject: [mapserver-users] Combine Spatial & attribute queries In-Reply-To: References: Message-ID: <005601c90e58$66f67ab0$34e37010$@com> Hi, I have done code for spatial Query.. This is Spatial Query.. protected void ContriesEnvelop() { layer = MapFunction.Map.getLayerByName("Countries"); // Get Layer by name string strSubRegionsClassItem = "cntry_name="; string strDropDownSelectedItem = "'" + lstContries.SelectedItem.Text + "'"; string strQuery = strSubRegionsClassItem + strDropDownSelectedItem; res = layer.queryByAttributes(MapFunction.Map, "CNTRY_NAME", strQuery, 1); if (res == (int)EnumMap.RESULT_CODE.MS_SUCCESS) { results = layer.getResults(); if (results != null) { resulCacheObj = results.getResult(0); layer.open(); layer.close(); } } using (results = layer.getResults()) { if (results != null && results.numresults > 0) { // calculating the extent of the results if (query_bounds == null) { query_bounds = new rectObj(results.bounds.minx, results.bounds.miny, results.bounds.maxx, results.bounds.maxy, 0); } else { if (results.bounds.minx < query_bounds.minx) { query_bounds.minx = results.bounds.minx; } if (results.bounds.miny < query_bounds.miny) { query_bounds.miny = results.bounds.miny; } if (results.bounds.maxx > query_bounds.maxx) { query_bounds.maxx = results.bounds.maxx; } if (results.bounds.maxy > query_bounds.maxy) { query_bounds.maxy = results.bounds.maxy; } } } } if (zoomToResults) { try { MapFunction.Map.setExtent(query_bounds.minx, query_bounds.miny, query_bounds.maxx, query_bounds.maxy); } catch (NullReferenceException exp) {} } MapFunction.IsMapInDirectory = true; } This Method is for Getting Non Spatial query and populates data in Listbox . based on Listbox data zooms to the shape.. public void PopulateContries() { strSelectedItem = lstSubRegions.SelectedValue; conn = new NpgsqlConnection(_AppSetting.GetConnection); conn.Open(); String strSql = string.Format(_AppSetting.GetCntryCmdText, strSelectedItem); dataAdapter = new NpgsqlDataAdapter(strSql, conn); dataSet = new DataSet(); dataAdapter.Fill(dataSet, _AppSetting.GetCntryTblName); lstContries.DataSource = dataSet.Tables[_AppSetting.GetCntryTblName]; lstContries.DataTextField = _AppSetting.GetCntryDataFieldName; lstContries.DataBind(); conn.Close(); } Is it same you want?let me know..But I am using Postgresql.. Thanks and Regards Venkat. India From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Hallgren, Johan Sent: Thursday, September 04, 2008 11:49 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Combine Spatial & attribute queries Hello I'm working with Mapserver 5.2 and with the C# interface. Now I use a Oracle spatial layer and we would like to query the layer with a combination of spatial and attribute queries. Today a first use queryByRect and then queryByAttribute. Two queries will be sent to Oracle and the resultCache will only have the result of the latest query. How can I solve this? Primarily I only will send one query to the database, both with the spatial and the attribute part. br Johan Johan Hallgren Logica Pelle Bergs backe 3 Box 1938, 791 19 Falun Tel (och mobil): 023-547 46 (int: +46-2354746) johan.hallgren at logica.com http://www.logica.se -------------- next part -------------- An HTML attachment was scrubbed... URL: From valerio.vianello at yahoo.it Thu Sep 4 00:01:10 2008 From: valerio.vianello at yahoo.it (valerio vianello) Date: Thu, 4 Sep 2008 07:01:10 +0000 (GMT) Subject: [mapserver-users] colors transparency Message-ID: <223952.83622.qm@web27303.mail.ukl.yahoo.com> Dear list, Do you know if with mapserver is possible to set transparency in a layer color ? I know that if I use COLOR -1 -1 -1 for a layer that layer is completely transparent but my goal is to have a layer (polygon type) with a color that doesn't hide the under layer. thanks Valerio __________________________________________________ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Thu Sep 4 00:21:44 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Thu, 4 Sep 2008 12:51:44 +0530 Subject: [mapserver-users] colors transparency In-Reply-To: <223952.83622.qm@web27303.mail.ukl.yahoo.com> References: <223952.83622.qm@web27303.mail.ukl.yahoo.com> Message-ID: <006701c90e5e$e441c500$acc54f00$@com> Hi, Why don?t you go for Layer transparency? I think it looks good , while layer is overlaying? Thanks and Regards Venkat, India. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of valerio vianello Sent: Thursday, September 04, 2008 12:31 PM To: mapserver Subject: [mapserver-users] colors transparency Dear list, Do you know if with mapserver is possible to set transparency in a layer color ? I know that if I use COLOR -1 -1 -1 for a layer that layer is completely transparent but my goal is to have a layer (polygon type) with a color that doesn't hide the under layer. thanks Valerio __________________________________________________ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it -------------- next part -------------- An HTML attachment was scrubbed... URL: From c.pelliconi at sis-ter.it Thu Sep 4 00:28:45 2008 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Thu, 04 Sep 2008 09:28:45 +0200 Subject: [mapserver-users] colors transparency In-Reply-To: <223952.83622.qm@web27303.mail.ukl.yahoo.com> References: <223952.83622.qm@web27303.mail.ukl.yahoo.com> Message-ID: <48BF8E2D.7010609@sis-ter.it> Hi. I don't know if I've understood right your question, maybe my answer is too silly, but with TRANSPARENCY [0...1] in your layer definition (in mapfile) you can obtain a semi-transparent visualization for that layer. Regards, Carlo valerio vianello ha scritto: > Dear list, > > Do you know if with mapserver is possible to set transparency in a > layer color ? > > I know that if I use COLOR -1 -1 -1 for a layer that layer is > completely transparent but my goal is to have a layer (polygon type) > with a color that doesn't hide the under layer. > > > thanks > > Valerio > > > __________________________________________________ > Do You Yahoo!? > Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da > tanto spazio gratuito per i tuoi file e i messaggi > http://mail.yahoo.it > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ing. Carlo Pelliconi c.pelliconi at sis-ter.it SIS.TER Srl www.sis-ter.it via Mentana, 10 40026 Imola (BO) Italy tel +39 0542 364034 fax +39 0542 612130 ATTENZIONE! Questo documento ? indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di "privacy" e ne ? proibita l'utilizzazione da parte di altri soggetti. Si ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al pi? presto e di cancellare il messaggio subito dopo. Grazie. ATTENTION! This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale "Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more serious offence. Thanks. ACHTUNG! Dieses Dokument ist ausschlie?lich dem Empf?nger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und d?rfen von anderen Personen nicht verwende werden. Wer diese Mitteilung irrt?mlicherweise erh?lt ist gebeten uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. Vielen Dank. -------------- next part -------------- An HTML attachment was scrubbed... URL: From c.pelliconi at sis-ter.it Thu Sep 4 01:12:02 2008 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Thu, 04 Sep 2008 10:12:02 +0200 Subject: [mapserver-users] Zoom to rectangle with PHP MapScript Message-ID: <48BF9852.30503@sis-ter.it> Hi all. In PHP Mapscript I've zoom +/- by point, i.e.: where I do the mouse click. I'm looking for the function "zoom to recatangle" selecting a rectangular area by mouse. I had this with CGI Mapserver and jbox, but now how can I do this? Thank you in advance. Regards. Carlo -- ing. Carlo Pelliconi c.pelliconi at sis-ter.it SIS.TER Srl www.sis-ter.it via Mentana, 10 40026 Imola (BO) Italy ATTENZIONE! Questo documento ? indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di "privacy" e ne ? proibita l'utilizzazione da parte di altri soggetti. Si ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al pi? presto e di cancellare il messaggio subito dopo. Grazie. ATTENTION! This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale "Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more serious offence. Thanks. ACHTUNG! Dieses Dokument ist ausschlie?lich dem Empf?nger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und d?rfen von anderen Personen nicht verwende werden. Wer diese Mitteilung irrt?mlicherweise erh?lt ist gebeten uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. Vielen Dank. From valerio.vianello at yahoo.it Thu Sep 4 01:20:35 2008 From: valerio.vianello at yahoo.it (valerio vianello) Date: Thu, 4 Sep 2008 08:20:35 +0000 (GMT) Subject: [mapserver-users] colors transparency In-Reply-To: <48BF8E2D.7010609@sis-ter.it> Message-ID: <338804.29728.qm@web27305.mail.ukl.yahoo.com> Yes It was what I was looking for. Thank you. Valerio --- Gio 4/9/08, Carlo Pelliconi ha scritto: Da: Carlo Pelliconi Oggetto: Re: [mapserver-users] colors transparency A: valerio.vianello at yahoo.it Cc: mapserver-users at lists.osgeo.org Data: Gioved? 4 settembre 2008, 09:28 Hi. I don't know if I've understood right your question, maybe my answer is too silly, but? with TRANSPARENCY [0...1] in your layer definition (in mapfile) you can obtain a semi-transparent visualization for that layer. Regards, Carlo valerio vianello ha scritto: Dear list, Do you know if with mapserver is possible to set transparency in a layer color ? I know that if I use COLOR -1 -1 -1 for a layer that layer is completely transparent but my goal is to have a layer (polygon type) with a color that doesn't hide the under layer. thanks Valerio __________________________________________________ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ing. Carlo Pelliconi c.pelliconi at sis-ter.it SIS.TER Srl www.sis-ter.it via Mentana, 10 40026 Imola (BO) Italy tel +39 0542 364034 fax +39 0542 612130 ATTENZIONE! Questo documento ? indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di "privacy" e ne ? proibita l'utilizzazione da parte di altri soggetti. Si ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al pi? presto e di cancellare il messaggio subito dopo. Grazie. ATTENTION! This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale "Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more serious offence. Thanks. ACHTUNG! Dieses Dokument ist ausschlie?lich dem Empf?nger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und d?rfen von anderen Personen nicht verwende werden. Wer diese Mitteilung irrt?mlicherweise erh?lt ist gebeten uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. Vielen Dank. __________________________________________________ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it -------------- next part -------------- An HTML attachment was scrubbed... URL: From shurhenv at mail.ru Thu Sep 4 04:14:07 2008 From: shurhenv at mail.ru (=?windows-1251?B?3/no6iDt4CBtYWlsLnJ1?=) Date: Thu, 4 Sep 2008 15:14:07 +0400 Subject: [MAPSERVER-USERS] Highlighting query results Message-ID: <959216598.20080904151407@mail.ru> Yes! After query has been performed I have a_layer.getResults() > 0 and imageObj img = m_map.drawQuery(); // here img is not null I've saved img into file and noticed that selection is exists! img.save("query1234.gif", m_map); // Here selected object has been highlighted! So I finally have decided that problem is in the map refreshing :) I've looked in this method and found in what there was a problem: before output image to the PictureBox component (via MemoryStream) there was such line: image = m_map.draw(); // this code annihilated m_map.drawQuery() Therefore I've changed it on image = m_map.drawQuery(); and all have been done! This work and if there no query at all. there are exceptions not rise and map drawing correctly. Steve Lime, thanks for your answers! PS I wanna post my message in same branch, but instead my message appears in the root. How can I do that? >Are you sure the search is returning something? (e.g. it worked) > >Steve >>>> On 9/3/2008 at 7:54 AM, in message >, shurhen >wrote: >> Thank you, Steve! >> >>> I tried your way, but I have not got result - selected object still remains >> same as others. >> I've added these lines in map-file but there are no results: >> >> QUERYMAP >> COLOR 0 0 255 >> STATUS ON >> STYLE HILITE >> END >> >> What I've missed? >> From subha at gslab.com Thu Sep 4 05:48:40 2008 From: subha at gslab.com (Subha Ramakrishnan) Date: Thu, 04 Sep 2008 18:18:40 +0530 Subject: [mapserver-users] colors transparency In-Reply-To: <006701c90e5e$e441c500$acc54f00$@com> References: <223952.83622.qm@web27303.mail.ukl.yahoo.com> <006701c90e5e$e441c500$acc54f00$@com> Message-ID: <48BFD928.6040704@gslab.com> Hi , If i use the transparency attribute for a layer, it seems to dim out the image based on the number that i specify for transparency. I've a question here.Say, i want to generate an image of india with the state boundaries.Is it possible for me to color the boundaries of the states within the map in a different color? Thanks. Subha Venkat Rao Tammineni wrote: > > Hi, > > > > Why don?t you go for Layer transparency? I think it looks good , > while layer is overlaying? > > > > Thanks and Regards > > Venkat, > > India. > > > > > > *From:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of > *valerio vianello > *Sent:* Thursday, September 04, 2008 12:31 PM > *To:* mapserver > *Subject:* [mapserver-users] colors transparency > > > > Dear list, > > Do you know if with mapserver is possible to set transparency in a > layer color ? > > I know that if I use COLOR -1 -1 -1 for a layer that layer is > completely transparent but my goal is to have a layer (polygon type) > with a color that doesn't hide the under layer. > > > thanks > > Valerio > > > __________________________________________________ > Do You Yahoo!? > Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da > tanto spazio gratuito per i tuoi file e i messaggi > http://mail.yahoo.it > > > -- > This message has been scanned for viruses and > dangerous content by *MailScanner* , and is > believed to be clean. > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From ishwari.s at gmail.com Thu Sep 4 06:17:54 2008 From: ishwari.s at gmail.com (Ishwari Sivagnanam) Date: Thu, 4 Sep 2008 18:47:54 +0530 Subject: [mapserver-users] Java mapscript: connection timeout In-Reply-To: References: <75b4b93e0809010002y12cc877bpcb50c772a9848992@mail.gmail.com> <75b4b93e0809010221x225f4a03x25deae39c99acb96@mail.gmail.com> <75b4b93e0809010523t5c4c512ard0e080d4cdc9df5c@mail.gmail.com> Message-ID: I removed all the layers that use OGR connection but that didn't solve the problem either. But we did isolate the problem to two particular layers: There are two thematic maps that 'cannot' coexist. The timeout occurs only when those two layers come into the picture. I can display only one of these two thematic maps. Each of these layers contains about 100 polygons and are joined to tables which contain about 600 records. I am at a complete loss!!!! I have pasted the map file specs for those two layers below. I have also attached my most recent hs_err*.log. This time I also set DEBUG 5 in my mapfile and interestingly the "ms_error.txt" has no entries after the timeout occurs. There are no errors reported there. I do have some mapserver questions: 1) If I have 5 POSTGIS layer definitions and 7 Mapinfo layers(which I removed) in a mapfile does that mean that I have 12 connections that are made or is this considered a single connection? 2) Does Java Mapscript have a limit on the number of records that it can retrieve per request? 3) What happens between Mapserver, Java Mapscript and JVM? My hs_err*.log always mentions this. 4) If I have more than one 'map' page do the following situations make a difference: (i) have individual .jsp/.java page pairs for each map page (all the java pages have the same mapscript code, but different mapfiles) (ii) have individual .jsp pages for each map page(so two map pages would mean 2 jsp pages) but have a single java page which calls different mapfiles or different functions based on the jsp page the url request comes from. I have the exact same pages running in PHP with no issue. Any and all help is appreciated, Thanks, Ishwari ----------------------------------- layer details from Mapfile ----------------------------------------------------------- #******************************* #* layer definition area1 * #******************************* LAYER CONNECTIONTYPE POSTGIS NAME "rspropn" CONNECTION "host=localhost user=postgres password=xxxxx dbname=xxxxx port=5432" METADATA "DESCRIPTION" "Density by area1" "GNAME" "Thematic Maps" END GROUP Thematic DATA 'wkb_geometry FROM (select ROUND(CAST ("Seretailerpropn" as numeric),2)as seppn ,* from "gsduplarea1" AS a, "GSSummaryRetailer" as b WHERE a."ExecutiveCode" = b."Executivecode") as test using unique ogc_fid using unique wkb_geometry using SRID=4326' STATUS OFF TYPE POLYGON HEADER '/ms4w/apps/xxxxxxxx/templates/area12_header.html' FOOTER '/ms4w/apps/xxxxxxxx/templates/area12_footer.html' CLASSITEM "seppn" CLASS # CLASS 1: 0% - 0.5% NAME "0% - 0.5%" EXPRESSION ([seppn]GE 0 AND [seppn]LE 0.5) TEMPLATE '/ms4w/apps/xxxxxxxx/templates/area12_query.html' STYLE OUTLINECOLOR 0 0 0 WIDTH 10 COLOR 160 208 255 END END CLASS # CLASS 2: 1.0% - 2.0% NAME "0.5% - 2.0%" EXPRESSION ([seppn]GT 0.5 AND [seppn]LE 2.0 ) TEMPLATE '/ms4w/apps/xxxxxxxx/templates/area12_query.html' STYLE OUTLINECOLOR 0 0 0 WIDTH 10 COLOR 128 160 255 END END CLASS # CLASS 3: 2.0% - 5.0% NAME "2.0% - 5.0%" EXPRESSION ([seppn]GT 2.0 AND [seppn]LE 5.0 ) TEMPLATE '/ms4w/apps/xxxxxxxx/templates/area12_query.html' STYLE OUTLINECOLOR 0 0 0 WIDTH 10 COLOR 80 96 255 END END CLASS # CLASS 4: 5.0% - 25.0% NAME "5.0% - 25.0%" EXPRESSION ([seppn]GT 5.0 AND [seppn]LE 25 ) TEMPLATE '/ms4w/apps/xxxxxxxx/templates/area12_query.html' STYLE OUTLINECOLOR 0 0 0 WIDTH 10 COLOR 48 48 255 END END CLASS # CLASS 5: 25% - 50% NAME "25% - 50%" EXPRESSION ([seppn]GT 25.0 AND [seppn]LE 50) TEMPLATE '/ms4w/apps/xxxxxxxx/templates/area12_query.html' STYLE OUTLINECOLOR 0 0 0 WIDTH 10 COLOR 0 0 255 END END CLASS # CLASS 6: value GE 51 NAME "50% or more" EXPRESSION ([seppn] GE 51 ) TEMPLATE '/ms4w/apps/xxxxxxxx/templates/area12_query.html' STYLE OUTLINECOLOR 0 0 0 WIDTH 10 COLOR 0 0 255 END END METADATA wkb_geometry_type "wkb_geometry |geometry" END END # end layer area1 #******************************* #* layer definition sales * #******************************* LAYER CONNECTIONTYPE POSTGIS NAME "sales" CONNECTION "host=localhost user=postgres password=xxxxxxx dbname=GISXONTUserxxxxxxxx port=5432" METADATA "DESCRIPTION" "% of Sales(August '08)" "GNAME" "Thematic Maps" END GROUP Thematic DATA 'wkb_geometry FROM (select ROUND(CAST (sepropn as numeric),2)as test,* from "GSExecutiveArea" AS a, "GSExecutiveMonthlySalesSummary" As b Where a."ExecutiveCode" = b.executivecode) as sesales using unique ogc_fid using unique wkb_geometry using SRID=4326' STATUS OFF TYPE POLYGON #PROCESSING "CLOSE_CONNECTION=DEFER" FILTER "intperiod =200808" HEADER '/ms4w/apps/xxxxxxxx/templates/SEArea_header.html' FOOTER '/ms4w/apps/xxxxxxxx/templates/SEArea_footer.html' METADATA #query_returned_attributes '"ExecutiveCode"' wkb_geometry_type "wkb_geometry |geometry" END DEBUG ON CLASSITEM "sepropn" #LABELITEM "executivecode" CLASS # CLASS 1: No data NAME "0% - 0.5%" EXPRESSION ([sepropn]GE 0 AND [sepropn]LT 0.5) TEMPLATE '/ms4w/apps/xxxxxxxx/templates/SEArea_query.html' DEBUG ON STYLE OUTLINECOLOR 0 0 0 WIDTH 10 COLOR 255 255 208 END END CLASS # CLASS 2: 0 - 10% NAME "0.5% - 1.0%" EXPRESSION ([sepropn]GE 0.5 AND [sepropn]LT 1.0 ) TEMPLATE '/ms4w/apps/xxxxxxxx/templates/SEArea_query.html' DEBUG ON STYLE OUTLINECOLOR 0 0 0 WIDTH 10 COLOR 192 240 176 END END CLASS # CLASS 3: 10 LT value LE 15 NAME "1.0% - 2.0%" EXPRESSION ([sepropn]GE 1.0 AND [sepropn]LT 2.0 ) TEMPLATE '/ms4w/apps/xxxxxxxx/templates/SEArea_query.html' DEBUG ON STYLE OUTLINECOLOR 0 0 0 WIDTH 10 COLOR 128 208 144 END END CLASS # CLASS 4: value GE 51 NAME "2.0% - 5.0%" EXPRESSION ([sepropn]GE 2.0 AND [sepropn]LT 5 ) TEMPLATE '/ms4w/apps/xxxxxxxx/templates/SEArea_query.html' DEBUG ON STYLE OUTLINECOLOR 0 0 0 WIDTH 10 COLOR 0 160 80 END END CLASS # CLASS 6: value GE 5 NAME "5% or more" EXPRESSION ([sepropn] GE 5 ) TEMPLATE '/ms4w/apps/xxxxxxxx/templates/SEArea_query.html' DEBUG ON STYLE OUTLINECOLOR 0 0 0 WIDTH 10 COLOR 0 160 80 END END END # end layer SEArea ----------------------------------- layer details from Mapfile ----------------------------------------------------------- On Mon, Sep 1, 2008 at 5:53 PM, Umberto Nicoletti < umberto.nicoletti at gmail.com> wrote: > I would start by removing the ogr layers: move them to postgis or even > better to shapefiles using the ogr2ogr utility. > Try to have only shapefiles or postgis layers in your mapfiles and see > if that helps. Disabling the ogr component is not strictly necessary > (even thouh it is recommended) provided that you do not use it. > > Regards, > Umberto > > On Mon, Sep 1, 2008 at 1:28 PM, Ishwari Sivagnanam > wrote: > > Given below are the specs for what I have installed on my machine. I > > downloaded and installed the ms4w package with the windows installer. So > I > > haven't done any builds. And I haven't removed any dlls. > > > > I added the ntwdblib.dll to the cgi-bin folder. I believe this is used to > > connect SQL server and PHP. The data was originally in SQL server before > I > > moved it all to Postgres. > > > > OS: Windows XP > > gcc version : don't know what this is > > MapServer: version 5.0.0 > > Java : JDK 1.6 (NetBeans IDE 5.5.1) > > Java mapscript - the .dll and .jar file that are part of the ms4w package > > Apache Tomcat 5.5 > > > > Other: > > -------- > > PHP MapScript Version - ($Revision: 6872 $ $Date: 2007-09-10 10:45:30 > -0400 > > (Mon, 10 Sep 2007) $) > > ogr: i use the ogr2ogr library to call MapInfo layers > > > > Database: > > -------------- > > PostgreSQL 8.2.3 > > PostGIS 1.3.2 > > > > I read through the howto document that you pointed me to. I will check on > > the connection pooling. > > > > Unsafe components: I do use the ogr library since I have mapInfo files. I > > can move them to postgis. But I don't know how to disable the components. > > Since I didn't compile Java Mapscript I don't know how to fix this. > > > > Please find attached the most recent hs_err*.log from my machine. > > > > Thanks for your help > > :-) > > > > Ishwari > > > > On Mon, Sep 1, 2008 at 2:51 PM, Umberto Nicoletti > > wrote: > >> > >> Ok, now we're getting somewhere, but I need more information. > >> Read the fine manual (all of it, twice ;-)) at: > >> > >> http://mapserver.gis.umn.edu/docs/howto/javamapscript > >> > >> and report all the information it mentions in the last section. > >> In particular I need to know if you compiled java mapscript by > >> yourself or used the ms4w packages. > >> Also make sure you attach the hs_err*.log files. > >> > >> Regards, > >> Umberto > >> > >> On Mon, Sep 1, 2008 at 11:04 AM, Ishwari Sivagnanam < > ishwari.s at gmail.com> > >> wrote: > >> > The error message is the standard "Connection timeout" or "Unable to > >> > connect" page that appears in Firefox and the 'page not available' (I > >> > couldn't attach a screen capture). The platform is windows XP. > >> > > >> > Ocassionally loading the application stops Tomcat completely. > >> > > >> > Should I send the error log ? > >> > > >> > Thanks, > >> > Ishwari > >> > > >> > > >> > > >> > > >> > > >> > On Mon, Sep 1, 2008 at 12:32 PM, Umberto Nicoletti > >> > wrote: > >> >> > >> >> Please post the exact error message and architecture you're running > >> >> (version of Windows, linux, etc)? > >> >> > >> >> Umberto > >> >> > >> >> On Mon, Sep 1, 2008 at 7:53 AM, Ishwari Sivagnanam > >> >> > >> >> wrote: > >> >> > Hello all, > >> >> > I developed a mapserver site in Java mapscript and have run into a > >> >> > timeout > >> >> > issue. I have tried to explain the problem as best as I can below. > I > >> >> > am > >> >> > new > >> >> > to web application development and mapserver so I apologize for > >> >> > errors > >> >> > in > >> >> > the description. > >> >> > > >> >> > I have two seperate mapserver pages in my website. The scripting is > >> >> > done > >> >> > using Java Mapscript and JSP pages. The backend data comes from a > >> >> > Postgresql/ PostGIS database. I developed the exact same > application > >> >> > in > >> >> > PHP > >> >> > and 'deployed' it. I have had no issues with that site. The Java > >> >> > mapscript > >> >> > was developed along the same lines as the PHP application. > >> >> > Both mapserver pages share ~ 10 base maps. Additionally each of > these > >> >> > pages > >> >> > has a set of thematic maps. Page 1 has 2 thematic maps of the same > >> >> > point > >> >> > layer and a third thematic layer with a summary statistic for a > >> >> > polygon > >> >> > layer. Page 2 has a single thematic map which displays a summary > >> >> > statistic > >> >> > of a polygon layer. Page 1 by itself works well. Page 2 by itself > >> >> > works > >> >> > well. > >> >> > The problem occurs when > >> >> > (a) page 1 and page 2 are merged or > >> >> > (b) if they are deployed parallely in the same site > >> >> > I get an message which says "Connection timed out". > >> >> > I have tried searching the web for an answer but haven't been very > >> >> > successful > >> >> > > >> >> > Version and Specs: > >> >> > ---------------------------- > >> >> > MapServer version 5.0.0 > >> >> > PHP MapScript Version - ($Revision: 6872 $ $Date: 2007-09-10 > 10:45:30 > >> >> > -0400 > >> >> > (Mon, 10 Sep 2007) $) > >> >> > PostgreSQL 8.2.3 > >> >> > PostGIS 1.3.2 > >> >> > > >> >> > Apache Tomcat 5.5 > >> >> > Java 1.6 > >> >> > Java mapscript - Downloaded and installed using the page in the > >> >> > mapserver.umn.. website > >> >> > > >> >> > Could somebody help me please? > >> >> > > >> >> > Ishwari > >> >> > > >> >> > > >> >> > _______________________________________________ > >> >> > mapserver-users mailing list > >> >> > mapserver-users at lists.osgeo.org > >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> > > >> >> > > >> > > >> > > >> > _______________________________________________ > >> > mapserver-users mailing list > >> > mapserver-users at lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > >> > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ishwari.s at gmail.com Thu Sep 4 06:18:42 2008 From: ishwari.s at gmail.com (Ishwari Sivagnanam) Date: Thu, 4 Sep 2008 18:48:42 +0530 Subject: [mapserver-users] Java mapscript: connection timeout In-Reply-To: References: <75b4b93e0809010002y12cc877bpcb50c772a9848992@mail.gmail.com> <75b4b93e0809010221x225f4a03x25deae39c99acb96@mail.gmail.com> <75b4b93e0809010523t5c4c512ard0e080d4cdc9df5c@mail.gmail.com> Message-ID: The hs_err*.log attached this time. :-) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid2500.log Type: application/octet-stream Size: 16964 bytes Desc: not available URL: From jmckenna at gatewaygeomatics.com Thu Sep 4 06:23:36 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 04 Sep 2008 09:23:36 -0400 Subject: [mapserver-users] colors transparency In-Reply-To: <006701c90e5e$e441c500$acc54f00$@com> References: <223952.83622.qm@web27303.mail.ukl.yahoo.com> <006701c90e5e$e441c500$acc54f00$@com> Message-ID: <48BFE158.1060108@gatewaygeomatics.com> Note that the correct parameter to use with MapServer 5.x is OPACITY, as the transparency parameter is deprecated (see the mapfile reference doc). -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ Venkat Rao Tammineni wrote: > Hi, > > > > Why don?t you go for Layer transparency? I think it looks good , > while layer is overlaying? > > > > Thanks and Regards > > Venkat, > > India. > > > > > > *From:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *valerio > vianello > *Sent:* Thursday, September 04, 2008 12:31 PM > *To:* mapserver > *Subject:* [mapserver-users] colors transparency > > > > Dear list, > > Do you know if with mapserver is possible to set transparency in a layer > color ? > > I know that if I use COLOR -1 -1 -1 for a layer that layer is completely > transparent but my goal is to have a layer (polygon type) with a color > that doesn't hide the under layer. > > > thanks > > Valerio > From jhevenor at rogers.com Thu Sep 4 07:16:45 2008 From: jhevenor at rogers.com (Joshua Hevenor) Date: Thu, 4 Sep 2008 07:16:45 -0700 (PDT) Subject: [mapserver-users] ArcSDE 9.2 support Message-ID: <947254.26165.qm@web88004.mail.re2.yahoo.com> Are your labels coming out garbled or not drawing at all. There's some incompatability between using NVARCHAR and VARCHAR as your source data. If your labels are showing up but are unreadable this could be the problem. Let me know, and when I get back to my office I can provide you with more detail. Cheers, Josh Hevenor -------------- next part -------------- An HTML attachment was scrubbed... URL: From darenas2001 at yahoo.es Thu Sep 4 07:48:31 2008 From: darenas2001 at yahoo.es (David Arenas Aguirre) Date: Thu, 4 Sep 2008 14:48:31 +0000 (GMT) Subject: [mapserver-users] Re: Welcome to the "mapserver-users" mailing list In-Reply-To: Message-ID: <138900.59245.qm@web26908.mail.ukl.yahoo.com> David Arenas --- El jue, 4/9/08, mapserver-users-request at lists.osgeo.org escribi?: De: mapserver-users-request at lists.osgeo.org Asunto: Welcome to the "mapserver-users" mailing list Para: darenas2001 at yahoo.es Fecha: jueves, 4 septiembre, 2008 4:45 Welcome to the mapserver-users at lists.osgeo.org mailing list! To post to this list, send your email to: mapserver-users at lists.osgeo.org General information about the mailing list is at: http://lists.osgeo.org/mailman/listinfo/mapserver-users If you ever want to unsubscribe or change your options (eg, switch to or from digest mode, change your password, etc.), visit your subscription page at: http://lists.osgeo.org/mailman/options/mapserver-users/darenas2001%40yahoo.es You can also make such adjustments via email by sending a message to: mapserver-users-request at lists.osgeo.org with the word `help' in the subject or body (don't include the quotes), and you will get back a message with instructions. You must know your password to change your options (including changing the password, itself) or to unsubscribe. It is: qan6zg25 Normally, Mailman will remind you of your lists.osgeo.org mailing list passwords once every month, although you can disable this if you prefer. This reminder will also include instructions on how to unsubscribe or change your account options. There is also a button on your options page that will email your current password to you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ogomez2 at gmail.com Thu Sep 4 08:24:55 2008 From: ogomez2 at gmail.com (Oscar Gomez) Date: Thu, 4 Sep 2008 17:24:55 +0200 Subject: Fwd: [mapserver-users] ArcSDE 9.2 support In-Reply-To: <6f2569d80809040800p5a2a6384h7812a945b115d9a5@mail.gmail.com> References: <947254.26165.qm@web88004.mail.re2.yahoo.com> <6f2569d80809040800p5a2a6384h7812a945b115d9a5@mail.gmail.com> Message-ID: <6f2569d80809040824p1d23fafy38e0fa036372d2db@mail.gmail.com> My 2 cents: ArcSDE 9.2 stores by default in Unicode. I'm afraid you'll need to reload all the data again to ArcSDE, using a keyword that does not store the string data in unicode by default. Workaround: a) Create a new ArcSDE keyword (or modify a existing one) with sdedbtune -o export (and after -o import), to include the following entry: UNICODE_STRING "FALSE" b) Load the data using an ArcSDE Oracle Spatial (SDO) keyword, then use MapServer with Oracle Spatial, removing the "ANNO_CAD_DATA" with the query in the map file. Best, Oscar * ***************************************************************************************************************************** * *Oscar GOMEZ PRIETO* *Joint Research Centre European Commmission * *Institute for Environment and Sustainability Rural, Water and Ecosystem Resources Unit * *Building 26A Office n?132 TP 262 Via Enrico Fermi 2749 I-21027, ISPRA(VA) Italy Tel. **+39 - 03.32.78.38.24 E-mail: **oscar.gomez at jrc.it* * Unit Web site: **http://agrienv.jrc.it/** *** *DISCLAIMER:** 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.* *P** ** **Please consider the environment before printing this e-mail*** On Thu, Sep 4, 2008 at 4:16 PM, Joshua Hevenor wrote: > Are your labels coming out garbled or not drawing at all. There's some > incompatability between using NVARCHAR and VARCHAR as your source data. If > your labels are showing up but are unreadable this could be the problem. Let > me know, and when I get back to my office I can provide you with more > detail. > > Cheers, > > Josh Hevenor > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From blake at hailmail.net Thu Sep 4 19:10:53 2008 From: blake at hailmail.net (Dane Springmeyer) Date: Thu, 4 Sep 2008 19:10:53 -0700 Subject: [mapserver-users] Fractional line widths? In-Reply-To: References: <48AA78A80200008F0001AB26@co5.dnr.state.mn.us> <0712161B-993F-4054-AEB1-1450FCBFF6F1@hailmail.net> <0935765C-7CA1-4C53-B1B9-F97830C7A571@hailmail.net> Message-ID: <40054C84-FED9-47F1-A858-CA8C3DFCECAA@hailmail.net> Thomas, Thanks for the tip, but I think I don't quite understand the right syntax. First of all, I'm running the mac binary from kyngchaos, version 5.2.0 I've tried to add two style blocks like: LAYER NAME world_opacity DATA world_borders.shp STATUS ON TYPE POLYGON CLASS NAME "World" STYLE COLOR 242 239 249 OUTLINECOLOR -1 -1 -1 END STYLE COLOR -1 -1 -1 OUTLINECOLOR 127 127 127 OPACITY 50 WIDTH 1 END END # class END # layer to create this full mapfile: http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/world.map But that does not produce a result more akin to WIDTH 0.5, from what I can tell. It simply lightens the color of the outline, and in this case make it 'seem' even thicker. It is as if the opacity is not working as a true alpha opacity. Here is the example output with OPACITY 50: http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/map/hello_world_with_mapserver_mapfile_opacity.png Is this the expected behavior or have I made an error in my mapfile syntax (highly likely). Perhaps I am not correctly turning off the outline for the first style? The issue may also be with my OUTPUTFORMAT, which is not using the RGBA: OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB MIMETYPE "image/png" END I also tried with: OUTPUTFORMAT NAME 'AGGA' DRIVER AGG/PNG IMAGEMODE RGBA MIMETYPE "image/png" END but I get an error when I add the 'AGGA' (based on reading http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics) : msPostMapParseOutputFormatSetup(): General error message. Unable to select IMAGETYPE `AGG'. Any thoughts? Thanks, Dane On Aug 31, 2008, at 2:50 PM, thomas bonfort wrote: > hi. > yes, you need two style blocks inside your class > cheers, > thomas > > On Sun, Aug 31, 2008 at 9:43 PM, Dane Springmeyer > wrote: >> Hi Thomas, >> >> Thanks for the followup. >> >> The OPACITY keyword seems to apply to both the polyon fill (COLOR) >> and the >> outline (OUTLINECOLOR). >> >> What is the trick to apply it to only the outline? I tried >> OUTLINEOPACITY, >> which of course does not exist. >> >> Do I need to pull out a style class for just the outline? >> >> Here is the mapfile I am working from: >> >> http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/world.map >> >> Thanks, >> >> Dane >> >> >> On Aug 30, 2008, at 12:22 AM, thomas bonfort wrote: >> >>> Sorry for not hopping into the thread earlier, blame holidays :) >>> >>> For the time being, you can achieve similar output with mapserver >>> 5.2, >>> by using the OPACITY keyword at the style level >>> >>> STYLE >>> COLOR r g b >>> OPACITY 50 # essentially the same as WIDTH 0.5 >>> WIDTH 1 >>> END >>> >>> cheers, >>> thomas >>> -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Thu Sep 4 21:08:40 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Fri, 5 Sep 2008 09:38:40 +0530 Subject: [mapserver-users] colors transparency In-Reply-To: <48BFD928.6040704@gslab.com> References: <223952.83622.qm@web27303.mail.ukl.yahoo.com> <006701c90e5e$e441c500$acc54f00$@com> <48BFD928.6040704@gslab.com> Message-ID: <003301c90f0d$163f52d0$42bdf870$@com> Hi, If you want to implement Overlaying concept u need to layer transparency. Or you can go for Scaling layers. I think this is also good concept. This is what Layer Levels. You can able to see one layer at one level second layer at second level. If you want still view all the layers at a time means you need to go for Layer transparency concept. My Best suggestion is go for Scaling Layers. Thanks and Regards Venkat, India. -----Original Message----- From: Subha Ramakrishnan [mailto:subha at gslab.com] Sent: Thursday, September 04, 2008 6:19 PM To: Venkat Rao Tammineni Cc: valerio.vianello at yahoo.it; 'mapserver' Subject: Re: [mapserver-users] colors transparency Hi , If i use the transparency attribute for a layer, it seems to dim out the image based on the number that i specify for transparency. I've a question here.Say, i want to generate an image of india with the state boundaries.Is it possible for me to color the boundaries of the states within the map in a different color? Thanks. Subha Venkat Rao Tammineni wrote: > > Hi, > > > > Why don?t you go for Layer transparency? I think it looks good , > while layer is overlaying? > > > > Thanks and Regards > > Venkat, > > India. > > > > > > *From:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of > *valerio vianello > *Sent:* Thursday, September 04, 2008 12:31 PM > *To:* mapserver > *Subject:* [mapserver-users] colors transparency > > > > Dear list, > > Do you know if with mapserver is possible to set transparency in a > layer color ? > > I know that if I use COLOR -1 -1 -1 for a layer that layer is > completely transparent but my goal is to have a layer (polygon type) > with a color that doesn't hide the under layer. > > > thanks > > Valerio > > > __________________________________________________ > Do You Yahoo!? > Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da > tanto spazio gratuito per i tuoi file e i messaggi > http://mail.yahoo.it > > > -- > This message has been scanned for viruses and > dangerous content by *MailScanner* , and is > believed to be clean. > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From subha at gslab.com Fri Sep 5 00:23:32 2008 From: subha at gslab.com (Subha Ramakrishnan) Date: Fri, 05 Sep 2008 12:53:32 +0530 Subject: [mapserver-users] 900913 projection In-Reply-To: <48BFE158.1060108@gatewaygeomatics.com> References: <223952.83622.qm@web27303.mail.ukl.yahoo.com> <006701c90e5e$e441c500$acc54f00$@com> <48BFE158.1060108@gatewaygeomatics.com> Message-ID: <48C0DE74.9060604@gslab.com> Hi, Sometime back, i had posted a query regarding the 900913 projection. Just wanted to share the solution for the same. Apart from adding the entries to spatial_ref_sys table and epsg file for 900913 projection, you have to give the source projection of the data in the mapfile and then the projection in which you want the image in. Eg: projection "init=epsg:4326" end Layer projection "init=epsg:4326" end END Hope this helps. Regards, Subha From james.perrins at gmail.com Fri Sep 5 01:00:57 2008 From: james.perrins at gmail.com (James Perrins) Date: Fri, 5 Sep 2008 09:00:57 +0100 Subject: [mapserver-users] Transparent WMS layers googl 3d - sometimes ... Message-ID: Hi, I have been overlaying WMS layers on 2d google maps - all fine - transparent backgrounds on multiple layers showing the aerials underneath etc I have just started playing with the 3d plugin google have - using the same WMS layers that work fine on 2D google maps. I have 2 layers - one a vector line layer - and teh other a point layer using a BMP symbol. Layers being returned as PNG If I look at just the points or the points and lines - all is fine - I get a transparent WMS layer coming back fine If I just display the vector lines (or select an area of map where there are no points to display) - I get the vector lines displayed ona a solid white background Obviously this must be something to do with the colour palette being changed by mapserver to take account of the bitmap symbol making it all work - but how can I prevent the solid white background (and also why does the same WMS service work OK in 2D - so there must be some google factor at play here as well ??) Any suggestions gratefully received Many Thanks James From aditi.kolstudygroup at gmail.com Fri Sep 5 01:32:57 2008 From: aditi.kolstudygroup at gmail.com (aditigroup project) Date: Fri, 5 Sep 2008 14:02:57 +0530 Subject: [mapserver-users] error in installing mapserver on linux platform Message-ID: We were trying to do installation of mapsever5.0 on linux fedora core: We have done following things correctly without any error on Linux: 1.configure 2.compile 3.after executing ./mapserv -v we got the correct output problem occured is : when we do http://localhost/cgi-bin/ mapserv it doesnt gave the expected output. Apache error log file contained the following: [notice]Apache/2.2.8(unix)PHP/5.2.5configured -- resuming normal operations [notice]caught SIGTERM,shutting down. Please tell us what is the problem and how we can solve it. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpchiron at gmail.com Fri Sep 5 07:19:04 2008 From: jpchiron at gmail.com (Jean-Paul Chiron) Date: Fri, 5 Sep 2008 16:19:04 +0200 Subject: [mapserver-users] colors transparency In-Reply-To: <48BFE158.1060108@gatewaygeomatics.com> References: <223952.83622.qm@web27303.mail.ukl.yahoo.com> <006701c90e5e$e441c500$acc54f00$@com> <48BFE158.1060108@gatewaygeomatics.com> Message-ID: <4f1781a40809050719sca9e0abi4e9c46ed4929b613@mail.gmail.com> 2008/9/4 Jeff McKenna : > Note that the correct parameter to use with MapServer 5.x is OPACITY, as the > transparency parameter is deprecated (see the mapfile reference doc). When i try to put OPACITY or transparency parameter, mapserver didn't want to compute the map. Does i have a problem with my installation ? -- Jean Paul Chiron From Steve.Lime at dnr.state.mn.us Fri Sep 5 07:55:42 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 05 Sep 2008 09:55:42 -0500 Subject: [mapserver-users] error in installing mapserver on linux platform Message-ID: <48C102220200008F0001B271@co5.dnr.state.mn.us> What output does it give you? The apache error isn't helpful. I would assume it's something like when run the CGI process is not able to load the right dynamic libraries. You can try setting the the LD_LIBRARY_PATH in your configuration to include directories that you installed supporting libraries in if that's the case. Steve >>> "aditigroup project" 09/05/08 3:33 AM >>> We were trying to do installation of mapsever5.0 on linux fedora core: We have done following things correctly without any error on Linux: 1.configure 2.compile 3.after executing ./mapserv -v we got the correct output problem occured is : when we do http://localhost/cgi-bin/ mapserv it doesnt gave the expected output. Apache error log file contained the following: [notice]Apache/2.2.8(unix)PHP/5.2.5configured -- resuming normal operations [notice]caught SIGTERM,shutting down. Please tell us what is the problem and how we can solve it. From minka.stoyanova at gmail.com Fri Sep 5 09:13:39 2008 From: minka.stoyanova at gmail.com (Minka Stoyanova) Date: Fri, 5 Sep 2008 19:13:39 +0300 Subject: [mapserver-users] JOIN in a mapfile from a shapefile to a MySQL database Message-ID: <66b0a28d0809050913k16c6864cj47ef8ddb6e113b31@mail.gmail.com> Hello, It's the first time i try to make a JOIN in a mapfile layer. I want to query a mysql database for some attributes (columns) of a selected point from the point layer. This is the layer definition: LAYER # States point layer 1 begins here NAME "meteostations" DATA meteostationstotal_11 STATUS ON TYPE POINT CLASS SYMBOL 'circle' SIZE 8 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END TEMPLATE "sometemplate.html" TOLERANCE 3 TOLERANCEUNITS PIXELS METADATA "DESCRIPTION" "Meteo stations" "RESULT_FIELDS" "A sin_kod NAME IME longi X_COO lat Y_COO" # the result fields are mixed - the* names of some columns* from the shapefile and from the database END JOIN NAME FirstJoin CONNECTION 'MYSQL:meteo,host=some_IP,user=myuser,password=mypassword,tables=bgc' CONNECTIONTYPE ogr FROM A TABLE bgc TO sin_kod TYPE ONE-TO-ONE END END # States point layer 1 ends here I receive no error (neighther in the mapserver.log file, nor in the web server logs) BUT I don't receive any info from the database. Thanks in advance! -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve at online-archaeology.co.uk Fri Sep 5 12:03:58 2008 From: steve at online-archaeology.co.uk (Steve White) Date: Fri, 5 Sep 2008 20:03:58 +0100 Subject: [mapserver-users] High CPU Message-ID: <002f01c90f8a$26b9e3f0$742dabd0$@co.uk> I'm running the latest version of MS4W on a virtual private server with the following: - 2003 Server - IIS 6.0 - Intel Xeon CPU 3.20Ghz - 640MB RAM I have one shapefile 850KB and a basic mapfile like below: MAP NAME Test STATUS ON UNITS METERS SHAPEPATH "C:\Inetpub\scripts\data\" IMAGECOLOR 0 255 255 SIZE 400 400 DEBUG ON IMAGETYPE PNG EXTENT -4.35 56.14 -3.23 56.91 WEB METADATA "wms_title" "Test MS" "wms_onlineresource" "http://localhost/scripts/mapserv.exe&" "wms_srs" "EPSG:4326 EPSG:54004 EPSG:27700" "wms_feature_info_mime_type" "text/html" END IMAGEPATH "C:\Inetpub\wwwroot\tmp\" IMAGEURL "C:\Inetpub\wwwroot\tmp\" LOG "C:\Inetpub\wwwroot\tmp\mapserver.log" TEMPLATE "C:\Inetpub\wwwroot\Test\templates\template.html" EMPTY "C:\Inetpub\wwwroot\Test\templates\template_empty.html" END PROJECTION "init=epsg:4326" END SYMBOL NAME "circle" TYPE ellipse FILLED true POINTS 1 1 END END LAYER NAME Test METADATA "wms_title" "Test" "gml_include_items" "all" "wms_include_items" "all" "wms_feature_info_mime_type" "text/html" END TYPE POINT DATA Test STATUS ON DUMP TRUE CLASS TEMPLATE "C:\Inetpub\wwwroot\Test\templates\template_test.html" STYLE SYMBOL "circle" SIZE 10 COLOR 0 0 255 END END END #end of layer END # end of mapfile I'm sending WMS GetMap requests to the layer from my localhost and monitoring CPU on the server. Every time I send a request the server CPU hits 100% until the request ends. 1) Is 640MB RAM enough to cope with this simple request? 2) Is there anything wrong with the mapfile? 3) Are there any methods I can use to tune this further? Cheers, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From charles.theobald at ncmail.net Fri Sep 5 12:29:41 2008 From: charles.theobald at ncmail.net (Charles Theobald) Date: Fri, 05 Sep 2008 15:29:41 -0400 Subject: [mapserver-users] Re: JOIN in a mapfile from a shapefile to a MySQL database In-Reply-To: <20080905190425.1D979E01E18@lists.osgeo.org> References: <20080905190425.1D979E01E18@lists.osgeo.org> Message-ID: <48C188A5.5090300@ncmail.net> We do that kind of join with a lot of our data. Here's a code snippet from a polygon layer in one of our maps: LAYER #Service area poly layer starts here NAME Service_areas CONNECTIONTYPE ogr CONNECTION "/path/to/shape/file/on/mapserver/cpws.shp" DATA "SELECT * FROM cpws LEFT JOIN 'MYSQL:databasename,host=mysqlhostname,user=mysqluseraccount,password=mysqluserpassword'.sysstatus ON cpws.id = sysstatus.permit" *cpws is the shape file (on the map server), and sysstatus is a table on our MySQL server (different boxes); the join is being performed on cpws.id and sysstatus.permit. Hope this helps. mapserver-users-request at lists.osgeo.org wrote: > Send mapserver-users mailing list submissions to > mapserver-users at lists.osgeo.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.osgeo.org/mailman/listinfo/mapserver-users > or, via email, send a message with subject or body 'help' to > mapserver-users-request at lists.osgeo.org > > You can reach the person managing the list at > mapserver-users-owner at lists.osgeo.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of mapserver-users digest..." > > > Today's Topics: > > 1. JOIN in a mapfile from a shapefile to a MySQL database > (Minka Stoyanova) > 2. High CPU (Steve White) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 5 Sep 2008 19:13:39 +0300 > From: "Minka Stoyanova" > Subject: [mapserver-users] JOIN in a mapfile from a shapefile to a > MySQL database > To: mapserver-users at lists.osgeo.org > Message-ID: > <66b0a28d0809050913k16c6864cj47ef8ddb6e113b31 at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Hello, > > It's the first time i try to make a JOIN in a mapfile layer. I want to query > a mysql database for some attributes (columns) of a selected point from the > point layer. > > This is the layer definition: > > LAYER # States point layer 1 begins here > NAME "meteostations" > DATA meteostationstotal_11 > STATUS ON > TYPE POINT > CLASS > SYMBOL 'circle' > SIZE 8 > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > END > TEMPLATE "sometemplate.html" TOLERANCE 3 TOLERANCEUNITS PIXELS > METADATA > "DESCRIPTION" "Meteo stations" > "RESULT_FIELDS" "A sin_kod NAME IME longi X_COO lat Y_COO" > # the result fields are mixed - the* names of some columns* from the > shapefile and from the database > END > JOIN > NAME FirstJoin > CONNECTION > 'MYSQL:meteo,host=some_IP,user=myuser,password=mypassword,tables=bgc' > CONNECTIONTYPE ogr > FROM A > TABLE bgc > TO sin_kod > TYPE ONE-TO-ONE > END > END # States point layer 1 ends here > > I receive no error (neighther in the mapserver.log file, nor in the web > server logs) BUT I don't receive any info from the database. > > Thanks in advance! > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080905/64c07317/attachment-0001.html > > ------------------------------ > > Message: 2 > Date: Fri, 5 Sep 2008 20:03:58 +0100 > From: "Steve White" > Subject: [mapserver-users] High CPU > To: "Mapserver-users" > Message-ID: <002f01c90f8a$26b9e3f0$742dabd0$@co.uk> > Content-Type: text/plain; charset="us-ascii" > > I'm running the latest version of MS4W on a virtual private server with the > following: > > > > - 2003 Server > > - IIS 6.0 > > - Intel Xeon CPU 3.20Ghz > > - 640MB RAM > > > > I have one shapefile 850KB and a basic mapfile like below: > > > > MAP > > NAME Test > > STATUS ON > > UNITS METERS > > SHAPEPATH "C:\Inetpub\scripts\data\" > > IMAGECOLOR 0 255 255 > > SIZE 400 400 > > DEBUG ON > > IMAGETYPE PNG > > EXTENT -4.35 56.14 -3.23 > 56.91 > > > > WEB > > METADATA > > "wms_title" "Test MS" > > "wms_onlineresource" "http://localhost/scripts/mapserv.exe&" > > > "wms_srs" "EPSG:4326 EPSG:54004 > EPSG:27700" > > "wms_feature_info_mime_type" "text/html" > > END > > > > IMAGEPATH "C:\Inetpub\wwwroot\tmp\" > > IMAGEURL "C:\Inetpub\wwwroot\tmp\" > > LOG > "C:\Inetpub\wwwroot\tmp\mapserver.log" > > TEMPLATE > "C:\Inetpub\wwwroot\Test\templates\template.html" > > EMPTY > "C:\Inetpub\wwwroot\Test\templates\template_empty.html" > > > > END > > > > PROJECTION > > "init=epsg:4326" > > END > > > > SYMBOL > > NAME "circle" > > TYPE ellipse > > FILLED true > > POINTS > > 1 1 > > END > > END > > > > LAYER > > NAME Test > > METADATA > > "wms_title" "Test" > > "gml_include_items" "all" > > "wms_include_items" "all" > > "wms_feature_info_mime_type" "text/html" > > END > > TYPE > POINT > > DATA > Test > > STATUS > ON > > DUMP TRUE > > CLASS > > TEMPLATE > "C:\Inetpub\wwwroot\Test\templates\template_test.html" > > STYLE > > SYMBOL "circle" > > SIZE 10 > > COLOR 0 0 255 > > END > > END > > END #end of layer > > > > END # end of mapfile > > > > I'm sending WMS GetMap requests to the layer from my localhost and > monitoring CPU on the server. > > > > Every time I send a request the server CPU hits 100% until the request ends. > > > > 1) Is 640MB RAM enough to cope with this simple request? > > 2) Is there anything wrong with the mapfile? > > 3) Are there any methods I can use to tune this further? > > > > Cheers, > > > > Steve > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080905/8a0be3b5/attachment.html > > ------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > End of mapserver-users Digest, Vol 8, Issue 18 > ********************************************** > -- Charles Theobald NC Division of Water Resources charles.theobald at ncmail.net 919-715-5425 From dylan.beaudette at gmail.com Fri Sep 5 13:35:57 2008 From: dylan.beaudette at gmail.com (Dylan Beaudette) Date: Fri, 5 Sep 2008 13:35:57 -0700 Subject: [mapserver-users] Trouble with Mapserver 4.10.3 and PostGIS layers Message-ID: <200809051335.57530.dylan.beaudette@gmail.com> Hi, I recently upgraded from 4.8.4 -> 4.10.3 and began noticing some odd behavior in a couple of my mapserver-based applications. This error would regularly appear whenever an image was drawn using PHP mapscript, from data stored in a PostGIS database: prepare_database(): Error executing POSTGIS BEGIN statement. Refreshing the page would result in the image being drawn, and no error message. Another odd thing I noticed were these errors in my Postgresql log: ... ERROR: cursor "mycursor" does not exist WARNING: there is already a transaction in progress ERROR: cursor "mycursor" does not exist WARNING: there is already a transaction in progress ... Switching back to Mapserver 4.8.4 causes these problems to go away. I am compiling against GD 2.0.33 [patched for antialiasing] and PHP 4.4.8. The database is Postgresql 8.1.2, with PostGIS version 1.3.2. Is it time to upgrade everything to their latest version? Other ideas? Thanks, Dylan -- Dylan Beaudette Soil Resource Laboratory http://casoilresource.lawr.ucdavis.edu/ University of California at Davis 530.754.7341 From mpriour at kestrelcomputer.com Fri Sep 5 14:02:23 2008 From: mpriour at kestrelcomputer.com (mpriour) Date: Fri, 5 Sep 2008 14:02:23 -0700 (PDT) Subject: [MAPSERVER-USERS] Change Content-Type header for GML GetFeatureInfo request on Apache Message-ID: <19337438.post@talk.nabble.com> I want to rewrite the Content-Type header of the response for a GML format GetFeatureInfo request. I need to add "; charset=utf-8" to the default "application/vnd.ogc.gml" content-type header. As reported in Ticket #2583 (http://trac.osgeo.org/mapserver/ticket/2583), the encoding directive in the xml declaration tag is not enough to get some browsers to properly parse the xml properly when it contains non- US-ASCII characters. Since this defect is not scheduled to be fixed until 5.4, I need some other way to add to or modify the Content-Type so that it can be properly parsed by browsers. I am using the CGI version of mapserver on an apache-2.0.61 on 64bit Linux Slackware from HostGIS Mapserver directly sets a Content-Type header which is not text/plain or any other text/* type. Therefore the default content-type, default charset, mime.type and magic do not have any effect on the Content-Type header generated by mapserver. Also since the output is from a cgi program with no extension, and mapserver produces responses with other content-types that I don't want modified, Add Type & Force don't seem to be valid options. I want to ensure that all responses with a Content-Type header of "application/vnd.ogc.gml" are modified to "application/vnd.ogc.gml; charset=utf-8" or even "text/xml; charset=utf-8". What is the best way to go about this? Do I need to write a custom ContentFilter or is there some way to set options in httpd.conf, .htaccess, or other such file that would make this content-type modification automattically? -- View this message in context: http://www.nabble.com/Change-Content-Type-header-for-GML-GetFeatureInfo-request-on-Apache-tp19337438p19337438.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Fri Sep 5 15:27:03 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 05 Sep 2008 18:27:03 -0400 Subject: [mapserver-users] High CPU In-Reply-To: <002f01c90f8a$26b9e3f0$742dabd0$@co.uk> References: <002f01c90f8a$26b9e3f0$742dabd0$@co.uk> Message-ID: <48C1B237.9030805@gatewaygeomatics.com> my quick thoughts: - make sure you are using MS4W 2.2.9 (latest) - make sure your shp has a qix file with it (created by shptree.exe) - test draw speed with shp2img.exe command with -map_debug 5 - make sure no projections-on-the-fly are occurring ....start with that anyway... -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ Steve White wrote: > I?m running the latest version of MS4W on a virtual private server with > the following: > > > > - 2003 Server > > - IIS 6.0 > > - Intel Xeon CPU 3.20Ghz > > - 640MB RAM > > > > I have one shapefile 850KB and a basic mapfile like below: > > > > MAP > > NAME Test > > STATUS ON > > UNITS METERS > > SHAPEPATH "C:\Inetpub\scripts\data\" > > IMAGECOLOR 0 255 255 > > SIZE 400 400 > > DEBUG ON > > IMAGETYPE PNG > > EXTENT -4.35 56.14 -3.23 > 56.91 > > > > WEB > > METADATA > > "wms_title" "Test MS" > > "wms_onlineresource" > "http://localhost/scripts/mapserv.exe&" > > "wms_srs" "EPSG:4326 EPSG:54004 > EPSG:27700" > > "wms_feature_info_mime_type" "text/html" > > END > > > > IMAGEPATH "C:\Inetpub\wwwroot\tmp\" > > IMAGEURL "C:\Inetpub\wwwroot\tmp\" > > LOG > "C:\Inetpub\wwwroot\tmp\mapserver.log" > > TEMPLATE > "C:\Inetpub\wwwroot\Test\templates\template.html" > > EMPTY > "C:\Inetpub\wwwroot\Test\templates\template_empty.html" > > > > END > > > > PROJECTION > > "init=epsg:4326" > > END > > > > SYMBOL > > NAME "circle" > > TYPE ellipse > > FILLED true > > POINTS > > 1 1 > > END > > END > > > > LAYER > > NAME Test > > METADATA > > "wms_title" "Test" > > "gml_include_items" "all" > > "wms_include_items" "all" > > "wms_feature_info_mime_type" "text/html" > > END > > > TYPE POINT > > DATA > Test > > > STATUS ON > > DUMP TRUE > > CLASS > > TEMPLATE > "C:\Inetpub\wwwroot\Test\templates\template_test.html" > > STYLE > > SYMBOL "circle" > > SIZE 10 > > COLOR 0 0 255 > > END > > END > > END #end of layer > > > > END # end of mapfile > > > > I?m sending WMS GetMap requests to the layer from my localhost and > monitoring CPU on the server. > > > > Every time I send a request the server CPU hits 100% until the request ends. > > > > 1) Is 640MB RAM enough to cope with this simple request? > > 2) Is there anything wrong with the mapfile? > > 3) Are there any methods I can use to tune this further? > > > > Cheers, > > > > Steve > > From mgleahy at alumni.uwaterloo.ca Fri Sep 5 16:13:55 2008 From: mgleahy at alumni.uwaterloo.ca (Mike Leahy) Date: Sat, 06 Sep 2008 11:13:55 +1200 Subject: [mapserver-users] Fractional line widths? Message-ID: <48C1BD33.4010703@alumni.uwaterloo.ca> Hello Dane, If you change the name of your OUTPUTFORMAT to 'AGGA', then I think you must also change the IMAGETYPE parameter to 'AGGA' so that the map uses the correct outputformat (i.e., there can be more than one outpuformat in a mapfile). Mike > Date: Thu, 4 Sep 2008 19:10:53 -0700 > From: Dane Springmeyer > Subject: Re: [mapserver-users] Fractional line widths? > To: thomas bonfort > Cc: mapserver-users at lists.osgeo.org > Message-ID: <40054C84-FED9-47F1-A858-CA8C3DFCECAA at hailmail.net> > Content-Type: text/plain; charset="us-ascii" > > Thomas, > > Thanks for the tip, but I think I don't quite understand the right > syntax. > > First of all, I'm running the mac binary from kyngchaos, version 5.2.0 > > I've tried to add two style blocks like: > > LAYER > NAME world_opacity > DATA world_borders.shp > STATUS ON > TYPE POLYGON > CLASS > NAME "World" > STYLE > COLOR 242 239 249 > OUTLINECOLOR -1 -1 -1 > END > STYLE > COLOR -1 -1 -1 > OUTLINECOLOR 127 127 127 > OPACITY 50 > WIDTH 1 > END > END # class > END # layer > > to create this full mapfile: http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/world.map > > But that does not produce a result more akin to WIDTH 0.5, from what I > can tell. It simply lightens the color of the outline, and in this > case make it 'seem' even thicker. It is as if the opacity is not > working as a true alpha opacity. > > Here is the example output with OPACITY 50: > > http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/map/hello_world_with_mapserver_mapfile_opacity.png > > Is this the expected behavior or have I made an error in my mapfile > syntax (highly likely). Perhaps I am not correctly turning off the > outline for the first style? > > The issue may also be with my OUTPUTFORMAT, which is not using the RGBA: > > OUTPUTFORMAT > NAME 'AGG' > DRIVER AGG/PNG > IMAGEMODE RGB > MIMETYPE "image/png" > END > > I also tried with: > > OUTPUTFORMAT > NAME 'AGGA' > DRIVER AGG/PNG > IMAGEMODE RGBA > MIMETYPE "image/png" > END > > but I get an error when I add the 'AGGA' (based on reading http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics) > : > > msPostMapParseOutputFormatSetup(): General error message. Unable to > select IMAGETYPE `AGG'. > > > Any thoughts? > > Thanks, > > Dane > > > > On Aug 31, 2008, at 2:50 PM, thomas bonfort wrote: > >> > hi. >> > yes, you need two style blocks inside your class >> > cheers, >> > thomas >> > >> > On Sun, Aug 31, 2008 at 9:43 PM, Dane Springmeyer >> > wrote: >>> >> Hi Thomas, >>> >> >>> >> Thanks for the followup. >>> >> >>> >> The OPACITY keyword seems to apply to both the polyon fill (COLOR) >>> >> and the >>> >> outline (OUTLINECOLOR). >>> >> >>> >> What is the trick to apply it to only the outline? I tried >>> >> OUTLINEOPACITY, >>> >> which of course does not exist. >>> >> >>> >> Do I need to pull out a style class for just the outline? >>> >> >>> >> Here is the mapfile I am working from: >>> >> >>> >> http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/world.map >>> >> >>> >> Thanks, >>> >> >>> >> Dane >>> >> >>> >> >>> >> On Aug 30, 2008, at 12:22 AM, thomas bonfort wrote: >>> >> >>>> >>> Sorry for not hopping into the thread earlier, blame holidays :) >>>> >>> >>>> >>> For the time being, you can achieve similar output with mapserver >>>> >>> 5.2, >>>> >>> by using the OPACITY keyword at the style level >>>> >>> >>>> >>> STYLE >>>> >>> COLOR r g b >>>> >>> OPACITY 50 # essentially the same as WIDTH 0.5 >>>> >>> WIDTH 1 >>>> >>> END >>>> >>> >>>> >>> cheers, >>>> >>> thomas >>>> >>> > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080904/a2a331e8/attachment-0001.html > > ------------------------------ From srph124 at yahoo.com Sat Sep 6 04:10:27 2008 From: srph124 at yahoo.com (Saka Royban) Date: Sat, 6 Sep 2008 04:10:27 -0700 (PDT) Subject: [mapserver-users] Arabic labeling problem again?!!! Message-ID: <334070.67813.qm@web58212.mail.re3.yahoo.com> Hi all. I've asked this problem in MS4W mailing list but no success. it sounds it originally relates to mapserver According to what History.txt? for MS4W2.2.8 says, problem for arabic and hebrew languages has been solved by using UTF8. But i couldn't get a good result. In fact, UTF8 doesn't show letters correctly (just some symbols). i have tried lots of fonts but the same result. in current version, the problem of joining letters have been solved because i can get result using 'ISO8859-6' encoding which is for arabic but now?this encoding changes some of letters?with each other. In last version, 'Windows-1256' encoding (for arabic) worked well for showing letters just they were separate not joint. but in cuurent versions this encoding just shows some symbols. I'm confused. maybe i should setup sth which i don't do or i don't know sth else. that would be my appreciate to help me because it is really a need. Maps without labels have less usage. Thanks in advance (See attachments) My Mapfile:? LABEL ??TYPE TrueType ??FONT timesnewromans ??ENCODING 'windows-1256' ??SIZE 12 END -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: UTF-8.png Type: image/x-png Size: 1587 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Windows-1256.png Type: image/x-png Size: 3140 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ISO8859-6.png Type: image/x-png Size: 2903 bytes Desc: not available URL: From minka.stoyanova at gmail.com Sat Sep 6 05:42:54 2008 From: minka.stoyanova at gmail.com (Minka Stoyanova) Date: Sat, 6 Sep 2008 15:42:54 +0300 Subject: [mapserver-users] Re: JOIN in a mapfile from a shapefile to a MySQL database In-Reply-To: <48C188A5.5090300@ncmail.net> References: <20080905190425.1D979E01E18@lists.osgeo.org> <48C188A5.5090300@ncmail.net> Message-ID: <66b0a28d0809060542y454c7fcfj93ed5df906f4f395@mail.gmail.com> Thank you Charles! Your example really works and I very quckly managed to achieve what I intended. BUT it is a different thing - you make a join during constracting the layer and I suppose that it should affect how a layer looks like. I was asking about the JOIN object of the mapfile, that according to the documentation cannot affect the look of a layer and gives results only whan the layer is queried. I tried simpler JOIN with a csv file which give no results eighther. Someone has any idea? On Fri, Sep 5, 2008 at 10:29 PM, Charles Theobald < charles.theobald at ncmail.net> wrote: > We do that kind of join with a lot of our data. Here's a code snippet from > a polygon layer in one of our maps: > > LAYER #Service area poly layer starts here > NAME Service_areas > CONNECTIONTYPE ogr > CONNECTION "/path/to/shape/file/on/mapserver/cpws.shp" > DATA "SELECT * FROM cpws LEFT JOIN > 'MYSQL:databasename,host=mysqlhostname,user=mysqluseraccount,password=mysqluserpassword'.sysstatus > ON cpws.id = sysstatus.permit" > > *cpws is the shape file (on the map server), and sysstatus is a table on > our MySQL server (different boxes); the join is being performed on cpws.idand sysstatus.permit. > Hope this helps. > > > mapserver-users-request at lists.osgeo.org wrote: > >> Send mapserver-users mailing list submissions to >> mapserver-users at lists.osgeo.org >> >> To subscribe or unsubscribe via the World Wide Web, visit >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> or, via email, send a message with subject or body 'help' to >> mapserver-users-request at lists.osgeo.org >> >> You can reach the person managing the list at >> mapserver-users-owner at lists.osgeo.org >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of mapserver-users digest..." >> >> >> Today's Topics: >> >> 1. JOIN in a mapfile from a shapefile to a MySQL database >> (Minka Stoyanova) >> 2. High CPU (Steve White) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Fri, 5 Sep 2008 19:13:39 +0300 >> From: "Minka Stoyanova" >> Subject: [mapserver-users] JOIN in a mapfile from a shapefile to a >> MySQL database >> To: mapserver-users at lists.osgeo.org >> Message-ID: >> <66b0a28d0809050913k16c6864cj47ef8ddb6e113b31 at mail.gmail.com> >> Content-Type: text/plain; charset="iso-8859-1" >> >> >> Hello, >> >> It's the first time i try to make a JOIN in a mapfile layer. I want to >> query >> a mysql database for some attributes (columns) of a selected point from >> the >> point layer. >> >> This is the layer definition: >> >> LAYER # States point layer 1 begins here >> NAME "meteostations" >> DATA meteostationstotal_11 >> STATUS ON >> TYPE POINT >> CLASS >> SYMBOL 'circle' >> SIZE 8 >> COLOR 255 0 0 >> OUTLINECOLOR 0 0 0 >> END >> TEMPLATE "sometemplate.html" TOLERANCE 3 TOLERANCEUNITS PIXELS >> METADATA >> "DESCRIPTION" "Meteo stations" >> "RESULT_FIELDS" "A sin_kod NAME IME longi X_COO lat Y_COO" >> # the result fields are mixed - the* names of some columns* from the >> shapefile and from the database >> END >> JOIN >> NAME FirstJoin >> CONNECTION >> 'MYSQL:meteo,host=some_IP,user=myuser,password=mypassword,tables=bgc' >> CONNECTIONTYPE ogr >> FROM A >> TABLE bgc >> TO sin_kod >> TYPE ONE-TO-ONE >> END >> END # States point layer 1 ends here >> >> I receive no error (neighther in the mapserver.log file, nor in the web >> server logs) BUT I don't receive any info from the database. >> >> Thanks in advance! >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: >> http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080905/64c07317/attachment-0001.html >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve at online-archaeology.co.uk Sat Sep 6 13:35:27 2008 From: steve at online-archaeology.co.uk (Steve White) Date: Sat, 6 Sep 2008 21:35:27 +0100 Subject: [mapserver-users] High CPU Message-ID: <004201c91060$1917ba20$4b472e60$@co.uk> Thanks Jeff - - I upgraded to MS4w 2.2.9 - I ran shptree.exe and produced the index file - My results of shp2img.exe are below - I don't think any projections-on-the-fly are occurring Shp2img dump: msDrawMap(): Layer 0 (OA), 0.015s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.015s SaveImage() total time: 0.297s msFreeMap(): freeing map at 0144B498. I'm still getting very high CPU usage with just one active session, so there's no way I can go into production till this is resolved. Any other things I can look at? Cheers, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at cleverelephant.ca Sat Sep 6 22:07:29 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Sat, 6 Sep 2008 22:07:29 -0700 Subject: [mapserver-users] High CPU In-Reply-To: <004201c91060$1917ba20$4b472e60$@co.uk> References: <004201c91060$1917ba20$4b472e60$@co.uk> Message-ID: <30fe546d0809062207p438feaa6h84b25cd966f38ab8@mail.gmail.com> It took 0.3s to run to completion, what's the problem precisely? P. On Sat, Sep 6, 2008 at 1:35 PM, Steve White wrote: > Thanks Jeff ? > > > > - I upgraded to MS4w 2.2.9 > > - I ran shptree.exe and produced the index file > > - My results of shp2img.exe are below > > - I don't think any projections-on-the-fly are occurring > > > > Shp2img dump: > > > > msDrawMap(): Layer 0 (OA), 0.015s > > msDrawMap(): Drawing Label Cache, 0.000s > > msDrawMap() total time: 0.015s > > SaveImage() total time: 0.297s > > msFreeMap(): freeing map at 0144B498. > > > > I'm still getting very high CPU usage with just one active session, so > there's no way I can go into production till this is resolved. > > > > Any other things I can look at? > > > > Cheers, > > > > Steve > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From steve at online-archaeology.co.uk Sun Sep 7 01:20:08 2008 From: steve at online-archaeology.co.uk (Steve White) Date: Sun, 7 Sep 2008 09:20:08 +0100 Subject: [mapserver-users] High CPU In-Reply-To: <30fe546d0809062207p438feaa6h84b25cd966f38ab8@mail.gmail.com> References: <004201c91060$1917ba20$4b472e60$@co.uk> <30fe546d0809062207p438feaa6h84b25cd966f38ab8@mail.gmail.com> Message-ID: <000001c910c2$8a2acb50$9e8061f0$@co.uk> The problem is that CPU shoots to 100% while tiles are being generated from a remote WMS call. The shp2img dump was taken directly on the server but the problem occurs when I send remote WMS requests to the server. I'm starting to think that 640MB RAM isn't enough and I should probably bump it up to 1GB. -----Original Message----- From: Paul Ramsey [mailto:pramsey at cleverelephant.ca] Sent: 07 September 2008 06:07 To: Steve White Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] High CPU It took 0.3s to run to completion, what's the problem precisely? P. On Sat, Sep 6, 2008 at 1:35 PM, Steve White wrote: > Thanks Jeff - > > > > - I upgraded to MS4w 2.2.9 > > - I ran shptree.exe and produced the index file > > - My results of shp2img.exe are below > > - I don't think any projections-on-the-fly are occurring > > > > Shp2img dump: > > > > msDrawMap(): Layer 0 (OA), 0.015s > > msDrawMap(): Drawing Label Cache, 0.000s > > msDrawMap() total time: 0.015s > > SaveImage() total time: 0.297s > > msFreeMap(): freeing map at 0144B498. > > > > I'm still getting very high CPU usage with just one active session, so > there's no way I can go into production till this is resolved. > > > > Any other things I can look at? > > > > Cheers, > > > > Steve > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From even.rouault at mines-paris.org Sun Sep 7 02:30:20 2008 From: even.rouault at mines-paris.org (Even Rouault) Date: Sun, 7 Sep 2008 11:30:20 +0200 Subject: [mapserver-users] High CPU In-Reply-To: <000001c910c2$8a2acb50$9e8061f0$@co.uk> References: <004201c91060$1917ba20$4b472e60$@co.uk> <30fe546d0809062207p438feaa6h84b25cd966f38ab8@mail.gmail.com> <000001c910c2$8a2acb50$9e8061f0$@co.uk> Message-ID: <200809071130.20956.even.rouault@mines-paris.org> I would say that a CPU load at 100% when responding to WMS requests is perfectly normal and expected. It shows that the process is not stuck at waiting for I/O to be completed. Maybe you could complain that mapserver is doing its job too slowly, but I don't understand why a 100% CPU load is a problem. If your server must handle several requests at the same time, the OS will share the CPU resource between all requests. If you really don't want to reach 100%, there are probably ways of instructing your OS to schedule mapserver a bit less agressively. Increasing RAM would unlikely change that (it would be usefull only if you saw low CPU usage because of swap trashing for example). Increasing CPU speed neither. It would just run at 100% for a shorter time. Le Sunday 07 September 2008 10:20:08 Steve White, vous avez ?crit?: > The problem is that CPU shoots to 100% while tiles are being generated from > a remote WMS call. > > The shp2img dump was taken directly on the server but the problem occurs > when I send remote WMS requests to the server. > > I'm starting to think that 640MB RAM isn't enough and I should probably > bump it up to 1GB. > > > -----Original Message----- > From: Paul Ramsey [mailto:pramsey at cleverelephant.ca] > Sent: 07 September 2008 06:07 > To: Steve White > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] High CPU > > It took 0.3s to run to completion, what's the problem precisely? > > P. > > On Sat, Sep 6, 2008 at 1:35 PM, Steve White > > wrote: > > Thanks Jeff - > > > > > > > > - I upgraded to MS4w 2.2.9 > > > > - I ran shptree.exe and produced the index file > > > > - My results of shp2img.exe are below > > > > - I don't think any projections-on-the-fly are occurring > > > > > > > > Shp2img dump: > > > > > > > > msDrawMap(): Layer 0 (OA), 0.015s > > > > msDrawMap(): Drawing Label Cache, 0.000s > > > > msDrawMap() total time: 0.015s > > > > SaveImage() total time: 0.297s > > > > msFreeMap(): freeing map at 0144B498. > > > > > > > > I'm still getting very high CPU usage with just one active session, so > > there's no way I can go into production till this is resolved. > > > > > > > > Any other things I can look at? > > > > > > > > Cheers, > > > > > > > > Steve > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From ed at mcnierney.com Sun Sep 7 05:47:49 2008 From: ed at mcnierney.com (Ed McNierney) Date: Sun, 7 Sep 2008 08:47:49 -0400 Subject: [mapserver-users] High CPU In-Reply-To: <000001c910c2$8a2acb50$9e8061f0$@co.uk> Message-ID: Steve - Would you prefer your CPU was sitting idle? Keeping the CPU busy is a good thing, isn't it? It means your network, disk, and other resources are not preventing your CPU from working at full capacity. What makes you feel that running your CPU at 100% capacity is a bad thing? - Ed Ed McNierney 205 Indian Hill Road Groton, MA 01450 ed at mcnierney.com +1 (978) 761-0049 On 9/7/08 4:20 AM, "Steve White" wrote: The problem is that CPU shoots to 100% while tiles are being generated from a remote WMS call. The shp2img dump was taken directly on the server but the problem occurs when I send remote WMS requests to the server. I'm starting to think that 640MB RAM isn't enough and I should probably bump it up to 1GB. -----Original Message----- From: Paul Ramsey [mailto:pramsey at cleverelephant.ca] Sent: 07 September 2008 06:07 To: Steve White Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] High CPU It took 0.3s to run to completion, what's the problem precisely? P. On Sat, Sep 6, 2008 at 1:35 PM, Steve White wrote: > Thanks Jeff - > > > > - I upgraded to MS4w 2.2.9 > > - I ran shptree.exe and produced the index file > > - My results of shp2img.exe are below > > - I don't think any projections-on-the-fly are occurring > > > > Shp2img dump: > > > > msDrawMap(): Layer 0 (OA), 0.015s > > msDrawMap(): Drawing Label Cache, 0.000s > > msDrawMap() total time: 0.015s > > SaveImage() total time: 0.297s > > msFreeMap(): freeing map at 0144B498. > > > > I'm still getting very high CPU usage with just one active session, so > there's no way I can go into production till this is resolved. > > > > Any other things I can look at? > > > > Cheers, > > > > Steve > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From hellomps at gmail.com Sun Sep 7 08:50:43 2008 From: hellomps at gmail.com (ramya srinivasan) Date: Sun, 7 Sep 2008 21:20:43 +0530 Subject: [mapserver-users] drawing a circle Message-ID: <3702658f0809070850r15befdd2le2a3f8c7a43f7e5a@mail.gmail.com> Hi all, * I want to draw a circle with the center clicked by the user on the map.Can anyone help me??* ** *Thanks* -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve at online-archaeology.co.uk Sun Sep 7 13:32:41 2008 From: steve at online-archaeology.co.uk (Steve White) Date: Sun, 7 Sep 2008 21:32:41 +0100 Subject: [mapserver-users] High CPU In-Reply-To: References: <000001c910c2$8a2acb50$9e8061f0$@co.uk> Message-ID: <000401c91128$e0b5e1b0$a221a510$@co.uk> Ed - The reason I feel edgy is because I have other hosted .NET applications on the same box. I discovered from my tests that another process (CSRSS.exe) is also using excessive CPU (about 40%), so it's not all MapServer, so I'm going to set up some auto tests scripts to find out what kind of a ceiling I have and see if I can pull down CSRSS.exe a bit. Cheers, Steve From: Ed McNierney [mailto:ed at mcnierney.com] Sent: 07 September 2008 13:48 To: Steve White; Paul Ramsey Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] High CPU Steve - Would you prefer your CPU was sitting idle? Keeping the CPU busy is a good thing, isn't it? It means your network, disk, and other resources are not preventing your CPU from working at full capacity. What makes you feel that running your CPU at 100% capacity is a bad thing? - Ed Ed McNierney 205 Indian Hill Road Groton, MA 01450 ed at mcnierney.com +1 (978) 761-0049 On 9/7/08 4:20 AM, "Steve White" wrote: The problem is that CPU shoots to 100% while tiles are being generated from a remote WMS call. The shp2img dump was taken directly on the server but the problem occurs when I send remote WMS requests to the server. I'm starting to think that 640MB RAM isn't enough and I should probably bump it up to 1GB. -----Original Message----- From: Paul Ramsey [mailto:pramsey at cleverelephant.ca] Sent: 07 September 2008 06:07 To: Steve White Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] High CPU It took 0.3s to run to completion, what's the problem precisely? P. On Sat, Sep 6, 2008 at 1:35 PM, Steve White wrote: > Thanks Jeff - > > > > - I upgraded to MS4w 2.2.9 > > - I ran shptree.exe and produced the index file > > - My results of shp2img.exe are below > > - I don't think any projections-on-the-fly are occurring > > > > Shp2img dump: > > > > msDrawMap(): Layer 0 (OA), 0.015s > > msDrawMap(): Drawing Label Cache, 0.000s > > msDrawMap() total time: 0.015s > > SaveImage() total time: 0.297s > > msFreeMap(): freeing map at 0144B498. > > > > I'm still getting very high CPU usage with just one active session, so > there's no way I can go into production till this is resolved. > > > > Any other things I can look at? > > > > Cheers, > > > > Steve > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at mcnierney.com Sun Sep 7 14:20:21 2008 From: ed at mcnierney.com (Ed McNierney) Date: Sun, 7 Sep 2008 17:20:21 -0400 Subject: [mapserver-users] High CPU In-Reply-To: <000401c91128$e0b5e1b0$a221a510$@co.uk> Message-ID: Steve - Your CPU spends 100% of its time doing SOMETHING. You seem to be focusing on high CPU utilization by a process as being a bad thing, and in many case it is instead a very good thing. Many MapServer applications are I/O bound, waiting for disk seeks, etc. Since your CPU is not waiting for I/O to any significant degree, 100% CPU utilization means you're not suffering from that I/O limitation. If your machine is not doing anything else, seeing 100% CPU utilization is good. If you are testing with 10 other applications in active use, having one of them consume 100% of the CPU is bad. But I think you may need to do more sophisticated load testing in order to evaluate your situation; adding more RAM is most likely to be helpful in a multi-user, heavily-loaded situation. It might not help much, however, and you can only tell by doing multi-user (and in your case, multi-application) simulated load tests. - Ed Ed McNierney 205 Indian Hill Road Groton, MA 01450 ed at mcnierney.com +1 (978) 761-0049 On 9/7/08 4:32 PM, "Steve White" wrote: Ed - The reason I feel edgy is because I have other hosted .NET applications on the same box. I discovered from my tests that another process (CSRSS.exe) is also using excessive CPU (about 40%), so it's not all MapServer, so I'm going to set up some auto tests scripts to find out what kind of a ceiling I have and see if I can pull down CSRSS.exe a bit. Cheers, Steve From: Ed McNierney [mailto:ed at mcnierney.com] Sent: 07 September 2008 13:48 To: Steve White; Paul Ramsey Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] High CPU Steve - Would you prefer your CPU was sitting idle? Keeping the CPU busy is a good thing, isn't it? It means your network, disk, and other resources are not preventing your CPU from working at full capacity. What makes you feel that running your CPU at 100% capacity is a bad thing? - Ed Ed McNierney 205 Indian Hill Road Groton, MA 01450 ed at mcnierney.com +1 (978) 761-0049 On 9/7/08 4:20 AM, "Steve White" wrote: The problem is that CPU shoots to 100% while tiles are being generated from a remote WMS call. The shp2img dump was taken directly on the server but the problem occurs when I send remote WMS requests to the server. I'm starting to think that 640MB RAM isn't enough and I should probably bump it up to 1GB. -----Original Message----- From: Paul Ramsey [mailto:pramsey at cleverelephant.ca] Sent: 07 September 2008 06:07 To: Steve White Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] High CPU It took 0.3s to run to completion, what's the problem precisely? P. On Sat, Sep 6, 2008 at 1:35 PM, Steve White wrote: > Thanks Jeff - > > > > - I upgraded to MS4w 2.2.9 > > - I ran shptree.exe and produced the index file > > - My results of shp2img.exe are below > > - I don't think any projections-on-the-fly are occurring > > > > Shp2img dump: > > > > msDrawMap(): Layer 0 (OA), 0.015s > > msDrawMap(): Drawing Label Cache, 0.000s > > msDrawMap() total time: 0.015s > > SaveImage() total time: 0.297s > > msFreeMap(): freeing map at 0144B498. > > > > I'm still getting very high CPU usage with just one active session, so > there's no way I can go into production till this is resolved. > > > > Any other things I can look at? > > > > Cheers, > > > > Steve > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From rainer at kalliany.at Sun Sep 7 14:34:42 2008 From: rainer at kalliany.at (Rainer Kalliany) Date: Sun, 07 Sep 2008 23:34:42 +0200 Subject: [mapserver-users] Template problem Message-ID: <48C448F2.6030504@kalliany.at> Hello, I'm using MapServer 4.8 via the MS4W package and I can't get template substitutions to work. I tried adding a WEB section like WEB TEMPLATE '/ms4w/Apache/htdocs/ka-map-1.0/index.php' END to my map file (see attachment), yet when I add a template string (I tried [version], for example) to index.php, it just gets displayed literally. Is there any other option I need to set? Thanks in advance, Rainer 2008-09-07, 21:35 UTC -- DI. Rainer Kalliany - rainer at kalliany.at TeFiS - www.tefis.at Technische und forstliche Informationssysteme (Forstliche Software, GIS) KALLIANY - www.kalliany.at Ingenieurb?ro f?r Vermessungswesen (Photogrammetrie, Fernerkundung, GPS) Mobiltelephon: +43 664 1811098 Telephon: +43 316 931746-0, Fax: -15 A-8010 Graz, Schillerstrasse 58 A-1040 Wien, Schaumburgergasse 11/13 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: global.map URL: From iworktech.sucharita at gmail.com Mon Sep 8 00:20:19 2008 From: iworktech.sucharita at gmail.com (Sucharita Samuel) Date: Mon, 8 Sep 2008 12:50:19 +0530 Subject: [mapserver-users] drawing a circle In-Reply-To: <3702658f0809070850r15befdd2le2a3f8c7a43f7e5a@mail.gmail.com> References: <3702658f0809070850r15befdd2le2a3f8c7a43f7e5a@mail.gmail.com> Message-ID: <2d6d8af10809080020w1c24ebc5oac5391595c511a0b@mail.gmail.com> Hi ramya, I was able to draw a circle on the map with specified radius. I have done this in C#.net. Following steps will help you achieve the desired result. First, initialize the scale of the map by doing map.prepareQuery(); map is nothing but the mapobject Then,get the scale of the map Divide the screen map resolution by 2.54 (because 1cm = 2.54 pixels). The above 3 steps are needed to get a circle of exact radius, else the circle will not be accurate. 4. Get the image point that is clicked on the map (i.e. the center of the circle) and convert the image point to map point (i.e. pixel to point). 5. Use if (layer.queryByPoint(map, point, mapscript.MS_SINGLE, tolerance) == ( int)MS_RETURN_VALUE.MS_SUCCESS) to identify the feature. 6. Open the layer using layer.open(); 7. Divide the radius by the scale and multiply by 1000 to convert centimeter to kilometer (scale returned by the map object (in centimeters)) 8.Create a shape object for circle shapeObj oShp = new shapeObj((int)MS_SHAPE_TYPE.MS_SHAPE_POLYGON); 9. Add a line object to the above created shape object. 10. Apply a for loop to get the points on the circumference of the circle and add it to the line object. for (int iDegree = 0; iDegree <= 360; iDegree = iDegree + 10) For circle, we need the for loop to go from 0 to 360 degrees. 11. Once all the points are added to the line object, after the end of the for loop, add that line to the shape object (for circle). oShp.add(oLine); 12. Once you get the shape, create a temporary layer and assign the properties/attributes like opacity, outline color, color of circle etc. 13. Finally, draw this layer and call the layer.close() method . Thanks and Regards, Sucharita Samuel iWorkTechnologies Pvt. Ltd., Pune On Sun, Sep 7, 2008 at 9:20 PM, ramya srinivasan wrote: > Hi all, > * I want to draw a circle with the center clicked by the user on the > map.Can anyone help me??* > ** > *Thanks* > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shurhenv at mail.ru Mon Sep 8 05:27:20 2008 From: shurhenv at mail.ru (shurhen) Date: Mon, 8 Sep 2008 16:27:20 +0400 Subject: [mapserver-users] Why queryByPoint returns neighbour object instead of clicked object Message-ID: <845700849.20080908162720@mail.ru> Hello! Why queryByPoint returns neighbour object instead of clicked object? For several days I tried to solve this problem, but things are still where they started. Sometimes selection was correct, sometimes incorrect. I've noticed if I click in the middle of the object - very often selection was incorrect (it was highlighted neighbour object), but if if I click nearer to the vertex - right results go more often. May be something wrong with projections? Here is my code example that I've gathered from many sources pointObj a_geopointObj = PixelToGeo(m_map, e); a_layer.toleranceunits = (int)MS_UNITS.MS_PIXELS; double a_tolerance = -1; bool a_foundflag = false; while (!a_foundflag && (a_tolerance < 100)) { m_map.prepareQuery(); a_layer.queryByPoint(m_map, a_geopointObj, mapscript.MS_SINGLE, a_tolerance); using (resultCacheObj results = a_layer.getResults()) { textBoxSRCC1.Text = a_tolerance.ToString(); a_foundflag = results.numresults > 0; if (!a_foundflag) a_tolerance++; } } What I have missed? And then some, I don't understand why tolerance values "-1" does not work? Documentation says: "-1" is for MS_PIXELS From Steve.Lime at dnr.state.mn.us Mon Sep 8 06:42:47 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 08 Sep 2008 08:42:47 -0500 Subject: [mapserver-users] Why queryByPoint returns neighbour object insteadof clicked object Message-ID: <48C4E5870200008F0001B32B@co5.dnr.state.mn.us> You could try plotting your query point on the map to help visualize things I suppose. Perhaps the PixelToGeo function is off. One things I'd try is taking the output from that function and using it to formulate a query to the CGI. That would allow you to compare your results against another source. You can do this at the command line. The form would be: mapserv "QUERY_STRING=map=your.map&mapxy=yourx+youry&qlayer=yourlayer&mode=query" Steve >>> shurhen 09/08/08 8:25 AM >>> Hello! Why queryByPoint returns neighbour object instead of clicked object? For several days I tried to solve this problem, but things are still where they started. Sometimes selection was correct, sometimes incorrect. I've noticed if I click in the middle of the object - very often selection was incorrect (it was highlighted neighbour object), but if if I click nearer to the vertex - right results go more often. May be something wrong with projections? Here is my code example that I've gathered from many sources pointObj a_geopointObj = PixelToGeo(m_map, e); a_layer.toleranceunits = (int)MS_UNITS.MS_PIXELS; double a_tolerance = -1; bool a_foundflag = false; while (!a_foundflag && (a_tolerance < 100)) { m_map.prepareQuery(); a_layer.queryByPoint(m_map, a_geopointObj, mapscript.MS_SINGLE, a_tolerance); using (resultCacheObj results = a_layer.getResults()) { textBoxSRCC1.Text = a_tolerance.ToString(); a_foundflag = results.numresults > 0; if (!a_foundflag) a_tolerance++; } } What I have missed? And then some, I don't understand why tolerance values "-1" does not work? Documentation says: "-1" is for MS_PIXELS _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Mon Sep 8 08:48:02 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 08 Sep 2008 10:48:02 -0500 Subject: [mapserver-users] drawing a circle Message-ID: <48C502E20200008F0001B338@co5.dnr.state.mn.us> Can you explain a bit more about your environment (CGI vs. MapScript), context of the need etc...? The easiest path will likely involve a point layer that you'll populate dynamically (with the click coordinate) and then display that point with a circle symbol. You can scale that symbol appropriately using a style SIZE and SIZEUNITS. Steve >>> "ramya srinivasan" 09/07/08 10:51 AM >>> Hi all, * I want to draw a circle with the center clicked by the user on the map.Can anyone help me??* ** *Thanks* From Steve.Lime at dnr.state.mn.us Mon Sep 8 11:33:47 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 08 Sep 2008 13:33:47 -0500 Subject: [mapserver-users] drawing a circle In-Reply-To: <3702658f0809080915y38b42472le294cbda8e40b45e@mail.gmail.com> References: <48C502E20200008F0001B338@co5.dnr.state.mn.us> <3702658f0809080915y38b42472le294cbda8e40b45e@mail.gmail.com> Message-ID: <48C529BB.5157.008F.0@dnr.state.mn.us> Create a layer in your mapfile like so: SYMBOL NAME 'circle' TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END LAYER NAME 'myPoiint' TYPE POINT STATUS OFF CLASS STYLE COLOR 255 0 0 SIZE 15 END END END Then in your script, the steps would be like so: 1) get the 'myPoint' layer 2) add a point feature to it 3) set the STATUS appropriately Now draw as normal. Assuming the point is in map coordinates you should see a red circle at the location you specified. Steve >>> On 9/8/2008 at 11:15 AM, in message <3702658f0809080915y38b42472le294cbda8e40b45e at mail.gmail.com>, "ramya srinivasan" wrote: > Hi, > iam using php/mapscript.I will have to display the point clicked by the user > on the map. This is my task.Can u pls help me > > On Mon, Sep 8, 2008 at 9:18 PM, Steve Lime wrote: > >> Can you explain a bit more about your environment (CGI vs. MapScript), >> context of the need etc...? >> >> The easiest path will likely involve a point layer that you'll populate >> dynamically (with the click coordinate) and then display that point with a >> circle symbol. You can scale that symbol appropriately using a style SIZE >> and SIZEUNITS. >> >> Steve >> >> >>> "ramya srinivasan" 09/07/08 10:51 AM >>> >> Hi all, >> * I want to draw a circle with the center clicked by the user on the >> map.Can anyone help me??* >> ** >> *Thanks* >> >> From Steve.Lime at dnr.state.mn.us Mon Sep 8 11:37:02 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 08 Sep 2008 13:37:02 -0500 Subject: [mapserver-users] Template problem In-Reply-To: <48C448F2.6030504@kalliany.at> References: <48C448F2.6030504@kalliany.at> Message-ID: <48C52A7E.5157.008F.0@dnr.state.mn.us> You're trying to mix PHP and HTML templates. That won't work as far as I know unless there is some funky piping you can do in Apache 2. MapServer parses the template specified and echos the output to stdout so it's not interpreted by anything else before it hits the user's browser. Steve >>> On 9/7/2008 at 4:34 PM, in message <48C448F2.6030504 at kalliany.at>, Rainer Kalliany wrote: > Hello, > > I'm using MapServer 4.8 via the MS4W package and I can't get template > substitutions to work. I tried adding a WEB section like > > WEB > TEMPLATE '/ms4w/Apache/htdocs/ka-map-1.0/index.php' > END > > to my map file (see attachment), yet when I add a template string (I tried > [version], for example) to index.php, it just gets displayed literally. > > Is there any other option I need to set? > > Thanks in advance, > > Rainer > > 2008-09-07, 21:35 UTC From Steve.Lime at dnr.state.mn.us Mon Sep 8 13:23:41 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 08 Sep 2008 15:23:41 -0500 Subject: [mapserver-users] Image handling error In-Reply-To: <48BD18A9.30305@uni-koeln.de> References: <48BD18A9.30305@uni-koeln.de> Message-ID: <48C5437D.5157.008F.0@dnr.state.mn.us> I didn't see any replies so figured I'd chime in. Anyway, just because GDAL is on the system doesn't mean mapserver knows about it. Have folks confirmed MapServer was indeed compiled with GDAL support? Steve >>> On 9/2/2008 at 5:42 AM, in message <48BD18A9.30305 at uni-koeln.de>, Christian Willmes wrote: > Hello, > > I'm trying to set up a WMS using Mapserver. > On my local System I get it to work using vector data (shapefiles) and > raster data input. > On the public webserver from our universities computing centre, I don't > get it to work with 'quite' similar setup as on my local test system > (problem is, I don't get admin rights to configure it my self on the > server, so I have to ask the admins for every installation etc). > Just using vector data it works fine, but by using raster data input I > get the following message: > > <----- > msDrawMap(): Image handling error. Failed to draw layer named > 'srtm_elevation'. > msDrawRaster(): Image handling error. Unrecognized or unsupported image > format > drawEPP(): Image handling error. EPPL7 support is not available. > -------> > > I asked the admins to check the gdal installation on the server. It > seems all is installed properly. The raster format I'm using is > supported according to the gdalinfo output the admins provided me: > > <------ > a0646 at lvr18$ gdalinfo --formats > Supported Formats: > [...] > GTiff (rw+): GeoTIFF > [...] > PNG (rw): Portable Network Graphics > JPEG (rw): JPEG JFIF > [...] > BMP (rw+): MS Windows Device Independent Bitmap > -----> > > I converted the data to the four above mentioned formats (wich are > supported by the servers GDAL installation according to gdalinfo). But > its all the same error on the server. These data are all works fine on > my local setup with mapserver. > > There was a similar Thread a month ago > (http://lists.osgeo.org/pipermail/mapserver-users/2008-August/057027.html) > on this list. But > as far as I can see no resolution for the problem? Is this problem > solved meanwhile? > > Thanks very much in advance! > > Best regards, > Christian > > -- > Christian Willmes > AG GIS & Fernerkundung | GIS & RS Group > Geographisches Institut | Institute of Geography > Universit?t K?ln | University of Cologne > http://www.geographie.uni-koeln.de/gis/ > Tel.: +49 (0)221 470 7431 > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From hartpence_gis at co.jasper.ia.us Mon Sep 8 13:44:49 2008 From: hartpence_gis at co.jasper.ia.us (Lawrence Hartpence) Date: Mon, 8 Sep 2008 15:44:49 -0500 Subject: [mapserver-users] Setting scale Message-ID: <001d01c911f3$bf1e02f0$0202fea9@jasper1.com> Hello, I have a CGI question for Mapserver 4.8. The following URL brings up a query. http://gismap/JasperMaps/cgi-bin/mapserv.exe?layer=ortho&layer=Parcels&layer =ParcelDim&layer=ParcelPt&layer=Sub&layer=Lots&layer=LotDim&layer=Survey&lay er=Water&layer=ROW&layer=Highways&layer=Shields&layer=Roads&layer=County&lay er=Towns&zoomdir=1&Meas=Line&imgxy=320+240&imgbox=288+234+337+264&mapext=sha pe&mapxy=shape.25&imgext=1764933.905200+615189.123844+1767599.115400+617239. 285536&map=C%3A%5CInetPub%5Cwwwroot%5CMapdocs%5CParcels.map&program=%2FJaspe rMaps%2Fcgi-bin%2Fmapserv.exe&slayer=Parcels&qlayer=Parcels&previousmode=%5B previousmode%5D&mode=nquery&zoomsize=2&savequery=true I have mapxy set to (shape). Now I want to reset the scale so I add &scale=3600 to get the following URL: http://gismap/JasperMaps/cgi-bin/mapserv.exe?layer=ortho&layer=Parcels&layer =ParcelDim&layer=ParcelPt&layer=Sub&layer=Lots&layer=LotDim&layer=Survey&lay er=Water&layer=ROW&layer=Highways&layer=Shields&layer=Roads&layer=County&lay er=Towns&zoomdir=1&Meas=Line&imgxy=320+240&imgbox=288+234+337+264&mapext=sha pe&mapxy=shape.25&imgext=1764933.905200+615189.123844+1767599.115400+617239. 285536&map=C%3A%5CInetPub%5Cwwwroot%5CMapdocs%5CParcels.map&program=%2FJaspe rMaps%2Fcgi-bin%2Fmapserv.exe&slayer=Parcels&qlayer=Parcels&previousmode=%5B previousmode%5D&mode=nquery&zoomsize=2&savequery=true&scale=3600 Everything I read says that this should work, but I get an error. Can anyone tell me what I am doing wrong? Lawrence Hartpence Jasper County GIS Coordinator 101 1st St N Newton IA 50208 Tel.: 641-792-6437 Fax: 641-792-5783 hartpence_gis at co.jasper.ia.us -------------- next part -------------- An HTML attachment was scrubbed... URL: From darenas2001 at yahoo.es Mon Sep 8 14:34:13 2008 From: darenas2001 at yahoo.es (daa32) Date: Mon, 8 Sep 2008 14:34:13 -0700 (PDT) Subject: [MAPSERVER-USERS] Problems using filters with GEODATABASE Message-ID: <19309004.post@talk.nabble.com> Hi everyone! I?m trying to use filters connecting with a GDB. I type the following in my map file: FILTERITEM "OTRAS_FORM" FILTER ('[OTRAS_FORM]' = 'BANCO SUBMARINO' or '[OTRAS_FORM]' = 'HOYA SUBMARINA') The thing is if I inactive those lines mapserver works perfectly....but, of course, without filters. the error lines are: "[Thu Sep 04 15:15:17 2008].578000 msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: ORA-00933: comando SQL no terminado correctamente . Query statement: SELECT OBJECTID, OTRAS_FORM, SHAPE FROM (SELECT OBJECTID, SHAPE, OTRAS_FORM FROM RN_GEODMG.INFO_OTRAS_FORMAS_MED_MAR) WHERE OTRAS_FORM = '[OTRAS_FORM]' = 'BANCO SUBMARINO' or '[OTRAS_FORM]' = 'HOYA SUBMARINA' AND SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(60298.583,3980828.85,649701.417,4298521.15) ),'querytype=window') = 'TRUE' . Check your data statement. [Thu Sep 04 15:15:17 2008].578000 msDrawMap(): Image handling error. Failed to draw layer named 'morf_dv2'. [Thu Sep 04 15:15:22 2008].937000 msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: ORA-00933: comando SQL no terminado correctamente" Thanks a million cheers -- View this message in context: http://www.nabble.com/Problems-using-filters-with-GEODATABASE-tp19309004p19309004.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pramsey at cleverelephant.ca Mon Sep 8 21:19:24 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Mon, 8 Sep 2008 21:19:24 -0700 Subject: [mapserver-users] rfc43 gtile returning blank images, while WMS works In-Reply-To: References: Message-ID: <30fe546d0809082119u3e1b0a9bve1cfe10c0a2543b9@mail.gmail.com> Nothing leaps out. Are you sure they are equivalent? Zoom level two is pretty far out, do you have scale dependency in that layer? P On Wed, Sep 3, 2008 at 1:00 PM, wrote: > Hi Mapsurfers, > > I have been messing around with RFC43 (GTile support) and only seem to get > blank tiles. For example, here is a GTile request > > http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?layers=nexrad-n0r-900913&mode=tile&tilemode=gmap&tile=0+1+2 > > I then turn that URL into an equivalent WMS request: > > http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?width=256&height=256&FORMAT=image/png&srs=EPSG:900913&request=GetMap&service=WMS&version=1.1.1&layers=nexrad-n0r-900913&bbox=-20026376.390922,11131.949078,-10029886.119078,10007622.220922 > > and get data. Any ideas what I may be doing wrong? > > > thanks! > daryl > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pramsey at cleverelephant.ca Mon Sep 8 21:22:19 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Mon, 8 Sep 2008 21:22:19 -0700 Subject: [mapserver-users] rfc43 gtile returning blank images, while WMS works In-Reply-To: <30fe546d0809082119u3e1b0a9bve1cfe10c0a2543b9@mail.gmail.com> References: <30fe546d0809082119u3e1b0a9bve1cfe10c0a2543b9@mail.gmail.com> Message-ID: <30fe546d0809082122t6b8bbdj4930828a9131b643@mail.gmail.com> If you still have a problem, can you strip your map file down to one layer, and then replace the data source with a simple world shape file, and if you then *still* have the problem, mail that simple test case to me? P. On Mon, Sep 8, 2008 at 9:19 PM, Paul Ramsey wrote: > Nothing leaps out. Are you sure they are equivalent? Zoom level two is > pretty far out, do you have scale dependency in that layer? > > P > > On Wed, Sep 3, 2008 at 1:00 PM, wrote: >> Hi Mapsurfers, >> >> I have been messing around with RFC43 (GTile support) and only seem to get >> blank tiles. For example, here is a GTile request >> >> http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?layers=nexrad-n0r-900913&mode=tile&tilemode=gmap&tile=0+1+2 >> >> I then turn that URL into an equivalent WMS request: >> >> http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?width=256&height=256&FORMAT=image/png&srs=EPSG:900913&request=GetMap&service=WMS&version=1.1.1&layers=nexrad-n0r-900913&bbox=-20026376.390922,11131.949078,-10029886.119078,10007622.220922 >> >> and get data. Any ideas what I may be doing wrong? >> >> >> thanks! >> daryl >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From atul.dravid at iworktech.com Mon Sep 8 22:02:08 2008 From: atul.dravid at iworktech.com (Atul Dravid) Date: Tue, 9 Sep 2008 10:32:08 +0530 Subject: [mapserver-users] drawing a circle In-Reply-To: <48C529BB.5157.008F.0@dnr.state.mn.us> References: <48C502E20200008F0001B338@co5.dnr.state.mn.us> <3702658f0809080915y38b42472le294cbda8e40b45e@mail.gmail.com> <48C529BB.5157.008F.0@dnr.state.mn.us> Message-ID: <5ba141650809082202q39398ec2vfd88dab7092aa697@mail.gmail.com> Dear Steve, How do you change the radius of the circle dynamically ? Can you elaborate more on this ? My team is also trying to do the same thing like Ramya... We have tried using the method Sucharita has suggested and it is working... But it appears that your method may be simpler... But we are not able to draw a circle with radius to be set dynamically... Thanks, --AD On Tue, Sep 9, 2008 at 12:03 AM, Steve Lime wrote: > Create a layer in your mapfile like so: > > SYMBOL > NAME 'circle' > TYPE ELLIPSE > FILLED TRUE > POINTS 1 1 END > END > > LAYER > NAME 'myPoiint' > TYPE POINT > STATUS OFF > CLASS > STYLE > COLOR 255 0 0 > SIZE 15 > END > END > END > > Then in your script, the steps would be like so: > > 1) get the 'myPoint' layer > 2) add a point feature to it > 3) set the STATUS appropriately > > Now draw as normal. Assuming the point is in map coordinates you should see > a red circle at the location > you specified. > > Steve > > >>> On 9/8/2008 at 11:15 AM, in message > <3702658f0809080915y38b42472le294cbda8e40b45e at mail.gmail.com>, "ramya > srinivasan" wrote: > > Hi, > > iam using php/mapscript.I will have to display the point clicked by the > user > > on the map. This is my task.Can u pls help me > > > > On Mon, Sep 8, 2008 at 9:18 PM, Steve Lime >wrote: > > > >> Can you explain a bit more about your environment (CGI vs. MapScript), > >> context of the need etc...? > >> > >> The easiest path will likely involve a point layer that you'll populate > >> dynamically (with the click coordinate) and then display that point with > a > >> circle symbol. You can scale that symbol appropriately using a style > SIZE > >> and SIZEUNITS. > >> > >> Steve > >> > >> >>> "ramya srinivasan" 09/07/08 10:51 AM >>> > >> Hi all, > >> * I want to draw a circle with the center clicked by the user on the > >> map.Can anyone help me??* > >> ** > >> *Thanks* > >> > >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From umn-ms at hydrotec.de Mon Sep 8 23:01:26 2008 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Tue, 9 Sep 2008 08:01:26 +0200 Subject: Antwort: [MAPSERVER-USERS] Problems using filters with GEODATABASE In-Reply-To: <19309004.post@talk.nabble.com> Message-ID: Hello 1. Remove the Filteritem-line 2. Change Filter to FILTER (OTRAS_FORM = 'BANCO SUBMARINO' or OTRAS_FORM = 'HOYA SUBMARINA') or to FILTER (OTRAS_FORM IN ('BANCO SUBMARINO','HOYA SUBMARINA')) Bye Benedikt Rothe BTW: I think, when Mapserver creates the SQL-Statement (maporaclespatial.c/osFilteritem(...)) it should surround it with braces. Combined with the spatial-filter mapserver creates a Where-Clause of the form "CondA OR CondB AND CondC". IMHO: To make precedence to Oracle unambiguous clear, it should rather be "(CondA OR CondB) AND CondC". mapserver-users-bounces at lists.osgeo.org schrieb am 08.09.2008 23:34:13: > > Hi everyone! > > I?m trying to use filters connecting with a GDB. I type the following in my > map file: > > FILTERITEM "OTRAS_FORM" > FILTER ('[OTRAS_FORM]' = 'BANCO SUBMARINO' or '[OTRAS_FORM]' = 'HOYA > SUBMARINA') > > The thing is if I inactive those lines mapserver works perfectly....but, of > course, without filters. > > the error lines are: > > "[Thu Sep 04 15:15:17 2008].578000 msOracleSpatialLayerWhichShapes(): > OracleSpatial error. Error: ORA-00933: comando SQL no terminado > correctamente > . Query statement: SELECT OBJECTID, OTRAS_FORM, SHAPE FROM (SELECT > OBJECTID, SHAPE, OTRAS_FORM FROM RN_GEODMG.INFO_OTRAS_FORMAS_MED_MAR) WHERE > OTRAS_FORM = '[OTRAS_FORM]' = 'BANCO SUBMARINO' or '[OTRAS_FORM]' = 'HOYA > SUBMARINA' AND SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, NULL, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS. > SDO_ORDINATE_ARRAY(60298.583,3980828.85,649701.417,4298521.15) > ),'querytype=window') = 'TRUE' . Check your data statement. > [Thu Sep 04 15:15:17 2008].578000 msDrawMap(): Image handling error. Failed > to draw layer named 'morf_dv2'. > [Thu Sep 04 15:15:22 2008].937000 msOracleSpatialLayerWhichShapes(): > OracleSpatial error. Error: ORA-00933: comando SQL no terminado > correctamente" > > Thanks a million > > cheers > > > -- > View this message in context: http://www.nabble.com/Problems-using- > filters-with-GEODATABASE-tp19309004p19309004.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From oliver.christen at camptocamp.com Mon Sep 8 23:36:21 2008 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Tue, 9 Sep 2008 08:36:21 +0200 Subject: [mapserver-users] Re: phpmapscript whichShapes return code ? Message-ID: <1859D0B571424060937DE582C7E03CCB@maunakea> Hi using mapserver 5.0.2/php 5.2.5 im doing something like this: $map = ms_newmapobj("d:/msapps/gmap-ms40/htdocs/gmap75.map"); $layer = $map->getLayerByName('road'); $status = $layer->open(); $status = $layer->whichShapes($map->extent); while ($shape = $layer->nextShape()) { echo $shape->index ."
\n"; } $layer->close(); when checking the $status value of the $layer->whichShapes($map->extent); instructions I get the values 0 or 2. 0 seems to be equal to MS_SUCCESS but 2 is definitively not equal to MS_FAILURE I did that: if ($status === MS_SUCCESS) { print "success"; // 0 } else if ($status === MS_FAILURE) { print "failure"; // 1? } else { print "unknown"; // 2 } I never get "failure", I only get "success" or "unknown" so, what is the meaning of a code 2 value? thanks in advance Oliver From victor at casnt.ro Mon Sep 8 23:32:54 2008 From: victor at casnt.ro (Victor Sterpu) Date: Tue, 09 Sep 2008 09:32:54 +0300 Subject: [mapserver-users] mapserver and pmapper Message-ID: <48C61896.4050107@casnt.ro> In compiled mapserver 5.2.0 and everythig works fine. But when I tryed to use pmapper I receive this MapServer error: Warning: [MapServer Error]: msEvalRegex(): String (/var/www/pmap/config) failed expression test. in /var/www/pmap/incphp/globals.php on line 60 Warning: Failed to open map file /var/www/pmap/config in /var/www/pmap/incphp/globals.php on line 60 Fatal error: Call to a member function getAllGroupNames() on a non-object in /var/www/pmap/incphp/init/initmap.php on line 129 Pmapper is version 3.2.0. From akrherz at iastate.edu Tue Sep 9 04:41:13 2008 From: akrherz at iastate.edu (akrherz at iastate.edu) Date: Tue, 9 Sep 2008 06:41:13 -0500 (CDT) Subject: [mapserver-users] rfc43 gtile returning blank images, while WMS works In-Reply-To: <30fe546d0809082119u3e1b0a9bve1cfe10c0a2543b9@mail.gmail.com> References: <30fe546d0809082119u3e1b0a9bve1cfe10c0a2543b9@mail.gmail.com> Message-ID: On Mon, 8 Sep 2008, Paul Ramsey wrote: > Nothing leaps out. Are you sure they are equivalent? Zoom level two is > pretty far out, do you have scale dependency in that layer? Hi Paul, thanks for the response. I choose a far out zoom level to ensure there is data in the view for folks to see. When I run the gtile request, mapserver logs the bounding box, which I then fed to build the WMS request. My scale setting for that layer is: MINSCALE 0 MAXSCALE 465000000 My RASTER datasource layers is already projected in 900913... daryl From kusum at infobase.in Tue Sep 9 04:47:25 2008 From: kusum at infobase.in (Kusum) Date: Tue, 9 Sep 2008 17:17:25 +0530 Subject: [mapserver-users] Integrating Google Maps and Mapserver Message-ID: <6C52131ACAE54A2698D250CDF73C8EA7@kusum> Dear All I am trying to configure mapserver layer with google maps layer as base layer. I tried the same but my mapserver layer is not showing up. it just shows the google map layer. I am using following code......... var myLayer = new GTileLayer(null,null,null,{ tileUrlTemplate:'http://mapxl.com/cgi-bin/mapserv?map=/home/mapxlco/public_html/interactive-maps/config/world.map&mode=tile&layers=outline&tilemode=spheremerc&tile={X}+{Y}+{Z}', isPng:true, opacity:0.5 }); var map = new GMap2(document.getElementById("map")); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); map.setCenter(new GLatLng(28.6573,77.2213), 5); map.addOverlay(new GTileLayerOverlay(myLayer)); Please guide. Thanks in advance. Regards Kusum -------------- next part -------------- An HTML attachment was scrubbed... URL: From hartpence_gis at co.jasper.ia.us Tue Sep 9 05:14:46 2008 From: hartpence_gis at co.jasper.ia.us (Lawrence Hartpence) Date: Tue, 9 Sep 2008 07:14:46 -0500 Subject: [mapserver-users] Setting scale In-Reply-To: <48C55D5D.5157.008F.0@dnr.state.mn.us> References: <001d01c911f3$bf1e02f0$0202fea9@jasper1.com> <48C55D5D.5157.008F.0@dnr.state.mn.us> Message-ID: <003701c91275$a7cd6820$0202fea9@jasper1.com> I apologize for the incomplete URL. Let me resubmit that question: I have a CGI question for Mapserver 4.8. The following URL brings up a query. http://71.7.3.212/JasperMaps/cgi-bin/mapserv.exe?layer=ortho&layer=Parcels&l ayer=ParcelDim&layer=ParcelPt&layer=Sub&layer=Lots&layer=LotDim&layer=Survey &layer=Water&layer=ROW&layer=Highways&layer=Shields&layer=Roads&layer=County &layer=Towns&zoomdir=1&Meas=Line&imgxy=320+240&imgbox=288+234+337+264&mapext =shape&mapxy=shape.25&imgext=1764933.905200+615189.123844+1767599.115400+617 239.285536&map=C%3A%5CInetPub%5Cwwwroot%5CMapdocs%5CParcels.map&program=%2FJ asperMaps%2Fcgi-bin%2Fmapserv.exe&slayer=Parcels&qlayer=Parcels&previousmode =%5Bpreviousmode%5D&mode=nquery&zoomsize=2&savequery=true I have mapxy set to (shape). Now I want to reset the scale so I add &scale=3600 to get the following URL: http://71.7.3.212/JasperMaps/cgi-bin/mapserv.exe?layer=ortho&layer=Parcels&l ayer=ParcelDim&layer=ParcelPt&layer=Sub&layer=Lots&layer=LotDim&layer=Survey &layer=Water&layer=ROW&layer=Highways&layer=Shields&layer=Roads&layer=County &layer=Towns&zoomdir=1&Meas=Line&imgxy=320+240&imgbox=288+234+337+264&mapext =shape&mapxy=shape.25&imgext=1764933.905200+615189.123844+1767599.115400+617 239.285536&map=C%3A%5CInetPub%5Cwwwroot%5CMapdocs%5CParcels.map&program=%2FJ asperMaps%2Fcgi-bin%2Fmapserv.exe&slayer=Parcels&qlayer=Parcels&previousmode =%5Bpreviousmode%5D&mode=nquery&zoomsize=2&savequery=true&scale=3600 Everything I read says that this should work, but I get an error. Can anyone tell me what I am doing wrong? -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Monday, September 08, 2008 5:14 PM To: Lawrence Hartpence Subject: Re: [mapserver-users] Setting scale What's the error? You URL's are missing a full domain name. Steve >>> On 9/8/2008 at 3:44 PM, in message <001d01c911f3$bf1e02f0$0202fea9 at jasper1.com>, "Lawrence Hartpence" wrote: > Hello, > > > > I have a CGI question for Mapserver 4.8. The following URL brings up a > query. > > http://gismap/JasperMaps/cgi-bin/mapserv.exe?layer=ortho&layer=Parcels&layer > =ParcelDim&layer=ParcelPt&layer=Sub&layer=Lots&layer=LotDim&layer=Survey&lay > er=Water&layer=ROW&layer=Highways&layer=Shields&layer=Roads&layer=County&lay > er=Towns&zoomdir=1&Meas=Line&imgxy=320+240&imgbox=288+234+337+264&mapext=sha > pe&mapxy=shape.25&imgext=1764933.905200+615189.123844+1767599.115400+617239. > 285536&map=C%3A%5CInetPub%5Cwwwroot%5CMapdocs%5CParcels.map&program=%2FJaspe > rMaps%2Fcgi-bin%2Fmapserv.exe&slayer=Parcels&qlayer=Parcels&previousmode=%5B > previousmode%5D&mode=nquery&zoomsize=2&savequery=true > > > > I have mapxy set to (shape). Now I want to reset the scale so I add > &scale=3600 to get the following URL: > > http://gismap/JasperMaps/cgi-bin/mapserv.exe?layer=ortho&layer=Parcels&layer > =ParcelDim&layer=ParcelPt&layer=Sub&layer=Lots&layer=LotDim&layer=Survey&lay > er=Water&layer=ROW&layer=Highways&layer=Shields&layer=Roads&layer=County&lay > er=Towns&zoomdir=1&Meas=Line&imgxy=320+240&imgbox=288+234+337+264&mapext=sha > pe&mapxy=shape.25&imgext=1764933.905200+615189.123844+1767599.115400+617239. > 285536&map=C%3A%5CInetPub%5Cwwwroot%5CMapdocs%5CParcels.map&program=%2FJaspe > rMaps%2Fcgi-bin%2Fmapserv.exe&slayer=Parcels&qlayer=Parcels&previousmode=%5B > previousmode%5D&mode=nquery&zoomsize=2&savequery=true&scale=3600 > > > > Everything I read says that this should work, but I get an error. Can > anyone tell me what I am doing wrong? > > > > > > > > Lawrence Hartpence > > Jasper County GIS Coordinator > > 101 1st St N > > Newton IA 50208 > > Tel.: 641-792-6437 > > Fax: 641-792-5783 > > hartpence_gis at co.jasper.ia.us > > From woodbri at swoodbridge.com Tue Sep 9 07:56:00 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 09 Sep 2008 09:56:00 -0500 Subject: [mapserver-users] Arabic labeling problem again?!!! In-Reply-To: <334070.67813.qm@web58212.mail.re3.yahoo.com> References: <334070.67813.qm@web58212.mail.re3.yahoo.com> Message-ID: <48C68E80.9020106@swoodbridge.com> Hello Saka, There are a lot of pieces that you have to get working together to get this to work: 1) mapserver 5.2 MUST be built with fribidi2 support. I beleieve this is also designated as version fribidi-0.19.1 2) A typetype font file that contains the shape gliphs that you might need along with the characters that you need to display. 3) And I'm sure this works with UTF-8, but unsure about other encodings. 4) your data converted to UTF-8 if it is in some other encoding 5) and finally you mapfile label definition which specifies an encoding of utf-8. You might get other variations of this to work, I would be interested in hearing your reports of you can get others to work. I have sucessfully gotten the above to work. Best regards, -Stephen Woodbridge Saka Royban wrote: > > Hi all. > I've asked this problem in MS4W mailing list but no success. it sounds > it originally relates to mapserver > According to what History.txt for MS4W2.2.8 says, problem for arabic > and hebrew languages has been solved by using UTF8. But i couldn't get a > good result. > In fact, UTF8 doesn't show letters correctly (just some symbols). i have > tried lots of fonts but the same result. > in current version, the problem of joining letters have been solved > because i can get result using 'ISO8859-6' encoding which is for arabic > but now this encoding changes some of letters with each other. > In last version, 'Windows-1256' encoding (for arabic) worked well for > showing letters just they were separate not joint. but in cuurent > versions this encoding just shows some symbols. > I'm confused. maybe i should setup sth which i don't do or i don't know > sth else. > that would be my appreciate to help me because it is really a need. Maps > without labels have less usage. > Thanks in advance > (See attachments) > My Mapfile: > LABEL > TYPE TrueType > FONT timesnewromans > ENCODING 'windows-1256' > SIZE 12 > END > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From mitchelljj98 at gmail.com Tue Sep 9 12:42:11 2008 From: mitchelljj98 at gmail.com (John Mitchell) Date: Tue, 9 Sep 2008 15:42:11 -0400 Subject: [mapserver-users] Run-time Substitution vs. Variable Substitution and what are the Parameters Supported? Message-ID: Hi, What is the difference between Run-time Substitution vs. Variable Substitution within a map file? They look like they are the same thing. Also what are the Parameters Supported? >From documentation that is almost 3 years old it lists the following parametes (listed below) is this list complete? - LAYER: DATA (must validate against DATAPATTERN) - LAYER: TILEINDEX - LAYER: CONNECTION - LAYER: FILTER - CLASS EXPRESSION Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitchelljj98 at gmail.com Tue Sep 9 13:43:17 2008 From: mitchelljj98 at gmail.com (John Mitchell) Date: Tue, 9 Sep 2008 16:43:17 -0400 Subject: [mapserver-users] legend [mapfile] [output image] where does the outputted file go to? Message-ID: Hi, When running the following command: legend mapfilename.map output png where does the outputted file go to? Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Tue Sep 9 13:34:46 2008 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 9 Sep 2008 16:34:46 -0400 Subject: [mapserver-users] Precaching and opacity Message-ID: <4EFF8BB964547748A07CA32961810C0412C47D24@SOM-TEAQASMAIL1.som.w2k.state.me.us> Please excuse my ignorance, I'm only starting to figure out the finer points of precaching... I built a map document for MS4W. Each layer file has an Opacity setting. Without precaching, the map displays well in Ka-Map and in CGI view. But after running the Precache.php, my opacity settings appear to be ignored. Each layer (including line and point data) completely obscures the previous layer. Is there some setting in Precache, or elsewhere, that I missed? Any other suggestions? -------------- next part -------------- An HTML attachment was scrubbed... URL: From evolutionex at hotmail.com Tue Sep 9 13:54:06 2008 From: evolutionex at hotmail.com (Roberto Urrutia) Date: Tue, 9 Sep 2008 20:54:06 +0000 Subject: [mapserver-users] =?utf-8?q?I_would_like_to_know_your_opinion?= =?utf-8?b?4oCP?= Message-ID: Hello! I would like to know your opinion... what kind of tool or IDE do you usually use to develop code for mapserver ? For example visual studio, Dev C++,builder c++, kdevelop or only you use a linux console and a editor. I need to know it, because I would like to develop some code for mapserver but it is very hard for me to work in linux console or an editor,because I can not to verify and watch line by line the variables content (breakpoints), check invalid declarations. it is not a friendly interface =( What tool or IDE could you recommend me to develop code for mapserver? Thank you.. Roberto Urrutia _________________________________________________________________ Es tu ?ltima oportunidad para ganar premios por el simple hecho de buscar en internet. http://www.ganabuscando.com/Default.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at hostgis.com Tue Sep 9 14:05:34 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Tue, 09 Sep 2008 15:05:34 -0600 Subject: =?UTF-8?B?UmU6IFttYXBzZXJ2ZXItdXNlcnNdIEkgd291bGQgbGlrZSB0byBrbm8=?= =?UTF-8?B?dyB5b3VyIG9waW5pb27igI8=?= In-Reply-To: References: Message-ID: <48C6E51E.10806@hostgis.com> Roberto Urrutia wrote: > What tool or IDE could you recommend me to develop code for mapserver? It's not just for Mapserver, but... I enjoy Komodo Edit, the open-source version of Komodo IDE. Aside from being really slow and laggy at times, it supports remote editing via SFTP and FTP, which is a huge deal for me. And I won't even charge you the two cents for my opinion. :) -- Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From yassefa at dmsolutions.ca Tue Sep 9 14:04:27 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 09 Sep 2008 17:04:27 -0400 Subject: =?UTF-8?B?UmU6IFttYXBzZXJ2ZXItdXNlcnNdIEkgd291bGQgbGlrZSB0byBrbm8=?= =?UTF-8?B?dyB5b3VyIG9waW5pb27igI8=?= In-Reply-To: References: Message-ID: <48C6E4DB.9060004@dmsolutions.ca> Visual Studio 2003 or 2005 would be my recommendation. It's been working well for me for few years. Best Regards, Roberto Urrutia wrote: > > Hello! > > I would like to know your opinion... > > what kind of tool or IDE do you usually use to develop code for > mapserver ? > For example visual studio, Dev C++,builder c++, kdevelop or only you use > a linux console and a editor. > > I > need to know it, because I would like to develop some code for > mapserver but it is very hard for me to work in linux console or an > editor,because I can not to verify and watch line by line the > variables content (breakpoints), check invalid declarations. it is not a > friendly interface =( > > > What tool or IDE could you recommend me to develop code for mapserver? > > > > Thank you.. > > > Roberto Urrutia > ------------------------------------------------------------------------ > Madonna, Avril Lavigne, Maroon 5 y muchos m?s, En Vivo, s?lo por > Prodigy/MSN en concierto. > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From David.Fawcett at state.mn.us Tue Sep 9 20:54:13 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 9 Sep 2008 22:54:13 -0500 Subject: [mapserver-users] OpenSource Wind Symbol Fonts Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FC051@s-sp22.pca.state.mn.us> Can anyone point me to a truetype font set that contains wind (direction/barb) symbols that are available under an OpenSource license? Thanks, David. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Tue Sep 9 20:57:21 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 09 Sep 2008 22:57:21 -0500 Subject: [mapserver-users] drawing a circle Message-ID: <48C6FF510200008F0001B460@co5.dnr.state.mn.us> The circle takes its size (or diameter) from the styleObj SIZE parameter. That value is given in SIZEUNITS which defaults to PIXELS but can be a real-world unit as well. You can set the SIZE a number of ways: - in the mapfile as a fixed value (e.g. SIZE 15) - in the mapfile bound to an attribute (e.g. SIZE [size_column]) - in mapscript - dynamically via a URL with the CGI The main limitation is that SIZE parameter *must* be an integer although that will be changed in the next version. I'll try and work up a CGI-based example. Steve >>> "Atul Dravid" 09/09/08 12:02 AM >>> Dear Steve, How do you change the radius of the circle dynamically ? Can you elaborate more on this ? My team is also trying to do the same thing like Ramya... We have tried using the method Sucharita has suggested and it is working... But it appears that your method may be simpler... But we are not able to draw a circle with radius to be set dynamically... Thanks, --AD On Tue, Sep 9, 2008 at 12:03 AM, Steve Lime wrote: > Create a layer in your mapfile like so: > > SYMBOL > NAME 'circle' > TYPE ELLIPSE > FILLED TRUE > POINTS 1 1 END > END > > LAYER > NAME 'myPoiint' > TYPE POINT > STATUS OFF > CLASS > STYLE > COLOR 255 0 0 > SIZE 15 > END > END > END > > Then in your script, the steps would be like so: > > 1) get the 'myPoint' layer > 2) add a point feature to it > 3) set the STATUS appropriately > > Now draw as normal. Assuming the point is in map coordinates you should see > a red circle at the location > you specified. > > Steve > > >>> On 9/8/2008 at 11:15 AM, in message > <3702658f0809080915y38b42472le294cbda8e40b45e at mail.gmail.com>, "ramya > srinivasan" wrote: > > Hi, > > iam using php/mapscript.I will have to display the point clicked by the > user > > on the map. This is my task.Can u pls help me > > > > On Mon, Sep 8, 2008 at 9:18 PM, Steve Lime >wrote: > > > >> Can you explain a bit more about your environment (CGI vs. MapScript), > >> context of the need etc...? > >> > >> The easiest path will likely involve a point layer that you'll populate > >> dynamically (with the click coordinate) and then display that point with > a > >> circle symbol. You can scale that symbol appropriately using a style > SIZE > >> and SIZEUNITS. > >> > >> Steve > >> > >> >>> "ramya srinivasan" 09/07/08 10:51 AM >>> > >> Hi all, > >> * I want to draw a circle with the center clicked by the user on the > >> map.Can anyone help me??* > >> ** > >> *Thanks* > >> > >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From shurhenv at mail.ru Tue Sep 9 23:45:25 2008 From: shurhenv at mail.ru (shurhen) Date: Wed, 10 Sep 2008 10:45:25 +0400 Subject: [mapserver-users] Why queryByPoint returns neighbour object instead of clicked object In-Reply-To: <371146615.20080909184608@mail.ru> References: <48C4E5870200008F0001B32B@co5.dnr.state.mn.us> <371146615.20080909184608@mail.ru> Message-ID: <1192498416.20080910104525@mail.ru> PixelToGeo works fine! I compared mousemove coords with object coords and they are coincide. I've tried your script with my data: mapserv "QUERY_STRING=map=/ms4w/postgis.map&mapxy=1370858+427466&qlayer=rglots&mode=query" and got following result: ... msQueryByPoint(): Search returned no results. No matching record(s) found. i.e. nothing :( PS my map has srid = -1, i.e. nonEarth (right?) May be all matter's in this > You could try plotting your query point on the map to help visualize things I > suppose. Perhaps the PixelToGeo function is off. > One things I'd try is taking the output from that function and using it to formulate > a query to the CGI. That would allow you to compare your results against another > source. You can do this at the command line. The form would be: > mapserv > "QUERY_STRING=map=your.map&mapxy=yourx+youry&qlayer=yourlayer&mode=query" > Steve >>>> shurhen 09/08/08 8:25 AM >>> > Hello! > Why queryByPoint returns neighbour object instead of clicked object? > For several days I tried to solve this problem, but things are still > where they started. Sometimes selection was correct, sometimes > incorrect. I've noticed if I click in the middle of the object - very > often selection was incorrect (it was highlighted neighbour object), > but if if I click nearer to the vertex - right results go more often. > May be something wrong with projections? > Here is my code example that I've gathered from many sources > pointObj a_geopointObj = PixelToGeo(m_map, e); > a_layer.toleranceunits = (int)MS_UNITS.MS_PIXELS; > double a_tolerance = -1; > bool a_foundflag = false; > while (!a_foundflag && (a_tolerance < 100)) > { > m_map.prepareQuery(); > a_layer.queryByPoint(m_map, a_geopointObj, > mapscript.MS_SINGLE, a_tolerance); > using (resultCacheObj results = a_layer.getResults()) > { > textBoxSRCC1.Text = a_tolerance.ToString(); > a_foundflag = results.numresults > 0; > if (!a_foundflag) > a_tolerance++; > } > } > What I have missed? > And then some, I don't understand why tolerance values "-1" does not > work? Documentation says: "-1" is for MS_PIXELS > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An embedded message was scrubbed... From: shurhen Subject: Re[2]: [mapserver-users] Why queryByPoint returns neighbour object insteadof clicked object Date: Tue, 9 Sep 2008 18:46:08 +0400 Size: 3220 URL: From c.pelliconi at sis-ter.it Wed Sep 10 03:23:14 2008 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Wed, 10 Sep 2008 12:23:14 +0200 Subject: [mapserver-users] SVG symbols in mapserver Message-ID: <48C7A012.6040901@sis-ter.it> Hi all. I'm trying SVG symbols within mapserver: is there any documentation? Another question, this about the way in which mapserver creates the svg output: is it possible to create the svg output with the same reference system used by vector input data? I ask this because output svg, in pixel coordinates (as I've obtained it), is not directly linked to real geographic coordinates. Thank you very much. Regards, Carlo -- ing. Carlo Pelliconi c.pelliconi at sis-ter.it From james.crone at ed.ac.uk Wed Sep 10 04:07:40 2008 From: james.crone at ed.ac.uk (James Crone) Date: Wed, 10 Sep 2008 12:07:40 +0100 Subject: [mapserver-users] generating sld from a mapfile Message-ID: <48C7AA7C.3010707@ed.ac.uk> Hi, I`ve got a mapfile that I want to generate an SLD from. When I use python mapscript and generateSLD as so: import mapscript myLayerNames = ["Land_Area", "Foreshore", "Glaciers"] myMapFile = mapscript.mapObj('D:/Globalmap.map') for myLayerName in myLayerNames: myLayer = myMapFile.getLayerByName(myLayerName) mySLD = myLayer.generateSLD() print mySLD the generateSLD call just seems to return empty xml fragments in the form of: how (assuming it is possible) do I get the style properties from the mapfile to be written to the sld? James -- James Crone Geo Data and Research Services EDINA Causewayside House, 160 Causewayside, Edinburgh, Scotland, United Kingdom EH9 1PR tel: +44 (0)131 651 1859 http://edina.ac.uk ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Are you looking for help or information about "geo" related resources? Try Go-Geo! http://www.gogeo.ac.uk ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. From pal.kristensen at statkart.no Wed Sep 10 06:06:53 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Wed, 10 Sep 2008 06:06:53 -0700 (PDT) Subject: [MAPSERVER-USERS] FastCGI and trouble writing to the MS_ERRORFILE Message-ID: <19413175.post@talk.nabble.com> Hi! I have done some MapServer (5.2) performance tests with and without FastCGI. When requesting av map with the fcgi-bin url the mapserv.exe process is not closed (and this is correct). In this case MapServer does not write anything to the logfile, but when a map is requested with the regular cgi-bin url the logfile is written correctly when the process is terminated. I have tried to set the MS_ERRORFILE both in the map file and in the appache config file, but neither do any difference. The strange thing is that if I stop the apache service, then suddenly the fastCGI mapserv.exe writes a lot to the logfile before it close down. Is there a way to get mapserv.exe to write to the log file when initiated in fastCGI mode? Regards, P?l Kristensen -- View this message in context: http://www.nabble.com/FastCGI-and-trouble-writing-to-the-MS_ERRORFILE-tp19413175p19413175.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Schoenhammer.Herbert at Regensburg.de Wed Sep 10 07:03:25 2008 From: Schoenhammer.Herbert at Regensburg.de (=?iso-8859-1?Q?Sch=F6nhammer=2C_Herbert?=) Date: Wed, 10 Sep 2008 16:03:25 +0200 Subject: [mapserver-users] Oracle Spatial + MS 5.2.0: No drawing of certain objects Message-ID: Hi list, ( I had a similar discussion using Mapserver 4.10.x and Oracle Spatial 9i in May 2007. But the problems changed using Mapserver 5.2.0 .). The new environmet: =============== Server SLES10 Mapserver 5.2.0 Oracle OCI - Interface used with Oracle 11-Client-Software DB-Server Windows 2xxx Oracle Spatial 10g The new problem : ============== Line strings made up of a connected sequence of circular arcs ARE NOT DRAWN. No error message is generated by mapserver, but the objects are not shown in the map. Example: INSERT INTO AX_BES_GEBLINIE (FID,GEOM) VALUES (14196363,mdsys.sdo_geometry(2002,82032,null,mdsys.sdo_elem_info_array(1,2,2),mdsys.sdo_ordinate_array(4512474.1948,5426555.0979,4512473.3318,5426554.2349,4512474.1948,5426553.3719,4512475.0578,5426554.2349,4512474.1948,5426555.0979))); (Background: In my mailing from May 2007 I reported that these Objects are drawn correctly by mapserver. This statement is indeed reproducable correct using mapserver 4.10.x. This is independent from the used oracle version ( 9i or 10g ). Now, using mapserver 5.2.0 these objects are not drawn anymore. No error message is produced. This is also independent from the used oracle version ( 9i or 10g ). ) The old problem: ============ Polygons made up of a connected sequence of circular arcs ARE NOT DRAWN. No error message is generated by mapserver, but the objects are not shown in the map. (This problem was already reported in May 2007. The behaviour did not change from mapserver 4.10.x to 5.2.0) Example: INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES (14079065,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_info_array(1,1003,2),mdsys.sdo_ordinate_array(4505553.2585,5430757.2937,4505551.1659,5430755.2011,4505553.2585,5430753.1085,4505555.3511,5430755.2011,4505553.2585,5430757.2937))); Oracle Documentation: ================= Reading the Oracle Docs, I think all the objects are correct defined. The geometries are validating by oracle 9i and oracle 10g (Using the st_valid - method, e.g. SELECT a.GEOM.ST_IsValid() FROM ax_bes_geblinie a WHERE a.fid = 14196363;). Does anybody know a solution how to draw these objects with mapserver ? greetings Herbert -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Wed Sep 10 10:14:44 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 10 Sep 2008 13:14:44 -0400 Subject: [MAPSERVER-USERS] FastCGI and trouble writing to the MS_ERRORFILE In-Reply-To: <19413175.post@talk.nabble.com> References: <19413175.post@talk.nabble.com> Message-ID: <48C80084.4070604@mapgears.com> P?l Kristensen wrote: > > The strange thing is that if I stop the apache service, then suddenly the > fastCGI mapserv.exe writes a lot to the logfile before it close down. > > Is there a way to get mapserv.exe to write to the log file when initiated in > fastCGI mode? > Maybe a fflush() on the msDebug() output at the end of each FastCGI request would help? For a test, please try adding one in the msDebug() function in mapdebug.c and see if that helps: --- mapdebug.c (revision 7902) +++ mapdebug.c (working copy) @@ -361,6 +361,7 @@ va_start(args, pszFormat); msIO_vfprintf(debuginfo->fp, pszFormat, args); va_end(args); + fflush(debuginfo->fp); } #ifdef _WIN32 else if (debuginfo->debug_mode == MS_DEBUGMODE_WINDOWSDEBUG) If that helps then please file a ticket and assign to me (Trac id dmorissette). The final solution will NOT be to call fflush() all the time as in the above gtest, but to create a new msDebugFlush() function that is called once at the end of each FastCGI request Daniel -- Daniel Morissette http://www.mapgears.com/ From warmerdam at pobox.com Wed Sep 10 11:35:50 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 10 Sep 2008 14:35:50 -0400 Subject: [MAPSERVER-USERS] FastCGI and trouble writing to the MS_ERRORFILE In-Reply-To: <48C80084.4070604@mapgears.com> References: <19413175.post@talk.nabble.com> <48C80084.4070604@mapgears.com> Message-ID: <48C81386.5010405@pobox.com> Daniel Morissette wrote: > P?l Kristensen wrote: >> >> The strange thing is that if I stop the apache service, then suddenly the >> fastCGI mapserv.exe writes a lot to the logfile before it close down. >> >> Is there a way to get mapserv.exe to write to the log file when >> initiated in >> fastCGI mode? >> > > > Maybe a fflush() on the msDebug() output at the end of each FastCGI > request would help? For a test, please try adding one in the msDebug() > function in mapdebug.c and see if that helps: > > --- mapdebug.c (revision 7902) > +++ mapdebug.c (working copy) > @@ -361,6 +361,7 @@ > va_start(args, pszFormat); > msIO_vfprintf(debuginfo->fp, pszFormat, args); > va_end(args); > + fflush(debuginfo->fp); > } > #ifdef _WIN32 > else if (debuginfo->debug_mode == MS_DEBUGMODE_WINDOWSDEBUG) > > > If that helps then please file a ticket and assign to me (Trac id > dmorissette). The final solution will NOT be to call fflush() all the > time as in the above gtest, but to create a new msDebugFlush() function > that is called once at the end of each FastCGI request Daniel / P?l, It might also be necessary to modify the debug output code to always try and seek to the end of file before writing. If several long running fastcgi processes have the same log file open and are writing to it, we could have an issues of overwriting each others output. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From dmorissette at mapgears.com Wed Sep 10 12:18:40 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 10 Sep 2008 15:18:40 -0400 Subject: [mapserver-users] Re: FastCGI and trouble writing to the MS_ERRORFILE In-Reply-To: <48C81386.5010405@pobox.com> References: <19413175.post@talk.nabble.com> <48C80084.4070604@mapgears.com> <48C81386.5010405@pobox.com> Message-ID: <48C81D90.1060809@mapgears.com> Frank Warmerdam wrote: > > It might also be necessary to modify the debug output code to always > try and seek to the end of file before writing. If several long running > fastcgi processes have the same log file open and are writing to it, we > could have an issues of overwriting each others output. > At first I thought this was a serious issue, but then after a bit of research I found out that the most common platforms we work with seem to handle that for us already. The Linux man page for fopen says: ------------------------------------------------------ Opening a file in append mode (a as the first character of mode) causes all subsequent write operations to this stream to occur at end-of-file, as if preceded by an fseek(stream,0,SEEK_END); call. The following is from the man page of fopen ( on Solaris 9 ) (found here: http://bytes.com/forum/thread215699.html) ------------------------------------------------------ Opening a file with append mode (a as the first character in the mode argument) causes all subsequent writes to the file to be forced to the then current end-of-file, regardless of intervening calls to fseek(3C). If two separate processes open the same file for append, each process may write freely to the file without fear of destroying output being written by the other. The output from the two processes will be intermixed in the file in the order in which it is written. And here I found a ref to what looks like a Digital Unix man page giving a similar guarantee: http://www.uwm.edu/cgi-bin/IMT/wwwman?topic=fopen(3)&msection= ------------------------------------------------------ [DIGITAL] If two separate processes open the same file for append, each process can write freely to the file without destroying the output being written by the other. The output from the two processes is intermixed in the order in which it is written to the file. Note that if the data is buffered, it is not actually written until it is flushed. Unfortunately I could not find anything about Windows, but there were never reports of such issues in the past on Windows that may not be a problem there either. In conclusion, while there might still be systems where the issue is present, I think we can safely ignore the issue and cross the bridge if/when someone encounters it. Daniel -- Daniel Morissette http://www.mapgears.com/ From Bob.Bistrais at maine.gov Wed Sep 10 12:34:08 2008 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Wed, 10 Sep 2008 15:34:08 -0400 Subject: [mapserver-users] Trouble creating WMS Message-ID: <4EFF8BB964547748A07CA32961810C0412C47D30@SOM-TEAQASMAIL1.som.w2k.state.me.us> I am trying to create a WMS service with MapServer. I believe I successfully created the service, because I am able to connect to it and view it in ArcGIS. But I tried to create a Map file to view it in Ka-Map, and also in CGI mode. Ka-Map appears to be reading the file, which takes a while, but in the end the Ka-Map screen has no map. However, the Map Info window does show an accurate extent. I've gone through the MapServer documentation, but can't figure out what's wrong. Below are map map files: Map file to create the WMS service: MAP CONFIG "MS_ERRORFILE" "/ms4w/tmp/wmserror.txt" DEBUG 3 EXTENT 336615.770850 4759552.833350 662100.770850 5256295.833350 IMAGECOLOR 200 200 200 IMAGETYPE PNG24 SIZE 800 600 NAME "WMS Base Map" SHAPEPATH "C:\BaseMapData" FONTSET "C:\Program Files\Microsoft Office\Office10CD\FILES\WINDOWS\FONTS\ARIALUNI.TTF" UNITS meters WEB MINSCALEDENOM 100 MAXSCALEDENOM 5000000 IMAGEPATH "C:/ms4w/apache/htdocs" IMAGEURL "http://localhost/" METADATA "wms_server_version" "1.1.1" "wms_title" "WMS Base Data" "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=../../apps/ka-map-1.0/htdocs/B aseMap-MapServer/BaseWMS.map&" "wms_srs" "EPSG:2960" "wms_abstract" "GIS data WMS test" END END PROJECTION "init=epsg:2960" END QUERYMAP STATUS ON STYLE HILITE END INCLUDE "northeast.map" INCLUDE "towns250.map" END #END OF MAP FILE Map file for WMS client: MAP EXTENT 336615.770850 4759552.833350 662100.770850 5256295.833350 IMAGECOLOR 200 200 200 IMAGETYPE PNG SIZE 800 600 NAME "WMS Test Map" SHAPEPATH "C:\BaseMapData" FONTSET "C:\Program Files\Microsoft Office\Office10CD\FILES\WINDOWS\FONTS\ARIALUNI.TTF" UNITS meters WEB # MINSCALEDENOM 100 # MAXSCALEDENOM 5000000 IMAGEPATH "C:/ms4w/apache/htdocs" IMAGEURL "http://localhost/" END PROJECTION "init=epsg:2960" END LAYER TYPE raster DEBUG ON NAME "WMSTest" STATUS ON CONNECTIONTYPE WMS CONNECTION "http://localhost/cgi-bin/mapserv.exe?" METADATA "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_title" "WMSBaseData" "wms_onlineresource" "MapServWMSTest" "wms_srs" "EPSG:2960" "wms_abstract" "GIS data test" "wms_name" "towns250,Northeast" END END END #END OF MAP FILE -------------- next part -------------- An HTML attachment was scrubbed... URL: From ritesh.linux at gmail.com Wed Sep 10 12:40:28 2008 From: ritesh.linux at gmail.com (ritesh ambastha) Date: Thu, 11 Sep 2008 01:10:28 +0530 Subject: [mapserver-users] Precaching and opacity In-Reply-To: <4EFF8BB964547748A07CA32961810C0412C47D24@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C0412C47D24@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <135fc07d0809101240l65367632i370f08cacdb0613c@mail.gmail.com> Let us know the imagetype and outputformat defined in your map file. Have you set transparency and antialias correctly? Regards, Ambastha On Wed, Sep 10, 2008 at 2:04 AM, Bistrais, Bob wrote: > Please excuse my ignorance, I'm only starting to figure out the finer points > of precaching... > > I built a map document for MS4W. Each layer file has an Opacity setting. > Without precaching, the map displays well in Ka-Map and in CGI view. But > after running the Precache.php, my opacity settings appear to be ignored. > Each layer (including line and point data) completely obscures the previous > layer. > > Is there some setting in Precache, or elsewhere, that I missed? Any other > suggestions? > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From randre at gmail.com Wed Sep 10 12:56:35 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Wed, 10 Sep 2008 12:56:35 -0700 Subject: [mapserver-users] Can a CLASS be transparent? Message-ID: <9c2015090809101256r577648fcx838b7ea15a171c55@mail.gmail.com> Hi Everyone, I'm new to the list and am not sure if this has been properly answered already. The old posts that I have found all seem slightly different regarding this topic, so I thought it would be safest to ask again. Is it possible to set a CLASS to be transparent? The use-case being that I would like to put a raster layer underneath a layer of US states, and selectively expose the rasters by making specific states transparent. I suppose that I could write a CLASS expression for each state, and simply omit an entry for each state that I want exposed, but I wonder if there is a better way? Thanks in advance for any suggestions you can give. Roger -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Wed Sep 10 12:59:10 2008 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Wed, 10 Sep 2008 15:59:10 -0400 Subject: [mapserver-users] Trouble creating WMS In-Reply-To: <4EFF8BB964547748A07CA32961810C0412C47D30@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C0412C47D30@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C0412C47D32@SOM-TEAQASMAIL1.som.w2k.state.me.us> I think I have the problem solved now. My connection string on the client Map file was not complete. I think I have fixed it now. ________________________________ From: Bistrais, Bob Sent: Wednesday, September 10, 2008 3:34 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Trouble creating WMS I am trying to create a WMS service with MapServer. I believe I successfully created the service, because I am able to connect to it and view it in ArcGIS. But I tried to create a Map file to view it in Ka-Map, and also in CGI mode. Ka-Map appears to be reading the file, which takes a while, but in the end the Ka-Map screen has no map. However, the Map Info window does show an accurate extent. I've gone through the MapServer documentation, but can't figure out what's wrong. Below are map map files: Map file to create the WMS service: MAP CONFIG "MS_ERRORFILE" "/ms4w/tmp/wmserror.txt" DEBUG 3 EXTENT 336615.770850 4759552.833350 662100.770850 5256295.833350 IMAGECOLOR 200 200 200 IMAGETYPE PNG24 SIZE 800 600 NAME "WMS Base Map" SHAPEPATH "C:\BaseMapData" FONTSET "C:\Program Files\Microsoft Office\Office10CD\FILES\WINDOWS\FONTS\ARIALUNI.TTF" UNITS meters WEB MINSCALEDENOM 100 MAXSCALEDENOM 5000000 IMAGEPATH "C:/ms4w/apache/htdocs" IMAGEURL "http://localhost/ " METADATA "wms_server_version" "1.1.1" "wms_title" "WMS Base Data" "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=../../apps/ka-map-1.0/htdocs/B aseMap-MapServer/BaseWMS.map& " "wms_srs" "EPSG:2960" "wms_abstract" "GIS data WMS test" END END PROJECTION "init=epsg:2960" END QUERYMAP STATUS ON STYLE HILITE END INCLUDE "northeast.map" INCLUDE "towns250.map" END #END OF MAP FILE Map file for WMS client: MAP EXTENT 336615.770850 4759552.833350 662100.770850 5256295.833350 IMAGECOLOR 200 200 200 IMAGETYPE PNG SIZE 800 600 NAME "WMS Test Map" SHAPEPATH "C:\BaseMapData" FONTSET "C:\Program Files\Microsoft Office\Office10CD\FILES\WINDOWS\FONTS\ARIALUNI.TTF" UNITS meters WEB # MINSCALEDENOM 100 # MAXSCALEDENOM 5000000 IMAGEPATH "C:/ms4w/apache/htdocs" IMAGEURL "http://localhost/ " END PROJECTION "init=epsg:2960" END LAYER TYPE raster DEBUG ON NAME "WMSTest" STATUS ON CONNECTIONTYPE WMS CONNECTION "http://localhost/cgi-bin/mapserv.exe? " METADATA "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_title" "WMSBaseData" "wms_onlineresource" "MapServWMSTest" "wms_srs" "EPSG:2960" "wms_abstract" "GIS data test" "wms_name" "towns250,Northeast" END END END #END OF MAP FILE -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Wed Sep 10 13:07:05 2008 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Wed, 10 Sep 2008 16:07:05 -0400 Subject: [mapserver-users] Precaching and opacity In-Reply-To: <135fc07d0809101240l65367632i370f08cacdb0613c@mail.gmail.com> References: <4EFF8BB964547748A07CA32961810C0412C47D24@SOM-TEAQASMAIL1.som.w2k.state.me.us> <135fc07d0809101240l65367632i370f08cacdb0613c@mail.gmail.com> Message-ID: <4EFF8BB964547748A07CA32961810C0412C47D33@SOM-TEAQASMAIL1.som.w2k.state.me.us> Image type is PNG24. I've experimented with the Transparency and Opacity settings. If drawn without a precache, the map looks good. Precache seems to ignore the opacity. I haven't done anything with the antialiasing. -----Original Message----- From: group.ritesh at gmail.com [mailto:group.ritesh at gmail.com] On Behalf Of ritesh ambastha Sent: Wednesday, September 10, 2008 3:40 PM To: Bistrais, Bob Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Precaching and opacity Let us know the imagetype and outputformat defined in your map file. Have you set transparency and antialias correctly? Regards, Ambastha On Wed, Sep 10, 2008 at 2:04 AM, Bistrais, Bob wrote: > Please excuse my ignorance, I'm only starting to figure out the finer > points of precaching... > > I built a map document for MS4W. Each layer file has an Opacity setting. > Without precaching, the map displays well in Ka-Map and in CGI view. > But after running the Precache.php, my opacity settings appear to be ignored. > Each layer (including line and point data) completely obscures the > previous layer. > > Is there some setting in Precache, or elsewhere, that I missed? Any > other suggestions? > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From ritesh.linux at gmail.com Wed Sep 10 13:11:29 2008 From: ritesh.linux at gmail.com (ritesh ambastha) Date: Thu, 11 Sep 2008 01:41:29 +0530 Subject: [mapserver-users] Precaching and opacity In-Reply-To: <4EFF8BB964547748A07CA32961810C0412C47D33@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C0412C47D24@SOM-TEAQASMAIL1.som.w2k.state.me.us> <135fc07d0809101240l65367632i370f08cacdb0613c@mail.gmail.com> <4EFF8BB964547748A07CA32961810C0412C47D33@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <135fc07d0809101311x2a5aa813n37280eff1263ef77@mail.gmail.com> If you are using PNG24, then do keep Transparency as Alpha and Antialiasing as True. I hope you are using the current version of mapserver and ka-map. Any reasons for not using AGG ? Regards, Ambastha On Thu, Sep 11, 2008 at 1:37 AM, Bistrais, Bob wrote: > Image type is PNG24. I've experimented with the Transparency and > Opacity settings. If drawn without a precache, the map looks good. > Precache seems to ignore the opacity. I haven't done anything with the > antialiasing. > > > > -----Original Message----- > From: group.ritesh at gmail.com [mailto:group.ritesh at gmail.com] On Behalf > Of ritesh ambastha > Sent: Wednesday, September 10, 2008 3:40 PM > To: Bistrais, Bob > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Precaching and opacity > > Let us know the imagetype and outputformat defined in your map file. > Have you set transparency and antialias correctly? > > Regards, > Ambastha > > On Wed, Sep 10, 2008 at 2:04 AM, Bistrais, Bob > wrote: >> Please excuse my ignorance, I'm only starting to figure out the finer >> points of precaching... >> >> I built a map document for MS4W. Each layer file has an Opacity > setting. >> Without precaching, the map displays well in Ka-Map and in CGI view. >> But after running the Precache.php, my opacity settings appear to be > ignored. >> Each layer (including line and point data) completely obscures the >> previous layer. >> >> Is there some setting in Precache, or elsewhere, that I missed? Any >> other suggestions? >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From David.Fawcett at state.mn.us Wed Sep 10 13:24:06 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 10 Sep 2008 15:24:06 -0500 Subject: [mapserver-users] Can a CLASS be transparent? In-Reply-To: <9c2015090809101256r577648fcx838b7ea15a171c55@mail.gmail.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FC05B@s-sp22.pca.state.mn.us> Roger, At least at version 5.2, there is CLASS level OPACITY when you use the AGG image format. For example, if I want to turn some of my polygons 50% opaque (transparent), I can set an expression in one of the classes and set an OPACITY for that class. I have pasted an example with Minnesota counties at the end of this message. I am not sure if this is what you really want. I am guessing that you just want to have an expression in one or more classes that tells MapServer which states you want to not be colored. For that class, set an OUTLINECOLOR and not a COLOR. For the other classes, set both an OUTLINECOLR and COLOR. David. LAYER NAME "counties" STATUS DEFAULT DATA "bdry_counpy2" TYPE POLYGON CLASSITEM "CTY_NAME" CLASS NAME 'County Boundary' EXPRESSION /^A/ #EXPRESSION "Aitkin" STYLE COLOR 255 0 0 OUTLINECOLOR 0 0 0 OPACITY 50 END END CLASS NAME 'County Boundary' STYLE COLOR 255 0 0 OUTLINECOLOR 0 0 0 END END END -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Roger Andr? Sent: Wednesday, September 10, 2008 2:57 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Can a CLASS be transparent? Hi Everyone, I'm new to the list and am not sure if this has been properly answered already. The old posts that I have found all seem slightly different regarding this topic, so I thought it would be safest to ask again. Is it possible to set a CLASS to be transparent? The use-case being that I would like to put a raster layer underneath a layer of US states, and selectively expose the rasters by making specific states transparent. I suppose that I could write a CLASS expression for each state, and simply omit an entry for each state that I want exposed, but I wonder if there is a better way? Thanks in advance for any suggestions you can give. Roger -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From gwaldron at gmail.com Wed Sep 10 14:03:14 2008 From: gwaldron at gmail.com (Glenn Waldron) Date: Wed, 10 Sep 2008 17:03:14 -0400 Subject: [mapserver-users] WCS 1.1.0 support in MapServer 5.2? Message-ID: <70fbea790809101403o17debae9h99cc8367cc228b7f@mail.gmail.com> Hi, I've built MS 5.2.0 on Ubuntu with the --with-wcs option, but I cannot get WCS 1.1.0 support to work. In response to a query like: http://localhost/cgi-bin/mapserv?map=/maps/srtm.map&SERVICE=WCS&VERSION=1.1.0&REQUEST=GetCapabilities I get the response: msWCSDispatch(): WCS server error. WCS Server does not support VERSION 1.1.0. What is the proper way to enable WCS 1.1.0 support in MS 5.2.0? Thanks, Glenn -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Wed Sep 10 15:37:59 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 10 Sep 2008 18:37:59 -0400 Subject: [mapserver-users] WCS 1.1.0 support in MapServer 5.2? In-Reply-To: <70fbea790809101403o17debae9h99cc8367cc228b7f@mail.gmail.com> References: <70fbea790809101403o17debae9h99cc8367cc228b7f@mail.gmail.com> Message-ID: <48C84C47.3040604@pobox.com> Glenn Waldron wrote: > Hi, > > I've built MS 5.2.0 on Ubuntu with the --with-wcs option, but I cannot > get WCS 1.1.0 support to work. In response to a query like: > > http://localhost/cgi-bin/mapserv?map=/maps/srtm.map&SERVICE=WCS&VERSION=1.1.0&REQUEST=GetCapabilities > > > I get the response: > > msWCSDispatch(): WCS server error. WCS Server does not support VERSION > 1.1.0. > > What is the proper way to enable WCS 1.1.0 support in MS 5.2.0? Glenn, WCS 1.1.0 (and SOS) support also requires libxml. You will need to add something like this to your configure (assuming you have libxml2 available. --with-xml2-config=/usr/bin/xml2-config Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From pal.kristensen at statkart.no Wed Sep 10 23:24:42 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Wed, 10 Sep 2008 23:24:42 -0700 (PDT) Subject: [MAPSERVER-USERS] FastCGI and trouble writing to the MS_ERRORFILE In-Reply-To: <48C80084.4070604@mapgears.com> References: <19413175.post@talk.nabble.com> <48C80084.4070604@mapgears.com> Message-ID: <19428577.post@talk.nabble.com> Hi! Thanks for helping out. Your suggested solution looks reasonable, but I uses the ms4w binary distribution to perform the tests and I haven't set up any compiling environment at the moment. A colleague of mine is doing the compiling on our Linux systems, but he is on vacation for another week. I'll have to wait for him to return to work before doing any compiling. Regards, P?l Kristensen Daniel Morissette-2 wrote: > > Maybe a fflush() on the msDebug() output at the end of each FastCGI > request would help? For a test, please try adding one in the msDebug() > function in mapdebug.c and see if that helps: > > --- mapdebug.c (revision 7902) > +++ mapdebug.c (working copy) > @@ -361,6 +361,7 @@ > va_start(args, pszFormat); > msIO_vfprintf(debuginfo->fp, pszFormat, args); > va_end(args); > + fflush(debuginfo->fp); > } > #ifdef _WIN32 > else if (debuginfo->debug_mode == MS_DEBUGMODE_WINDOWSDEBUG) > > > If that helps then please file a ticket and assign to me (Trac id > dmorissette). The final solution will NOT be to call fflush() all the > time as in the above gtest, but to create a new msDebugFlush() function > that is called once at the end of each FastCGI request > > Daniel > -- > Daniel Morissette > http://www.mapgears.com/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/FastCGI-and-trouble-writing-to-the-MS_ERRORFILE-tp19413175p19428577.html Sent from the Mapserver - User mailing list archive at Nabble.com. From paulborodaev at gmail.com Thu Sep 11 00:19:07 2008 From: paulborodaev at gmail.com (BrainDrain) Date: Thu, 11 Sep 2008 00:19:07 -0700 (PDT) Subject: [MAPSERVER-USERS] OpenSource Wind Symbol Fonts In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FC051@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5021FC051@s-sp22.pca.state.mn.us> Message-ID: <19429209.post@talk.nabble.com> try to search here: http://www.dingbats-uk.org.uk/download/index.html Fawcett, David wrote: > > Can anyone point me to a truetype font set that contains wind > (direction/barb) symbols that are available under an OpenSource license? > > > Thanks, > > David. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/OpenSource-Wind-Symbol-Fonts-tp19405881p19429209.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mitchelljj98 at gmail.com Thu Sep 11 02:12:33 2008 From: mitchelljj98 at gmail.com (John Mitchell) Date: Thu, 11 Sep 2008 05:12:33 -0400 Subject: [mapserver-users] Is their a plan to allow WFS-t (which means adds, changes and deletes for vector data) within MapServer and if so when? Message-ID: Hi, Is their a plan to allow WFS-t (which means adds, changes and deletes for vector data) within MapServer and if so when? Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From aberenyi at burken.hu Thu Sep 11 05:20:58 2008 From: aberenyi at burken.hu (=?ISO-8859-2?Q?Ber=E9nyi_Attila?=) Date: Thu, 11 Sep 2008 14:20:58 +0200 Subject: [mapserver-users] dgn -> mysql -> color and angle Message-ID: <48C90D2A.8090206@burken.hu> Dear List, I'm having trouble with colors and label angles... 1. Colors: I have a lot of data in DGN, and I usually convert every single plan and upload it into a MySQL MyGIS database with ogr2ogr. In the database there is a colorindex column and I want to use it to colorize my objects. Am I able to do something like this? 2. Label angles: These DGN plans contains a lot of text labels...I could display them on an annotation layer, but the angle of these labels are not constant and I want to display the plan in Mapserver exactly the same way it looks like in Microstation...is it possible? Thanks in advance, Attila -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Thu Sep 11 06:10:15 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 11 Sep 2008 09:10:15 -0400 Subject: [mapserver-users] Is their a plan to allow WFS-t (which means adds, changes and deletes for vector data) within MapServer and if so when? In-Reply-To: References: Message-ID: <48C918B7.6090608@mapgears.com> John Mitchell wrote: > Hi, > > Is their a plan to allow WFS-t (which means adds, changes and deletes > for vector data) within MapServer and if so when? > No, there is no plan to support WFS-T in MapServer. A MapServer + GeoServer combo with PostGIS as common database backend will give you the best of both worlds: MapServer excels at WMS and GeoServer at WFS/WFS-T. Daniel -- Daniel Morissette http://www.mapgears.com/ From gwaldron at gmail.com Thu Sep 11 07:00:53 2008 From: gwaldron at gmail.com (Glenn Waldron) Date: Thu, 11 Sep 2008 10:00:53 -0400 Subject: [mapserver-users] WCS 1.1.0 support in MapServer 5.2? In-Reply-To: <48C84C47.3040604@pobox.com> References: <70fbea790809101403o17debae9h99cc8367cc228b7f@mail.gmail.com> <48C84C47.3040604@pobox.com> Message-ID: <70fbea790809110700u638b556ck1038b1fed53ac268@mail.gmail.com> On Wed, Sep 10, 2008 at 6:37 PM, Frank Warmerdam wrote: > Glenn Waldron wrote: > >> Hi, >> >> I've built MS 5.2.0 on Ubuntu with the --with-wcs option, but I cannot get >> WCS 1.1.0 support to work. In response to a query like: >> >> >> http://localhost/cgi-bin/mapserv?map=/maps/srtm.map&SERVICE=WCS&VERSION=1.1.0&REQUEST=GetCapabilities< >> http://localhost/cgi-bin/mapserv?map=/maps/srtm.map&SERVICE=WCS&VERSION=1.1.0&REQUEST=GetCapabilities >> > >> >> I get the response: >> >> msWCSDispatch(): WCS server error. WCS Server does not support VERSION >> 1.1.0. >> >> What is the proper way to enable WCS 1.1.0 support in MS 5.2.0? >> > > Glenn, > > WCS 1.1.0 (and SOS) support also requires libxml. You will need to add > something like this to your configure (assuming you have libxml2 available. > > --with-xml2-config=/usr/bin/xml2-config > > Best regards, Frank, thanks for the quick reply. I do have libxml2, and I tried adding the directive above, but I still get the same response. WCS 1.0.0 works but 1.1.0 does not. Do you have any other suggestions? Thanks again, your help is much appreciated. Glenn -- Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : +1.703.652.4791 -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Thu Sep 11 07:07:54 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 11 Sep 2008 10:07:54 -0400 Subject: [mapserver-users] WCS 1.1.0 support in MapServer 5.2? In-Reply-To: <70fbea790809110700u638b556ck1038b1fed53ac268@mail.gmail.com> References: <70fbea790809101403o17debae9h99cc8367cc228b7f@mail.gmail.com> <48C84C47.3040604@pobox.com> <70fbea790809110700u638b556ck1038b1fed53ac268@mail.gmail.com> Message-ID: <48C9263A.1060906@pobox.com> Glenn Waldron wrote: > > Frank, thanks for the quick reply. I do have libxml2, and I tried adding > the directive above, but I still get the same response. WCS 1.0.0 works > but 1.1.0 does not. Do you have any other suggestions? > > Thanks again, your help is much appreciated. Glenn, I would suggest ensuring that -DUSE_LIBXML2 appears in the compile lines as mapserver is building. I would suggest doing a make clean after the configure. I would suggest ensuring that you are really using the newly installed executable after rebuilding and installing it. It is *almost* certain you have just not done a clean enough rebuild and reinstall with the new options. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From zhaops at hotmail.com Thu Sep 11 07:47:53 2008 From: zhaops at hotmail.com (zhao peisheng) Date: Thu, 11 Sep 2008 14:47:53 +0000 Subject: [mapserver-users] service exception Message-ID: Hi all, Currently, the MapServer will return serviceException with a very detailed message, such as query error and load error, if there is a error. I am wanna to only return a general message instead of the detailed message. I tried to set up "ERROR" within "Web" tag in map file, but failed. How to deal with it? Thanks. Peisheng _________________________________________________________________ Stay up to date on your PC, the Web, and your mobile phone with Windows Live. http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Thu Sep 11 07:57:00 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 11 Sep 2008 09:57:00 -0500 Subject: [mapserver-users] service exception In-Reply-To: References: Message-ID: <48C8EB26.5157.008F.0@dnr.state.mn.us> I don't think it's possible to override the error messages with OGC service support. The ERROR directive is supported on by the CGI interface. Steve >>> On 9/11/2008 at 9:47 AM, in message , zhao peisheng wrote: > Hi all, > > Currently, the MapServer will return serviceException with a very detailed > message, such as query error and load error, if there is a error. I am wanna > to only return a general message instead of the detailed message. I tried to > set up "ERROR" within "Web" tag in map file, but failed. How to deal with it? > Thanks. > > Peisheng > > _________________________________________________________________ > Stay up to date on your PC, the Web, and your mobile phone with Windows > Live. > http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/ From Tom.Kralidis at ec.gc.ca Thu Sep 11 08:01:03 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Thu, 11 Sep 2008 11:01:03 -0400 Subject: [mapserver-users] service exception In-Reply-To: Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF5AA@ecburexch1.ontario.int.ec.gc.ca> I'm guessing you are in WMS/WFS/WCS/SOS mode? You could use mapscript WxS to alter the output message before returning an exception to the client. http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript ..Tom ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of zhao peisheng Sent: 11 September, 2008 10:48 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] service exception Hi all, Currently, the MapServer will return serviceException with a very detailed message, such as query error and load error, if there is a error. I am wanna to only return a general message instead of the detailed message. I tried to set up "ERROR" within "Web" tag in map file, but failed. How to deal with it? Thanks. Peisheng ________________________________ Stay up to date on your PC, the Web, and your mobile phone with Windows Live. See Now From gwaldron at gmail.com Thu Sep 11 09:01:31 2008 From: gwaldron at gmail.com (Glenn Waldron) Date: Thu, 11 Sep 2008 12:01:31 -0400 Subject: [mapserver-users] WCS 1.1.0 support in MapServer 5.2? In-Reply-To: <48C9263A.1060906@pobox.com> References: <70fbea790809101403o17debae9h99cc8367cc228b7f@mail.gmail.com> <48C84C47.3040604@pobox.com> <70fbea790809110700u638b556ck1038b1fed53ac268@mail.gmail.com> <48C9263A.1060906@pobox.com> Message-ID: <70fbea790809110901p75dd8895kca9985ba0c40a398@mail.gmail.com> > > Glenn, > > I would suggest ensuring that -DUSE_LIBXML2 appears in the compile lines > as mapserver is building. I would suggest doing a make clean after the > configure. I would suggest ensuring that you are really using the newly > installed executable after rebuilding and installing it. > > It is *almost* certain you have just not done a clean enough rebuild and > reinstall with the new options. > Frank, You were correct; I was copying mapserv to the wrong place. On a related note, I found what I believe to be a bug: mapwcs11.c, line 1149 There should be no comma at the end of the line. The msIO_fprintf statement results in junk; removing the comma fixes the problem. Glenn -- Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : +1.703.652.4791 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at ec.gc.ca Thu Sep 11 09:13:39 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Thu, 11 Sep 2008 12:13:39 -0400 Subject: [mapserver-users] WCS 1.1.0 support in MapServer 5.2? In-Reply-To: <70fbea790809110901p75dd8895kca9985ba0c40a398@mail.gmail.com> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF5AE@ecburexch1.ontario.int.ec.gc.ca> Committed in r7906. ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Glenn Waldron Sent: 11 September, 2008 12:02 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WCS 1.1.0 support in MapServer 5.2? Glenn, I would suggest ensuring that -DUSE_LIBXML2 appears in the compile lines as mapserver is building. I would suggest doing a make clean after the configure. I would suggest ensuring that you are really using the newly installed executable after rebuilding and installing it. It is *almost* certain you have just not done a clean enough rebuild and reinstall with the new options. Frank, You were correct; I was copying mapserv to the wrong place. On a related note, I found what I believe to be a bug: mapwcs11.c, line 1149 There should be no comma at the end of the line. The msIO_fprintf statement results in junk; removing the comma fixes the problem. Glenn -- Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : +1.703.652.4791 From pramsey at cleverelephant.ca Thu Sep 11 10:07:26 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Thu, 11 Sep 2008 10:07:26 -0700 Subject: [mapserver-users] Oracle Spatial + MS 5.2.0: No drawing of certain objects In-Reply-To: References: Message-ID: <30fe546d0809111007s6c4485bdub6125d15a1867946@mail.gmail.com> Could you do a bit more legwork and see if the problem appears at the transition to 5.0 or the transition to 5.2? From there we can probably find the code change that caused it. P. On Wed, Sep 10, 2008 at 7:03 AM, Sch?nhammer, Herbert wrote: > Hi list, > > ( I had a similar discussion using Mapserver 4.10.x and Oracle Spatial 9i in > May 2007. But the problems changed using Mapserver 5.2.0 .). > > > The new environmet: > =============== > Server SLES10 > Mapserver 5.2.0 > Oracle OCI - Interface used with Oracle 11-Client-Software > > DB-Server Windows 2xxx > Oracle Spatial 10g > > > The new problem : > ============== > Line strings made up of a connected sequence of circular arcs ARE NOT DRAWN. > No error message is generated by mapserver, but the objects are not shown in > the map. > > Example: > INSERT INTO AX_BES_GEBLINIE (FID,GEOM) VALUES > (14196363,mdsys.sdo_geometry(2002,82032,null,mdsys.sdo_elem_info_array(1,2,2),mdsys.sdo_ordinate_array(4512474.1948,5426555.0979,4512473.3318,5426554.2349,4512474.1948,5426553.3719,4512475.0578,5426554.2349,4512474.1948,5426555.0979))); > > (Background: > In my mailing from May 2007 I reported that these Objects are drawn > correctly by mapserver. This statement is indeed reproducable correct using > mapserver 4.10.x. This is independent from the used oracle version ( 9i or > 10g ). > Now, using mapserver 5.2.0 these objects are not drawn anymore. No error > message is produced. This is also independent from the used oracle version ( > 9i or 10g ). ) > > The old problem: > ============ > Polygons made up of a connected sequence of circular arcs ARE NOT DRAWN. No > error message is generated by mapserver, but the objects are not shown in > the map. > > (This problem was already reported in May 2007. The behaviour did not change > from mapserver 4.10.x to 5.2.0) > > Example: > INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES > (14079065,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_info_array(1,1003,2),mdsys.sdo_ordinate_array(4505553.2585,5430757.2937,4505551.1659,5430755.2011,4505553.2585,5430753.1085,4505555.3511,5430755.2011,4505553.2585,5430757.2937))); > > > Oracle Documentation: > ================= > Reading the Oracle Docs, I think all the objects are correct defined. The > geometries are validating by oracle 9i and oracle 10g (Using the st_valid - > method, e.g. SELECT a.GEOM.ST_IsValid() > FROM ax_bes_geblinie a WHERE a.fid = 14196363;). > > > > Does anybody know a solution how to draw these objects with mapserver ? > > greetings > Herbert > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From pramsey at cleverelephant.ca Thu Sep 11 10:25:55 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Thu, 11 Sep 2008 10:25:55 -0700 Subject: [mapserver-users] rfc43 gtile returning blank images, while WMS works In-Reply-To: References: <30fe546d0809082119u3e1b0a9bve1cfe10c0a2543b9@mail.gmail.com> Message-ID: <30fe546d0809111025mb555fe4o4df768df78e92d9a@mail.gmail.com> Andy, Any luck stripping the map file down to a simple test case I can run? P. On Tue, Sep 9, 2008 at 4:41 AM, wrote: > On Mon, 8 Sep 2008, Paul Ramsey wrote: > >> Nothing leaps out. Are you sure they are equivalent? Zoom level two is >> pretty far out, do you have scale dependency in that layer? > > Hi Paul, thanks for the response. I choose a far out zoom level to ensure > there is data in the view for folks to see. When I run the gtile request, > mapserver logs the bounding box, which I then fed to build the WMS request. > My scale setting for that layer is: > > MINSCALE 0 > MAXSCALE 465000000 > > My RASTER datasource layers is already projected in 900913... > > daryl > From warmerdam at pobox.com Thu Sep 11 13:20:30 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 11 Sep 2008 16:20:30 -0400 Subject: [mapserver-users] WCS 1.1.0 support in MapServer 5.2? In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF5AE@ecburexch1.ontario.int.ec.gc.ca> References: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF5AE@ecburexch1.ontario.int.ec.gc.ca> Message-ID: <48C97D8E.7060109@pobox.com> Tom / Glenn, I have also migrated this fix to mapserver 5.2 branch (r7907) though with no ticket number I am likely to my fingers wrapped by danmo. All this top posting ... I hope the anti-top-posting police aren't on this list! Best regards, Kralidis,Tom [Burlington] wrote: > Committed in r7906. > > > > ________________________________ > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Glenn > Waldron > Sent: 11 September, 2008 12:02 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] WCS 1.1.0 support in MapServer > 5.2? > > > > Glenn, > > I would suggest ensuring that -DUSE_LIBXML2 appears in > the compile lines > as mapserver is building. I would suggest doing a make > clean after the > configure. I would suggest ensuring that you are really > using the newly > installed executable after rebuilding and installing it. > > It is *almost* certain you have just not done a clean > enough rebuild and > reinstall with the new options. > > > Frank, > You were correct; I was copying mapserv to the wrong place. > > On a related note, I found what I believe to be a bug: > > mapwcs11.c, line 1149 > There should be no comma at the end of the line. The > msIO_fprintf statement results in junk; removing the comma fixes the > problem. > > Glenn > > -- > Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : > +1.703.652.4791 > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From c.pelliconi at sis-ter.it Fri Sep 12 00:12:44 2008 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Fri, 12 Sep 2008 09:12:44 +0200 Subject: [mapserver-users] MapServer and Microsoft VirtualEarth Message-ID: <48CA166C.3030605@sis-ter.it> Hi all. Is it possible and, if yes, is there any documentation about visualization of GIS analysis, performed by MapServer, in VirtualEarth? Thank you very much. Regards, Carlo -- ing. Carlo Pelliconi c.pelliconi at sis-ter.it From umberto.nicoletti at gmail.com Fri Sep 12 00:17:59 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Fri, 12 Sep 2008 09:17:59 +0200 Subject: [mapserver-users] MapServer and Microsoft VirtualEarth In-Reply-To: <48CA166C.3030605@sis-ter.it> References: <48CA166C.3030605@sis-ter.it> Message-ID: <75b4b93e0809120017i224cc3e0i7c0f38ec397c22a6@mail.gmail.com> Yes it is possible though not directly using mapserver, but using OpenLayers. Umberto On Fri, Sep 12, 2008 at 9:12 AM, Carlo Pelliconi wrote: > Hi all. > Is it possible and, if yes, is there any documentation about visualization > of GIS analysis, performed by MapServer, in VirtualEarth? > Thank you very much. > Regards, Carlo > > -- > ing. Carlo Pelliconi > c.pelliconi at sis-ter.it > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mitchelljj98 at gmail.com Fri Sep 12 04:18:05 2008 From: mitchelljj98 at gmail.com (John Mitchell) Date: Fri, 12 Sep 2008 07:18:05 -0400 Subject: [mapserver-users] 256 color PNG vs png24 how do set up the 2 different formats within a map file Message-ID: Hi, I would like to test both the data quality and performance between 256 color png and png24 but I am not sure how I would set up differently within a map file. Below is what I am currently using within all my mapfiles for both raster and vector. I believe that it outputting as png24 correct? How would I change it in order to make it output as 256 color png? OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From davinci.avdhesh at gmail.com Fri Sep 12 04:33:44 2008 From: davinci.avdhesh at gmail.com (davinci.avdhesh at gmail.com) Date: Fri, 12 Sep 2008 17:03:44 +0530 Subject: [mapserver-users] Re: Welcome to the "mapserver-users" mailing list In-Reply-To: References: Message-ID: <539a78080809120433u5a7dd419w7f63e7ece950eb6d@mail.gmail.com> Hi all As a part of my project i have to display a list of aisan(Indian) cities for which i have their longitude and latitude on a map of Asia(India). I am totally new to mapserver. please tell me how to proceed from step 1. Thank you in advance. Bye avdhesh From paulborodaev at gmail.com Fri Sep 12 04:54:24 2008 From: paulborodaev at gmail.com (BrainDrain) Date: Fri, 12 Sep 2008 04:54:24 -0700 (PDT) Subject: [MAPSERVER-USERS] ms sql 2008 spatial - still problems??? Message-ID: <19454300.post@talk.nabble.com> I tried to use ms sql 2008 layer with ms4w 2.2.9 my steps: downloading mapdotnet & extracting msplugin_mssql2008.dll...done importing data into mssql2008 using geometry data type (with FME) ...done creating layer def: ... TYPE POLYGON CONNECTIONTYPE PLUGIN PLUGIN "c:\ms4w\app\WEMSite\Bin\msplugin_mssql2008.dll" CONNECTION "server=localhost;uid=...;pwd=...;database=geodb;Integrated Security=false" DATA "GEOM from dbo.Construct USING UNIQUE id USING SRID=0" ... done and then exceptions: 1) At server (asp.net) side on layer.open "msMSSQL2008LayerGetItems(): Query error. msMSSQL2008LayerGetItems: tried to find the geometry column in the results from the database, but couldnt find it. Is it miss-capitialized? 'GEOM'" googling - doesn't help, adding geometry_columns table (as it is in postgis db) and populating it - doesn't help, looking up in mapmssql2008.c - doesn't help, using sql profiler to catch what plugin requests - doesn't help ((((((( 2) Ok: excluding layer.open() from code and waiting just for cgi response: Error executing MSSQL2008 SQL statement: SELECT GEOM.STAsBinary(),convert(varchar(20), id) from dbo.Construct WHERE GEOM.STIntersects(Geometry::STGeomFromText('POLYGON((-4850978.88931604 -7029571.83269322,-4800721.99088196 -7029571.83269322,-4800721.99088196 -6979314.93425899,-4850978.88931604 -6979314.93425899,-4850978.88931604 -7029571.83269322))',0)) = 1 -[Microsoft][ODBC SQL Server Driver][SQL Server]A .NET Framework error occurred during execution of user-defined routine or aggregate "geometry": System.ArgumentException: 24144: This operation cannot be completed because the instance is not valid. Use MakeValid to convert the instance to a valid instance. Note that MakeValid may cause the points of a geometry instance to shift slightly. System.ArgumentException: ? Microsoft.SqlServer.Types.SqlGeometry.ThrowIfInvalid() ? Microsoft.SqlServer.Types.SqlGeometry.STIntersects(SqlGeometry other) . Ok: executing "delete from dbo.Construct where GEOM.STIsValid()<>1" fixes the 2nd problem but what about 1st??? without solving this I'll not be able to perform queries. -- View this message in context: http://www.nabble.com/ms-sql-2008-spatial---still-problems----tp19454300p19454300.html Sent from the Mapserver - User mailing list archive at Nabble.com. From John.Westwood at port.ac.uk Fri Sep 12 04:55:42 2008 From: John.Westwood at port.ac.uk (John Westwood) Date: Fri, 12 Sep 2008 12:55:42 +0100 Subject: [mapserver-users] 256 color PNG vs png24 how do set up the 2different formats within a map file In-Reply-To: References: Message-ID: <48CA66CE.FEDC.0053.0@port.ac.uk> Hi, Try: IMAGEMODE PC256 More details at this link: http://mapserver.gis.umn.edu/docs/reference/mapfile/outputformat Lots of useful info on the MapServer website! :) John W. Great Britain Historical GIS >>> On 12/09/2008 at 12:18, in message , "John Mitchell" wrote: > Hi, > > I would like to test both the data quality and performance between 256 color > png and png24 but I am not sure how I would set up differently within a map > file. > > Below is what I am currently using within all my mapfiles for both raster > and vector. I believe that it outputting as png24 correct? How would I > change it in order to make it output as 256 color png? > > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGB > EXTENSION "png" > END > > > Thanks, From jmckenna at gatewaygeomatics.com Fri Sep 12 05:30:22 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 12 Sep 2008 08:30:22 -0400 Subject: [MAPSERVER-USERS] ms sql 2008 spatial - still problems??? In-Reply-To: <19454300.post@talk.nabble.com> References: <19454300.post@talk.nabble.com> Message-ID: <48CA60DE.4050606@gatewaygeomatics.com> BrainDrain wrote: > I tried to use ms sql 2008 layer with ms4w 2.2.9 > my steps: > downloading mapdotnet & extracting msplugin_mssql2008.dll...done Um, where did you get the 'msplugin_mssql2008.dll' file? I don't remember compiling that for ms4w 2.2.9....if you grabbed it from somewhere else I would say that is the problem. (see: http://bugzilla.maptools.org/show_bug.cgi?id=1944) If you have comments for that ticket, then please create an account there and add yourself to the CC of that ticket and comment away! -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From vtammineni at roulacglobal.com Fri Sep 12 05:42:22 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Fri, 12 Sep 2008 18:12:22 +0530 Subject: [MAPSERVER-USERS] ms sql 2008 spatial - still problems??? In-Reply-To: <19454300.post@talk.nabble.com> References: <19454300.post@talk.nabble.com> Message-ID: <003201c914d5$01d4e990$057ebcb0$@com> Hi, How you are importing your spatial data? Which tool you are using to import spatial data? Here is what I am using ,let me know if you are getting problem by using MsSQL 2008. CONNECTIONTYPE PLUGIN PLUGIN "D:\home\Vtammineni\Data\sandbox\gis\RoulacGis\plugins\msplugin_mssql2008.dll" #plug in CONNECTION "server=192.168.1.79;uid=sa;pwd=asp123;database=testspatial;Integrated Security=false" # data base server connection DATA "geom from rgp_gis_worldcountries" # table Thanks and regards, Venkat. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of BrainDrain Sent: Friday, September 12, 2008 5:24 PM To: mapserver-users at lists.osgeo.org Subject: [MAPSERVER-USERS] ms sql 2008 spatial - still problems??? I tried to use ms sql 2008 layer with ms4w 2.2.9 my steps: downloading mapdotnet & extracting msplugin_mssql2008.dll...done importing data into mssql2008 using geometry data type (with FME) ...done creating layer def: ... TYPE POLYGON CONNECTIONTYPE PLUGIN PLUGIN "c:\ms4w\app\WEMSite\Bin\msplugin_mssql2008.dll" CONNECTION "server=localhost;uid=...;pwd=...;database=geodb;Integrated Security=false" DATA "GEOM from dbo.Construct USING UNIQUE id USING SRID=0" ... done and then exceptions: 1) At server (asp.net) side on layer.open "msMSSQL2008LayerGetItems(): Query error. msMSSQL2008LayerGetItems: tried to find the geometry column in the results from the database, but couldnt find it. Is it miss-capitialized? 'GEOM'" googling - doesn't help, adding geometry_columns table (as it is in postgis db) and populating it - doesn't help, looking up in mapmssql2008.c - doesn't help, using sql profiler to catch what plugin requests - doesn't help ((((((( 2) Ok: excluding layer.open() from code and waiting just for cgi response: Error executing MSSQL2008 SQL statement: SELECT GEOM.STAsBinary(),convert(varchar(20), id) from dbo.Construct WHERE GEOM.STIntersects(Geometry::STGeomFromText('POLYGON((-4850978.88931604 -7029571.83269322,-4800721.99088196 -7029571.83269322,-4800721.99088196 -6979314.93425899,-4850978.88931604 -6979314.93425899,-4850978.88931604 -7029571.83269322))',0)) = 1 -[Microsoft][ODBC SQL Server Driver][SQL Server]A .NET Framework error occurred during execution of user-defined routine or aggregate "geometry": System.ArgumentException: 24144: This operation cannot be completed because the instance is not valid. Use MakeValid to convert the instance to a valid instance. Note that MakeValid may cause the points of a geometry instance to shift slightly. System.ArgumentException: ? Microsoft.SqlServer.Types.SqlGeometry.ThrowIfInvalid() ? Microsoft.SqlServer.Types.SqlGeometry.STIntersects(SqlGeometry other) . Ok: executing "delete from dbo.Construct where GEOM.STIsValid()<>1" fixes the 2nd problem but what about 1st??? without solving this I'll not be able to perform queries. -- View this message in context: http://www.nabble.com/ms-sql-2008-spatial---still-problems----tp19454300p19454300.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From vtammineni at roulacglobal.com Fri Sep 12 05:49:45 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Fri, 12 Sep 2008 18:19:45 +0530 Subject: [mapserver-users] Re: Welcome to the "mapserver-users" mailing list In-Reply-To: <539a78080809120433u5a7dd419w7f63e7ece950eb6d@mail.gmail.com> References: <539a78080809120433u5a7dd419w7f63e7ece950eb6d@mail.gmail.com> Message-ID: <003301c914d6$09dc9e20$1d95da60$@com> Hi, What you want exactly.I am not clear with Query. You want to render your data on map? Let me know.. Thanks and Regards Venkat. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of davinci.avdhesh at gmail.com Sent: Friday, September 12, 2008 5:04 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Re: Welcome to the "mapserver-users" mailing list Hi all As a part of my project i have to display a list of aisan(Indian) cities for which i have their longitude and latitude on a map of Asia(India). I am totally new to mapserver. please tell me how to proceed from step 1. Thank you in advance. Bye avdhesh _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Fri Sep 12 06:04:04 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 12 Sep 2008 09:04:04 -0400 Subject: [mapserver-users] Re: Welcome to the "mapserver-users" mailing list In-Reply-To: <539a78080809120433u5a7dd419w7f63e7ece950eb6d@mail.gmail.com> References: <539a78080809120433u5a7dd419w7f63e7ece950eb6d@mail.gmail.com> Message-ID: <48CA68C4.2060908@gatewaygeomatics.com> davinci.avdhesh at gmail.com wrote: > Hi all > As a part of my project i have to display a list of aisan(Indian) > cities for which i have their longitude and latitude on a map of > Asia(India). I am totally new to mapserver. please tell me how to > proceed from step 1. > > Thank you in advance. > > Bye A good starting place is the MapServer Tutorial: http://mapserver.gis.umn.edu/docs/tutorial/tutorial/tutorialURL Then maybe the Vector Data Access guide: http://mapserver.gis.umn.edu/docs/reference/vector_data -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From paulborodaev at gmail.com Fri Sep 12 06:44:23 2008 From: paulborodaev at gmail.com (BrainDrain) Date: Fri, 12 Sep 2008 06:44:23 -0700 (PDT) Subject: [MAPSERVER-USERS] ms sql 2008 spatial - still problems??? In-Reply-To: <48CA60DE.4050606@gatewaygeomatics.com> References: <19454300.post@talk.nabble.com> <48CA60DE.4050606@gatewaygeomatics.com> Message-ID: <19456122.post@talk.nabble.com> As I wrote I took it from mapdotnet server installation http://www.mapdotnet.com >From which place I should take It? Jeff McKenna-3 wrote: > > BrainDrain wrote: >> I tried to use ms sql 2008 layer with ms4w 2.2.9 >> my steps: >> downloading mapdotnet & extracting msplugin_mssql2008.dll...done > > Um, where did you get the 'msplugin_mssql2008.dll' file? I don't > remember compiling that for ms4w 2.2.9....if you grabbed it from > somewhere else I would say that is the problem. (see: > http://bugzilla.maptools.org/show_bug.cgi?id=1944) If you have comments > for that ticket, then please create an account there and add yourself to > the CC of that ticket and comment away! > > > -- > Jeff McKenna > FOSS4G Consulting and Training Services > http://www.gatewaygeomatics.com/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/ms-sql-2008-spatial---still-problems----tp19454300p19456122.html Sent from the Mapserver - User mailing list archive at Nabble.com. From paulborodaev at gmail.com Fri Sep 12 06:52:12 2008 From: paulborodaev at gmail.com (BrainDrain) Date: Fri, 12 Sep 2008 06:52:12 -0700 (PDT) Subject: [MAPSERVER-USERS] ms sql 2008 spatial - still problems??? In-Reply-To: <003201c914d5$01d4e990$057ebcb0$@com> References: <19454300.post@talk.nabble.com> <003201c914d5$01d4e990$057ebcb0$@com> Message-ID: <19456310.post@talk.nabble.com> To import data into mssql 2008 I use FME 2008 (Safe Software) Which tool did you use? Can you share your dll? My layer config is similar to yours. I tried to delete 'using bla bla' but without effect. I tried to test with&without creating spatial index. Venkatrao wrote: > > Hi, > > How you are importing your spatial data? Which tool you are using to > import spatial data? > > Here is what I am using ,let me know if you are getting problem by using > MsSQL 2008. > CONNECTIONTYPE PLUGIN > PLUGIN > "D:\home\Vtammineni\Data\sandbox\gis\RoulacGis\plugins\msplugin_mssql2008.dll" > #plug in > CONNECTION > "server=192.168.1.79;uid=sa;pwd=asp123;database=testspatial;Integrated > Security=false" # data base server connection > DATA "geom from rgp_gis_worldcountries" # table > > Thanks and regards, > Venkat. > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of BrainDrain > Sent: Friday, September 12, 2008 5:24 PM > To: mapserver-users at lists.osgeo.org > Subject: [MAPSERVER-USERS] ms sql 2008 spatial - still problems??? > > > I tried to use ms sql 2008 layer with ms4w 2.2.9 > my steps: > downloading mapdotnet & extracting msplugin_mssql2008.dll...done > importing data into mssql2008 using geometry data type (with FME) ...done > creating layer def: > ... > TYPE POLYGON > CONNECTIONTYPE PLUGIN > PLUGIN "c:\ms4w\app\WEMSite\Bin\msplugin_mssql2008.dll" > CONNECTION "server=localhost;uid=...;pwd=...;database=geodb;Integrated > Security=false" > DATA "GEOM from dbo.Construct USING UNIQUE id USING SRID=0" > ... > done > and then exceptions: > 1) At server (asp.net) side on layer.open > "msMSSQL2008LayerGetItems(): Query error. msMSSQL2008LayerGetItems: tried > to > find the geometry column in the results from the database, but couldnt > find > it. Is it miss-capitialized? 'GEOM'" > googling - doesn't help, adding geometry_columns table (as it is in > postgis > db) and populating it - doesn't help, looking up in mapmssql2008.c - > doesn't > help, using sql profiler to catch what plugin requests - doesn't help > ((((((( > 2) Ok: excluding layer.open() from code and waiting just for cgi response: > Error executing MSSQL2008 SQL statement: SELECT > GEOM.STAsBinary(),convert(varchar(20), id) from dbo.Construct WHERE > GEOM.STIntersects(Geometry::STGeomFromText('POLYGON((-4850978.88931604 > -7029571.83269322,-4800721.99088196 -7029571.83269322,-4800721.99088196 > -6979314.93425899,-4850978.88931604 -6979314.93425899,-4850978.88931604 > -7029571.83269322))',0)) = 1 -[Microsoft][ODBC SQL Server Driver][SQL > Server]A .NET Framework error occurred during execution of user-defined > routine or aggregate "geometry": System.ArgumentException: 24144: This > operation cannot be completed because the instance is not valid. Use > MakeValid to convert the instance to a valid instance. Note that MakeValid > may cause the points of a geometry instance to shift slightly. > System.ArgumentException: ? > Microsoft.SqlServer.Types.SqlGeometry.ThrowIfInvalid() ? > Microsoft.SqlServer.Types.SqlGeometry.STIntersects(SqlGeometry other) . > Ok: executing "delete from dbo.Construct where GEOM.STIsValid()<>1" fixes > the 2nd problem > but what about 1st??? without solving this I'll not be able to perform > queries. > > > > -- > View this message in context: > http://www.nabble.com/ms-sql-2008-spatial---still-problems----tp19454300p19454300.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/ms-sql-2008-spatial---still-problems----tp19454300p19456310.html Sent from the Mapserver - User mailing list archive at Nabble.com. From minka.stoyanova at gmail.com Sat Sep 13 06:39:46 2008 From: minka.stoyanova at gmail.com (Minka Stoyanova) Date: Sat, 13 Sep 2008 16:39:46 +0300 Subject: [mapserver-users] rectangle on reference map and shown query map don't coinside Message-ID: <66b0a28d0809130639w23dd76dfy8218a89ef3d4102a@mail.gmail.com> Dear list, All layers are well visualised on my query map. But the piece of map shown on the query map is not at all correctly shown with the rectangle on the reference map. Where could be the reason? thanks! Minka -------------- next part -------------- An HTML attachment was scrubbed... URL: From minka.stoyanova at gmail.com Sat Sep 13 07:00:38 2008 From: minka.stoyanova at gmail.com (Minka Stoyanova) Date: Sat, 13 Sep 2008 17:00:38 +0300 Subject: [mapserver-users] Re: rectangle on reference map and shown query map don't coinside In-Reply-To: <66b0a28d0809130639w23dd76dfy8218a89ef3d4102a@mail.gmail.com> References: <66b0a28d0809130639w23dd76dfy8218a89ef3d4102a@mail.gmail.com> Message-ID: <66b0a28d0809130700q10348ddub7373218fa4ab999@mail.gmail.com> Don't bother - I've found the unswer. As I supposed the reason is in the EXTENT parameters. Luckily we have a tool like ogrinfo. In the xml file of a layer I had 117565.994059 629900.812795 4566280.510742 4904916.677351 But the ogrinfo on the same shapefile gave: Extent: (217768.750667, 4598985.999868) - (509640.935799, 4743932.000236) which, as you can see, is quite different. And obviously the second was true for the tif extent of the tif image. I still don't know why I had different extents in the files of the same layer, but I had not produces these files, so I stop guessing. Bye, Minka On Sat, Sep 13, 2008 at 4:39 PM, Minka Stoyanova wrote: > Dear list, > > All layers are well visualised on my query map. But the piece of map shown > on the query map is not at all correctly shown with the rectangle on the > reference map. Where could be the reason? > > thanks! > Minka > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chomie at gmail.com Sat Sep 13 07:15:08 2008 From: chomie at gmail.com (Chris Holmes) Date: Sat, 13 Sep 2008 10:15:08 -0400 Subject: [mapserver-users] MapServer and Microsoft VirtualEarth In-Reply-To: <75b4b93e0809120017i224cc3e0i7c0f38ec397c22a6@mail.gmail.com> References: <48CA166C.3030605@sis-ter.it> <75b4b93e0809120017i224cc3e0i7c0f38ec397c22a6@mail.gmail.com> Message-ID: And if you're stuck with using Virtual Earth as a client, instead of the preferred route of using OpenLayers to pull tiles from Virtual Earth, there's recent work to make it easier to get tiles from VE or GMaps direct from MapServer, see http://mapserver.gis.umn.edu/development/rfc/ms-rfc-43 If your data is static, you can also stick GeoWebCache or TileCache in front of MapServer, which will cache it and speed it up response times even more. See http://geowebcache.org/trac/wiki/virtual_earth and http://openlayers.org/pipermail/tilecache/2008-February/000815.html (there may be better ve docs for TileCache, I don't know it that well) Chris On Fri, Sep 12, 2008 at 3:17 AM, Umberto Nicoletti < umberto.nicoletti at gmail.com> wrote: > Yes it is possible though not directly using mapserver, but using > OpenLayers. > > Umberto > > On Fri, Sep 12, 2008 at 9:12 AM, Carlo Pelliconi > wrote: > > Hi all. > > Is it possible and, if yes, is there any documentation about > visualization > > of GIS analysis, performed by MapServer, in VirtualEarth? > > Thank you very much. > > Regards, Carlo > > > > -- > > ing. Carlo Pelliconi > > c.pelliconi at sis-ter.it > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From elshayal55 at yahoo.com Sat Sep 13 12:03:32 2008 From: elshayal55 at yahoo.com (Mohamed Elshayal) Date: Sat, 13 Sep 2008 12:03:32 -0700 (PDT) Subject: [mapserver-users] Download Maps from Google Earth Message-ID: <45942.87145.qm@web57413.mail.re1.yahoo.com> Download Maps from Google Earth Trace & save GPS route View and Rectify Raster Images gif, jpg, bmp Make and Edit shape files ?by Elshayal Smart GIS Map Editor 3.6.1 http://www.smartwebonline.com/ ?????? or in Direct Download http://www.cadmagazine.com/downloads/download.php?id=143 Thank you and best regards Mohamed Elshayal The First Arabian GIS Software http://www.smartwebonline.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From rainer at kalliany.at Sat Sep 13 16:24:52 2008 From: rainer at kalliany.at (Rainer Kalliany) Date: Sun, 14 Sep 2008 01:24:52 +0200 Subject: [mapserver-users] How to improve raster imagery display ? Message-ID: <48CC4BC4.40409@kalliany.at> Dear all, Yet for some months, my wife (who is the far more experienced programmer, and me (rather responsible for collecting/re-formatting/providing data) are developing a MapServer-based webGIS. Your community already has helped us several times a lot with your experience, and we are most grateful for that great support. Now, with our project almost finished, the so far pretty poor performance in displaying raster images (aerial orthophotos at a ground resolution of 0.25 metres) is becoming a critical issue. In particular when several users want to work at the same time, what happened last week :-( So far we had our orthophotos organized in a seamless grid of ECW-images, 10000 by 10000 pixel each (corresponding to 2500 by 2500 metres on ground). From that dataset our MapServer produces the "orthophoto" layer on demand, at scales of 1 by 1000, 2000, 5000 or 10000. With the standard settings of 72 dpI, that renders pixels of 0.353, 0.706, 1.764 or 3.528 metres. I am well aware that at least for the 10000 scale I should introduce a layer with reduced resolution. I already have prepared such a dataset. But our main concern are the scales 2000 and 1000, where the displaying process is producing many dozens of tiles, each 256 x 256 pixel .png-files. Along with the other layers (where the vector-data also are displayed by rasterized tiles which at least are much smaller), the composition of one screen sometimes takes up to 3 minutes ! NOW MY IDEA is to produce all those .PNGs (with their weird directory structure and naming, like \t-86016\l3072\t-84992l4352.png, which how- ever I already have understood) in advance and myself. For the conversion from ECW to PNG I might use GDAL, but without any resampling necessary. I also consider raising tilewidth/tileheight from the standard value 256 to 512 or even 1024 pixels. Now my question is, if that is a good idea or not. If you disagree with me: Do you have some alternative proposal ? If you think my planned approach basically is a good one, do you have any supporting advices, on issues I possibly did not consider ? THis is becoming a dcisive isuue for the success of our whole project, and therefore we will be most grateful for any hint ! With kind regards, Rainer & Susanne Kalliany 2008-09-13, 23:25 UTC -- DI. Rainer Kalliany - rainer at kalliany.at TeFiS - www.tefis.at Technische und forstliche Informationssysteme (Forstliche Software, GIS) KALLIANY - www.kalliany.at Ingenieurb?ro f?r Vermessungswesen (Photogrammetrie, Fernerkundung, GPS) Mobiltelephon: +43 664 1811098 Telephon: +43 316 931746-0, Fax: -15 A-8010 Graz, Schillerstrasse 58 A-1040 Wien, Schaumburgergasse 11/13 AUSTRIA From pcreso at pcreso.com Sat Sep 13 17:13:15 2008 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Sat, 13 Sep 2008 17:13:15 -0700 (PDT) Subject: [mapserver-users] How to improve raster imagery display ? In-Reply-To: <48CC4BC4.40409@kalliany.at> Message-ID: <5971.7993.qm@web33204.mail.mud.yahoo.com> Hi Rainer, Firstly, are you using FastCGI? If not, implementing this may help. I assume you have indexes to all the raster images. I'd also consider an architectural approach, where you abstract the raster data to a custom built system & access this via WMS. We have improved performance of such systems by having mapfiles access data from PostGIS databases on disparate servers rather than one congested system. Similarly, for rasters, you may also be able to use hardware rather than software to address your performance issues by splitting your raster files up between servers, effectively a further level of tiling. With caching (as below), multiple users hitting the same region should generally hit the cache, and users hitting multiple regions will have their load spread across different servers. Look at http://geowebcache.org/ While it possibly integrates better with GeoServer than mapserver, it will supposedly work with any WMS server. Given the cheap price of hardware & memory/cpu performance these days, adding a couple of multi-core boxes with a few GB of memory & a Tb drive or two each isn't a huge outlay, & Gb LAN is also cheap. I guess when your programming skills are as bad as mine, you look at other solutions first :-) I'm interested in hearing about your project, we are in the process of accumulating around 11Tb of aerial imagery & will be looking at ways to provide access to this. Cheers, Brent Wood --- On Sun, 9/14/08, Rainer Kalliany wrote: > From: Rainer Kalliany > Subject: [mapserver-users] How to improve raster imagery display ? > To: mapserver-users at lists.osgeo.org > Date: Sunday, September 14, 2008, 11:24 AM > Dear all, > > Yet for some months, my wife (who is the far more > experienced programmer, > and me (rather responsible for > collecting/re-formatting/providing data) > are developing a MapServer-based webGIS. Your community > already has > helped us several times a lot with your experience, and we > are most > grateful for that great support. > > Now, with our project almost finished, the so far pretty > poor performance > in displaying raster images (aerial orthophotos at a ground > resolution of > 0.25 metres) is becoming a critical issue. In particular > when several > users want to work at the same time, what happened last > week :-( > > So far we had our orthophotos organized in a seamless grid > of ECW-images, > 10000 by 10000 pixel each (corresponding to 2500 by 2500 > metres on ground). > > From that dataset our MapServer produces the > "orthophoto" layer on demand, > at scales of 1 by 1000, 2000, 5000 or 10000. With the > standard settings > of 72 dpI, that renders pixels of 0.353, 0.706, 1.764 or > 3.528 metres. > > I am well aware that at least for the 10000 scale I should > introduce > a layer with reduced resolution. I already have prepared > such a dataset. > > But our main concern are the scales 2000 and 1000, where > the displaying > process is producing many dozens of tiles, each 256 x 256 > pixel .png-files. > Along with the other layers (where the vector-data also are > displayed by > rasterized tiles which at least are much smaller), the > composition of one > screen sometimes takes up to 3 minutes ! > > NOW MY IDEA is to produce all those .PNGs (with their weird > directory > structure and naming, like > \t-86016\l3072\t-84992l4352.png, which how- > ever I already have understood) in advance and myself. For > the conversion > from ECW to PNG I might use GDAL, but without any > resampling necessary. > > I also consider raising tilewidth/tileheight from the > standard value 256 > to 512 or even 1024 pixels. > > Now my question is, if that is a good idea or not. > > If you disagree with me: Do you have some alternative > proposal ? > > If you think my planned approach basically is a good one, > do you have > any supporting advices, on issues I possibly did not > consider ? > > THis is becoming a dcisive isuue for the success of our > whole project, > and therefore we will be most grateful for any hint ! > > With kind regards, > > Rainer & Susanne Kalliany > > 2008-09-13, 23:25 UTC > -- > DI. Rainer Kalliany - rainer at kalliany.at > > TeFiS - www.tefis.at > Technische und forstliche Informationssysteme (Forstliche > Software, GIS) > KALLIANY - www.kalliany.at > Ingenieurb?ro f?r Vermessungswesen (Photogrammetrie, > Fernerkundung, GPS) > > Mobiltelephon: +43 664 1811098 > Telephon: +43 316 931746-0, Fax: -15 > > A-8010 Graz, Schillerstrasse 58 > A-1040 Wien, Schaumburgergasse 11/13 > AUSTRIA > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From ed at mcnierney.com Sat Sep 13 17:34:43 2008 From: ed at mcnierney.com (Ed McNierney) Date: Sat, 13 Sep 2008 20:34:43 -0400 Subject: [mapserver-users] How to improve raster imagery display ? In-Reply-To: <5971.7993.qm@web33204.mail.mud.yahoo.com> Message-ID: Folks - I would suggest searching the mailing list archives for the many posts mentioning "McNierney", or "TopoZone" or "raster" or all three, as I've posted at length and repeatedly on this sort of topic before. Others have done so as well - I just remember my own writings better . I successfully served over 50 TB of raster imagery to relatively heavy user loads with MapServer, and commented frequently on the approach I used. The most important point is to preprocess as much as possible. In this case that means (a) avoiding resampling by storing the data at the permitted output resolutions, and (b) storing the data in an uncompressed simple raster format. PNG is an option, as is TIFF. If you need 24-bit data you may want to consider tiled TIFFs using JPEG compression as a compromise (again, search the archives for this topic, especially comments by Frank Warmerdam). - Ed Ed McNierney 205 Indian Hill Road Groton, MA 01450 ed at mcnierney.com +1 (978) 761-0049 On 9/13/08 8:13 PM, "pcreso at pcreso.com" wrote: Hi Rainer, Firstly, are you using FastCGI? If not, implementing this may help. I assume you have indexes to all the raster images. I'd also consider an architectural approach, where you abstract the raster data to a custom built system & access this via WMS. We have improved performance of such systems by having mapfiles access data from PostGIS databases on disparate servers rather than one congested system. Similarly, for rasters, you may also be able to use hardware rather than software to address your performance issues by splitting your raster files up between servers, effectively a further level of tiling. With caching (as below), multiple users hitting the same region should generally hit the cache, and users hitting multiple regions will have their load spread across different servers. Look at http://geowebcache.org/ While it possibly integrates better with GeoServer than mapserver, it will supposedly work with any WMS server. Given the cheap price of hardware & memory/cpu performance these days, adding a couple of multi-core boxes with a few GB of memory & a Tb drive or two each isn't a huge outlay, & Gb LAN is also cheap. I guess when your programming skills are as bad as mine, you look at other solutions first :-) I'm interested in hearing about your project, we are in the process of accumulating around 11Tb of aerial imagery & will be looking at ways to provide access to this. Cheers, Brent Wood --- On Sun, 9/14/08, Rainer Kalliany wrote: > From: Rainer Kalliany > Subject: [mapserver-users] How to improve raster imagery display ? > To: mapserver-users at lists.osgeo.org > Date: Sunday, September 14, 2008, 11:24 AM > Dear all, > > Yet for some months, my wife (who is the far more > experienced programmer, > and me (rather responsible for > collecting/re-formatting/providing data) > are developing a MapServer-based webGIS. Your community > already has > helped us several times a lot with your experience, and we > are most > grateful for that great support. > > Now, with our project almost finished, the so far pretty > poor performance > in displaying raster images (aerial orthophotos at a ground > resolution of > 0.25 metres) is becoming a critical issue. In particular > when several > users want to work at the same time, what happened last > week :-( > > So far we had our orthophotos organized in a seamless grid > of ECW-images, > 10000 by 10000 pixel each (corresponding to 2500 by 2500 > metres on ground). > > From that dataset our MapServer produces the > "orthophoto" layer on demand, > at scales of 1 by 1000, 2000, 5000 or 10000. With the > standard settings > of 72 dpI, that renders pixels of 0.353, 0.706, 1.764 or > 3.528 metres. > > I am well aware that at least for the 10000 scale I should > introduce > a layer with reduced resolution. I already have prepared > such a dataset. > > But our main concern are the scales 2000 and 1000, where > the displaying > process is producing many dozens of tiles, each 256 x 256 > pixel .png-files. > Along with the other layers (where the vector-data also are > displayed by > rasterized tiles which at least are much smaller), the > composition of one > screen sometimes takes up to 3 minutes ! > > NOW MY IDEA is to produce all those .PNGs (with their weird > directory > structure and naming, like > \t-86016\l3072\t-84992l4352.png, which how- > ever I already have understood) in advance and myself. For > the conversion > from ECW to PNG I might use GDAL, but without any > resampling necessary. > > I also consider raising tilewidth/tileheight from the > standard value 256 > to 512 or even 1024 pixels. > > Now my question is, if that is a good idea or not. > > If you disagree with me: Do you have some alternative > proposal ? > > If you think my planned approach basically is a good one, > do you have > any supporting advices, on issues I possibly did not > consider ? > > THis is becoming a dcisive isuue for the success of our > whole project, > and therefore we will be most grateful for any hint ! > > With kind regards, > > Rainer & Susanne Kalliany > > 2008-09-13, 23:25 UTC > -- > DI. Rainer Kalliany - rainer at kalliany.at > > TeFiS - www.tefis.at > Technische und forstliche Informationssysteme (Forstliche > Software, GIS) > KALLIANY - www.kalliany.at > Ingenieurb?ro f?r Vermessungswesen (Photogrammetrie, > Fernerkundung, GPS) > > Mobiltelephon: +43 664 1811098 > Telephon: +43 316 931746-0, Fax: -15 > > A-8010 Graz, Schillerstrasse 58 > A-1040 Wien, Schaumburgergasse 11/13 > AUSTRIA > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at mcnierney.com Sat Sep 13 17:44:38 2008 From: ed at mcnierney.com (Ed McNierney) Date: Sat, 13 Sep 2008 20:44:38 -0400 Subject: [mapserver-users] TopoZone, MapServer, and me Message-ID: Folks - Old-timers may have noticed that I've been relatively quiet on this list for the last few months. Newer folks might only have seen the improvement . I am about to sign off - at least temporarily - as I will no longer be an active MapServer user or developer. My TopoZone business was acquired by Demand Media, the parent company of trails.com, in June, 2007. I worked with trails.com to integrate our technology into theirs (they were already using a very similar MapServer-based system) and completed that work last April. As of April, 2008 we closed down the former TopoZone servers and office. It was great to work with the trails.com team, but it made little sense to keep a teeny satellite team out in Massachusetts (they're based in Seattle). I took a little time off to do a few things on my to-do list. As of last Monday I've started a new position as VP of Software Development for the One Laptop Per Child Foundation in Cambridge, MA, building low-cost laptops for children around the world with lots of cool applications on them. This is keeping me pretty busy with a rather massive open source development project with a team of great people scattered around the globe. I'll be busy doing that work and won't really have the time to help out here (until I start needing more maps...) Thanks to all the present and former members of this list who've helped me a lot with MapServer (and GDAL, and PROJ, etc.) and to those of you I've actually met in person at our conferences both pre- and post-OSGeo. If I can be of any assistance to any of you, please let me know - thanks! - Ed Ed McNierney 205 Indian Hill Road Groton, MA 01450 ed at mcnierney.com +1 (978) 761-0049 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Sat Sep 13 18:19:32 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Sat, 13 Sep 2008 20:19:32 -0500 Subject: [mapserver-users] TopoZone, MapServer, and me Message-ID: <48CC20540200008F0001B747@co5.dnr.state.mn.us> Congrats Ed, sounds like you've moved on to an equally interesting topic from TopoZone. Glad to hear TopoZone lives on in some shape or form. I'm sure I speak for all community members when I say thanks for all your help over the years. We'll have to find a new performance, data optimization, projection and raster guru. ;-) I hope you'll be back since you still owe me real graticule support... Best of luck! Steve >>> Ed McNierney 09/13/08 7:45 PM >>> Folks - Old-timers may have noticed that I've been relatively quiet on this list for the last few months. Newer folks might only have seen the improvement . I am about to sign off - at least temporarily - as I will no longer be an active MapServer user or developer. My TopoZone business was acquired by Demand Media, the parent company of trails.com, in June, 2007. I worked with trails.com to integrate our technology into theirs (they were already using a very similar MapServer-based system) and completed that work last April. As of April, 2008 we closed down the former TopoZone servers and office. It was great to work with the trails.com team, but it made little sense to keep a teeny satellite team out in Massachusetts (they're based in Seattle). I took a little time off to do a few things on my to-do list. As of last Monday I've started a new position as VP of Software Development for the One Laptop Per Child Foundation in Cambridge, MA, building low-cost laptops for children around the world with lots of cool applications on them. This is keeping me pretty busy with a rather massive open source development project with a team of great people scattered around the globe. I'll be busy doing that work and won't really have the time to help out here (until I start needing more maps...) Thanks to all the present and former members of this list who've helped me a lot with MapServer (and GDAL, and PROJ, etc.) and to those of you I've actually met in person at our conferences both pre- and post-OSGeo. If I can be of any assistance to any of you, please let me know - thanks! - Ed Ed McNierney 205 Indian Hill Road Groton, MA 01450 ed at mcnierney.com +1 (978) 761-0049 From ed at mcnierney.com Sat Sep 13 18:33:27 2008 From: ed at mcnierney.com (Ed McNierney) Date: Sat, 13 Sep 2008 21:33:27 -0400 Subject: [mapserver-users] TopoZone, MapServer, and me In-Reply-To: <48CC20540200008F0001B747@co5.dnr.state.mn.us> Message-ID: Steve - I think you and Brent will never let me REALLY retire until that graticule (and title blocks, and neatlines, etc., etc.) are done! - Ed On 9/13/08 9:19 PM, "Steve Lime" wrote: Congrats Ed, sounds like you've moved on to an equally interesting topic from TopoZone. Glad to hear TopoZone lives on in some shape or form. I'm sure I speak for all community members when I say thanks for all your help over the years. We'll have to find a new performance, data optimization, projection and raster guru. ;-) I hope you'll be back since you still owe me real graticule support... Best of luck! Steve >>> Ed McNierney 09/13/08 7:45 PM >>> Folks - Old-timers may have noticed that I've been relatively quiet on this list for the last few months. Newer folks might only have seen the improvement . I am about to sign off - at least temporarily - as I will no longer be an active MapServer user or developer. My TopoZone business was acquired by Demand Media, the parent company of trails.com, in June, 2007. I worked with trails.com to integrate our technology into theirs (they were already using a very similar MapServer-based system) and completed that work last April. As of April, 2008 we closed down the former TopoZone servers and office. It was great to work with the trails.com team, but it made little sense to keep a teeny satellite team out in Massachusetts (they're based in Seattle). I took a little time off to do a few things on my to-do list. As of last Monday I've started a new position as VP of Software Development for the One Laptop Per Child Foundation in Cambridge, MA, building low-cost laptops for children around the world with lots of cool applications on them. This is keeping me pretty busy with a rather massive open source development project with a team of great people scattered around the globe. I'll be busy doing that work and won't really have the time to help out here (until I start needing more maps...) Thanks to all the present and former members of this list who've helped me a lot with MapServer (and GDAL, and PROJ, etc.) and to those of you I've actually met in person at our conferences both pre- and post-OSGeo. If I can be of any assistance to any of you, please let me know - thanks! - Ed Ed McNierney 205 Indian Hill Road Groton, MA 01450 ed at mcnierney.com +1 (978) 761-0049 -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Sun Sep 14 22:04:37 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Mon, 15 Sep 2008 10:34:37 +0530 Subject: [MAPSERVER-USERS] ms sql 2008 spatial - still problems??? In-Reply-To: <19456310.post@talk.nabble.com> References: <19454300.post@talk.nabble.com> <003201c914d5$01d4e990$057ebcb0$@com> <19456310.post@talk.nabble.com> Message-ID: <003901c916f0$8f1ca0f0$ad55e2d0$@com> Hi, I have code for Reading from postgre and writing into MsSql.If you want I will give you that.That is working great for me.What I feel is Postgre is better than Ms Sql. Have a look below urls http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg00983.html http://www.bostongis.com/PrinterFriendly.aspx?content_name=sqlserver2008_postgis_mysql_compare let me know .. Thanks and Regards Venkat. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of BrainDrain Sent: Friday, September 12, 2008 7:22 PM To: mapserver-users at lists.osgeo.org Subject: RE: [MAPSERVER-USERS] ms sql 2008 spatial - still problems??? To import data into mssql 2008 I use FME 2008 (Safe Software) Which tool did you use? Can you share your dll? My layer config is similar to yours. I tried to delete 'using bla bla' but without effect. I tried to test with&without creating spatial index. Venkatrao wrote: > > Hi, > > How you are importing your spatial data? Which tool you are using to > import spatial data? > > Here is what I am using ,let me know if you are getting problem by using > MsSQL 2008. > CONNECTIONTYPE PLUGIN > PLUGIN > "D:\home\Vtammineni\Data\sandbox\gis\RoulacGis\plugins\msplugin_mssql2008.dll" > #plug in > CONNECTION > "server=192.168.1.79;uid=sa;pwd=asp123;database=testspatial;Integrated > Security=false" # data base server connection > DATA "geom from rgp_gis_worldcountries" # table > > Thanks and regards, > Venkat. > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of BrainDrain > Sent: Friday, September 12, 2008 5:24 PM > To: mapserver-users at lists.osgeo.org > Subject: [MAPSERVER-USERS] ms sql 2008 spatial - still problems??? > > > I tried to use ms sql 2008 layer with ms4w 2.2.9 > my steps: > downloading mapdotnet & extracting msplugin_mssql2008.dll...done > importing data into mssql2008 using geometry data type (with FME) ...done > creating layer def: > ... > TYPE POLYGON > CONNECTIONTYPE PLUGIN > PLUGIN "c:\ms4w\app\WEMSite\Bin\msplugin_mssql2008.dll" > CONNECTION "server=localhost;uid=...;pwd=...;database=geodb;Integrated > Security=false" > DATA "GEOM from dbo.Construct USING UNIQUE id USING SRID=0" > ... > done > and then exceptions: > 1) At server (asp.net) side on layer.open > "msMSSQL2008LayerGetItems(): Query error. msMSSQL2008LayerGetItems: tried > to > find the geometry column in the results from the database, but couldnt > find > it. Is it miss-capitialized? 'GEOM'" > googling - doesn't help, adding geometry_columns table (as it is in > postgis > db) and populating it - doesn't help, looking up in mapmssql2008.c - > doesn't > help, using sql profiler to catch what plugin requests - doesn't help > ((((((( > 2) Ok: excluding layer.open() from code and waiting just for cgi response: > Error executing MSSQL2008 SQL statement: SELECT > GEOM.STAsBinary(),convert(varchar(20), id) from dbo.Construct WHERE > GEOM.STIntersects(Geometry::STGeomFromText('POLYGON((-4850978.88931604 > -7029571.83269322,-4800721.99088196 -7029571.83269322,-4800721.99088196 > -6979314.93425899,-4850978.88931604 -6979314.93425899,-4850978.88931604 > -7029571.83269322))',0)) = 1 -[Microsoft][ODBC SQL Server Driver][SQL > Server]A .NET Framework error occurred during execution of user-defined > routine or aggregate "geometry": System.ArgumentException: 24144: This > operation cannot be completed because the instance is not valid. Use > MakeValid to convert the instance to a valid instance. Note that MakeValid > may cause the points of a geometry instance to shift slightly. > System.ArgumentException: ? > Microsoft.SqlServer.Types.SqlGeometry.ThrowIfInvalid() ? > Microsoft.SqlServer.Types.SqlGeometry.STIntersects(SqlGeometry other) . > Ok: executing "delete from dbo.Construct where GEOM.STIsValid()<>1" fixes > the 2nd problem > but what about 1st??? without solving this I'll not be able to perform > queries. > > > > -- > View this message in context: > http://www.nabble.com/ms-sql-2008-spatial---still-problems----tp19454300p19454300.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/ms-sql-2008-spatial---still-problems----tp19454300p19456310.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From vtammineni at roulacglobal.com Sun Sep 14 22:31:11 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Mon, 15 Sep 2008 11:01:11 +0530 Subject: [mapserver-users] rectangle on reference map and shown query map don't coinside In-Reply-To: <66b0a28d0809130639w23dd76dfy8218a89ef3d4102a@mail.gmail.com> References: <66b0a28d0809130639w23dd76dfy8218a89ef3d4102a@mail.gmail.com> Message-ID: <003d01c916f4$44c089f0$ce419dd0$@com> Hi, Which platform your using ? If it is C# ,I can Help you. Thanks and Regards Venkat. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Minka Stoyanova Sent: Saturday, September 13, 2008 7:10 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] rectangle on reference map and shown query map don't coinside Dear list, All layers are well visualised on my query map. But the piece of map shown on the query map is not at all correctly shown with the rectangle on the reference map. Where could be the reason? thanks! Minka -------------- next part -------------- An HTML attachment was scrubbed... URL: From hfl at home.nl Mon Sep 15 03:36:51 2008 From: hfl at home.nl (Huub Fleuren) Date: Mon, 15 Sep 2008 12:36:51 +0200 Subject: [mapserver-users] OracleSpatial doumentation Message-ID: <48CE3AC3.9080903@home.nl> An HTML attachment was scrubbed... URL: From dzizes451 at gmail.com Mon Sep 15 05:05:40 2008 From: dzizes451 at gmail.com (dzizes) Date: Mon, 15 Sep 2008 05:05:40 -0700 (PDT) Subject: [MAPSERVER-USERS] Debian Oracle10g OCI Message-ID: <19491636.post@talk.nabble.com> Hi, I've installed mapserver on Debian (lenny distribution). I've managed to create mapfile based on shp data and successfully send a wms request to get a map. I seems that mapserver works fine. I've also installed oracle-ex and I can connect to my Oracle via sqlplus. However, when I request wms (to a map file pointing to Oracle10g) I receive the following: msDrawMap(): Image handling error. Failed to draw layer named 'test'. msOracleSpatialLayerOpen(): OracleSpatial error. OracleSpatial is not supported I've found that I need OCI installed and configured properly, but there is no clear tutorial. Please provide me a some step by step guide. Greets, Michal -- View this message in context: http://www.nabble.com/Debian-Oracle10g-OCI-tp19491636p19491636.html Sent from the Mapserver - User mailing list archive at Nabble.com. From umberto.nicoletti at gmail.com Mon Sep 15 05:45:48 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Mon, 15 Sep 2008 14:45:48 +0200 Subject: [MAPSERVER-USERS] Debian Oracle10g OCI In-Reply-To: <19491636.post@talk.nabble.com> References: <19491636.post@talk.nabble.com> Message-ID: <75b4b93e0809150545w167571f7t2ffff3528931b55b@mail.gmail.com> You have to recompile mapserver with the: --with-oraclespatial=[path to oracle home] option. That's all that is needed to enable oracle spatial support in mapserver. HTH, Umberto On Mon, Sep 15, 2008 at 2:05 PM, dzizes wrote: > > Hi, > > I've installed mapserver on Debian (lenny distribution). I've managed to > create mapfile based on shp data and successfully send a wms request to get > a map. I seems that mapserver works fine. > > I've also installed oracle-ex and I can connect to my Oracle via sqlplus. > However, when I request wms (to a map file pointing to Oracle10g) I receive > the following: > > msDrawMap(): Image handling error. Failed to draw layer named 'test'. > msOracleSpatialLayerOpen(): OracleSpatial error. OracleSpatial is not > supported > > I've found that I need OCI installed and configured properly, but there is > no clear tutorial. > Please provide me a some step by step guide. > > Greets, > Michal > > -- > View this message in context: http://www.nabble.com/Debian-Oracle10g-OCI-tp19491636p19491636.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From l.dardini at comune.prato.it Mon Sep 15 06:01:57 2008 From: l.dardini at comune.prato.it (Leandro Dardini) Date: Mon, 15 Sep 2008 15:01:57 +0200 Subject: R: [MAPSERVER-USERS] Debian Oracle10g OCI In-Reply-To: <75b4b93e0809150545w167571f7t2ffff3528931b55b@mail.gmail.com> References: <19491636.post@talk.nabble.com> <75b4b93e0809150545w167571f7t2ffff3528931b55b@mail.gmail.com> Message-ID: <6F861500A5092B4C8CD653DE20A4AA0D96AE0C@exchange3.comune.prato.local> I use something like this: ./configure -with-oraclespatial=/usr/lib/oracle/10.2.0.3/client64 -with-proj -with-wfsclient -with-wmsclient -with-gdal -with-ogr -without-tiff -without-pdf -with-threads -with-freetype make make shared I compile Oracle Spatial Support also for GDAL. Leandro > -----Messaggio originale----- > Da: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Per conto di > Umberto Nicoletti > Inviato: luned? 15 settembre 2008 14.46 > A: dzizes > Cc: mapserver-users at lists.osgeo.org > Oggetto: Re: [MAPSERVER-USERS] Debian Oracle10g OCI > > You have to recompile mapserver with the: > > --with-oraclespatial=[path to oracle home] > > option. That's all that is needed to enable oracle spatial > support in mapserver. > > HTH, > Umberto > > On Mon, Sep 15, 2008 at 2:05 PM, dzizes wrote: > > > > Hi, > > > > I've installed mapserver on Debian (lenny distribution). > I've managed > > to create mapfile based on shp data and successfully send a wms > > request to get a map. I seems that mapserver works fine. > > > > I've also installed oracle-ex and I can connect to my > Oracle via sqlplus. > > However, when I request wms (to a map file pointing to Oracle10g) I > > receive the following: > > > > msDrawMap(): Image handling error. Failed to draw layer > named 'test'. > > msOracleSpatialLayerOpen(): OracleSpatial error. > OracleSpatial is not > > supported > > > > I've found that I need OCI installed and configured properly, but > > there is no clear tutorial. > > Please provide me a some step by step guide. > > > > Greets, > > Michal > > > > -- > > View this message in context: > > http://www.nabble.com/Debian-Oracle10g-OCI-tp19491636p19491636.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From danlittle at yahoo.com Mon Sep 15 06:16:56 2008 From: danlittle at yahoo.com (Dan Little) Date: Mon, 15 Sep 2008 06:16:56 -0700 (PDT) Subject: [MAPSERVER-USERS] Debian Oracle10g OCI Message-ID: <484196.41437.qm@web51405.mail.re2.yahoo.com> Umberto is right, for Mapserver to connect to Oracle you need to specify that capability at compile time. But for you ge tthat far I think you need to make sure that some of the basics work. Also, if you cannot connect to Oracle via SQL*Plus (assuming the binary is installed) you have other problems including but not limited to: - needing to set the LD_LIBRARY_PATH to include all the libraries. This may also need to be done in Apache while running mapserver to access Oracle. - needing to configure your TNSNAMES file. - check firewall setting in order to make sure you can connect on 1521 (or whatever port you are using for Oracle). Generally, when running an Oracle layer, you want to try the following diagnostic steps: 1) Use SQL Developer to connect to the database (it has it's own drivers built in, so there's no software dependency issues). This will resolve whether or not the databas is working. 2) On the machine, try connecting with SQL Plus. This will determine whether or not you have your client configured correctly. Do not move on until this works. 3) Try and re-compile Mapserver with Oracle Spatial. At the end of the ./configure script there is an output screen, ensure that you see Oracle is turned on, otherwise scroll up in the screen and see what's missing. ----- Original Message ---- > From: Umberto Nicoletti > To: dzizes > Cc: mapserver-users at lists.osgeo.org > Sent: Monday, September 15, 2008 7:45:48 AM > Subject: Re: [MAPSERVER-USERS] Debian Oracle10g OCI > > You have to recompile mapserver with the: > > --with-oraclespatial=[path to oracle home] > > option. That's all that is needed to enable oracle spatial support in mapserver. > > HTH, > Umberto > > On Mon, Sep 15, 2008 at 2:05 PM, dzizes wrote: > > > > Hi, > > > > I've installed mapserver on Debian (lenny distribution). I've managed to > > create mapfile based on shp data and successfully send a wms request to get > > a map. I seems that mapserver works fine. > > > > I've also installed oracle-ex and I can connect to my Oracle via sqlplus. > > However, when I request wms (to a map file pointing to Oracle10g) I receive > > the following: > > > > msDrawMap(): Image handling error. Failed to draw layer named 'test'. > > msOracleSpatialLayerOpen(): OracleSpatial error. OracleSpatial is not > > supported > > > > I've found that I need OCI installed and configured properly, but there is > > no clear tutorial. > > Please provide me a some step by step guide. > > > > Greets, > > Michal > > > > -- > > View this message in context: > http://www.nabble.com/Debian-Oracle10g-OCI-tp19491636p19491636.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From dzizes451 at gmail.com Mon Sep 15 06:28:53 2008 From: dzizes451 at gmail.com (dzizes451 at gmail.com) Date: Mon, 15 Sep 2008 15:28:53 +0200 Subject: [MAPSERVER-USERS] Debian Oracle10g OCI In-Reply-To: <484196.41437.qm@web51405.mail.re2.yahoo.com> References: <484196.41437.qm@web51405.mail.re2.yahoo.com> Message-ID: Since I can establish connection to my Oracle via sqlplus I guess I need to do the last point from your list: 3) Try and re-compile Mapserver with Oracle Spatial. Is there a tutorial how to do that? Why mapserver is not compiled against Oracle Spatial from start (I think there is a lot of users using Oracle Spatial)? -- Micha? On Mon, Sep 15, 2008 at 3:16 PM, Dan Little wrote: > Umberto is right, for Mapserver to connect to Oracle you need to specify > that capability at compile time. But for you ge tthat far I think you need > to make sure that some of the basics work. > > Also, if you cannot connect to Oracle via SQL*Plus (assuming the binary is > installed) you have other problems including but not limited to: > - needing to set the LD_LIBRARY_PATH to include all the libraries. This > may also need to be done in Apache while running mapserver to access Oracle. > - needing to configure your TNSNAMES file. > - check firewall setting in order to make sure you can connect on 1521 (or > whatever port you are using for Oracle). > > Generally, when running an Oracle layer, you want to try the following > diagnostic steps: > 1) Use SQL Developer to connect to the database (it has it's own drivers > built in, so there's no software dependency issues). This will resolve > whether or not the databas is working. > 2) On the machine, try connecting with SQL Plus. This will determine > whether or not you have your client configured correctly. Do not move on > until this works. > 3) Try and re-compile Mapserver with Oracle Spatial. At the end of the > ./configure script there is an output screen, ensure that you see Oracle is > turned on, otherwise scroll up in the screen and see what's missing. > > > > ----- Original Message ---- > > From: Umberto Nicoletti > > To: dzizes > > Cc: mapserver-users at lists.osgeo.org > > Sent: Monday, September 15, 2008 7:45:48 AM > > Subject: Re: [MAPSERVER-USERS] Debian Oracle10g OCI > > > > You have to recompile mapserver with the: > > > > --with-oraclespatial=[path to oracle home] > > > > option. That's all that is needed to enable oracle spatial support in > mapserver. > > > > HTH, > > Umberto > > > > On Mon, Sep 15, 2008 at 2:05 PM, dzizes wrote: > > > > > > Hi, > > > > > > I've installed mapserver on Debian (lenny distribution). I've managed > to > > > create mapfile based on shp data and successfully send a wms request to > get > > > a map. I seems that mapserver works fine. > > > > > > I've also installed oracle-ex and I can connect to my Oracle via > sqlplus. > > > However, when I request wms (to a map file pointing to Oracle10g) I > receive > > > the following: > > > > > > msDrawMap(): Image handling error. Failed to draw layer named 'test'. > > > msOracleSpatialLayerOpen(): OracleSpatial error. OracleSpatial is not > > > supported > > > > > > I've found that I need OCI installed and configured properly, but there > is > > > no clear tutorial. > > > Please provide me a some step by step guide. > > > > > > Greets, > > > Michal > > > > > > -- > > > View this message in context: > > http://www.nabble.com/Debian-Oracle10g-OCI-tp19491636p19491636.html > > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Mon Sep 15 06:43:19 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 15 Sep 2008 09:43:19 -0400 Subject: [mapserver-users] TopoZone, MapServer, and me In-Reply-To: <48CC20540200008F0001B747@co5.dnr.state.mn.us> References: <48CC20540200008F0001B747@co5.dnr.state.mn.us> Message-ID: <48CE6677.8090002@mapgears.com> Steve Lime wrote: > We'll have to find a new performance, data optimization, > projection and raster guru. ;-) > You forgot to write that all this was on Windows servers... making it even harder to find a replacement for Ed's advice and Topozone as a showcase for large MapServer/Windows deployments. Best of luck in your new job Ed... that will be an interesting one for sure! Daniel -- Daniel Morissette http://www.mapgears.com/ From paulborodaev at gmail.com Mon Sep 15 07:07:43 2008 From: paulborodaev at gmail.com (BrainDrain) Date: Mon, 15 Sep 2008 07:07:43 -0700 (PDT) Subject: [MAPSERVER-USERS] ms sql 2008 spatial - still problems??? In-Reply-To: <003901c916f0$8f1ca0f0$ad55e2d0$@com> References: <19454300.post@talk.nabble.com> <003201c914d5$01d4e990$057ebcb0$@com> <19456310.post@talk.nabble.com> <003901c916f0$8f1ca0f0$ad55e2d0$@com> Message-ID: <19493660.post@talk.nabble.com> >>If you want I will give you that It will be helpful You are using dll from mapdotnet server? I'm looking for - some perfomance comparison (ms sql 2008 spatial vs postgis); - suggestions, how to build optimal spatial index in ms sql 2008; Venkatrao wrote: > > Hi, > > I have code for Reading from postgre and writing into MsSql.If you want > I will give you that.That is working great for me.What I feel is Postgre > is better than Ms Sql. > > Have a look below urls > > http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg00983.html > > http://www.bostongis.com/PrinterFriendly.aspx?content_name=sqlserver2008_postgis_mysql_compare > > > let me know .. > > Thanks and Regards > Venkat. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of BrainDrain > Sent: Friday, September 12, 2008 7:22 PM > To: mapserver-users at lists.osgeo.org > Subject: RE: [MAPSERVER-USERS] ms sql 2008 spatial - still problems??? > > > To import data into mssql 2008 I use FME 2008 (Safe Software) > Which tool did you use? > Can you share your dll? > My layer config is similar to yours. I tried to delete 'using bla bla' but > without effect. I tried to test with&without creating spatial index. > > Venkatrao wrote: >> >> Hi, >> >> How you are importing your spatial data? Which tool you are using to >> import spatial data? >> >> Here is what I am using ,let me know if you are getting problem by using >> MsSQL 2008. >> CONNECTIONTYPE PLUGIN >> PLUGIN >> "D:\home\Vtammineni\Data\sandbox\gis\RoulacGis\plugins\msplugin_mssql2008.dll" >> #plug in >> CONNECTION >> "server=192.168.1.79;uid=sa;pwd=asp123;database=testspatial;Integrated >> Security=false" # data base server connection >> DATA "geom from rgp_gis_worldcountries" # table >> >> Thanks and regards, >> Venkat. >> >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of BrainDrain >> Sent: Friday, September 12, 2008 5:24 PM >> To: mapserver-users at lists.osgeo.org >> Subject: [MAPSERVER-USERS] ms sql 2008 spatial - still problems??? >> >> >> I tried to use ms sql 2008 layer with ms4w 2.2.9 >> my steps: >> downloading mapdotnet & extracting msplugin_mssql2008.dll...done >> importing data into mssql2008 using geometry data type (with FME) ...done >> creating layer def: >> ... >> TYPE POLYGON >> CONNECTIONTYPE PLUGIN >> PLUGIN "c:\ms4w\app\WEMSite\Bin\msplugin_mssql2008.dll" >> CONNECTION "server=localhost;uid=...;pwd=...;database=geodb;Integrated >> Security=false" >> DATA "GEOM from dbo.Construct USING UNIQUE id USING SRID=0" >> ... >> done >> and then exceptions: >> 1) At server (asp.net) side on layer.open >> "msMSSQL2008LayerGetItems(): Query error. msMSSQL2008LayerGetItems: tried >> to >> find the geometry column in the results from the database, but couldnt >> find >> it. Is it miss-capitialized? 'GEOM'" >> googling - doesn't help, adding geometry_columns table (as it is in >> postgis >> db) and populating it - doesn't help, looking up in mapmssql2008.c - >> doesn't >> help, using sql profiler to catch what plugin requests - doesn't help >> ((((((( >> 2) Ok: excluding layer.open() from code and waiting just for cgi >> response: >> Error executing MSSQL2008 SQL statement: SELECT >> GEOM.STAsBinary(),convert(varchar(20), id) from dbo.Construct WHERE >> GEOM.STIntersects(Geometry::STGeomFromText('POLYGON((-4850978.88931604 >> -7029571.83269322,-4800721.99088196 -7029571.83269322,-4800721.99088196 >> -6979314.93425899,-4850978.88931604 -6979314.93425899,-4850978.88931604 >> -7029571.83269322))',0)) = 1 -[Microsoft][ODBC SQL Server Driver][SQL >> Server]A .NET Framework error occurred during execution of user-defined >> routine or aggregate "geometry": System.ArgumentException: 24144: This >> operation cannot be completed because the instance is not valid. Use >> MakeValid to convert the instance to a valid instance. Note that >> MakeValid >> may cause the points of a geometry instance to shift slightly. >> System.ArgumentException: ? >> Microsoft.SqlServer.Types.SqlGeometry.ThrowIfInvalid() ? >> Microsoft.SqlServer.Types.SqlGeometry.STIntersects(SqlGeometry other) . >> Ok: executing "delete from dbo.Construct where GEOM.STIsValid()<>1" fixes >> the 2nd problem >> but what about 1st??? without solving this I'll not be able to perform >> queries. >> >> >> >> -- >> View this message in context: >> http://www.nabble.com/ms-sql-2008-spatial---still-problems----tp19454300p19454300.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > -- > View this message in context: > http://www.nabble.com/ms-sql-2008-spatial---still-problems----tp19454300p19456310.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/ms-sql-2008-spatial---still-problems----tp19454300p19493660.html Sent from the Mapserver - User mailing list archive at Nabble.com. From lee_keel at trimble.com Mon Sep 15 07:33:25 2008 From: lee_keel at trimble.com (Lee Keel) Date: Mon, 15 Sep 2008 10:33:25 -0400 Subject: [mapserver-users] Different color for each row and it's child Message-ID: <944DCD961F4CD649BCEBB52E3C929F6502707F91@usd-am-xch-01.am.trimblecorp.net> I had a client request something that sounds really cool, but I don't know how to do it (or if it is even possible in mapserver). First, my setup: I am running MS4W 2.6 on windows xp against postgis 8.2 database. I have table A that has anywhere from 4 to 35 rows. And table B which could have several hundred rows each relating back to one of the rows from table A. For Example: TableA ID Name 1 t 2 t2 3 t3 4 t4 TableB ID ta_id Value 1 1 something 2 1 something else 3 1 test 4 2 foo 5 2 bar 6 3 done Now my problem: The client would like to see all the rows rendered from tableA as different colors. These colors can be random, it doesn't matter. On top of this, they want to see all the associated rows in tableB as the same color as their parent from tableA. Can I add a column to tableA and use that as a value in the mapfile for the style? And if so, how? I would greatly appreciate any help that anyone can provide. Thanks in advance, Lee -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Mon Sep 15 07:50:55 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 15 Sep 2008 09:50:55 -0500 Subject: [mapserver-users] Different color for each row and it's child In-Reply-To: <944DCD961F4CD649BCEBB52E3C929F6502707F91@usd-am-xch-01.am.trimblecorp.net> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FC076@s-sp22.pca.state.mn.us> I would suggest creating a column in table A to store a color value and pre-populating it. You would want to store the RGB triplet (e.g. '255 0 0'). I assume that you could have some sort of a stored proc that gets triggered when a new record gets added. Using the new attribute binding in MapServer 5, you could then just set the feature color by specifying the column name in the style in your map file layer definition. Something like: STYLE COLOR [myColorColumn] OUTLINECOLOR 0 0 0 END As soon as someone kicks the MapServer site server and it restarts, I suggest looking at the map file reference document under style. Also, make sure that your color column is specified in the query in your data statement. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lee Keel Sent: Monday, September 15, 2008 9:33 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Different color for each row and it's child I had a client request something that sounds really cool, but I don't know how to do it (or if it is even possible in mapserver). First, my setup: I am running MS4W 2.6 on windows xp against postgis 8.2 database. I have table A that has anywhere from 4 to 35 rows. And table B which could have several hundred rows each relating back to one of the rows from table A. For Example: TableA ID Name 1 t 2 t2 3 t3 4 t4 TableB ID ta_id Value 1 1 something 2 1 something else 3 1 test 4 2 foo 5 2 bar 6 3 done Now my problem: The client would like to see all the rows rendered from tableA as different colors. These colors can be random, it doesn't matter. On top of this, they want to see all the associated rows in tableB as the same color as their parent from tableA. Can I add a column to tableA and use that as a value in the mapfile for the style? And if so, how? I would greatly appreciate any help that anyone can provide. Thanks in advance, Lee -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at agt.bme.hu Mon Sep 15 12:51:53 2008 From: siki at agt.bme.hu (Siki Zoltan) Date: Mon, 15 Sep 2008 18:51:53 -0100 (GMT+1) Subject: [mapserver-users] mapserver web site {Scanned} In-Reply-To: <48CE3AC3.9080903@home.nl> References: <48CE3AC3.9080903@home.nl> Message-ID: Hi, I can't connect to the mapserver web site (mapserver.gis.umn.edu) for two days. Is the server down or the site has been moved? Thanks Zoltan From hobu.inc at gmail.com Mon Sep 15 09:28:33 2008 From: hobu.inc at gmail.com (Howard Butler) Date: Mon, 15 Sep 2008 11:28:33 -0500 Subject: [mapserver-users] mapserver web site {Scanned} In-Reply-To: References: <48CE3AC3.9080903@home.nl> Message-ID: <58C163AA-3698-46F7-8635-C586471FAA85@gmail.com> Siki, Network issues. I think the machine is still up, but it is not reachable from the outside world. Working on it... Wayback or Google Cache as a stopgap for now. Howard On Sep 15, 2008, at 2:51 PM, Siki Zoltan wrote: > Hi, > > I can't connect to the mapserver web site (mapserver.gis.umn.edu) > for two days. > Is the server down or the site has been moved? > > Thanks > Zoltan > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woklist at kyngchaos.com Mon Sep 15 09:32:22 2008 From: woklist at kyngchaos.com (William Kyngesburye) Date: Mon, 15 Sep 2008 11:32:22 -0500 Subject: [mapserver-users] WMS loadparams weird behavior on Ubuntu Message-ID: <4B5B9B0C-EC81-4D82-A26C-551933F7C2EB@kyngchaos.com> I testing/debugging some WMS PHP on Ubuntu 8.04 that works on OSX. On OSX I have MapServer 5.0.0. Same on Ubuntu, from the repositories. When my PHP script gets to the loadparams() statement it immediately sends data back to the browser, in some unknown form (Firefox pops up the open in/save dialog). If I save it, it's 0 bytes. The PHP magic_quotes_gpc was on, so I turned it off, but that didn't help. The GET params appear to be properly escaped and the request has all the required parameters (I took the URL from the request OpenLayers was sending). (sorry if this has been asked before, but the mapserver site is not responding) ----- William Kyngesburye http://www.kyngchaos.com/ "This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?" - The Ruler of the Universe From hobu.inc at gmail.com Mon Sep 15 09:39:50 2008 From: hobu.inc at gmail.com (Howard Butler) Date: Mon, 15 Sep 2008 11:39:50 -0500 Subject: [mapserver-users] mapserver web site {Scanned} In-Reply-To: <58C163AA-3698-46F7-8635-C586471FAA85@gmail.com> References: <48CE3AC3.9080903@home.nl> <58C163AA-3698-46F7-8635-C586471FAA85@gmail.com> Message-ID: Appears that it is up again... Howard On Sep 15, 2008, at 11:28 AM, Howard Butler wrote: > Siki, > > Network issues. I think the machine is still up, but it is not > reachable from the outside world. > > Working on it... Wayback or Google Cache as a stopgap for now. > > Howard > > On Sep 15, 2008, at 2:51 PM, Siki Zoltan wrote: > >> Hi, >> >> I can't connect to the mapserver web site (mapserver.gis.umn.edu) >> for two days. >> Is the server down or the site has been moved? >> >> Thanks >> Zoltan >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at dnr.state.mn.us Mon Sep 15 10:18:43 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 15 Sep 2008 12:18:43 -0500 Subject: [mapserver-users] OracleSpatial doumentation In-Reply-To: <48CE3AC3.9080903@home.nl> References: <48CE3AC3.9080903@home.nl> Message-ID: <48CE52A3.5157.008F.0@dnr.state.mn.us> This thread should be turned into a documentation bug in Trac then. Huub, can you take care of that? http://trac.osgeo.org/mapserver Steve >>> Huub Fleuren 9/15/2008 5:36 AM >>> Hi List, I was looking for parameter syntax when using native Oracle support. I found in the documetation a PDF from 2004 or 5 telling all about FUNCTION and VERSION, but i couldn';t get it right and was very unhappy about it But then i looked in the source file (maporaclespatial.c) and found the follwing short notice ***************************************************************************** * * Using OracleSpatial: * - CONNECTIONTYPE oraclespatial * - CONNECTION 'username/password at database' * - DATA 'geometry_column FROM ' * or * DATA 'geometry_column FROM
[USING UNIQUE ' SRID #srid VERSION ]' * can be: * 'FILTER', 'RELATE', GEOPMRELATE' or 'NONE' * can be: * '8i', '9i' or '10g' * *
can be: * One database table name * or: * (SELECT stmt) * ***************************************************************************** * Notices above shall be included in all copies or portions of the software. * This piece is provided "AS IS", without warranties of any kind. Got it? *****************************************************************************/ Looks clear to me, and surprizingly it answered all my questions to satisfaction. So, please whoever manages that part now, start the extensive PDF help info with this. Regards, Huub p.s. i have a small extra: In * DATA 'geometry_column FROM
can or sometimes must be a select query in brackets e.g. SELECT geom FROM (select geom,id from geo_table) USING UNIQUE id SRID 123123 RELATE VERSION 10g From mikeflan at att.net Mon Sep 15 11:28:54 2008 From: mikeflan at att.net (Mike Flannigan) Date: Mon, 15 Sep 2008 12:28:54 -0600 Subject: [mapserver-users] How to improve raster imagery display ? In-Reply-To: <20080914003449.CD3F7E00B05@lists.osgeo.org> References: <20080914003449.CD3F7E00B05@lists.osgeo.org> Message-ID: <48CEA966.1030101@att.net> Good luck with your new assignment. You did a great job on TopoZone. A question for everybody on the list. When I go to the Archives at http://lists.osgeo.org/pipermail/mapserver-users/ and download the GZiped text file, I don't get good text even after converting from UNIX to DOS format. I get garbage like this: ??????|?????b!#?E????????(?J???Z`C?u???? >Folks - > >I would suggest searching the mailing list archives for the many posts mentioning "McNierney", or "TopoZone" or "raster" or all three, as I've posted at length and repeatedly on this sort of topic before. Others have done so as well - I just remember my own writings better . I successfully served over 50 TB of raster imagery to relatively heavy user loads with MapServer, and commented frequently on the approach I used. > >The most important point is to preprocess as much as possible. In this case that means (a) avoiding resampling by storing the data at the permitted output resolutions, and (b) storing the data in an uncompressed simple raster format. PNG is an option, as is TIFF. If you need 24-bit data you may want to consider tiled TIFFs using JPEG compression as a compromise (again, search the archives for this topic, especially comments by Frank Warmerdam). > > - Ed > >Ed McNierney >205 Indian Hill Road >Groton, MA 01450 >ed at mcnierney.com From bfraser at geoanalytic.com Mon Sep 15 10:55:04 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 15 Sep 2008 11:55:04 -0600 Subject: [mapserver-users] Ed's Rules for the Best Raster Performance Message-ID: <48CEA178.9010702@geoanalytic.com> In honor of Ed's imminent retirement from the Mapserver Support Group, I've put together "Ed's List for the Best Raster Performance": #1. Pyramid the data - use MAXSCALE and MINSCALE in the LAYER object. #2. Tile the data (and merge your upper levels of the pyramid for fewer files). - see the TILEINDEX object #3. Don't compress your data - avoid jpg, ecw, and mrsid formats. #4. Don't re-project your data on-the-fly. #5. Get the fastest disks you can afford. (Ed, feel free to edit...) Brent Fraser From bfraser at geoanalytic.com Mon Sep 15 10:30:43 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 15 Sep 2008 11:30:43 -0600 Subject: [mapserver-users] TopoZone, MapServer, and me In-Reply-To: References: Message-ID: <48CE9BC3.7080004@geoanalytic.com> Hey Ed, Now we're really gonna be behind schedule on that graticule improvement stuff... :) Many, many thanks for your years of support, and best wishes on your new venture (I expect the OLPC s/w will have awesome performance!). Brent Fraser Ed McNierney wrote: > Steve - > > I think you and Brent will never let me REALLY retire until that > graticule (and title blocks, and neatlines, etc., etc.) are done! > > - Ed > > > On 9/13/08 9:19 PM, "Steve Lime" wrote: > > Congrats Ed, sounds like you've moved on to an equally interesting > topic from TopoZone. Glad to hear > TopoZone lives on in some shape or form. I'm sure I speak for all > community members when I say > thanks for all your help over the years. We'll have to find a new > performance, data optimization, > projection and raster guru. ;-) > > I hope you'll be back since you still owe me real graticule > support... Best of luck! > > Steve > > > >> Ed McNierney 09/13/08 7:45 PM >>> > Folks - > > Old-timers may have noticed that I've been relatively quiet on this > list for the last few months. Newer folks might only have seen the > improvement . I am about to sign off - at least temporarily - as > I will no longer be an active MapServer user or developer. > > My TopoZone business was acquired by Demand Media, the parent > company of trails.com, in June, 2007. I worked with trails.com to > integrate our technology into theirs (they were already using a very > similar MapServer-based system) and completed that work last April. > As of April, 2008 we closed down the former TopoZone servers and > office. It was great to work with the trails.com team, but it made > little sense to keep a teeny satellite team out in Massachusetts > (they're based in Seattle). > > I took a little time off to do a few things on my to-do list. As of > last Monday I've started a new position as VP of Software > Development for the One Laptop Per Child Foundation in Cambridge, > MA, building low-cost laptops for children around the world with > lots of cool applications on them. This is keeping me pretty busy > with a rather massive open source development project with a team of > great people scattered around the globe. I'll be busy doing that > work and won't really have the time to help out here (until I start > needing more maps...) > > Thanks to all the present and former members of this list who've > helped me a lot with MapServer (and GDAL, and PROJ, etc.) and to > those of you I've actually met in person at our conferences both > pre- and post-OSGeo. If I can be of any assistance to any of you, > please let me know - thanks! > > - Ed > > Ed McNierney > 205 Indian Hill Road > Groton, MA 01450 > ed at mcnierney.com > +1 (978) 761-0049 > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Mon Sep 15 11:00:50 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 15 Sep 2008 14:00:50 -0400 Subject: [mapserver-users] Ed's Rules for the Best Raster Performance In-Reply-To: <48CEA178.9010702@geoanalytic.com> References: <48CEA178.9010702@geoanalytic.com> Message-ID: <48CEA2D2.1090807@gatewaygeomatics.com> my quick comments: - adding overviews with GDAL's 'gdaladdo' utility is very important - I find your use of the word "pyramid" confusing (this seems to be a word that Arc* users are familiar with but has no real meaning in the MapServer world...I guess I've been on the "good" side for too long ha) -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ Brent Fraser wrote: > In honor of Ed's imminent retirement from the Mapserver Support Group, > I've put together "Ed's List for the Best Raster Performance": > > > #1. Pyramid the data - use MAXSCALE and MINSCALE in the LAYER > object. > > #2. Tile the data (and merge your upper levels of the pyramid for fewer > files). > - see the TILEINDEX object > > #3. Don't compress your data > - avoid jpg, ecw, and mrsid formats. > > #4. Don't re-project your data on-the-fly. > > #5. Get the fastest disks you can afford. > > > (Ed, feel free to edit...) > > Brent Fraser From David.Fawcett at state.mn.us Mon Sep 15 11:09:49 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 15 Sep 2008 13:09:49 -0500 Subject: [mapserver-users] Ed's Rules for the Best Raster Performance In-Reply-To: <48CEA178.9010702@geoanalytic.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FC07D@s-sp22.pca.state.mn.us> Better yet, Add your comments to: http://mapserver.gis.umn.edu/docs/howto/optimizeraster and http://mapserver.gis.umn.edu/docs/howto/optimizevector I had always thought that all we needed to do to make these pages great was to grok the list for all of Ed's posts... David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent Fraser Sent: Monday, September 15, 2008 12:55 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Ed's Rules for the Best Raster Performance In honor of Ed's imminent retirement from the Mapserver Support Group, I've put together "Ed's List for the Best Raster Performance": #1. Pyramid the data - use MAXSCALE and MINSCALE in the LAYER object. #2. Tile the data (and merge your upper levels of the pyramid for fewer files). - see the TILEINDEX object #3. Don't compress your data - avoid jpg, ecw, and mrsid formats. #4. Don't re-project your data on-the-fly. #5. Get the fastest disks you can afford. (Ed, feel free to edit...) Brent Fraser _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From bfraser at geoanalytic.com Mon Sep 15 12:18:13 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 15 Sep 2008 13:18:13 -0600 Subject: [mapserver-users] Ed's Rules for the Best Raster Performance In-Reply-To: <48CEA2D2.1090807@gatewaygeomatics.com> References: <48CEA178.9010702@geoanalytic.com> <48CEA2D2.1090807@gatewaygeomatics.com> Message-ID: <48CEB4F5.9020809@geoanalytic.com> Jeff McKenna wrote: > my quick comments: > > - adding overviews with GDAL's 'gdaladdo' utility is very important In some cases. It depends on your data. As Ed once posted, it may be a good idea to switch to external overviews and merge some of the files to limit the number of file-opens Mapserver must do when the view is zoomed way out. > - I find your use of the word "pyramid" confusing (this seems to be a > word that Arc* users are familiar with but has no real meaning in the > MapServer world...I guess I've been on the "good" side for too long ha) > Not being an Arc* user I can't comment on it's origins. "Overview" is a good alternative, but it doesn't seem to convey the same "multi-levelness" as pyramids. For example to be able to display the Global Landsat Mosaic, I created seven levels of a pyramid (each an external overview of the higher-resolution below it). Hmmm, may be the plural of overview is pyramid... :) Hey Steve L., maybe we should have a "PYRAMID" Layer type, to replace a set of scale-sensitive TILEINDEX Layers (this would help my every-layer-is-exposed-in-WMS problem too: http://trac.osgeo.org/mapserver/ticket/300). Brent From jmckenna at gatewaygeomatics.com Mon Sep 15 12:27:15 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 15 Sep 2008 15:27:15 -0400 Subject: [mapserver-users] Ed's Rules for the Best Raster Performance In-Reply-To: <48CEB4F5.9020809@geoanalytic.com> References: <48CEA178.9010702@geoanalytic.com> <48CEA2D2.1090807@gatewaygeomatics.com> <48CEB4F5.9020809@geoanalytic.com> Message-ID: <48CEB713.3030101@gatewaygeomatics.com> Brent Fraser wrote: > > Jeff McKenna wrote: >> my quick comments: >> >> - adding overviews with GDAL's 'gdaladdo' utility is very important > > In some cases. It depends on your data. As Ed once posted, it may be a > good idea to switch to external overviews and merge some of the files to > limit the number of file-opens Mapserver must do when the view is zoomed > way out. I'm not here to argue with you, I am only pointing out the importance of the utility, which you did not mention in your notes. -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From Steve.Lime at dnr.state.mn.us Mon Sep 15 12:48:01 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 15 Sep 2008 14:48:01 -0500 Subject: [mapserver-users] Ed's Rules for the Best Raster Performance In-Reply-To: <48CEB4F5.9020809@geoanalytic.com> References: <48CEA178.9010702@geoanalytic.com> <48CEA2D2.1090807@gatewaygeomatics.com> <48CEB4F5.9020809@geoanalytic.com> Message-ID: <48CE75A1.5157.008F.0@dnr.state.mn.us> Interesting idea. This could take the form of a tile index with a couple of additonal columns, minscale and maxscale. Tiles would be grouped together by using common with those values. You could do interesting things like have high resolution data in some areas with other areas covered with lower resolution data over a broader range of scales. The whole layer could have it's own floor/ceiling but tiles would be handled individually. I wouldn't handle this as a new layer type, but rather by introducing parameters to indicate which columns to use, kinda like TILEITEM. Your pyramids would be defined in the tile index... I think the gdal tools would already support this nicely since they add to an index if it already exists so you could run those tools over mutliple datasets. Vector layers could also be handled this way, no reason you couldn't have 1 tile per scale range. Steve >>> On 9/15/2008 at 2:18 PM, in message <48CEB4F5.9020809 at geoanalytic.com>, Brent Fraser wrote: > Jeff McKenna wrote: >> my quick comments: >> >> - adding overviews with GDAL's 'gdaladdo' utility is very important > > In some cases. It depends on your data. As Ed once posted, it may be a > good idea to switch to external overviews and merge some of the files to > limit the number of file-opens Mapserver must do when the view is zoomed way > out. > >> - I find your use of the word "pyramid" confusing (this seems to be a >> word that Arc* users are familiar with but has no real meaning in the >> MapServer world...I guess I've been on the "good" side for too long ha) >> > Not being an Arc* user I can't comment on it's origins. "Overview" is a > good alternative, but it doesn't seem to convey the same "multi-levelness" as > pyramids. For example to be able to display the Global Landsat Mosaic, I > created seven levels of a pyramid (each an external overview of the > higher-resolution below it). > > Hmmm, may be the plural of overview is pyramid... :) > > Hey Steve L., maybe we should have a "PYRAMID" Layer type, to replace a set > of scale-sensitive TILEINDEX Layers (this would help my > every-layer-is-exposed-in-WMS problem too: > http://trac.osgeo.org/mapserver/ticket/300). > > Brent > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woklist at kyngchaos.com Mon Sep 15 12:55:42 2008 From: woklist at kyngchaos.com (William Kyngesburye) Date: Mon, 15 Sep 2008 14:55:42 -0500 Subject: [mapserver-users] WMS loadparams weird behavior on Ubuntu In-Reply-To: <4B5B9B0C-EC81-4D82-A26C-551933F7C2EB@kyngchaos.com> References: <4B5B9B0C-EC81-4D82-A26C-551933F7C2EB@kyngchaos.com> Message-ID: <4B5A630A-A08C-4403-9ED1-DB7FB6311E14@kyngchaos.com> Answering my own question, here's what I found: At first I had installed the php5 apache module, then quickly remembered CGI would be better and installed that. I thought I had uninstalled the php module, but I was mistaken. So all this time PHP was running as the Apache module. I got PHP CGI running and now the WMS request loadparams() works. Apparently WMS doesn't work on PHP as Apache module (my OSX system uses PHP CGI). Or maybe there is a way to make it work? (though I don't really care now that I have PHP CGI running) On Sep 15, 2008, at 11:32 AM, William Kyngesburye wrote: > I testing/debugging some WMS PHP on Ubuntu 8.04 that works on OSX. > > On OSX I have MapServer 5.0.0. Same on Ubuntu, from the repositories. > > When my PHP script gets to the loadparams() statement it immediately > sends data back to the browser, in some unknown form (Firefox pops > up the open in/save dialog). If I save it, it's 0 bytes. > > The PHP magic_quotes_gpc was on, so I turned it off, but that didn't > help. The GET params appear to be properly escaped and the request > has all the required parameters (I took the URL from the request > OpenLayers was sending). ----- William Kyngesburye http://www.kyngchaos.com/ First Pogril: Why is life like sticking your head in a bucket filled with hyena offal? Second Pogril: I don't know. Why IS life like sticking your head in a bucket filled with hyena offal? First Pogril: I don't know either. Wretched, isn't it? -HitchHiker's Guide to the Galaxy From crschmidt at metacarta.com Mon Sep 15 13:16:24 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Mon, 15 Sep 2008 16:16:24 -0400 Subject: [mapserver-users] How to improve raster imagery display ? In-Reply-To: <48CEA966.1030101@att.net> References: <20080914003449.CD3F7E00B05@lists.osgeo.org> <48CEA966.1030101@att.net> Message-ID: <20080915201623.GA11304@metacarta.com> On Mon, Sep 15, 2008 at 12:28:54PM -0600, Mike Flannigan wrote: > > Good luck with your new assignment. You did a great > job on TopoZone. > > A question for everybody on the list. When I go to > the Archives at > http://lists.osgeo.org/pipermail/mapserver-users/ > and download the GZiped text file, I don't get > good text even after converting from UNIX to > DOS format. I get garbage like this: > ??????|?????b!#?E????????(?J???Z`C?u???? > Can anybody suggest a method of obtaining the archives > in text format for easy searching? Er, it looks like you didn't use gzip to unpack it yet? "gzipped" is like "zipped"... You'll need to unzip... (doing that works for me.) Regards, -- Christopher Schmidt MetaCarta From bfraser at geoanalytic.com Mon Sep 15 13:16:17 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 15 Sep 2008 14:16:17 -0600 Subject: [mapserver-users] Ed's Rules for the Best Raster Performance In-Reply-To: <48CEB713.3030101@gatewaygeomatics.com> References: <48CEA178.9010702@geoanalytic.com> <48CEA2D2.1090807@gatewaygeomatics.com> <48CEB4F5.9020809@geoanalytic.com> <48CEB713.3030101@gatewaygeomatics.com> Message-ID: <48CEC291.4080903@geoanalytic.com> Jeff, Very good point (sometimes I get stuck on just one way of doing things). As David Fawcett pointed out, I should add those comments to the doc. Thanks! Brent Jeff McKenna wrote: > Brent Fraser wrote: >> >> Jeff McKenna wrote: >>> my quick comments: >>> >>> - adding overviews with GDAL's 'gdaladdo' utility is very important >> >> In some cases. It depends on your data. As Ed once posted, it may be >> a good idea to switch to external overviews and merge some of the >> files to limit the number of file-opens Mapserver must do when the >> view is zoomed way out. > > I'm not here to argue with you, I am only pointing out the importance of > the utility, which you did not mention in your notes. > > From lee_keel at trimble.com Mon Sep 15 13:35:19 2008 From: lee_keel at trimble.com (Lee Keel) Date: Mon, 15 Sep 2008 16:35:19 -0400 Subject: [mapserver-users] Different color for each row and it's child In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FC076@s-sp22.pca.state.mn.us> References: <944DCD961F4CD649BCEBB52E3C929F6502707F91@usd-am-xch-01.am.trimblecorp.net> <6246727221874A4FB8D3F9BBC37D9BD5021FC076@s-sp22.pca.state.mn.us> Message-ID: <944DCD961F4CD649BCEBB52E3C929F650270805A@usd-am-xch-01.am.trimblecorp.net> David, Thanks for the reply, but I can't seem to get this to work. When I change my mapfile to use this new attribute column, that layer (and most all my others) go away and I get this as the response in FF: MapServer Message getSymbol(): Symbol definition error. Parsing error near (symcolor):(line 1684) I added the column to my query and add that column name, in [] to my class item. Is there something that I am missing? Please note: I have looked at the http://mapserver.gis.umn.edu/development/rfc/ms-rfc-19/ page and I think I understand what is required. But now I am thinking that this is not in MS4W 2.2.6. Can anyone answer if that is the case? And if so, is there another solution like this around that version? Thanks in advance, Lee From: Fawcett, David [mailto:David.Fawcett at state.mn.us] Sent: Monday, September 15, 2008 9:51 AM To: Lee Keel; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Different color for each row and it's child I would suggest creating a column in table A to store a color value and pre-populating it. You would want to store the RGB triplet (e.g. '255 0 0'). I assume that you could have some sort of a stored proc that gets triggered when a new record gets added. Using the new attribute binding in MapServer 5, you could then just set the feature color by specifying the column name in the style in your map file layer definition. Something like: STYLE COLOR [myColorColumn] OUTLINECOLOR 0 0 0 END As soon as someone kicks the MapServer site server and it restarts, I suggest looking at the map file reference document under style. Also, make sure that your color column is specified in the query in your data statement. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lee Keel Sent: Monday, September 15, 2008 9:33 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Different color for each row and it's child I had a client request something that sounds really cool, but I don't know how to do it (or if it is even possible in mapserver). First, my setup: I am running MS4W 2.6 on windows xp against postgis 8.2 database. I have table A that has anywhere from 4 to 35 rows. And table B which could have several hundred rows each relating back to one of the rows from table A. For Example: TableA ID Name 1 t 2 t2 3 t3 4 t4 TableB ID ta_id Value 1 1 something 2 1 something else 3 1 test 4 2 foo 5 2 bar 6 3 done Now my problem: The client would like to see all the rows rendered from tableA as different colors. These colors can be random, it doesn't matter. On top of this, they want to see all the associated rows in tableB as the same color as their parent from tableA. Can I add a column to tableA and use that as a value in the mapfile for the style? And if so, how? I would greatly appreciate any help that anyone can provide. Thanks in advance, Lee -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Mon Sep 15 13:38:50 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 15 Sep 2008 15:38:50 -0500 Subject: [mapserver-users] Different color for each row and it's child In-Reply-To: <944DCD961F4CD649BCEBB52E3C929F650270805A@usd-am-xch-01.am.trimblecorp.net> References: <944DCD961F4CD649BCEBB52E3C929F6502707F91@usd-am-xch-01.am.trimblecorp.net> <6246727221874A4FB8D3F9BBC37D9BD5021FC076@s-sp22.pca.state.mn.us> <944DCD961F4CD649BCEBB52E3C929F650270805A@usd-am-xch-01.am.trimblecorp.net> Message-ID: <48CE818A.5157.008F.0@dnr.state.mn.us> Sharing the snippet of mapfile would help... Steve >>> On 9/15/2008 at 3:35 PM, in message <944DCD961F4CD649BCEBB52E3C929F650270805A at usd-am-xch-01.am.trimblecorp.net>, "Lee Keel" wrote: > David, > > > > Thanks for the reply, but I can't seem to get this to work. When I > change my mapfile to use this new attribute column, that layer (and most > all my others) go away and I get this as the response in FF: > > > > > > > > MapServer Message > > > > > > > > > > > > getSymbol(): Symbol definition error. Parsing error near > (symcolor):(line 1684) > > > > > > > > I added the column to my query and add that column name, in [] to my > class item. Is there something that I am missing? > > > > Please note: I have looked at the > http://mapserver.gis.umn.edu/development/rfc/ms-rfc-19/ page and I think > I understand what is required. But now I am thinking that this is not > in MS4W 2.2.6. Can anyone answer if that is the case? And if so, is > there another solution like this around that version? > > > > Thanks in advance, > > Lee > > > > From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > Sent: Monday, September 15, 2008 9:51 AM > To: Lee Keel; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Different color for each row and it's > child > > > > I would suggest creating a column in table A to store a color value and > pre-populating it. You would want to store the RGB triplet (e.g. '255 0 > 0'). I assume that you could have some sort of a stored proc that gets > triggered when a new record gets added. > > > > Using the new attribute binding in MapServer 5, you could then just set > the feature color by specifying the column name in the style in your map > file layer definition. > > > > Something like: > > > > STYLE > > COLOR [myColorColumn] > > OUTLINECOLOR 0 0 0 > > END > > > > As soon as someone kicks the MapServer site server and it restarts, I > suggest looking at the map file reference document under style. > > > > Also, make sure that your color column is specified in the query in your > data statement. > > > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lee Keel > Sent: Monday, September 15, 2008 9:33 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Different color for each row and it's > child > > I had a client request something that sounds really cool, but I > don't know how to do it (or if it is even possible in mapserver). > > > > First, my setup: > > I am running MS4W 2.6 on windows xp against postgis 8.2 > database. I have table A that has anywhere from 4 to 35 rows. And > table B which could have several hundred rows each relating back to one > of the rows from table A. > > > > For Example: > > TableA > > > > ID Name > > 1 t > > 2 t2 > > 3 t3 > > 4 t4 > > > > > > TableB > > ID ta_id Value > > 1 1 something > > 2 1 something else > > 3 1 test > > 4 2 foo > > 5 2 bar > > 6 3 done > > > > Now my problem: > > The client would like to see all the rows rendered from tableA > as different colors. These colors can be random, it doesn't matter. On > top of this, they want to see all the associated rows in tableB as the > same color as their parent from tableA. > > > > Can I add a column to tableA and use that as a value in the > mapfile for the style? And if so, how? > > > > I would greatly appreciate any help that anyone can provide. > > > > Thanks in advance, > > Lee From bfraser at geoanalytic.com Mon Sep 15 13:40:55 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 15 Sep 2008 14:40:55 -0600 Subject: [mapserver-users] Ed's Rules for the Best Raster Performance In-Reply-To: <48CE75A1.5157.008F.0@dnr.state.mn.us> References: <48CEA178.9010702@geoanalytic.com> <48CEA2D2.1090807@gatewaygeomatics.com> <48CEB4F5.9020809@geoanalytic.com> <48CE75A1.5157.008F.0@dnr.state.mn.us> Message-ID: <48CEC857.1040607@geoanalytic.com> I love it! I had some half-baked convoluted list-of-tileindexes idea; this is much better. We may have to allow PROJECTION=AUTO for the tiles (in the case where the tiles are in UTM several zones), and allow the tile index to be in a different SRS (e.g geographic) than the tiles (I can't recall if this already implemented; I know it caused me a problem some years ago). A elegant enhancement with great potential... Brent Steve Lime wrote: > Interesting idea. This could take the form of a tile index with a couple of additonal columns, minscale and maxscale. Tiles would > be grouped together by using common with those values. You could do interesting things like have high resolution data in > some areas with other areas covered with lower resolution data over a broader range of scales. The whole layer could have it's > own floor/ceiling but tiles would be handled individually. > > I wouldn't handle this as a new layer type, but rather by introducing parameters to indicate which columns to use, kinda like > TILEITEM. Your pyramids would be defined in the tile index... > > I think the gdal tools would already support this nicely since they add to an index if it already exists so you could run those tools > over mutliple datasets. Vector layers could also be handled this way, no reason you couldn't have 1 tile per scale range. > > Steve > >>>> On 9/15/2008 at 2:18 PM, in message <48CEB4F5.9020809 at geoanalytic.com>, Brent > Fraser wrote: > >> Jeff McKenna wrote: >>> my quick comments: >>> >>> - adding overviews with GDAL's 'gdaladdo' utility is very important >> In some cases. It depends on your data. As Ed once posted, it may be a >> good idea to switch to external overviews and merge some of the files to >> limit the number of file-opens Mapserver must do when the view is zoomed way >> out. >> >>> - I find your use of the word "pyramid" confusing (this seems to be a >>> word that Arc* users are familiar with but has no real meaning in the >>> MapServer world...I guess I've been on the "good" side for too long ha) >>> >> Not being an Arc* user I can't comment on it's origins. "Overview" is a >> good alternative, but it doesn't seem to convey the same "multi-levelness" as >> pyramids. For example to be able to display the Global Landsat Mosaic, I >> created seven levels of a pyramid (each an external overview of the >> higher-resolution below it). >> >> Hmmm, may be the plural of overview is pyramid... :) >> >> Hey Steve L., maybe we should have a "PYRAMID" Layer type, to replace a set >> of scale-sensitive TILEINDEX Layers (this would help my >> every-layer-is-exposed-in-WMS problem too: >> http://trac.osgeo.org/mapserver/ticket/300). >> >> Brent >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From lee_keel at trimble.com Mon Sep 15 13:43:05 2008 From: lee_keel at trimble.com (Lee Keel) Date: Mon, 15 Sep 2008 16:43:05 -0400 Subject: [mapserver-users] Different color for each row and it'schild In-Reply-To: <48CE818A.5157.008F.0@dnr.state.mn.us> References: <944DCD961F4CD649BCEBB52E3C929F6502707F91@usd-am-xch-01.am.trimblecorp.net> <6246727221874A4FB8D3F9BBC37D9BD5021FC076@s-sp22.pca.state.mn.us> <944DCD961F4CD649BCEBB52E3C929F650270805A@usd-am-xch-01.am.trimblecorp.net> <48CE818A.5157.008F.0@dnr.state.mn.us> Message-ID: <944DCD961F4CD649BCEBB52E3C929F650270805F@usd-am-xch-01.am.trimblecorp.net> Sorry.... LAYER NAME "crews" GROUP "data" CONNECTIONTYPE postgis CONNECTION "db" DATA "the_geom from (select prikey, the_geom, crewname || ' ' || last_name as name, color as symcolor from crews) as foo using srid=2236, using unique prikey" PROCESSING "CLOSE_CONNECTION=DEFER" METADATA "wms_title" "Crews" "wms_group_title" "data" "wms_layer_title" "Crews" END PROJECTION "init=epsg:2236" END STATUS ON TYPE POINT # MAXSCALE 250000 LABELMAXSCALE 250000 LABELITEM "name" CLASS NAME 'crews' # MAXSCALE 250000 COLOR [symcolor] BACKGROUNDCOLOR 255 255 255 OUTLINECOLOR 255 255 255 SYMBOL 'crewsymbol' SIZE 25 LABEL COLOR [symcolor] OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 9 MAXSIZE 9 MINSIZE 8 ANTIALIAS TRUE POSITION UC PARTIALS FALSE FORCE TRUE END END END -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Monday, September 15, 2008 3:39 PM To: mapserver-users at lists.osgeo.org; David Fawcett; Lee Keel Subject: RE: [mapserver-users] Different color for each row and it'schild Sharing the snippet of mapfile would help... Steve >>> On 9/15/2008 at 3:35 PM, in message <944DCD961F4CD649BCEBB52E3C929F650270805A at usd-am-xch-01.am.trimblecorp.n et>, "Lee Keel" wrote: > David, > > > > Thanks for the reply, but I can't seem to get this to work. When I > change my mapfile to use this new attribute column, that layer (and most > all my others) go away and I get this as the response in FF: > > > > > > > > MapServer Message > > > > > > > > > > > > getSymbol(): Symbol definition error. Parsing error near > (symcolor):(line 1684) > > > > > > > > I added the column to my query and add that column name, in [] to my > class item. Is there something that I am missing? > > > > Please note: I have looked at the > http://mapserver.gis.umn.edu/development/rfc/ms-rfc-19/ page and I think > I understand what is required. But now I am thinking that this is not > in MS4W 2.2.6. Can anyone answer if that is the case? And if so, is > there another solution like this around that version? > > > > Thanks in advance, > > Lee > > > > From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > Sent: Monday, September 15, 2008 9:51 AM > To: Lee Keel; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Different color for each row and it's > child > > > > I would suggest creating a column in table A to store a color value and > pre-populating it. You would want to store the RGB triplet (e.g. '255 0 > 0'). I assume that you could have some sort of a stored proc that gets > triggered when a new record gets added. > > > > Using the new attribute binding in MapServer 5, you could then just set > the feature color by specifying the column name in the style in your map > file layer definition. > > > > Something like: > > > > STYLE > > COLOR [myColorColumn] > > OUTLINECOLOR 0 0 0 > > END > > > > As soon as someone kicks the MapServer site server and it restarts, I > suggest looking at the map file reference document under style. > > > > Also, make sure that your color column is specified in the query in your > data statement. > > > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lee Keel > Sent: Monday, September 15, 2008 9:33 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Different color for each row and it's > child > > I had a client request something that sounds really cool, but I > don't know how to do it (or if it is even possible in mapserver). > > > > First, my setup: > > I am running MS4W 2.6 on windows xp against postgis 8.2 > database. I have table A that has anywhere from 4 to 35 rows. And > table B which could have several hundred rows each relating back to one > of the rows from table A. > > > > For Example: > > TableA > > > > ID Name > > 1 t > > 2 t2 > > 3 t3 > > 4 t4 > > > > > > TableB > > ID ta_id Value > > 1 1 something > > 2 1 something else > > 3 1 test > > 4 2 foo > > 5 2 bar > > 6 3 done > > > > Now my problem: > > The client would like to see all the rows rendered from tableA > as different colors. These colors can be random, it doesn't matter. On > top of this, they want to see all the associated rows in tableB as the > same color as their parent from tableA. > > > > Can I add a column to tableA and use that as a value in the > mapfile for the style? And if so, how? > > > > I would greatly appreciate any help that anyone can provide. > > > > Thanks in advance, > > Lee From David.Fawcett at state.mn.us Mon Sep 15 13:52:20 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 15 Sep 2008 15:52:20 -0500 Subject: [mapserver-users] Different color for each row and it'schild In-Reply-To: <944DCD961F4CD649BCEBB52E3C929F650270805F@usd-am-xch-01.am.trimblecorp.net> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FC082@s-sp22.pca.state.mn.us> It could just be the documentation, but it looks like the attribute binding may not work at the class level. Wrap your styling info in a STYLE and see if that works. http://mapserver.gis.umn.edu/docs/reference/mapfile/style CLASS NAME 'crews' # MAXSCALE 250000 STYLE COLOR [symcolor] BACKGROUNDCOLOR 255 255 255 OUTLINECOLOR 255 255 255 SYMBOL 'crewsymbol' SIZE 25 END # end of style LABEL COLOR [symcolor] OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 9 MAXSIZE 9 MINSIZE 8 ANTIALIAS TRUE POSITION UC PARTIALS FALSE FORCE TRUE END END -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lee Keel Sent: Monday, September 15, 2008 3:43 PM To: Steve Lime; mapserver-users at lists.osgeo.org; David Fawcett Subject: RE: [mapserver-users] Different color for each row and it'schild Sorry.... LAYER NAME "crews" GROUP "data" CONNECTIONTYPE postgis CONNECTION "db" DATA "the_geom from (select prikey, the_geom, crewname || ' ' || last_name as name, color as symcolor from crews) as foo using srid=2236, using unique prikey" PROCESSING "CLOSE_CONNECTION=DEFER" METADATA "wms_title" "Crews" "wms_group_title" "data" "wms_layer_title" "Crews" END PROJECTION "init=epsg:2236" END STATUS ON TYPE POINT # MAXSCALE 250000 LABELMAXSCALE 250000 LABELITEM "name" CLASS NAME 'crews' # MAXSCALE 250000 COLOR [symcolor] BACKGROUNDCOLOR 255 255 255 OUTLINECOLOR 255 255 255 SYMBOL 'crewsymbol' SIZE 25 LABEL COLOR [symcolor] OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 9 MAXSIZE 9 MINSIZE 8 ANTIALIAS TRUE POSITION UC PARTIALS FALSE FORCE TRUE END END END -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Monday, September 15, 2008 3:39 PM To: mapserver-users at lists.osgeo.org; David Fawcett; Lee Keel Subject: RE: [mapserver-users] Different color for each row and it'schild Sharing the snippet of mapfile would help... Steve >>> On 9/15/2008 at 3:35 PM, in message <944DCD961F4CD649BCEBB52E3C929F650270805A at usd-am-xch-01.am.trimblecorp.n et>, "Lee Keel" wrote: > David, > > > > Thanks for the reply, but I can't seem to get this to work. When I > change my mapfile to use this new attribute column, that layer (and most > all my others) go away and I get this as the response in FF: > > > > > > > > MapServer Message > > > > > > > > > > > > getSymbol(): Symbol definition error. Parsing error near > (symcolor):(line 1684) > > > > > > > > I added the column to my query and add that column name, in [] to my > class item. Is there something that I am missing? > > > > Please note: I have looked at the > http://mapserver.gis.umn.edu/development/rfc/ms-rfc-19/ page and I think > I understand what is required. But now I am thinking that this is not > in MS4W 2.2.6. Can anyone answer if that is the case? And if so, is > there another solution like this around that version? > > > > Thanks in advance, > > Lee > > > > From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > Sent: Monday, September 15, 2008 9:51 AM > To: Lee Keel; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Different color for each row and it's > child > > > > I would suggest creating a column in table A to store a color value and > pre-populating it. You would want to store the RGB triplet (e.g. '255 0 > 0'). I assume that you could have some sort of a stored proc that gets > triggered when a new record gets added. > > > > Using the new attribute binding in MapServer 5, you could then just set > the feature color by specifying the column name in the style in your map > file layer definition. > > > > Something like: > > > > STYLE > > COLOR [myColorColumn] > > OUTLINECOLOR 0 0 0 > > END > > > > As soon as someone kicks the MapServer site server and it restarts, I > suggest looking at the map file reference document under style. > > > > Also, make sure that your color column is specified in the query in your > data statement. > > > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lee Keel > Sent: Monday, September 15, 2008 9:33 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Different color for each row and it's > child > > I had a client request something that sounds really cool, but I don't > know how to do it (or if it is even possible in mapserver). > > > > First, my setup: > > I am running MS4W 2.6 on windows xp against postgis 8.2 database. I > have table A that has anywhere from 4 to 35 rows. And table B which > could have several hundred rows each relating back to one > of the rows from table A. > > > > For Example: > > TableA > > > > ID Name > > 1 t > > 2 t2 > > 3 t3 > > 4 t4 > > > > > > TableB > > ID ta_id Value > > 1 1 something > > 2 1 something else > > 3 1 test > > 4 2 foo > > 5 2 bar > > 6 3 done > > > > Now my problem: > > The client would like to see all the rows rendered from tableA as > different colors. These colors can be random, it doesn't matter. On > top of this, they want to see all the associated rows in tableB as the > same color as their parent from tableA. > > > > Can I add a column to tableA and use that as a value in the mapfile > for the style? And if so, how? > > > > I would greatly appreciate any help that anyone can provide. > > > > Thanks in advance, > > Lee _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From lee_keel at trimble.com Mon Sep 15 13:58:26 2008 From: lee_keel at trimble.com (Lee Keel) Date: Mon, 15 Sep 2008 16:58:26 -0400 Subject: [mapserver-users] Different color for each row and it'schild In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FC082@s-sp22.pca.state.mn.us> References: <944DCD961F4CD649BCEBB52E3C929F650270805F@usd-am-xch-01.am.trimblecorp.net> <6246727221874A4FB8D3F9BBC37D9BD5021FC082@s-sp22.pca.state.mn.us> Message-ID: <944DCD961F4CD649BCEBB52E3C929F6502708062@usd-am-xch-01.am.trimblecorp.net> David, Thanks all of your help! That was the trick. Guess I was just making assumptions and you know what they say about that. Sorry for the mix up. -Lee From dmorissette at mapgears.com Mon Sep 15 14:00:39 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 15 Sep 2008 17:00:39 -0400 Subject: [mapserver-users] WMS loadparams weird behavior on Ubuntu In-Reply-To: <4B5A630A-A08C-4403-9ED1-DB7FB6311E14@kyngchaos.com> References: <4B5B9B0C-EC81-4D82-A26C-551933F7C2EB@kyngchaos.com> <4B5A630A-A08C-4403-9ED1-DB7FB6311E14@kyngchaos.com> Message-ID: <48CECCF7.8040006@mapgears.com> William Kyngesburye wrote: > > I got PHP CGI running and now the WMS request loadparams() works. > Apparently WMS doesn't work on PHP as Apache module (my OSX system uses > PHP CGI). Or maybe there is a way to make it work? (though I don't > really care now that I have PHP CGI running) > Seems that it's a known issue related to the missing CGI env vars in the module environment: http://trac.osgeo.org/mapserver/ticket/1975#comment:13 Daniel -- Daniel Morissette http://www.mapgears.com/ From earevaloch at gmail.com Mon Sep 15 14:03:46 2008 From: earevaloch at gmail.com (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Mon, 15 Sep 2008 16:03:46 -0500 Subject: [mapserver-users] ZUM Message-ID: <95f68e530809151403x549d19c7u2a59643f157236f3@mail.gmail.com> I will give an extent within or as part of a Layer??? thanks sorry for the English -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Mon Sep 15 15:11:40 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 15 Sep 2008 17:11:40 -0500 Subject: [mapserver-users] Run-time Substitution vs. Variable Substitutionand what are the Parameters Supported? In-Reply-To: References: Message-ID: <48CE974C.5157.008F.0@dnr.state.mn.us> Variable substitution refers to those parameters that can have part of their value changed remotely. The supported parameters are: LAYER: data, tileindex, connection and filter CLASS: expression Setting up parameter validation is STRONGLY encouraged. In your layer metadata you'd define keys based on variable names to do validation. For example, if your variable was called 'foo' and you wanted to allow a single digit integer from 1 to 9 as a value you'd do: METADATA ... 'foo_validation_pattern' '^[1-9]$' ... END The value of 'foo' would have to pass the supplied regex before the parameter would be altered. It is up to you to author the correct validation pattern. MapServer also supports some URL-based configuration. This is different than substitution in that you are completely changing values of object parameters or even creating new objects. That is, you can change a class color or create a new point feature. Support here (at the moment) is limited to parameters that are validated as part of mapfile parsing. For example, MapServer checks to make sure a color is of the correct format, that a double is a double and so on. The only two exceptions are layer DATA and TEMPLATE properties and they are required to validate against DATAPATTERN or TEMPLATEPATTERN before being used. This is all going to be generalized and improved in 5.4. Steve >>> On 9/9/2008 at 2:42 PM, in message , "John Mitchell" wrote: > Hi, > > What is the difference between Run-time Substitution vs. Variable > Substitution within a map file? > They look like they are the same thing. > > Also what are the Parameters Supported? > >>From documentation that is almost 3 years old it lists the following > parametes (listed below) is this list complete? > > > - LAYER: DATA (must validate against DATAPATTERN) > - LAYER: TILEINDEX > - LAYER: CONNECTION > - LAYER: FILTER > - CLASS EXPRESSION > > > Thanks, From Bob.Basques at ci.stpaul.mn.us Mon Sep 15 15:36:32 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Mon, 15 Sep 2008 17:36:32 -0500 Subject: [mapserver-users] GRID or not to GRID (USNG question) Message-ID: <48CE9D20.163B.00A8.0@ci.stpaul.mn.us> All, in the following interface: http://gis.ci.stpaul.mn.us/gis/gismo_public/html/?mapbook=/datasets/CONFIGS/SAINT_PAUL/PUBLIC_WORKS/MAPBOOKS/TS/usng_1st.xml The last two layers in the "US National Grid Layers" folder show a layer with lines Easting and Northing, that I want to label. They label just fine, but I would like to align them along an edge of the view automatically, the ideal situation would be to have two labels on each end of the lines along the edges of the view. We've tried using the GRID object, even going so modifying the source for GRID, you can see an example in the third to last layer above, "USNG via MapServer GRID" (Wait for it, it's kinda slow right now) And just can't seem to get the output in any sort of usable result for printing. Question, anyone got any ideas about how to align those labels along the edges? Thanks bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jim.Klassen at ci.stpaul.mn.us Mon Sep 15 14:48:37 2008 From: Jim.Klassen at ci.stpaul.mn.us (Jim Klassen) Date: Mon, 15 Sep 2008 16:48:37 -0500 Subject: [mapserver-users] Ed's Rules for the Best Raster Performance Message-ID: <48CEA0170200004F0000B4F9@jeckle> Just out of curiosity, has anyone tested the performance of Jpegs vs. GeoTiffs? I would expect at some point the additional disk access time required for GeoTiffs (of the same pixel count) as Jpegs would outweigh the additional processor time required to decompress the Jpegs. (Also the number of Jpegs that can fit in disk cache is greater than for similar GeoTiffs.) For reference we use 1000px by 1000px Jpeg tiles (with world files). We store multiple resolutions of the dataset, each in its own directory. We start at the native dataset resolution, and half that for each step, stopping when there are less than 10 tiles produced at that particular resolution. (I.e for one of our county wide datasets 6in/px, 1ft/px, 2ft/px, ... 32ft/px). A tileindex is then created for each resolution (using gdaltindex followed by shptree) and a layer is created in the mapfile for each tileindex and appropriate min/maxscales are set. The outputformat in the mapfile is set to jpeg. Our typical tile size is 200KB. There are about 20k tiles in the 6in/px dataset, 80k tiles in the 3in/px dataset (actually 4in data, but stored in 3in so it fits with the rest of the datasets well). I have tested and this large number of files in a directory doesn't seem to effect performance on our system. Average access time for a 500x500px request to mapserver is 300ms measured at the client using perl/LWP and about 220ms with shp2img. Machine is mapserver 5.2.0/x86-64/2.8GHz Xeon/Linux 2.6.16/ext3 filesystem. Jim Klassen City of Saint Paul >>> "Fawcett, David" 09/15/08 1:10 PM >>> Better yet, Add your comments to: http://mapserver.gis.umn.edu/docs/howto/optimizeraster and http://mapserver.gis.umn.edu/docs/howto/optimizevector I had always thought that all we needed to do to make these pages great was to grok the list for all of Ed's posts... David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent Fraser Sent: Monday, September 15, 2008 12:55 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Ed's Rules for the Best Raster Performance In honor of Ed's imminent retirement from the Mapserver Support Group, I've put together "Ed's List for the Best Raster Performance": #1. Pyramid the data - use MAXSCALE and MINSCALE in the LAYER object. #2. Tile the data (and merge your upper levels of the pyramid for fewer files). - see the TILEINDEX object #3. Don't compress your data - avoid jpg, ecw, and mrsid formats. #4. Don't re-project your data on-the-fly. #5. Get the fastest disks you can afford. (Ed, feel free to edit...) Brent Fraser _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From gregor at hostgis.com Mon Sep 15 15:57:36 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Mon, 15 Sep 2008 16:57:36 -0600 Subject: [mapserver-users] Ed's Rules for the Best Raster Performance In-Reply-To: <48CEA0170200004F0000B4F9@jeckle> References: <48CEA0170200004F0000B4F9@jeckle> Message-ID: <48CEE860.7060501@hostgis.com> Jim Klassen wrote: > Just out of curiosity, has anyone tested the performance of Jpegs vs. GeoTiffs? Yep. In my tests, GeoTIFF was the fastest format by some margin, even up to 2 GB filesizes. That was on 8-CPU machines, too. If you check the mailing list archive, you'll likely find the "papers" I posted to the list putting real numbers to it. -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From SansonR at asurequality.com Mon Sep 15 16:01:50 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Tue, 16 Sep 2008 11:01:50 +1200 Subject: [mapserver-users] Ed's Rules for the Best Raster Performance In-Reply-To: <48CEE860.7060501@hostgis.com> References: <48CEA0170200004F0000B4F9@jeckle> <48CEE860.7060501@hostgis.com> Message-ID: <48CF921D.379F.0037.0@asurequality.com> Has anyone tried Erdas Imagine .img files? Robert Sanson, BVSc, MACVSc, PhD Geospatial Services AsureQuality Limited PO Box 585, Palmerston North NEW ZEALAND Phone: +64 6 351-7990 Fax: +64 6 351-7919 Mobile: 021 448-472 E-mail: sansonr at asurequality.com >>> Gregor Mosheh 16/09/2008 10:57 a.m. >>> Jim Klassen wrote: > Just out of curiosity, has anyone tested the performance of Jpegs vs. GeoTiffs? Yep. In my tests, GeoTIFF was the fastest format by some margin, even up to 2 GB filesizes. That was on 8-CPU machines, too. If you check the mailing list archive, you'll likely find the "papers" I posted to the list putting real numbers to it. -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikeflan at att.net Mon Sep 15 18:16:40 2008 From: mikeflan at att.net (Mike Flannigan) Date: Mon, 15 Sep 2008 19:16:40 -0600 Subject: [mapserver-users] How to improve raster imagery display ? In-Reply-To: <20080915201623.GA11304@metacarta.com> References: <20080914003449.CD3F7E00B05@lists.osgeo.org> <48CEA966.1030101@att.net> <20080915201623.GA11304@metacarta.com> Message-ID: <48CF08F8.2040509@att.net> Christopher Schmidt wrote: > Er, it looks like you didn't use gzip to unpack it yet? "gzipped" is > like "zipped"... You'll need to unzip... (doing that works for me.) > > Regards, > Thanks for the reply. I'm stymied by this. I was using WinZip, which uncompressed with no error messages, but the file was apparently corrupted. Now I tried gzip32.exe in a command prompt and get the exact same results. I am using the -d switch. Very peculiar because I know I have successfully done this before with other gzip files. Oh well, if it works every time - it isn't a computer :-) Mike This is the beginning of the file I get: ????H?/var/lib/mailman/archives/private/mapserver-users/2008-July.txt ??y?F?0?w?S ?x??? v? ?m??x?q??wn??n at D^r?y??{?*-, ????N???:u????uF???????????0}????3?X#x?? M]?3???3}????SK?0 ??l5_????d??)4V????a???i?\??~h?F???dw????q??ywqx?;lTz?o????<4N OZ? ??@????vb?Vuvd?j???????V??????g?????_?Wqf????C??q?}\?k??? From pspencer at dmsolutions.ca Mon Sep 15 18:23:35 2008 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Mon, 15 Sep 2008 21:23:35 -0400 Subject: [mapserver-users] Ed's Rules for the Best Raster Performance In-Reply-To: <48CEA0170200004F0000B4F9@jeckle> References: <48CEA0170200004F0000B4F9@jeckle> Message-ID: <26C006C9-C342-4BCD-96A8-9998BEB122E7@dmsolutions.ca> Jim, you would think that ;) However, in practice I wouldn't expect the disk access time for geotiffs to be significantly different from jpeg if you have properly optimized your geotiffs using gdal_translate -co "TILED=YES" - the internal structure is efficiently indexed so that gdal only has to read the minimum number of 256x256 blocks to cover the requested extent. And using gdaladdo to generate overviews just makes it that much more efficient. Even if you are reading less physical data from the disk to get the equivalent coverage from jpeg, the decompression overhead is enough to negate the difference in IO time based on Ed's oft quoted advice (and other's experience too I think). The rules that apply in this case seem to be 'tile your data', 'do not compress it' and 'buy the fastest disk you can afford'. Compression is useful and probably necessary if you hit disk space limits. Cheers Paul On 15-Sep-08, at 5:48 PM, Jim Klassen wrote: > Just out of curiosity, has anyone tested the performance of Jpegs > vs. GeoTiffs? > > I would expect at some point the additional disk access time > required for GeoTiffs (of the same pixel count) as Jpegs would > outweigh the additional processor time required to decompress the > Jpegs. (Also the number of Jpegs that can fit in disk cache is > greater than for similar GeoTiffs.) > > For reference we use 1000px by 1000px Jpeg tiles (with world files). > We store multiple resolutions of the dataset, each in its own > directory. We start at the native dataset resolution, and half that > for each step, stopping when there are less than 10 tiles produced > at that particular resolution. (I.e for one of our county wide > datasets 6in/px, 1ft/px, 2ft/px, ... 32ft/px). A tileindex is then > created for each resolution (using gdaltindex followed by shptree) > and a layer is created in the mapfile for each tileindex and > appropriate min/maxscales are set. The outputformat in the mapfile > is set to jpeg. > > Our typical tile size is 200KB. There are about 20k tiles in the 6in/ > px dataset, 80k tiles in the 3in/px dataset (actually 4in data, but > stored in 3in so it fits with the rest of the datasets well). I have > tested and this large number of files in a directory doesn't seem to > effect performance on our system. > > Average access time for a 500x500px request to mapserver is 300ms > measured at the client using perl/LWP and about 220ms with shp2img. > > Machine is mapserver 5.2.0/x86-64/2.8GHz Xeon/Linux 2.6.16/ext3 > filesystem. > > Jim Klassen > City of Saint Paul > >>>> "Fawcett, David" 09/15/08 1:10 PM >>> > Better yet, > > Add your comments to: > > http://mapserver.gis.umn.edu/docs/howto/optimizeraster > > and > > http://mapserver.gis.umn.edu/docs/howto/optimizevector > > I had always thought that all we needed to do to make these pages > great > was to grok the list for all of Ed's posts... > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent > Fraser > Sent: Monday, September 15, 2008 12:55 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Ed's Rules for the Best Raster Performance > > > In honor of Ed's imminent retirement from the Mapserver Support Group, > I've put together "Ed's List for the Best Raster Performance": > > > #1. Pyramid the data > - use MAXSCALE and MINSCALE in the LAYER object. > > #2. Tile the data (and merge your upper levels of the pyramid for > fewer > files). > - see the TILEINDEX object > > #3. Don't compress your data > - avoid jpg, ecw, and mrsid formats. > > #4. Don't re-project your data on-the-fly. > > #5. Get the fastest disks you can afford. > > > (Ed, feel free to edit...) > > Brent Fraser > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://www.dmsolutions.ca/ From ed at mcnierney.com Mon Sep 15 19:14:02 2008 From: ed at mcnierney.com (Ed McNierney) Date: Mon, 15 Sep 2008 22:14:02 -0400 Subject: [mapserver-users] Ed's Rules for the Best Raster Performance In-Reply-To: <26C006C9-C342-4BCD-96A8-9998BEB122E7@dmsolutions.ca> Message-ID: Damn, I'm going to have to get around to unsubscribing soon so I can shut myself up! Jim, please remember that your disk subsystem does not read only the precise amount of data you request. The most expensive step is telling the disk head to seek to a random location to start reading the data. The actual reading takes much less time in almost every case. Let's invent an example so we don't have to do too much hard research . A 7,200-RPM IDE drive has about a 9 ms average read seek time, and most are able to really transfer real data at around 60 MB/s or so (these are very rough approximations). So to read 256KB of sequential data, you spend 9 ms seeking to the right track and then 4 ms reading the data - that's 13 ms. Doubling the read size to 512KB will only take 4 ms (or 30%) longer, not 100% longer. But even that's likely to be an exaggeration, because your disk drive - knowing that seeks are expensive - will typically read a LOT of data after doing a seek. Remember that "16MB buffer" on the package? The drive will likely read far more than you need, so the "improvement" you get by cutting the amount of data read in a given seek in half is likely to be nothing at all. There are limits, of course. The larger your data read is, the more likely it is to be split up into more than one location on disk. That would mean another seek, which would definitely hurt. But in general if you're already reading modest amounts of data in each shot, reducing the amount of data read by compression is likely to save you almost nothing in read time and cost you something in decompression time (CPUs are fast, so it might not cost much, but it will very likely require more RAM, boosting your per-request footprint, which means you're more at risk of starting to swap, etc.). And remember that not all formats are created equal. In order to decompress ANY portion of a JPEG image, you must read the WHOLE file. If I have a 4,000x4,000 pixel 24-bit TIFF image that's 48 megabytes, and I want to read a 256x256 piece of it, I may only need to read one megabyte or less of that file. But if I convert it to a JPEG and compress it to only 10% of the TIFF's size, I'll have a 4.8 megabyte JPEG but I will need to read the whole 4.8 megabytes (and expand it into that RAM you're trying to conserve) in order to get that 256x256 piece! Paul is right - sometimes compression is necessary when you run out of disk (but disks are pretty darn cheap - the cost per megabyte of the first hard drive I ever purchased (a Maynard Electronics 10 MB drive for my IBM PC) is approximately 450,000 times higher than it is today). If you are inclined toward JPEG compression, read about and think about using tiled TIFFs with JPEG compression in the tiles; it's a reasonable compromise that saves space while reducing the whole-file-read overhead of JPEG. Where the heck is that unsubscribe button? - Ed On 9/15/08 9:23 PM, "Paul Spencer" wrote: Jim, you would think that ;) However, in practice I wouldn't expect the disk access time for geotiffs to be significantly different from jpeg if you have properly optimized your geotiffs using gdal_translate -co "TILED=YES" - the internal structure is efficiently indexed so that gdal only has to read the minimum number of 256x256 blocks to cover the requested extent. And using gdaladdo to generate overviews just makes it that much more efficient. Even if you are reading less physical data from the disk to get the equivalent coverage from jpeg, the decompression overhead is enough to negate the difference in IO time based on Ed's oft quoted advice (and other's experience too I think). The rules that apply in this case seem to be 'tile your data', 'do not compress it' and 'buy the fastest disk you can afford'. Compression is useful and probably necessary if you hit disk space limits. Cheers Paul On 15-Sep-08, at 5:48 PM, Jim Klassen wrote: > Just out of curiosity, has anyone tested the performance of Jpegs > vs. GeoTiffs? > > I would expect at some point the additional disk access time > required for GeoTiffs (of the same pixel count) as Jpegs would > outweigh the additional processor time required to decompress the > Jpegs. (Also the number of Jpegs that can fit in disk cache is > greater than for similar GeoTiffs.) > > For reference we use 1000px by 1000px Jpeg tiles (with world files). > We store multiple resolutions of the dataset, each in its own > directory. We start at the native dataset resolution, and half that > for each step, stopping when there are less than 10 tiles produced > at that particular resolution. (I.e for one of our county wide > datasets 6in/px, 1ft/px, 2ft/px, ... 32ft/px). A tileindex is then > created for each resolution (using gdaltindex followed by shptree) > and a layer is created in the mapfile for each tileindex and > appropriate min/maxscales are set. The outputformat in the mapfile > is set to jpeg. > > Our typical tile size is 200KB. There are about 20k tiles in the 6in/ > px dataset, 80k tiles in the 3in/px dataset (actually 4in data, but > stored in 3in so it fits with the rest of the datasets well). I have > tested and this large number of files in a directory doesn't seem to > effect performance on our system. > > Average access time for a 500x500px request to mapserver is 300ms > measured at the client using perl/LWP and about 220ms with shp2img. > > Machine is mapserver 5.2.0/x86-64/2.8GHz Xeon/Linux 2.6.16/ext3 > filesystem. > > Jim Klassen > City of Saint Paul > >>>> "Fawcett, David" 09/15/08 1:10 PM >>> > Better yet, > > Add your comments to: > > http://mapserver.gis.umn.edu/docs/howto/optimizeraster > > and > > http://mapserver.gis.umn.edu/docs/howto/optimizevector > > I had always thought that all we needed to do to make these pages > great > was to grok the list for all of Ed's posts... > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent > Fraser > Sent: Monday, September 15, 2008 12:55 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Ed's Rules for the Best Raster Performance > > > In honor of Ed's imminent retirement from the Mapserver Support Group, > I've put together "Ed's List for the Best Raster Performance": > > > #1. Pyramid the data > - use MAXSCALE and MINSCALE in the LAYER object. > > #2. Tile the data (and merge your upper levels of the pyramid for > fewer > files). > - see the TILEINDEX object > > #3. Don't compress your data > - avoid jpg, ecw, and mrsid formats. > > #4. Don't re-project your data on-the-fly. > > #5. Get the fastest disks you can afford. > > > (Ed, feel free to edit...) > > Brent Fraser > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://www.dmsolutions.ca/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From crushfire2004 at gmail.com Mon Sep 15 21:38:21 2008 From: crushfire2004 at gmail.com (Deli Soetiawan) Date: Tue, 16 Sep 2008 11:38:21 +0700 Subject: [mapserver-users] looking for mapserver non-MS4W binaries for IIS Message-ID: Hi there, I read some tutorial on how to use Mapserver as CGI application on IIS, here: http://biometry.gis.umn.edu/tutorial/install.html However i can't find package described on those tutorial, however i have success using MS4W before, so it should be possible that binaries from MS4W can be used on IIS based webserver, in this step i stucked: ---quote from above tutorial--- Copy the files from "C:\MapServer\lib" to C:\Windows\System or C:\Winnt\System32, whichever is appropriate for your Windows version. (Alternatively, you can edit your system PATH to include "C:\MapServer\lib". In this way you don't have to copy the library files to your system directory.) Move "C:\MapServer\Proj" to "C:\Proj". This is required for projection support. ---end quote--- Where or what contents that should be on "lib" and "Proj" folders that available on MS4W package (i have take alook there's no lib or Proj directories there) Many Thanks, Dels -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From jjschlafley at yahoo.com Mon Sep 15 22:24:59 2008 From: jjschlafley at yahoo.com (J.J. Schlafley) Date: Mon, 15 Sep 2008 22:24:59 -0700 (PDT) Subject: [mapserver-users] looking for mapserver non-MS4W binaries for IIS Message-ID: <329152.55851.qm@web52304.mail.re2.yahoo.com> I used this for MS4W and IIS. ? http://mapserver.gis.umn.edu/docs/howto/setupiis ? ? ----- Original Message ---- From: Deli Soetiawan To: mapserver-users at lists.osgeo.org Sent: Tuesday, September 16, 2008 12:38:21 AM Subject: [mapserver-users] looking for mapserver non-MS4W binaries for IIS Hi there, I read some tutorial on how to use Mapserver as CGI application on IIS,? here: http://biometry.gis.umn.edu/tutorial/install.html However i can't find package described on those tutorial, however i have? success using MS4W before, so it should be possible that binaries from? MS4W can be used on IIS based webserver, in this step i stucked: ---quote from above tutorial--- Copy the files from "C:\MapServer\lib" to C:\Windows\System or? C:\Winnt\System32, whichever is appropriate for your Windows version.? (Alternatively, you can edit your system PATH to include? "C:\MapServer\lib". In this way you don't have to copy the library files? to your system directory.) Move "C:\MapServer\Proj" to "C:\Proj". This is? required for projection support. ---end quote--- Where or what contents that should be on "lib" and "Proj" folders that? available on MS4W package (i have take alook there's no lib or Proj? directories there) Many Thanks, Dels -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.spring at gmx.de Mon Sep 15 22:16:03 2008 From: m.spring at gmx.de (Markus Spring) Date: Tue, 16 Sep 2008 07:16:03 +0200 Subject: [mapserver-users] How to pimp WMS meta information? Message-ID: <48CF4113.6090002@thinkpad> Hello list, trying to set up a multi-map service based WMS mapservices and OpenLayers, I would like to retrieve user-defined meta information from a map via the GetCapabilities request. For example, if I define METADATA WMS_TITLE "Palliativstationen" WMS_ONLINERESOURCE "http://gis.local/wms/palliativ" WMS_SRS "epsg:31468" WMS_SHOW_QUERY_IN "large_popup" END I would like to retrieve the value "large_popup" of WMS_SHOW_QUERY_IN through the GetCapabilities call. The background idea is that this information could be used by my application but should not harm other people's use of the WMS service. Is there any viable way to accomplish this with a mapserver based WMS service? Regards - Markus From nils.zierath at uni-bonn.de Tue Sep 16 01:24:03 2008 From: nils.zierath at uni-bonn.de (Nils Zierath) Date: Tue, 16 Sep 2008 10:24:03 +0200 Subject: [mapserver-users] Re: [Geomoose-users] running GeoMoose & Mapserver locally In-Reply-To: <816738.94451.qm@web51403.mail.re2.yahoo.com> References: <816738.94451.qm@web51403.mail.re2.yahoo.com> Message-ID: <48CF6D23.1010505@uni-bonn.de> Dan, thanks for the hint. No, I'm not using MS4W/never used it yet. My sever is running on Debian 4.0 with Apache 2.2.9 mod_fastci, PHP5, Mapserver 5.0.2 in cgi mode and GeoMoose 1.4. Since I haven't worked with MS4W yet I do not have a clue how laborious it would be to apply the config files from a Linux box to MS4W. Does anybody know or has got a link to a good tutorial other than the MS4W pages at maptools? Thanks, Nils (I'll cross post this message to the mapserver-users list) Dan Little schrieb: > Sure, we've done this a few times. > > Are you using MS4W? You can install MS4W onto the USB drive and run httpd.exe manually. > > > > ----- Original Message ---- >> From: CoCE Web-Administrator >> To: GeoMoose Mailing list >> Sent: Monday, September 15, 2008 9:08:11 AM >> Subject: [Geomoose-users] running GeoMoose & Mapserver locally >> >> Dear all, >> I want to present parts of my GeoMoose project at a conference. Unfortunately, >> the >> conference people cannot guarantee that I will have internet access at the >> presentation booth. >> >> Has anyone tried to put Apache, Mapserver, GeoMoose and the associated data of a >> project >> onto a DVD or USBstick? >> >> Can you recommend a certain solution / package that would be easily to adapt? >> >> Thanks, >> Nils >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Geomoose-users mailing list >> Geomoose-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/geomoose-users > > > > -- alfterer str. 69 53121 bonn tel.: +49 (0) 228 - 96699674 mobil: +49 (0) 178 - 1349551 e-mail: nils.zierath at web.de -- *lust auf schule machen?* www.pimp-my-school.de -- be careful while reading health books, you might die of a misprint. (marc twain) From rainer at kalliany.at Tue Sep 16 01:31:46 2008 From: rainer at kalliany.at (Rainer Kalliany) Date: Tue, 16 Sep 2008 10:31:46 +0200 Subject: [mapserver-users] How to improve raster imagery display ? In-Reply-To: References: Message-ID: <48CF6EF2.4040408@kalliany.at> Dear Ed (and all other newsgroup folks), Many thanks for your comment and link on previous postings, which I tried to explore. The follow-up posting on "Ed's rules for best raster performance" by Brent indeed seems to contain the essence of your recommendations. As it is often with good advice, all appear to be very reasonable to me. Since I cannot install additional servers via WMS and things like that (many thanks to those who suggested that, but right now that is not feasible for our project; possibly we come back to that at a much later stage ...) I am developing a strategy which I think is in accordance with most of "Ed's rules". Our basic datset is covering more than 12,000 square-kilometres (=one of 9 provinces of Austria) at a ground resolution of 0.25 metres. By uncompressed 24-bit-RGB-TIFF-Files that would be some 600 GByte of data. Indeed not so much in our days. However, our customer does not want to provide more than the 30 GB or so webspace, which are necessary at reasonable ECW compression. The actual web-users will work on comparatively small project-areas of 1 to 30 square-kilometres size, demandig reasonable display-performance. No my plan, which (with one exception) should follow Ed's rules, is like that: 1) Resample the Orthos to all required resolutions (0.25, 0.5, 1.25, 2.5, 12.5 metres) but store them as ECW (what Ed might not like, however ...) 2) Increase viewing-TileWidth/TileHeight to 512 by 512 or 1024 by 1024 3) When a new project-area is defined by a user: Convert all tiles necessary for that area at all scales from ECW to TIFF or PNG (launching a GDAL-job). These tile-files (with their a bit weird names and directory-structure) then will stay on the server as long as the project is active (what might be for a few weks or months) 4) When there is a display-request: Feed exactly the tiles needed right into the display-process, bypassing all ortho-searching/resampling/reprojecting usually done by MapServer at this stage Since by now this is just a planned strategy and not yet implemented (currently I in particular do not really know how to skip certain parts of MapServer functionality and introduce my own stuff at step 4), I am most gratefule for any comment and hint on my plans. Good luck in particular to Ed for his future activities (but I still hope he never will find the unsubscribe button here in that group ...) and best regards to all other folks, Rainer 2008-09-16, 8:32 UTC --- Ed McNierney schrieb: > Folks - > > I would suggest searching the mailing list archives for the many posts > mentioning ?McNierney?, or ?TopoZone? or ?raster? or all three, as I?ve > posted at length and repeatedly on this sort of topic before. Others > have done so as well ? I just remember my own writings better . I > successfully served over 50 TB of raster imagery to relatively heavy > user loads with MapServer, and commented frequently on the approach I used. > > The most important point is to preprocess as much as possible. In this > case that means (a) avoiding resampling by storing the data at the > permitted output resolutions, and (b) storing the data in an > uncompressed simple raster format. PNG is an option, as is TIFF. If > you need 24-bit data you may want to consider tiled TIFFs using JPEG > compression as a compromise (again, search the archives for this topic, > especially comments by Frank Warmerdam). > > - Ed > > Ed McNierney > 205 Indian Hill Road > Groton, MA 01450 > ed at mcnierney.com > +1 (978) 761-0049 > > > > On 9/13/08 8:13 PM, "pcreso at pcreso.com" wrote: > > Hi Rainer, > > Firstly, are you using FastCGI? If not, implementing this may help. > I assume you have indexes to all the raster images. > > I'd also consider an architectural approach, where you abstract the > raster data to a custom built system & access this via WMS. We have > improved performance of such systems by having mapfiles access data > from PostGIS databases on disparate servers rather than one > congested system. > > Similarly, for rasters, you may also be able to use hardware rather > than software to address your performance issues by splitting your > raster files up between servers, effectively a further level of > tiling. With caching (as below), multiple users hitting the same > region should generally hit the cache, and users hitting multiple > regions will have their load spread across different servers. > > Look at http://geowebcache.org/ > While it possibly integrates better with GeoServer than mapserver, > it will supposedly work with any WMS server. > > Given the cheap price of hardware & memory/cpu performance these > days, adding a couple of multi-core boxes with a few GB of memory & > a Tb drive or two each isn't a huge outlay, & Gb LAN is also cheap. > > > > I guess when your programming skills are as bad as mine, you look at > other solutions first :-) > > I'm interested in hearing about your project, we are in the process > of accumulating around 11Tb of aerial imagery & will be looking at > ways to provide access to this. > > > Cheers, > > Brent Wood > > > --- On Sun, 9/14/08, Rainer Kalliany wrote: > > > From: Rainer Kalliany > > Subject: [mapserver-users] How to improve raster imagery display ? > > To: mapserver-users at lists.osgeo.org > > Date: Sunday, September 14, 2008, 11:24 AM > > Dear all, > > > > Yet for some months, my wife (who is the far more > > experienced programmer, > > and me (rather responsible for > > collecting/re-formatting/providing data) > > are developing a MapServer-based webGIS. Your community > > already has > > helped us several times a lot with your experience, and we > > are most > > grateful for that great support. > > > > Now, with our project almost finished, the so far pretty > > poor performance > > in displaying raster images (aerial orthophotos at a ground > > resolution of > > 0.25 metres) is becoming a critical issue. In particular > > when several > > users want to work at the same time, what happened last > > week :-( > > > > So far we had our orthophotos organized in a seamless grid > > of ECW-images, > > 10000 by 10000 pixel each (corresponding to 2500 by 2500 > > metres on ground). > > > > From that dataset our MapServer produces the > > "orthophoto" layer on demand, > > at scales of 1 by 1000, 2000, 5000 or 10000. With the > > standard settings > > of 72 dpI, that renders pixels of 0.353, 0.706, 1.764 or > > 3.528 metres. > > > > I am well aware that at least for the 10000 scale I should > > introduce > > a layer with reduced resolution. I already have prepared > > such a dataset. > > > > But our main concern are the scales 2000 and 1000, where > > the displaying > > process is producing many dozens of tiles, each 256 x 256 > > pixel .png-files. > > Along with the other layers (where the vector-data also are > > displayed by > > rasterized tiles which at least are much smaller), the > > composition of one > > screen sometimes takes up to 3 minutes ! > > > > NOW MY IDEA is to produce all those .PNGs (with their weird > > directory > > structure and naming, like > > \t-86016\l3072\t-84992l4352.png, which how- > > ever I already have understood) in advance and myself. For > > the conversion > > from ECW to PNG I might use GDAL, but without any > > resampling necessary. > > > > I also consider raising tilewidth/tileheight from the > > standard value 256 > > to 512 or even 1024 pixels. > > > > Now my question is, if that is a good idea or not. > > > > If you disagree with me: Do you have some alternative > > proposal ? > > > > If you think my planned approach basically is a good one, > > do you have > > any supporting advices, on issues I possibly did not > > consider ? > > > > THis is becoming a dcisive isuue for the success of our > > whole project, > > and therefore we will be most grateful for any hint ! > > > > With kind regards, > > > > Rainer & Susanne Kalliany > > > > 2008-09-13, 23:25 UTC > > -- > > DI. Rainer Kalliany - rainer at kalliany.at > > > > TeFiS - www.tefis.at > > Technische und forstliche Informationssysteme (Forstliche > > Software, GIS) > > KALLIANY - www.kalliany.at > > Ingenieurb?ro f?r Vermessungswesen (Photogrammetrie, > > Fernerkundung, GPS) > > > > Mobiltelephon: +43 664 1811098 > > Telephon: +43 316 931746-0, Fax: -15 > > > > A-8010 Graz, Schillerstrasse 58 > > A-1040 Wien, Schaumburgergasse 11/13 > > AUSTRIA > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- DI. Rainer Kalliany - rainer at kalliany.at TeFiS - www.tefis.at Technische und forstliche Informationssysteme (Forstliche Software, GIS) KALLIANY - www.kalliany.at Ingenieurb?ro f?r Vermessungswesen (Photogrammetrie, Fernerkundung, GPS) Mobiltelephon: +43 664 1811098 Telephon: +43 316 931746-0, Fax: -15 A-8010 Graz, Schillerstrasse 58 A-1040 Wien, Schaumburgergasse 11/13 From dzizes451 at gmail.com Tue Sep 16 01:44:18 2008 From: dzizes451 at gmail.com (dzizes451 at gmail.com) Date: Tue, 16 Sep 2008 10:44:18 +0200 Subject: [MAPSERVER-USERS] Debian Oracle10g OCI In-Reply-To: <484196.41437.qm@web51405.mail.re2.yahoo.com> References: <484196.41437.qm@web51405.mail.re2.yahoo.com> Message-ID: Hi again, I've tried to compile mapserv executable with: ./configure -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server -with-proj -with-wfsclient -with-wmsclient -with-gdal -with-ogr -with-threads -with-freetype -with-tiff -with-FastCGI and I receive this error: /usr/bin/ld: cannot find -lexpat collect2: ld returned 1 exit status make: *** [shp2img] Error 1 Does anyone know what is wrong? -- Micha? On Mon, Sep 15, 2008 at 3:16 PM, Dan Little wrote: > Umberto is right, for Mapserver to connect to Oracle you need to specify > that capability at compile time. But for you ge tthat far I think you need > to make sure that some of the basics work. > > Also, if you cannot connect to Oracle via SQL*Plus (assuming the binary is > installed) you have other problems including but not limited to: > - needing to set the LD_LIBRARY_PATH to include all the libraries. This > may also need to be done in Apache while running mapserver to access Oracle. > - needing to configure your TNSNAMES file. > - check firewall setting in order to make sure you can connect on 1521 (or > whatever port you are using for Oracle). > > Generally, when running an Oracle layer, you want to try the following > diagnostic steps: > 1) Use SQL Developer to connect to the database (it has it's own drivers > built in, so there's no software dependency issues). This will resolve > whether or not the databas is working. > 2) On the machine, try connecting with SQL Plus. This will determine > whether or not you have your client configured correctly. Do not move on > until this works. > 3) Try and re-compile Mapserver with Oracle Spatial. At the end of the > ./configure script there is an output screen, ensure that you see Oracle is > turned on, otherwise scroll up in the screen and see what's missing. > > > > ----- Original Message ---- > > From: Umberto Nicoletti > > To: dzizes > > Cc: mapserver-users at lists.osgeo.org > > Sent: Monday, September 15, 2008 7:45:48 AM > > Subject: Re: [MAPSERVER-USERS] Debian Oracle10g OCI > > > > You have to recompile mapserver with the: > > > > --with-oraclespatial=[path to oracle home] > > > > option. That's all that is needed to enable oracle spatial support in > mapserver. > > > > HTH, > > Umberto > > > > On Mon, Sep 15, 2008 at 2:05 PM, dzizes wrote: > > > > > > Hi, > > > > > > I've installed mapserver on Debian (lenny distribution). I've managed > to > > > create mapfile based on shp data and successfully send a wms request to > get > > > a map. I seems that mapserver works fine. > > > > > > I've also installed oracle-ex and I can connect to my Oracle via > sqlplus. > > > However, when I request wms (to a map file pointing to Oracle10g) I > receive > > > the following: > > > > > > msDrawMap(): Image handling error. Failed to draw layer named 'test'. > > > msOracleSpatialLayerOpen(): OracleSpatial error. OracleSpatial is not > > > supported > > > > > > I've found that I need OCI installed and configured properly, but there > is > > > no clear tutorial. > > > Please provide me a some step by step guide. > > > > > > Greets, > > > Michal > > > > > > -- > > > View this message in context: > > http://www.nabble.com/Debian-Oracle10g-OCI-tp19491636p19491636.html > > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at gmail.com Tue Sep 16 01:51:15 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Tue, 16 Sep 2008 10:51:15 +0200 Subject: [MAPSERVER-USERS] Debian Oracle10g OCI In-Reply-To: References: <484196.41437.qm@web51405.mail.re2.yahoo.com> Message-ID: <75b4b93e0809160151q6ce1b62cscb803d8e7160400e@mail.gmail.com> Usign tiff AND gdal is not recommended, you'd better try these options: ./configure -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server -with-proj -with-wfsclient -with-wmsclient -with-gdal -with-ogr -with-threads -with-freetype -without-tiff -with-FastCGI as for the expat error: sudo apt-get install libexpat1 libexpat1-dev Umberto 2008/9/16 : > Hi again, > > I've tried to compile mapserv executable with: > > ./configure > -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server > -with-proj -with-wfsclient -with-wmsclient -with-gdal -with-ogr > -with-threads -with-freetype -with-tiff -with-FastCGI > > and I receive this error: > > /usr/bin/ld: cannot find -lexpat > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > Does anyone know what is wrong? > > -- > Micha? > > > On Mon, Sep 15, 2008 at 3:16 PM, Dan Little wrote: >> >> Umberto is right, for Mapserver to connect to Oracle you need to specify >> that capability at compile time. But for you ge tthat far I think you need >> to make sure that some of the basics work. >> >> Also, if you cannot connect to Oracle via SQL*Plus (assuming the binary is >> installed) you have other problems including but not limited to: >> - needing to set the LD_LIBRARY_PATH to include all the libraries. This >> may also need to be done in Apache while running mapserver to access Oracle. >> - needing to configure your TNSNAMES file. >> - check firewall setting in order to make sure you can connect on 1521 (or >> whatever port you are using for Oracle). >> >> Generally, when running an Oracle layer, you want to try the following >> diagnostic steps: >> 1) Use SQL Developer to connect to the database (it has it's own drivers >> built in, so there's no software dependency issues). This will resolve >> whether or not the databas is working. >> 2) On the machine, try connecting with SQL Plus. This will determine >> whether or not you have your client configured correctly. Do not move on >> until this works. >> 3) Try and re-compile Mapserver with Oracle Spatial. At the end of the >> ./configure script there is an output screen, ensure that you see Oracle is >> turned on, otherwise scroll up in the screen and see what's missing. >> >> >> >> ----- Original Message ---- >> > From: Umberto Nicoletti >> > To: dzizes >> > Cc: mapserver-users at lists.osgeo.org >> > Sent: Monday, September 15, 2008 7:45:48 AM >> > Subject: Re: [MAPSERVER-USERS] Debian Oracle10g OCI >> > >> > You have to recompile mapserver with the: >> > >> > --with-oraclespatial=[path to oracle home] >> > >> > option. That's all that is needed to enable oracle spatial support in >> > mapserver. >> > >> > HTH, >> > Umberto >> > >> > On Mon, Sep 15, 2008 at 2:05 PM, dzizes wrote: >> > > >> > > Hi, >> > > >> > > I've installed mapserver on Debian (lenny distribution). I've managed >> > > to >> > > create mapfile based on shp data and successfully send a wms request >> > > to get >> > > a map. I seems that mapserver works fine. >> > > >> > > I've also installed oracle-ex and I can connect to my Oracle via >> > > sqlplus. >> > > However, when I request wms (to a map file pointing to Oracle10g) I >> > > receive >> > > the following: >> > > >> > > msDrawMap(): Image handling error. Failed to draw layer named 'test'. >> > > msOracleSpatialLayerOpen(): OracleSpatial error. OracleSpatial is not >> > > supported >> > > >> > > I've found that I need OCI installed and configured properly, but >> > > there is >> > > no clear tutorial. >> > > Please provide me a some step by step guide. >> > > >> > > Greets, >> > > Michal >> > > >> > > -- >> > > View this message in context: >> > http://www.nabble.com/Debian-Oracle10g-OCI-tp19491636p19491636.html >> > > Sent from the Mapserver - User mailing list archive at Nabble.com. >> > > >> > > _______________________________________________ >> > > mapserver-users mailing list >> > > mapserver-users at lists.osgeo.org >> > > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From flavio at tydac.ch Tue Sep 16 01:52:27 2008 From: flavio at tydac.ch (Flavio Hendry) Date: Tue, 16 Sep 2008 10:52:27 +0200 Subject: [mapserver-users] Ed's Rules for the Best Raster Performance In-Reply-To: <48CEA178.9010702@geoanalytic.com> References: <48CEA178.9010702@geoanalytic.com> Message-ID: Hi > #3. Don't compress your data > - avoid jpg, ecw, and mrsid formats. mmmh, my experience is, that ecw is extremely fast ... Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch TYDAC SwissMaps: http://www.mapplus.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- Location: http://www.mapplus.ch/adr/bern/luternauweg/12 ---------------------------------------------------------------- From Jukka.Rahkonen at mmmtike.fi Tue Sep 16 02:00:26 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 16 Sep 2008 12:00:26 +0300 Subject: VS: [mapserver-users] How to improve raster imagery display ? In-Reply-To: <48CF6EF2.4040408@kalliany.at> Message-ID: Hi, I do not quite undertand this: > > But our main concern are the scales 2000 and 1000, where > > the displaying > > process is producing many dozens of tiles, each 256 x 256 > > pixel .png-files. > > Along with the other layers (where the vector-data also are > > displayed by > > rasterized tiles which at least are much smaller), the > > composition of one > > screen sometimes takes up to 3 minutes ! It seems to me that your server and client might want to work in different ways. Client is willing to have small tiles in fixed scales, and rendering them on demand is not very effective. Usually these clients are served with prerendered tiles from some caching system like tilecache, geowebcache of Kamap. I am pretty sure that if you have a try with standard WMS client that is requesting just one output you will feel much better response times. My guess is something around one second at maximum. ECW format has internal tiling system which works just fine. I fear you won't win anything by creating subsampled ecw images to be used as overviews. Instead, your ecw images might work faster if you mosaic and compress them all the one single ecw image. In that case there would be always just one image file opening per request. My experience about ecw and Mapserver is that this combination gives about half of the speed achieved by uncompressed geotiff images, with 5 percent of the disk usage. But this is the case in WMS usage and not with a client requesting tiles. Tiles should be server from tilecache and that would be super fast, but then you would need a lot of disk space. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Rainer Kalliany > L?hetetty: 16. syyskuuta 2008 11:32 > Vastaanottaja: Ed McNierney > Kopio: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] How to improve raster imagery display ? > > Dear Ed (and all other newsgroup folks), > > Many thanks for your comment and link on previous postings, > which I tried to explore. The follow-up posting on "Ed's > rules for best raster performance" > by Brent indeed seems to contain the essence of your recommendations. > As it is often with good advice, all appear to be very > reasonable to me. > > Since I cannot install additional servers via WMS and things > like that (many thanks to those who suggested that, but right > now that is not feasible for our project; possibly we come > back to that at a much later stage ...) I am developing a > strategy which I think is in accordance with most of "Ed's rules". > > Our basic datset is covering more than 12,000 > square-kilometres (=one of 9 provinces of Austria) at a > ground resolution of 0.25 metres. By uncompressed > 24-bit-RGB-TIFF-Files that would be some 600 GByte of data. > Indeed not so much in our days. However, our customer does > not want to provide more than the 30 GB or so webspace, which > are necessary at reasonable ECW compression. > > The actual web-users will work on comparatively small project-areas of > 1 to 30 square-kilometres size, demandig reasonable > display-performance. > > No my plan, which (with one exception) should follow Ed's > rules, is like that: > > 1) Resample the Orthos to all required resolutions (0.25, > 0.5, 1.25, 2.5, 12.5 > metres) but store them as ECW (what Ed might not like, > however ...) > > 2) Increase viewing-TileWidth/TileHeight to 512 by 512 or 1024 by 1024 > > 3) When a new project-area is defined by a user: Convert all > tiles necessary > for that area at all scales from ECW to TIFF or PNG > (launching a GDAL-job). > These tile-files (with their a bit weird names and > directory-structure) > then will stay on the server as long as the project is > active (what > might be for a few weks or months) > > 4) When there is a display-request: Feed exactly the tiles > needed right into > the display-process, bypassing all > ortho-searching/resampling/reprojecting > usually done by MapServer at this stage > > Since by now this is just a planned strategy and not yet > implemented (currently I in particular do not really know how > to skip certain parts of MapServer functionality and > introduce my own stuff at step 4), I am most gratefule for > any comment and hint on my plans. > > Good luck in particular to Ed for his future activities (but > I still hope he never will find the unsubscribe button here > in that group ...) and best regards to all other folks, > > Rainer > > 2008-09-16, 8:32 UTC > --- > Ed McNierney schrieb: > > Folks - > > > > I would suggest searching the mailing list archives for the > many posts > > mentioning "McNierney", or "TopoZone" or "raster" or all three, as > > I've posted at length and repeatedly on this sort of topic before. > > Others have done so as well - I just remember my own > writings better > > . I successfully served over 50 TB of raster imagery to > relatively > > heavy user loads with MapServer, and commented frequently > on the approach I used. > > > > The most important point is to preprocess as much as possible. In > > this case that means (a) avoiding resampling by storing the data at > > the permitted output resolutions, and (b) storing the data in an > > uncompressed simple raster format. PNG is an option, as is > TIFF. If > > you need 24-bit data you may want to consider tiled TIFFs > using JPEG > > compression as a compromise (again, search the archives for this > > topic, especially comments by Frank Warmerdam). > > > > - Ed > > > > Ed McNierney > > 205 Indian Hill Road > > Groton, MA 01450 > > ed at mcnierney.com > > +1 (978) 761-0049 > > > > > > > > On 9/13/08 8:13 PM, "pcreso at pcreso.com" wrote: > > > > Hi Rainer, > > > > Firstly, are you using FastCGI? If not, implementing > this may help. > > I assume you have indexes to all the raster images. > > > > I'd also consider an architectural approach, where you > abstract the > > raster data to a custom built system & access this via > WMS. We have > > improved performance of such systems by having mapfiles > access data > > from PostGIS databases on disparate servers rather than one > > congested system. > > > > Similarly, for rasters, you may also be able to use > hardware rather > > than software to address your performance issues by > splitting your > > raster files up between servers, effectively a further level of > > tiling. With caching (as below), multiple users hitting the same > > region should generally hit the cache, and users > hitting multiple > > regions will have their load spread across different servers. > > > > Look at http://geowebcache.org/ > > While it possibly integrates better with GeoServer than > mapserver, > > it will supposedly work with any WMS server. > > > > Given the cheap price of hardware & memory/cpu performance these > > days, adding a couple of multi-core boxes with a few GB > of memory & > > a Tb drive or two each isn't a huge outlay, & Gb LAN is > also cheap. > > > > > > > > I guess when your programming skills are as bad as > mine, you look at > > other solutions first :-) > > > > I'm interested in hearing about your project, we are in > the process > > of accumulating around 11Tb of aerial imagery & will be > looking at > > ways to provide access to this. > > > > > > Cheers, > > > > Brent Wood > > > > > > --- On Sun, 9/14/08, Rainer Kalliany wrote: > > > > > From: Rainer Kalliany > > > Subject: [mapserver-users] How to improve raster > imagery display ? > > > To: mapserver-users at lists.osgeo.org > > > Date: Sunday, September 14, 2008, 11:24 AM > > > Dear all, > > > > > > Yet for some months, my wife (who is the far more > > > experienced programmer, > > > and me (rather responsible for > > > collecting/re-formatting/providing data) > > > are developing a MapServer-based webGIS. Your community > > > already has > > > helped us several times a lot with your experience, and we > > > are most > > > grateful for that great support. > > > > > > Now, with our project almost finished, the so far pretty > > > poor performance > > > in displaying raster images (aerial orthophotos at a ground > > > resolution of > > > 0.25 metres) is becoming a critical issue. In particular > > > when several > > > users want to work at the same time, what happened last > > > week :-( > > > > > > So far we had our orthophotos organized in a seamless grid > > > of ECW-images, > > > 10000 by 10000 pixel each (corresponding to 2500 by 2500 > > > metres on ground). > > > > > > From that dataset our MapServer produces the > > > "orthophoto" layer on demand, > > > at scales of 1 by 1000, 2000, 5000 or 10000. With the > > > standard settings > > > of 72 dpI, that renders pixels of 0.353, 0.706, 1.764 or > > > 3.528 metres. > > > > > > I am well aware that at least for the 10000 scale I should > > > introduce > > > a layer with reduced resolution. I already have prepared > > > such a dataset. > > > > > > But our main concern are the scales 2000 and 1000, where > > > the displaying > > > process is producing many dozens of tiles, each 256 x 256 > > > pixel .png-files. > > > Along with the other layers (where the vector-data also are > > > displayed by > > > rasterized tiles which at least are much smaller), the > > > composition of one > > > screen sometimes takes up to 3 minutes ! > > > > > > NOW MY IDEA is to produce all those .PNGs (with their weird > > > directory > > > structure and naming, like > > > \t-86016\l3072\t-84992l4352.png, which how- > > > ever I already have understood) in advance and myself. For > > > the conversion > > > from ECW to PNG I might use GDAL, but without any > > > resampling necessary. > > > > > > I also consider raising tilewidth/tileheight from the > > > standard value 256 > > > to 512 or even 1024 pixels. > > > > > > Now my question is, if that is a good idea or not. > > > > > > If you disagree with me: Do you have some alternative > > > proposal ? > > > > > > If you think my planned approach basically is a good one, > > > do you have > > > any supporting advices, on issues I possibly did not > > > consider ? > > > > > > THis is becoming a dcisive isuue for the success of our > > > whole project, > > > and therefore we will be most grateful for any hint ! > > > > > > With kind regards, > > > > > > Rainer & Susanne Kalliany > > > > > > 2008-09-13, 23:25 UTC > > > -- > > > DI. Rainer Kalliany - rainer at kalliany.at > > > > > > TeFiS - www.tefis.at > > > Technische und forstliche Informationssysteme (Forstliche > > > Software, GIS) > > > KALLIANY - www.kalliany.at > > > Ingenieurb?ro f?r Vermessungswesen (Photogrammetrie, > > > Fernerkundung, GPS) > > > > > > Mobiltelephon: +43 664 1811098 > > > Telephon: +43 316 931746-0, Fax: -15 > > > > > > A-8010 Graz, Schillerstrasse 58 > > > A-1040 Wien, Schaumburgergasse 11/13 > > > AUSTRIA > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > DI. Rainer Kalliany - rainer at kalliany.at > > TeFiS - www.tefis.at > Technische und forstliche Informationssysteme (Forstliche > Software, GIS) KALLIANY - www.kalliany.at Ingenieurb?ro f?r > Vermessungswesen (Photogrammetrie, Fernerkundung, GPS) > > Mobiltelephon: +43 664 1811098 > Telephon: +43 316 931746-0, Fax: -15 > > A-8010 Graz, Schillerstrasse 58 > A-1040 Wien, Schaumburgergasse 11/13 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From dzizes451 at gmail.com Tue Sep 16 02:00:30 2008 From: dzizes451 at gmail.com (dzizes451 at gmail.com) Date: Tue, 16 Sep 2008 11:00:30 +0200 Subject: [MAPSERVER-USERS] Debian Oracle10g OCI In-Reply-To: <75b4b93e0809160151q6ce1b62cscb803d8e7160400e@mail.gmail.com> References: <484196.41437.qm@web51405.mail.re2.yahoo.com> <75b4b93e0809160151q6ce1b62cscb803d8e7160400e@mail.gmail.com> Message-ID: Thanks for the tip! The Makefile looks like: -------------- Compiler Info ------------- C compiler: gcc -O2 -fPIC -Wall C++ compiler: g++ -O2 -fPIC -Wall Debug: Generic NINT: -------------- Renderer Settings --------- zlib support: -DUSE_ZLIB png support: palette rgba png support: jpeg support: iconv support: -DUSE_ICONV AGG support: AGG Freetype support: Ming(flash) support: PDFLib support: -------------- Support Libraries --------- Proj.4 support: -DUSE_PROJ Libxml2 support: FriBidi support: Curl support: -DUSE_CURL FastCGI support: Threading support: -DUSE_THREAD GEOS support: -------------- Data Format Drivers ------- native tiff support: PostGIS support: EPPL7 support: -DUSE_EPPL ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL Oracle Spatial support: -DUSE_ORACLESPATIAL -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: WFS Client: -DUSE_WMS_LYR WCS Server: SOS Server: -------------- MapScript ----------------- PHP MapScript: no the make command throws the following error: warning: libnnz10.so, needed by /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so, not found (try using -rpath or -rpath-link) /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: undefined reference to `nztSearchNZDefault' /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: undefined reference to `nzosCipherSpecToStr' /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: undefined reference to `nztwOpenWallet' /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: undefined reference to `A_X931RandomInit' .... ends with collect2: ld returned 1 exit status make: *** [shp2img] Error 1 any ideas! -- Micha? 2008/9/16 Umberto Nicoletti > Usign tiff AND gdal is not recommended, you'd better try these options: > > ./configure > -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server > -with-proj -with-wfsclient -with-wmsclient -with-gdal -with-ogr > -with-threads -with-freetype -without-tiff -with-FastCGI > > as for the expat error: > > sudo apt-get install libexpat1 libexpat1-dev > > Umberto > > 2008/9/16 : > > Hi again, > > > > I've tried to compile mapserv executable with: > > > > ./configure > > -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server > > -with-proj -with-wfsclient -with-wmsclient -with-gdal -with-ogr > > -with-threads -with-freetype -with-tiff -with-FastCGI > > > > and I receive this error: > > > > /usr/bin/ld: cannot find -lexpat > > collect2: ld returned 1 exit status > > make: *** [shp2img] Error 1 > > > > Does anyone know what is wrong? > > > > -- > > Micha? > > > > > > On Mon, Sep 15, 2008 at 3:16 PM, Dan Little wrote: > >> > >> Umberto is right, for Mapserver to connect to Oracle you need to specify > >> that capability at compile time. But for you ge tthat far I think you > need > >> to make sure that some of the basics work. > >> > >> Also, if you cannot connect to Oracle via SQL*Plus (assuming the binary > is > >> installed) you have other problems including but not limited to: > >> - needing to set the LD_LIBRARY_PATH to include all the libraries. This > >> may also need to be done in Apache while running mapserver to access > Oracle. > >> - needing to configure your TNSNAMES file. > >> - check firewall setting in order to make sure you can connect on 1521 > (or > >> whatever port you are using for Oracle). > >> > >> Generally, when running an Oracle layer, you want to try the following > >> diagnostic steps: > >> 1) Use SQL Developer to connect to the database (it has it's own drivers > >> built in, so there's no software dependency issues). This will resolve > >> whether or not the databas is working. > >> 2) On the machine, try connecting with SQL Plus. This will determine > >> whether or not you have your client configured correctly. Do not move > on > >> until this works. > >> 3) Try and re-compile Mapserver with Oracle Spatial. At the end of the > >> ./configure script there is an output screen, ensure that you see Oracle > is > >> turned on, otherwise scroll up in the screen and see what's missing. > >> > >> > >> > >> ----- Original Message ---- > >> > From: Umberto Nicoletti > >> > To: dzizes > >> > Cc: mapserver-users at lists.osgeo.org > >> > Sent: Monday, September 15, 2008 7:45:48 AM > >> > Subject: Re: [MAPSERVER-USERS] Debian Oracle10g OCI > >> > > >> > You have to recompile mapserver with the: > >> > > >> > --with-oraclespatial=[path to oracle home] > >> > > >> > option. That's all that is needed to enable oracle spatial support in > >> > mapserver. > >> > > >> > HTH, > >> > Umberto > >> > > >> > On Mon, Sep 15, 2008 at 2:05 PM, dzizes wrote: > >> > > > >> > > Hi, > >> > > > >> > > I've installed mapserver on Debian (lenny distribution). I've > managed > >> > > to > >> > > create mapfile based on shp data and successfully send a wms request > >> > > to get > >> > > a map. I seems that mapserver works fine. > >> > > > >> > > I've also installed oracle-ex and I can connect to my Oracle via > >> > > sqlplus. > >> > > However, when I request wms (to a map file pointing to Oracle10g) I > >> > > receive > >> > > the following: > >> > > > >> > > msDrawMap(): Image handling error. Failed to draw layer named > 'test'. > >> > > msOracleSpatialLayerOpen(): OracleSpatial error. OracleSpatial is > not > >> > > supported > >> > > > >> > > I've found that I need OCI installed and configured properly, but > >> > > there is > >> > > no clear tutorial. > >> > > Please provide me a some step by step guide. > >> > > > >> > > Greets, > >> > > Michal > >> > > > >> > > -- > >> > > View this message in context: > >> > http://www.nabble.com/Debian-Oracle10g-OCI-tp19491636p19491636.html > >> > > Sent from the Mapserver - User mailing list archive at Nabble.com. > >> > > > >> > > _______________________________________________ > >> > > mapserver-users mailing list > >> > > mapserver-users at lists.osgeo.org > >> > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > > >> > _______________________________________________ > >> > mapserver-users mailing list > >> > mapserver-users at lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> > >> > >> > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at gmail.com Tue Sep 16 02:14:22 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Tue, 16 Sep 2008 11:14:22 +0200 Subject: [MAPSERVER-USERS] Debian Oracle10g OCI In-Reply-To: References: <484196.41437.qm@web51405.mail.re2.yahoo.com> <75b4b93e0809160151q6ce1b62cscb803d8e7160400e@mail.gmail.com> Message-ID: <75b4b93e0809160214l6bf4220dja8384c3b6f7aa282@mail.gmail.com> try: -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2.0 otherwise post the config.log file. Umberto 2008/9/16 : > Thanks for the tip! > The Makefile looks like: > -------------- Compiler Info ------------- > C compiler: gcc -O2 -fPIC -Wall > C++ compiler: g++ -O2 -fPIC -Wall > Debug: > Generic NINT: > > -------------- Renderer Settings --------- > zlib support: -DUSE_ZLIB > png support: > palette rgba png support: > jpeg support: > iconv support: -DUSE_ICONV > AGG support: > AGG Freetype support: > Ming(flash) support: > PDFLib support: > > -------------- Support Libraries --------- > Proj.4 support: -DUSE_PROJ > Libxml2 support: > FriBidi support: > Curl support: -DUSE_CURL > FastCGI support: > Threading support: -DUSE_THREAD > GEOS support: > > -------------- Data Format Drivers ------- > native tiff support: > PostGIS support: > EPPL7 support: -DUSE_EPPL > ArcSDE support: > OGR support: -DUSE_OGR > GDAL support: -DUSE_GDAL > Oracle Spatial support: -DUSE_ORACLESPATIAL > > -------------- OGC Services -------------- > WMS Server: -DUSE_WMS_SVR > WMS Client: -DUSE_WMS_LYR > WFS Server: > WFS Client: -DUSE_WMS_LYR > WCS Server: > SOS Server: > > -------------- MapScript ----------------- > PHP MapScript: no > > the make command throws the following error: > > warning: libnnz10.so, needed by > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so, not > found (try using -rpath or -rpath-link) > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > undefined reference to `nztSearchNZDefault' > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > undefined reference to `nzosCipherSpecToStr' > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > undefined reference to `nztwOpenWallet' > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > undefined reference to `A_X931RandomInit' > .... > ends with > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > any ideas! > > -- > Micha? > > > 2008/9/16 Umberto Nicoletti >> >> Usign tiff AND gdal is not recommended, you'd better try these options: >> >> ./configure >> -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server >> -with-proj -with-wfsclient -with-wmsclient -with-gdal -with-ogr >> -with-threads -with-freetype -without-tiff -with-FastCGI >> >> as for the expat error: >> >> sudo apt-get install libexpat1 libexpat1-dev >> >> Umberto >> >> 2008/9/16 : >> > Hi again, >> > >> > I've tried to compile mapserv executable with: >> > >> > ./configure >> > -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server >> > -with-proj -with-wfsclient -with-wmsclient -with-gdal -with-ogr >> > -with-threads -with-freetype -with-tiff -with-FastCGI >> > >> > and I receive this error: >> > >> > /usr/bin/ld: cannot find -lexpat >> > collect2: ld returned 1 exit status >> > make: *** [shp2img] Error 1 >> > >> > Does anyone know what is wrong? >> > >> > -- >> > Micha? >> > >> > >> > On Mon, Sep 15, 2008 at 3:16 PM, Dan Little wrote: >> >> >> >> Umberto is right, for Mapserver to connect to Oracle you need to >> >> specify >> >> that capability at compile time. But for you ge tthat far I think you >> >> need >> >> to make sure that some of the basics work. >> >> >> >> Also, if you cannot connect to Oracle via SQL*Plus (assuming the binary >> >> is >> >> installed) you have other problems including but not limited to: >> >> - needing to set the LD_LIBRARY_PATH to include all the libraries. >> >> This >> >> may also need to be done in Apache while running mapserver to access >> >> Oracle. >> >> - needing to configure your TNSNAMES file. >> >> - check firewall setting in order to make sure you can connect on 1521 >> >> (or >> >> whatever port you are using for Oracle). >> >> >> >> Generally, when running an Oracle layer, you want to try the following >> >> diagnostic steps: >> >> 1) Use SQL Developer to connect to the database (it has it's own >> >> drivers >> >> built in, so there's no software dependency issues). This will resolve >> >> whether or not the databas is working. >> >> 2) On the machine, try connecting with SQL Plus. This will determine >> >> whether or not you have your client configured correctly. Do not move >> >> on >> >> until this works. >> >> 3) Try and re-compile Mapserver with Oracle Spatial. At the end of the >> >> ./configure script there is an output screen, ensure that you see >> >> Oracle is >> >> turned on, otherwise scroll up in the screen and see what's missing. >> >> >> >> >> >> >> >> ----- Original Message ---- >> >> > From: Umberto Nicoletti >> >> > To: dzizes >> >> > Cc: mapserver-users at lists.osgeo.org >> >> > Sent: Monday, September 15, 2008 7:45:48 AM >> >> > Subject: Re: [MAPSERVER-USERS] Debian Oracle10g OCI >> >> > >> >> > You have to recompile mapserver with the: >> >> > >> >> > --with-oraclespatial=[path to oracle home] >> >> > >> >> > option. That's all that is needed to enable oracle spatial support in >> >> > mapserver. >> >> > >> >> > HTH, >> >> > Umberto >> >> > >> >> > On Mon, Sep 15, 2008 at 2:05 PM, dzizes wrote: >> >> > > >> >> > > Hi, >> >> > > >> >> > > I've installed mapserver on Debian (lenny distribution). I've >> >> > > managed >> >> > > to >> >> > > create mapfile based on shp data and successfully send a wms >> >> > > request >> >> > > to get >> >> > > a map. I seems that mapserver works fine. >> >> > > >> >> > > I've also installed oracle-ex and I can connect to my Oracle via >> >> > > sqlplus. >> >> > > However, when I request wms (to a map file pointing to Oracle10g) I >> >> > > receive >> >> > > the following: >> >> > > >> >> > > msDrawMap(): Image handling error. Failed to draw layer named >> >> > > 'test'. >> >> > > msOracleSpatialLayerOpen(): OracleSpatial error. OracleSpatial is >> >> > > not >> >> > > supported >> >> > > >> >> > > I've found that I need OCI installed and configured properly, but >> >> > > there is >> >> > > no clear tutorial. >> >> > > Please provide me a some step by step guide. >> >> > > >> >> > > Greets, >> >> > > Michal >> >> > > >> >> > > -- >> >> > > View this message in context: >> >> > http://www.nabble.com/Debian-Oracle10g-OCI-tp19491636p19491636.html >> >> > > Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> > > >> >> > > _______________________________________________ >> >> > > mapserver-users mailing list >> >> > > mapserver-users at lists.osgeo.org >> >> > > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > >> >> > _______________________________________________ >> >> > mapserver-users mailing list >> >> > mapserver-users at lists.osgeo.org >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> >> >> >> >> > >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > > > From umberto.nicoletti at gmail.com Tue Sep 16 02:29:50 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Tue, 16 Sep 2008 11:29:50 +0200 Subject: [MAPSERVER-USERS] Debian Oracle10g OCI In-Reply-To: References: <484196.41437.qm@web51405.mail.re2.yahoo.com> <75b4b93e0809160151q6ce1b62cscb803d8e7160400e@mail.gmail.com> <75b4b93e0809160214l6bf4220dja8384c3b6f7aa282@mail.gmail.com> Message-ID: <75b4b93e0809160229q422de9cbs129c924bedc28be7@mail.gmail.com> Revert configure to the previous oraclespatial setting and try: export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server before configure. Umberto 2008/9/16 : > Now I get: > > checking if OracleSpatial support requested... yes, user supplied > ORACLE_HOME > configure: error: Oracle Spatial: libclntsh.so not found. > > I enclose the config.log. > > -- > Micha? > > > 2008/9/16 Umberto Nicoletti >> >> try: >> >> -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2.0 >> >> otherwise post the config.log file. >> >> Umberto >> >> 2008/9/16 : >> > Thanks for the tip! >> > The Makefile looks like: >> > -------------- Compiler Info ------------- >> > C compiler: gcc -O2 -fPIC -Wall >> > C++ compiler: g++ -O2 -fPIC -Wall >> > Debug: >> > Generic NINT: >> > >> > -------------- Renderer Settings --------- >> > zlib support: -DUSE_ZLIB >> > png support: >> > palette rgba png support: >> > jpeg support: >> > iconv support: -DUSE_ICONV >> > AGG support: >> > AGG Freetype support: >> > Ming(flash) support: >> > PDFLib support: >> > >> > -------------- Support Libraries --------- >> > Proj.4 support: -DUSE_PROJ >> > Libxml2 support: >> > FriBidi support: >> > Curl support: -DUSE_CURL >> > FastCGI support: >> > Threading support: -DUSE_THREAD >> > GEOS support: >> > >> > -------------- Data Format Drivers ------- >> > native tiff support: >> > PostGIS support: >> > EPPL7 support: -DUSE_EPPL >> > ArcSDE support: >> > OGR support: -DUSE_OGR >> > GDAL support: -DUSE_GDAL >> > Oracle Spatial support: -DUSE_ORACLESPATIAL >> > >> > -------------- OGC Services -------------- >> > WMS Server: -DUSE_WMS_SVR >> > WMS Client: -DUSE_WMS_LYR >> > WFS Server: >> > WFS Client: -DUSE_WMS_LYR >> > WCS Server: >> > SOS Server: >> > >> > -------------- MapScript ----------------- >> > PHP MapScript: no >> > >> > the make command throws the following error: >> > >> > warning: libnnz10.so, needed by >> > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so, >> > not >> > found (try using -rpath or -rpath-link) >> > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: >> > undefined reference to `nztSearchNZDefault' >> > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: >> > undefined reference to `nzosCipherSpecToStr' >> > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: >> > undefined reference to `nztwOpenWallet' >> > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: >> > undefined reference to `A_X931RandomInit' >> > .... >> > ends with >> > collect2: ld returned 1 exit status >> > make: *** [shp2img] Error 1 >> > >> > any ideas! >> > >> > -- >> > Micha? >> > >> > >> > 2008/9/16 Umberto Nicoletti >> >> >> >> Usign tiff AND gdal is not recommended, you'd better try these options: >> >> >> >> ./configure >> >> -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server >> >> -with-proj -with-wfsclient -with-wmsclient -with-gdal -with-ogr >> >> -with-threads -with-freetype -without-tiff -with-FastCGI >> >> >> >> as for the expat error: >> >> >> >> sudo apt-get install libexpat1 libexpat1-dev >> >> >> >> Umberto >> >> >> >> 2008/9/16 : >> >> > Hi again, >> >> > >> >> > I've tried to compile mapserv executable with: >> >> > >> >> > ./configure >> >> > >> >> > -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server >> >> > -with-proj -with-wfsclient -with-wmsclient -with-gdal -with-ogr >> >> > -with-threads -with-freetype -with-tiff -with-FastCGI >> >> > >> >> > and I receive this error: >> >> > >> >> > /usr/bin/ld: cannot find -lexpat >> >> > collect2: ld returned 1 exit status >> >> > make: *** [shp2img] Error 1 >> >> > >> >> > Does anyone know what is wrong? >> >> > >> >> > -- >> >> > Micha? >> >> > >> >> > >> >> > On Mon, Sep 15, 2008 at 3:16 PM, Dan Little >> >> > wrote: >> >> >> >> >> >> Umberto is right, for Mapserver to connect to Oracle you need to >> >> >> specify >> >> >> that capability at compile time. But for you ge tthat far I think >> >> >> you >> >> >> need >> >> >> to make sure that some of the basics work. >> >> >> >> >> >> Also, if you cannot connect to Oracle via SQL*Plus (assuming the >> >> >> binary >> >> >> is >> >> >> installed) you have other problems including but not limited to: >> >> >> - needing to set the LD_LIBRARY_PATH to include all the libraries. >> >> >> This >> >> >> may also need to be done in Apache while running mapserver to access >> >> >> Oracle. >> >> >> - needing to configure your TNSNAMES file. >> >> >> - check firewall setting in order to make sure you can connect on >> >> >> 1521 >> >> >> (or >> >> >> whatever port you are using for Oracle). >> >> >> >> >> >> Generally, when running an Oracle layer, you want to try the >> >> >> following >> >> >> diagnostic steps: >> >> >> 1) Use SQL Developer to connect to the database (it has it's own >> >> >> drivers >> >> >> built in, so there's no software dependency issues). This will >> >> >> resolve >> >> >> whether or not the databas is working. >> >> >> 2) On the machine, try connecting with SQL Plus. This will >> >> >> determine >> >> >> whether or not you have your client configured correctly. Do not >> >> >> move >> >> >> on >> >> >> until this works. >> >> >> 3) Try and re-compile Mapserver with Oracle Spatial. At the end of >> >> >> the >> >> >> ./configure script there is an output screen, ensure that you see >> >> >> Oracle is >> >> >> turned on, otherwise scroll up in the screen and see what's missing. >> >> >> >> >> >> >> >> >> >> >> >> ----- Original Message ---- >> >> >> > From: Umberto Nicoletti >> >> >> > To: dzizes >> >> >> > Cc: mapserver-users at lists.osgeo.org >> >> >> > Sent: Monday, September 15, 2008 7:45:48 AM >> >> >> > Subject: Re: [MAPSERVER-USERS] Debian Oracle10g OCI >> >> >> > >> >> >> > You have to recompile mapserver with the: >> >> >> > >> >> >> > --with-oraclespatial=[path to oracle home] >> >> >> > >> >> >> > option. That's all that is needed to enable oracle spatial support >> >> >> > in >> >> >> > mapserver. >> >> >> > >> >> >> > HTH, >> >> >> > Umberto >> >> >> > >> >> >> > On Mon, Sep 15, 2008 at 2:05 PM, dzizes wrote: >> >> >> > > >> >> >> > > Hi, >> >> >> > > >> >> >> > > I've installed mapserver on Debian (lenny distribution). I've >> >> >> > > managed >> >> >> > > to >> >> >> > > create mapfile based on shp data and successfully send a wms >> >> >> > > request >> >> >> > > to get >> >> >> > > a map. I seems that mapserver works fine. >> >> >> > > >> >> >> > > I've also installed oracle-ex and I can connect to my Oracle via >> >> >> > > sqlplus. >> >> >> > > However, when I request wms (to a map file pointing to >> >> >> > > Oracle10g) I >> >> >> > > receive >> >> >> > > the following: >> >> >> > > >> >> >> > > msDrawMap(): Image handling error. Failed to draw layer named >> >> >> > > 'test'. >> >> >> > > msOracleSpatialLayerOpen(): OracleSpatial error. OracleSpatial >> >> >> > > is >> >> >> > > not >> >> >> > > supported >> >> >> > > >> >> >> > > I've found that I need OCI installed and configured properly, >> >> >> > > but >> >> >> > > there is >> >> >> > > no clear tutorial. >> >> >> > > Please provide me a some step by step guide. >> >> >> > > >> >> >> > > Greets, >> >> >> > > Michal >> >> >> > > >> >> >> > > -- >> >> >> > > View this message in context: >> >> >> > >> >> >> > http://www.nabble.com/Debian-Oracle10g-OCI-tp19491636p19491636.html >> >> >> > > Sent from the Mapserver - User mailing list archive at >> >> >> > > Nabble.com. >> >> >> > > >> >> >> > > _______________________________________________ >> >> >> > > mapserver-users mailing list >> >> >> > > mapserver-users at lists.osgeo.org >> >> >> > > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > > >> >> >> > _______________________________________________ >> >> >> > mapserver-users mailing list >> >> >> > mapserver-users at lists.osgeo.org >> >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> >> >> >> >> >> >> >> >> >> > >> >> > >> >> > _______________________________________________ >> >> > mapserver-users mailing list >> >> > mapserver-users at lists.osgeo.org >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > >> >> > >> > >> > > > From dzizes451 at gmail.com Tue Sep 16 02:42:39 2008 From: dzizes451 at gmail.com (dzizes451 at gmail.com) Date: Tue, 16 Sep 2008 11:42:39 +0200 Subject: [MAPSERVER-USERS] Debian Oracle10g OCI In-Reply-To: <75b4b93e0809160229q422de9cbs129c924bedc28be7@mail.gmail.com> References: <484196.41437.qm@web51405.mail.re2.yahoo.com> <75b4b93e0809160151q6ce1b62cscb803d8e7160400e@mail.gmail.com> <75b4b93e0809160214l6bf4220dja8384c3b6f7aa282@mail.gmail.com> <75b4b93e0809160229q422de9cbs129c924bedc28be7@mail.gmail.com> Message-ID: Makefile generates without any problems, but when executing make command I receive: /usr/bin/ld: warning: libnnz10.so, needed by /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so, not found (try using -rpath or -rpath-link) /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: undefined reference to `nztSearchNZDefault' /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: undefined reference to `nzosCipherSpecToStr' /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: undefined reference to `nztwOpenWallet' /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: undefined reference to `A_X931RandomInit' /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: undefined reference to `nzosgpc_GetProtocolVer' /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: undefined reference to `nzos_DisableClientAuthentication' /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: undefined reference to `nzduui2_destroy_ui' -------- ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server LD_LIBRARY_PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin LOGNAME=root -- Micha? 2008/9/16 Umberto Nicoletti > Revert configure to the previous oraclespatial setting and try: > > export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server > > before configure. > > Umberto > > > 2008/9/16 : > > Now I get: > > > > checking if OracleSpatial support requested... yes, user supplied > > ORACLE_HOME > > configure: error: Oracle Spatial: libclntsh.so not found. > > > > I enclose the config.log. > > > > -- > > Micha? > > > > > > 2008/9/16 Umberto Nicoletti > >> > >> try: > >> > >> -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2.0 > >> > >> otherwise post the config.log file. > >> > >> Umberto > >> > >> 2008/9/16 : > >> > Thanks for the tip! > >> > The Makefile looks like: > >> > -------------- Compiler Info ------------- > >> > C compiler: gcc -O2 -fPIC -Wall > >> > C++ compiler: g++ -O2 -fPIC -Wall > >> > Debug: > >> > Generic NINT: > >> > > >> > -------------- Renderer Settings --------- > >> > zlib support: -DUSE_ZLIB > >> > png support: > >> > palette rgba png support: > >> > jpeg support: > >> > iconv support: -DUSE_ICONV > >> > AGG support: > >> > AGG Freetype support: > >> > Ming(flash) support: > >> > PDFLib support: > >> > > >> > -------------- Support Libraries --------- > >> > Proj.4 support: -DUSE_PROJ > >> > Libxml2 support: > >> > FriBidi support: > >> > Curl support: -DUSE_CURL > >> > FastCGI support: > >> > Threading support: -DUSE_THREAD > >> > GEOS support: > >> > > >> > -------------- Data Format Drivers ------- > >> > native tiff support: > >> > PostGIS support: > >> > EPPL7 support: -DUSE_EPPL > >> > ArcSDE support: > >> > OGR support: -DUSE_OGR > >> > GDAL support: -DUSE_GDAL > >> > Oracle Spatial support: -DUSE_ORACLESPATIAL > >> > > >> > -------------- OGC Services -------------- > >> > WMS Server: -DUSE_WMS_SVR > >> > WMS Client: -DUSE_WMS_LYR > >> > WFS Server: > >> > WFS Client: -DUSE_WMS_LYR > >> > WCS Server: > >> > SOS Server: > >> > > >> > -------------- MapScript ----------------- > >> > PHP MapScript: no > >> > > >> > the make command throws the following error: > >> > > >> > warning: libnnz10.so, needed by > >> > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so, > >> > not > >> > found (try using -rpath or -rpath-link) > >> > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > >> > undefined reference to `nztSearchNZDefault' > >> > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > >> > undefined reference to `nzosCipherSpecToStr' > >> > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > >> > undefined reference to `nztwOpenWallet' > >> > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > >> > undefined reference to `A_X931RandomInit' > >> > .... > >> > ends with > >> > collect2: ld returned 1 exit status > >> > make: *** [shp2img] Error 1 > >> > > >> > any ideas! > >> > > >> > -- > >> > Micha? > >> > > >> > > >> > 2008/9/16 Umberto Nicoletti > >> >> > >> >> Usign tiff AND gdal is not recommended, you'd better try these > options: > >> >> > >> >> ./configure > >> >> > -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server > >> >> -with-proj -with-wfsclient -with-wmsclient -with-gdal -with-ogr > >> >> -with-threads -with-freetype -without-tiff -with-FastCGI > >> >> > >> >> as for the expat error: > >> >> > >> >> sudo apt-get install libexpat1 libexpat1-dev > >> >> > >> >> Umberto > >> >> > >> >> 2008/9/16 : > >> >> > Hi again, > >> >> > > >> >> > I've tried to compile mapserv executable with: > >> >> > > >> >> > ./configure > >> >> > > >> >> > > -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server > >> >> > -with-proj -with-wfsclient -with-wmsclient -with-gdal -with-ogr > >> >> > -with-threads -with-freetype -with-tiff -with-FastCGI > >> >> > > >> >> > and I receive this error: > >> >> > > >> >> > /usr/bin/ld: cannot find -lexpat > >> >> > collect2: ld returned 1 exit status > >> >> > make: *** [shp2img] Error 1 > >> >> > > >> >> > Does anyone know what is wrong? > >> >> > > >> >> > -- > >> >> > Micha? > >> >> > > >> >> > > >> >> > On Mon, Sep 15, 2008 at 3:16 PM, Dan Little > >> >> > wrote: > >> >> >> > >> >> >> Umberto is right, for Mapserver to connect to Oracle you need to > >> >> >> specify > >> >> >> that capability at compile time. But for you ge tthat far I think > >> >> >> you > >> >> >> need > >> >> >> to make sure that some of the basics work. > >> >> >> > >> >> >> Also, if you cannot connect to Oracle via SQL*Plus (assuming the > >> >> >> binary > >> >> >> is > >> >> >> installed) you have other problems including but not limited to: > >> >> >> - needing to set the LD_LIBRARY_PATH to include all the libraries. > >> >> >> This > >> >> >> may also need to be done in Apache while running mapserver to > access > >> >> >> Oracle. > >> >> >> - needing to configure your TNSNAMES file. > >> >> >> - check firewall setting in order to make sure you can connect on > >> >> >> 1521 > >> >> >> (or > >> >> >> whatever port you are using for Oracle). > >> >> >> > >> >> >> Generally, when running an Oracle layer, you want to try the > >> >> >> following > >> >> >> diagnostic steps: > >> >> >> 1) Use SQL Developer to connect to the database (it has it's own > >> >> >> drivers > >> >> >> built in, so there's no software dependency issues). This will > >> >> >> resolve > >> >> >> whether or not the databas is working. > >> >> >> 2) On the machine, try connecting with SQL Plus. This will > >> >> >> determine > >> >> >> whether or not you have your client configured correctly. Do not > >> >> >> move > >> >> >> on > >> >> >> until this works. > >> >> >> 3) Try and re-compile Mapserver with Oracle Spatial. At the end > of > >> >> >> the > >> >> >> ./configure script there is an output screen, ensure that you see > >> >> >> Oracle is > >> >> >> turned on, otherwise scroll up in the screen and see what's > missing. > >> >> >> > >> >> >> > >> >> >> > >> >> >> ----- Original Message ---- > >> >> >> > From: Umberto Nicoletti > >> >> >> > To: dzizes > >> >> >> > Cc: mapserver-users at lists.osgeo.org > >> >> >> > Sent: Monday, September 15, 2008 7:45:48 AM > >> >> >> > Subject: Re: [MAPSERVER-USERS] Debian Oracle10g OCI > >> >> >> > > >> >> >> > You have to recompile mapserver with the: > >> >> >> > > >> >> >> > --with-oraclespatial=[path to oracle home] > >> >> >> > > >> >> >> > option. That's all that is needed to enable oracle spatial > support > >> >> >> > in > >> >> >> > mapserver. > >> >> >> > > >> >> >> > HTH, > >> >> >> > Umberto > >> >> >> > > >> >> >> > On Mon, Sep 15, 2008 at 2:05 PM, dzizes wrote: > >> >> >> > > > >> >> >> > > Hi, > >> >> >> > > > >> >> >> > > I've installed mapserver on Debian (lenny distribution). I've > >> >> >> > > managed > >> >> >> > > to > >> >> >> > > create mapfile based on shp data and successfully send a wms > >> >> >> > > request > >> >> >> > > to get > >> >> >> > > a map. I seems that mapserver works fine. > >> >> >> > > > >> >> >> > > I've also installed oracle-ex and I can connect to my Oracle > via > >> >> >> > > sqlplus. > >> >> >> > > However, when I request wms (to a map file pointing to > >> >> >> > > Oracle10g) I > >> >> >> > > receive > >> >> >> > > the following: > >> >> >> > > > >> >> >> > > msDrawMap(): Image handling error. Failed to draw layer named > >> >> >> > > 'test'. > >> >> >> > > msOracleSpatialLayerOpen(): OracleSpatial error. OracleSpatial > >> >> >> > > is > >> >> >> > > not > >> >> >> > > supported > >> >> >> > > > >> >> >> > > I've found that I need OCI installed and configured properly, > >> >> >> > > but > >> >> >> > > there is > >> >> >> > > no clear tutorial. > >> >> >> > > Please provide me a some step by step guide. > >> >> >> > > > >> >> >> > > Greets, > >> >> >> > > Michal > >> >> >> > > > >> >> >> > > -- > >> >> >> > > View this message in context: > >> >> >> > > >> >> >> > > http://www.nabble.com/Debian-Oracle10g-OCI-tp19491636p19491636.html > >> >> >> > > Sent from the Mapserver - User mailing list archive at > >> >> >> > > Nabble.com. > >> >> >> > > > >> >> >> > > _______________________________________________ > >> >> >> > > mapserver-users mailing list > >> >> >> > > mapserver-users at lists.osgeo.org > >> >> >> > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> >> > > > >> >> >> > _______________________________________________ > >> >> >> > mapserver-users mailing list > >> >> >> > mapserver-users at lists.osgeo.org > >> >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> > > >> >> > > >> >> > _______________________________________________ > >> >> > mapserver-users mailing list > >> >> > mapserver-users at lists.osgeo.org > >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> > > >> >> > > >> > > >> > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From darenas2001 at yahoo.es Tue Sep 16 02:50:43 2008 From: darenas2001 at yahoo.es (daa32) Date: Tue, 16 Sep 2008 02:50:43 -0700 (PDT) Subject: [MAPSERVER-USERS] How to use SLD with WFS Message-ID: <19508664.post@talk.nabble.com> Hi everyone!, I?m trying to serve a WFS service. I?ve already generate the SLD associated with the layers. But I don?t know how to link my map file with SLD...I suppose there must be some metadata like wms_sld_url, wms_sld_body....or something similar..... Any ideas or examples, please? Thanks a lot -- View this message in context: http://www.nabble.com/How-to-use-SLD-with-WFS-tp19508664p19508664.html Sent from the Mapserver - User mailing list archive at Nabble.com. From umberto.nicoletti at gmail.com Tue Sep 16 02:55:19 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Tue, 16 Sep 2008 11:55:19 +0200 Subject: [MAPSERVER-USERS] Debian Oracle10g OCI In-Reply-To: References: <484196.41437.qm@web51405.mail.re2.yahoo.com> <75b4b93e0809160151q6ce1b62cscb803d8e7160400e@mail.gmail.com> <75b4b93e0809160214l6bf4220dja8384c3b6f7aa282@mail.gmail.com> <75b4b93e0809160229q422de9cbs129c924bedc28be7@mail.gmail.com> Message-ID: <75b4b93e0809160255j435caa17ge112dc6ba32fa420@mail.gmail.com> I'm at a complete loss here. I assume there is a problem with your oracle install. did you run /etc/init.d/oracle-xe configure? Umberto 2008/9/16 : > Makefile generates without any problems, but when executing make command I > receive: > > /usr/bin/ld: warning: libnnz10.so, needed by > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so, not > found (try using -rpath or -rpath-link) > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > undefined reference to `nztSearchNZDefault' > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > undefined reference to `nzosCipherSpecToStr' > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > undefined reference to `nztwOpenWallet' > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > undefined reference to `A_X931RandomInit' > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > undefined reference to `nzosgpc_GetProtocolVer' > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > undefined reference to `nzos_DisableClientAuthentication' > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > undefined reference to `nzduui2_destroy_ui' > > > -------- > ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server > LD_LIBRARY_PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin > LOGNAME=root > > > -- > Micha? > > > 2008/9/16 Umberto Nicoletti >> >> Revert configure to the previous oraclespatial setting and try: >> >> export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server >> >> before configure. >> >> Umberto >> >> >> 2008/9/16 : >> > Now I get: >> > >> > checking if OracleSpatial support requested... yes, user supplied >> > ORACLE_HOME >> > configure: error: Oracle Spatial: libclntsh.so not found. >> > >> > I enclose the config.log. >> > >> > -- >> > Micha? >> > >> > >> > 2008/9/16 Umberto Nicoletti >> >> >> >> try: >> >> >> >> -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2.0 >> >> >> >> otherwise post the config.log file. >> >> >> >> Umberto >> >> >> >> 2008/9/16 : >> >> > Thanks for the tip! >> >> > The Makefile looks like: >> >> > -------------- Compiler Info ------------- >> >> > C compiler: gcc -O2 -fPIC -Wall >> >> > C++ compiler: g++ -O2 -fPIC -Wall >> >> > Debug: >> >> > Generic NINT: >> >> > >> >> > -------------- Renderer Settings --------- >> >> > zlib support: -DUSE_ZLIB >> >> > png support: >> >> > palette rgba png support: >> >> > jpeg support: >> >> > iconv support: -DUSE_ICONV >> >> > AGG support: >> >> > AGG Freetype support: >> >> > Ming(flash) support: >> >> > PDFLib support: >> >> > >> >> > -------------- Support Libraries --------- >> >> > Proj.4 support: -DUSE_PROJ >> >> > Libxml2 support: >> >> > FriBidi support: >> >> > Curl support: -DUSE_CURL >> >> > FastCGI support: >> >> > Threading support: -DUSE_THREAD >> >> > GEOS support: >> >> > >> >> > -------------- Data Format Drivers ------- >> >> > native tiff support: >> >> > PostGIS support: >> >> > EPPL7 support: -DUSE_EPPL >> >> > ArcSDE support: >> >> > OGR support: -DUSE_OGR >> >> > GDAL support: -DUSE_GDAL >> >> > Oracle Spatial support: -DUSE_ORACLESPATIAL >> >> > >> >> > -------------- OGC Services -------------- >> >> > WMS Server: -DUSE_WMS_SVR >> >> > WMS Client: -DUSE_WMS_LYR >> >> > WFS Server: >> >> > WFS Client: -DUSE_WMS_LYR >> >> > WCS Server: >> >> > SOS Server: >> >> > >> >> > -------------- MapScript ----------------- >> >> > PHP MapScript: no >> >> > >> >> > the make command throws the following error: >> >> > >> >> > warning: libnnz10.so, needed by >> >> > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so, >> >> > not >> >> > found (try using -rpath or -rpath-link) >> >> > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: >> >> > undefined reference to `nztSearchNZDefault' >> >> > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: >> >> > undefined reference to `nzosCipherSpecToStr' >> >> > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: >> >> > undefined reference to `nztwOpenWallet' >> >> > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: >> >> > undefined reference to `A_X931RandomInit' >> >> > .... >> >> > ends with >> >> > collect2: ld returned 1 exit status >> >> > make: *** [shp2img] Error 1 >> >> > >> >> > any ideas! >> >> > >> >> > -- >> >> > Micha? >> >> > >> >> > >> >> > 2008/9/16 Umberto Nicoletti >> >> >> >> >> >> Usign tiff AND gdal is not recommended, you'd better try these >> >> >> options: >> >> >> >> >> >> ./configure >> >> >> >> >> >> -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server >> >> >> -with-proj -with-wfsclient -with-wmsclient -with-gdal -with-ogr >> >> >> -with-threads -with-freetype -without-tiff -with-FastCGI >> >> >> >> >> >> as for the expat error: >> >> >> >> >> >> sudo apt-get install libexpat1 libexpat1-dev >> >> >> >> >> >> Umberto >> >> >> >> >> >> 2008/9/16 : >> >> >> > Hi again, >> >> >> > >> >> >> > I've tried to compile mapserv executable with: >> >> >> > >> >> >> > ./configure >> >> >> > >> >> >> > >> >> >> > -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server >> >> >> > -with-proj -with-wfsclient -with-wmsclient -with-gdal -with-ogr >> >> >> > -with-threads -with-freetype -with-tiff -with-FastCGI >> >> >> > >> >> >> > and I receive this error: >> >> >> > >> >> >> > /usr/bin/ld: cannot find -lexpat >> >> >> > collect2: ld returned 1 exit status >> >> >> > make: *** [shp2img] Error 1 >> >> >> > >> >> >> > Does anyone know what is wrong? >> >> >> > >> >> >> > -- >> >> >> > Micha? >> >> >> > >> >> >> > >> >> >> > On Mon, Sep 15, 2008 at 3:16 PM, Dan Little >> >> >> > wrote: >> >> >> >> >> >> >> >> Umberto is right, for Mapserver to connect to Oracle you need to >> >> >> >> specify >> >> >> >> that capability at compile time. But for you ge tthat far I >> >> >> >> think >> >> >> >> you >> >> >> >> need >> >> >> >> to make sure that some of the basics work. >> >> >> >> >> >> >> >> Also, if you cannot connect to Oracle via SQL*Plus (assuming the >> >> >> >> binary >> >> >> >> is >> >> >> >> installed) you have other problems including but not limited to: >> >> >> >> - needing to set the LD_LIBRARY_PATH to include all the >> >> >> >> libraries. >> >> >> >> This >> >> >> >> may also need to be done in Apache while running mapserver to >> >> >> >> access >> >> >> >> Oracle. >> >> >> >> - needing to configure your TNSNAMES file. >> >> >> >> - check firewall setting in order to make sure you can connect on >> >> >> >> 1521 >> >> >> >> (or >> >> >> >> whatever port you are using for Oracle). >> >> >> >> >> >> >> >> Generally, when running an Oracle layer, you want to try the >> >> >> >> following >> >> >> >> diagnostic steps: >> >> >> >> 1) Use SQL Developer to connect to the database (it has it's own >> >> >> >> drivers >> >> >> >> built in, so there's no software dependency issues). This will >> >> >> >> resolve >> >> >> >> whether or not the databas is working. >> >> >> >> 2) On the machine, try connecting with SQL Plus. This will >> >> >> >> determine >> >> >> >> whether or not you have your client configured correctly. Do not >> >> >> >> move >> >> >> >> on >> >> >> >> until this works. >> >> >> >> 3) Try and re-compile Mapserver with Oracle Spatial. At the end >> >> >> >> of >> >> >> >> the >> >> >> >> ./configure script there is an output screen, ensure that you see >> >> >> >> Oracle is >> >> >> >> turned on, otherwise scroll up in the screen and see what's >> >> >> >> missing. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> ----- Original Message ---- >> >> >> >> > From: Umberto Nicoletti >> >> >> >> > To: dzizes >> >> >> >> > Cc: mapserver-users at lists.osgeo.org >> >> >> >> > Sent: Monday, September 15, 2008 7:45:48 AM >> >> >> >> > Subject: Re: [MAPSERVER-USERS] Debian Oracle10g OCI >> >> >> >> > >> >> >> >> > You have to recompile mapserver with the: >> >> >> >> > >> >> >> >> > --with-oraclespatial=[path to oracle home] >> >> >> >> > >> >> >> >> > option. That's all that is needed to enable oracle spatial >> >> >> >> > support >> >> >> >> > in >> >> >> >> > mapserver. >> >> >> >> > >> >> >> >> > HTH, >> >> >> >> > Umberto >> >> >> >> > >> >> >> >> > On Mon, Sep 15, 2008 at 2:05 PM, dzizes wrote: >> >> >> >> > > >> >> >> >> > > Hi, >> >> >> >> > > >> >> >> >> > > I've installed mapserver on Debian (lenny distribution). I've >> >> >> >> > > managed >> >> >> >> > > to >> >> >> >> > > create mapfile based on shp data and successfully send a wms >> >> >> >> > > request >> >> >> >> > > to get >> >> >> >> > > a map. I seems that mapserver works fine. >> >> >> >> > > >> >> >> >> > > I've also installed oracle-ex and I can connect to my Oracle >> >> >> >> > > via >> >> >> >> > > sqlplus. >> >> >> >> > > However, when I request wms (to a map file pointing to >> >> >> >> > > Oracle10g) I >> >> >> >> > > receive >> >> >> >> > > the following: >> >> >> >> > > >> >> >> >> > > msDrawMap(): Image handling error. Failed to draw layer named >> >> >> >> > > 'test'. >> >> >> >> > > msOracleSpatialLayerOpen(): OracleSpatial error. >> >> >> >> > > OracleSpatial >> >> >> >> > > is >> >> >> >> > > not >> >> >> >> > > supported >> >> >> >> > > >> >> >> >> > > I've found that I need OCI installed and configured properly, >> >> >> >> > > but >> >> >> >> > > there is >> >> >> >> > > no clear tutorial. >> >> >> >> > > Please provide me a some step by step guide. >> >> >> >> > > >> >> >> >> > > Greets, >> >> >> >> > > Michal >> >> >> >> > > >> >> >> >> > > -- >> >> >> >> > > View this message in context: >> >> >> >> > >> >> >> >> > >> >> >> >> > http://www.nabble.com/Debian-Oracle10g-OCI-tp19491636p19491636.html >> >> >> >> > > Sent from the Mapserver - User mailing list archive at >> >> >> >> > > Nabble.com. >> >> >> >> > > >> >> >> >> > > _______________________________________________ >> >> >> >> > > mapserver-users mailing list >> >> >> >> > > mapserver-users at lists.osgeo.org >> >> >> >> > > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> > > >> >> >> >> > _______________________________________________ >> >> >> >> > mapserver-users mailing list >> >> >> >> > mapserver-users at lists.osgeo.org >> >> >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > >> >> >> > >> >> >> > _______________________________________________ >> >> >> > mapserver-users mailing list >> >> >> > mapserver-users at lists.osgeo.org >> >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > >> >> >> > >> >> > >> >> > >> > >> > > > From l.dardini at comune.prato.it Tue Sep 16 03:02:03 2008 From: l.dardini at comune.prato.it (Leandro Dardini) Date: Tue, 16 Sep 2008 12:02:03 +0200 Subject: R: [MAPSERVER-USERS] Debian Oracle10g OCI In-Reply-To: <75b4b93e0809160255j435caa17ge112dc6ba32fa420@mail.gmail.com> References: <484196.41437.qm@web51405.mail.re2.yahoo.com><75b4b93e0809160151q6ce1b62cscb803d8e7160400e@mail.gmail.com><75b4b93e0809160214l6bf4220dja8384c3b6f7aa282@mail.gmail.com><75b4b93e0809160229q422de9cbs129c924bedc28be7@mail.gmail.com> <75b4b93e0809160255j435caa17ge112dc6ba32fa420@mail.gmail.com> Message-ID: <6F861500A5092B4C8CD653DE20A4AA0D96AE81@exchange3.comune.prato.local> I hate using the LD_LIBRARY_PATH trick. I think this is a work around for software developer to not take in to account different Linux software distribution. If you have a Lenny, add a file into /etc/ld.so.conf.d with the list of directory where special oracle library resides. Run ldconfig -v and check if library are correctly cached. Now run ldd /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so and check if all needed library are available. If a library is missing, run "updatedb; locate " and add the directory to the file in ld.so.conf.d directory. Repeat until all library are correctly defined. Leandro > -----Messaggio originale----- > Da: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Per conto di > Umberto Nicoletti > Inviato: marted? 16 settembre 2008 11.55 > A: dzizes451 at gmail.com > Cc: mapserver-users at lists.osgeo.org > Oggetto: Re: [MAPSERVER-USERS] Debian Oracle10g OCI > > I'm at a complete loss here. I assume there is a problem with > your oracle install. > did you run /etc/init.d/oracle-xe configure? > > Umberto > > 2008/9/16 : > > Makefile generates without any problems, but when executing make > > command I > > receive: > > > > /usr/bin/ld: warning: libnnz10.so, needed by > > > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so, > > not found (try using -rpath or -rpath-link) > > > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > > undefined reference to `nztSearchNZDefault' > > > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > > undefined reference to `nzosCipherSpecToStr' > > > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > > undefined reference to `nztwOpenWallet' > > > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > > undefined reference to `A_X931RandomInit' > > > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > > undefined reference to `nzosgpc_GetProtocolVer' > > > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > > undefined reference to `nzos_DisableClientAuthentication' > > > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > > undefined reference to `nzduui2_destroy_ui' > > > > > > -------- > > ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server > > > LD_LIBRARY_PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bi > > n PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin > > LOGNAME=root > > > > > > -- > > Micha? > > > > > > 2008/9/16 Umberto Nicoletti > >> > >> Revert configure to the previous oraclespatial setting and try: > >> > >> export > >> ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server > >> > >> before configure. > >> > >> Umberto > >> > >> > >> 2008/9/16 : > >> > Now I get: > >> > > >> > checking if OracleSpatial support requested... yes, user > supplied > >> > ORACLE_HOME > >> > configure: error: Oracle Spatial: libclntsh.so not found. > >> > > >> > I enclose the config.log. > >> > > >> > -- > >> > Micha? > >> > > >> > > >> > 2008/9/16 Umberto Nicoletti > >> >> > >> >> try: > >> >> > >> >> -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2.0 > >> >> > >> >> otherwise post the config.log file. > >> >> > >> >> Umberto > >> >> > >> >> 2008/9/16 : > >> >> > Thanks for the tip! > >> >> > The Makefile looks like: > >> >> > -------------- Compiler Info ------------- > >> >> > C compiler: gcc -O2 -fPIC -Wall > >> >> > C++ compiler: g++ -O2 -fPIC -Wall > >> >> > Debug: > >> >> > Generic NINT: > >> >> > > >> >> > -------------- Renderer Settings --------- > >> >> > zlib support: -DUSE_ZLIB > >> >> > png support: > >> >> > palette rgba png support: > >> >> > jpeg support: > >> >> > iconv support: -DUSE_ICONV > >> >> > AGG support: > >> >> > AGG Freetype support: > >> >> > Ming(flash) support: > >> >> > PDFLib support: > >> >> > > >> >> > -------------- Support Libraries --------- > >> >> > Proj.4 support: -DUSE_PROJ > >> >> > Libxml2 support: > >> >> > FriBidi support: > >> >> > Curl support: -DUSE_CURL > >> >> > FastCGI support: > >> >> > Threading support: -DUSE_THREAD > >> >> > GEOS support: > >> >> > > >> >> > -------------- Data Format Drivers ------- > >> >> > native tiff support: > >> >> > PostGIS support: > >> >> > EPPL7 support: -DUSE_EPPL > >> >> > ArcSDE support: > >> >> > OGR support: -DUSE_OGR > >> >> > GDAL support: -DUSE_GDAL > >> >> > Oracle Spatial support: -DUSE_ORACLESPATIAL > >> >> > > >> >> > -------------- OGC Services -------------- > >> >> > WMS Server: -DUSE_WMS_SVR > >> >> > WMS Client: -DUSE_WMS_LYR > >> >> > WFS Server: > >> >> > WFS Client: -DUSE_WMS_LYR > >> >> > WCS Server: > >> >> > SOS Server: > >> >> > > >> >> > -------------- MapScript ----------------- > >> >> > PHP MapScript: no > >> >> > > >> >> > the make command throws the following error: > >> >> > > >> >> > warning: libnnz10.so, needed by > >> >> > > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclnts > >> >> > h.so, > >> >> > not > >> >> > found (try using -rpath or -rpath-link) > >> >> > > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > >> >> > undefined reference to `nztSearchNZDefault' > >> >> > > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > >> >> > undefined reference to `nzosCipherSpecToStr' > >> >> > > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > >> >> > undefined reference to `nztwOpenWallet' > >> >> > > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > >> >> > undefined reference to `A_X931RandomInit' > >> >> > .... > >> >> > ends with > >> >> > collect2: ld returned 1 exit status > >> >> > make: *** [shp2img] Error 1 > >> >> > > >> >> > any ideas! > >> >> > > >> >> > -- > >> >> > Micha? > >> >> > > >> >> > > >> >> > 2008/9/16 Umberto Nicoletti > >> >> >> > >> >> >> Usign tiff AND gdal is not recommended, you'd better > try these > >> >> >> options: > >> >> >> > >> >> >> ./configure > >> >> >> > >> >> >> > -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2. > >> >> >> 0/server -with-proj -with-wfsclient -with-wmsclient > -with-gdal > >> >> >> -with-ogr -with-threads -with-freetype -without-tiff > >> >> >> -with-FastCGI > >> >> >> > >> >> >> as for the expat error: > >> >> >> > >> >> >> sudo apt-get install libexpat1 libexpat1-dev > >> >> >> > >> >> >> Umberto > >> >> >> > >> >> >> 2008/9/16 : > >> >> >> > Hi again, > >> >> >> > > >> >> >> > I've tried to compile mapserv executable with: > >> >> >> > > >> >> >> > ./configure > >> >> >> > > >> >> >> > > >> >> >> > > -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10. > >> >> >> > 2.0/server -with-proj -with-wfsclient -with-wmsclient > >> >> >> > -with-gdal -with-ogr -with-threads -with-freetype > -with-tiff > >> >> >> > -with-FastCGI > >> >> >> > > >> >> >> > and I receive this error: > >> >> >> > > >> >> >> > /usr/bin/ld: cannot find -lexpat > >> >> >> > collect2: ld returned 1 exit status > >> >> >> > make: *** [shp2img] Error 1 > >> >> >> > > >> >> >> > Does anyone know what is wrong? > >> >> >> > > >> >> >> > -- > >> >> >> > Micha? > >> >> >> > > >> >> >> > > >> >> >> > On Mon, Sep 15, 2008 at 3:16 PM, Dan Little > >> >> >> > > >> >> >> > wrote: > >> >> >> >> > >> >> >> >> Umberto is right, for Mapserver to connect to Oracle you > >> >> >> >> need to specify that capability at compile time. But for > >> >> >> >> you ge tthat far I think you need to make sure > that some of > >> >> >> >> the basics work. > >> >> >> >> > >> >> >> >> Also, if you cannot connect to Oracle via > SQL*Plus (assuming > >> >> >> >> the binary is > >> >> >> >> installed) you have other problems including but > not limited to: > >> >> >> >> - needing to set the LD_LIBRARY_PATH to include all the > >> >> >> >> libraries. > >> >> >> >> This > >> >> >> >> may also need to be done in Apache while running > mapserver > >> >> >> >> to access Oracle. > >> >> >> >> - needing to configure your TNSNAMES file. > >> >> >> >> - check firewall setting in order to make sure you can > >> >> >> >> connect on > >> >> >> >> 1521 > >> >> >> >> (or > >> >> >> >> whatever port you are using for Oracle). > >> >> >> >> > >> >> >> >> Generally, when running an Oracle layer, you want > to try the > >> >> >> >> following diagnostic steps: > >> >> >> >> 1) Use SQL Developer to connect to the database > (it has it's > >> >> >> >> own drivers built in, so there's no software dependency > >> >> >> >> issues). This will resolve whether or not the databas is > >> >> >> >> working. > >> >> >> >> 2) On the machine, try connecting with SQL Plus. > This will > >> >> >> >> determine whether or not you have your client configured > >> >> >> >> correctly. Do not move on until this works. > >> >> >> >> 3) Try and re-compile Mapserver with Oracle > Spatial. At the > >> >> >> >> end of the ./configure script there is an output screen, > >> >> >> >> ensure that you see Oracle is turned on, > otherwise scroll up > >> >> >> >> in the screen and see what's missing. > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >> ----- Original Message ---- > >> >> >> >> > From: Umberto Nicoletti > >> >> >> >> > To: dzizes > >> >> >> >> > Cc: mapserver-users at lists.osgeo.org > >> >> >> >> > Sent: Monday, September 15, 2008 7:45:48 AM > >> >> >> >> > Subject: Re: [MAPSERVER-USERS] Debian Oracle10g OCI > >> >> >> >> > > >> >> >> >> > You have to recompile mapserver with the: > >> >> >> >> > > >> >> >> >> > --with-oraclespatial=[path to oracle home] > >> >> >> >> > > >> >> >> >> > option. That's all that is needed to enable > oracle spatial > >> >> >> >> > support in mapserver. > >> >> >> >> > > >> >> >> >> > HTH, > >> >> >> >> > Umberto > >> >> >> >> > > >> >> >> >> > On Mon, Sep 15, 2008 at 2:05 PM, dzizes wrote: > >> >> >> >> > > > >> >> >> >> > > Hi, > >> >> >> >> > > > >> >> >> >> > > I've installed mapserver on Debian (lenny > distribution). > >> >> >> >> > > I've managed to create mapfile based on shp data and > >> >> >> >> > > successfully send a wms request to get a map. I seems > >> >> >> >> > > that mapserver works fine. > >> >> >> >> > > > >> >> >> >> > > I've also installed oracle-ex and I can connect to my > >> >> >> >> > > Oracle via sqlplus. > >> >> >> >> > > However, when I request wms (to a map file pointing to > >> >> >> >> > > Oracle10g) I > >> >> >> >> > > receive > >> >> >> >> > > the following: > >> >> >> >> > > > >> >> >> >> > > msDrawMap(): Image handling error. Failed to > draw layer > >> >> >> >> > > named 'test'. > >> >> >> >> > > msOracleSpatialLayerOpen(): OracleSpatial error. > >> >> >> >> > > OracleSpatial > >> >> >> >> > > is > >> >> >> >> > > not > >> >> >> >> > > supported > >> >> >> >> > > > >> >> >> >> > > I've found that I need OCI installed and configured > >> >> >> >> > > properly, but there is no clear tutorial. > >> >> >> >> > > Please provide me a some step by step guide. > >> >> >> >> > > > >> >> >> >> > > Greets, > >> >> >> >> > > Michal > >> >> >> >> > > > >> >> >> >> > > -- > >> >> >> >> > > View this message in context: > >> >> >> >> > > >> >> >> >> > > >> >> >> >> > > http://www.nabble.com/Debian-Oracle10g-OCI-tp19491636p1949 > >> >> >> >> > 1636.html > >> >> >> >> > > Sent from the Mapserver - User mailing list > archive at > >> >> >> >> > > Nabble.com. > >> >> >> >> > > > >> >> >> >> > > _______________________________________________ > >> >> >> >> > > mapserver-users mailing list > >> >> >> >> > > mapserver-users at lists.osgeo.org > >> >> >> >> > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> >> >> > > > >> >> >> >> > _______________________________________________ > >> >> >> >> > mapserver-users mailing list > >> >> >> >> > mapserver-users at lists.osgeo.org > >> >> >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> > > >> >> >> > > >> >> >> > _______________________________________________ > >> >> >> > mapserver-users mailing list > >> >> >> > mapserver-users at lists.osgeo.org > >> >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> >> > > >> >> >> > > >> >> > > >> >> > > >> > > >> > > > > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 4838 bytes Desc: not available URL: From Jukka.Rahkonen at mmmtike.fi Tue Sep 16 04:30:35 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 16 Sep 2008 14:30:35 +0300 Subject: [MAPSERVER-USERS] How to use SLD with WFS In-Reply-To: <19508664.post@talk.nabble.com> Message-ID: Hi, WFS service is delivering just vectors, pure coordinates and attribute data. Styling with SLD is connected to WMS service, not WFS. In WFS the client must take care of styling. I guess that WFS client can be made to take styling instructions from SLD file, but that's another challenge. -Jukka Rahkonen- daa32 wrote: > > Hi everyone!, > > I?m trying to serve a WFS service. I?ve already generate the > SLD associated with the layers. But I don?t know how to link > my map file with SLD...I suppose there must be some metadata > like wms_sld_url, wms_sld_body....or something similar..... > > Any ideas or examples, please? > > Thanks a lot > -- > View this message in context: > http://www.nabble.com/How-to-use-SLD-with-WFS-tp19508664p19508664.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jmckenna at gatewaygeomatics.com Tue Sep 16 05:49:14 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 16 Sep 2008 08:49:14 -0400 Subject: [mapserver-users] Re: [Geomoose-users] running GeoMoose & Mapserver locally In-Reply-To: <48CF6D23.1010505@uni-bonn.de> References: <816738.94451.qm@web51403.mail.re2.yahoo.com> <48CF6D23.1010505@uni-bonn.de> Message-ID: <48CFAB4A.1020507@gatewaygeomatics.com> Nils Zierath wrote: > Does anybody know or has got a link to a good tutorial other than the > MS4W pages at maptools? > > If you are learning MS4W the document to use is: http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html MS4W has its own mailing list for configuration questions, which you can subscribe at: http://lists.maptools.org/mailman/listinfo/ms4w-users -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From kobben at itc.nl Tue Sep 16 07:09:24 2008 From: kobben at itc.nl (Barend Kobben) Date: Tue, 16 Sep 2008 16:09:24 +0200 Subject: [mapserver-users] Mapserver site down? In-Reply-To: <48CE974C.5157.008F.0@dnr.state.mn.us> Message-ID: Is it me, or is the mapserver site at http://mapserver.gis.umn.edu/ Really unavailable (already for some 24 hours now....)? Barend -- Barend K?bben International Institute for Geo-Information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 International Institute for Geo-Information Science and Earth Observation (ITC) Chamber of Commerce: 410 27 560 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. From aboudreault at mapgears.com Tue Sep 16 07:33:40 2008 From: aboudreault at mapgears.com (Alan Boudreault) Date: Tue, 16 Sep 2008 10:33:40 -0400 Subject: [mapserver-users] Mapserver site down? In-Reply-To: References: Message-ID: <48CFC3C4.6040004@mapgears.com> I confirm that the site is down. Alan Barend Kobben wrote: > Is it me, or is the mapserver site at > http://mapserver.gis.umn.edu/ > Really unavailable (already for some 24 hours now....)? > > > Barend > > -- Alan Boudreault Mapgears http://www.mapgears.com From jchurchill at al.umces.edu Tue Sep 16 08:05:39 2008 From: jchurchill at al.umces.edu (John B. Churchill) Date: Tue, 16 Sep 2008 11:05:39 -0400 Subject: [mapserver-users] qstring validation question Message-ID: <48CFCB43.10203@al.umces.edu> We recently upgraded to a newer version of Mapserver. I'm guessing the problem with my old scripts are due to the upgrade (seems likely). I'm getting this error: mapserv(): Web application error. Metadata qstring_validation_pattern is not set. My qstring is set by my javascript. What should the qstring_validation_pattern look like ? Can someone direct me to an example that shows this ? I tried to browse the online documentation but it appears to be down. J.B. -- --------------------------------------------- John B. Churchill, M.S. http://alx.al.umces.edu/~jchurch/ GIS Specialist (301) 689-7109 University of Maryland Center for Environmental Science Appalachian Laboratory http://www.al.umces.edu/ Environmental Science Education http://alese.al.umces.edu/ 301 Braddock Road Frostburg, MD 21532 FAX - (301) 689-7200 From jeff.hoffmann at gmail.com Tue Sep 16 08:21:29 2008 From: jeff.hoffmann at gmail.com (Jeff Hoffmann) Date: Tue, 16 Sep 2008 10:21:29 -0500 Subject: [mapserver-users] Ed's Rules for the Best Raster Performance In-Reply-To: References: Message-ID: <48CFCEF9.8090707@gmail.com> Ed McNierney wrote: > > And remember that not all formats are created equal. In order to > decompress ANY portion of a JPEG image, you must read the WHOLE file. > If I have a 4,000x4,000 pixel 24-bit TIFF image that?s 48 megabytes, > and I want to read a 256x256 piece of it, I may only need to read one > megabyte or less of that file. But if I convert it to a JPEG and > compress it to only 10% of the TIFF?s size, I?ll have a 4.8 megabyte > JPEG but I will need to read the whole 4.8 megabytes (and expand it > into that RAM you?re trying to conserve) in order to get that 256x256 > piece! I have a feeling like I'm throwing myself into a religious war, but here goes. I think the problem that you have in your estimates is that you're using large (well, sort of large) jpegs. When you're using properly sized jpegs on modern servers at low-moderate load, you can pretty much disregard the processor time and memory issues, and just compare on the basis of the slowest component, disk access. 4000x4000 is big & the performance isn't going to be good (for the reasons you mention), but he never claimed to be using images that big. What he claimed is that he's using 1000x1000 jpegs. The 1000x1000 jpegs is pretty critical because it's that sweet spot where the decompress time is small, the memory demands manageable but the images are large enough that you keep the number of tiles down to a minimum for most uses. Those jpegs might be in the 200k size range, compared to a 256x256 block = 64k (x3 bands =192k?) so he's reading a full 1000x1000 image in the disk space of 1 256x256 block. If you're serving up 500x500 finished image, you're using at least 4 blocks in the geotiff, maybe 9 compared 1-4 with the 1000x1000 jpeg. You could easily be spending 2x the time reading the disk with geotiff as you would be with jpegs. I haven't sat down and done any side by side tests, but I can see how they would be competitive for certain uses when you look at it that way. Of course there are other issues like lossy compression on top of lossy compression, plus you've got to worry about keeping track of thousands (millions?) of jpegs, but they're probably manageable tradeoffs. Oh, and you don't really get the option to have nodata areas with jpegs, either. There's probably other drawbacks, too, but I'm not convinced that performance is one of them. jeff From ed at mcnierney.com Tue Sep 16 08:45:40 2008 From: ed at mcnierney.com (Ed McNierney) Date: Tue, 16 Sep 2008 11:45:40 -0400 Subject: [mapserver-users] Ed's Rules for the Best Raster Performance In-Reply-To: <48CFCEF9.8090707@gmail.com> Message-ID: Jeff - I'm not convinced, either, but I have never seen a real-world test that has shown otherwise. There haven't been many such tests, but I have done them myself and several others have done them as well and posted the results on this list. There may be tradeoffs which require a different implementation - that's life in the real world - but the data (the real, measured data, not theoretical speculation) has always been consistent. If you want to shrink the file size in this thought experiment that's fine, but realize that you are thereby increasing the number of files that need to be opened for a random image request. And each new open file incurs a relatively high cost (directory/disk seek overhead, etc.); those thousands or millions of JPEGs aren't just hard to keep track of - they hurt performance. I have been the keeper of tens of millions of such files, and have seen some of those issues myself. The example I gave (and my other examples) are, however, primarily intended to help people think about all the aspects of the problem. File access performance in an application environment is a complex issue with many variables and any implementation should be prototyped and tested. All I really care about is that you don't think it's simple and you try to think through all the consequences of an implementation plan. I will also admit to being very guilty of not designing for "low-moderate load" situations, as I always like my Web sites to be able to survive the situation in which they accidentally turn out to be popular! - Ed On 9/16/08 11:21 AM, "Jeff Hoffmann" wrote: Ed McNierney wrote: > > And remember that not all formats are created equal. In order to > decompress ANY portion of a JPEG image, you must read the WHOLE file. > If I have a 4,000x4,000 pixel 24-bit TIFF image that's 48 megabytes, > and I want to read a 256x256 piece of it, I may only need to read one > megabyte or less of that file. But if I convert it to a JPEG and > compress it to only 10% of the TIFF's size, I'll have a 4.8 megabyte > JPEG but I will need to read the whole 4.8 megabytes (and expand it > into that RAM you're trying to conserve) in order to get that 256x256 > piece! I have a feeling like I'm throwing myself into a religious war, but here goes. I think the problem that you have in your estimates is that you're using large (well, sort of large) jpegs. When you're using properly sized jpegs on modern servers at low-moderate load, you can pretty much disregard the processor time and memory issues, and just compare on the basis of the slowest component, disk access. 4000x4000 is big & the performance isn't going to be good (for the reasons you mention), but he never claimed to be using images that big. What he claimed is that he's using 1000x1000 jpegs. The 1000x1000 jpegs is pretty critical because it's that sweet spot where the decompress time is small, the memory demands manageable but the images are large enough that you keep the number of tiles down to a minimum for most uses. Those jpegs might be in the 200k size range, compared to a 256x256 block = 64k (x3 bands =192k?) so he's reading a full 1000x1000 image in the disk space of 1 256x256 block. If you're serving up 500x500 finished image, you're using at least 4 blocks in the geotiff, maybe 9 compared 1-4 with the 1000x1000 jpeg. You could easily be spending 2x the time reading the disk with geotiff as you would be with jpegs. I haven't sat down and done any side by side tests, but I can see how they would be competitive for certain uses when you look at it that way. Of course there are other issues like lossy compression on top of lossy compression, plus you've got to worry about keeping track of thousands (millions?) of jpegs, but they're probably manageable tradeoffs. Oh, and you don't really get the option to have nodata areas with jpegs, either. There's probably other drawbacks, too, but I'm not convinced that performance is one of them. jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcreso at pcreso.com Tue Sep 16 12:16:53 2008 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Tue, 16 Sep 2008 12:16:53 -0700 (PDT) Subject: [mapserver-users] Ed's Rules for the Best Raster Performance In-Reply-To: Message-ID: <309938.17452.qm@web33207.mail.mud.yahoo.com> Hmmm.... the discussion here has only looked at jpgs & geotiffs. I tend to use PNG format, which I believe is less lossy than jpgs, & supports transparency, which has worked fine for small scale implementations. Can any experts here comment on the pros/cons of png vs jpg? Thanks, Brent Wood --- On Wed, 9/17/08, Ed McNierney wrote: > From: Ed McNierney > Subject: Re: [mapserver-users] Ed's Rules for the Best Raster Performance > To: "Jeff Hoffmann" > Cc: "Jim Klassen" , "mapserver-users at lists.osgeo.org" > Date: Wednesday, September 17, 2008, 3:45 AM > Jeff - > > I'm not convinced, either, but I have never seen a > real-world test that has shown otherwise. There haven't > been many such tests, but I have done them myself and > several others have done them as well and posted the results > on this list. There may be tradeoffs which require a > different implementation - that's life in the real world > - but the data (the real, measured data, not theoretical > speculation) has always been consistent. > > If you want to shrink the file size in this thought > experiment that's fine, but realize that you are thereby > increasing the number of files that need to be opened for a > random image request. And each new open file incurs a > relatively high cost (directory/disk seek overhead, etc.); > those thousands or millions of JPEGs aren't just hard to > keep track of - they hurt performance. I have been the > keeper of tens of millions of such files, and have seen some > of those issues myself. > > The example I gave (and my other examples) are, however, > primarily intended to help people think about all the > aspects of the problem. File access performance in an > application environment is a complex issue with many > variables and any implementation should be prototyped and > tested. All I really care about is that you don't think > it's simple and you try to think through all the > consequences of an implementation plan. > > I will also admit to being very guilty of not designing for > "low-moderate load" situations, as I always like > my Web sites to be able to survive the situation in which > they accidentally turn out to be popular! > > - Ed > > > On 9/16/08 11:21 AM, "Jeff Hoffmann" > wrote: > > Ed McNierney wrote: > > > > And remember that not all formats are created equal. > In order to > > decompress ANY portion of a JPEG image, you must read > the WHOLE file. > > If I have a 4,000x4,000 pixel 24-bit TIFF image > that's 48 megabytes, > > and I want to read a 256x256 piece of it, I may only > need to read one > > megabyte or less of that file. But if I convert it to > a JPEG and > > compress it to only 10% of the TIFF's size, > I'll have a 4.8 megabyte > > JPEG but I will need to read the whole 4.8 megabytes > (and expand it > > into that RAM you're trying to conserve) in order > to get that 256x256 > > piece! > I have a feeling like I'm throwing myself into a > religious war, but here > goes. I think the problem that you have in your estimates > is that you're > using large (well, sort of large) jpegs. When you're > using properly > sized jpegs on modern servers at low-moderate load, you can > pretty much > disregard the processor time and memory issues, and just > compare on the > basis of the slowest component, disk access. 4000x4000 is > big & the > performance isn't going to be good (for the reasons you > mention), but he > never claimed to be using images that big. What he claimed > is that he's > using 1000x1000 jpegs. The 1000x1000 jpegs is pretty > critical because > it's that sweet spot where the decompress time is > small, the memory > demands manageable but the images are large enough that you > keep the > number of tiles down to a minimum for most uses. Those > jpegs might be in > the 200k size range, compared to a 256x256 block = 64k (x3 > bands =192k?) > so he's reading a full 1000x1000 image in the disk > space of 1 256x256 > block. If you're serving up 500x500 finished image, > you're using at > least 4 blocks in the geotiff, maybe 9 compared 1-4 with > the 1000x1000 > jpeg. You could easily be spending 2x the time reading the > disk with > geotiff as you would be with jpegs. I haven't sat down > and done any side > by side tests, but I can see how they would be competitive > for certain > uses when you look at it that way. Of course there are > other issues like > lossy compression on top of lossy compression, plus > you've got to worry > about keeping track of thousands (millions?) of jpegs, but > they're > probably manageable tradeoffs. Oh, and you don't really > get the option > to have nodata areas with jpegs, either. There's > probably other > drawbacks, too, but I'm not convinced that performance > is one of them. > > jeff > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Tue Sep 16 11:09:02 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 16 Sep 2008 13:09:02 -0500 Subject: [mapserver-users] qstring validation question In-Reply-To: <48CFCB43.10203@al.umces.edu> References: <48CFCB43.10203@al.umces.edu> Message-ID: <48CFAFEE.5157.008F.0@dnr.state.mn.us> JohN: It's given as a regex in the layer metadata: 'qstring_validation_pattern' '^[0-9]{1,2}$' This one limits the qstring to a 1 or 2 digit integer. Steve >>> On 9/16/2008 at 10:05 AM, in message <48CFCB43.10203 at al.umces.edu>, "John B. Churchill" wrote: > We recently upgraded to a newer version of Mapserver. I'm guessing the > problem with my old scripts are due to the upgrade (seems likely). > > I'm getting this error: > mapserv(): Web application error. Metadata qstring_validation_pattern is > not set. > > My qstring is set by my javascript. What should the > qstring_validation_pattern look like ? Can someone direct me to an > example that shows this ? I tried to browse the online documentation > but it appears to be down. > > J.B. From bob.b at gritechnologies.com Tue Sep 16 13:26:47 2008 From: bob.b at gritechnologies.com (Bob Basques) Date: Tue, 16 Sep 2008 15:26:47 -0500 Subject: [mapserver-users] Ed's Rules for the Best Raster Performance In-Reply-To: <309938.17452.qm@web33207.mail.mud.yahoo.com> References: <309938.17452.qm@web33207.mail.mud.yahoo.com> Message-ID: <48D01687.3010207@gritechnologies.com> Hi All, I work with Jim, so I suppose I should add some stuff here. We use Jpegs for Aerial Photography only, and PNGs for everything else, for the same reasons stated here. I'll let Jim talk to the technical stuff related to the pyramiding process as he put it all together into an automated process. Just to clear up some small points, we only store 1000x1000 pixel images behind MapServer for serving of the raster data sets, no more than four (4) of these source images should (in the majority of cases) need to be accessed per web call. bobb pcreso at pcreso.com wrote: > Hmmm.... the discussion here has only looked at jpgs & geotiffs. > > I tend to use PNG format, which I believe is less lossy than jpgs, & supports transparency, which has worked fine for small scale implementations. > > Can any experts here comment on the pros/cons of png vs jpg? > > > Thanks, > > Brent Wood > > > > --- On Wed, 9/17/08, Ed McNierney wrote: > > >> From: Ed McNierney >> Subject: Re: [mapserver-users] Ed's Rules for the Best Raster Performance >> To: "Jeff Hoffmann" >> Cc: "Jim Klassen" , "mapserver-users at lists.osgeo.org" >> Date: Wednesday, September 17, 2008, 3:45 AM >> Jeff - >> >> I'm not convinced, either, but I have never seen a >> real-world test that has shown otherwise. There haven't >> been many such tests, but I have done them myself and >> several others have done them as well and posted the results >> on this list. There may be tradeoffs which require a >> different implementation - that's life in the real world >> - but the data (the real, measured data, not theoretical >> speculation) has always been consistent. >> >> If you want to shrink the file size in this thought >> experiment that's fine, but realize that you are thereby >> increasing the number of files that need to be opened for a >> random image request. And each new open file incurs a >> relatively high cost (directory/disk seek overhead, etc.); >> those thousands or millions of JPEGs aren't just hard to >> keep track of - they hurt performance. I have been the >> keeper of tens of millions of such files, and have seen some >> of those issues myself. >> >> The example I gave (and my other examples) are, however, >> primarily intended to help people think about all the >> aspects of the problem. File access performance in an >> application environment is a complex issue with many >> variables and any implementation should be prototyped and >> tested. All I really care about is that you don't think >> it's simple and you try to think through all the >> consequences of an implementation plan. >> >> I will also admit to being very guilty of not designing for >> "low-moderate load" situations, as I always like >> my Web sites to be able to survive the situation in which >> they accidentally turn out to be popular! >> >> - Ed >> >> >> On 9/16/08 11:21 AM, "Jeff Hoffmann" >> wrote: >> >> Ed McNierney wrote: >> >>> And remember that not all formats are created equal. >>> >> In order to >> >>> decompress ANY portion of a JPEG image, you must read >>> >> the WHOLE file. >> >>> If I have a 4,000x4,000 pixel 24-bit TIFF image >>> >> that's 48 megabytes, >> >>> and I want to read a 256x256 piece of it, I may only >>> >> need to read one >> >>> megabyte or less of that file. But if I convert it to >>> >> a JPEG and >> >>> compress it to only 10% of the TIFF's size, >>> >> I'll have a 4.8 megabyte >> >>> JPEG but I will need to read the whole 4.8 megabytes >>> >> (and expand it >> >>> into that RAM you're trying to conserve) in order >>> >> to get that 256x256 >> >>> piece! >>> >> I have a feeling like I'm throwing myself into a >> religious war, but here >> goes. I think the problem that you have in your estimates >> is that you're >> using large (well, sort of large) jpegs. When you're >> using properly >> sized jpegs on modern servers at low-moderate load, you can >> pretty much >> disregard the processor time and memory issues, and just >> compare on the >> basis of the slowest component, disk access. 4000x4000 is >> big & the >> performance isn't going to be good (for the reasons you >> mention), but he >> never claimed to be using images that big. What he claimed >> is that he's >> using 1000x1000 jpegs. The 1000x1000 jpegs is pretty >> critical because >> it's that sweet spot where the decompress time is >> small, the memory >> demands manageable but the images are large enough that you >> keep the >> number of tiles down to a minimum for most uses. Those >> jpegs might be in >> the 200k size range, compared to a 256x256 block = 64k (x3 >> bands =192k?) >> so he's reading a full 1000x1000 image in the disk >> space of 1 256x256 >> block. If you're serving up 500x500 finished image, >> you're using at >> least 4 blocks in the geotiff, maybe 9 compared 1-4 with >> the 1000x1000 >> jpeg. You could easily be spending 2x the time reading the >> disk with >> geotiff as you would be with jpegs. I haven't sat down >> and done any side >> by side tests, but I can see how they would be competitive >> for certain >> uses when you look at it that way. Of course there are >> other issues like >> lossy compression on top of lossy compression, plus >> you've got to worry >> about keeping track of thousands (millions?) of jpegs, but >> they're >> probably manageable tradeoffs. Oh, and you don't really >> get the option >> to have nodata areas with jpegs, either. There's >> probably other >> drawbacks, too, but I'm not convinced that performance >> is one of them. >> >> jeff >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jchurchill at al.umces.edu Tue Sep 16 13:56:01 2008 From: jchurchill at al.umces.edu (John B. Churchill) Date: Tue, 16 Sep 2008 16:56:01 -0400 Subject: [mapserver-users] qstring validation question In-Reply-To: <48CFAFEE.5157.008F.0@dnr.state.mn.us> References: <48CFCB43.10203@al.umces.edu> <48CFAFEE.5157.008F.0@dnr.state.mn.us> Message-ID: <48D01D61.1020409@al.umces.edu> Steve Lime wrote: > JohN: It's given as a regex in the layer metadata: > > 'qstring_validation_pattern' '^[0-9]{1,2}$' > > This one limits the qstring to a 1 or 2 digit integer. > > Steve Thanks Steve ... I actually got this working by looking through old archived [mapserver-users] e-mails. I found one where someone showed an example of this with layer metadata in the MAP file like this ... METADATA qstring_validation_pattern '.' END Which got everything working for me. If I don't hear anything else about this, I'll assume what I did is Ok. If that is poor form or will cause problems down the line I'll do it as you've specified above with a more complicated regex (if theres any reason to do so). I assume this was done for security ? The pattern matched (in my application) can be pretty variable. Thanks, J.B. >>>> On 9/16/2008 at 10:05 AM, in message <48CFCB43.10203 at al.umces.edu>, "John B. > Churchill" wrote: >> We recently upgraded to a newer version of Mapserver. I'm guessing the >> problem with my old scripts are due to the upgrade (seems likely). >> >> I'm getting this error: >> mapserv(): Web application error. Metadata qstring_validation_pattern is >> not set. >> >> My qstring is set by my javascript. What should the >> qstring_validation_pattern look like ? Can someone direct me to an >> example that shows this ? I tried to browse the online documentation >> but it appears to be down. >> >> J.B. > > From jeff.hoffmann at gmail.com Tue Sep 16 14:02:42 2008 From: jeff.hoffmann at gmail.com (Jeff Hoffmann) Date: Tue, 16 Sep 2008 16:02:42 -0500 Subject: [mapserver-users] Ed's Rules for the Best Raster Performance In-Reply-To: References: Message-ID: <48D01EF2.8040700@gmail.com> Ed McNierney wrote: > If you want to shrink the file size in this thought experiment that?s > fine, but realize that you are thereby increasing the number of files > that need to be opened for a random image request. And each new open > file incurs a relatively high cost (directory/disk seek overhead, > etc.); those thousands or millions of JPEGs aren?t just hard to keep > track of ? they hurt performance. I have been the keeper of tens of > millions of such files, and have seen some of those issues myself. That's certainly a consideration, but you could also counter that by using jpeg compressed geotiffs. You'd want to make sure to tile them, otherwise you'd have that same big jpeg performance problem -- I think tiled effectively treats them as individual jpegs wrapped in one big file. No clue on what the actual performance of that would be, but it's something to consider if you've got filesystem performance problems. > The example I gave (and my other examples) are, however, primarily > intended to help people think about all the aspects of the problem. > File access performance in an application environment is a complex > issue with many variables and any implementation should be prototyped > and tested. All I really care about is that you don?t think it?s > simple and you try to think through all the consequences of an > implementation plan. One of the reasons why I replied to this originally is that I think it's good to keep options open so people can evaluate them for their specific circumstances. What I was hearing you say was "if you make bad choices, it'll perform badly" & I'm just trying to throw out some other choices that would better and probably be make it worth a try for a lot of people. It's pretty common for me to get imagery in 5000x5000 or 10000x10000 geotiff tiles. I just got imagery for one county like that that weighs in at close to 1TB; if I were to decide I can't afford that kind of disk space for whatever reason, I'd investigate some compressed options. If I don't know any different, I might just compress that tile into one large jpeg (like in your example), discover the performance is terrible, discard it & file away in my mind that jpegs perform terribly. I might not understand that a 5000x5000 jpeg is going to use 75MB of memory and take an order of magnitude longer to decompress than that 1000x1000 jpeg that only takes up 3MB in memory and decompresses nearly instantly while giving you that same 500x500 chunk of image. There are nice things about jpegs, like you don't need commercial libraries like you would with ecw, mrsid, jp2, you don't have to worry about licensing issues, size constraints, compiler environment, all that, which makes it a pretty attractive compressed format if you can get it to perform well, but if you don't know to break them up into smallish chunks I don't think getting to that performance level is really possible (for exactly the reasons you describe). > I will also admit to being very guilty of not designing for > ?low-moderate load? situations, as I always like my Web sites to be > able to survive the situation in which they accidentally turn out to > be popular! I had second thoughts about saying this, because one man's "low" load might be "high" for someone else especially if you're talking to someone who has run a pretty high profile site, but I'd wager you're the exception and there are a lot of smaller fish out there. I'd think that Jim is probably more in line with an average user, a moderately sized city/county that would probably come nowhere near maxing out even modest hardware with those jpegs of his. It's probably those smaller fish where compression is more important, maybe they're fighting for space on a department-level server or can't get budget approval to upgrade their drives. I'd hate for those folks to have to settle for a slow (cpu intensive) wavelet-based compression when a properly configured jpeg layer might be the compromise they're looking for. jeff From Jim.Klassen at ci.stpaul.mn.us Tue Sep 16 13:05:39 2008 From: Jim.Klassen at ci.stpaul.mn.us (Jim Klassen) Date: Tue, 16 Sep 2008 15:05:39 -0500 Subject: [mapserver-users] Ed's Rules for the Best Raster Performance Message-ID: <48CFD9740200004F0000B550@jeckle> Ed, Good points about using tiled tiffs so that mapserver doesn't have to read the whole file. I was thinking TIFFs were scanline based where you would have to do a lot of reading or a lot of seeking anyway if you wanted to pull out a subset of the file to render. JPEG in TIFF is also interesting... I have seen that before, but there were compatibility issues with it at the time (not with mapserver or gdal) so I've avoided it since. It sounds like this is at least worth some experimentation on my part. Also, I agree this is a fairly complex problem when taking into account many simultaneous requests and that is why I asked the question. BTW: if I were to do it again (using basically the same approach I did the first time), I'd use 1024x1024 pixel tiles instead of 1000x1000. It would make it easier to handle the factors of two in resolution and fits block boundaries better. Jim >>> Ed McNierney 09/15/08 9:14 PM >>> Damn, I'm going to have to get around to unsubscribing soon so I can shut myself up! Jim, please remember that your disk subsystem does not read only the precise amount of data you request. The most expensive step is telling the disk head to seek to a random location to start reading the data. The actual reading takes much less time in almost every case. Let's invent an example so we don't have to do too much hard research . A 7,200-RPM IDE drive has about a 9 ms average read seek time, and most are able to really transfer real data at around 60 MB/s or so (these are very rough approximations). So to read 256KB of sequential data, you spend 9 ms seeking to the right track and then 4 ms reading the data - that's 13 ms. Doubling the read size to 512KB will only take 4 ms (or 30%) longer, not 100% longer. But even that's likely to be an exaggeration, because your disk drive - knowing that seeks are expensive - will typically read a LOT of data after doing a seek. Remember that "16MB buffer" on the package? The drive will likely read far more than you need, so the "improvement" you get by cutting the amount of data read in a given seek in half is likely to be nothing at all. There are limits, of course. The larger your data read is, the more likely it is to be split up into more than one location on disk. That would mean another seek, which would definitely hurt. But in general if you're already reading modest amounts of data in each shot, reducing the amount of data read by compression is likely to save you almost nothing in read time and cost you something in decompression time (CPUs are fast, so it might not cost much, but it will very likely require more RAM, boosting your per-request footprint, which means you're more at risk of starting to swap, etc.). And remember that not all formats are created equal. In order to decompress ANY portion of a JPEG image, you must read the WHOLE file. If I have a 4,000x4,000 pixel 24-bit TIFF image that's 48 megabytes, and I want to read a 256x256 piece of it, I may only need to read one megabyte or less of that file. But if I convert it to a JPEG and compress it to only 10% of the TIFF's size, I'll have a 4.8 megabyte JPEG but I will need to read the whole 4.8 megabytes (and expand it into that RAM you're trying to conserve) in order to get that 256x256 piece! Paul is right - sometimes compression is necessary when you run out of disk (but disks are pretty darn cheap - the cost per megabyte of the first hard drive I ever purchased (a Maynard Electronics 10 MB drive for my IBM PC) is approximately 450,000 times higher than it is today). If you are inclined toward JPEG compression, read about and think about using tiled TIFFs with JPEG compression in the tiles; it's a reasonable compromise that saves space while reducing the whole-file-read overhead of JPEG. Where the heck is that unsubscribe button? - Ed On 9/15/08 9:23 PM, "Paul Spencer" wrote: Jim, you would think that ;) However, in practice I wouldn't expect the disk access time for geotiffs to be significantly different from jpeg if you have properly optimized your geotiffs using gdal_translate -co "TILED=YES" - the internal structure is efficiently indexed so that gdal only has to read the minimum number of 256x256 blocks to cover the requested extent. And using gdaladdo to generate overviews just makes it that much more efficient. Even if you are reading less physical data from the disk to get the equivalent coverage from jpeg, the decompression overhead is enough to negate the difference in IO time based on Ed's oft quoted advice (and other's experience too I think). The rules that apply in this case seem to be 'tile your data', 'do not compress it' and 'buy the fastest disk you can afford'. Compression is useful and probably necessary if you hit disk space limits. Cheers Paul On 15-Sep-08, at 5:48 PM, Jim Klassen wrote: > Just out of curiosity, has anyone tested the performance of Jpegs > vs. GeoTiffs? > > I would expect at some point the additional disk access time > required for GeoTiffs (of the same pixel count) as Jpegs would > outweigh the additional processor time required to decompress the > Jpegs. (Also the number of Jpegs that can fit in disk cache is > greater than for similar GeoTiffs.) > > For reference we use 1000px by 1000px Jpeg tiles (with world files). > We store multiple resolutions of the dataset, each in its own > directory. We start at the native dataset resolution, and half that > for each step, stopping when there are less than 10 tiles produced > at that particular resolution. (I.e for one of our county wide > datasets 6in/px, 1ft/px, 2ft/px, ... 32ft/px). A tileindex is then > created for each resolution (using gdaltindex followed by shptree) > and a layer is created in the mapfile for each tileindex and > appropriate min/maxscales are set. The outputformat in the mapfile > is set to jpeg. > > Our typical tile size is 200KB. There are about 20k tiles in the 6in/ > px dataset, 80k tiles in the 3in/px dataset (actually 4in data, but > stored in 3in so it fits with the rest of the datasets well). I have > tested and this large number of files in a directory doesn't seem to > effect performance on our system. > > Average access time for a 500x500px request to mapserver is 300ms > measured at the client using perl/LWP and about 220ms with shp2img. > > Machine is mapserver 5.2.0/x86-64/2.8GHz Xeon/Linux 2.6.16/ext3 > filesystem. > > Jim Klassen > City of Saint Paul > >>>> "Fawcett, David" 09/15/08 1:10 PM >>> > Better yet, > > Add your comments to: > > http://mapserver.gis.umn.edu/docs/howto/optimizeraster > > and > > http://mapserver.gis.umn.edu/docs/howto/optimizevector > > I had always thought that all we needed to do to make these pages > great > was to grok the list for all of Ed's posts... > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent > Fraser > Sent: Monday, September 15, 2008 12:55 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Ed's Rules for the Best Raster Performance > > > In honor of Ed's imminent retirement from the Mapserver Support Group, > I've put together "Ed's List for the Best Raster Performance": > > > #1. Pyramid the data > - use MAXSCALE and MINSCALE in the LAYER object. > > #2. Tile the data (and merge your upper levels of the pyramid for > fewer > files). > - see the TILEINDEX object > > #3. Don't compress your data > - avoid jpg, ecw, and mrsid formats. > > #4. Don't re-project your data on-the-fly. > > #5. Get the fastest disks you can afford. > > > (Ed, feel free to edit...) > > Brent Fraser > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://www.dmsolutions.ca/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jim.Klassen at ci.stpaul.mn.us Tue Sep 16 13:57:18 2008 From: Jim.Klassen at ci.stpaul.mn.us (Jim Klassen) Date: Tue, 16 Sep 2008 15:57:18 -0500 Subject: [mapserver-users] Ed's Rules for the Best Raster Performance Message-ID: <48CFE58E0200004F0000B557@jeckle> One other thing I just noticed: to effectively use the tiled tiffs I need BigTiff support which looks like it is a real new thing (needs libtiff 4.0 which is still in beta according to the remotesensing.org ftp site.) Anyway, I'm still going to give this a try and check the performance difference. For us, with existing hardware, disk space would be an issue for uncompressed images so I will be trying JPEG in TIFF. All I can say about the JPEG->JPEG re-compression artifacts is with the existing setup, we haven't had any complaints. The "large" number of files doesn't (in our case < 500k) doesn't seem to effect the operational performance of our server in a meaningful way. (I don't remember the exact numbers, but I have measured file access time in directories with 10 files and 100k files and they the difference was much less than the total mapserver run time.) It is a pain though when making copies or running backups. As Bob said, for a typical image request sizes of less than 1000px, the "tiles/overviews" design pretty much limits the number of files mapserver has to touch to 4, so access time stays fairly constant across different views. Also, I forgot to mention that the disk subsystem here isn't exactly your average desktop PC. (8*10K SCSI drives in RAID 10 with 1GB dedicated to the RAID controller.) Similar requests on a much older machine we have around here with slower disk/processor take about 800ms. I don't have any info to attribute this to disk vs. cpu or both. One of the main reasons we decided on JPEG here early on was the licensing headaches surrounding mrsid/ecw/jp2. JPEG was easy and supported well by just about everything. Actually, for that matter, TIFFs are a lot harder to use directly by most (non-GIS) applications than JPEG/PNG too. We may be past this being an issue, but once upon a time, before our use of mapserver, the JPEG tiles were being accessed directly from the webserver by various client applications (that didn't all understand tiff). Instead of using world files to determine the extents, the tiles were accessed by a predictable naming convention relating to the extent. When we started using mapserver we retained the existing tiling scheme (adding world files and tileindexes so mapserver could position the tiles) and it seemed to work well, so haven't given it much thought since. Thanks for all the interest and discussion around this. Jim K >>> Jeff Hoffmann 09/16/08 4:03 PM >>> Ed McNierney wrote: > If you want to shrink the file size in this thought experiment that?s > fine, but realize that you are thereby increasing the number of files > that need to be opened for a random image request. And each new open > file incurs a relatively high cost (directory/disk seek overhead, > etc.); those thousands or millions of JPEGs aren?t just hard to keep > track of ? they hurt performance. I have been the keeper of tens of > millions of such files, and have seen some of those issues myself. That's certainly a consideration, but you could also counter that by using jpeg compressed geotiffs. You'd want to make sure to tile them, otherwise you'd have that same big jpeg performance problem -- I think tiled effectively treats them as individual jpegs wrapped in one big file. No clue on what the actual performance of that would be, but it's something to consider if you've got filesystem performance problems. > The example I gave (and my other examples) are, however, primarily > intended to help people think about all the aspects of the problem. > File access performance in an application environment is a complex > issue with many variables and any implementation should be prototyped > and tested. All I really care about is that you don?t think it?s > simple and you try to think through all the consequences of an > implementation plan. One of the reasons why I replied to this originally is that I think it's good to keep options open so people can evaluate them for their specific circumstances. What I was hearing you say was "if you make bad choices, it'll perform badly" & I'm just trying to throw out some other choices that would better and probably be make it worth a try for a lot of people. It's pretty common for me to get imagery in 5000x5000 or 10000x10000 geotiff tiles. I just got imagery for one county like that that weighs in at close to 1TB; if I were to decide I can't afford that kind of disk space for whatever reason, I'd investigate some compressed options. If I don't know any different, I might just compress that tile into one large jpeg (like in your example), discover the performance is terrible, discard it & file away in my mind that jpegs perform terribly. I might not understand that a 5000x5000 jpeg is going to use 75MB of memory and take an order of magnitude longer to decompress than that 1000x1000 jpeg that only takes up 3MB in memory and decompresses nearly instantly while giving you that same 500x500 chunk of image. There are nice things about jpegs, like you don't need commercial libraries like you would with ecw, mrsid, jp2, you don't have to worry about licensing issues, size constraints, compiler environment, all that, which makes it a pretty attractive compressed format if you can get it to perform well, but if you don't know to break them up into smallish chunks I don't think getting to that performance level is really possible (for exactly the reasons you describe). > I will also admit to being very guilty of not designing for > ?low-moderate load? situations, as I always like my Web sites to be > able to survive the situation in which they accidentally turn out to > be popular! I had second thoughts about saying this, because one man's "low" load might be "high" for someone else especially if you're talking to someone who has run a pretty high profile site, but I'd wager you're the exception and there are a lot of smaller fish out there. I'd think that Jim is probably more in line with an average user, a moderately sized city/county that would probably come nowhere near maxing out even modest hardware with those jpegs of his. It's probably those smaller fish where compression is more important, maybe they're fighting for space on a department-level server or can't get budget approval to upgrade their drives. I'd hate for those folks to have to settle for a slow (cpu intensive) wavelet-based compression when a properly configured jpeg layer might be the compromise they're looking for. jeff From matej at matnet.net Tue Sep 16 15:44:45 2008 From: matej at matnet.net (Matej) Date: Wed, 17 Sep 2008 00:44:45 +0200 Subject: [mapserver-users] MapInfo Auto Labeling and MapServer Message-ID: Hi, after deploying MapServer on one of our servers I thinks that MapServer is a great tool but I am having some problems with TABs, imported from MapInfo. I am able to load all the layers from the test workspace except one, which consists of a houses (circle symbol) and house addresses (auto-labeling from the data field "Address"). I have therefore some questions and will be very glad if there are some answers available :) - In MI for that layer I have auto labeling set which works OK. When I look at the map on different zooms, the text is larger or smaller, but every label exists and if I zoom in enough, every house has it's number visible. Is there a chance to somehow "directly" load this auto labeling into MapServer? If it is, how can I do this? I haven't found a good answer to the first question, so the next one is: - I have problems getting all the house addresses from MI since it creates the labels only with the sizes according to current zoom level AND only the part of the map visible at that moment. So when I want to have all the houses numbered with readable addresses (not covering each other), I have to zoom in enough and then move with cursor along the entire map for MI to "create" satisfactory labels. Using this method (well, it's a very very stupid one!) it works for smaller maps, but for larger it's a no-no. Also the labeling tools that are in MI affect current view only. Is there a tool which would do it more user-friendly? Since this is a pretty common problem as I see it, I am sure that some of you already had this problem and (hopefully!) found a solution. Thanks everyone for help and ideas in advance, Matej Serc From snaperski at gmail.com Tue Sep 16 23:38:27 2008 From: snaperski at gmail.com (Raivo Alla) Date: Wed, 17 Sep 2008 09:38:27 +0300 Subject: [mapserver-users] mapserver 5 TIFF displaying problem Message-ID: <49dc012b0809162338j4852d4cfkcdaefc2949fc0354@mail.gmail.com> Hello, I'm quite new using Mapserver and found myself struggling with this simple-looking problem: In my map file, there is layer defined as follows: LAYER TYPE RASTER NAME "raster" STATUS ON DATA "54653.tif" END The problem is, that this image is corrupted when I look at it in ArcMap - it contains strange black boxes and stripes. Original image is OK, so I guess the problem is somewhere in map file. .tfw file should be ok: 1.000000000000000 0.000000000000000 0.000000000000000 -1.000000000000000 650000.500000000000000 6469999.500000000000000 What could be the problem? Raivo Alla -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Sep 17 01:23:33 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 17 Sep 2008 11:23:33 +0300 Subject: [mapserver-users] mapserver 5 TIFF displaying problem In-Reply-To: <49dc012b0809162338j4852d4cfkcdaefc2949fc0354@mail.gmail.com> Message-ID: Hi, Impossible to say with this information. Much better possibilities to help you if you could send also the main MAP part of your mapfile including at lesast outputformat and projection, and the metadata sections. Gdalinfo report about the image might be helpful as well. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Raivo Alla L?hetetty: 17. syyskuuta 2008 9:38 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] mapserver 5 TIFF displaying problem Hello, I'm quite new using Mapserver and found myself struggling with this simple-looking problem: In my map file, there is layer defined as follows: LAYER TYPE RASTER NAME "raster" STATUS ON DATA "54653.tif" END The problem is, that this image is corrupted when I look at it in ArcMap - it contains strange black boxes and stripes. Original image is OK, so I guess the problem is somewhere in map file. .tfw file should be ok: 1.000000000000000 0.000000000000000 0.000000000000000 -1.000000000000000 650000.500000000000000 6469999.500000000000000 What could be the problem? Raivo Alla -------------- next part -------------- An HTML attachment was scrubbed... URL: From albpoggi at gmail.com Wed Sep 17 01:26:24 2008 From: albpoggi at gmail.com (Alberto Poggi) Date: Wed, 17 Sep 2008 10:26:24 +0200 Subject: [mapserver-users] rotation of vector symbol Message-ID: Hi. Let me tell you about an issue of rotation of the vector symbols. I found that in mapserver the rotation of these symbols does not follow the classic rules that provide for the starting rotation in sequence from east to the north, west and south. I published my work with PMAPPER and MAPSERVER and I noticed that the rotation is done on the other hand (east, south, west and north), and only on symbols of a vector. This problem on the labelling does not exist and the rotation is correct. The layer referenced for symbol is a postgis table that contains a field "rotazione" used by MapServer for the rotation of symbols. The display of symbols is right but the rotation is done wrong. This is the definition of my symbol: SYMBOL NAME "valvola" TYPE vector POINTS 0 0 1.5 1 1.5 0 0 1 0 0 END FILLED TRUE END and this is the notation in the mapfile: LAYER NAME "Valvole" TYPE POINT CONNECTIONTYPE postgis CONNECTION "user=****** password=***** dbname=ACQUA host=localhost" DATA "the_geom FROM valvole" STATUS DEFAULT MAXSCALE 5001 TOLERANCE 10 TOLERANCEUNITS pixels PROJECTION "init=epsg:32632" END METADATA "DESCRIPTION" "Valvole" "RESULT_FIELDS" "comune,localita" "RESULT_HEADERS" "Comune,Localit?" "LAYER_ENCODING" "UTF-8" "ows_title" "Dati valvole" END # Metadata CLASS NAME "Valvole" STYLE SYMBOL 'valvola' COLOR 0 255 255 OUTLINECOLOR 0 0 0 ANGLE [rotazione] SIZE 8 END END TEMPLATE void END It's me that something wrong or is a known problem? Thank you. From thomas.bonfort at gmail.com Wed Sep 17 01:33:10 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 17 Sep 2008 10:33:10 +0200 Subject: [mapserver-users] rotation of vector symbol In-Reply-To: References: Message-ID: it's a known problem http://trac.osgeo.org/mapserver/ticket/2671 cheers, thomas On Wed, Sep 17, 2008 at 10:26 AM, Alberto Poggi wrote: > Hi. > Let me tell you about an issue of rotation of the vector symbols. I > found that in mapserver the rotation of these symbols does not follow > the classic rules that provide for the starting rotation in sequence > from east to the north, west and south. I published my work with > PMAPPER and MAPSERVER and I noticed that the rotation is done on the > other hand (east, south, west and north), and only on symbols of a > vector. This problem on the labelling does not exist and the rotation > is correct. > The layer referenced for symbol is a postgis table that contains a > field "rotazione" used by MapServer for the rotation of symbols. The > display of symbols is right but the rotation is done wrong. > This is the definition of my symbol: > SYMBOL > NAME "valvola" > TYPE vector > POINTS > 0 0 > 1.5 1 > 1.5 0 > 0 1 > 0 0 > END > FILLED TRUE > END > and this is the notation in the mapfile: > LAYER > NAME "Valvole" > TYPE POINT > CONNECTIONTYPE postgis > CONNECTION "user=****** password=***** dbname=ACQUA host=localhost" > DATA "the_geom FROM valvole" > STATUS DEFAULT > MAXSCALE 5001 > TOLERANCE 10 > TOLERANCEUNITS pixels > PROJECTION > "init=epsg:32632" > END > > METADATA > "DESCRIPTION" "Valvole" > "RESULT_FIELDS" "comune,localita" > "RESULT_HEADERS" "Comune,Localit?" > "LAYER_ENCODING" "UTF-8" > "ows_title" "Dati valvole" > END # Metadata > > CLASS > NAME "Valvole" > > STYLE > SYMBOL 'valvola' > COLOR 0 255 255 > OUTLINECOLOR 0 0 0 > ANGLE [rotazione] > SIZE 8 > END > END > TEMPLATE void > END > > It's me that something wrong or is a known problem? Thank you. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From albpoggi at gmail.com Wed Sep 17 01:58:40 2008 From: albpoggi at gmail.com (Alberto Poggi) Date: Wed, 17 Sep 2008 10:58:40 +0200 Subject: [mapserver-users] rotation of vector symbol In-Reply-To: References: Message-ID: Ok, thanks, at least I know that is not my mistake. You know a way to solve the problem? 2008/9/17 thomas bonfort : > it's a known problem > http://trac.osgeo.org/mapserver/ticket/2671 > > cheers, > thomas > > On Wed, Sep 17, 2008 at 10:26 AM, Alberto Poggi wrote: >> Hi. >> Let me tell you about an issue of rotation of the vector symbols. I >> found that in mapserver the rotation of these symbols does not follow >> the classic rules that provide for the starting rotation in sequence >> from east to the north, west and south. I published my work with >> PMAPPER and MAPSERVER and I noticed that the rotation is done on the >> other hand (east, south, west and north), and only on symbols of a >> vector. This problem on the labelling does not exist and the rotation >> is correct. >> The layer referenced for symbol is a postgis table that contains a >> field "rotazione" used by MapServer for the rotation of symbols. The >> display of symbols is right but the rotation is done wrong. >> This is the definition of my symbol: >> SYMBOL >> NAME "valvola" >> TYPE vector >> POINTS >> 0 0 >> 1.5 1 >> 1.5 0 >> 0 1 >> 0 0 >> END >> FILLED TRUE >> END >> and this is the notation in the mapfile: >> LAYER >> NAME "Valvole" >> TYPE POINT >> CONNECTIONTYPE postgis >> CONNECTION "user=****** password=***** dbname=ACQUA host=localhost" >> DATA "the_geom FROM valvole" >> STATUS DEFAULT >> MAXSCALE 5001 >> TOLERANCE 10 >> TOLERANCEUNITS pixels >> PROJECTION >> "init=epsg:32632" >> END >> >> METADATA >> "DESCRIPTION" "Valvole" >> "RESULT_FIELDS" "comune,localita" >> "RESULT_HEADERS" "Comune,Localit?" >> "LAYER_ENCODING" "UTF-8" >> "ows_title" "Dati valvole" >> END # Metadata >> >> CLASS >> NAME "Valvole" >> >> STYLE >> SYMBOL 'valvola' >> COLOR 0 255 255 >> OUTLINECOLOR 0 0 0 >> ANGLE [rotazione] >> SIZE 8 >> END >> END >> TEMPLATE void >> END >> >> It's me that something wrong or is a known problem? Thank you. >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From snaperski at gmail.com Wed Sep 17 02:50:48 2008 From: snaperski at gmail.com (Raivo Alla) Date: Wed, 17 Sep 2008 12:50:48 +0300 Subject: [mapserver-users] mapserver 5 TIFF displaying problem In-Reply-To: References: <49dc012b0809162338j4852d4cfkcdaefc2949fc0354@mail.gmail.com> Message-ID: <49dc012b0809170250y4ea294fckad43debe13242e66@mail.gmail.com> Thank you for answering! There's some additional information. Gdalinfo output: Driver: GTiff/GeoTIFF Files: 65812.tif 65812.aux Size is 5000, 5000 Coordinate System is: LOCAL_CS["Estonia_1997_Estonia_National_Grid", UNIT["meters",1]] Origin = (715000.500000000000000,6584999.500000000000000) Pixel Size = (1.000000000000000,-1.000000000000000) Metadata: TIFFTAG_XRESOLUTION=2272.0896 TIFFTAG_YRESOLUTION=2272.0896 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Image Structure Metadata: COMPRESSION=LZW INTERLEAVE=PIXEL Corner Coordinates: Upper Left ( 715000.500, 6584999.500) Lower Left ( 715000.500, 6579999.500) Upper Right ( 720000.500, 6584999.500) Lower Right ( 720000.500, 6579999.500) Center ( 717500.500, 6582499.500) Band 1 Block=5000x8 Type=Byte, ColorInterp=Red Metadata: LAYER_TYPE=athematic Band 2 Block=5000x8 Type=Byte, ColorInterp=Green Metadata: LAYER_TYPE=athematic Band 3 Block=5000x8 Type=Byte, ColorInterp=Blue Metadata: LAYER_TYPE=athematic And from .map file: IMAGETYPE PNG OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB END PROJECTION "init=epsg:4326" END METADATA WMS_TITLE "UMN MapServer Maa-ameti TEST" WMS_ABSTRACT "M?eldud testimiseks" WMS_ACCESSCONSTRAINTS "none" WMS_SRS "EPSG:4326" END Could it be problem that coordinate systems does not match? However, I remember it's written that Mapserver could do SRS transforming on-the-fly. On Wed, Sep 17, 2008 at 11:23 AM, Rahkonen Jukka wrote: > Hi, > > Impossible to say with this information. Much better possibilities to help > you if you could send also the main MAP part of your mapfile including at > lesast outputformat and projection, and the metadata sections. Gdalinfo > report about the image might be helpful as well. > > -Jukka Rahkonen- > > ------------------------------ > *L?hett?j?:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *Puolesta *Raivo Alla > *L?hetetty:* 17. syyskuuta 2008 9:38 > *Vastaanottaja:* mapserver-users at lists.osgeo.org > *Aihe:* [mapserver-users] mapserver 5 TIFF displaying problem > > Hello, > > I'm quite new using Mapserver and found myself struggling with this > simple-looking problem: > > In my map file, there is layer defined as follows: > LAYER > TYPE RASTER > NAME "raster" > STATUS ON > DATA "54653.tif" > END > > The problem is, that this image is corrupted when I look at it in ArcMap - > it contains strange black boxes and stripes. Original image is OK, so > I guess the problem is somewhere in map file. > .tfw file should be ok: > 1.000000000000000 > 0.000000000000000 > 0.000000000000000 > -1.000000000000000 > 650000.500000000000000 > 6469999.500000000000000 > > What could be the problem? > > > Raivo Alla > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Sep 17 03:03:58 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 17 Sep 2008 13:03:58 +0300 Subject: [mapserver-users] mapserver 5 TIFF displaying problem In-Reply-To: <49dc012b0809170250y4ea294fckad43debe13242e66@mail.gmail.com> Message-ID: Tere. You have defined the output projection as epsg:4326 and by quick look it is OK in both map projection and WMS metadata. However, your original image is in Estonian projection, but Mapserver does not know it automatically. You need to add PROJECTION block to layer definitions as well. Try editin your mapfile as follows: LAYER TYPE RASTER NAME "raster" STATUS ON DATA "54653.tif" PROJECTION "init=epsg:3301" END #end projection END #end layer I hope I guessed the epsg code right. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Raivo Alla L?hetetty: 17. syyskuuta 2008 12:51 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] mapserver 5 TIFF displaying problem Thank you for answering! There's some additional information. Gdalinfo output: Driver: GTiff/GeoTIFF Files: 65812.tif 65812.aux Size is 5000, 5000 Coordinate System is: LOCAL_CS["Estonia_1997_Estonia_National_Grid", UNIT["meters",1]] Origin = (715000.500000000000000,6584999.500000000000000) Pixel Size = (1.000000000000000,-1.000000000000000) Metadata: TIFFTAG_XRESOLUTION=2272.0896 TIFFTAG_YRESOLUTION=2272.0896 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Image Structure Metadata: COMPRESSION=LZW INTERLEAVE=PIXEL Corner Coordinates: Upper Left ( 715000.500, 6584999.500) Lower Left ( 715000.500, 6579999.500) Upper Right ( 720000.500, 6584999.500) Lower Right ( 720000.500, 6579999.500) Center ( 717500.500, 6582499.500) Band 1 Block=5000x8 Type=Byte, ColorInterp=Red Metadata: LAYER_TYPE=athematic Band 2 Block=5000x8 Type=Byte, ColorInterp=Green Metadata: LAYER_TYPE=athematic Band 3 Block=5000x8 Type=Byte, ColorInterp=Blue Metadata: LAYER_TYPE=athematic And from .map file: IMAGETYPE PNG OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB END PROJECTION "init=epsg:4326" END METADATA WMS_TITLE "UMN MapServer Maa-ameti TEST" WMS_ABSTRACT "M?eldud testimiseks" WMS_ACCESSCONSTRAINTS "none" WMS_SRS "EPSG:4326" END Could it be problem that coordinate systems does not match? However, I remember it's written that Mapserver could do SRS transforming on-the-fly. On Wed, Sep 17, 2008 at 11:23 AM, Rahkonen Jukka wrote: Hi, Impossible to say with this information. Much better possibilities to help you if you could send also the main MAP part of your mapfile including at lesast outputformat and projection, and the metadata sections. Gdalinfo report about the image might be helpful as well. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Raivo Alla L?hetetty: 17. syyskuuta 2008 9:38 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] mapserver 5 TIFF displaying problem Hello, I'm quite new using Mapserver and found myself struggling with this simple-looking problem: In my map file, there is layer defined as follows: LAYER TYPE RASTER NAME "raster" STATUS ON DATA "54653.tif" END The problem is, that this image is corrupted when I look at it in ArcMap - it contains strange black boxes and stripes. Original image is OK, so I guess the problem is somewhere in map file. .tfw file should be ok: 1.000000000000000 0.000000000000000 0.000000000000000 -1.000000000000000 650000.500000000000000 6469999.500000000000000 What could be the problem? Raivo Alla -------------- next part -------------- An HTML attachment was scrubbed... URL: From hellomps at gmail.com Wed Sep 17 04:22:52 2008 From: hellomps at gmail.com (ramya srinivasan) Date: Wed, 17 Sep 2008 16:52:52 +0530 Subject: [mapserver-users] Connecting PHP/mapscript to mysql Message-ID: <3702658f0809170422h4192cd25kfa28d257dccc0040@mail.gmail.com> Hi, Can anyone tell me how to connect php/mapscript yo mysql? I have to read points from the database and display it on the map. Thanks and Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiannini at bytewise.it Wed Sep 17 04:27:42 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Wed, 17 Sep 2008 13:27:42 +0200 (CEST) Subject: [mapserver-users] Connecting PHP/mapscript to mysql In-Reply-To: <3702658f0809170422h4192cd25kfa28d257dccc0040@mail.gmail.com> References: <3702658f0809170422h4192cd25kfa28d257dccc0040@mail.gmail.com> Message-ID: <61729.192.168.1.55.1221650862.squirrel@localhost.localdomain> http://mapserver.gis.umn.edu/docs/howto/ogrmysql ciao .........................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Mer, Settembre 17, 2008 13:22, ramya srinivasan wrote: > Hi, Can anyone tell me how to connect php/mapscript yo mysql? I have to > read points from the database and display it on the map. > > Thanks and Regards. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Jukka.Rahkonen at mmmtike.fi Wed Sep 17 05:22:07 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 17 Sep 2008 15:22:07 +0300 Subject: [mapserver-users] mapserver 5 TIFF displaying problem In-Reply-To: <49dc012b0809170456y1fd3eea7p4d5044702368d3e9@mail.gmail.com> Message-ID: I'm sorry, I fear I can't help you further. I'm sure that somebody else will go on with your problem soon. There must be something odd in the image or in your Mapserver. You could still try two things and try to find exact reason for the failure: - use ready compiled Mapserver if you find such for your operating system - test with another image from different source -Jukka- ________________________________ L?hett?j?: Raivo Alla [mailto:snaperski at gmail.com] L?hetetty: 17. syyskuuta 2008 14:57 Vastaanottaja: Rahkonen Jukka Aihe: Re: [mapserver-users] mapserver 5 TIFF displaying problem Hi, thank you but sadly it did'nt help. Changed the DRIVER and translated to GeoTiff, but the problem remained. Even after I changed my .map file projection to EPSG:3301 (same like that .tif file has) was the same picture there. If I zoom in/out, then the picture changes a bit -> http://picasaweb.google.com/snaperski/Ort#5246949911192681730 Strange:) Raivo On Wed, Sep 17, 2008 at 2:27 PM, Rahkonen Jukka wrote: Hi, If all the clients show the same artifacts we can trust they come from the server. For some reason it does not like your original image. Try converting it to uncompressed geotiff image with gdal_translate gdal_translate -of GTiff 54653.tif 54653_basic.tif Make another layer from this new image, or edit your mapfile to use that instead of the original 54653.tif. What happens? By the way, I believe it should read DRIVER "GD/PNG24" -Jukka- ________________________________ L?hett?j?: Raivo Alla [mailto:snaperski at gmail.com] L?hetetty: 17. syyskuuta 2008 14:16 Vastaanottaja: Rahkonen Jukka Aihe: Re: [mapserver-users] mapserver 5 TIFF displaying problem Hei, thank you for advice! I changed .map a bit: IMAGETYPE png24 OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" END output quality looks better, but that black-lined crap is still there:( I tried the same with uDig and Gaia WMS-clients, but it's the same. Raivo On Wed, Sep 17, 2008 at 1:51 PM, Rahkonen Jukka wrote: Hi, It's getting closer. Image is now at least in a correct place? Distortion can be due to ArcMAP, perhaps it does not like the outputformat you are using. Next trials: - Have a try with another client software. like Quantum GIS, OpenJUMP, Cadcorp SIS map browser, or just your web browser. - Try changing outputformat. I believe you will need to change it anyway, png is not good for aerial images. Try png24 or jpeg instead. -Jukka- ________________________________ L?hett?j?: Raivo Alla [mailto:snaperski at gmail.com] L?hetetty: 17. syyskuuta 2008 13:43 Vastaanottaja: Rahkonen Jukka Aihe: Re: [mapserver-users] mapserver 5 TIFF displaying problem Thank you, I added PROJECTION block to the layer, but unfortunately the same dance: output is corrupted as it could be seen here: http://picasaweb.google.com/snaperski/Ort#5246933992333025954 Maybe I should compile mapserver without -with-tiff key? Raivo On Wed, Sep 17, 2008 at 1:03 PM, Rahkonen Jukka wrote: Tere. You have defined the output projection as epsg:4326 and by quick look it is OK in both map projection and WMS metadata. However, your original image is in Estonian projection, but Mapserver does not know it automatically. You need to add PROJECTION block to layer definitions as well. Try editin your mapfile as follows: LAYER TYPE RASTER NAME "raster" STATUS ON DATA "54653.tif" PROJECTION "init=epsg:3301" END #end projection END #end layer I hope I guessed the epsg code right. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Raivo Alla L?hetetty: 17. syyskuuta 2008 12:51 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] mapserver 5 TIFF displaying problem Thank you for answering! There's some additional information. Gdalinfo output: Driver: GTiff/GeoTIFF Files: 65812.tif 65812.aux Size is 5000, 5000 Coordinate System is: LOCAL_CS["Estonia_1997_Estonia_National_Grid", UNIT["meters",1]] Origin = (715000.500000000000000,6584999.500000000000000) Pixel Size = (1.000000000000000,-1.000000000000000) Metadata: TIFFTAG_XRESOLUTION=2272.0896 TIFFTAG_YRESOLUTION=2272.0896 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Image Structure Metadata: COMPRESSION=LZW INTERLEAVE=PIXEL Corner Coordinates: Upper Left ( 715000.500, 6584999.500) Lower Left ( 715000.500, 6579999.500) Upper Right ( 720000.500, 6584999.500) Lower Right ( 720000.500, 6579999.500) Center ( 717500.500, 6582499.500) Band 1 Block=5000x8 Type=Byte, ColorInterp=Red Metadata: LAYER_TYPE=athematic Band 2 Block=5000x8 Type=Byte, ColorInterp=Green Metadata: LAYER_TYPE=athematic Band 3 Block=5000x8 Type=Byte, ColorInterp=Blue Metadata: LAYER_TYPE=athematic And from .map file: IMAGETYPE PNG OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB END PROJECTION "init=epsg:4326" END METADATA WMS_TITLE "UMN MapServer Maa-ameti TEST" WMS_ABSTRACT "M?eldud testimiseks" WMS_ACCESSCONSTRAINTS "none" WMS_SRS "EPSG:4326" END Could it be problem that coordinate systems does not match? However, I remember it's written that Mapserver could do SRS transforming on-the-fly. On Wed, Sep 17, 2008 at 11:23 AM, Rahkonen Jukka wrote: Hi, Impossible to say with this information. Much better possibilities to help you if you could send also the main MAP part of your mapfile including at lesast outputformat and projection, and the metadata sections. Gdalinfo report about the image might be helpful as well. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Raivo Alla L?hetetty: 17. syyskuuta 2008 9:38 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] mapserver 5 TIFF displaying problem Hello, I'm quite new using Mapserver and found myself struggling with this simple-looking problem: In my map file, there is layer defined as follows: LAYER TYPE RASTER NAME "raster" STATUS ON DATA "54653.tif" END The problem is, that this image is corrupted when I look at it in ArcMap - it contains strange black boxes and stripes. Original image is OK, so I guess the problem is somewhere in map file. .tfw file should be ok: 1.000000000000000 0.000000000000000 0.000000000000000 -1.000000000000000 650000.500000000000000 6469999.500000000000000 What could be the problem? Raivo Alla -------------- next part -------------- An HTML attachment was scrubbed... URL: From Doug_Newcomb at fws.gov Wed Sep 17 05:26:41 2008 From: Doug_Newcomb at fws.gov (Doug_Newcomb at fws.gov) Date: Wed, 17 Sep 2008 08:26:41 -0400 Subject: [mapserver-users] Ed's Rules for the Best Raster Performance In-Reply-To: <48CFE58E0200004F0000B557@jeckle> Message-ID: >One other thing I just noticed: to effectively use the tiled tiffs I need BigTiff support which looks like it >is a real new thing (needs libtiff 4.0 which is still in beta according to the remotesensing.org ftp site.) If you compile gdal 1.5.2 from source and use the tiff=internal option, you get bigtiff support, without installing libtiff 4.0 yourself, http://www.gdal.org/formats_list.html . I have not tested this as an image source for mapserver yet, but I have created a couple of bigtiff images. Doug Doug Newcomb USFWS Raleigh, NC 919-856-4520 ext. 14 doug_newcomb at fws.gov --------------------------------------------------------------------------------------------------------- The opinions I express are my own and are not representative of the official policy of the U.S.Fish and Wildlife Service or Dept. of Interior. Life is too short for undocumented, proprietary data formats. "Jim Klassen" To Sent by: , mapserver-users-b ounces at lists.osge cc o.org mapserver-users at lists.osgeo.org Subject Re: [mapserver-users] Ed's Rules 09/16/2008 04:57 for the Best Raster Performance PM One other thing I just noticed: to effectively use the tiled tiffs I need BigTiff support which looks like it is a real new thing (needs libtiff 4.0 which is still in beta according to the remotesensing.org ftp site.) Anyway, I'm still going to give this a try and check the performance difference. For us, with existing hardware, disk space would be an issue for uncompressed images so I will be trying JPEG in TIFF. All I can say about the JPEG->JPEG re-compression artifacts is with the existing setup, we haven't had any complaints. The "large" number of files doesn't (in our case < 500k) doesn't seem to effect the operational performance of our server in a meaningful way. (I don't remember the exact numbers, but I have measured file access time in directories with 10 files and 100k files and they the difference was much less than the total mapserver run time.) It is a pain though when making copies or running backups. As Bob said, for a typical image request sizes of less than 1000px, the "tiles/overviews" design pretty much limits the number of files mapserver has to touch to 4, so access time stays fairly constant across different views. Also, I forgot to mention that the disk subsystem here isn't exactly your average desktop PC. (8*10K SCSI drives in RAID 10 with 1GB dedicated to the RAID controller.) Similar requests on a much older machine we have around here with slower disk/processor take about 800ms. I don't have any info to attribute this to disk vs. cpu or both. One of the main reasons we decided on JPEG here early on was the licensing headaches surrounding mrsid/ecw/jp2. JPEG was easy and supported well by just about everything. Actually, for that matter, TIFFs are a lot harder to use directly by most (non-GIS) applications than JPEG/PNG too. We may be past this being an issue, but once upon a time, before our use of mapserver, the JPEG tiles were being accessed directly from the webserver by various client applications (that didn't all understand tiff). Instead of using world files to determine the extents, the tiles were accessed by a predictable naming convention relating to the extent. When we started using mapserver we retained the existing tiling scheme (adding world files and tileindexes so mapserver could position the tiles) and it seemed to work well, so haven't given it much thought since. Thanks for all the interest and discussion around this. Jim K >>> Jeff Hoffmann 09/16/08 4:03 PM >>> Ed McNierney wrote: > If you want to shrink the file size in this thought experiment that?s > fine, but realize that you are thereby increasing the number of files > that need to be opened for a random image request. And each new open > file incurs a relatively high cost (directory/disk seek overhead, > etc.); those thousands or millions of JPEGs aren?t just hard to keep > track of ? they hurt performance. I have been the keeper of tens of > millions of such files, and have seen some of those issues myself. That's certainly a consideration, but you could also counter that by using jpeg compressed geotiffs. You'd want to make sure to tile them, otherwise you'd have that same big jpeg performance problem -- I think tiled effectively treats them as individual jpegs wrapped in one big file. No clue on what the actual performance of that would be, but it's something to consider if you've got filesystem performance problems. > The example I gave (and my other examples) are, however, primarily > intended to help people think about all the aspects of the problem. > File access performance in an application environment is a complex > issue with many variables and any implementation should be prototyped > and tested. All I really care about is that you don?t think it?s > simple and you try to think through all the consequences of an > implementation plan. One of the reasons why I replied to this originally is that I think it's good to keep options open so people can evaluate them for their specific circumstances. What I was hearing you say was "if you make bad choices, it'll perform badly" & I'm just trying to throw out some other choices that would better and probably be make it worth a try for a lot of people. It's pretty common for me to get imagery in 5000x5000 or 10000x10000 geotiff tiles. I just got imagery for one county like that that weighs in at close to 1TB; if I were to decide I can't afford that kind of disk space for whatever reason, I'd investigate some compressed options. If I don't know any different, I might just compress that tile into one large jpeg (like in your example), discover the performance is terrible, discard it & file away in my mind that jpegs perform terribly. I might not understand that a 5000x5000 jpeg is going to use 75MB of memory and take an order of magnitude longer to decompress than that 1000x1000 jpeg that only takes up 3MB in memory and decompresses nearly instantly while giving you that same 500x500 chunk of image. There are nice things about jpegs, like you don't need commercial libraries like you would with ecw, mrsid, jp2, you don't have to worry about licensing issues, size constraints, compiler environment, all that, which makes it a pretty attractive compressed format if you can get it to perform well, but if you don't know to break them up into smallish chunks I don't think getting to that performance level is really possible (for exactly the reasons you describe). > I will also admit to being very guilty of not designing for > ?low-moderate load? situations, as I always like my Web sites to be > able to survive the situation in which they accidentally turn out to > be popular! I had second thoughts about saying this, because one man's "low" load might be "high" for someone else especially if you're talking to someone who has run a pretty high profile site, but I'd wager you're the exception and there are a lot of smaller fish out there. I'd think that Jim is probably more in line with an average user, a moderately sized city/county that would probably come nowhere near maxing out even modest hardware with those jpegs of his. It's probably those smaller fish where compression is more important, maybe they're fighting for space on a department-level server or can't get budget approval to upgrade their drives. I'd hate for those folks to have to settle for a slow (cpu intensive) wavelet-based compression when a properly configured jpeg layer might be the compromise they're looking for. jeff _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From gerry.creager at tamu.edu Wed Sep 17 05:45:57 2008 From: gerry.creager at tamu.edu (Gerry Creager) Date: Wed, 17 Sep 2008 07:45:57 -0500 Subject: [mapserver-users] rotation of vector symbol In-Reply-To: References: Message-ID: <48D0FC05.3050505@tamu.edu> Alberto, I'm not sure if this comment is a "bug" report or documentation of performance. A clockwise rotation isn't wrong, if it's understood and documented. From my perspective (wind/weather) an anti-clock rotation, which you're presenting as "right" is counterintuitive. Although I would prefer to see the rotation origin start at 'north' it does not pose a serious problem, as I know what the rule is, and it is invariant. gerry Alberto Poggi wrote: > Hi. > Let me tell you about an issue of rotation of the vector symbols. I > found that in mapserver the rotation of these symbols does not follow > the classic rules that provide for the starting rotation in sequence > from east to the north, west and south. I published my work with > PMAPPER and MAPSERVER and I noticed that the rotation is done on the > other hand (east, south, west and north), and only on symbols of a > vector. This problem on the labelling does not exist and the rotation > is correct. > The layer referenced for symbol is a postgis table that contains a > field "rotazione" used by MapServer for the rotation of symbols. The > display of symbols is right but the rotation is done wrong. > This is the definition of my symbol: > SYMBOL > NAME "valvola" > TYPE vector > POINTS > 0 0 > 1.5 1 > 1.5 0 > 0 1 > 0 0 > END > FILLED TRUE > END > and this is the notation in the mapfile: > LAYER > NAME "Valvole" > TYPE POINT > CONNECTIONTYPE postgis > CONNECTION "user=****** password=***** dbname=ACQUA host=localhost" > DATA "the_geom FROM valvole" > STATUS DEFAULT > MAXSCALE 5001 > TOLERANCE 10 > TOLERANCEUNITS pixels > PROJECTION > "init=epsg:32632" > END > > METADATA > "DESCRIPTION" "Valvole" > "RESULT_FIELDS" "comune,localita" > "RESULT_HEADERS" "Comune,Localit?" > "LAYER_ENCODING" "UTF-8" > "ows_title" "Dati valvole" > END # Metadata > > CLASS > NAME "Valvole" > > STYLE > SYMBOL 'valvola' > COLOR 0 255 255 > OUTLINECOLOR 0 0 0 > ANGLE [rotazione] > SIZE 8 > END > END > TEMPLATE void > END > > It's me that something wrong or is a known problem? Thank you. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- 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 Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843 From albpoggi at gmail.com Wed Sep 17 06:08:37 2008 From: albpoggi at gmail.com (Alberto Poggi) Date: Wed, 17 Sep 2008 15:08:37 +0200 Subject: [mapserver-users] rotation of vector symbol In-Reply-To: <48D0FC05.3050505@tamu.edu> References: <48D0FC05.3050505@tamu.edu> Message-ID: My problem is that my files are derived from dwg files Autodesk map. the export shape files showing the rotation following the rules of autocad, namely east, north, west and south. This type of rotation is used by all the owner cad and gis software. So it is a "standard" set many years ago that still is valid and not changeable and, in my opinion, the proper functioning of MapServer in the rotation of the symbols can not be separated from this rule. However you do notice that I wrote in my other messages that the problem in MapServer is exclusively in the representation of the symbols while the label following the rotation instead of autocad. This makes me think that is a mistake in the programming of MapServer. However, I agree with you, everything would be much easier if the rotation follow clockwise from the north. 2008/9/17 Gerry Creager : > Alberto, > > I'm not sure if this comment is a "bug" report or documentation of > performance. > > A clockwise rotation isn't wrong, if it's understood and documented. From my > perspective (wind/weather) an anti-clock rotation, which you're presenting > as "right" is counterintuitive. Although I would prefer to see the rotation > origin start at 'north' it does not pose a serious problem, as I know what > the rule is, and it is invariant. > > gerry > > Alberto Poggi wrote: >> >> Hi. >> Let me tell you about an issue of rotation of the vector symbols. I >> found that in mapserver the rotation of these symbols does not follow >> the classic rules that provide for the starting rotation in sequence >> from east to the north, west and south. I published my work with >> PMAPPER and MAPSERVER and I noticed that the rotation is done on the >> other hand (east, south, west and north), and only on symbols of a >> vector. This problem on the labelling does not exist and the rotation >> is correct. >> The layer referenced for symbol is a postgis table that contains a >> field "rotazione" used by MapServer for the rotation of symbols. The >> display of symbols is right but the rotation is done wrong. >> This is the definition of my symbol: >> SYMBOL >> NAME "valvola" >> TYPE vector >> POINTS >> 0 0 >> 1.5 1 >> 1.5 0 >> 0 1 >> 0 0 >> END >> FILLED TRUE >> END >> and this is the notation in the mapfile: >> LAYER >> NAME "Valvole" >> TYPE POINT >> CONNECTIONTYPE postgis >> CONNECTION "user=****** password=***** dbname=ACQUA host=localhost" >> DATA "the_geom FROM valvole" >> STATUS DEFAULT >> MAXSCALE 5001 >> TOLERANCE 10 >> TOLERANCEUNITS pixels >> PROJECTION >> "init=epsg:32632" >> END >> >> METADATA >> "DESCRIPTION" "Valvole" >> "RESULT_FIELDS" "comune,localita" >> "RESULT_HEADERS" "Comune,Localit?" >> "LAYER_ENCODING" "UTF-8" >> "ows_title" "Dati valvole" >> END # Metadata >> >> CLASS >> NAME "Valvole" >> >> STYLE >> SYMBOL 'valvola' >> COLOR 0 255 255 >> OUTLINECOLOR 0 0 0 >> ANGLE [rotazione] >> SIZE 8 >> END >> END >> TEMPLATE void >> END >> >> It's me that something wrong or is a known problem? Thank you. >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- > 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 > Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843 > From JXA at cowi.dk Wed Sep 17 07:23:57 2008 From: JXA at cowi.dk (Jeppe Lund Andersen) Date: Wed, 17 Sep 2008 16:23:57 +0200 Subject: [mapserver-users] Geometry_columns Message-ID: Hello all Wrote a few days ago but did not get any replay so I try again. I upgradede mapserver from 4.8.4 to version 5.2 and gdal from 1.3.2. to 1.5.2 Now I get this error Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'ODBC'. in c:\inetpub\wwwroot\jar3\xmlkort.php on line 591 Warning: [MapServer Error]: msOGRFileNextShape(): No column definitions found for table 'test', layer not usable. in c:\inetpub\wwwroot\jar3\xmlkort.php on line 591 Fatal error: Call to a member function on a non-object in c:\inetpub\wwwroot\jar3\xmlkort.php on line 621 I found out that I had a row i geometry_columns that did not have a view with that name, this was not a problem in mapserver 4.8.4 found in mapogr.cpp static int msOGRFileNextShape(layerObj *layer, shapeObj *shape, msOGRFileInfo *psInfo ) that this code has been changed ***** cut out ***** **** from 5.2 **** if( (hFeature = OGR_L_GetNextFeature( psInfo->hLayer )) == NULL ) { if( CPLGetLastErrorType() == CE_Failure ) { msSetError(MS_OGRERR, "%s", "msOGRFileNextShape()", CPLGetLastErrorMsg() ); RELEASE_OGR_LOCK; return MS_FAILURE; } else { RELEASE_OGR_LOCK; if (layer->debug >= MS_DEBUGLEVEL_VV) msDebug("msOGRFileNextShape: Returning MS_DONE (no more shapes)\n" ); return MS_DONE; // No more features to read } } ***** cut out ***** ***** cut out ***** *** from 4.8.4 **** if( (poFeature = psInfo->poLayer->GetNextFeature()) == NULL ) { return MS_DONE; // No more features to read } ***** cut out ***** do you see any problem in changing the code to if( (hFeature = OGR_L_GetNextFeature( psInfo->hLayer )) == NULL ) { return MS_DONE; // No more features to read } so that it doesnot check all rows in geometry_columns and is there a reason why all rows in geometry_columns should have a matching view ? Jeppe Lund Andersen -------------- next part -------------- An HTML attachment was scrubbed... URL: From gemerson at WelshCo.com Wed Sep 17 07:45:01 2008 From: gemerson at WelshCo.com (Emerson, Gabe) Date: Wed, 17 Sep 2008 09:45:01 -0500 Subject: [mapserver-users] mapserver 5 TIFF displaying problem In-Reply-To: References: <49dc012b0809170456y1fd3eea7p4d5044702368d3e9@mail.gmail.com> Message-ID: <348277DFCE9FF044B3812A6CF459CD3701159F59@welshmail.welshco.com.local> Raivo, I sometimes get odd artifacts showing up on my PNG24 maps as well. I don't know if it's related to your problem, but I believe mine is client-related based on its behavior, even though it happens on multiple computers and browsers. Every now and then, my map comes out looking like this: https://netfiles.umn.edu/users/emers089/www/imgerror.jpg It doesn't always look the same, sometimes the map is greyed out or covered in mostly black, sometimes only part of the map is affected. Since it's unpredictable and infrequent, I haven't been able to test very much. However, It clears itself immediately when I click anything on the page, or when I resize the browser window. That makes me think that my problem is related to client-side graphics drivers; the correct image is already in the browser, just hidden under the artifacting. I've been meaning to play around with driver updates, but it hasn't been enough of an issue. -Gabe From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Wednesday, September 17, 2008 7:22 AM To: Raivo Alla; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] mapserver 5 TIFF displaying problem I'm sorry, I fear I can't help you further. I'm sure that somebody else will go on with your problem soon. There must be something odd in the image or in your Mapserver. You could still try two things and try to find exact reason for the failure: - use ready compiled Mapserver if you find such for your operating system - test with another image from different source -Jukka- ________________________________ L?hett?j?: Raivo Alla [mailto:snaperski at gmail.com] L?hetetty: 17. syyskuuta 2008 14:57 Vastaanottaja: Rahkonen Jukka Aihe: Re: [mapserver-users] mapserver 5 TIFF displaying problem Hi, thank you but sadly it did'nt help. Changed the DRIVER and translated to GeoTiff, but the problem remained. Even after I changed my .map file projection to EPSG:3301 (same like that .tif file has) was the same picture there. If I zoom in/out, then the picture changes a bit -> http://picasaweb.google.com/snaperski/Ort#5246949911192681730 Strange:) Raivo On Wed, Sep 17, 2008 at 2:27 PM, Rahkonen Jukka wrote: Hi, If all the clients show the same artifacts we can trust they come from the server. For some reason it does not like your original image. Try converting it to uncompressed geotiff image with gdal_translate gdal_translate -of GTiff 54653.tif 54653_basic.tif Make another layer from this new image, or edit your mapfile to use that instead of the original 54653.tif. What happens? By the way, I believe it should read DRIVER "GD/PNG24" -Jukka- ________________________________ L?hett?j?: Raivo Alla [mailto:snaperski at gmail.com] L?hetetty: 17. syyskuuta 2008 14:16 Vastaanottaja: Rahkonen Jukka Aihe: Re: [mapserver-users] mapserver 5 TIFF displaying problem Hei, thank you for advice! I changed .map a bit: IMAGETYPE png24 OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" END output quality looks better, but that black-lined crap is still there:( I tried the same with uDig and Gaia WMS-clients, but it's the same. Raivo On Wed, Sep 17, 2008 at 1:51 PM, Rahkonen Jukka wrote: Hi, It's getting closer. Image is now at least in a correct place? Distortion can be due to ArcMAP, perhaps it does not like the outputformat you are using. Next trials: - Have a try with another client software. like Quantum GIS, OpenJUMP, Cadcorp SIS map browser, or just your web browser. - Try changing outputformat. I believe you will need to change it anyway, png is not good for aerial images. Try png24 or jpeg instead. -Jukka- ________________________________ L?hett?j?: Raivo Alla [mailto:snaperski at gmail.com] L?hetetty: 17. syyskuuta 2008 13:43 Vastaanottaja: Rahkonen Jukka Aihe: Re: [mapserver-users] mapserver 5 TIFF displaying problem Thank you, I added PROJECTION block to the layer, but unfortunately the same dance: output is corrupted as it could be seen here: http://picasaweb.google.com/snaperski/Ort#5246933992333025954 Maybe I should compile mapserver without -with-tiff key? Raivo On Wed, Sep 17, 2008 at 1:03 PM, Rahkonen Jukka wrote: Tere. You have defined the output projection as epsg:4326 and by quick look it is OK in both map projection and WMS metadata. However, your original image is in Estonian projection, but Mapserver does not know it automatically. You need to add PROJECTION block to layer definitions as well. Try editin your mapfile as follows: LAYER TYPE RASTER NAME "raster" STATUS ON DATA "54653.tif" PROJECTION "init=epsg:3301" END #end projection END #end layer I hope I guessed the epsg code right. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Raivo Alla L?hetetty: 17. syyskuuta 2008 12:51 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] mapserver 5 TIFF displaying problem Thank you for answering! There's some additional information. Gdalinfo output: Driver: GTiff/GeoTIFF Files: 65812.tif 65812.aux Size is 5000, 5000 Coordinate System is: LOCAL_CS["Estonia_1997_Estonia_National_Grid", UNIT["meters",1]] Origin = (715000.500000000000000,6584999.500000000000000) Pixel Size = (1.000000000000000,-1.000000000000000) Metadata: TIFFTAG_XRESOLUTION=2272.0896 TIFFTAG_YRESOLUTION=2272.0896 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Image Structure Metadata: COMPRESSION=LZW INTERLEAVE=PIXEL Corner Coordinates: Upper Left ( 715000.500, 6584999.500) Lower Left ( 715000.500, 6579999.500) Upper Right ( 720000.500, 6584999.500) Lower Right ( 720000.500, 6579999.500) Center ( 717500.500, 6582499.500) Band 1 Block=5000x8 Type=Byte, ColorInterp=Red Metadata: LAYER_TYPE=athematic Band 2 Block=5000x8 Type=Byte, ColorInterp=Green Metadata: LAYER_TYPE=athematic Band 3 Block=5000x8 Type=Byte, ColorInterp=Blue Metadata: LAYER_TYPE=athematic And from .map file: IMAGETYPE PNG OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB END PROJECTION "init=epsg:4326" END METADATA WMS_TITLE "UMN MapServer Maa-ameti TEST" WMS_ABSTRACT "M?eldud testimiseks" WMS_ACCESSCONSTRAINTS "none" WMS_SRS "EPSG:4326" END Could it be problem that coordinate systems does not match? However, I remember it's written that Mapserver could do SRS transforming on-the-fly. On Wed, Sep 17, 2008 at 11:23 AM, Rahkonen Jukka wrote: Hi, Impossible to say with this information. Much better possibilities to help you if you could send also the main MAP part of your mapfile including at lesast outputformat and projection, and the metadata sections. Gdalinfo report about the image might be helpful as well. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Raivo Alla L?hetetty: 17. syyskuuta 2008 9:38 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] mapserver 5 TIFF displaying problem Hello, I'm quite new using Mapserver and found myself struggling with this simple-looking problem: In my map file, there is layer defined as follows: LAYER TYPE RASTER NAME "raster" STATUS ON DATA "54653.tif" END The problem is, that this image is corrupted when I look at it in ArcMap - it contains strange black boxes and stripes. Original image is OK, so I guess the problem is somewhere in map file. .tfw file should be ok: 1.000000000000000 0.000000000000000 0.000000000000000 -1.000000000000000 650000.500000000000000 6469999.500000000000000 What could be the problem? Raivo Alla -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlacroix at mapgears.com Wed Sep 17 08:00:57 2008 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Wed, 17 Sep 2008 11:00:57 -0400 Subject: [mapserver-users] MapInfo Auto Labeling and MapServer In-Reply-To: References: Message-ID: <48D11BA9.2070200@mapgears.com> Hi, There's the SIZEUNITS parameter in the mapfile that can help you. I'm not sure it works with labels, but it worth a try: http://mapserver.gis.umn.edu/docs/reference/mapfile/layer You can also try to set STYLEITEM AUTO at the layer level, but that won't work with labels. http://mapserver.gis.umn.edu/docs/reference/vector_data/mapinfo Julien Matej wrote: > Hi, > > after deploying MapServer on one of our servers I thinks that MapServer > is a great tool but I am having some problems with TABs, imported from > MapInfo. I am able to load all the layers from the test workspace except > one, which consists of a houses (circle symbol) and house addresses > (auto-labeling from the data field "Address"). > > I have therefore some questions and will be very glad if there are some > answers available :) > > - In MI for that layer I have auto labeling set which works OK. When I > look at the map on different zooms, the text is larger or smaller, but > every label exists and if I zoom in enough, every house has it's number > visible. Is there a chance to somehow "directly" load this auto labeling > into MapServer? If it is, how can I do this? > > I haven't found a good answer to the first question, so the next one is: > - I have problems getting all the house addresses from MI since it > creates the labels only with the sizes according to current zoom level > AND only the part of the map visible at that moment. So when I want to > have all the houses numbered with readable addresses (not covering each > other), I have to zoom in enough and then move with cursor along the > entire map for MI to "create" satisfactory labels. Using this method > (well, it's a very very stupid one!) it works for smaller maps, but for > larger it's a no-no. Also the labeling tools that are in MI affect > current view only. Is there a tool which would do it more user-friendly? > > Since this is a pretty common problem as I see it, I am sure that some > of you already had this problem and (hopefully!) found a solution. > > Thanks everyone for help and ideas in advance, > Matej Serc > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From gemerson at WelshCo.com Wed Sep 17 08:13:53 2008 From: gemerson at WelshCo.com (Emerson, Gabe) Date: Wed, 17 Sep 2008 10:13:53 -0500 Subject: [mapserver-users] Flexible queries In-Reply-To: References: Message-ID: <348277DFCE9FF044B3812A6CF459CD3701159F7C@welshmail.welshco.com.local> Hi All, I have an interesting mini-project which some of you might have dealt with before, I'd be interested in any suggestions. I'd like to run a query (presented to users as an address search), across multiple layers. For example, after an address is entered, the system first searches an in-house dataset, if there are no matches it searches a county parcel dataset, and if both fail, it tries to map the address via a geocoding API. The issue I'm running into is that each of the layers stores addresses a little differently. The in-house set tends to be sloppy about punctuation and things like directions ('N' vs 'North', 'St' vs 'ST.' vs 'Street', etc). The county is more standardized but breaks everything up into street prefix, name, type, suffix, etc. (Minnesota Met Council, for those of you familiar with it). In addition, users tend not to enter addresses the same way twice, and to leave out things like the street type and direction. I'm wondering if there's a way to relax the query matches so that something like "100 James" will return a match from a DBF containing "100 South James Ave", or a set of columns like "100" "S" "James" "Ave". Something along the lines of The Geocoding API is flexible in this way, so one solution I considered is to use it as an address parser and then use the returned X,Y data for an itemquery on each of the layers. The problems with that are slower performance and possible API unavailability. Currently I'm using Mapserver in CGI mode with some Javascript for frontend logic and custom tools. I developed the application this way for various reasons, but am considering moving to PHP Mapscript for better performance. If something like this is possible with the CGI approach I'd love to hear about it, but I'd also be interested in mapscript ideas or examples. Thanks! -Gabe Gabe Emerson Research Department Welsh Companies 4350 Baker Road, Suite 400 Minnetonka, MN 55343-8695 952-897-7700, ext. 1306 gemerson at welshco.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From John.Westwood at port.ac.uk Wed Sep 17 08:40:43 2008 From: John.Westwood at port.ac.uk (John Westwood) Date: Wed, 17 Sep 2008 16:40:43 +0100 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance Message-ID: <48D1330B.FEDC.0053.0@port.ac.uk> Hi, I am trying to use fast_cgi with MapServer, specifically mod_fcgid on SLES 10.2. I have mod_fcgid correctly set up within Apache because it works with another FCGI application (IIPImage). I have successfully compiled MapServer 5.2 with fast_cgi support. I used this page to help me: http://mapserver.gis.umn.edu/docs/howto/fastcgi However, when I try to use MapServer with mod_fcgid I receive the following error: The server encountered an internal error and was unable to complete your request Error message: Premature end of script headers: mapserv I am really lost as to what the problem could be; the non fast_cgi version of MapServer that I compiled worked fine. Perhaps it is something to do with setting the LD_LIBRARY_PATH in the mod_fcgid.conf file? At the moment I have it set as follows: DefaultInitEnv LD_LIBRARY_PATH "/usr/lib:/usr/local/lib:/usr/lib/postgresql" The reason I am trying to get MapServer to work with fast_cgi is because I am experiencing poor performance with OpenLayers. I believe that OpenLayers starts a new MapServer instance for each tile request, thus causing an unnecessary overhead. Am I correct? I will also be using Tilecache, but my experiments have also found this to be slow. It is currently set up to use mod_python. The hardware we are running on is a dual quad core (eight cores in total) Xeon . So it shouldn't be slow! I would greatly appreciate any help on getting MapServer to work with fast_cgi . I would also welcome any comments regarding performance issues with OpenLayers / MapServer / Tilecache . Thanks very much, John Westwood Great Britain Historical GIS Project From pramsey at cleverelephant.ca Wed Sep 17 09:14:05 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Wed, 17 Sep 2008 09:14:05 -0700 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance In-Reply-To: <48D1330B.FEDC.0053.0@port.ac.uk> References: <48D1330B.FEDC.0053.0@port.ac.uk> Message-ID: <30fe546d0809170914lacc2d1cs57699416d0e51fb4@mail.gmail.com> John, The idea that CGI is naturally a much slower situation than a long-running process is a bit of a red herring in the case of Mapserver, and I say that as someone who is anal retentive about these things. Unless your Mapserver installation has some naturally latent components (database connections, primarily) you'll find that moving from CGI to FastCGI is worth about 15ms per request. On Wed, Sep 17, 2008 at 8:40 AM, John Westwood wrote: > The reason I am trying to get MapServer to work with fast_cgi is because I am experiencing poor performance with OpenLayers. I believe that OpenLayers starts a new MapServer instance for each tile request, thus causing an unnecessary overhead. Am I correct? Yes and no. If you are experiencing noticeably poor performance (you can actually *see* it being slow) the only place that the CGI overhead could be the cause is if you're connecting to Oracle or SDE for some of your layers. If that's not the case, look elsewhere first, the very small gains you will receive from moving to FastCGI will not change your underlying problem. Paul From Steve.Lime at dnr.state.mn.us Wed Sep 17 10:32:44 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 17 Sep 2008 12:32:44 -0500 Subject: [mapserver-users] Flexible queries (to support address lookups) Message-ID: <48D0F8ED0200008F0001BA88@co5.dnr.state.mn.us> I think we'd need fuzzy match operator, probably one specific to address matching. This would involve adding a C function(s) to compare to addresses strings and then tweaking the MapServer yacc grammar to recognize the new operator. The trick would obviously to write the C function and there are folks on the list with considerable experience with that problem. If you HAD that operator then presumably you could write different filters depending on your data, e.g.: ('user entered address' addreq '[address column]') or ('user entered address' addreq '[prefix] [name] [type] [suffix]') That would be faster than trying to manipulate the current operators. You could also do a very generic query, like a case insensitive lookup on the street name and then operate on that result set in your application to deal with data differences. Steve >>> "Emerson, Gabe" 09/17/08 10:16 AM >>> Hi All, I have an interesting mini-project which some of you might have dealt with before, I'd be interested in any suggestions. I'd like to run a query (presented to users as an address search), across multiple layers. For example, after an address is entered, the system first searches an in-house dataset, if there are no matches it searches a county parcel dataset, and if both fail, it tries to map the address via a geocoding API. The issue I'm running into is that each of the layers stores addresses a little differently. The in-house set tends to be sloppy about punctuation and things like directions ('N' vs 'North', 'St' vs 'ST.' vs 'Street', etc). The county is more standardized but breaks everything up into street prefix, name, type, suffix, etc. (Minnesota Met Council, for those of you familiar with it). In addition, users tend not to enter addresses the same way twice, and to leave out things like the street type and direction. I'm wondering if there's a way to relax the query matches so that something like "100 James" will return a match from a DBF containing "100 South James Ave", or a set of columns like "100" "S" "James" "Ave". Something along the lines of The Geocoding API is flexible in this way, so one solution I considered is to use it as an address parser and then use the returned X,Y data for an itemquery on each of the layers. The problems with that are slower performance and possible API unavailability. Currently I'm using Mapserver in CGI mode with some Javascript for frontend logic and custom tools. I developed the application this way for various reasons, but am considering moving to PHP Mapscript for better performance. If something like this is possible with the CGI approach I'd love to hear about it, but I'd also be interested in mapscript ideas or examples. Thanks! -Gabe Gabe Emerson Research Department Welsh Companies 4350 Baker Road, Suite 400 Minnetonka, MN 55343-8695 952-897-7700, ext. 1306 gemerson at welshco.com From woodbri at swoodbridge.com Wed Sep 17 12:22:34 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 17 Sep 2008 14:22:34 -0500 Subject: [mapserver-users] Flexible queries (to support address lookups) In-Reply-To: <48D0F8ED0200008F0001BA88@co5.dnr.state.mn.us> References: <48D0F8ED0200008F0001BA88@co5.dnr.state.mn.us> Message-ID: <48D158FA.7040300@swoodbridge.com> This is one approach to the problem, but it does not deal with the real problems of matching user entered addresses with addresses encoded on street segments. For example: matching AL 44, Alabama 44, AL-44, Alabama Highway 44, Highway 44, State Highway 44, Rt 44, and various other abbreviations for Highway, simple typo errors, adding N, N., North, S, S., South, etc designations to the Highway, adding Alt., Bus., Byp., etc and on it goes. You also need to deal with accented characters, that are sometimes entered without accents. In a geocoder, you typically have a standardizer that sort our all that craziness. Then when you load the geocoder, you standardize the vendor data and store it in a standard form. When you get a geocode request you standardize the incoming request and then try to match the standard form with the vendor data which is also in standard form. You can also you techniques like metaphone/soundex codes to do fuzzy searching and then use levensthein distance to score the possible matched results for how close they are to the request. You need to be prepared to handle multiple results to a query, for example you search for Oak St. but only find North Oak Street and South Oak Street. Also what are you going to search? your whole dataset, or are you also going to want to filter it by City, state, postal code, country. I thins case you also need to be able to parse the full address into al these additional terms. and filter your search to those appropriate to that limited region. It makes much more sense, to load the appropriate data records into a relational database and make the queries in SQL. If you do not want to use a full blown database like Postgresql or Mysql, then look at SQLite which is a wonderful embedded database with zero management and had binding for C, Perl, Python, PHP, TCL, etc. My two cents, from someone that has his head and fingers in too many geocoders. -Steve http://imaptools.com/ Steve Lime wrote: > I think we'd need fuzzy match operator, probably one specific to address > matching. This would involve adding a C function(s) to compare to addresses > strings and then tweaking the MapServer yacc grammar to recognize the > new operator. The trick would obviously to write the C function and there are > folks on the list with considerable experience with that problem. > > If you HAD that operator then presumably you could write different filters > depending on your data, e.g.: > > ('user entered address' addreq '[address column]') or > ('user entered address' addreq '[prefix] [name] [type] [suffix]') > > That would be faster than trying to manipulate the current operators. You could > also do a very generic query, like a case insensitive lookup on the street name > and then operate on that result set in your application to deal with data > differences. > > Steve > >>>> "Emerson, Gabe" 09/17/08 10:16 AM >>> > Hi All, > > I have an interesting mini-project which some of you might have dealt > with before, I'd be interested in any suggestions. > > I'd like to run a query (presented to users as an address search), > across multiple layers. For example, after an address is entered, the > system first searches an in-house dataset, if there are no matches it > searches a county parcel dataset, and if both fail, it tries to map the > address via a geocoding API. > > The issue I'm running into is that each of the layers stores addresses a > little differently. The in-house set tends to be sloppy about > punctuation and things like directions ('N' vs 'North', 'St' vs 'ST.' vs > 'Street', etc). The county is more standardized but breaks everything > up into street prefix, name, type, suffix, etc. (Minnesota Met Council, > for those of you familiar with it). In addition, users tend not to enter > addresses the same way twice, and to leave out things like the street > type and direction. > > I'm wondering if there's a way to relax the query matches so that > something like "100 James" will return a match from a DBF containing > "100 South James Ave", or a set of columns like "100" "S" "James" "Ave". > Something along the lines of The Geocoding API is flexible in this way, > so one solution I considered is to use it as an address parser and then > use the returned X,Y data for an itemquery on each of the layers. The > problems with that are slower performance and possible API > unavailability. > > Currently I'm using Mapserver in CGI mode with some Javascript for > frontend logic and custom tools. I developed the application this way > for various reasons, but am considering moving to PHP Mapscript for > better performance. If something like this is possible with the CGI > approach I'd love to hear about it, but I'd also be interested in > mapscript ideas or examples. > > Thanks! > > -Gabe > > Gabe Emerson > Research Department > Welsh Companies > 4350 Baker Road, Suite 400 > Minnetonka, MN 55343-8695 > 952-897-7700, ext. 1306 > gemerson at welshco.com > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jim.Klassen at ci.stpaul.mn.us Wed Sep 17 10:26:27 2008 From: Jim.Klassen at ci.stpaul.mn.us (Jim Klassen) Date: Wed, 17 Sep 2008 12:26:27 -0500 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviate poorperformance Message-ID: <48D105A50200004F0000B578@jeckle> I have found there is a fairly large overhead inherent in the HTTP request (per tile) especially if the network round trip times are an issue. Using HTTP keep-alive helped a lot with this. Awhile ago we did some tests at the city when we were looking to go to a tiled interface. What we found was along the lines of a 100x100px tile request takes much more than 1/4 of the time of a 200x200px request so the overall map load time was slowed by using more tiles when getting the tiles from mapserver. This would probably be different if we had used a tilecache. In the end we found not tiling (a.k.a. 1 tile per map) worked best for us from a speed/flexibility focus. JimK >>> "Paul Ramsey" 09/17/08 11:14 AM >>> John, The idea that CGI is naturally a much slower situation than a long-running process is a bit of a red herring in the case of Mapserver, and I say that as someone who is anal retentive about these things. Unless your Mapserver installation has some naturally latent components (database connections, primarily) you'll find that moving from CGI to FastCGI is worth about 15ms per request. On Wed, Sep 17, 2008 at 8:40 AM, John Westwood wrote: > The reason I am trying to get MapServer to work with fast_cgi is because I am experiencing poor performance with OpenLayers. I believe that OpenLayers starts a new MapServer instance for each tile request, thus causing an unnecessary overhead. Am I correct? Yes and no. If you are experiencing noticeably poor performance (you can actually *see* it being slow) the only place that the CGI overhead could be the cause is if you're connecting to Oracle or SDE for some of your layers. If that's not the case, look elsewhere first, the very small gains you will receive from moving to FastCGI will not change your underlying problem. Paul _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From pramsey at cleverelephant.ca Wed Sep 17 11:36:05 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Wed, 17 Sep 2008 11:36:05 -0700 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviate poorperformance In-Reply-To: <48D105A50200004F0000B578@jeckle> References: <48D105A50200004F0000B578@jeckle> Message-ID: <30fe546d0809171136r16d87727ld52783343966ca97@mail.gmail.com> Intriguing stuff! I found this generic-ish article about perl: http://www.perlmonks.org/?node_id=83791 The implication is that unless/until Mapserver starts sending Content-Length along with returned images, browsers won't do keep-alive for us. More performance! P. On Wed, Sep 17, 2008 at 10:26 AM, Jim Klassen wrote: > I have found there is a fairly large overhead inherent in the HTTP request (per tile) especially if the network round trip times are an issue. Using HTTP keep-alive helped a lot with this. > > Awhile ago we did some tests at the city when we were looking to go to a tiled interface. What we found was along the lines of a 100x100px tile request takes much more than 1/4 of the time of a 200x200px request so the overall map load time was slowed by using more tiles when getting the tiles from mapserver. This would probably be different if we had used a tilecache. In the end we found not tiling (a.k.a. 1 tile per map) worked best for us from a speed/flexibility focus. > > JimK > >>>> "Paul Ramsey" 09/17/08 11:14 AM >>> > John, > > The idea that CGI is naturally a much slower situation than a > long-running process is a bit of a red herring in the case of > Mapserver, and I say that as someone who is anal retentive about these > things. Unless your Mapserver installation has some naturally latent > components (database connections, primarily) you'll find that moving > from CGI to FastCGI is worth about 15ms per request. > > On Wed, Sep 17, 2008 at 8:40 AM, John Westwood wrote: > >> The reason I am trying to get MapServer to work with fast_cgi is because I am experiencing poor performance with OpenLayers. I believe that OpenLayers starts a new MapServer instance for each tile request, thus causing an unnecessary overhead. Am I correct? > > Yes and no. If you are experiencing noticeably poor performance (you > can actually *see* it being slow) the only place that the CGI overhead > could be the cause is if you're connecting to Oracle or SDE for some > of your layers. If that's not the case, look elsewhere first, the very > small gains you will receive from moving to FastCGI will not change > your underlying problem. > > Paul > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From nellyfromma at gmail.com Wed Sep 17 12:25:29 2008 From: nellyfromma at gmail.com (Nelson Soto) Date: Wed, 17 Sep 2008 15:25:29 -0400 Subject: [mapserver-users] Mapserver CGI and IIS 6 or 7 Message-ID: <69935d110809171225gc171fd5s32db176dce3e88a0@mail.gmail.com> The instructions for getting IIS and Mapserver CGi seem dated as they do not seem to detail how to get this done in full. I have tried the steps to no avail. Only by reaching the farthest of pages in Google did I finally figure out that you have to add an entry into the Web Service Extensions section of IIS and point it to mapserv.exe. I am able to do this but still I can not generate a map or even an error, just a blank page as if I am generally not being served. I do have scripts and executables enabled for the entire web folder which I know is unsafe but I am just trying to rule out possibilities. Of note: If I allow all unknown CGI extensions, I DO generate the error. My question is for starters, is there an up-to-date set of instructions for doing this and if so where may I locate them. If not, what other Web Service Extensions must I allow in order to get this to function? I am pretty positive the last key is in enabling the correct Web Service Extensions but I do not want to just brutishly add every one that I have in my Bin folder. Any help is, as always, highly appreciated. Thank you, Nelson -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at cleverelephant.ca Wed Sep 17 13:02:16 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Wed, 17 Sep 2008 13:02:16 -0700 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviate poorperformance In-Reply-To: <30fe546d0809171136r16d87727ld52783343966ca97@mail.gmail.com> References: <48D105A50200004F0000B578@jeckle> <30fe546d0809171136r16d87727ld52783343966ca97@mail.gmail.com> Message-ID: <30fe546d0809171302k5fda6802oaf1cd6f555f018a9@mail.gmail.com> Just FYI, I poked through some of the code, and we're using external libraries to do stream-compressing right to stdout for things like WMS or mode=map, the result being we have no idea what the content-length is at the time of header writing, and no easy way to change the procedure. P On Wed, Sep 17, 2008 at 11:36 AM, Paul Ramsey wrote: > Intriguing stuff! > > I found this generic-ish article about perl: > http://www.perlmonks.org/?node_id=83791 > > The implication is that unless/until Mapserver starts sending > Content-Length along with returned images, browsers won't do > keep-alive for us. > > More performance! > > P. > > On Wed, Sep 17, 2008 at 10:26 AM, Jim Klassen > wrote: >> I have found there is a fairly large overhead inherent in the HTTP request (per tile) especially if the network round trip times are an issue. Using HTTP keep-alive helped a lot with this. >> >> Awhile ago we did some tests at the city when we were looking to go to a tiled interface. What we found was along the lines of a 100x100px tile request takes much more than 1/4 of the time of a 200x200px request so the overall map load time was slowed by using more tiles when getting the tiles from mapserver. This would probably be different if we had used a tilecache. In the end we found not tiling (a.k.a. 1 tile per map) worked best for us from a speed/flexibility focus. >> >> JimK >> >>>>> "Paul Ramsey" 09/17/08 11:14 AM >>> >> John, >> >> The idea that CGI is naturally a much slower situation than a >> long-running process is a bit of a red herring in the case of >> Mapserver, and I say that as someone who is anal retentive about these >> things. Unless your Mapserver installation has some naturally latent >> components (database connections, primarily) you'll find that moving >> from CGI to FastCGI is worth about 15ms per request. >> >> On Wed, Sep 17, 2008 at 8:40 AM, John Westwood wrote: >> >>> The reason I am trying to get MapServer to work with fast_cgi is because I am experiencing poor performance with OpenLayers. I believe that OpenLayers starts a new MapServer instance for each tile request, thus causing an unnecessary overhead. Am I correct? >> >> Yes and no. If you are experiencing noticeably poor performance (you >> can actually *see* it being slow) the only place that the CGI overhead >> could be the cause is if you're connecting to Oracle or SDE for some >> of your layers. If that's not the case, look elsewhere first, the very >> small gains you will receive from moving to FastCGI will not change >> your underlying problem. >> >> Paul >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > From Jim.Klassen at ci.stpaul.mn.us Wed Sep 17 12:11:49 2008 From: Jim.Klassen at ci.stpaul.mn.us (Jim Klassen) Date: Wed, 17 Sep 2008 14:11:49 -0500 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviate poorperformance Message-ID: <48D11E560200004F0000B589@jeckle> This is all from memory so it might be completely off base, but isn't there some way to get around this with HTTP 1.1 and using chunked-encoding? Anyway, Firebug is claiming that keep-alive was requested and part of the response from my server with Transfer-Encoding: chunked. This is using mode=map on gif, png, and jpeg that I checked. Jim K >>> "Paul Ramsey" 09/17/08 3:03 PM >>> Just FYI, I poked through some of the code, and we're using external libraries to do stream-compressing right to stdout for things like WMS or mode=map, the result being we have no idea what the content-length is at the time of header writing, and no easy way to change the procedure. P On Wed, Sep 17, 2008 at 11:36 AM, Paul Ramsey wrote: > Intriguing stuff! > > I found this generic-ish article about perl: > http://www.perlmonks.org/?node_id=83791 > > The implication is that unless/until Mapserver starts sending > Content-Length along with returned images, browsers won't do > keep-alive for us. > > More performance! > > P. > > On Wed, Sep 17, 2008 at 10:26 AM, Jim Klassen > wrote: >> I have found there is a fairly large overhead inherent in the HTTP request (per tile) especially if the network round trip times are an issue. Using HTTP keep-alive helped a lot with this. >> >> Awhile ago we did some tests at the city when we were looking to go to a tiled interface. What we found was along the lines of a 100x100px tile request takes much more than 1/4 of the time of a 200x200px request so the overall map load time was slowed by using more tiles when getting the tiles from mapserver. This would probably be different if we had used a tilecache. In the end we found not tiling (a.k.a. 1 tile per map) worked best for us from a speed/flexibility focus. >> >> JimK >> >>>>> "Paul Ramsey" 09/17/08 11:14 AM >>> >> John, >> >> The idea that CGI is naturally a much slower situation than a >> long-running process is a bit of a red herring in the case of >> Mapserver, and I say that as someone who is anal retentive about these >> things. Unless your Mapserver installation has some naturally latent >> components (database connections, primarily) you'll find that moving >> from CGI to FastCGI is worth about 15ms per request. >> >> On Wed, Sep 17, 2008 at 8:40 AM, John Westwood wrote: >> >>> The reason I am trying to get MapServer to work with fast_cgi is because I am experiencing poor performance with OpenLayers. I believe that OpenLayers starts a new MapServer instance for each tile request, thus causing an unnecessary overhead. Am I correct? >> >> Yes and no. If you are experiencing noticeably poor performance (you >> can actually *see* it being slow) the only place that the CGI overhead >> could be the cause is if you're connecting to Oracle or SDE for some >> of your layers. If that's not the case, look elsewhere first, the very >> small gains you will receive from moving to FastCGI will not change >> your underlying problem. >> >> Paul >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > From John.Westwood at port.ac.uk Wed Sep 17 15:00:34 2008 From: John.Westwood at port.ac.uk (John Westwood) Date: Wed, 17 Sep 2008 23:00:34 +0100 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance Message-ID: <48D18C130200005300040B92@stirling.iso.port.ac.uk> Hi Paul, Thanks for the useful information. The performance is pretty terrible, so I will have to do some more investigating. The MapServer executable almost completely maxes out two cores and it can take 30 seconds or more to fetch all the tiles for a particular view. I do connect to Postgres to fetch map metadata and I pull the info from MapServer using WFS. Perhaps this is causing a problem. One large problem. I tried going back to my old MapServer without the FastCGI and I commented out my MapServer configuration lines in the mod_fcgid.conf file (and restarted the server). Unfortunately, this too now no longer works and gives the same error: The server encountered an internal error and was unable to complete your request Error message: Premature end of script headers: mapserv I really need to fix this! Aaaaaarghhhh! Thanks, John >>> "Paul Ramsey" 17/09/08 5:15 PM >>> John, The idea that CGI is naturally a much slower situation than a long-running process is a bit of a red herring in the case of Mapserver, and I say that as someone who is anal retentive about these things. Unless your Mapserver installation has some naturally latent components (database connections, primarily) you'll find that moving from CGI to FastCGI is worth about 15ms per request. On Wed, Sep 17, 2008 at 8:40 AM, John Westwood wrote: > The reason I am trying to get MapServer to work with fast_cgi is because I am experiencing poor performance with OpenLayers. I believe that OpenLayers starts a new MapServer instance for each tile request, thus causing an unnecessary overhead. Am I correct? Yes and no. If you are experiencing noticeably poor performance (you can actually *see* it being slow) the only place that the CGI overhead could be the cause is if you're connecting to Oracle or SDE for some of your layers. If that's not the case, look elsewhere first, the very small gains you will receive from moving to FastCGI will not change your underlying problem. Paul From pramsey at cleverelephant.ca Wed Sep 17 17:08:46 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Wed, 17 Sep 2008 17:08:46 -0700 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance In-Reply-To: <48D18C130200005300040B92@stirling.iso.port.ac.uk> References: <48D18C130200005300040B92@stirling.iso.port.ac.uk> Message-ID: <30fe546d0809171708i3f64236l81c6f02300be992f@mail.gmail.com> Pull out your command-line, you probably have a linking library problem, and mapserv is just dying unceremoniously. So first: can you just run "mapserv" on the command line. If not, what's the error? is it instructive? Second, if just a plain "mapserv" runs, what happens when you feed it your workload? the trick is to use the mysterious "QUERY_STRING" commandline parameter, thusly: ./mapserv "QUERY_STRING=map=/your/map.map&layers=yourlayers&etc" This runs mapserv in pretend CGI mode, without having a web server in the way, very handy for debugging. P. PS - I just realized, usually you can see the error in the apache error_log, skipping all this tedious command-line stuff. On Wed, Sep 17, 2008 at 3:00 PM, John Westwood wrote: > Hi Paul, > > Thanks for the useful information. The performance is pretty terrible, so I will have to do some more investigating. The MapServer executable almost completely maxes out two cores and it can take 30 seconds or more to fetch all the tiles for a particular view. I do connect to Postgres to fetch map metadata and I pull the info from MapServer using WFS. Perhaps this is causing a problem. > > One large problem. I tried going back to my old MapServer without the FastCGI and I commented out my MapServer configuration lines in the mod_fcgid.conf file (and restarted the server). Unfortunately, this too now no longer works and gives the same error: > > The server encountered an internal error and was unable to complete your request > Error message: Premature end of script headers: mapserv > > I really need to fix this! Aaaaaarghhhh! > > Thanks, > > John > > >>>> "Paul Ramsey" 17/09/08 5:15 PM >>> > John, > > The idea that CGI is naturally a much slower situation than a > long-running process is a bit of a red herring in the case of > Mapserver, and I say that as someone who is anal retentive about these > things. Unless your Mapserver installation has some naturally latent > components (database connections, primarily) you'll find that moving > from CGI to FastCGI is worth about 15ms per request. > > On Wed, Sep 17, 2008 at 8:40 AM, John Westwood wrote: > >> The reason I am trying to get MapServer to work with fast_cgi is because I am experiencing poor performance with OpenLayers. I believe that OpenLayers starts a new MapServer instance for each tile request, thus causing an unnecessary overhead. Am I correct? > > Yes and no. If you are experiencing noticeably poor performance (you > can actually *see* it being slow) the only place that the CGI overhead > could be the cause is if you're connecting to Oracle or SDE for some > of your layers. If that's not the case, look elsewhere first, the very > small gains you will receive from moving to FastCGI will not change > your underlying problem. > > Paul > > From snaperski at gmail.com Wed Sep 17 23:28:21 2008 From: snaperski at gmail.com (Raivo Alla) Date: Thu, 18 Sep 2008 09:28:21 +0300 Subject: [mapserver-users] mapserver 5 TIFF displaying problem In-Reply-To: <348277DFCE9FF044B3812A6CF459CD3701159F59@welshmail.welshco.com.local> References: <49dc012b0809170456y1fd3eea7p4d5044702368d3e9@mail.gmail.com> <348277DFCE9FF044B3812A6CF459CD3701159F59@welshmail.welshco.com.local> Message-ID: <49dc012b0809172328v701e5651o66eba5dbef72648a@mail.gmail.com> Hi, Jukka, thank you very much for discussion, it was helpful. For now I found what was wrong. Gabe, maybe it's useful for you too: my mapserv compilation was both with --with-gdal and --with-tiff, when I recompiled it removing native TIFF support (--without-tiff), then this recompilation was successful:) Have a nice day, Raivo On Wed, Sep 17, 2008 at 5:45 PM, Emerson, Gabe wrote: > Raivo, > > > > I sometimes get odd artifacts showing up on my PNG24 maps as well. I don't > know if it's related to your problem, but I believe mine is client-related > based on its behavior, even though it happens on multiple computers and > browsers. > > > > Every now and then, my map comes out looking like this: > https://netfiles.umn.edu/users/emers089/www/imgerror.jpg > > > > It doesn't always look the same, sometimes the map is greyed out or > covered in mostly black, sometimes only part of the map is affected. > > > > Since it's unpredictable and infrequent, I haven't been able to test very > much. However, It clears itself immediately when I click anything on the > page, or when I resize the browser window. That makes me think that my > problem is related to client-side graphics drivers; the correct image is > already in the browser, just hidden under the artifacting. I've been meaning > to play around with driver updates, but it hasn't been enough of an issue. > > > > -Gabe > > > > > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Rahkonen Jukka > *Sent:* Wednesday, September 17, 2008 7:22 AM > *To:* Raivo Alla; mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] mapserver 5 TIFF displaying problem > > > > I'm sorry, I fear I can't help you further. I'm sure that somebody else > will go on with your problem soon. There must be something odd in the image > or in your Mapserver. You could still try two things and try to find exact > reason for the failure: > > - use ready compiled Mapserver if you find such for your operating system > > - test with another image from different source > > > > -Jukka- > > > > > ------------------------------ > > *L?hett?j?:* Raivo Alla [mailto:snaperski at gmail.com] > *L?hetetty:* 17. syyskuuta 2008 14:57 > *Vastaanottaja:* Rahkonen Jukka > *Aihe:* Re: [mapserver-users] mapserver 5 TIFF displaying problem > > Hi, > > thank you but sadly it did'nt help. > Changed the DRIVER and translated to GeoTiff, but the problem remained. > Even after I changed my .map file projection to EPSG:3301 (same like that > .tif file has) was the same picture there. > If I zoom in/out, then the picture changes a bit -> > http://picasaweb.google.com/snaperski/Ort#5246949911192681730 > Strange:) > > Raivo > > On Wed, Sep 17, 2008 at 2:27 PM, Rahkonen Jukka > wrote: > > Hi, > > > > If all the clients show the same artifacts we can trust they come from the > server. For some reason it does not like your original image. Try > converting it to uncompressed geotiff image with gdal_translate > > > > gdal_translate -of GTiff 54653.tif 54653_basic.tif > > > > Make another layer from this new image, or edit your mapfile to use that > instead of the original 54653.tif. What happens? By the way, I believe it > should read > > DRIVER "GD/PNG24" > > -Jukka- > > > > > ------------------------------ > > *L?hett?j?:* Raivo Alla [mailto:snaperski at gmail.com] > > *L?hetetty:* 17. syyskuuta 2008 14:16 > > > *Vastaanottaja:* Rahkonen Jukka > *Aihe:* Re: [mapserver-users] mapserver 5 TIFF displaying problem > > > > Hei, > > thank you for advice! > I changed .map a bit: > > IMAGETYPE png24 > OUTPUTFORMAT > NAME png24 > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > END > > output quality looks better, but that black-lined crap is still there:( > I tried the same with uDig and Gaia WMS-clients, but it's the same. > > > Raivo > > On Wed, Sep 17, 2008 at 1:51 PM, Rahkonen Jukka > wrote: > > Hi, > > > > It's getting closer. Image is now at least in a correct place? Distortion > can be due to ArcMAP, perhaps it does not like the outputformat you are > using. Next trials: > > - Have a try with another client software. like Quantum GIS, OpenJUMP, > Cadcorp SIS map browser, or just your web browser. > > - Try changing outputformat. I believe you will need to change it anyway, > png is not good for aerial images. Try png24 or jpeg instead. > > > > -Jukka- > > > > > ------------------------------ > > *L?hett?j?:* Raivo Alla [mailto:snaperski at gmail.com] > *L?hetetty:* 17. syyskuuta 2008 13:43 > *Vastaanottaja:* Rahkonen Jukka > > > *Aihe:* Re: [mapserver-users] mapserver 5 TIFF displaying problem > > > > Thank you, > > I added PROJECTION block to the layer, but unfortunately the same dance: > output is corrupted as it could be seen here: > http://picasaweb.google.com/snaperski/Ort#5246933992333025954 > > Maybe I should compile mapserver without -with-tiff key? > > Raivo > > On Wed, Sep 17, 2008 at 1:03 PM, Rahkonen Jukka > wrote: > > Tere. > > > > You have defined the output projection as epsg:4326 and by quick look it is > OK in both map projection and WMS metadata. However, your original image is > in Estonian projection, but Mapserver does not know it automatically. You > need to add PROJECTION block to layer definitions as well. Try editin your > mapfile as follows: > > > > LAYER > TYPE RASTER > NAME "raster" > STATUS ON > DATA "54653.tif" > > PROJECTION > > "init=epsg:3301" > > END #end projection > END #end layer > > I hope I guessed the epsg code right. > > > > -Jukka Rahkonen- > > > > > > > > > ------------------------------ > > *L?hett?j?:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *Puolesta *Raivo Alla > > *L?hetetty:* 17. syyskuuta 2008 12:51 > > > *Vastaanottaja:* mapserver-users at lists.osgeo.org > > *Aihe:* Re: [mapserver-users] mapserver 5 TIFF displaying problem > > Thank you for answering! > > There's some additional information. Gdalinfo output: > > Driver: GTiff/GeoTIFF > Files: 65812.tif > 65812.aux > Size is 5000, 5000 > Coordinate System is: > LOCAL_CS["Estonia_1997_Estonia_National_Grid", > UNIT["meters",1]] > Origin = (715000.500000000000000,6584999.500000000000000) > Pixel Size = (1.000000000000000,-1.000000000000000) > Metadata: > TIFFTAG_XRESOLUTION=2272.0896 > TIFFTAG_YRESOLUTION=2272.0896 > TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) > Image Structure Metadata: > COMPRESSION=LZW > INTERLEAVE=PIXEL > Corner Coordinates: > Upper Left ( 715000.500, 6584999.500) > Lower Left ( 715000.500, 6579999.500) > Upper Right ( 720000.500, 6584999.500) > Lower Right ( 720000.500, 6579999.500) > Center ( 717500.500, 6582499.500) > Band 1 Block=5000x8 Type=Byte, ColorInterp=Red > Metadata: > LAYER_TYPE=athematic > Band 2 Block=5000x8 Type=Byte, ColorInterp=Green > Metadata: > LAYER_TYPE=athematic > Band 3 Block=5000x8 Type=Byte, ColorInterp=Blue > Metadata: > LAYER_TYPE=athematic > > > And from .map file: > IMAGETYPE PNG > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGB > END > PROJECTION > "init=epsg:4326" > END > METADATA > WMS_TITLE "UMN MapServer Maa-ameti TEST" > WMS_ABSTRACT "M?eldud testimiseks" > WMS_ACCESSCONSTRAINTS "none" > WMS_SRS "EPSG:4326" > END > > Could it be problem that coordinate systems does not match? > However, I remember it's written that Mapserver could do SRS transforming > on-the-fly. > > > On Wed, Sep 17, 2008 at 11:23 AM, Rahkonen Jukka < > Jukka.Rahkonen at mmmtike.fi> wrote: > > Hi, > > > > Impossible to say with this information. Much better possibilities to help > you if you could send also the main MAP part of your mapfile including at > lesast outputformat and projection, and the metadata sections. Gdalinfo > report about the image might be helpful as well. > > > > -Jukka Rahkonen- > > > ------------------------------ > > *L?hett?j?:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *Puolesta *Raivo Alla > *L?hetetty:* 17. syyskuuta 2008 9:38 > *Vastaanottaja:* mapserver-users at lists.osgeo.org > *Aihe:* [mapserver-users] mapserver 5 TIFF displaying problem > > Hello, > > I'm quite new using Mapserver and found myself struggling with this > simple-looking problem: > > In my map file, there is layer defined as follows: > LAYER > TYPE RASTER > NAME "raster" > STATUS ON > DATA "54653.tif" > END > > The problem is, that this image is corrupted when I look at it in ArcMap - > it contains strange black boxes and stripes. Original image is OK, so > I guess the problem is somewhere in map file. > .tfw file should be ok: > 1.000000000000000 > 0.000000000000000 > 0.000000000000000 > -1.000000000000000 > 650000.500000000000000 > 6469999.500000000000000 > > What could be the problem? > > > Raivo Alla > > > > > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dzizes451 at gmail.com Thu Sep 18 00:52:59 2008 From: dzizes451 at gmail.com (dzizes) Date: Thu, 18 Sep 2008 00:52:59 -0700 (PDT) Subject: AW: [MAPSERVER-USERS] cannot compile --with-fastcgi In-Reply-To: References: <200803101419.13743.ivan.mincik@gmail.com> Message-ID: <19547800.post@talk.nabble.com> Hi! I'am having similar problem. Did you find solution? michal -- View this message in context: http://www.nabble.com/cannot-compile---with-fastcgi-tp15957269p19547800.html Sent from the Mapserver - User mailing list archive at Nabble.com. From emiliol at jccm.es Thu Sep 18 01:39:57 2008 From: emiliol at jccm.es (=?iso-8859-1?Q?Emilio_L=F3pez_Pasamontes?=) Date: Thu, 18 Sep 2008 10:39:57 +0200 Subject: [mapserver-users] geographical coordinates to utm Message-ID: <007101c9196a$22209c00$d206800a@cma.jclm.es> Hi, Might I turn geographical coordinates to utm with Mapserver? Can someone explain to me how to do it, please? Thank you for everything and sorry for my english _______________________________________ Emilio L?pez Pasamontes, ?rea de Desarrollo Servicio de Inform?tica , SGT Consejer?a de Medio Ambiente y Desarrollo Rural C/ Quintanar de la Orden, s/n 45071, Toledo, Espa?a emiliol at jccm.es -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at ec.gc.ca Thu Sep 18 04:29:17 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Thu, 18 Sep 2008 07:29:17 -0400 Subject: [mapserver-users] geographical coordinates to utm In-Reply-To: <007101c9196a$22209c00$d206800a@cma.jclm.es> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF5D3@ecburexch1.ontario.int.ec.gc.ca> In the context of MapServer, you could use shapeObj->project within Mapscript. You could always achieve this, of course, through pre-processing with proj/ogr2ogr. ..Tom ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Emilio L?pez Pasamontes Sent: 18 September, 2008 4:40 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] geographical coordinates to utm Hi, Might I turn geographical coordinates to utm with Mapserver? Can someone explain to me how to do it, please? Thank you for everything and sorry for my english _______________________________________ Emilio L?pez Pasamontes, ?rea de Desarrollo Servicio de Inform?tica , SGT Consejer?a de Medio Ambiente y Desarrollo Rural C/ Quintanar de la Orden, s/n 45071, Toledo, Espa?a emiliol at jccm.es From akrherz at iastate.edu Thu Sep 18 05:52:47 2008 From: akrherz at iastate.edu (akrherz at iastate.edu) Date: Thu, 18 Sep 2008 07:52:47 -0500 (CDT) Subject: [mapserver-users] rfc43 gtile returning blank images, while WMS works In-Reply-To: References: <30fe546d0809082119u3e1b0a9bve1cfe10c0a2543b9@mail.gmail.com> Message-ID: On Tue, 9 Sep 2008, akrherz at iastate.edu wrote: > On Mon, 8 Sep 2008, Paul Ramsey wrote: > >> Nothing leaps out. Are you sure they are equivalent? Zoom level two is >> pretty far out, do you have scale dependency in that layer? > > Hi Paul, thanks for the response. I choose a far out zoom level to ensure > there is data in the view for folks to see. When I run the gtile request, > mapserver logs the bounding box, which I then fed to build the WMS request. > My scale setting for that layer is: > > MINSCALE 0 > MAXSCALE 465000000 > > My RASTER datasource layers is already projected in 900913... Thanks to some generous help offline from Paul, he discovered that my MAXSCALE was not large enough for the GTile requests, but for some reason worked with the WMS 900913 requests. Shrug. Anyway, I bumped my MAXSCALE up by a factor of 1,000,000 and now the GTile images work. Good enough for me! :) daryl From minka.stoyanova at gmail.com Thu Sep 18 06:35:18 2008 From: minka.stoyanova at gmail.com (Minka Stoyanova) Date: Thu, 18 Sep 2008 16:35:18 +0300 Subject: [mapserver-users] Re: JOIN in a mapfile from a shapefile to a MySQL database In-Reply-To: <66b0a28d0809060542y454c7fcfj93ed5df906f4f395@mail.gmail.com> References: <20080905190425.1D979E01E18@lists.osgeo.org> <48C188A5.5090300@ncmail.net> <66b0a28d0809060542y454c7fcfj93ed5df906f4f395@mail.gmail.com> Message-ID: <66b0a28d0809180635qe3e9501gd113be404639ca4d@mail.gmail.com> Dear Charles, dear list, As I said, I used your piece of map-file code and made the connection. Now I try the same but with another shapefile to another table in the same database, and I receive a segmentation fault of the Apache! Here follows the code from the map-file: - this works just fine - the simple layer from the shapefile: LAYER # States point layer 1 begins here from the shapefile NAME "cpoints" DATA controlpoints_v04 STATUS ON TYPE POINT CLASS SYMBOL 'circle' SIZE 8 COLOR 0 0 255 OUTLINECOLOR 243 255 17 END END # States point layer 1 ends here - this works fine: LAYER # States point layer 1 begins here NAME "synoptic_stations" CONNECTIONTYPE ogr CONNECTION "../data/ESRI/UTM/synoptic_stations.shp" DATA "SELECT * FROM synoptic_stations LEFT JOIN 'MYSQL:meteo,host=myhost,user=mysqluseraccount,password=mysqluserpasswd'.bgc ON synoptic_stations.A = bgc.sin_kod" STATUS ON TYPE POINT CLASS SYMBOL 'circle' SIZE 8 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END END # States point layer 1 ends here - this fails with a segmentation fault: LAYER # States point layer 1 begins here NAME "cpoints" CONNECTIONTYPE ogr CONNECTION "../data/ESRI/mt/controlpoints_v04.shp" DATA "SELECT * FROM controlpoints_v04 LEFT JOIN 'MYSQL:meteo,host=myhost,user=mysqluseraccount,password=mysqluserpasswd'.controlpoint ON controlpoints_v04.ID=controlpoint.CODENUM" STATUS ON TYPE POINT CLASS SYMBOL 'circle' SIZE 8 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END END # States point layer 1 ends here So: the database is the same, mysql user and passwd are the same, the connection is from the same Apache server with the same php mapscript application. The shapefiles are different and the tables in the database are different. Where could be the problem? Thanks! Minka -------------- next part -------------- An HTML attachment was scrubbed... URL: From pauljame at gmail.com Thu Sep 18 07:06:26 2008 From: pauljame at gmail.com (Paul james) Date: Thu, 18 Sep 2008 11:06:26 -0300 Subject: [mapserver-users] geomfromtext (POSTGIS) in C# or other language... Message-ID: <33fad6880809180706wa159307t7dd382a576552c46@mail.gmail.com> Hello Guys... I?d like to add a point in a Postgis layer... I?m able to do this using geomfromtext function (postgis)... I?d like to do that in C# ... Is that possible? Thankz -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Thu Sep 18 08:06:41 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 18 Sep 2008 17:06:41 +0200 Subject: [mapserver-users] geomfromtext (POSTGIS) in C# or other language... In-Reply-To: <33fad6880809180706wa159307t7dd382a576552c46@mail.gmail.com> References: <33fad6880809180706wa159307t7dd382a576552c46@mail.gmail.com> Message-ID: Paul, You could probably use the GDAL C# bindings and the Geometry.CreateFromWkt function for this purpose. For more information see the createdata.cs example in the gdal source tree. Best regards, Tamas 2008/9/18 Paul james : > Hello Guys... > I?d like to add a point in a Postgis layer... I?m able to do this using > geomfromtext function (postgis)... > I?d like to do that in C# ... > Is that possible? > > Thankz > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From pauljame at gmail.com Thu Sep 18 08:43:54 2008 From: pauljame at gmail.com (Paul james) Date: Thu, 18 Sep 2008 12:43:54 -0300 Subject: [mapserver-users] geomfromtext (POSTGIS) in C# or other language... In-Reply-To: References: <33fad6880809180706wa159307t7dd382a576552c46@mail.gmail.com> Message-ID: <33fad6880809180843m3467c8d6o5233214c5c90bc26@mail.gmail.com> Thanks Thamas... Thats sounds great... But, after I used Geometry.CreateFromWkt function to convert my geometry, how can I add it to the PostGis Layer? On Thu, Sep 18, 2008 at 12:06 PM, Tamas Szekeres wrote: > Paul, > > You could probably use the GDAL C# bindings and the > Geometry.CreateFromWkt function for this purpose. > For more information see the createdata.cs example in the gdal source tree. > > Best regards, > > Tamas > > > 2008/9/18 Paul james : > > Hello Guys... > > I?d like to add a point in a Postgis layer... I?m able to do this using > > geomfromtext function (postgis)... > > I?d like to do that in C# ... > > Is that possible? > > > > Thankz > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Thu Sep 18 08:53:31 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 18 Sep 2008 09:53:31 -0600 Subject: [mapserver-users] GRID or not to GRID (USNG question) In-Reply-To: <48CE9D20.163B.00A8.0@ci.stpaul.mn.us> References: <48CE9D20.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <48D2797B.2070604@geoanalytic.com> Bob, I get a Username/Password request dialog from the URL... Brent Fraser Bob Basques wrote: > All, > > in the following interface: > > http://gis.ci.stpaul.mn.us/gis/gismo_public/html/?mapbook=/datasets/CONFIGS/SAINT_PAUL/PUBLIC_WORKS/MAPBOOKS/TS/usng_1st.xml > > The last two layers in the "US National Grid Layers" folder show a layer > with lines Easting and Northing, that I want to label. They label just > fine, but I would like to align them along an edge of the view > automatically, the ideal situation would be to have two labels on each > end of the lines along the edges of the view. > > We've tried using the GRID object, even going so modifying the source > for GRID, you can see an example in the third to last layer above, "USNG > via MapServer GRID" (Wait for it, it's kinda slow right now) And just > can't seem to get the output in any sort of usable result for printing. > > Question, anyone got any ideas about how to align those labels along the > edges? > > Thanks > > bobb > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Thu Sep 18 09:03:48 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 18 Sep 2008 11:03:48 -0500 Subject: [mapserver-users] Flexible queries (to support address lookups) In-Reply-To: <48D158FA.7040300@swoodbridge.com> References: <48D0F8ED0200008F0001BA88@co5.dnr.state.mn.us> <48D158FA.7040300@swoodbridge.com> Message-ID: <48D23594.5157.008F.0@dnr.state.mn.us> Like I said, there are other users with far more knowledge in this area... ;-) Steve >>> On 9/17/2008 at 2:22 PM, in message <48D158FA.7040300 at swoodbridge.com>, Stephen Woodbridge wrote: > This is one approach to the problem, but it does not deal with the real > problems of matching user entered addresses with addresses encoded on > street segments. > > For example: matching AL 44, Alabama 44, AL-44, Alabama Highway 44, > Highway 44, State Highway 44, Rt 44, and various other abbreviations for > Highway, simple typo errors, adding N, N., North, S, S., South, etc > designations to the Highway, adding Alt., Bus., Byp., etc and on it > goes. You also need to deal with accented characters, that are sometimes > entered without accents. > > In a geocoder, you typically have a standardizer that sort our all that > craziness. Then when you load the geocoder, you standardize the vendor > data and store it in a standard form. When you get a geocode request you > standardize the incoming request and then try to match the standard form > with the vendor data which is also in standard form. > > You can also you techniques like metaphone/soundex codes to do fuzzy > searching and then use levensthein distance to score the possible > matched results for how close they are to the request. > > You need to be prepared to handle multiple results to a query, for > example you search for Oak St. but only find North Oak Street and South > Oak Street. > > Also what are you going to search? your whole dataset, or are you also > going to want to filter it by City, state, postal code, country. I thins > case you also need to be able to parse the full address into al these > additional terms. and filter your search to those appropriate to that > limited region. > > It makes much more sense, to load the appropriate data records into a > relational database and make the queries in SQL. If you do not want to > use a full blown database like Postgresql or Mysql, then look at SQLite > which is a wonderful embedded database with zero management and had > binding for C, Perl, Python, PHP, TCL, etc. > > My two cents, from someone that has his head and fingers in too many > geocoders. > > -Steve > http://imaptools.com/ > > Steve Lime wrote: >> I think we'd need fuzzy match operator, probably one specific to address >> matching. This would involve adding a C function(s) to compare to addresses >> strings and then tweaking the MapServer yacc grammar to recognize the >> new operator. The trick would obviously to write the C function and there > are >> folks on the list with considerable experience with that problem. >> >> If you HAD that operator then presumably you could write different filters >> depending on your data, e.g.: >> >> ('user entered address' addreq '[address column]') or >> ('user entered address' addreq '[prefix] [name] [type] [suffix]') >> >> That would be faster than trying to manipulate the current operators. You > could >> also do a very generic query, like a case insensitive lookup on the street > name >> and then operate on that result set in your application to deal with data >> differences. >> >> Steve >> >>>>> "Emerson, Gabe" 09/17/08 10:16 AM >>> >> Hi All, >> >> I have an interesting mini-project which some of you might have dealt >> with before, I'd be interested in any suggestions. >> >> I'd like to run a query (presented to users as an address search), >> across multiple layers. For example, after an address is entered, the >> system first searches an in-house dataset, if there are no matches it >> searches a county parcel dataset, and if both fail, it tries to map the >> address via a geocoding API. >> >> The issue I'm running into is that each of the layers stores addresses a >> little differently. The in-house set tends to be sloppy about >> punctuation and things like directions ('N' vs 'North', 'St' vs 'ST.' vs >> 'Street', etc). The county is more standardized but breaks everything >> up into street prefix, name, type, suffix, etc. (Minnesota Met Council, >> for those of you familiar with it). In addition, users tend not to enter >> addresses the same way twice, and to leave out things like the street >> type and direction. >> >> I'm wondering if there's a way to relax the query matches so that >> something like "100 James" will return a match from a DBF containing >> "100 South James Ave", or a set of columns like "100" "S" "James" "Ave". >> Something along the lines of The Geocoding API is flexible in this way, >> so one solution I considered is to use it as an address parser and then >> use the returned X,Y data for an itemquery on each of the layers. The >> problems with that are slower performance and possible API >> unavailability. >> >> Currently I'm using Mapserver in CGI mode with some Javascript for >> frontend logic and custom tools. I developed the application this way >> for various reasons, but am considering moving to PHP Mapscript for >> better performance. If something like this is possible with the CGI >> approach I'd love to hear about it, but I'd also be interested in >> mapscript ideas or examples. >> >> Thanks! >> >> -Gabe >> >> Gabe Emerson >> Research Department >> Welsh Companies >> 4350 Baker Road, Suite 400 >> Minnetonka, MN 55343-8695 >> 952-897-7700, ext. 1306 >> gemerson at welshco.com >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From pramsey at cleverelephant.ca Thu Sep 18 09:13:35 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Thu, 18 Sep 2008 09:13:35 -0700 Subject: [mapserver-users] geomfromtext (POSTGIS) in C# or other language... In-Reply-To: <33fad6880809180843m3467c8d6o5233214c5c90bc26@mail.gmail.com> References: <33fad6880809180706wa159307t7dd382a576552c46@mail.gmail.com> <33fad6880809180843m3467c8d6o5233214c5c90bc26@mail.gmail.com> Message-ID: <30fe546d0809180913h69a32500k6d6da02d991944dd@mail.gmail.com> Connect to the database and run INSERT INTO mytable (the_geom) VALUES (ST_SetSRID(ST_GeometryFromText('blahblah'),XXXX)); P. On Thu, Sep 18, 2008 at 8:43 AM, Paul james wrote: > Thanks Thamas... > Thats sounds great... > But, after I used Geometry.CreateFromWkt function to convert my geometry, > how can I add it to the PostGis Layer? > > On Thu, Sep 18, 2008 at 12:06 PM, Tamas Szekeres > wrote: >> >> Paul, >> >> You could probably use the GDAL C# bindings and the >> Geometry.CreateFromWkt function for this purpose. >> For more information see the createdata.cs example in the gdal source >> tree. >> >> Best regards, >> >> Tamas >> >> >> 2008/9/18 Paul james : >> > Hello Guys... >> > I?d like to add a point in a Postgis layer... I?m able to do this using >> > geomfromtext function (postgis)... >> > I?d like to do that in C# ... >> > Is that possible? >> > >> > Thankz >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Bob.Basques at ci.stpaul.mn.us Thu Sep 18 11:03:54 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 18 Sep 2008 13:03:54 -0500 Subject: [mapserver-users] GRID or not to GRID (USNG question) In-Reply-To: <48D28403.7000500@geoanalytic.com> References: <48CE9D20.163B.00A8.0@ci.stpaul.mn.us> <48D2797B.2070604@geoanalytic.com> <48D2362D.163B.00A8.0@ci.stpaul.mn.us><48D2362D.163B.00A8.0@ci.stpaul.mn.us> <48D28403.7000500@geoanalytic.com> Message-ID: <48D251BA.163B.00A8.0@ci.stpaul.mn.us> Brent, I figured out the publishing problem (my error) for the Web Interface. This link should work now: http://gis.ci.stpaul.mn.us/gis/gismo_public/html/?mapbook=/datasets/CONFIGS/SAINT_PAUL/PUBLIC_WORKS/MAPBOOKS/TS/usng_1st_public.xml It will give you a better idea of the labeling problems at different scales of view that I'm running into. We actually did some code change in MapServer to get to the point of even coming close to the USNG formats, but it still comes up short. Thanks bobb >>> Brent Fraser wrote: Bob, I seem to remember experimenting with different LABEL -> POSITION settings in the GRID layer. I'll try to find my map file. Brent Bob Basques wrote: > Brent, > > Sorry about that, I really need to get a test box for outside posting of > things. :c) > > Here is a screenshot about what I'm talking about: > > > Basically I want to align the labels along the edges. I've tried a few > different things to fake it with some positive results, But nothing that > I can implement as a production piece because it needs some sort of > manual intervention in the final process. > > The entities are predefined lines as a SHP file that I'm labeling. Now > using the MapServer Grid Object I got this far: > > > But even this is not getting me to the final destination. There's not > much control on numbering and the process is fairly slow compared to > just labeling the lines. > > Any ideas? > > bobb > > > >> >> Brent Fraser wrote: > Bob, > > I get a Username/Password request dialog from the URL... > > Brent Fraser > > Bob Basques wrote: >> All, >> >> in the following interface: >> >> > http://gis.ci.stpaul.mn.us/gis/gismo_public/html/?mapbook=/datasets/CONFIGS/SAINT_PAUL/PUBLIC_WORKS/MAPBOOKS/TS/usng_1st.xml >> >> The last two layers in the "US National Grid Layers" folder show a layer >> with lines Easting and Northing, that I want to label. They label just >> fine, but I would like to align them along an edge of the view >> automatically, the ideal situation would be to have two labels on each >> end of the lines along the edges of the view. >> >> We've tried using the GRID object, even going so modifying the source >> for GRID, you can see an example in the third to last layer above, "USNG >> via MapServer GRID" (Wait for it, it's kinda slow right now) And just >> can't seem to get the output in any sort of usable result for printing. >> >> Question, anyone got any ideas about how to align those labels along the >> edges? >> >> Thanks >> >> bobb >> >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From pauljame at gmail.com Thu Sep 18 11:22:28 2008 From: pauljame at gmail.com (Paul james) Date: Thu, 18 Sep 2008 15:22:28 -0300 Subject: [mapserver-users] geomfromtext (POSTGIS) in C# or other language... In-Reply-To: <30fe546d0809180913h69a32500k6d6da02d991944dd@mail.gmail.com> References: <33fad6880809180706wa159307t7dd382a576552c46@mail.gmail.com> <33fad6880809180843m3467c8d6o5233214c5c90bc26@mail.gmail.com> <30fe546d0809180913h69a32500k6d6da02d991944dd@mail.gmail.com> Message-ID: <33fad6880809181122l1e1f9aa6i1dc7495d9cfb79f4@mail.gmail.com> Thanks ... But what I need now is manipulate the geometry values in c#... I got a point from postgis in this format : 010100000000000000000059400000000000005940 I cant use AsText postgis function... So, in my server(c#) I have to Convert that "numbers" to Point to change it ... Any help? On Thu, Sep 18, 2008 at 1:13 PM, Paul Ramsey wrote: > Connect to the database and run > > INSERT INTO mytable (the_geom) VALUES > (ST_SetSRID(ST_GeometryFromText('blahblah'),XXXX)); > > P. > > On Thu, Sep 18, 2008 at 8:43 AM, Paul james wrote: > > Thanks Thamas... > > Thats sounds great... > > But, after I used Geometry.CreateFromWkt function to convert my geometry, > > how can I add it to the PostGis Layer? > > > > On Thu, Sep 18, 2008 at 12:06 PM, Tamas Szekeres > > wrote: > >> > >> Paul, > >> > >> You could probably use the GDAL C# bindings and the > >> Geometry.CreateFromWkt function for this purpose. > >> For more information see the createdata.cs example in the gdal source > >> tree. > >> > >> Best regards, > >> > >> Tamas > >> > >> > >> 2008/9/18 Paul james : > >> > Hello Guys... > >> > I?d like to add a point in a Postgis layer... I?m able to do this > using > >> > geomfromtext function (postgis)... > >> > I?d like to do that in C# ... > >> > Is that possible? > >> > > >> > Thankz > >> > _______________________________________________ > >> > mapserver-users mailing list > >> > mapserver-users at lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > >> > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From John.Westwood at port.ac.uk Thu Sep 18 11:23:51 2008 From: John.Westwood at port.ac.uk (John Westwood) Date: Thu, 18 Sep 2008 19:23:51 +0100 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance Message-ID: <48D2AAC70200005300040D40@stirling.iso.port.ac.uk> Hi Paul, Thanks for the tips, I forgot about trying from the command line and the apache log :) Anyway, I found out the problem was to do with libpq.so.4 (which is a Postgres library) not being found. My colleague had upgraded Postgres, so it wasn't me that broke MapServer afterall ! The new libpq library is libpq.so.5. Recompiling MapServer did not solve the problem, so I just symlinked libpq.so.4 to libpq.so.5 . Problem solved. Now to track down the performance issues! Thanks, John >>> "Paul Ramsey" 18/09/08 1:09 AM >>> Pull out your command-line, you probably have a linking library problem, and mapserv is just dying unceremoniously. So first: can you just run "mapserv" on the command line. If not, what's the error? is it instructive? Second, if just a plain "mapserv" runs, what happens when you feed it your workload? the trick is to use the mysterious "QUERY_STRING" commandline parameter, thusly: ./mapserv "QUERY_STRING=map=/your/map.map&layers=yourlayers&etc" This runs mapserv in pretend CGI mode, without having a web server in the way, very handy for debugging. P. PS - I just realized, usually you can see the error in the apache error_log, skipping all this tedious command-line stuff. On Wed, Sep 17, 2008 at 3:00 PM, John Westwood wrote: > Hi Paul, > > Thanks for the useful information. The performance is pretty terrible, so I will have to do some more investigating. The MapServer executable almost completely maxes out two cores and it can take 30 seconds or more to fetch all the tiles for a particular view. I do connect to Postgres to fetch map metadata and I pull the info from MapServer using WFS. Perhaps this is causing a problem. > > One large problem. I tried going back to my old MapServer without the FastCGI and I commented out my MapServer configuration lines in the mod_fcgid.conf file (and restarted the server). Unfortunately, this too now no longer works and gives the same error: > > The server encountered an internal error and was unable to complete your request > Error message: Premature end of script headers: mapserv > > I really need to fix this! Aaaaaarghhhh! > > Thanks, > > John > > >>>> "Paul Ramsey" 17/09/08 5:15 PM >>> > John, > > The idea that CGI is naturally a much slower situation than a > long-running process is a bit of a red herring in the case of > Mapserver, and I say that as someone who is anal retentive about these > things. Unless your Mapserver installation has some naturally latent > components (database connections, primarily) you'll find that moving > from CGI to FastCGI is worth about 15ms per request. > > On Wed, Sep 17, 2008 at 8:40 AM, John Westwood wrote: > >> The reason I am trying to get MapServer to work with fast_cgi is because I am experiencing poor performance with OpenLayers. I believe that OpenLayers starts a new MapServer instance for each tile request, thus causing an unnecessary overhead. Am I correct? > > Yes and no. If you are experiencing noticeably poor performance (you > can actually *see* it being slow) the only place that the CGI overhead > could be the cause is if you're connecting to Oracle or SDE for some > of your layers. If that's not the case, look elsewhere first, the very > small gains you will receive from moving to FastCGI will not change > your underlying problem. > > Paul > > From boolean10001 at yahoo.com Thu Sep 18 11:43:44 2008 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Thu, 18 Sep 2008 11:43:44 -0700 (PDT) Subject: [mapserver-users] Mapserver (CGI/FastCGI) crashes when querying a map In-Reply-To: <48D2AAC70200005300040D40@stirling.iso.port.ac.uk> Message-ID: <173639.27195.qm@web38206.mail.mud.yahoo.com> Hi list, I have Mapserver 5.0.2 installed on Win32, when I do some queries to my map, the response takes so long and then a window appears saying that CGI/FastCGI crashes. Can someone have some idea why the hell is crashing ? Thanks in advance IC Carlos Ruiz -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Thu Sep 18 11:54:47 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 18 Sep 2008 13:54:47 -0500 Subject: [mapserver-users] Mapserver (CGI/FastCGI) crashes when querying amap In-Reply-To: <173639.27195.qm@web38206.mail.mud.yahoo.com> References: <48D2AAC70200005300040D40@stirling.iso.port.ac.uk> <173639.27195.qm@web38206.mail.mud.yahoo.com> Message-ID: <48D25DA7.5157.008F.0@dnr.state.mn.us> You're going to have to be more specific what the hell you're trying to do. ;-) >>> On 9/18/2008 at 1:43 PM, in message <173639.27195.qm at web38206.mail.mud.yahoo.com>, Carlos Ruiz wrote: > Hi list, > > I have Mapserver 5.0.2 installed on Win32, when I do some queries to my map, > the response > takes so long and then a window appears saying that CGI/FastCGI crashes. Can > someone > have some idea why the hell is crashing ? > > Thanks in advance > > IC Carlos Ruiz > > > From John.Westwood at port.ac.uk Thu Sep 18 12:59:51 2008 From: John.Westwood at port.ac.uk (John Westwood) Date: Thu, 18 Sep 2008 20:59:51 +0100 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance Message-ID: <48D2C1470200005300040D45@stirling.iso.port.ac.uk> Hi Paul and other MapServer Gurus, I have discovered a huge speed increase by using OpenLayers.MapServer (native) layers instead of OpenLayers.WMS layers. It is about ten times faster, I do not exaggerate. Why is WMS so slow? I have read that MapServer is a fast WMS server, have I done something wrong for it not to be? What do you think could be the problem? I will give it some thought tomorrow. John >>> "Paul Ramsey" 17/09/08 5:15 PM >>> John, The idea that CGI is naturally a much slower situation than a long-running process is a bit of a red herring in the case of Mapserver, and I say that as someone who is anal retentive about these things. Unless your Mapserver installation has some naturally latent components (database connections, primarily) you'll find that moving from CGI to FastCGI is worth about 15ms per request. On Wed, Sep 17, 2008 at 8:40 AM, John Westwood wrote: > The reason I am trying to get MapServer to work with fast_cgi is because I am experiencing poor performance with OpenLayers. I believe that OpenLayers starts a new MapServer instance for each tile request, thus causing an unnecessary overhead. Am I correct? Yes and no. If you are experiencing noticeably poor performance (you can actually *see* it being slow) the only place that the CGI overhead could be the cause is if you're connecting to Oracle or SDE for some of your layers. If that's not the case, look elsewhere first, the very small gains you will receive from moving to FastCGI will not change your underlying problem. Paul From John.Westwood at port.ac.uk Thu Sep 18 13:04:01 2008 From: John.Westwood at port.ac.uk (John Westwood) Date: Thu, 18 Sep 2008 21:04:01 +0100 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance Message-ID: <48D2C2410200005300040D4A@stirling.iso.port.ac.uk> Okay, maybe not ten times faster - but at least five times as fast - if not more. Anyway, ALOT faster than WMS :) >>> "Paul Ramsey" 17/09/08 5:15 PM >>> John, The idea that CGI is naturally a much slower situation than a long-running process is a bit of a red herring in the case of Mapserver, and I say that as someone who is anal retentive about these things. Unless your Mapserver installation has some naturally latent components (database connections, primarily) you'll find that moving from CGI to FastCGI is worth about 15ms per request. On Wed, Sep 17, 2008 at 8:40 AM, John Westwood wrote: > The reason I am trying to get MapServer to work with fast_cgi is because I am experiencing poor performance with OpenLayers. I believe that OpenLayers starts a new MapServer instance for each tile request, thus causing an unnecessary overhead. Am I correct? Yes and no. If you are experiencing noticeably poor performance (you can actually *see* it being slow) the only place that the CGI overhead could be the cause is if you're connecting to Oracle or SDE for some of your layers. If that's not the case, look elsewhere first, the very small gains you will receive from moving to FastCGI will not change your underlying problem. Paul From woodbri at swoodbridge.com Thu Sep 18 14:08:05 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 18 Sep 2008 16:08:05 -0500 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance In-Reply-To: <48D2C1470200005300040D45@stirling.iso.port.ac.uk> References: <48D2C1470200005300040D45@stirling.iso.port.ac.uk> Message-ID: <48D2C335.90008@swoodbridge.com> John Westwood wrote: > Hi Paul and other MapServer Gurus, > > I have discovered a huge speed increase by using OpenLayers.MapServer > (native) layers instead of OpenLayers.WMS layers. It is about ten > times faster, I do not exaggerate. Why is WMS so slow? I have read > that MapServer is a fast WMS server, have I done something wrong for > it not to be? > > What do you think could be the problem? You might want to check that you are comparing apples and apples. I would expect WMS to be a little slower because there is some overhead to query the server before actually making the image request. Do you have ratio set the same for both layers? What versions of Mapserver and OpenLayers are you using? Can you post a URL that has the two layers present in the layer switch so we can look at the requests and how your have it configured? Or post the HTML so we can look at. In fact you might want to post the HTML to the openlayers list and as the question there first, to make sure you have equivalent requests between WNS and Mapserver. -Steve W > I will give it some thought tomorrow. > > John > > > > >>>> "Paul Ramsey" 17/09/08 5:15 PM >>> > John, > > The idea that CGI is naturally a much slower situation than a > long-running process is a bit of a red herring in the case of > Mapserver, and I say that as someone who is anal retentive about > these things. Unless your Mapserver installation has some naturally > latent components (database connections, primarily) you'll find that > moving from CGI to FastCGI is worth about 15ms per request. > > On Wed, Sep 17, 2008 at 8:40 AM, John Westwood > wrote: > >> The reason I am trying to get MapServer to work with fast_cgi is >> because I am experiencing poor performance with OpenLayers. I >> believe that OpenLayers starts a new MapServer instance for each >> tile request, thus causing an unnecessary overhead. Am I correct? > > Yes and no. If you are experiencing noticeably poor performance (you > can actually *see* it being slow) the only place that the CGI > overhead could be the cause is if you're connecting to Oracle or SDE > for some of your layers. If that's not the case, look elsewhere > first, the very small gains you will receive from moving to FastCGI > will not change your underlying problem. > > Paul > > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Thu Sep 18 13:26:22 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 18 Sep 2008 15:26:22 -0500 Subject: [mapserver-users] Using Fast CGI with MapServer toalleviate poor performance In-Reply-To: <48D2C1470200005300040D45@stirling.iso.port.ac.uk> References: <48D2C1470200005300040D45@stirling.iso.port.ac.uk> Message-ID: <48D2731E.5157.008F.0@dnr.state.mn.us> MapServer WMS is just a wrapper around the CGI so they should be very close in speed. It would be interesting to capture actual calls made by OpenLayers and then debug independently. Steve >>> On 9/18/2008 at 2:59 PM, in message <48D2C1470200005300040D45 at stirling.iso.port.ac.uk>, "John Westwood" wrote: > Hi Paul and other MapServer Gurus, > > I have discovered a huge speed increase by using OpenLayers.MapServer > (native) layers instead of OpenLayers.WMS layers. It is about ten times > faster, I do not exaggerate. Why is WMS so slow? I have read that MapServer > is a fast WMS server, have I done something wrong for it not to be? > > What do you think could be the problem? > > I will give it some thought tomorrow. > > John > > > > >>>> "Paul Ramsey" 17/09/08 5:15 PM >>> > John, > > The idea that CGI is naturally a much slower situation than a > long-running process is a bit of a red herring in the case of > Mapserver, and I say that as someone who is anal retentive about these > things. Unless your Mapserver installation has some naturally latent > components (database connections, primarily) you'll find that moving > from CGI to FastCGI is worth about 15ms per request. > > On Wed, Sep 17, 2008 at 8:40 AM, John Westwood > wrote: > >> The reason I am trying to get MapServer to work with fast_cgi is because I > am experiencing poor performance with OpenLayers. I believe that OpenLayers > starts a new MapServer instance for each tile request, thus causing an > unnecessary overhead. Am I correct? > > Yes and no. If you are experiencing noticeably poor performance (you > can actually *see* it being slow) the only place that the CGI overhead > could be the cause is if you're connecting to Oracle or SDE for some > of your layers. If that's not the case, look elsewhere first, the very > small gains you will receive from moving to FastCGI will not change > your underlying problem. > > Paul > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From crschmidt at metacarta.com Thu Sep 18 14:03:24 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Thu, 18 Sep 2008 17:03:24 -0400 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance In-Reply-To: <48D2C1470200005300040D45@stirling.iso.port.ac.uk> References: <48D2C1470200005300040D45@stirling.iso.port.ac.uk> Message-ID: <20080918210324.GA28663@metacarta.com> On Thu, Sep 18, 2008 at 08:59:51PM +0100, John Westwood wrote: > Hi Paul and other MapServer Gurus, > > I have discovered a huge speed increase by using OpenLayers.MapServer (native) layers instead of OpenLayers.WMS layers. It is about ten times faster, I do not exaggerate. Why is WMS so slow? I have read that MapServer is a fast WMS server, have I done something wrong for it not to be? > > What do you think could be the problem? > > I will give it some thought tomorrow. Is it possible the difference is 'projections'? The Layer.MapServer in OpenLayers does not include any projection information, so if you have your OpenLayers Map configured in a way that would (via WMS) cause MapServer to reproject on the fly, it will have significantly different performance. (There are other side effects if your projections are actually different, but they might not be noticable at a first pass.) I agree with Steve that it probably makes sense to generate: * A WMS-served URL * A MapServer-served URL * Your mapfile configuration Those three things will probably help point towards the misconfiguration in your current setup. Regards, -- Christopher Schmidt MetaCarta From szekerest at gmail.com Thu Sep 18 14:32:56 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 18 Sep 2008 23:32:56 +0200 Subject: [mapserver-users] geomfromtext (POSTGIS) in C# or other language... In-Reply-To: <33fad6880809180843m3467c8d6o5233214c5c90bc26@mail.gmail.com> References: <33fad6880809180706wa159307t7dd382a576552c46@mail.gmail.com> <33fad6880809180843m3467c8d6o5233214c5c90bc26@mail.gmail.com> Message-ID: Paul, You should probably do the following steps when creating a new layer from scratch: // Register OGR Ogr.RegisterAll(); // Get the postgis driver Driver drv = Ogr.GetDriverByName("PostgreSQL"); // Create the datasource DataSource ds = drv.CreateDataSource( [data source name], new string[] {} ); // Create the layer Layer layer = ds.CreateLayer( [layer name], null, wkbGeometryType.wkbPoint, new string[] {} ); // Adding attribute fields to the layers if needed FieldDefn fdefn = new FieldDefn( "Name", FieldType.OFTString ); fdefn.SetWidth(32); layer.CreateField( fdefn, 1 ) ; // Adding features to the layer Feature feature = new Feature( layer.GetLayerDefn() ); feature.SetField( "Name", "value" ); Geometry geom = Geometry.CreateFromWkt("POINT(47.0 19.2)"); feature.SetGeometry( geom ); layer.CreateFeature( feature ); Best regards, Tamas 2008/9/18 Paul james : > Thanks Thamas... > Thats sounds great... > But, after I used Geometry.CreateFromWkt function to convert my geometry, > how can I add it to the PostGis Layer? > > On Thu, Sep 18, 2008 at 12:06 PM, Tamas Szekeres > wrote: >> >> Paul, >> >> You could probably use the GDAL C# bindings and the >> Geometry.CreateFromWkt function for this purpose. >> For more information see the createdata.cs example in the gdal source >> tree. >> >> Best regards, >> >> Tamas >> >> >> 2008/9/18 Paul james : >> > Hello Guys... >> > I?d like to add a point in a Postgis layer... I?m able to do this using >> > geomfromtext function (postgis)... >> > I?d like to do that in C# ... >> > Is that possible? >> > >> > Thankz >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > > > From szekerest at gmail.com Thu Sep 18 14:44:44 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 18 Sep 2008 23:44:44 +0200 Subject: [mapserver-users] geomfromtext (POSTGIS) in C# or other language... In-Reply-To: <33fad6880809181122l1e1f9aa6i1dc7495d9cfb79f4@mail.gmail.com> References: <33fad6880809180706wa159307t7dd382a576552c46@mail.gmail.com> <33fad6880809180843m3467c8d6o5233214c5c90bc26@mail.gmail.com> <30fe546d0809180913h69a32500k6d6da02d991944dd@mail.gmail.com> <33fad6880809181122l1e1f9aa6i1dc7495d9cfb79f4@mail.gmail.com> Message-ID: 2008/9/18 Paul james : > I got a point from postgis in this format : > 010100000000000000000059400000000000005940 It smells like a wkt geometry representation in hexstring format. You should convert this into a binary array and then use Geometry.CreateFromWkb, something like (untested): // allocate byte array based on half of string length byte[] bytes = new byte[(strInput.Length) / 2]; // loop through the string - 2 bytes at a time converting it to decimal equivalent and store in byte array int i = 0, x= 0; while (strInput.Length > i + 1) { long lngDecimal = Convert.ToInt32(strInput.Substring(i, 2), 16); bytes[x] = Convert.ToByte(lngDecimal); i = i + 2; ++x; } Geometry geom = Geometry.CreateFromWkb(bytes); I wonder if there is some support to this kind of string conversion in the .NET FW class library (something like the BitConverter class) that I'm not aware of. Let me know if you can do it easier. Best regards, Tamas From szekerest at gmail.com Thu Sep 18 14:48:29 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 18 Sep 2008 23:48:29 +0200 Subject: [mapserver-users] geomfromtext (POSTGIS) in C# or other language... In-Reply-To: References: <33fad6880809180706wa159307t7dd382a576552c46@mail.gmail.com> <33fad6880809180843m3467c8d6o5233214c5c90bc26@mail.gmail.com> <30fe546d0809180913h69a32500k6d6da02d991944dd@mail.gmail.com> <33fad6880809181122l1e1f9aa6i1dc7495d9cfb79f4@mail.gmail.com> Message-ID: or wkb (Well-Known Binary) what I wanted to say ;-) http://dev.mysql.com/doc/refman/5.0/en/gis-wkb-format.html Tamas 2008/9/18 Tamas Szekeres : > 2008/9/18 Paul james : > >> I got a point from postgis in this format : >> 010100000000000000000059400000000000005940 > > It smells like a wkt geometry representation in hexstring format. You > should convert this into a binary array and then use > Geometry.CreateFromWkb, something like (untested): > > // allocate byte array based on half of string length > byte[] bytes = new byte[(strInput.Length) / 2]; > // loop through the string - 2 bytes at a time converting it to > decimal equivalent and store in byte array > int i = 0, x= 0; > while (strInput.Length > i + 1) > { > long lngDecimal = Convert.ToInt32(strInput.Substring(i, 2), 16); > bytes[x] = Convert.ToByte(lngDecimal); > i = i + 2; > ++x; > } > Geometry geom = Geometry.CreateFromWkb(bytes); > > > I wonder if there is some support to this kind of string conversion in > the .NET FW class library (something like the BitConverter class) that > I'm not aware of. Let me know if you can do it easier. > > Best regards, > > Tamas > From valerio.vianello at yahoo.it Fri Sep 19 03:02:01 2008 From: valerio.vianello at yahoo.it (valerio vianello) Date: Fri, 19 Sep 2008 10:02:01 +0000 (GMT) Subject: [mapserver-users] mapserver and openlayers Message-ID: <782579.32184.qm@web27302.mail.ukl.yahoo.com> dear list, I am looking for a library like openlayers to build map at client side using mapserver WMS and above mainly WFS services. I have to test my application using a phone and i tryed to use openlayers but i have some problems with WFS layers I guess there are some problem with the vector format used by openlayer, maybe, but i am not sure, the phone browser is not able to rendere that format. So now i'd try another library... any suggestions ? Valerio __________________________________________________ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it -------------- next part -------------- An HTML attachment was scrubbed... URL: From Schoenhammer.Herbert at Regensburg.de Fri Sep 19 03:20:14 2008 From: Schoenhammer.Herbert at Regensburg.de (=?iso-8859-1?Q?Sch=F6nhammer=2C_Herbert?=) Date: Fri, 19 Sep 2008 12:20:14 +0200 Subject: AW: [mapserver-users] Oracle Spatial + MS 5.2.0: No drawing of certain objects In-Reply-To: <30fe546d0809180735t8c4b212k47b6fde1a287789f@mail.gmail.com> Message-ID: Hallo Paul, 1.) Yes, there is no difference in behavior between the old and new mapserver versions. 2.) Yes and No. In detail: 2a) If there is at most ONE straight line in the polygon, mapserver renders this polygon correct, even if there is a curved segement (arc) in the polygon. For example this is a church, which contains three arcs in the polygon (triple 11,2,2 and 31,2,2 and 51,2,2). This polygon is rendered correct. INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES (14080503,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_info_array(1,1005,7,1,2,1,11,2,2,15,2,1,31,2,2,35,2,1,51,2,2,55,2,1),mdsys.sdo_ordinate_array(4506867.81,5430890.76,4506872.05,5430889.72,4506881.01,5430887.51,4506881.58,5430889.82,4506883.14,5430896.16,4506937.22,5430883.9,4506941.09222415,5430884.75129585,4506943.86,5430887.59,4506948.31,5430886.72,4506947.53,5430882.98,4506950.45,5430882.37,4506950.02,5430880.3,4506955.17,5430879.23,4506955.58,5430881.2,4506958.35,5430880.62,4506959.21,5430884.73,4506961.57385865,5430886.53782314,4506960.13,5430889.14,4506960.94,5430893,4506957.92,5430893.63,4506958.4,5430896.12,4506953.2,5430897.12,4506952.74,5430894.72,4506950.1,5430895.27,4506949.23,5430891.12,4506944.73,5430892,4506942.9045371,5430896.27675424,4506939.38,5430899.31,4506893.36,5430909.55,4506886.79,5430911.01,4506888.96,5430919.81,4506882.98,5430921.28,4506874.83,5430923.28,4506874.09,5430920.3,4506872.55,5430914.03,4506866.92,5430915.42,4506864.74,5430915.95,4506861.35,5430902.17,4506870.09,5430900.02,4506867.81,5430890.76))); 2b) Mapserver does not render polygons, which exists ONLY of a connected sequence of circular arcs that closes on itself. (Examples below). Greetings Herbert >-----Urspr?ngliche Nachricht----- >Von: Paul Ramsey [mailto:pramsey at cleverelephant.ca] >Gesendet: Donnerstag, 18. September 2008 16:35 >An: Sch?nhammer, Herbert >Betreff: Re: [mapserver-users] Oracle Spatial + MS 5.2.0: No >drawing of certain objects > > >So, to confirm, there is now no difference in behavior between your >old and new mapserver installations? > >However, the old and new installations share an inability to render >polygons that include curved boundaries? > >P. > >On Thu, Sep 18, 2008 at 3:14 AM, Sch?nhammer, Herbert > wrote: >> Hallo Paul, >> >> (I needed some time because new hardware, ...) >> >> Okay: First of all: >> >> The reported NEW DIFFICULTIES are not reproducable any more. >I really don't know what happened. But LINESTRINGS made up of >a connected sequence of circular arcs ARE DRAWN by mapserver. >> >> The old problem still exists. >> ============================= >> POLYGONS made up of a connected sequence of circular arcs >ARE NOT DRAWN by mapserver. No error message. >> >> I have made a config error in my mapfile. So I could get an >error message from mapserver. In this error message the >SQL-statement sent to the oracle database is: >> >> SELECT fid, geom FROM AX_GEBAEUDE WHERE SDO_FILTER( geom, >MDSYS.SDO_GEOMETRY(2003, 82032, >NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARR >AY(4505602.25,5430841.31,4505622.97,5430856.39) >),'querytype=window') = 'TRUE' >> >> When i submit this SQL direct to the databse I get 4 geometries back. >> Two POLYGONS made up of straight line segements. >> Two POLYGONS made up of a connected sequence of circular arcs. >> >> The polygons with straight line segments are drawn, the >polygons made up of a connected sequence of circular arcs are >not drawn. >> >> I have exported these objects from my database: >> >> The drawn polygons are: >> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >(14079074,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >o_array(1,1003,1),mdsys.sdo_ordinate_array(4505658.59,5430772.1 >7,4505643.27,5430803.04,4505634.39,5430798.05,4505625.41,543081 >4,4505619.34,5430810.5898,4505607.9,5430830.95,4505607.4,543083 >0.7,4505600.29,5430845.02,4505511.2,5430801.08,4505534.42,54307 >54.01,4505552.34,5430762.86,4505569.51,5430728.08,4505658.59,54 >30772.17))); >> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >(14079078,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >o_array(1,1003,1),mdsys.sdo_ordinate_array(4505643.27,5430803.0 >4,4505643.85,5430803.37,4505644.39,5430803.67,4505644.34,543080 >3.76,4505635.46,5430819.49,4505633.64,5430822.73,4505619.68,543 >0847.46,4505609.69,5430841.9199,4505613.95,5430834.36,4505625.4 >1,5430814,4505634.39,5430798.05,4505643.27,5430803.04))); >> >> The polygons which are not drawn are: >> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >(14079126,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >o_array(1,1003,2),mdsys.sdo_ordinate_array(4505611.03,5430848.5 >5,4505611.03,5430845.19,4505614.39,5430845.19,4505614.39,543084 >8.55,4505611.03,5430848.55))); >> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >(14079128,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >o_array(1,1003,2),mdsys.sdo_ordinate_array(4505615.64,5430849.9 >,4505615.64,5430847.3,4505618.24,5430847.3,4505618.24,5430849.9 >,4505615.64,5430849.9))); >> >> >> All polygons are GTYPE=2003 in SRID=82032. All POLYGONS are >SDO_ETYPE=1003. >> The POLYGONS with SDO_INTERPRETATION = 1 are drawn. >> The POLYGONS with SDO_INTERPRETATION = 2 are not drawn. >> >> >> greetings >> Herbert >> >>>-----Urspr?ngliche Nachricht----- >>>Von: Paul Ramsey [mailto:pramsey at cleverelephant.ca] >>>Gesendet: Donnerstag, 11. September 2008 19:07 >>>An: Sch?nhammer, Herbert >>>Cc: Mapserver-users (mapserver-users at lists.osgeo.org) >>>Betreff: Re: [mapserver-users] Oracle Spatial + MS 5.2.0: No >>>drawing of certain objects >>> >>> >>>Could you do a bit more legwork and see if the problem appears at the >>>transition to 5.0 or the transition to 5.2? From there we >can probably >>>find the code change that caused it. >>> >>>P. >>> >>>On Wed, Sep 10, 2008 at 7:03 AM, Sch?nhammer, Herbert >>> wrote: >>>> Hi list, >>>> >>>> ( I had a similar discussion using Mapserver 4.10.x and >>>Oracle Spatial 9i in >>>> May 2007. But the problems changed using Mapserver 5.2.0 .). >>>> >>>> >>>> The new environmet: >>>> =============== >>>> Server SLES10 >>>> Mapserver 5.2.0 >>>> Oracle OCI - Interface used with Oracle 11-Client-Software >>>> >>>> DB-Server Windows 2xxx >>>> Oracle Spatial 10g >>>> >>>> >>>> The new problem : >>>> ============== >>>> Line strings made up of a connected sequence of circular >>>arcs ARE NOT DRAWN. >>>> No error message is generated by mapserver, but the objects >>>are not shown in >>>> the map. >>>> >>>> Example: >>>> INSERT INTO AX_BES_GEBLINIE (FID,GEOM) VALUES >>>> >>>(14196363,mdsys.sdo_geometry(2002,82032,null,mdsys.sdo_elem_inf >>>o_array(1,2,2),mdsys.sdo_ordinate_array(4512474.1948,5426555.09 >>>79,4512473.3318,5426554.2349,4512474.1948,5426553.3719,4512475. >>>0578,5426554.2349,4512474.1948,5426555.0979))); >>>> >>>> (Background: >>>> In my mailing from May 2007 I reported that these Objects are drawn >>>> correctly by mapserver. This statement is indeed >>>reproducable correct using >>>> mapserver 4.10.x. This is independent from the used oracle >>>version ( 9i or >>>> 10g ). >>>> Now, using mapserver 5.2.0 these objects are not drawn >>>anymore. No error >>>> message is produced. This is also independent from the used >>>oracle version ( >>>> 9i or 10g ). ) >>>> >>>> The old problem: >>>> ============ >>>> Polygons made up of a connected sequence of circular arcs >>>ARE NOT DRAWN. No >>>> error message is generated by mapserver, but the objects are >>>not shown in >>>> the map. >>>> >>>> (This problem was already reported in May 2007. The >>>behaviour did not change >>>> from mapserver 4.10.x to 5.2.0) >>>> >>>> Example: >>>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>>> >>>(14079065,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>>o_array(1,1003,2),mdsys.sdo_ordinate_array(4505553.2585,5430757 >>>.2937,4505551.1659,5430755.2011,4505553.2585,5430753.1085,45055 >>>55.3511,5430755.2011,4505553.2585,5430757.2937))); >>>> >>>> >>>> Oracle Documentation: >>>> ================= >>>> Reading the Oracle Docs, I think all the objects are correct >>>defined. The >>>> geometries are validating by oracle 9i and oracle 10g (Using >>>the st_valid - >>>> method, e.g. SELECT a.GEOM.ST_IsValid() >>>> FROM ax_bes_geblinie a WHERE a.fid = 14196363;). >>>> >>>> >>>> >>>> Does anybody know a solution how to draw these objects with >>>mapserver ? >>>> >>>> greetings >>>> Herbert >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>> >> > From SWEYKAM at telefonica.net Fri Sep 19 03:25:30 2008 From: SWEYKAM at telefonica.net (SWEYKAM at telefonica.net) Date: Fri, 19 Sep 2008 12:25:30 +0200 (MEST) Subject: [mapserver-users] =?utf-8?q?WMS_=E2=80=93_Dimension_support_=28o?= =?utf-8?q?ther_than_TIME=29_=3F?= Message-ID: <31239057.1221819930718.JavaMail.root@ctps6> WMS ? Dimension support (other than TIME) ? Dear list members, How can I configure a layer having other dimensions, i.e. ?depth? or 'species_id'? (MapServer 5.0 Windows) Thanks in advance for any suggestions you can give. Stefanie TERRA --> -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Fri Sep 19 04:22:37 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Fri, 19 Sep 2008 16:52:37 +0530 Subject: [mapserver-users] mapserver and openlayers In-Reply-To: <782579.32184.qm@web27302.mail.ukl.yahoo.com> References: <782579.32184.qm@web27302.mail.ukl.yahoo.com> Message-ID: <001e01c91a4a$06e4a680$14adf380$@com> Dear All, I am looking for the same, Please anyone can help. I am waiting for your great response. Thanks and Regards Venkat. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of valerio vianello Sent: Friday, September 19, 2008 3:32 PM To: mapserver Subject: [mapserver-users] mapserver and openlayers dear list, I am looking for a library like openlayers to build map at client side using mapserver WMS and above mainly WFS services. I have to test my application using a phone and i tryed to use openlayers but i have some problems with WFS layers I guess there are some problem with the vector format used by openlayer, maybe, but i am not sure, the phone browser is not able to rendere that format. So now i'd try another library... any suggestions ? Valerio __________________________________________________ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it -------------- next part -------------- An HTML attachment was scrubbed... URL: From juanlucs at gmail.com Fri Sep 19 04:48:17 2008 From: juanlucs at gmail.com (Juan Luis Cardoso) Date: Fri, 19 Sep 2008 13:48:17 +0200 Subject: [mapserver-users] MapServer ArcSDE Windows and IIS Message-ID: <37afc7220809190448y77d0600ek72da6fcd2fd7ac7@mail.gmail.com> Hi everybody! I would like to install Mapserver and configure it to read ArcSDE. I would prefer to do it on Windows and IIS, better that Unix/Apache. And I am reading from http://mapserver.gis.umn.edu/docs/reference/vector_data/arcsde at Vector Data Access --> ArcSDE Database (SDE) : How to make a connection to SDE: 1.- Install the SDE C API client libraries for your platform (preferably matched to the server version you are using, ie 8.2 client -> 8.2 server, 8.3 client -> 8.3 server) 2.- Compile MapServer with SDE support (see* **MapServer Unix Compilation Howto*for specific details) It?s possible to Install MapServer under Windows & IIS & use ArcSDE? And other question, does anyone know when will be available for ArcSDE 9.3? Thank in advance. JuanLu. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian_geithner at gmx.net Fri Sep 19 05:12:10 2008 From: sebastian_geithner at gmx.net (Sebastian Geithner) Date: Fri, 19 Sep 2008 14:12:10 +0200 Subject: [mapserver-users] WMS layer is not shown in right projection Message-ID: <20080919121210.73900@gmx.net> Hi list, I have a problem according to the projection of my layers. I have set up the foss-gis-suite and use OpenLayers as client. I have configured MapServer as WMS-Server. If I request a layer (using EPSG-Code 31468 [Gauss Kruger zone 4]) via OpenLayers.Layer.MapServer the response is OK but if I try this with the OpenLayers.Layer.WMS layer I don't get the map. I have tested the EPSG-Code 4326 and the map shows up (but stretched). Why can't I use the same projection for both layers or where is the failure? OpenLayers-Code: Prototyp

Prototyp

OpenLayers in Verbindung mit lokalem UMN MapServer



Map file: MAP NAME "Thueringen" STATUS ON SIZE 600 400 EXTENT 4464371.920000 5640027.581000 4470798.744000 5646045.455000 IMAGECOLOR 180 180 180 UNITS METERS PROJECTION "init=epsg:31468" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END #--------------------------------WEB-Section------------------------------ WEB TEMPLATE "/home/jade/fgs/www/htdocs/thueringen.html" IMAGEPATH "/home/jade/fgs/www/htdocs/tmp/" IMAGEURL "/tmp/" METADATA "wms_title" "WMS Map Service" "wms_onlineresource" "http://localhost:8080/cgi-bin/mapserv?map=/home/jade/fgs/www/htdocs/global.map" "wms_srs" "EPSG:4326" END END #--------------------------------LAYER-Section------------------------------ LAYER NAME "Felder" TYPE POLYGON STATUS ON DATA "50353v_f.shp" DUMP TRUE TEMPLATE "/home/jade/fgs/www/htdocs/thueringen.html" PROJECTION "init=epsg:31468" END METADATA "wms_title" "Felder" "wms_srs" "EPSG:4326" END CLASSITEM "FBI_2008" CLASS NAME "groesste Flaeche" EXPRESSION "DETHLIGL50353F15" STYLE OUTLINECOLOR 100 100 100 COLOR 255 150 150 END END CLASS NAME "alle anderen" EXPRESSION /./ STYLE OUTLINECOLOR 100 100 100 COLOR 180 255 180 END END END END Thanks for your help. sebastian -- Sebastian Geithner Anna-Siemsen-Str. 85 07745 Jena mobil: 0176-83137338 GMX Kostenlose Spiele: Einfach online spielen und Spa? haben mit Pastry Passion! http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196 From pspencer at dmsolutions.ca Fri Sep 19 05:24:03 2008 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Fri, 19 Sep 2008 08:24:03 -0400 Subject: [mapserver-users] mapserver and openlayers In-Reply-To: <001e01c91a4a$06e4a680$14adf380$@com> References: <782579.32184.qm@web27302.mail.ukl.yahoo.com> <001e01c91a4a$06e4a680$14adf380$@com> Message-ID: I'm not aware of anything. I think you will need a java client as browser functionality on (most) phones is horrible right now. Unless you are targeting an iPhone of course ;) On 19-Sep-08, at 7:22 AM, Venkat Rao Tammineni wrote: > Dear All, > > I am looking for the same, Please anyone can help. > > I am waiting for your great response. > > Thanks and Regards > Venkat. > > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org > ]On Behalf Of valerio vianello > Sent: Friday, September 19, 2008 3:32 PM > To: mapserver > Subject: [mapserver-users] mapserver and openlayers > > dear list, > > I am looking for a library like openlayers to build map at client > side using mapserver WMS and above mainly WFS services. > > I have to test my application using a phone and i tryed to use > openlayers but i have some problems with WFS layers I guess there > are some problem with the vector format used by openlayer, maybe, > but i am not sure, the phone browser is not able to rendere that > format. So now i'd try another library... > > any suggestions ? > > Valerio > > __________________________________________________ > Do You Yahoo!? > Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da > tanto spazio gratuito per i tuoi file e i messaggi > http://mail.yahoo.it > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://www.dmsolutions.ca/ From guillaume.sueur at neogeo-online.net Fri Sep 19 05:17:05 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Fri, 19 Sep 2008 14:17:05 +0200 Subject: [mapserver-users] WMS layer is not shown in right projection In-Reply-To: <20080919121210.73900@gmx.net> References: <20080919121210.73900@gmx.net> Message-ID: <48D39841.1040602@neogeo-online.net> Althought it would be more appropriate to ask this on openlayers user list, I can give you few clues : All WMS layers are requested in the map's projection definition. In your case, as the map seems to be 4326, your wms layers must be able to send its output in that resolution. If you want to use 31468, set this code for the map resolution, declare it in your wms layer metadata 'wms_srs' attribute, and it should be fine. Regards, Guillaume Sebastian Geithner a ?crit : > Hi list, > I have a problem according to the projection of my layers. I have set up the foss-gis-suite and use OpenLayers as client. I have configured MapServer as WMS-Server. > > If I request a layer (using EPSG-Code 31468 [Gauss Kruger zone 4]) via OpenLayers.Layer.MapServer the response is OK but if I try this with the OpenLayers.Layer.WMS layer I don't get the map. I have tested the EPSG-Code 4326 and the map shows up (but stretched). > > Why can't I use the same projection for both layers or where is the failure? > > > OpenLayers-Code: > > > > Prototyp > > > > > >

Prototyp

>
>

OpenLayers in Verbindung mit lokalem UMN MapServer

>
>
>
>
>
> > > > > > > Map file: > > MAP > NAME "Thueringen" > STATUS ON > SIZE 600 400 > EXTENT 4464371.920000 5640027.581000 4470798.744000 5646045.455000 > IMAGECOLOR 180 180 180 > UNITS METERS > PROJECTION > "init=epsg:31468" > END > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE PC256 > EXTENSION "png" > END > > #--------------------------------WEB-Section------------------------------ > > WEB > TEMPLATE "/home/jade/fgs/www/htdocs/thueringen.html" > IMAGEPATH "/home/jade/fgs/www/htdocs/tmp/" > IMAGEURL "/tmp/" > METADATA > "wms_title" "WMS Map Service" > "wms_onlineresource" "http://localhost:8080/cgi-bin/mapserv?map=/home/jade/fgs/www/htdocs/global.map" > "wms_srs" "EPSG:4326" > END > END > > #--------------------------------LAYER-Section------------------------------ > > LAYER > NAME "Felder" > TYPE POLYGON > STATUS ON > DATA "50353v_f.shp" > DUMP TRUE > TEMPLATE "/home/jade/fgs/www/htdocs/thueringen.html" > PROJECTION > "init=epsg:31468" > END > METADATA > "wms_title" "Felder" > "wms_srs" "EPSG:4326" > END > CLASSITEM "FBI_2008" > CLASS > NAME "groesste Flaeche" > EXPRESSION "DETHLIGL50353F15" > STYLE > OUTLINECOLOR 100 100 100 > COLOR 255 150 150 > END > END > CLASS > NAME "alle anderen" > EXPRESSION /./ > STYLE > OUTLINECOLOR 100 100 100 > COLOR 180 255 180 > END > END > END > END > > > Thanks for your help. > > sebastian -- From susanne.kalliany at tefis.at Fri Sep 19 06:36:48 2008 From: susanne.kalliany at tefis.at (DI. Susanne Kalliany) Date: Fri, 19 Sep 2008 15:36:48 +0200 Subject: [mapserver-users] Labelling problem using mapserver withka-map Message-ID: Dear mapserver-community, I already had some discussion on my particular problem under the thread "Ok, one more labeling sample...", but even Steve Lime had no solution which will work in any case. His last statement was: > Ka-map is DHTML layer driven so you're definitely seeing the side > effects of overlaying antialiased, transparent > output on a background. The anti-aliasing occurs on a white background > in the vector map which is why you see > the white artifacts around your text. I'm not sure there is a perfect > fix, variable opacity with 24-bit out put is the > answer but not all browsers support it. Does anybody have experience in this field? My first statement was: How can I get rid of the white "shadows" accompanying all letters ? http://www.nabble.com/file/p19570283/SNAG-000.jpg Here is the signifanct part of my map-file: LAYER NAME Kataster_region GROUP Kataster STATUS OFF MAXSCALE 300000 TYPE POLYGON DATA 'd:/ewald/Kataster_OOE/45416GST' LABELITEM 'GNR' CLASS STYLE OUTLINECOLOR 255 0 255 WIDTH 1 END LABEL TYPE TRUETYPE FONT 'sans' SIZE 8 POSITION cc Color 0 0 0 END END TEMPLATE 'dummy.html' END thanks, Susanne -- View this message in context: http://www.nabble.com/Labelling-problem-using-mapserver-with-ka-map-tp195702 83p19570283.html Sent from the Mapserver - Dev mailing list archive at Nabble.com. _______________________________________________ mapserver-dev mailing list mapserver-dev at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-dev From John.Westwood at port.ac.uk Fri Sep 19 07:34:42 2008 From: John.Westwood at port.ac.uk (John Westwood) Date: Fri, 19 Sep 2008 15:34:42 +0100 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance Message-ID: <48D3C6920200005300040E40@stirling.iso.port.ac.uk> Hi Everybody, I am attaching a cut down version of my html, javascript and map files. On our server the EmbeddedMap.js lives in the OpenLayers directory and is used by gbhgis_openlayers.html. The test address http://148.197.8.119/gbhgis_openlayers.html . This is just a test server so please don't tell the whole World about it! :) There are four layers, 2 x raster (europe 1940s, WMS and MapServer) and 2 x vector / raster (Digital Chart of the World, WMS and MapServer) . A problem with using the OpenLayers.MapServer method is that the (1) The raster colours are messed up and (2) Anti-aliasing is not being done on the vector layers. I don't know why this is. Regards, John Westwood >>> Stephen Woodbridge 18/09/08 9:08 PM >>> John Westwood wrote: > Hi Paul and other MapServer Gurus, > > I have discovered a huge speed increase by using OpenLayers.MapServer > (native) layers instead of OpenLayers.WMS layers. It is about ten > times faster, I do not exaggerate. Why is WMS so slow? I have read > that MapServer is a fast WMS server, have I done something wrong for > it not to be? > > What do you think could be the problem? You might want to check that you are comparing apples and apples. I would expect WMS to be a little slower because there is some overhead to query the server before actually making the image request. Do you have ratio set the same for both layers? What versions of Mapserver and OpenLayers are you using? Can you post a URL that has the two layers present in the layer switch so we can look at the requests and how your have it configured? Or post the HTML so we can look at. In fact you might want to post the HTML to the openlayers list and as the question there first, to make sure you have equivalent requests between WNS and Mapserver. -Steve W > I will give it some thought tomorrow. > > John > > > > >>>> "Paul Ramsey" 17/09/08 5:15 PM >>> > John, > > The idea that CGI is naturally a much slower situation than a > long-running process is a bit of a red herring in the case of > Mapserver, and I say that as someone who is anal retentive about > these things. Unless your Mapserver installation has some naturally > latent components (database connections, primarily) you'll find that > moving from CGI to FastCGI is worth about 15ms per request. > > On Wed, Sep 17, 2008 at 8:40 AM, John Westwood > wrote: > >> The reason I am trying to get MapServer to work with fast_cgi is >> because I am experiencing poor performance with OpenLayers. I >> believe that OpenLayers starts a new MapServer instance for each >> tile request, thus causing an unnecessary overhead. Am I correct? > > Yes and no. If you are experiencing noticeably poor performance (you > can actually *see* it being slow) the only place that the CGI > overhead could be the cause is if you're connecting to Oracle or SDE > for some of your layers. If that's not the case, look elsewhere > first, the very small gains you will receive from moving to FastCGI > will not change your underlying problem. > > Paul > > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- A non-text attachment was scrubbed... Name: EmbeddedMap.js Type: application/octet-stream Size: 4824 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gbhgis.map Type: application/octet-stream Size: 17185 bytes Desc: not available URL: From pramsey at cleverelephant.ca Fri Sep 19 07:39:49 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Fri, 19 Sep 2008 07:39:49 -0700 Subject: [mapserver-users] Oracle Spatial + MS 5.2.0: No drawing of certain objects In-Reply-To: References: <30fe546d0809180735t8c4b212k47b6fde1a287789f@mail.gmail.com> Message-ID: <30fe546d0809190739g14dff59ase47630cd70585345@mail.gmail.com> Try the following completely untested patch: Index: maporaclespatial.c =================================================================== --- maporaclespatial.c (revision 7827) +++ maporaclespatial.c (working copy) @@ -1476,6 +1476,9 @@ case 31: /* simple polygon with n points, last point equals the first one */ osClosedPolygon(hand, shape, obj, ord_start, ord_end, points, elem_type, data3d); break; + case 32: /* simple polygon with only arcs for bounds */ + osArcPolygon(hand, shape, obj, ord_start, ord_end, points, data3d); + break; case 33: /* rectangle defined by 2 points */ osRectangle(hand, shape, obj, ord_start, ord_end, points, point5, data3d); break; On Fri, Sep 19, 2008 at 3:20 AM, Sch?nhammer, Herbert wrote: > Hallo Paul, > > 1.) Yes, there is no difference in behavior between the old and new mapserver versions. > > 2.) Yes and No. In detail: > > 2a) If there is at most ONE straight line in the polygon, mapserver renders this polygon correct, even if there is a curved segement (arc) in the polygon. For example this is a church, which contains three arcs in the polygon (triple 11,2,2 and 31,2,2 and 51,2,2). This polygon is rendered correct. > > INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES (14080503,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_info_array(1,1005,7,1,2,1,11,2,2,15,2,1,31,2,2,35,2,1,51,2,2,55,2,1),mdsys.sdo_ordinate_array(4506867.81,5430890.76,4506872.05,5430889.72,4506881.01,5430887.51,4506881.58,5430889.82,4506883.14,5430896.16,4506937.22,5430883.9,4506941.09222415,5430884.75129585,4506943.86,5430887.59,4506948.31,5430886.72,4506947.53,5430882.98,4506950.45,5430882.37,4506950.02,5430880.3,4506955.17,5430879.23,4506955.58,5430881.2,4506958.35,5430880.62,4506959.21,5430884.73,4506961.57385865,5430886.53782314,4506960.13,5430889.14,4506960.94,5430893,4506957.92,5430893.63,4506958.4,5430896.12,4506953.2,5430897.12,4506952.74,5430894.72,4506950.1,5430895.27,4506949.23,5430891.12,4506944.73,5430892,4506942.9045371,5430896.27675424,4506939.38,5430899.31,4506893.36,5430909.55,4506886.79,5430911.01,4506888.96,5430919.81,4506882.98,5430921.28,4506874.83,5430923.28,4506874.09,5430920.3,4506872.55,5430914.03,4506866.92,5430915.42,4506864.74,5430915.95,4506861.35,5430902.17,4506870.09,5430900.02,4506867.81,5430890.76))); > > 2b) Mapserver does not render polygons, which exists ONLY of a connected sequence of circular arcs that closes on itself. (Examples below). > > Greetings > Herbert > >>-----Urspr?ngliche Nachricht----- >>Von: Paul Ramsey [mailto:pramsey at cleverelephant.ca] >>Gesendet: Donnerstag, 18. September 2008 16:35 >>An: Sch?nhammer, Herbert >>Betreff: Re: [mapserver-users] Oracle Spatial + MS 5.2.0: No >>drawing of certain objects >> >> >>So, to confirm, there is now no difference in behavior between your >>old and new mapserver installations? >> >>However, the old and new installations share an inability to render >>polygons that include curved boundaries? >> >>P. >> >>On Thu, Sep 18, 2008 at 3:14 AM, Sch?nhammer, Herbert >> wrote: >>> Hallo Paul, >>> >>> (I needed some time because new hardware, ...) >>> >>> Okay: First of all: >>> >>> The reported NEW DIFFICULTIES are not reproducable any more. >>I really don't know what happened. But LINESTRINGS made up of >>a connected sequence of circular arcs ARE DRAWN by mapserver. >>> >>> The old problem still exists. >>> ============================= >>> POLYGONS made up of a connected sequence of circular arcs >>ARE NOT DRAWN by mapserver. No error message. >>> >>> I have made a config error in my mapfile. So I could get an >>error message from mapserver. In this error message the >>SQL-statement sent to the oracle database is: >>> >>> SELECT fid, geom FROM AX_GEBAEUDE WHERE SDO_FILTER( geom, >>MDSYS.SDO_GEOMETRY(2003, 82032, >>NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARR >>AY(4505602.25,5430841.31,4505622.97,5430856.39) >>),'querytype=window') = 'TRUE' >>> >>> When i submit this SQL direct to the databse I get 4 geometries back. >>> Two POLYGONS made up of straight line segements. >>> Two POLYGONS made up of a connected sequence of circular arcs. >>> >>> The polygons with straight line segments are drawn, the >>polygons made up of a connected sequence of circular arcs are >>not drawn. >>> >>> I have exported these objects from my database: >>> >>> The drawn polygons are: >>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>(14079074,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>o_array(1,1003,1),mdsys.sdo_ordinate_array(4505658.59,5430772.1 >>7,4505643.27,5430803.04,4505634.39,5430798.05,4505625.41,543081 >>4,4505619.34,5430810.5898,4505607.9,5430830.95,4505607.4,543083 >>0.7,4505600.29,5430845.02,4505511.2,5430801.08,4505534.42,54307 >>54.01,4505552.34,5430762.86,4505569.51,5430728.08,4505658.59,54 >>30772.17))); >>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>(14079078,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>o_array(1,1003,1),mdsys.sdo_ordinate_array(4505643.27,5430803.0 >>4,4505643.85,5430803.37,4505644.39,5430803.67,4505644.34,543080 >>3.76,4505635.46,5430819.49,4505633.64,5430822.73,4505619.68,543 >>0847.46,4505609.69,5430841.9199,4505613.95,5430834.36,4505625.4 >>1,5430814,4505634.39,5430798.05,4505643.27,5430803.04))); >>> >>> The polygons which are not drawn are: >>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>(14079126,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>o_array(1,1003,2),mdsys.sdo_ordinate_array(4505611.03,5430848.5 >>5,4505611.03,5430845.19,4505614.39,5430845.19,4505614.39,543084 >>8.55,4505611.03,5430848.55))); >>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>(14079128,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>o_array(1,1003,2),mdsys.sdo_ordinate_array(4505615.64,5430849.9 >>,4505615.64,5430847.3,4505618.24,5430847.3,4505618.24,5430849.9 >>,4505615.64,5430849.9))); >>> >>> >>> All polygons are GTYPE=2003 in SRID=82032. All POLYGONS are >>SDO_ETYPE=1003. >>> The POLYGONS with SDO_INTERPRETATION = 1 are drawn. >>> The POLYGONS with SDO_INTERPRETATION = 2 are not drawn. >>> >>> >>> greetings >>> Herbert >>> >>>>-----Urspr?ngliche Nachricht----- >>>>Von: Paul Ramsey [mailto:pramsey at cleverelephant.ca] >>>>Gesendet: Donnerstag, 11. September 2008 19:07 >>>>An: Sch?nhammer, Herbert >>>>Cc: Mapserver-users (mapserver-users at lists.osgeo.org) >>>>Betreff: Re: [mapserver-users] Oracle Spatial + MS 5.2.0: No >>>>drawing of certain objects >>>> >>>> >>>>Could you do a bit more legwork and see if the problem appears at the >>>>transition to 5.0 or the transition to 5.2? From there we >>can probably >>>>find the code change that caused it. >>>> >>>>P. >>>> >>>>On Wed, Sep 10, 2008 at 7:03 AM, Sch?nhammer, Herbert >>>> wrote: >>>>> Hi list, >>>>> >>>>> ( I had a similar discussion using Mapserver 4.10.x and >>>>Oracle Spatial 9i in >>>>> May 2007. But the problems changed using Mapserver 5.2.0 .). >>>>> >>>>> >>>>> The new environmet: >>>>> =============== >>>>> Server SLES10 >>>>> Mapserver 5.2.0 >>>>> Oracle OCI - Interface used with Oracle 11-Client-Software >>>>> >>>>> DB-Server Windows 2xxx >>>>> Oracle Spatial 10g >>>>> >>>>> >>>>> The new problem : >>>>> ============== >>>>> Line strings made up of a connected sequence of circular >>>>arcs ARE NOT DRAWN. >>>>> No error message is generated by mapserver, but the objects >>>>are not shown in >>>>> the map. >>>>> >>>>> Example: >>>>> INSERT INTO AX_BES_GEBLINIE (FID,GEOM) VALUES >>>>> >>>>(14196363,mdsys.sdo_geometry(2002,82032,null,mdsys.sdo_elem_inf >>>>o_array(1,2,2),mdsys.sdo_ordinate_array(4512474.1948,5426555.09 >>>>79,4512473.3318,5426554.2349,4512474.1948,5426553.3719,4512475. >>>>0578,5426554.2349,4512474.1948,5426555.0979))); >>>>> >>>>> (Background: >>>>> In my mailing from May 2007 I reported that these Objects are drawn >>>>> correctly by mapserver. This statement is indeed >>>>reproducable correct using >>>>> mapserver 4.10.x. This is independent from the used oracle >>>>version ( 9i or >>>>> 10g ). >>>>> Now, using mapserver 5.2.0 these objects are not drawn >>>>anymore. No error >>>>> message is produced. This is also independent from the used >>>>oracle version ( >>>>> 9i or 10g ). ) >>>>> >>>>> The old problem: >>>>> ============ >>>>> Polygons made up of a connected sequence of circular arcs >>>>ARE NOT DRAWN. No >>>>> error message is generated by mapserver, but the objects are >>>>not shown in >>>>> the map. >>>>> >>>>> (This problem was already reported in May 2007. The >>>>behaviour did not change >>>>> from mapserver 4.10.x to 5.2.0) >>>>> >>>>> Example: >>>>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>>>> >>>>(14079065,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>>>o_array(1,1003,2),mdsys.sdo_ordinate_array(4505553.2585,5430757 >>>>.2937,4505551.1659,5430755.2011,4505553.2585,5430753.1085,45055 >>>>55.3511,5430755.2011,4505553.2585,5430757.2937))); >>>>> >>>>> >>>>> Oracle Documentation: >>>>> ================= >>>>> Reading the Oracle Docs, I think all the objects are correct >>>>defined. The >>>>> geometries are validating by oracle 9i and oracle 10g (Using >>>>the st_valid - >>>>> method, e.g. SELECT a.GEOM.ST_IsValid() >>>>> FROM ax_bes_geblinie a WHERE a.fid = 14196363;). >>>>> >>>>> >>>>> >>>>> Does anybody know a solution how to draw these objects with >>>>mapserver ? >>>>> >>>>> greetings >>>>> Herbert >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>>> >>> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From crschmidt at metacarta.com Fri Sep 19 08:17:33 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Fri, 19 Sep 2008 11:17:33 -0400 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance In-Reply-To: <48D3C6920200005300040E40@stirling.iso.port.ac.uk> References: <48D3C6920200005300040E40@stirling.iso.port.ac.uk> Message-ID: <20080919151733.GA21903@metacarta.com> On Fri, Sep 19, 2008 at 03:34:42PM +0100, John Westwood wrote: > Hi Everybody, > > I am attaching a cut down version of my html, javascript and map files. On our server the EmbeddedMap.js lives in the OpenLayers directory and is used by gbhgis_openlayers.html. > > The test address http://148.197.8.119/gbhgis_openlayers.html . This is just a test server so please don't tell the whole World about it! :) > > There are four layers, 2 x raster (europe 1940s, WMS and MapServer) and 2 x vector / raster (Digital Chart of the World, WMS and MapServer) . Okay, so to cut OpenLayers out of the loop: http://148.197.8.119/cgi-bin/mapserv?map=/data/map-files/gbhgis.map&service=WMS&LAYERS=europe&FORMAT=image%2Fpng&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=epsg%3A3034&BBOX=2097152,2097152,4194304,4194304&WIDTH=256&HEIGHT=256 http://148.197.8.119/cgi-bin/mapserv?map=/data/map-files/gbhgis.map&layers=europe&format=image%2Fpng&mode=map&map_imagetype=png&mapext=2097152+2097152+4194304+4194304&imgext=2097152+2097152+4194304+4194304&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 The former is WMS, the latter is not-WMS. There is a very obvious speed difference between the two. The reason the MapServer image has its colors wrong, for the record, is because it is using 8bit pngs instead of 24 bit pngs. My first impression was that was the reason for the difference, but unfortunately, 8bit gifs don't seem to fare any better. Time for the URLs: MapServer: real 0m0.660s WMS: real 0m2.707s These may help someone who knows MapServer investigate more. Regards, -- Christopher Schmidt MetaCarta From Tim.Nolte at ipcswirelessinc.com Fri Sep 19 08:49:50 2008 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Fri, 19 Sep 2008 11:49:50 -0400 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviate poorperformance In-Reply-To: <20080919151733.GA21903@metacarta.com> References: <48D3C6920200005300040E40@stirling.iso.port.ac.uk> <20080919151733.GA21903@metacarta.com> Message-ID: Just a note about the performance differences between the two outputs. A 24bit png is always going to take longer to render than an 8bit. Obviously there is more detail in the 24bit thus it's going to take longer. If you want the same 24bit look with straight MapServer you need to make a change to your map file. You currently have set: MIMETYPE "image/png" change to MIMETYPE "image/png; mode=24bit" This will give you the same 24bit output between straight MapServer and WMS. You'll also be able to compare your speeds more accurately. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Christopher Schmidt Sent: Friday, September 19, 2008 11:18 AM To: John Westwood Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Using Fast CGI with MapServer to alleviate poorperformance On Fri, Sep 19, 2008 at 03:34:42PM +0100, John Westwood wrote: > Hi Everybody, > > I am attaching a cut down version of my html, javascript and map files. On our server the EmbeddedMap.js lives in the OpenLayers directory and is used by gbhgis_openlayers.html. > > The test address http://148.197.8.119/gbhgis_openlayers.html . This is just a test server so please don't tell the whole World about it! :) > > There are four layers, 2 x raster (europe 1940s, WMS and MapServer) and 2 x vector / raster (Digital Chart of the World, WMS and MapServer) . Okay, so to cut OpenLayers out of the loop: http://148.197.8.119/cgi-bin/mapserv?map=/data/map-files/gbhgis.map&serv ice=WMS&LAYERS=europe&FORMAT=image%2Fpng&VERSION=1.1.1&REQUEST=GetMap&ST YLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=epsg%3A3034&BBOX=2 097152,2097152,4194304,4194304&WIDTH=256&HEIGHT=256 http://148.197.8.119/cgi-bin/mapserv?map=/data/map-files/gbhgis.map&laye rs=europe&format=image%2Fpng&mode=map&map_imagetype=png&mapext=2097152+2 097152+4194304+4194304&imgext=2097152+2097152+4194304+4194304&map_size=2 56+256&imgx=128&imgy=128&imgxy=256+256 The former is WMS, the latter is not-WMS. There is a very obvious speed difference between the two. The reason the MapServer image has its colors wrong, for the record, is because it is using 8bit pngs instead of 24 bit pngs. My first impression was that was the reason for the difference, but unfortunately, 8bit gifs don't seem to fare any better. Time for the URLs: MapServer: real 0m0.660s WMS: real 0m2.707s These may help someone who knows MapServer investigate more. Regards, -- Christopher Schmidt MetaCarta _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From bfraser at geoanalytic.com Fri Sep 19 09:00:42 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 19 Sep 2008 10:00:42 -0600 Subject: [mapserver-users] GRID or not to GRID (USNG question) In-Reply-To: <48D2362D.163B.00A8.0@ci.stpaul.mn.us> References: <48CE9D20.163B.00A8.0@ci.stpaul.mn.us> <48D2797B.2070604@geoanalytic.com> <48D2362D.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <48D3CCAA.6030904@geoanalytic.com> Bob, I now get the username dialog when I try to turn on layers. I think you will be able to get some improvement with the GRID Layer's LABEL POSITION settings, but in the end it will not be perfect. To get a finer level of control over the GRID LABELs, we need to introduce some more map file objects. Here's some of my notes from March (the last time we talked about this) Need concept of margin so phantom lines in margin not labeled Labels should be gapped relative to margin/neatline, not extent of output graphic file - gap should be user-settable parameter Text placement must take into account non-90 deg map rotation (must include dx and dy of text box) So possible map file objects might be: MARGIN WIDTH: width specified in pixels (left, right, top, bottom?) SHAPE: PROJECTED, GEOGRAPHIC (follows curved graticule lines) TRANSPARENCY: 0 - 100 % TICS: length in pixels (left, right, top, bottom?) NEATLINE: thickness, style ANNO: GAP: in pixels from margin/neatline, or as mult of text size ORIENTATION: UP, PARALLEL LABEL: FORMAT: deg/min/sec symbols, linear units STYLE: sub/superscript (see USNG, or UTM labels on Canadian NTS sheets) TRUNCATE: full/partials others?... And I have no idea how polar projection map GRID labels would be spec'd out. That should get the creative juices flowing... Brent Bob Basques wrote: > Brent, > > Sorry about that, I really need to get a test box for outside posting of > things. :c) > > Here is a screenshot about what I'm talking about: > > > Basically I want to align the labels along the edges. I've tried a few > different things to fake it with some positive results, But nothing that > I can implement as a production piece because it needs some sort of > manual intervention in the final process. > > The entities are predefined lines as a SHP file that I'm labeling. Now > using the MapServer Grid Object I got this far: > > > But even this is not getting me to the final destination. There's not > much control on numbering and the process is fairly slow compared to > just labeling the lines. > > Any ideas? > > bobb > > > >> >> Brent Fraser wrote: > Bob, > > I get a Username/Password request dialog from the URL... > > Brent Fraser > > Bob Basques wrote: >> All, >> >> in the following interface: >> >> > http://gis.ci.stpaul.mn.us/gis/gismo_public/html/?mapbook=/datasets/CONFIGS/SAINT_PAUL/PUBLIC_WORKS/MAPBOOKS/TS/usng_1st.xml >> >> The last two layers in the "US National Grid Layers" folder show a layer >> with lines Easting and Northing, that I want to label. They label just >> fine, but I would like to align them along an edge of the view >> automatically, the ideal situation would be to have two labels on each >> end of the lines along the edges of the view. >> >> We've tried using the GRID object, even going so modifying the source >> for GRID, you can see an example in the third to last layer above, "USNG >> via MapServer GRID" (Wait for it, it's kinda slow right now) And just >> can't seem to get the output in any sort of usable result for printing. >> >> Question, anyone got any ideas about how to align those labels along the >> edges? >> >> Thanks >> >> bobb >> >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Bob.Basques at ci.stpaul.mn.us Fri Sep 19 09:11:58 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Fri, 19 Sep 2008 11:11:58 -0500 Subject: [mapserver-users] GRID or not to GRID (USNG question) In-Reply-To: <48D3CCAA.6030904@geoanalytic.com> References: <48CE9D20.163B.00A8.0@ci.stpaul.mn.us> <48D2797B.2070604@geoanalytic.com> <48D2362D.163B.00A8.0@ci.stpaul.mn.us><48D2362D.163B.00A8.0@ci.stpaul.mn.us> <48D3CCAA.6030904@geoanalytic.com> Message-ID: <48D388FE.163B.00A8.0@ci.stpaul.mn.us> Brent, OK, try the interface now. I really hate having to have all this security stuff in place. I think I may have written myself into a hole with setting up permissions all the way down to the layer level. :c) Anyway, I published the default layers as public now, so you should get any more Login window until you try to turn on one of the non-public layers. bobb >>> Brent Fraser wrote: Bob, I now get the username dialog when I try to turn on layers. I think you will be able to get some improvement with the GRID Layer's LABEL POSITION settings, but in the end it will not be perfect. To get a finer level of control over the GRID LABELs, we need to introduce some more map file objects. Here's some of my notes from March (the last time we talked about this) Need concept of margin so phantom lines in margin not labeled Labels should be gapped relative to margin/neatline, not extent of output graphic file - gap should be user-settable parameter Text placement must take into account non-90 deg map rotation (must include dx and dy of text box) So possible map file objects might be: MARGIN WIDTH: width specified in pixels (left, right, top, bottom?) SHAPE: PROJECTED, GEOGRAPHIC (follows curved graticule lines) TRANSPARENCY: 0 - 100 % TICS: length in pixels (left, right, top, bottom?) NEATLINE: thickness, style ANNO: GAP: in pixels from margin/neatline, or as mult of text size ORIENTATION: UP, PARALLEL LABEL: FORMAT: deg/min/sec symbols, linear units STYLE: sub/superscript (see USNG, or UTM labels on Canadian NTS sheets) TRUNCATE: full/partials others?... And I have no idea how polar projection map GRID labels would be spec'd out. That should get the creative juices flowing... Brent Bob Basques wrote: > Brent, > > Sorry about that, I really need to get a test box for outside posting of > things. :c) > > Here is a screenshot about what I'm talking about: > > > Basically I want to align the labels along the edges. I've tried a few > different things to fake it with some positive results, But nothing that > I can implement as a production piece because it needs some sort of > manual intervention in the final process. > > The entities are predefined lines as a SHP file that I'm labeling. Now > using the MapServer Grid Object I got this far: > > > But even this is not getting me to the final destination. There's not > much control on numbering and the process is fairly slow compared to > just labeling the lines. > > Any ideas? > > bobb > > > >> >> Brent Fraser wrote: > Bob, > > I get a Username/Password request dialog from the URL... > > Brent Fraser > > Bob Basques wrote: >> All, >> >> in the following interface: >> >> > http://gis.ci.stpaul.mn.us/gis/gismo_public/html/?mapbook=/datasets/CONFIGS/SAINT_PAUL/PUBLIC_WORKS/MAPBOOKS/TS/usng_1st.xml >> >> The last two layers in the "US National Grid Layers" folder show a layer >> with lines Easting and Northing, that I want to label. They label just >> fine, but I would like to align them along an edge of the view >> automatically, the ideal situation would be to have two labels on each >> end of the lines along the edges of the view. >> >> We've tried using the GRID object, even going so modifying the source >> for GRID, you can see an example in the third to last layer above, "USNG >> via MapServer GRID" (Wait for it, it's kinda slow right now) And just >> can't seem to get the output in any sort of usable result for printing. >> >> Question, anyone got any ideas about how to align those labels along the >> edges? >> >> Thanks >> >> bobb >> >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From woklist at kyngchaos.com Fri Sep 19 09:18:00 2008 From: woklist at kyngchaos.com (William Kyngesburye) Date: Fri, 19 Sep 2008 11:18:00 -0500 Subject: [mapserver-users] OSX binaries update Message-ID: <6FCED936-B4E0-403C-AEB2-41FF7684F7A5@kyngchaos.com> I finally figured out a longstanding problem with my OSX binaries - python mapscript wasn't working. The problem comes from FastCGI support for the mapserv CGI. When python tries to import mapscript, you get an error about libfcgi not finding the _environ symbol (from apache?). Since I build MapServer with a dynamic library (framework) I can't use a separate library for mapserv and mapscript. I tried moving cgi stuff from the library into mapserv, but I think CGI functions are needed elsewhere also, or I just didn't go far enough, and I couldn't get it to work. So, given this, and the recent discussion saying that fastcgi only provides a tiny performance gain, I removed fastcgi from my OSX binaries. (fastcgi is also a lot more complex to setup on OSX compared to standard CGI and the various mapscripts.) And python mapscript now works on OSX! ----- William Kyngesburye http://www.kyngchaos.com/ "I ache, therefore I am. Or in my case - I am, therefore I ache." - Marvin From guillaume.sueur at neogeo-online.net Fri Sep 19 09:19:05 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Fri, 19 Sep 2008 18:19:05 +0200 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance In-Reply-To: <20080919151733.GA21903@metacarta.com> References: <48D3C6920200005300040E40@stirling.iso.port.ac.uk> <20080919151733.GA21903@metacarta.com> Message-ID: <48D3D0F9.5040904@neogeo-online.net> I guess that wms makes a reprojection job as the request comes with an EPSG code and the map projection is set by a proj string. Even if they are equivalent, can MapServer know that and forget about reprojection ? The cgi is rather straight forward as no EPSG is required. As the layers don't have PROJECTION blocks, they are drawn straight forward. my 2 cents. Guillaume Christopher Schmidt a ?crit : > On Fri, Sep 19, 2008 at 03:34:42PM +0100, John Westwood wrote: >> Hi Everybody, >> >> I am attaching a cut down version of my html, javascript and map files. On our server the EmbeddedMap.js lives in the OpenLayers directory and is used by gbhgis_openlayers.html. >> >> The test address http://148.197.8.119/gbhgis_openlayers.html . This is just a test server so please don't tell the whole World about it! :) >> >> There are four layers, 2 x raster (europe 1940s, WMS and MapServer) and 2 x vector / raster (Digital Chart of the World, WMS and MapServer) . > > Okay, so to cut OpenLayers out of the loop: > > http://148.197.8.119/cgi-bin/mapserv?map=/data/map-files/gbhgis.map&service=WMS&LAYERS=europe&FORMAT=image%2Fpng&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=epsg%3A3034&BBOX=2097152,2097152,4194304,4194304&WIDTH=256&HEIGHT=256 > > http://148.197.8.119/cgi-bin/mapserv?map=/data/map-files/gbhgis.map&layers=europe&format=image%2Fpng&mode=map&map_imagetype=png&mapext=2097152+2097152+4194304+4194304&imgext=2097152+2097152+4194304+4194304&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 > > The former is WMS, the latter is not-WMS. > > There is a very obvious speed difference between the two. > > The reason the MapServer image has its colors wrong, for the record, is > because it is using 8bit pngs instead of 24 bit pngs. My first > impression was that was the reason for the difference, but > unfortunately, 8bit gifs don't seem to fare any better. > > Time for the URLs: > > MapServer: real 0m0.660s > WMS: real 0m2.707s > > These may help someone who knows MapServer investigate more. > > Regards, From Steve.Lime at dnr.state.mn.us Fri Sep 19 09:21:57 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 19 Sep 2008 11:21:57 -0500 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviatepoor performance In-Reply-To: <48D3D0F9.5040904@neogeo-online.net> References: <48D3C6920200005300040E40@stirling.iso.port.ac.uk> <20080919151733.GA21903@metacarta.com> <48D3D0F9.5040904@neogeo-online.net> Message-ID: <48D38B55.5157.008F.0@dnr.state.mn.us> This shouldn't be the case, there are tests in the main API code to test projections of the map against layers to avoid this. I suspect it's projection related though... Steve >>> On 9/19/2008 at 11:19 AM, in message <48D3D0F9.5040904 at neogeo-online.net>, Guillaume Sueur wrote: > I guess that wms makes a reprojection job as the request comes with an > EPSG code and the map projection is set by a proj string. Even if they > are equivalent, can MapServer know that and forget about reprojection ? > > The cgi is rather straight forward as no EPSG is required. As the layers > don't have PROJECTION blocks, they are drawn straight forward. > > my 2 cents. > > Guillaume > > Christopher Schmidt a ?crit : >> On Fri, Sep 19, 2008 at 03:34:42PM +0100, John Westwood wrote: >>> Hi Everybody, >>> >>> I am attaching a cut down version of my html, javascript and map files. On > our server the EmbeddedMap.js lives in the OpenLayers directory and is used > by gbhgis_openlayers.html. >>> >>> The test address http://148.197.8.119/gbhgis_openlayers.html . This is just > a test server so please don't tell the whole World about it! :) >>> >>> There are four layers, 2 x raster (europe 1940s, WMS and MapServer) and 2 x > vector / raster (Digital Chart of the World, WMS and MapServer) . >> >> Okay, so to cut OpenLayers out of the loop: >> >> > http://148.197.8.119/cgi-bin/mapserv?map=/data/map-files/gbhgis.map&service=WMS&L > AYERS=europe&FORMAT=image%2Fpng&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=ap > plication%2Fvnd.ogc.se_inimage&SRS=epsg%3A3034&BBOX=2097152,2097152,4194304,419 > 4304&WIDTH=256&HEIGHT=256 >> >> > http://148.197.8.119/cgi-bin/mapserv?map=/data/map-files/gbhgis.map&layers=europ > e&format=image%2Fpng&mode=map&map_imagetype=png&mapext=2097152+2097152+4194304+41 > 94304&imgext=2097152+2097152+4194304+4194304&map_size=256+256&imgx=128&imgy=128&im > gxy=256+256 >> >> The former is WMS, the latter is not-WMS. >> >> There is a very obvious speed difference between the two. >> >> The reason the MapServer image has its colors wrong, for the record, is >> because it is using 8bit pngs instead of 24 bit pngs. My first >> impression was that was the reason for the difference, but >> unfortunately, 8bit gifs don't seem to fare any better. >> >> Time for the URLs: >> >> MapServer: real 0m0.660s >> WMS: real 0m2.707s >> >> These may help someone who knows MapServer investigate more. >> >> Regards, > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From guillaume.sueur at neogeo-online.net Fri Sep 19 09:26:55 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Fri, 19 Sep 2008 18:26:55 +0200 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviatepoor performance In-Reply-To: <48D38B55.5157.008F.0@dnr.state.mn.us> References: <48D3C6920200005300040E40@stirling.iso.port.ac.uk> <20080919151733.GA21903@metacarta.com> <48D3D0F9.5040904@neogeo-online.net> <48D38B55.5157.008F.0@dnr.state.mn.us> Message-ID: <48D3D2CF.2050402@neogeo-online.net> doesn't mapserver have to scan the whole epsg file to find the matching epsg - proj pair ? Steve Lime a ?crit : > This shouldn't be the case, there are tests in the main API code to test > projections of the map > against layers to avoid this. I suspect it's projection related > though... > > Steve > >>>> On 9/19/2008 at 11:19 AM, in message > <48D3D0F9.5040904 at neogeo-online.net>, > Guillaume Sueur wrote: >> I guess that wms makes a reprojection job as the request comes with > an >> EPSG code and the map projection is set by a proj string. Even if > they >> are equivalent, can MapServer know that and forget about reprojection > ? >> The cgi is rather straight forward as no EPSG is required. As the > layers >> don't have PROJECTION blocks, they are drawn straight forward. >> >> my 2 cents. >> >> Guillaume >> >> Christopher Schmidt a ?crit : >>> On Fri, Sep 19, 2008 at 03:34:42PM +0100, John Westwood wrote: >>>> Hi Everybody, >>>> >>>> I am attaching a cut down version of my html, javascript and map > files. On >> our server the EmbeddedMap.js lives in the OpenLayers directory and > is used >> by gbhgis_openlayers.html. >>>> The test address http://148.197.8.119/gbhgis_openlayers.html . This > is just >> a test server so please don't tell the whole World about it! :) >>>> There are four layers, 2 x raster (europe 1940s, WMS and MapServer) > and 2 x >> vector / raster (Digital Chart of the World, WMS and MapServer) . >>> Okay, so to cut OpenLayers out of the loop: >>> >>> > http://148.197.8.119/cgi-bin/mapserv?map=/data/map-files/gbhgis.map&service=WMS&L > > AYERS=europe&FORMAT=image%2Fpng&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=ap > plication%2Fvnd.ogc.se_inimage&SRS=epsg%3A3034&BBOX=2097152,2097152,4194304,419 >> 4304&WIDTH=256&HEIGHT=256 >>> > http://148.197.8.119/cgi-bin/mapserv?map=/data/map-files/gbhgis.map&layers=europ > > e&format=image%2Fpng&mode=map&map_imagetype=png&mapext=2097152+2097152+4194304+41 > 94304&imgext=2097152+2097152+4194304+4194304&map_size=256+256&imgx=128&imgy=128&im >> gxy=256+256 >>> The former is WMS, the latter is not-WMS. >>> >>> There is a very obvious speed difference between the two. >>> >>> The reason the MapServer image has its colors wrong, for the record, > is >>> because it is using 8bit pngs instead of 24 bit pngs. My first >>> impression was that was the reason for the difference, but >>> unfortunately, 8bit gifs don't seem to fare any better. >>> >>> Time for the URLs: >>> >>> MapServer: real 0m0.660s >>> WMS: real 0m2.707s >>> >>> These may help someone who knows MapServer investigate more. >>> >>> Regards, >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Guillaume SUEUR G?rant Neogeo Technologies SARL 46 RUE MATABIAU 31000 TOULOUSE T?l : +33 6 74 91 95 20 http://www.neogeo-online.net From guillaume.sueur at neogeo-online.net Fri Sep 19 09:51:11 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Fri, 19 Sep 2008 18:51:11 +0200 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance In-Reply-To: <48D3C6920200005300040E40@stirling.iso.port.ac.uk> References: <48D3C6920200005300040E40@stirling.iso.port.ac.uk> Message-ID: <48D3D87F.6040904@neogeo-online.net> Hi John, Could you try to set your map projection with its EPSG code instead of the proj string, and see what happens ? Regards, Guillaume John Westwood a ?crit : > Hi Everybody, > > I am attaching a cut down version of my html, javascript and map files. On our server the EmbeddedMap.js lives in the OpenLayers directory and is used by gbhgis_openlayers.html. > > The test address http://148.197.8.119/gbhgis_openlayers.html . This is just a test server so please don't tell the whole World about it! :) > > There are four layers, 2 x raster (europe 1940s, WMS and MapServer) and 2 x vector / raster (Digital Chart of the World, WMS and MapServer) . > > A problem with using the OpenLayers.MapServer method is that the (1) The raster colours are messed up and (2) Anti-aliasing is not being done on the vector layers. I don't know why this is. > > Regards, > > John Westwood > > >>>> Stephen Woodbridge 18/09/08 9:08 PM >>> > John Westwood wrote: >> Hi Paul and other MapServer Gurus, >> >> I have discovered a huge speed increase by using OpenLayers.MapServer >> (native) layers instead of OpenLayers.WMS layers. It is about ten >> times faster, I do not exaggerate. Why is WMS so slow? I have read >> that MapServer is a fast WMS server, have I done something wrong for >> it not to be? >> >> What do you think could be the problem? > > You might want to check that you are comparing apples and apples. I > would expect WMS to be a little slower because there is some overhead to > query the server before actually making the image request. > > Do you have ratio set the same for both layers? > What versions of Mapserver and OpenLayers are you using? > > Can you post a URL that has the two layers present in the layer switch > so we can look at the requests and how your have it configured? Or post > the HTML so we can look at. In fact you might want to post the HTML to > the openlayers list and as the question there first, to make sure you > have equivalent requests between WNS and Mapserver. > > -Steve W > >> I will give it some thought tomorrow. >> >> John >> >> >> >> >>>>> "Paul Ramsey" 17/09/08 5:15 PM >>> >> John, >> >> The idea that CGI is naturally a much slower situation than a >> long-running process is a bit of a red herring in the case of >> Mapserver, and I say that as someone who is anal retentive about >> these things. Unless your Mapserver installation has some naturally >> latent components (database connections, primarily) you'll find that >> moving from CGI to FastCGI is worth about 15ms per request. >> >> On Wed, Sep 17, 2008 at 8:40 AM, John Westwood >> wrote: >> >>> The reason I am trying to get MapServer to work with fast_cgi is >>> because I am experiencing poor performance with OpenLayers. I >>> believe that OpenLayers starts a new MapServer instance for each >>> tile request, thus causing an unnecessary overhead. Am I correct? >> Yes and no. If you are experiencing noticeably poor performance (you >> can actually *see* it being slow) the only place that the CGI >> overhead could be the cause is if you're connecting to Oracle or SDE >> for some of your layers. If that's not the case, look elsewhere >> first, the very small gains you will receive from moving to FastCGI >> will not change your underlying problem. >> >> Paul >> >> _______________________________________________ mapserver-users >> mailing list mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > ------------------------------------------------------------------------ > > > Map Information > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users - From woodbri at swoodbridge.com Fri Sep 19 10:52:39 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 19 Sep 2008 12:52:39 -0500 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviatepoor performance In-Reply-To: <48D3D2CF.2050402@neogeo-online.net> References: <48D3C6920200005300040E40@stirling.iso.port.ac.uk> <20080919151733.GA21903@metacarta.com> <48D3D0F9.5040904@neogeo-online.net> <48D38B55.5157.008F.0@dnr.state.mn.us> <48D3D2CF.2050402@neogeo-online.net> Message-ID: <48D3E6E7.3020701@swoodbridge.com> Has anyone thought of using SQLite internally in mapserver for say storing the EPSG file in an indexed table for faster access. We could have a utility that would read the epsg text file and create the table for maintenance purposes. SQLite has some other interesting possibilities if you combine it with SpatiaLite which has most all of PostGIS support so you could have the OpenSource Equivalent GeoDatabase, but that probably another thread. -Steve W Guillaume Sueur wrote: > doesn't mapserver have to scan the whole epsg file to find the matching > epsg - proj pair ? > > Steve Lime a ?crit : >> This shouldn't be the case, there are tests in the main API code to test >> projections of the map >> against layers to avoid this. I suspect it's projection related >> though... >> >> Steve >> >>>>> On 9/19/2008 at 11:19 AM, in message >> <48D3D0F9.5040904 at neogeo-online.net>, >> Guillaume Sueur wrote: >>> I guess that wms makes a reprojection job as the request comes with >> an >>> EPSG code and the map projection is set by a proj string. Even if >> they >>> are equivalent, can MapServer know that and forget about reprojection >> ? >>> The cgi is rather straight forward as no EPSG is required. As the >> layers >>> don't have PROJECTION blocks, they are drawn straight forward. >>> >>> my 2 cents. >>> >>> Guillaume >>> >>> Christopher Schmidt a ?crit : >>>> On Fri, Sep 19, 2008 at 03:34:42PM +0100, John Westwood wrote: >>>>> Hi Everybody, >>>>> >>>>> I am attaching a cut down version of my html, javascript and map >> files. On >>> our server the EmbeddedMap.js lives in the OpenLayers directory and >> is used >>> by gbhgis_openlayers.html. >>>>> The test address http://148.197.8.119/gbhgis_openlayers.html . This >> is just >>> a test server so please don't tell the whole World about it! :) >>>>> There are four layers, 2 x raster (europe 1940s, WMS and MapServer) >> and 2 x >>> vector / raster (Digital Chart of the World, WMS and MapServer) . >>>> Okay, so to cut OpenLayers out of the loop: >>>> >>>> >> http://148.197.8.119/cgi-bin/mapserv?map=/data/map-files/gbhgis.map&service=WMS&L >> >> AYERS=europe&FORMAT=image%2Fpng&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=ap >> plication%2Fvnd.ogc.se_inimage&SRS=epsg%3A3034&BBOX=2097152,2097152,4194304,419 >>> 4304&WIDTH=256&HEIGHT=256 >> http://148.197.8.119/cgi-bin/mapserv?map=/data/map-files/gbhgis.map&layers=europ >> >> e&format=image%2Fpng&mode=map&map_imagetype=png&mapext=2097152+2097152+4194304+41 >> 94304&imgext=2097152+2097152+4194304+4194304&map_size=256+256&imgx=128&imgy=128&im >>> gxy=256+256 >>>> The former is WMS, the latter is not-WMS. >>>> >>>> There is a very obvious speed difference between the two. >>>> >>>> The reason the MapServer image has its colors wrong, for the record, >> is >>>> because it is using 8bit pngs instead of 24 bit pngs. My first >>>> impression was that was the reason for the difference, but >>>> unfortunately, 8bit gifs don't seem to fare any better. >>>> >>>> Time for the URLs: >>>> >>>> MapServer: real 0m0.660s >>>> WMS: real 0m2.707s >>>> >>>> These may help someone who knows MapServer investigate more. >>>> >>>> Regards, >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From John.Westwood at port.ac.uk Fri Sep 19 11:12:40 2008 From: John.Westwood at port.ac.uk (John Westwood) Date: Fri, 19 Sep 2008 19:12:40 +0100 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviate poorperformance Message-ID: <48D3F9A80200005300040E96@stirling.iso.port.ac.uk> Hi Tim, Thanks, that would be why the anti-aliasing isn't working either. I need 24 bit because the AGG library does not anti-alias with 8 bit. I hope its not the 24 bit that is making it so slow. I will test it tomorrow. John >>> "Nolte, Tim" 19/09/08 4:51 PM >>> Just a note about the performance differences between the two outputs. A 24bit png is always going to take longer to render than an 8bit. Obviously there is more detail in the 24bit thus it's going to take longer. If you want the same 24bit look with straight MapServer you need to make a change to your map file. You currently have set: MIMETYPE "image/png" change to MIMETYPE "image/png; mode=24bit" This will give you the same 24bit output between straight MapServer and WMS. You'll also be able to compare your speeds more accurately. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Christopher Schmidt Sent: Friday, September 19, 2008 11:18 AM To: John Westwood Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Using Fast CGI with MapServer to alleviate poorperformance On Fri, Sep 19, 2008 at 03:34:42PM +0100, John Westwood wrote: > Hi Everybody, > > I am attaching a cut down version of my html, javascript and map files. On our server the EmbeddedMap.js lives in the OpenLayers directory and is used by gbhgis_openlayers.html. > > The test address http://148.197.8.119/gbhgis_openlayers.html . This is just a test server so please don't tell the whole World about it! :) > > There are four layers, 2 x raster (europe 1940s, WMS and MapServer) and 2 x vector / raster (Digital Chart of the World, WMS and MapServer) . Okay, so to cut OpenLayers out of the loop: http://148.197.8.119/cgi-bin/mapserv?map=/data/map-files/gbhgis.map&serv ice=WMS&LAYERS=europe&FORMAT=image%2Fpng&VERSION=1.1.1&REQUEST=GetMap&ST YLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=epsg%3A3034&BBOX=2 097152,2097152,4194304,4194304&WIDTH=256&HEIGHT=256 http://148.197.8.119/cgi-bin/mapserv?map=/data/map-files/gbhgis.map&laye rs=europe&format=image%2Fpng&mode=map&map_imagetype=png&mapext=2097152+2 097152+4194304+4194304&imgext=2097152+2097152+4194304+4194304&map_size=2 56+256&imgx=128&imgy=128&imgxy=256+256 The former is WMS, the latter is not-WMS. There is a very obvious speed difference between the two. The reason the MapServer image has its colors wrong, for the record, is because it is using 8bit pngs instead of 24 bit pngs. My first impression was that was the reason for the difference, but unfortunately, 8bit gifs don't seem to fare any better. Time for the URLs: MapServer: real 0m0.660s WMS: real 0m2.707s These may help someone who knows MapServer investigate more. Regards, -- Christopher Schmidt MetaCarta _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jeff at planyukon.ca Fri Sep 19 13:38:10 2008 From: jeff at planyukon.ca (Jeff Hamm) Date: Fri, 19 Sep 2008 13:38:10 -0700 Subject: [mapserver-users] Metadata Hashtable Message-ID: <48D40DB2.3080103@planyukon.ca> Mapserver Bugzilla seems to indicate that exposing metadata as a proper object is possible (Tickets #734 and #737). I also want to print out all of the metadata key->value pairs for a map layer using php-mapscript without explicitly naming them all. Can anyone share a code snippet for this? TIA Jeff Hamm From crschmidt at metacarta.com Fri Sep 19 15:46:21 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Fri, 19 Sep 2008 18:46:21 -0400 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviate poorperformance In-Reply-To: References: <48D3C6920200005300040E40@stirling.iso.port.ac.uk> <20080919151733.GA21903@metacarta.com> Message-ID: <20080919224621.GA7177@metacarta.com> On Fri, Sep 19, 2008 at 11:49:50AM -0400, Nolte, Tim wrote: > Just a note about the performance differences between the two outputs. A > 24bit png is always going to take longer to render than an 8bit. but as I said in my email, this is unrelated: even a gif (8bit maximum) is taking approximately the same amount of time to render. > Obviously there is more detail in the 24bit thus it's going to take > longer. If you want the same 24bit look with straight MapServer you need > to make a change to your map file. You currently have set: > > MIMETYPE "image/png" > > change to > > MIMETYPE "image/png; mode=24bit" > > This will give you the same 24bit output between straight MapServer and > WMS. You'll also be able to compare your speeds more accurately. > > - Tim > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Christopher Schmidt > Sent: Friday, September 19, 2008 11:18 AM > To: John Westwood > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Using Fast CGI with MapServer to > alleviate poorperformance > > On Fri, Sep 19, 2008 at 03:34:42PM +0100, John Westwood wrote: > > Hi Everybody, > > > > I am attaching a cut down version of my html, javascript and map > files. On our server the EmbeddedMap.js lives in the OpenLayers > directory and is used by gbhgis_openlayers.html. > > > > The test address http://148.197.8.119/gbhgis_openlayers.html . This is > just a test server so please don't tell the whole World about it! :) > > > > There are four layers, 2 x raster (europe 1940s, WMS and MapServer) > and 2 x vector / raster (Digital Chart of the World, WMS and MapServer) > . > > Okay, so to cut OpenLayers out of the loop: > > http://148.197.8.119/cgi-bin/mapserv?map=/data/map-files/gbhgis.map&serv > ice=WMS&LAYERS=europe&FORMAT=image%2Fpng&VERSION=1.1.1&REQUEST=GetMap&ST > YLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=epsg%3A3034&BBOX=2 > 097152,2097152,4194304,4194304&WIDTH=256&HEIGHT=256 > > http://148.197.8.119/cgi-bin/mapserv?map=/data/map-files/gbhgis.map&laye > rs=europe&format=image%2Fpng&mode=map&map_imagetype=png&mapext=2097152+2 > 097152+4194304+4194304&imgext=2097152+2097152+4194304+4194304&map_size=2 > 56+256&imgx=128&imgy=128&imgxy=256+256 > > The former is WMS, the latter is not-WMS. > > There is a very obvious speed difference between the two. > > The reason the MapServer image has its colors wrong, for the record, is > because it is using 8bit pngs instead of 24 bit pngs. My first > impression was that was the reason for the difference, but > unfortunately, 8bit gifs don't seem to fare any better. > > Time for the URLs: > > MapServer: real 0m0.660s > WMS: real 0m2.707s > > These may help someone who knows MapServer investigate more. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Christopher Schmidt MetaCarta From Steve.Lime at dnr.state.mn.us Fri Sep 19 22:04:36 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Sat, 20 Sep 2008 00:04:36 -0500 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviatepoorperformance Message-ID: <48D43E140200008F0001BCAB@co5.dnr.state.mn.us> I setup a test case here tonite (albeit a simple one rendering) a tiff image with 24bit output (no AGG). The CGI performed marginally (hundreths of a second) faster than the WMS calls. I guess this is what I would have expected given the WMS process has a bit more up front overhead. I think to really get to the bottom of this we'd need sample data and mapfile(s). Steve >>> Christopher Schmidt 09/19/08 5:47 PM >>> On Fri, Sep 19, 2008 at 11:49:50AM -0400, Nolte, Tim wrote: > Just a note about the performance differences between the two outputs. A > 24bit png is always going to take longer to render than an 8bit. but as I said in my email, this is unrelated: even a gif (8bit maximum) is taking approximately the same amount of time to render. > Obviously there is more detail in the 24bit thus it's going to take > longer. If you want the same 24bit look with straight MapServer you need > to make a change to your map file. You currently have set: > > MIMETYPE "image/png" > > change to > > MIMETYPE "image/png; mode=24bit" > > This will give you the same 24bit output between straight MapServer and > WMS. You'll also be able to compare your speeds more accurately. > > - Tim > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Christopher Schmidt > Sent: Friday, September 19, 2008 11:18 AM > To: John Westwood > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Using Fast CGI with MapServer to > alleviate poorperformance > > On Fri, Sep 19, 2008 at 03:34:42PM +0100, John Westwood wrote: > > Hi Everybody, > > > > I am attaching a cut down version of my html, javascript and map > files. On our server the EmbeddedMap.js lives in the OpenLayers > directory and is used by gbhgis_openlayers.html. > > > > The test address http://148.197.8.119/gbhgis_openlayers.html . This is > just a test server so please don't tell the whole World about it! :) > > > > There are four layers, 2 x raster (europe 1940s, WMS and MapServer) > and 2 x vector / raster (Digital Chart of the World, WMS and MapServer) > . > > Okay, so to cut OpenLayers out of the loop: > > http://148.197.8.119/cgi-bin/mapserv?map=/data/map-files/gbhgis.map&serv > ice=WMS&LAYERS=europe&FORMAT=image%2Fpng&VERSION=1.1.1&REQUEST=GetMap&ST > YLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=epsg%3A3034&BBOX=2 > 097152,2097152,4194304,4194304&WIDTH=256&HEIGHT=256 > > http://148.197.8.119/cgi-bin/mapserv?map=/data/map-files/gbhgis.map&laye > rs=europe&format=image%2Fpng&mode=map&map_imagetype=png&mapext=2097152+2 > 097152+4194304+4194304&imgext=2097152+2097152+4194304+4194304&map_size=2 > 56+256&imgx=128&imgy=128&imgxy=256+256 > > The former is WMS, the latter is not-WMS. > > There is a very obvious speed difference between the two. > > The reason the MapServer image has its colors wrong, for the record, is > because it is using 8bit pngs instead of 24 bit pngs. My first > impression was that was the reason for the difference, but > unfortunately, 8bit gifs don't seem to fare any better. > > Time for the URLs: > > MapServer: real 0m0.660s > WMS: real 0m2.707s > > These may help someone who knows MapServer investigate more. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Christopher Schmidt MetaCarta _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From james.perrins at gmail.com Sat Sep 20 00:39:07 2008 From: james.perrins at gmail.com (James Perrins) Date: Sat, 20 Sep 2008 08:39:07 +0100 Subject: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance In-Reply-To: <48D1330B.FEDC.0053.0@port.ac.uk> References: <48D1330B.FEDC.0053.0@port.ac.uk> Message-ID: A couple of issues / tips we have found in this sort of scenario. 1) Edit your epsg file to contain only the projections you want - this can make a big difference - presumably because its doind a slow string search each time 2) If using OpenLayers (or google maps etc) - the tiling sends multiple requests to the WMS server. If you are using IE in particular - this restricts you to 2 concurent threads to any one server - mean9ing that your (say) 16 tile requests can only be processed 2 at a time. Firefox has a similar restriction by default - but you can override it. You can see this at work using Firefox with a tool like firebug. We foun it was much much quicker if you can change yout application to request a single WMS tile for the whol map rather than individual 256x256 tiles. Obviously this may have implications if you were trying to cache tiles etc - but if not its massively quicker HTH James On Wed, Sep 17, 2008 at 4:40 PM, John Westwood wrote: > Hi, > > I am trying to use fast_cgi with MapServer, specifically mod_fcgid on SLES 10.2. > > I have mod_fcgid correctly set up within Apache because it works with another FCGI application (IIPImage). > > I have successfully compiled MapServer 5.2 with fast_cgi support. I used this page to help me: > http://mapserver.gis.umn.edu/docs/howto/fastcgi > > However, when I try to use MapServer with mod_fcgid I receive the following error: > > The server encountered an internal error and was unable to complete your request > Error message: Premature end of script headers: mapserv > > I am really lost as to what the problem could be; the non fast_cgi version of MapServer that I compiled worked fine. Perhaps it is something to do with setting the LD_LIBRARY_PATH in the mod_fcgid.conf file? > > At the moment I have it set as follows: > > DefaultInitEnv LD_LIBRARY_PATH "/usr/lib:/usr/local/lib:/usr/lib/postgresql" > > > The reason I am trying to get MapServer to work with fast_cgi is because I am experiencing poor performance with OpenLayers. I believe that OpenLayers starts a new MapServer instance for each tile request, thus causing an unnecessary overhead. Am I correct? > > I will also be using Tilecache, but my experiments have also found this to be slow. It is currently set up to use mod_python. The hardware we are running on is a dual quad core (eight cores in total) Xeon . So it shouldn't be slow! > > I would greatly appreciate any help on getting MapServer to work with fast_cgi . I would also welcome any comments regarding performance issues with OpenLayers / MapServer / Tilecache . > > Thanks very much, > > John Westwood > > Great Britain Historical GIS Project > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Dr James Perrins exeGesIS SDM Ltd Great House Barn New Street, Talgarth Powys LD3 0AH. Direct Line: 01646 686650 Tel: 01874 711145 Fax: 01874 711156 Email: JamesP at esdm.co.uk This E-mail and any files transmitted with it are private and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, the E-mail and any files have been transmitted to you in error and any copying, distribution or other use of the information contained in them is strictly prohibited. Nothing in this E-mail message amounts to a contractual or other legal commitment on the part of exeGesIS SDM Ltd unless confirmed by a signed communication. exeGesIS SDM Ltd will make every effort to keep its network free of viruses. However, the recipient of this message will need to scan this message, and any attachments, for viruses, as exeGesIS SDM Ltd can take no responsibility for any computer virus that might be transferred by this e-mail. From John.Westwood at port.ac.uk Sat Sep 20 06:06:36 2008 From: John.Westwood at port.ac.uk (John Westwood) Date: Sat, 20 Sep 2008 14:06:36 +0100 Subject: [mapserver-users] Using Fast CGI with MapServer toalleviatepoorperformance [SOLVED] Message-ID: <48D5036C0200005300040F05@stirling.iso.port.ac.uk> Hi Everybody, Thanks to all your suggestions, I have solved the performance problem. It was a combination of two things: rendering in 24bit and MapServer reprojecting on the fly when I didn't want it to. I modified my OUTPUTFORMAT block to be: OUTPUTFORMAT NAME "png" DRIVER AGG/PNG IMAGEMODE RGB MIMETYPE "image/png" EXTENSION "png" FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_DITHER=OFF" FORMATOPTION "QUANTIZE_COLORS=256" END I tested the time taken for the Quantize method for WMS and MapServer layers at a specific test location: QUANTIZE NO QUANTIZE GD/PNG PC256 WMS 17.44s 28.93s 17.10s MapServer 10.55s 26.41s 8.91s GD/PNG PC256 is the fastest, but this gives incorrect colours. Next, i changed the projection string to the epsg code (as suggested by Guillaume): PROJECTION "init=epsg:3034" END QUANTIZE, with epsg code WMS ~10.5s MapServer ~10.5s The ironic thing is that I used the projection string instead of the epsg code so I could avoid the lookup so it would be faster! I do not understand why MapServer does an unnecessary reprojection with OpenLayers.WMS and the projection string; shouldn't it be able to determine that the projection string is the same as the epsg number? I guess, that would probably involve a lookup, thus rendering the use of the projection string in place of the epsg code ineffectual. Thanks again for all the help, it would have taken me much longer to solve the problem on my own! Regards John Westwood Great Britain Historical GIS Project From dfuhry at acm.org Sat Sep 20 11:35:50 2008 From: dfuhry at acm.org (David Fuhry) Date: Sat, 20 Sep 2008 14:35:50 -0400 Subject: [mapserver-users] Re: [mapserver-dev] AGG/PNG && QUANTIZE_FORCE && --with-experimental-png => bad IE6 rendering In-Reply-To: <48D272CB.20003@acm.org> References: <48D272CB.20003@acm.org> Message-ID: <48D54286.6070308@acm.org> (Apologies for cross-posting. There is no mapserver bug here, only a browser limitation workaround which might be helpful to some users.) Mapserver's AGG/PNG driver w/ QUANTIZE_FORCE=ON and TRANSPARENT ON generates an 8-bit PNG with per-palette-entry alpha transparency. If you use a transparent background, you'll face a problem: IE6- (incorrectly) only renders pixels with a very high opacity. The attached script rewrites an 8-bit PNG's tRNS header, making all non-completely-transparent pixels opaque. (It is easy to modify this to use a threshold > 0.) The attached script, reimplemented at the tilecache level if the requesting User-Agent matches /MSIE (5\.5|6)/, worked well for me because: 1. Mapserver always renders AGG/PNG. No need to special-case GD/PNG to get transparent images for IE6-. No need to cache duplicate images. 2. Avoids having to use the IE 5.5/6 PNG alpha-transparency hack, which decimates performance [1]. Hope someone else might find this useful too. -Dave [1] http://trac.openlayers.org/ticket/77#comment:2 David Fuhry wrote: > I generated the attached tile.png with AGG/PNG and QUANTIZE_FORCE=ON, > using a --with-experimental-png build of mapserver (to get PNG-8 > transparency). It's an 8-bit PNG image with a transparent background. > The image looks great in every browser except IE6, which only renders > certain pieces of lines (see other attached image). Is this a known > problem? > > I've tried INTERLACE=OFF with no success. Changing the driver to GD/PNG > works, but of course I don't get the AGG smoothness. There is no > AGG/GIF driver yet, so that's not an option. And finally, a 24-bit PNG > is not an option since IE<7 doesn't support alpha transparency. > > I'm now beginning to wonder if the misrendering is due to alpha > transparency (not supported by IE6-) on the 8-bit image. I didn't think > that 8-bit PNGs supported alpha transparency (GIFs don't) but according > to this article: > http://www.sitepoint.com/blogs/2007/09/18/png8-the-clear-winner/ indexed > PNGs can store alpha channel values for one *or more* palette entries. > If this is the case, then a welcome FORMATOPTION might be > QUANTIZE_ROUND_TRANSPARENCY which would round palette entries' > transparency up to 100 or down to 0. Hmmm... but then (since there's no > background color) AGG smoothness would be lost, and one might as well > use GD/PNG, so maybe not. > > I'll look into the IE htc (css behavior: ...) hack as a possible > solution. Better suggestions appreciated. > > Thanks, > > Dave Fuhry > > OUTPUTFORMAT > NAME "AGG_PNG8" > DRIVER AGG/PNG > IMAGEMODE RGB > FORMATOPTION "QUANTIZE_FORCE=ON" > FORMATOPTION "QUANTIZE_COLORS=256" > FORMATOPTION "INTERLACE=OFF" > TRANSPARENT ON > END > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev -------------- next part -------------- A non-text attachment was scrubbed... Name: palette.py Type: text/x-python Size: 2479 bytes Desc: not available URL: From guillaume.sueur at neogeo-online.net Sun Sep 21 01:05:52 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Sun, 21 Sep 2008 10:05:52 +0200 Subject: [mapserver-users] Using Fast CGI with MapServer toalleviatepoorperformance [SOLVED] In-Reply-To: <48D5036C0200005300040F05@stirling.iso.port.ac.uk> References: <48D5036C0200005300040F05@stirling.iso.port.ac.uk> Message-ID: <48D60060.8020803@neogeo-online.net> Hi John, Interesting results indeed ! > > > The ironic thing is that I used the projection string instead of the epsg code so I could avoid the lookup so it would be faster! I do not understand why MapServer does an unnecessary reprojection with OpenLayers.WMS and the projection string; shouldn't it be able to determine that the projection string is the same as the epsg number? I guess, that would probably involve a lookup, thus rendering the use of the projection string in place of the epsg code ineffectual. > For the reprojection thing, I don't think there is a perfect solution. As WMS uses EPSG codes, mapserver would have to scan the whole epsg file on each projection definition to find the matching epsg-proj pair, and it could take a long time, much longer than simply scanning the epsg file to find the proj string for a specific epsg code. I think the best solution for you is to use a custom epsg file with only the definitions you need in it, and keep using epsg codes in your mapfile, which ensures full compatibility with WMS usage. > Thanks again for all the help, it would have taken me much longer to solve the problem on my own! Your welcome. It's always interesting to face such problems and discover the bottlenecks. This is helpful for all of us. Best regards, Guillaume > > Regards > > John Westwood > > Great Britain Historical GIS Project > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From drewtimmins at gmail.com Sun Sep 21 14:41:41 2008 From: drewtimmins at gmail.com (Andrew Timmins) Date: Sun, 21 Sep 2008 17:41:41 -0400 Subject: [mapserver-users] C# mapscript & PostGIS Message-ID: Hello, I am having an issue connecting to PostGIS using the C# mapscript. Initially my Data was defined in my map file like below: DATA 'the_geom FROM towns ' When it I change it to look like: DATA 'the_geom FROM towns *USING UNIQUE gid USING SRID=-1*' it works This is not the case when using PHP mapscript though. Can anyone tell me if I can fix this incompatibility? Thanks, Drew -------------- next part -------------- An HTML attachment was scrubbed... URL: From Schoenhammer.Herbert at Regensburg.de Mon Sep 22 00:41:40 2008 From: Schoenhammer.Herbert at Regensburg.de (=?iso-8859-1?Q?Sch=F6nhammer=2C_Herbert?=) Date: Mon, 22 Sep 2008 09:41:40 +0200 Subject: AW: [mapserver-users] Oracle Spatial + MS 5.2.0: No drawing of certain objects Message-ID: Hallo Paul, using this patch, mapserver is not ignoring those polygons anymore (polygons, which exists ONLY of a connected sequence of circular arcs that closes on itself). But instead of rendering those polygons, I get know an error message: msDrawMap(): Image handling error. Failed to draw layer named 'stgk_gebaeude_orcl'. msDrawShape(): General error message. Only polygon shapes can be drawn using a POLYGON layer definition. The first step for rendering those polgons is done: Mapserver recognizes the polygons ! Can I do anything else ? Greetings Herbert "polygons, which exists ONLY of >a connected sequence of circular arcs that closes on itself >-----Urspr?ngliche Nachricht----- >Von: Paul Ramsey [mailto:pramsey at cleverelephant.ca] >Gesendet: Freitag, 19. September 2008 16:40 >An: Sch?nhammer, Herbert >Cc: Mapserver-users (mapserver-users at lists.osgeo.org) >Betreff: Re: [mapserver-users] Oracle Spatial + MS 5.2.0: No >drawing of certain objects > > >Try the following completely untested patch: > >Index: maporaclespatial.c >=================================================================== >--- maporaclespatial.c (revision 7827) >+++ maporaclespatial.c (working copy) >@@ -1476,6 +1476,9 @@ > case 31: /* simple polygon with n points, last >point equals the first one */ > osClosedPolygon(hand, shape, obj, ord_start, >ord_end, points, elem_type, data3d); > break; >+ case 32: /* simple polygon with only arcs >for bounds */ >+ osArcPolygon(hand, shape, obj, ord_start, >ord_end, points, data3d); >+ break; > case 33: /* rectangle defined by 2 points */ > osRectangle(hand, shape, obj, ord_start, >ord_end, points, point5, data3d); > break; > > > > >On Fri, Sep 19, 2008 at 3:20 AM, Sch?nhammer, Herbert > wrote: >> Hallo Paul, >> >> 1.) Yes, there is no difference in behavior between the old >and new mapserver versions. >> >> 2.) Yes and No. In detail: >> >> 2a) If there is at most ONE straight line in the polygon, >mapserver renders this polygon correct, even if there is a >curved segement (arc) in the polygon. For example this is a >church, which contains three arcs in the polygon (triple >11,2,2 and 31,2,2 and 51,2,2). This polygon is rendered correct. >> >> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >(14080503,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >o_array(1,1005,7,1,2,1,11,2,2,15,2,1,31,2,2,35,2,1,51,2,2,55,2, >1),mdsys.sdo_ordinate_array(4506867.81,5430890.76,4506872.05,54 >30889.72,4506881.01,5430887.51,4506881.58,5430889.82,4506883.14 >,5430896.16,4506937.22,5430883.9,4506941.09222415,5430884.75129 >585,4506943.86,5430887.59,4506948.31,5430886.72,4506947.53,5430 >882.98,4506950.45,5430882.37,4506950.02,5430880.3,4506955.17,54 >30879.23,4506955.58,5430881.2,4506958.35,5430880.62,4506959.21, >5430884.73,4506961.57385865,5430886.53782314,4506960.13,5430889 >.14,4506960.94,5430893,4506957.92,5430893.63,4506958.4,5430896. >12,4506953.2,5430897.12,4506952.74,5430894.72,4506950.1,5430895 >.27,4506949.23,5430891.12,4506944.73,5430892,4506942.9045371,54 >30896.27675424,4506939.38,5430899.31,4506893.36,5430909.55,4506 >886.79,5430911.01,4506888.96,5430919.81,4506882.98,5430921.28,4 >506874.83,5430923.28,4506874.09,5430920.3,4506872.55,5430914.03 >,4506866.92,5430915.42,4506864.74,5430915.95,4506861.35,5430902 >.17,4506870.09,5430900.02,4506867.81,5430890.76))); >> >> 2b) Mapserver does not render polygons, which exists ONLY of >a connected sequence of circular arcs that closes on itself. >(Examples below). >> >> Greetings >> Herbert >> >>>-----Urspr?ngliche Nachricht----- >>>Von: Paul Ramsey [mailto:pramsey at cleverelephant.ca] >>>Gesendet: Donnerstag, 18. September 2008 16:35 >>>An: Sch?nhammer, Herbert >>>Betreff: Re: [mapserver-users] Oracle Spatial + MS 5.2.0: No >>>drawing of certain objects >>> >>> >>>So, to confirm, there is now no difference in behavior between your >>>old and new mapserver installations? >>> >>>However, the old and new installations share an inability to render >>>polygons that include curved boundaries? >>> >>>P. >>> >>>On Thu, Sep 18, 2008 at 3:14 AM, Sch?nhammer, Herbert >>> wrote: >>>> Hallo Paul, >>>> >>>> (I needed some time because new hardware, ...) >>>> >>>> Okay: First of all: >>>> >>>> The reported NEW DIFFICULTIES are not reproducable any more. >>>I really don't know what happened. But LINESTRINGS made up of >>>a connected sequence of circular arcs ARE DRAWN by mapserver. >>>> >>>> The old problem still exists. >>>> ============================= >>>> POLYGONS made up of a connected sequence of circular arcs >>>ARE NOT DRAWN by mapserver. No error message. >>>> >>>> I have made a config error in my mapfile. So I could get an >>>error message from mapserver. In this error message the >>>SQL-statement sent to the oracle database is: >>>> >>>> SELECT fid, geom FROM AX_GEBAEUDE WHERE SDO_FILTER( geom, >>>MDSYS.SDO_GEOMETRY(2003, 82032, >>>NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARR >>>AY(4505602.25,5430841.31,4505622.97,5430856.39) >>>),'querytype=window') = 'TRUE' >>>> >>>> When i submit this SQL direct to the databse I get 4 >geometries back. >>>> Two POLYGONS made up of straight line segements. >>>> Two POLYGONS made up of a connected sequence of circular arcs. >>>> >>>> The polygons with straight line segments are drawn, the >>>polygons made up of a connected sequence of circular arcs are >>>not drawn. >>>> >>>> I have exported these objects from my database: >>>> >>>> The drawn polygons are: >>>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>>(14079074,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>>o_array(1,1003,1),mdsys.sdo_ordinate_array(4505658.59,5430772.1 >>>7,4505643.27,5430803.04,4505634.39,5430798.05,4505625.41,543081 >>>4,4505619.34,5430810.5898,4505607.9,5430830.95,4505607.4,543083 >>>0.7,4505600.29,5430845.02,4505511.2,5430801.08,4505534.42,54307 >>>54.01,4505552.34,5430762.86,4505569.51,5430728.08,4505658.59,54 >>>30772.17))); >>>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>>(14079078,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>>o_array(1,1003,1),mdsys.sdo_ordinate_array(4505643.27,5430803.0 >>>4,4505643.85,5430803.37,4505644.39,5430803.67,4505644.34,543080 >>>3.76,4505635.46,5430819.49,4505633.64,5430822.73,4505619.68,543 >>>0847.46,4505609.69,5430841.9199,4505613.95,5430834.36,4505625.4 >>>1,5430814,4505634.39,5430798.05,4505643.27,5430803.04))); >>>> >>>> The polygons which are not drawn are: >>>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>>(14079126,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>>o_array(1,1003,2),mdsys.sdo_ordinate_array(4505611.03,5430848.5 >>>5,4505611.03,5430845.19,4505614.39,5430845.19,4505614.39,543084 >>>8.55,4505611.03,5430848.55))); >>>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>>(14079128,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>>o_array(1,1003,2),mdsys.sdo_ordinate_array(4505615.64,5430849.9 >>>,4505615.64,5430847.3,4505618.24,5430847.3,4505618.24,5430849.9 >>>,4505615.64,5430849.9))); >>>> >>>> >>>> All polygons are GTYPE=2003 in SRID=82032. All POLYGONS are >>>SDO_ETYPE=1003. >>>> The POLYGONS with SDO_INTERPRETATION = 1 are drawn. >>>> The POLYGONS with SDO_INTERPRETATION = 2 are not drawn. >>>> >>>> >>>> greetings >>>> Herbert >>>> >>>>>-----Urspr?ngliche Nachricht----- >>>>>Von: Paul Ramsey [mailto:pramsey at cleverelephant.ca] >>>>>Gesendet: Donnerstag, 11. September 2008 19:07 >>>>>An: Sch?nhammer, Herbert >>>>>Cc: Mapserver-users (mapserver-users at lists.osgeo.org) >>>>>Betreff: Re: [mapserver-users] Oracle Spatial + MS 5.2.0: No >>>>>drawing of certain objects >>>>> >>>>> >>>>>Could you do a bit more legwork and see if the problem >appears at the >>>>>transition to 5.0 or the transition to 5.2? From there we >>>can probably >>>>>find the code change that caused it. >>>>> >>>>>P. >>>>> >>>>>On Wed, Sep 10, 2008 at 7:03 AM, Sch?nhammer, Herbert >>>>> wrote: >>>>>> Hi list, >>>>>> >>>>>> ( I had a similar discussion using Mapserver 4.10.x and >>>>>Oracle Spatial 9i in >>>>>> May 2007. But the problems changed using Mapserver 5.2.0 .). >>>>>> >>>>>> >>>>>> The new environmet: >>>>>> =============== >>>>>> Server SLES10 >>>>>> Mapserver 5.2.0 >>>>>> Oracle OCI - Interface used with Oracle 11-Client-Software >>>>>> >>>>>> DB-Server Windows 2xxx >>>>>> Oracle Spatial 10g >>>>>> >>>>>> >>>>>> The new problem : >>>>>> ============== >>>>>> Line strings made up of a connected sequence of circular >>>>>arcs ARE NOT DRAWN. >>>>>> No error message is generated by mapserver, but the objects >>>>>are not shown in >>>>>> the map. >>>>>> >>>>>> Example: >>>>>> INSERT INTO AX_BES_GEBLINIE (FID,GEOM) VALUES >>>>>> >>>>>(14196363,mdsys.sdo_geometry(2002,82032,null,mdsys.sdo_elem_inf >>>>>o_array(1,2,2),mdsys.sdo_ordinate_array(4512474.1948,5426555.09 >>>>>79,4512473.3318,5426554.2349,4512474.1948,5426553.3719,4512475. >>>>>0578,5426554.2349,4512474.1948,5426555.0979))); >>>>>> >>>>>> (Background: >>>>>> In my mailing from May 2007 I reported that these >Objects are drawn >>>>>> correctly by mapserver. This statement is indeed >>>>>reproducable correct using >>>>>> mapserver 4.10.x. This is independent from the used oracle >>>>>version ( 9i or >>>>>> 10g ). >>>>>> Now, using mapserver 5.2.0 these objects are not drawn >>>>>anymore. No error >>>>>> message is produced. This is also independent from the used >>>>>oracle version ( >>>>>> 9i or 10g ). ) >>>>>> >>>>>> The old problem: >>>>>> ============ >>>>>> Polygons made up of a connected sequence of circular arcs >>>>>ARE NOT DRAWN. No >>>>>> error message is generated by mapserver, but the objects are >>>>>not shown in >>>>>> the map. >>>>>> >>>>>> (This problem was already reported in May 2007. The >>>>>behaviour did not change >>>>>> from mapserver 4.10.x to 5.2.0) >>>>>> >>>>>> Example: >>>>>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>>>>> >>>>>(14079065,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>>>>o_array(1,1003,2),mdsys.sdo_ordinate_array(4505553.2585,5430757 >>>>>.2937,4505551.1659,5430755.2011,4505553.2585,5430753.1085,45055 >>>>>55.3511,5430755.2011,4505553.2585,5430757.2937))); >>>>>> >>>>>> >>>>>> Oracle Documentation: >>>>>> ================= >>>>>> Reading the Oracle Docs, I think all the objects are correct >>>>>defined. The >>>>>> geometries are validating by oracle 9i and oracle 10g (Using >>>>>the st_valid - >>>>>> method, e.g. SELECT a.GEOM.ST_IsValid() >>>>>> FROM ax_bes_geblinie a WHERE a.fid = 14196363;). >>>>>> >>>>>> >>>>>> >>>>>> Does anybody know a solution how to draw these objects with >>>>>mapserver ? >>>>>> >>>>>> greetings >>>>>> Herbert >>>>>> >>>>>> _______________________________________________ >>>>>> mapserver-users mailing list >>>>>> mapserver-users at lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>> >>>>>> >>>>> >>>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From snaperski at gmail.com Mon Sep 22 06:05:53 2008 From: snaperski at gmail.com (Raivo Alla) Date: Mon, 22 Sep 2008 16:05:53 +0300 Subject: [mapserver-users] Mapserver and GDB files Message-ID: <49dc012b0809220605l3a56e0e5rd94b9850e222cab7@mail.gmail.com> Hello! I have Mapserver 5.2.0 installed in Linux box and would like to add some layers from .GDB file. There's (http://mapserver.gis.umn.edu/docs/reference/vector_data/pgeo) written that mdb layers are supported through in Windows system and in Linux system it is possible via MBDTools. Is there any option to get the support for .GDB files? Sincerely, Raivo Alla -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Mon Sep 22 06:55:34 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 22 Sep 2008 08:55:34 -0500 Subject: AW: [mapserver-users] Oracle Spatial + MS 5.2.0: No drawing ofcertain objects Message-ID: <48D75D8E0200008F0001BCF0@co5.dnr.state.mn.us> The shape->type value needs to be set to MS_SHAPE_POLYGON I believe. I've not looked at where Paul's patch sits in the source though so I don't know where that needs to happen. Perhaps as the second line in each of the cases of the patch? e.g. shape->type = MS_SHAPE_POLYGON; Steve >>> Sch?nhammer, Herbert 09/22/08 2:43 AM >>> Hallo Paul, using this patch, mapserver is not ignoring those polygons anymore (polygons, which exists ONLY of a connected sequence of circular arcs that closes on itself). But instead of rendering those polygons, I get know an error message: msDrawMap(): Image handling error. Failed to draw layer named 'stgk_gebaeude_orcl'. msDrawShape(): General error message. Only polygon shapes can be drawn using a POLYGON layer definition. The first step for rendering those polgons is done: Mapserver recognizes the polygons ! Can I do anything else ? Greetings Herbert "polygons, which exists ONLY of >a connected sequence of circular arcs that closes on itself >-----Urspr?ngliche Nachricht----- >Von: Paul Ramsey [mailto:pramsey at cleverelephant.ca] >Gesendet: Freitag, 19. September 2008 16:40 >An: Sch?nhammer, Herbert >Cc: Mapserver-users (mapserver-users at lists.osgeo.org) >Betreff: Re: [mapserver-users] Oracle Spatial + MS 5.2.0: No >drawing of certain objects > > >Try the following completely untested patch: > >Index: maporaclespatial.c >=================================================================== >--- maporaclespatial.c (revision 7827) >+++ maporaclespatial.c (working copy) >@@ -1476,6 +1476,9 @@ > case 31: /* simple polygon with n points, last >point equals the first one */ > osClosedPolygon(hand, shape, obj, ord_start, >ord_end, points, elem_type, data3d); > break; >+ case 32: /* simple polygon with only arcs >for bounds */ >+ osArcPolygon(hand, shape, obj, ord_start, >ord_end, points, data3d); >+ break; > case 33: /* rectangle defined by 2 points */ > osRectangle(hand, shape, obj, ord_start, >ord_end, points, point5, data3d); > break; > > > > >On Fri, Sep 19, 2008 at 3:20 AM, Sch?nhammer, Herbert > wrote: >> Hallo Paul, >> >> 1.) Yes, there is no difference in behavior between the old >and new mapserver versions. >> >> 2.) Yes and No. In detail: >> >> 2a) If there is at most ONE straight line in the polygon, >mapserver renders this polygon correct, even if there is a >curved segement (arc) in the polygon. For example this is a >church, which contains three arcs in the polygon (triple >11,2,2 and 31,2,2 and 51,2,2). This polygon is rendered correct. >> >> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >(14080503,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >o_array(1,1005,7,1,2,1,11,2,2,15,2,1,31,2,2,35,2,1,51,2,2,55,2, >1),mdsys.sdo_ordinate_array(4506867.81,5430890.76,4506872.05,54 >30889.72,4506881.01,5430887.51,4506881.58,5430889.82,4506883.14 >,5430896.16,4506937.22,5430883.9,4506941.09222415,5430884.75129 >585,4506943.86,5430887.59,4506948.31,5430886.72,4506947.53,5430 >882.98,4506950.45,5430882.37,4506950.02,5430880.3,4506955.17,54 >30879.23,4506955.58,5430881.2,4506958.35,5430880.62,4506959.21, >5430884.73,4506961.57385865,5430886.53782314,4506960.13,5430889 >.14,4506960.94,5430893,4506957.92,5430893.63,4506958.4,5430896. >12,4506953.2,5430897.12,4506952.74,5430894.72,4506950.1,5430895 >.27,4506949.23,5430891.12,4506944.73,5430892,4506942.9045371,54 >30896.27675424,4506939.38,5430899.31,4506893.36,5430909.55,4506 >886.79,5430911.01,4506888.96,5430919.81,4506882.98,5430921.28,4 >506874.83,5430923.28,4506874.09,5430920.3,4506872.55,5430914.03 >,4506866.92,5430915.42,4506864.74,5430915.95,4506861.35,5430902 >.17,4506870.09,5430900.02,4506867.81,5430890.76))); >> >> 2b) Mapserver does not render polygons, which exis>> Greetings >> Herbert >> >>>-----Urspr?ngliche Nachricht----- >>>Von: Paul Ramsey [mailto:pramsey at cleverelephant.ca] >>>Gesendet: Donnerstag, 18. September 2008 16:35 >>>An: Sch?nhammer, Herbert >>>Betreff: Re: [mapserver-users] Oracle Spatial + MS 5.2.0: No >>>drawing of certain objects >>> >>> >>>So, to confirm, there is now no difference in behavior between your >>>old and new mapserver installations? >>> >>>However, the old and new installations share an inability to render >>>polygons that include curved boundaries? >>> >>>P. >>> >>>On Thu, Sep 18, 2008 at 3:14 AM, Sch?nhammer, Herbert >>> wrote: >>>> Hallo Paul, >>>> >>>> (I needed some time because new hardware, ...) >>>> >>>> Okay: First of all: >>>> >>>> The reported NEW DIFFICULTIES are not reproducable any more. >>>I really don't know what happened. But LINESTRINGS made up of >>>a connected sequence of circular arcs ARE DRAWN by mapserver. >>>> >>>> The old problem still exists. >>>> ============================= >>>> POLYGONS made up of a connected sequence of circular arcs >>>ARE NOT DRAWN by mapserver. No error message. >>>> >>>> I have made a config error in my mapfile. So I could get an >>>error message from mapserver. In this error message the >>>SQL-statement sent to the oracle database is: >>>> >>>> SELECT fid, geom FROM AX_GEBAEUDE WHERE SDO_FILTER( geom, >>>MDSYS.SDO_GEOMETRY(2003, 82032, >>>NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARR >>>AY(4505602.25,5430841.31,4505622.97,5430856.39) >>>),'querytype=window') = 'TRUE' >>>> >>>> When i submit this SQL direct to the databse I get 4 >geometries back. >>>> Two POLYGONS made up of straight line segements. >>>> Two POLYGONS made up of a connected sequence of circular arcs. >>>> >>>> The polygons with straight line segments are drawn, the >>>polygons made up of a connected sequence of circular arcs are >>>not drawn. >>>> >>>> I have exported these objects from my database: >>>> >>>> The drawn polygons are: >>>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>>(14079074,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>>o_array(1,1003,1),mdsys.sdo_ordinate_array(4505658.59,5430772.1 >>>7,4505643.27,5430803.04,4505634.39,5430798.05,4505625.41,543081 >>>4,4505619.34,5430810.5898,4505607.9,5430830.95,4505607.4,543083 >>>0.7,4505600.29,5430845.02,4505511.2,5430801.08,4505534.42,54307 >>>54.01,4505552.34,5430762.86,4505569.51,5430728.08,4505658.59,54 >>>30772.17))); >>>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>>(14079078,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>>o_array(1,1003,1),mdsys.sdo_ordinate_array(4505643.27,5430803.0 >>>4,4505643.85,5430803.37,4505644.39,5430803.67,4505644.34,543080 >>>3.76,4505635.46,5430819.49,4505633.64,5430822.73,4505619.68,543 >>>0847.46,4505609.69,5430841.9199,4505613.95,5430834.36,4505625.4 >>>1,5430814,4505634.39,5430798.05,4505643.27,5430803.04))); >>>> >>>> The polygons which are not drawn are: >>>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>>(14079126,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>>o_array(1,1003,2),mdsys.sdo_ordinate_array(4505611.03,5430848.5 >>>5,4505611.03,5430845.19,4505614.39,5430845.19,4505614.39,543084 >>>8.55,4505611.03,5430848.55))); >>>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>>(14079128,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>>o_array(1,1003,2),mdsys.sdo_ordinate_array(4505615.64,5430849.9 >>>,4505615.64,5430847.3,4505618.24,5430847.3,4505618.24,5430849.9 >>>,4505615.64,5430849.9))); >>>> >>>> >>>> All polygons are GTYPE=2003 in SRID=82032. All POLYGONS are >>>SDO_ETYPE=1003. >>>> The POLYGONS with SDO_INTERPRETATION = 1 are drawn. >>>> The POLYGONS with SDO_INTERPRETATION = 2 are not drawn. >>>> >>>> >>>> greetings >>>> Herbert >>>> >>>>>-----Urspr?ngliche Nachricht----- >>>>>Von: Paul Ramsey [mailto:pramsey at cleverelephant.ca] >>>>>Gesendet: Donnerstag, 11. September 2008 19:07 >>>>>An: Sch?nhammer, Herbert >>>>>Cc: Mapserver-users (ma>>>>>Betreff: Re: [mapserver-users] Oracle Spatial + MS 5.2.0: No >>>>>drawing of certain objects >>>>> >>>>> >>>>>Could you do a bit more legwork and see if the problem >appears at the >>>>>transition to 5.0 or the transition to 5.2? From there we >>>can probably >>>>>find the code change that caused it. >>>>> >>>>>P. >>>>> >>>>>On Wed, Sep 10, 2008 at 7:03 AM, Sch?nhammer, Herbert >>>>> wrote: >>>>>> Hi list, >>>>>> >>>>>> ( I had a similar discussion using Mapserver 4.10.x and >>>>>Oracle Spatial 9i in >>>>>> May 2007. But the problems changed using Mapserver 5.2.0 .). >>>>>> >>>>>> >>>>>> The new environmet: >>>>>> =============== >>>>>> Server SLES10 >>>>>> Mapserver 5.2.0 >>>>>> Oracle OCI - Interface used with Oracle 11-Client-Software >>>>>> >>>>>> DB-Server Windows 2xxx >>>>>> Oracle Spatial 10g >>>>>> >>>>>> >>>>>> The new problem : >>>>>> ============== >>>>>> Line strings made up of a connected sequence of circular >>>>>arcs ARE NOT DRAWN. >>>>>> No error message is generated by mapserver, but the objects >>>>>are not shown in >>>>>> the map. >>>>>> >>>>>> Example: >>>>>> INSERT INTO AX_BES_GEBLINIE (FID,GEOM) VALUES >>>>>> >>>>>(14196363,mdsys.sdo_geometry(2002,82032,null,mdsys.sdo_elem_inf >>>>>o_array(1,2,2),mdsys.sdo_ordinate_array(4512474.1948,5426555.09 >>>>>79,4512473.3318,5426554.2349,4512474.1948,5426553.3719,4512475. >>>>>0578,5426554.2349,4512474.1948,5426555.0979))); >>>>>> >>>>>> (Background: >>>>>> In my mailing from May 2007 I reported that these >Objects are drawn >>>>>> correctly by mapserver. This statement is indeed >>>>>reproducable correct using >>>>>> mapserver 4.10.x. This is independent from the used oracle >>>>>version ( 9i or >>>>>> 10g ). >>>>>> Now, using mapserver 5.2.0 these objects are not drawn >>>>>anymore. No error >>>>>> message is produced. This is also independent from the used >>>>>oracle version ( >>>>>> 9i or 10g ). ) >>>>>> >>>>>> The old problem: >>>>>> ============ >>>>>> Polygons made up of a connected sequence of circular arcs >>>>>ARE NOT DRAWN. No >>>>>> error message is generated by mapserver, but the objects are >>>>>not shown in >>>>>> the map. >>>>>> >>>>>> (This problem was already reported in May 2007. The >>>>>behaviour did not change >>>>>> from mapserver 4.10.x to 5.2.0) >>>>>> >>>>>> Example: >>>>>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>>>>> >>>>>(14079065,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>>>>o_array(1,1003,2),mdsys.sdo_ordinate_array(4505553.2585,5430757 >>>>>.2937,4505551.1659,5430755.2011,4505553.2585,5430753.1085,45055 >>>>>55.3511,5430755.2011,4505553.2585,5430757.2937))); >>>>>> >>>>>> >>>>>> Oracle Documentation: >>>>>> ================= >>>>>> Reading the Oracle Docs, I think all the objects are correct >>>>>defined. The >>>>>> geometries are validating by oracle 9i and oracle 10g (Using >>>>>the st_valid - >>>>>> method, e.g. SELECT a.GEOM.ST_IsValid() >>>>>> FROM ax_bes_geblinie a WHERE a.fid = 14196363;). >>>>>> >>>>>> >>>>>> >>>>>> Does anybody know a solution how to draw these objects with >>>>>mapserver ? >>>>>> >>>>>> greetings >>>>>> Herbert >>>>>> >>>>>> _______________________________________________ >>>>>> mapserver-users mailing list >>>>>> mapserver-users at lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>> >>>>>> >>>>> >>>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From guillaume.sueur at neogeo-online.net Mon Sep 22 07:10:18 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Mon, 22 Sep 2008 16:10:18 +0200 Subject: [mapserver-users] SLD and LinePlacement Message-ID: <48D7A74A.6020302@neogeo-online.net> Hi list, Would someone know how to configure the equivalent of ANGLE AUTO for labelling lines with an SLD file ? I've tried the LinePlacement block, for it doesn't seem to do anything special. Thanks Guillaume From MarkVolz at co.lyon.mn.us Mon Sep 22 07:12:19 2008 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Mon, 22 Sep 2008 09:12:19 -0500 Subject: [mapserver-users] example symbology files - points of interest Message-ID: <3D56274B4A7874468F58FADDBFD09801061CD2E6@llmhs02.r8nssis.local> Hello, I need to add "points of interest" on our mapserver site. Some of the items that I will need to show is an image for city hall, parks, schools, hospitals etc. Does anyone have an example on how I could go about doing this? Next, I would like to create a "bike trail" layer. One of the items I would like to do is have an "recreational" icon show up along the segment at a given number of pixels on the map; ie every 3 inches on the screen. I was unsuccessful when I tried using pixels. Has anyone had success doing this? Last, As a somewhat new user, I find that the first several map files were hard to do. Does anyone know of a good tool to work with to help create mapfiles? Mark Volz GIS Specialist Lyon County, MN (507) 532-8218 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Mon Sep 22 07:17:37 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 22 Sep 2008 17:17:37 +0300 Subject: [mapserver-users] example symbology files - points of interest In-Reply-To: <3D56274B4A7874468F58FADDBFD09801061CD2E6@llmhs02.r8nssis.local> Message-ID: > Last, > As a somewhat new user, I find that the first several map files were hard to do. Does anyone know of a good tool to work with to help create mapfiles? With Quantum GIS you can style your map and store the result as MapServer mapfile. Mapfile may need a bit polishing but it is a good template at least. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From cnieman at dmsolutions.ca Mon Sep 22 07:26:08 2008 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Mon, 22 Sep 2008 10:26:08 -0400 Subject: [mapserver-users] example symbology files - points of interest In-Reply-To: <3D56274B4A7874468F58FADDBFD09801061CD2E6@llmhs02.r8nssis.local> References: <3D56274B4A7874468F58FADDBFD09801061CD2E6@llmhs02.r8nssis.local> Message-ID: <48D7AB00.4090700@dmsolutions.ca> Hi Mark, Could you provide the layer section of the mapfile where you tried displaying the "recreational" icon. It would allow us to see what you've tried. I believe you may be able to achieve the desired effect using an annotation layer. Christy Nieman GIS Technician DM Solutions Group, Inc. Mark Volz wrote: > > Hello, > > I need to add ?points of interest? on our mapserver site. Some of the > items that I will need to show is an image for city hall, parks, > schools, hospitals etc. Does anyone have an example on how I could go > about doing this? > > Next, I would like to create a ?bike trail? layer. One of the items I > would like to do is have an ?recreational? icon show up along the > segment at a given number of pixels on the map; ie every 3 inches on > the screen. I was unsuccessful when I tried using pixels. Has anyone > had success doing this? > > Last, > > As a somewhat new user, I find that the first several map files were > hard to do. Does anyone know of a good tool to work with to help > create mapfiles? > > Mark Volz > > GIS Specialist > > Lyon County, MN > > (507) 532-8218 > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From warmerdam at pobox.com Mon Sep 22 07:47:48 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 22 Sep 2008 10:47:48 -0400 Subject: [mapserver-users] Mapserver and GDB files In-Reply-To: <49dc012b0809220605l3a56e0e5rd94b9850e222cab7@mail.gmail.com> References: <49dc012b0809220605l3a56e0e5rd94b9850e222cab7@mail.gmail.com> Message-ID: <48D7B014.1060008@pobox.com> Raivo Alla wrote: > > > Hello! > > I have Mapserver 5.2.0 installed in Linux box and would like to add some > layers from .GDB file. > There's (http://mapserver.gis.umn.edu/docs/reference/vector_data/pgeo) > written that mdb layers are supported through in Windows system and in > Linux system it is possible via MBDTools. > Is there any option to get the support for .GDB files? Raivo, I am not familiar with .GDB files and I have on reason to believe they are currently supported. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From David.Fawcett at state.mn.us Mon Sep 22 07:56:26 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 22 Sep 2008 09:56:26 -0500 Subject: [mapserver-users] Mapserver and GDB files In-Reply-To: <48D7B014.1060008@pobox.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FC0A9@s-sp22.pca.state.mn.us> .gdb files are ESRI's new File Geodatabase proprietary format. I am quite sure that OGR/FWTools does not support it. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Frank Warmerdam Sent: Monday, September 22, 2008 9:48 AM To: Raivo Alla Cc: mapserver Subject: Re: [mapserver-users] Mapserver and GDB files Raivo Alla wrote: > > > Hello! > > I have Mapserver 5.2.0 installed in Linux box and would like to add > some > layers from .GDB file. > There's (http://mapserver.gis.umn.edu/docs/reference/vector_data/pgeo) > written that mdb layers are supported through in Windows system and in > Linux system it is possible via MBDTools. > Is there any option to get the support for .GDB files? Raivo, I am not familiar with .GDB files and I have on reason to believe they are currently supported. Best regards, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From warmerdam at pobox.com Mon Sep 22 07:59:47 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 22 Sep 2008 10:59:47 -0400 Subject: [mapserver-users] Mapserver and GDB files In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FC0A9@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5021FC0A9@s-sp22.pca.state.mn.us> Message-ID: <48D7B2E3.5070600@pobox.com> Fawcett, David wrote: > .gdb files are ESRI's new File Geodatabase proprietary format. I am > quite sure that OGR/FWTools does not support it. David, Ah thanks. Indeed they are not supported and it is hard to imagine they will be supported for a while. ESRI has indicated in the past that they intend to provide an open mechanism to access the file geodatabase and that is still likely to happen at some point. However, I think this would be quite a few months away at best. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From yassefa at dmsolutions.ca Mon Sep 22 08:03:12 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 22 Sep 2008 11:03:12 -0400 Subject: [mapserver-users] SLD and LinePlacement In-Reply-To: <48D7A74A.6020302@neogeo-online.net> References: <48D7A74A.6020302@neogeo-online.net> Message-ID: <48D7B3B0.70407@dmsolutions.ca> Guillaume, Right now the SLD does not have an equivalent parameter (in LinePlacement or PointPlacamant) the could be set and translate as ANGLE AUTO or ANGLE FOLLOW in MapServer. The default setting of MapServer for the label object is to set the ANGLE AUTO and ANGLE FOLLOW to FALSE. So it is not possible right now. Maybe we could, when reading the sld and creating the label objects, set by default the angle to auto or follow. Would that make sense? If that is the case, you could open a bug on it discuss it further there and add the enhancement if it is agreed. Best Regards, Guillaume Sueur wrote: > Hi list, > > Would someone know how to configure the equivalent of ANGLE AUTO for > labelling lines with an SLD file ? I've tried the LinePlacement block, > for it doesn't seem to do anything special. > > Thanks > Guillaume > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From guillaume.sueur at neogeo-online.net Mon Sep 22 08:10:48 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Mon, 22 Sep 2008 17:10:48 +0200 Subject: [mapserver-users] SLD and LinePlacement In-Reply-To: <48D7B3B0.70407@dmsolutions.ca> References: <48D7A74A.6020302@neogeo-online.net> <48D7B3B0.70407@dmsolutions.ca> Message-ID: <48D7B578.2080201@neogeo-online.net> Ok, seems interesting. Thank you ! Yewondwossen Assefa a ?crit : > Guillaume, > > Right now the SLD does not have an equivalent parameter (in > LinePlacement or PointPlacamant) the could be set and translate as > ANGLE AUTO or ANGLE FOLLOW in MapServer. > The default setting of MapServer for the label object is to set the > ANGLE AUTO and ANGLE FOLLOW to FALSE. > So it is not possible right now. Maybe we could, when reading the sld > and creating the label objects, set by default the angle to auto or > follow. Would that make sense? If that is the case, you could open a bug > on it discuss it further there and add the enhancement if it is agreed. > > Best Regards, > > > Guillaume Sueur wrote: >> Hi list, >> >> Would someone know how to configure the equivalent of ANGLE AUTO for >> labelling lines with an SLD file ? I've tried the LinePlacement block, >> for it doesn't seem to do anything special. >> >> Thanks >> Guillaume >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > From pramsey at cleverelephant.ca Mon Sep 22 09:17:16 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Mon, 22 Sep 2008 09:17:16 -0700 Subject: AW: [mapserver-users] Oracle Spatial + MS 5.2.0: No drawing ofcertain objects In-Reply-To: <48D75D8E0200008F0001BCF0@co5.dnr.state.mn.us> References: <48D75D8E0200008F0001BCF0@co5.dnr.state.mn.us> Message-ID: <30fe546d0809220917x34ecee2dhbb86d64405242412@mail.gmail.com> Should work, methinks. break; + case 32: /* simple polygon with only arcs for bounds */ + osArcPolygon(hand, shape, obj, ord_start, ord_end, points, data3d); + shape->type = MS_SHAPE_POLYGON; + break; case 33: /* rectangle defined by 2 points */ On Mon, Sep 22, 2008 at 6:55 AM, Steve Lime wrote: > The shape->type value needs to be set to MS_SHAPE_POLYGON I believe. > I've not looked at where > Paul's patch sits in the source though so I don't know where that needs > to happen. Perhaps as the > second line in each of the cases of the patch? > > e.g. shape->type = MS_SHAPE_POLYGON; > > Steve > >>>> Sch?nhammer, Herbert 09/22/08 > 2:43 AM >>> > Hallo Paul, > > using this patch, mapserver is not ignoring those polygons anymore > (polygons, which exists ONLY of a connected sequence of circular arcs > that closes on itself). > > But instead of rendering those polygons, I get know an error message: > > msDrawMap(): Image handling error. Failed to draw layer named > 'stgk_gebaeude_orcl'. > msDrawShape(): General error message. Only polygon shapes can be drawn > using a POLYGON layer definition. > > > The first step for rendering those polgons is done: Mapserver recognizes > the polygons ! > > Can I do anything else ? > > Greetings > Herbert > > > > "polygons, which exists ONLY of >>a connected sequence of circular arcs that closes on itself > >>-----Urspr?ngliche Nachricht----- >>Von: Paul Ramsey [mailto:pramsey at cleverelephant.ca] >>Gesendet: Freitag, 19. September 2008 16:40 >>An: Sch?nhammer, Herbert >>Cc: Mapserver-users (mapserver-users at lists.osgeo.org) >>Betreff: Re: [mapserver-users] Oracle Spatial + MS 5.2.0: No >>drawing of certain objects >> >> >>Try the following completely untested patch: >> >>Index: maporaclespatial.c >>=================================================================== >>--- maporaclespatial.c (revision 7827) >>+++ maporaclespatial.c (working copy) >>@@ -1476,6 +1476,9 @@ >> case 31: /* simple polygon with n points, last >>point equals the first one */ >> osClosedPolygon(hand, shape, obj, ord_start, >>ord_end, points, elem_type, data3d); >> break; >>+ case 32: /* simple polygon with only arcs >>for bounds */ >>+ osArcPolygon(hand, shape, obj, ord_start, >>ord_end, points, data3d); >>+ break; >> case 33: /* rectangle defined by 2 points */ >> osRectangle(hand, shape, obj, ord_start, >>ord_end, points, point5, data3d); >> break; >> >> >> >> >>On Fri, Sep 19, 2008 at 3:20 AM, Sch?nhammer, Herbert >> wrote: >>> Hallo Paul, >>> >>> 1.) Yes, there is no difference in behavior between the old >>and new mapserver versions. >>> >>> 2.) Yes and No. In detail: >>> >>> 2a) If there is at most ONE straight line in the polygon, >>mapserver renders this polygon correct, even if there is a >>curved segement (arc) in the polygon. For example this is a >>church, which contains three arcs in the polygon (triple >>11,2,2 and 31,2,2 and 51,2,2). This polygon is rendered correct. >>> >>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>(14080503,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>o_array(1,1005,7,1,2,1,11,2,2,15,2,1,31,2,2,35,2,1,51,2,2,55,2, >>1),mdsys.sdo_ordinate_array(4506867.81,5430890.76,4506872.05,54 >>30889.72,4506881.01,5430887.51,4506881.58,5430889.82,4506883.14 >>,5430896.16,4506937.22,5430883.9,4506941.09222415,5430884.75129 >>585,4506943.86,5430887.59,4506948.31,5430886.72,4506947.53,5430 >>882.98,4506950.45,5430882.37,4506950.02,5430880.3,4506955.17,54 >>30879.23,4506955.58,5430881.2,4506958.35,5430880.62,4506959.21, >>5430884.73,4506961.57385865,5430886.53782314,4506960.13,5430889 >>.14,4506960.94,5430893,4506957.92,5430893.63,4506958.4,5430896. >>12,4506953.2,5430897.12,4506952.74,5430894.72,4506950.1,5430895 >>.27,4506949.23,5430891.12,4506944.73,5430892,4506942.9045371,54 >>30896.27675424,4506939.38,5430899.31,4506893.36,5430909.55,4506 >>886.79,5430911.01,4506888.96,5430919.81,4506882.98,5430921.28,4 >>506874.83,5430923.28,4506874.09,5430920.3,4506872.55,5430914.03 >>,4506866.92,5430915.42,4506864.74,5430915.95,4506861.35,5430902 >>.17,4506870.09,5430900.02,4506867.81,5430890.76))); >>> >>> 2b) Mapserver does not render polygons, which exis>> Greetings >>> Herbert >>> >>>>-----Urspr?ngliche Nachricht----- >>>>Von: Paul Ramsey [mailto:pramsey at cleverelephant.ca] >>>>Gesendet: Donnerstag, 18. September 2008 16:35 >>>>An: Sch?nhammer, Herbert >>>>Betreff: Re: [mapserver-users] Oracle Spatial + MS 5.2.0: No >>>>drawing of certain objects >>>> >>>> >>>>So, to confirm, there is now no difference in behavior between your >>>>old and new mapserver installations? >>>> >>>>However, the old and new installations share an inability to render >>>>polygons that include curved boundaries? >>>> >>>>P. >>>> >>>>On Thu, Sep 18, 2008 at 3:14 AM, Sch?nhammer, Herbert >>>> wrote: >>>>> Hallo Paul, >>>>> >>>>> (I needed some time because new hardware, ...) >>>>> >>>>> Okay: First of all: >>>>> >>>>> The reported NEW DIFFICULTIES are not reproducable any more. >>>>I really don't know what happened. But LINESTRINGS made up of >>>>a connected sequence of circular arcs ARE DRAWN by mapserver. >>>>> >>>>> The old problem still exists. >>>>> ============================= >>>>> POLYGONS made up of a connected sequence of circular arcs >>>>ARE NOT DRAWN by mapserver. No error message. >>>>> >>>>> I have made a config error in my mapfile. So I could get an >>>>error message from mapserver. In this error message the >>>>SQL-statement sent to the oracle database is: >>>>> >>>>> SELECT fid, geom FROM AX_GEBAEUDE WHERE SDO_FILTER( geom, >>>>MDSYS.SDO_GEOMETRY(2003, 82032, >>>>NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARR >>>>AY(4505602.25,5430841.31,4505622.97,5430856.39) >>>>),'querytype=window') = 'TRUE' >>>>> >>>>> When i submit this SQL direct to the databse I get 4 >>geometries back. >>>>> Two POLYGONS made up of straight line segements. >>>>> Two POLYGONS made up of a connected sequence of circular arcs. >>>>> >>>>> The polygons with straight line segments are drawn, the >>>>polygons made up of a connected sequence of circular arcs are >>>>not drawn. >>>>> >>>>> I have exported these objects from my database: >>>>> >>>>> The drawn polygons are: >>>>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>>>(14079074,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>>>o_array(1,1003,1),mdsys.sdo_ordinate_array(4505658.59,5430772.1 >>>>7,4505643.27,5430803.04,4505634.39,5430798.05,4505625.41,543081 >>>>4,4505619.34,5430810.5898,4505607.9,5430830.95,4505607.4,543083 >>>>0.7,4505600.29,5430845.02,4505511.2,5430801.08,4505534.42,54307 >>>>54.01,4505552.34,5430762.86,4505569.51,5430728.08,4505658.59,54 >>>>30772.17))); >>>>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>>>(14079078,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>>>o_array(1,1003,1),mdsys.sdo_ordinate_array(4505643.27,5430803.0 >>>>4,4505643.85,5430803.37,4505644.39,5430803.67,4505644.34,543080 >>>>3.76,4505635.46,5430819.49,4505633.64,5430822.73,4505619.68,543 >>>>0847.46,4505609.69,5430841.9199,4505613.95,5430834.36,4505625.4 >>>>1,5430814,4505634.39,5430798.05,4505643.27,5430803.04))); >>>>> >>>>> The polygons which are not drawn are: >>>>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>>>(14079126,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>>>o_array(1,1003,2),mdsys.sdo_ordinate_array(4505611.03,5430848.5 >>>>5,4505611.03,5430845.19,4505614.39,5430845.19,4505614.39,543084 >>>>8.55,4505611.03,5430848.55))); >>>>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>>>(14079128,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>>>o_array(1,1003,2),mdsys.sdo_ordinate_array(4505615.64,5430849.9 >>>>,4505615.64,5430847.3,4505618.24,5430847.3,4505618.24,5430849.9 >>>>,4505615.64,5430849.9))); >>>>> >>>>> >>>>> All polygons are GTYPE=2003 in SRID=82032. All POLYGONS are >>>>SDO_ETYPE=1003. >>>>> The POLYGONS with SDO_INTERPRETATION = 1 are drawn. >>>>> The POLYGONS with SDO_INTERPRETATION = 2 are not drawn. >>>>> >>>>> >>>>> greetings >>>>> Herbert >>>>> >>>>>>-----Urspr?ngliche Nachricht----- >>>>>>Von: Paul Ramsey [mailto:pramsey at cleverelephant.ca] >>>>>>Gesendet: Donnerstag, 11. September 2008 19:07 >>>>>>An: Sch?nhammer, Herbert >>>>>>Cc: Mapserver-users (ma>>>>>Betreff: Re: [mapserver-users] Oracle Spatial + MS 5.2.0: No >>>>>>drawing of certain objects >>>>>> >>>>>> >>>>>>Could you do a bit more legwork and see if the problem >>appears at the >>>>>>transition to 5.0 or the transition to 5.2? From there we >>>>can probably >>>>>>find the code change that caused it. >>>>>> >>>>>>P. >>>>>> >>>>>>On Wed, Sep 10, 2008 at 7:03 AM, Sch?nhammer, Herbert >>>>>> wrote: >>>>>>> Hi list, >>>>>>> >>>>>>> ( I had a similar discussion using Mapserver 4.10.x and >>>>>>Oracle Spatial 9i in >>>>>>> May 2007. But the problems changed using Mapserver 5.2.0 .). >>>>>>> >>>>>>> >>>>>>> The new environmet: >>>>>>> =============== >>>>>>> Server SLES10 >>>>>>> Mapserver 5.2.0 >>>>>>> Oracle OCI - Interface used with Oracle 11-Client-Software >>>>>>> >>>>>>> DB-Server Windows 2xxx >>>>>>> Oracle Spatial 10g >>>>>>> >>>>>>> >>>>>>> The new problem : >>>>>>> ============== >>>>>>> Line strings made up of a connected sequence of circular >>>>>>arcs ARE NOT DRAWN. >>>>>>> No error message is generated by mapserver, but the objects >>>>>>are not shown in >>>>>>> the map. >>>>>>> >>>>>>> Example: >>>>>>> INSERT INTO AX_BES_GEBLINIE (FID,GEOM) VALUES >>>>>>> >>>>>>(14196363,mdsys.sdo_geometry(2002,82032,null,mdsys.sdo_elem_inf >>>>>>o_array(1,2,2),mdsys.sdo_ordinate_array(4512474.1948,5426555.09 >>>>>>79,4512473.3318,5426554.2349,4512474.1948,5426553.3719,4512475. >>>>>>0578,5426554.2349,4512474.1948,5426555.0979))); >>>>>>> >>>>>>> (Background: >>>>>>> In my mailing from May 2007 I reported that these >>Objects are drawn >>>>>>> correctly by mapserver. This statement is indeed >>>>>>reproducable correct using >>>>>>> mapserver 4.10.x. This is independent from the used oracle >>>>>>version ( 9i or >>>>>>> 10g ). >>>>>>> Now, using mapserver 5.2.0 these objects are not drawn >>>>>>anymore. No error >>>>>>> message is produced. This is also independent from the used >>>>>>oracle version ( >>>>>>> 9i or 10g ). ) >>>>>>> >>>>>>> The old problem: >>>>>>> ============ >>>>>>> Polygons made up of a connected sequence of circular arcs >>>>>>ARE NOT DRAWN. No >>>>>>> error message is generated by mapserver, but the objects are >>>>>>not shown in >>>>>>> the map. >>>>>>> >>>>>>> (This problem was already reported in May 2007. The >>>>>>behaviour did not change >>>>>>> from mapserver 4.10.x to 5.2.0) >>>>>>> >>>>>>> Example: >>>>>>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>>>>>> >>>>>>(14079065,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>>>>>o_array(1,1003,2),mdsys.sdo_ordinate_array(4505553.2585,5430757 >>>>>>.2937,4505551.1659,5430755.2011,4505553.2585,5430753.1085,45055 >>>>>>55.3511,5430755.2011,4505553.2585,5430757.2937))); >>>>>>> >>>>>>> >>>>>>> Oracle Documentation: >>>>>>> ================= >>>>>>> Reading the Oracle Docs, I think all the objects are correct >>>>>>defined. The >>>>>>> geometries are validating by oracle 9i and oracle 10g (Using >>>>>>the st_valid - >>>>>>> method, e.g. SELECT a.GEOM.ST_IsValid() >>>>>>> FROM ax_bes_geblinie a WHERE a.fid = 14196363;). >>>>>>> >>>>>>> >>>>>>> >>>>>>> Does anybody know a solution how to draw these objects with >>>>>>mapserver ? >>>>>>> >>>>>>> greetings >>>>>>> Herbert >>>>>>> >>>>>>> _______________________________________________ >>>>>>> mapserver-users mailing list >>>>>>> mapserver-users at lists.osgeo.org >>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From woklist at kyngchaos.com Mon Sep 22 09:19:38 2008 From: woklist at kyngchaos.com (William Kyngesburye) Date: Mon, 22 Sep 2008 11:19:38 -0500 Subject: [mapserver-users] Mapserver and GDB files In-Reply-To: <48D7B2E3.5070600@pobox.com> References: <6246727221874A4FB8D3F9BBC37D9BD5021FC0A9@s-sp22.pca.state.mn.us> <48D7B2E3.5070600@pobox.com> Message-ID: <7B01866D-74D3-4BF3-9823-6EFD15194B86@kyngchaos.com> On Sep 22, 2008, at 9:59 AM, Frank Warmerdam wrote: > Fawcett, David wrote: >> .gdb files are ESRI's new File Geodatabase proprietary format. I am >> quite sure that OGR/FWTools does not support it. > > David, > > Ah thanks. Indeed they are not supported and it is hard to imagine > they > will be supported for a while. ESRI has indicated in the past that > they > intend to provide an open mechanism to access the file geodatabase > and that > is still likely to happen at some point. However, I think this > would be > quite a few months away at best. Hmmm, and if ESRI provides it, then, like SDE, it probably won't be available for OSX (or other linux platforms?). Bleh. ----- William Kyngesburye http://www.kyngchaos.com/ "I ache, therefore I am. Or in my case - I am, therefore I ache." - Marvin From ajvanbeest at bayfieldcounty.org Mon Sep 22 09:53:23 2008 From: ajvanbeest at bayfieldcounty.org (AJ Van Beest) Date: Mon, 22 Sep 2008 11:53:23 -0500 Subject: [mapserver-users] Need help with ProxyPass configuration, please Message-ID: Howdy, all, I could use a hand configuring ProxyPass in Apache 2.2.x to get MapServer working externally (again). Here are the details: In the past: Everything ran from IIS, and worked just fine. Currently: I'm moving most of our site to a CMS in Apache. Apache is listening on port 80, and IIS is on port 8080 (on the same box). My ProxyPass statements look like this (where the IP address is an internal address): ProxyPass /landrecords http://172.16.3.250:8080/landrecords ProxyPassReverse /landrecords http://172.16.3.250:8080/landrecords It seems like MapServer works just fine internally, but outside of the network, it works *very* slowly, if at all. Do I need to change my ProxyPass statements, is there a better way to pass along these requests, or am I barking up the wrong tree altogether? Would it be smarter to let everything run from Apache? Thanks for your help! -aj ----------------------- A.J. Van Beest Bayfield County Information Services (715) 373-6319 (office) (715) 209-1142 (cell) AIM: theaj42 Yahoo: theaj42 MSN: the_aj From klemen.sorcnik at gmail.com Mon Sep 22 13:02:20 2008 From: klemen.sorcnik at gmail.com (Klemen S.) Date: Mon, 22 Sep 2008 13:02:20 -0700 (PDT) Subject: [MAPSERVER-USERS] Non-earth projection Message-ID: <19594934.post@talk.nabble.com> Hi all, i have problem with projection. I like to setup mapserver as WMS server. All my layers are in non-earth projection. I dont know the correct code for non-earth projection in Map server, can someone help me? WKT code is: LOCAL_CS["*XY-MT*",LOCAL_DATUM["*X-Y*",10000],UNIT["Meter", 1],AXIS["X",EAST],AXIS["Y",NORTH]] thx, Klemen -- View this message in context: http://www.nabble.com/Non-earth-projection-tp19594934p19594934.html Sent from the Mapserver - User mailing list archive at Nabble.com. From metlud at yahoo.it Mon Sep 22 13:34:09 2008 From: metlud at yahoo.it (Ludovico Bianchini) Date: Mon, 22 Sep 2008 20:34:09 +0000 (GMT) Subject: [mapserver-users] java mapscript + postgis = jvm crashed Message-ID: <259451.40654.qm@web23701.mail.ird.yahoo.com> - Windows Vista Home Premium - Postgres 8.1 - jvm 1.6.0 - jboss 4.0.3SP1, tomcat 5.5 - struts2 - ms4w 2.2.3 (mapscript.jar, mapscript.dll, all other dlls taken from this pack) - postgresql-8.2-505.jdbc4.jar mapscript.jar is placed in C:\jboss-4.0.3SP1\server\default\deploy\jbossweb-tomcat55.sar When a layer with a postgis connection is turned on, the draw method crashes the jvm. Error file attached. Is there any solution to this problem? Postgis is listed in "unsafe components", i have not understood if there is one way to make it work using thread syncronization. Thanks in advance for any help. Ludovico __________________________________________________ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: hs_err_pid5568.log URL: From Steve.Lime at dnr.state.mn.us Mon Sep 22 15:22:39 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 22 Sep 2008 17:22:39 -0500 Subject: [mapserver-users] Metadata Hashtable In-Reply-To: <48D40DB2.3080103@planyukon.ca> References: <48D40DB2.3080103@planyukon.ca> Message-ID: <48D7D45F.5157.008F.0@dnr.state.mn.us> It should look something like this I believe (not a PHP guy): $key; # should be empty/NULL to start while($key = $hash->nextKey($key) { # do something with $key } Steve >>> On 9/19/2008 at 3:38 PM, in message <48D40DB2.3080103 at planyukon.ca>, Jeff Hamm wrote: > Mapserver Bugzilla seems to indicate that exposing metadata as a proper > object is possible (Tickets #734 and #737). > > I also want to print out all of the metadata key->value pairs for a map > layer using php-mapscript without explicitly naming them all. > Can anyone share a code snippet for this? > > TIA > Jeff Hamm > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jeff at planyukon.ca Mon Sep 22 16:01:40 2008 From: jeff at planyukon.ca (Jeff Hamm) Date: Mon, 22 Sep 2008 16:01:40 -0700 Subject: [mapserver-users] Metadata Hashtable In-Reply-To: <48D7D45F.5157.008F.0@dnr.state.mn.us> References: <48D40DB2.3080103@planyukon.ca> <48D7D45F.5157.008F.0@dnr.state.mn.us> Message-ID: <48D823D4.2030601@planyukon.ca> Thanks Steve. Its finding the $hash I haven't got a handle on. $oLayer->getMetaData("") wants a parameter key. $oLayer->{metadata} returns nothing. How do I grab the metadata hashtable itself? Ticket #439 was the only reference I found; but the examples there are same as above, unsuccessful. Jeff Steve Lime wrote: > It should look something like this I believe (not a PHP guy): > > $key; # should be empty/NULL to start > while($key = $hash->nextKey($key) { > # do something with $key > } > > Steve > > >>>> On 9/19/2008 at 3:38 PM, in message <48D40DB2.3080103 at planyukon.ca>, Jeff Hamm >>>> > wrote: > >> Mapserver Bugzilla seems to indicate that exposing metadata as a proper >> object is possible (Tickets #734 and #737). >> >> I also want to print out all of the metadata key->value pairs for a map >> layer using php-mapscript without explicitly naming them all. >> Can anyone share a code snippet for this? >> >> TIA >> Jeff Hamm >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > From Steve.Lime at dnr.state.mn.us Mon Sep 22 16:43:57 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 22 Sep 2008 18:43:57 -0500 Subject: [mapserver-users] Metadata Hashtable In-Reply-To: <48D823D4.2030601@planyukon.ca> References: <48D40DB2.3080103@planyukon.ca> <48D7D45F.5157.008F.0@dnr.state.mn.us> <48D823D4.2030601@planyukon.ca> Message-ID: <48D7E76C.5157.008F.0@dnr.state.mn.us> I would thing this might work (perl in swig/mapscript): $hash = $layer->{metadata}; $layer->{metadata} is a hashtableObj. In PHP there must be a get function to do this. Steve >>> On 9/22/2008 at 6:01 PM, in message <48D823D4.2030601 at planyukon.ca>, Jeff Hamm wrote: > Thanks Steve. > Its finding the $hash I haven't got a handle on. > $oLayer->getMetaData("") wants a parameter key. > $oLayer->{metadata} returns nothing. > How do I grab the metadata hashtable itself? > > Ticket #439 was the only reference I found; but the examples there are > same as above, unsuccessful. > > Jeff > > > Steve Lime wrote: >> It should look something like this I believe (not a PHP guy): >> >> $key; # should be empty/NULL to start >> while($key = $hash->nextKey($key) { >> # do something with $key >> } >> >> Steve >> >> >>>>> On 9/19/2008 at 3:38 PM, in message <48D40DB2.3080103 at planyukon.ca>, Jeff Hamm >>>>> >> wrote: >> >>> Mapserver Bugzilla seems to indicate that exposing metadata as a proper >>> object is possible (Tickets #734 and #737). >>> >>> I also want to print out all of the metadata key->value pairs for a map >>> layer using php-mapscript without explicitly naming them all. >>> Can anyone share a code snippet for this? >>> >>> TIA >>> Jeff Hamm >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Mon Sep 22 17:52:50 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 22 Sep 2008 19:52:50 -0500 Subject: [mapserver-users] Metadata Hashtable In-Reply-To: <48D7E76C.5157.008F.0@dnr.state.mn.us> References: <48D40DB2.3080103@planyukon.ca> <48D7D45F.5157.008F.0@dnr.state.mn.us> <48D823D4.2030601@planyukon.ca> <48D7E76C.5157.008F.0@dnr.state.mn.us> Message-ID: <48D83DE2.8050805@swoodbridge.com> Hi all, I just looked through php_mapscript.c and I don't think there is a way to do this in php because the function was never written to access the hash table. You should probably write a bug on this for PHP/mapscript. I don't think it is a problem for the swig stuff. -Steve W. Steve Lime wrote: > I would thing this might work (perl in swig/mapscript): > > $hash = $layer->{metadata}; > > $layer->{metadata} is a hashtableObj. In PHP there must be a get function to do this. > > Steve > >>>> On 9/22/2008 at 6:01 PM, in message <48D823D4.2030601 at planyukon.ca>, Jeff Hamm > wrote: >> Thanks Steve. >> Its finding the $hash I haven't got a handle on. >> $oLayer->getMetaData("") wants a parameter key. >> $oLayer->{metadata} returns nothing. >> How do I grab the metadata hashtable itself? >> >> Ticket #439 was the only reference I found; but the examples there are >> same as above, unsuccessful. >> >> Jeff >> >> >> Steve Lime wrote: >>> It should look something like this I believe (not a PHP guy): >>> >>> $key; # should be empty/NULL to start >>> while($key = $hash->nextKey($key) { >>> # do something with $key >>> } >>> >>> Steve >>> >>> >>>>>> On 9/19/2008 at 3:38 PM, in message <48D40DB2.3080103 at planyukon.ca>, Jeff Hamm >>>>>> >>> wrote: >>> >>>> Mapserver Bugzilla seems to indicate that exposing metadata as a proper >>>> object is possible (Tickets #734 and #737). >>>> >>>> I also want to print out all of the metadata key->value pairs for a map >>>> layer using php-mapscript without explicitly naming them all. >>>> Can anyone share a code snippet for this? >>>> >>>> TIA >>>> Jeff Hamm >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From John.Westwood at port.ac.uk Mon Sep 22 18:05:55 2008 From: John.Westwood at port.ac.uk (John.Westwood at port.ac.uk) Date: Mon, 22 Sep 2008 21:05:55 -0400 Subject: [mapserver-users] Using Fast CGI with MapServer toalleviate poor performance Message-ID: Hi Everybody, I am attaching a cut down version of my html, javascript and map files. On our server the EmbeddedMap.js lives in the OpenLayers directory and is used by gbhgis_openlayers.html. The test address http://148.197.8.119/gbhgis_openlayers.html . This is just a test server so please don't tell the whole World about it! :) There are four layers, 2 x raster (europe 1940s, WMS and MapServer) and 2 x vector / raster (Digital Chart of the World, WMS and MapServer) . A problem with using the OpenLayers.MapServer method is that the (1) The raster colours are messed up and (2) Anti-aliasing is not being done on the vector layers. I don't know why this is. Regards, John Westwood >>> Stephen Woodbridge 18/09/08 9:08 PM >>> John Westwood wrote: > Hi Paul and other MapServer Gurus, > > I have discovered a huge speed increase by using OpenLayers.MapServer > (native) layers instead of OpenLayers.WMS layers. It is about ten > times faster, I do not exaggerate. Why is WMS so slow? I have read > that MapServer is a fast WMS server, have I done something wrong for > it not to be? > > What do you think could be the problem? You might want to check that you are comparing apples and apples. I would expect WMS to be a little slower because there is some overhead to query the server before actually making the image request. Do you have ratio set the same for both layers? What versions of Mapserver and OpenLayers are you using? Can you post a URL that has the two layers present in the layer switch so we can look at the requests and how your have it configured? Or post the HTML so we can look at. In fact you might want to post the HTML to the openlayers list and as the question there first, to make sure you have equivalent requests between WNS and Mapserver. -Steve W > I will give it some thought tomorrow. > > John > > > > >>>> "Paul Ramsey" 17/09/08 5:15 PM >>> > John, > > The idea that CGI is naturally a much slower situation than a > long-running process is a bit of a red herring in the case of > Mapserver, and I say that as someone who is anal retentive about > these things. Unless your Mapserver installation has some naturally > latent components (database connections, primarily) you'll find that > moving from CGI to FastCGI is worth about 15ms per request. > > On Wed, Sep 17, 2008 at 8:40 AM, John Westwood > wrote: > >> The reason I am trying to get MapServer to work with fast_cgi is >> because I am experiencing poor performance with OpenLayers. I >> believe that OpenLayers starts a new MapServer instance for each >> tile request, thus causing an unnecessary overhead. Am I correct? > > Yes and no. If you are experiencing noticeably poor performance (you > can actually *see* it being slow) the only place that the CGI > overhead could be the cause is if you're connecting to Oracle or SDE > for some of your layers. If that's not the case, look elsewhere > first, the very small gains you will receive from moving to FastCGI > will not change your underlying problem. > > Paul > > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- A non-text attachment was scrubbed... Name: 2#EmbeddedMap.js Type: application/x-javascript Size: 4824 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 4#gbhgis.map Type: application/octet-stream Size: 17185 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 5#Part.004 Type: application/octet-stream Size: 169 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: From vtammineni at roulacglobal.com Mon Sep 22 20:37:19 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Tue, 23 Sep 2008 09:07:19 +0530 Subject: [mapserver-users] example symbology files - points of interest In-Reply-To: <3D56274B4A7874468F58FADDBFD09801061CD2E6@llmhs02.r8nssis.local> References: <3D56274B4A7874468F58FADDBFD09801061CD2E6@llmhs02.r8nssis.local> Message-ID: <002101c91d2d$b03cfad0$10b6f070$@com> Hi, QGIS is an open source desktop application.In that export to mapfile tools is available .That would help you. Thanks and Regards Venkat. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: Monday, September 22, 2008 7:42 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] example symbology files - points of interest Hello, I need to add "points of interest" on our mapserver site. Some of the items that I will need to show is an image for city hall, parks, schools, hospitals etc. Does anyone have an example on how I could go about doing this? Next, I would like to create a "bike trail" layer. One of the items I would like to do is have an "recreational" icon show up along the segment at a given number of pixels on the map; ie every 3 inches on the screen. I was unsuccessful when I tried using pixels. Has anyone had success doing this? Last, As a somewhat new user, I find that the first several map files were hard to do. Does anyone know of a good tool to work with to help create mapfiles? Mark Volz GIS Specialist Lyon County, MN (507) 532-8218 -------------- next part -------------- An HTML attachment was scrubbed... URL: From snaperski at gmail.com Mon Sep 22 22:20:18 2008 From: snaperski at gmail.com (Raivo Alla) Date: Tue, 23 Sep 2008 08:20:18 +0300 Subject: [mapserver-users] Mapserver and GDB files In-Reply-To: <7B01866D-74D3-4BF3-9823-6EFD15194B86@kyngchaos.com> References: <6246727221874A4FB8D3F9BBC37D9BD5021FC0A9@s-sp22.pca.state.mn.us> <48D7B2E3.5070600@pobox.com> <7B01866D-74D3-4BF3-9823-6EFD15194B86@kyngchaos.com> Message-ID: <49dc012b0809222220s45b020a7pc0385451a63e8ba@mail.gmail.com> Thank you all very much for answers. I am working on a project, where all data is in .gdb files and styles in ArcGIS .lyr format. I guess both - getting .gdb and .lyr files working in mapserver environment - are at the moment not possible? So I must convert convert .gdb files (using FME maybe?) to some readable format like shapefiles (if possible) and just type manually mapserver symbology files... uhh. Raivo On Mon, Sep 22, 2008 at 7:19 PM, William Kyngesburye wrote: > On Sep 22, 2008, at 9:59 AM, Frank Warmerdam wrote: > > Fawcett, David wrote: >> >>> .gdb files are ESRI's new File Geodatabase proprietary format. I am >>> quite sure that OGR/FWTools does not support it. >>> >> >> David, >> >> Ah thanks. Indeed they are not supported and it is hard to imagine they >> will be supported for a while. ESRI has indicated in the past that they >> intend to provide an open mechanism to access the file geodatabase and >> that >> is still likely to happen at some point. However, I think this would be >> quite a few months away at best. >> > > Hmmm, and if ESRI provides it, then, like SDE, it probably won't be > available for OSX (or other linux platforms?). Bleh. > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > "I ache, therefore I am. Or in my case - I am, therefore I ache." > > - Marvin > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at cleverelephant.ca Mon Sep 22 22:23:34 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Mon, 22 Sep 2008 22:23:34 -0700 Subject: [mapserver-users] Mapserver and GDB files In-Reply-To: <49dc012b0809222220s45b020a7pc0385451a63e8ba@mail.gmail.com> References: <6246727221874A4FB8D3F9BBC37D9BD5021FC0A9@s-sp22.pca.state.mn.us> <48D7B2E3.5070600@pobox.com> <7B01866D-74D3-4BF3-9823-6EFD15194B86@kyngchaos.com> <49dc012b0809222220s45b020a7pc0385451a63e8ba@mail.gmail.com> Message-ID: <30fe546d0809222223g711a0009q5db177872a020ed@mail.gmail.com> Write an ArcGIS script to do all the work :) ArcGIS can export to Shape file and can read lyr files. Heck: http://arcscripts.esri.com/details.asp?dbid=12766 P. On Mon, Sep 22, 2008 at 10:20 PM, Raivo Alla wrote: > Thank you all very much for answers. > I am working on a project, where all data is in .gdb files and styles in > ArcGIS .lyr format. > I guess both - getting .gdb and .lyr files working in mapserver environment > - are at the moment not possible? > So I must convert convert .gdb files (using FME maybe?) to some readable > format like shapefiles (if possible) and > just type manually mapserver symbology files... uhh. > > > Raivo > > On Mon, Sep 22, 2008 at 7:19 PM, William Kyngesburye > wrote: >> >> On Sep 22, 2008, at 9:59 AM, Frank Warmerdam wrote: >> >>> Fawcett, David wrote: >>>> >>>> .gdb files are ESRI's new File Geodatabase proprietary format. I am >>>> quite sure that OGR/FWTools does not support it. >>> >>> David, >>> >>> Ah thanks. Indeed they are not supported and it is hard to imagine they >>> will be supported for a while. ESRI has indicated in the past that they >>> intend to provide an open mechanism to access the file geodatabase and >>> that >>> is still likely to happen at some point. However, I think this would be >>> quite a few months away at best. >> >> Hmmm, and if ESRI provides it, then, like SDE, it probably won't be >> available for OSX (or other linux platforms?). Bleh. >> >> ----- >> William Kyngesburye >> http://www.kyngchaos.com/ >> >> "I ache, therefore I am. Or in my case - I am, therefore I ache." >> >> - Marvin >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Schoenhammer.Herbert at Regensburg.de Mon Sep 22 23:40:17 2008 From: Schoenhammer.Herbert at Regensburg.de (=?iso-8859-1?Q?Sch=F6nhammer=2C_Herbert?=) Date: Tue, 23 Sep 2008 08:40:17 +0200 Subject: AW: AW: [mapserver-users] Oracle Spatial + MS 5.2.0: No drawing ofcertain objects In-Reply-To: <30fe546d0809220917x34ecee2dhbb86d64405242412@mail.gmail.com> Message-ID: Hello Paul, hello list, now the circumference of those polygons is rendered correct. But (unfortenately) only parts of the area are filled with the polygon-color. Imagine, that all points of the oracle-geometry-object are connected by straight-lines (instead of arcs). The inner area of this outline is not rendered in the polygon-color. The segment archs between this outline and the arcs of the circumference are filled with the correct color. If there is a straight line in the circumference, the area is filled correct ! (See the little gif-examples of the appendix, if it is allowed to upload appendixes to the list !) There is no difference using driver gd or agg ! greetings Herbert >-----Urspr?ngliche Nachricht----- >Von: Paul Ramsey [mailto:pramsey at cleverelephant.ca] >Gesendet: Montag, 22. September 2008 18:17 >An: Steve Lime >Cc: mapserver-users at lists.osgeo.org; Sch?nhammer, Herbert >Betreff: Re: AW: [mapserver-users] Oracle Spatial + MS 5.2.0: >No drawing ofcertain objects > > >Should work, methinks. > > break; >+ case 32: /* simple polygon with only arcs >for bounds */ >+ osArcPolygon(hand, shape, obj, ord_start, >ord_end, points, data3d); >+ shape->type = MS_SHAPE_POLYGON; >+ break; > case 33: /* rectangle defined by 2 points */ > > >On Mon, Sep 22, 2008 at 6:55 AM, Steve Lime > wrote: >> The shape->type value needs to be set to MS_SHAPE_POLYGON I believe. >> I've not looked at where >> Paul's patch sits in the source though so I don't know where >that needs >> to happen. Perhaps as the >> second line in each of the cases of the patch? >> >> e.g. shape->type = MS_SHAPE_POLYGON; >> >> Steve >> >>>>> Sch?nhammer, Herbert 09/22/08 >> 2:43 AM >>> >> Hallo Paul, >> >> using this patch, mapserver is not ignoring those polygons anymore >> (polygons, which exists ONLY of a connected sequence of circular arcs >> that closes on itself). >> >> But instead of rendering those polygons, I get know an error message: >> >> msDrawMap(): Image handling error. Failed to draw layer named >> 'stgk_gebaeude_orcl'. >> msDrawShape(): General error message. Only polygon shapes >can be drawn >> using a POLYGON layer definition. >> >> >> The first step for rendering those polgons is done: >Mapserver recognizes >> the polygons ! >> >> Can I do anything else ? >> >> Greetings >> Herbert >> >> >> >> "polygons, which exists ONLY of >>>a connected sequence of circular arcs that closes on itself >> >>>-----Urspr?ngliche Nachricht----- >>>Von: Paul Ramsey [mailto:pramsey at cleverelephant.ca] >>>Gesendet: Freitag, 19. September 2008 16:40 >>>An: Sch?nhammer, Herbert >>>Cc: Mapserver-users (mapserver-users at lists.osgeo.org) >>>Betreff: Re: [mapserver-users] Oracle Spatial + MS 5.2.0: No >>>drawing of certain objects >>> >>> >>>Try the following completely untested patch: >>> >>>Index: maporaclespatial.c >>>=================================================================== >>>--- maporaclespatial.c (revision 7827) >>>+++ maporaclespatial.c (working copy) >>>@@ -1476,6 +1476,9 @@ >>> case 31: /* simple polygon with n points, last >>>point equals the first one */ >>> osClosedPolygon(hand, shape, obj, ord_start, >>>ord_end, points, elem_type, data3d); >>> break; >>>+ case 32: /* simple polygon with only arcs >>>for bounds */ >>>+ osArcPolygon(hand, shape, obj, ord_start, >>>ord_end, points, data3d); >>>+ break; >>> case 33: /* rectangle defined by 2 points */ >>> osRectangle(hand, shape, obj, ord_start, >>>ord_end, points, point5, data3d); >>> break; >>> >>> >>> >>> >>>On Fri, Sep 19, 2008 at 3:20 AM, Sch?nhammer, Herbert >>> wrote: >>>> Hallo Paul, >>>> >>>> 1.) Yes, there is no difference in behavior between the old >>>and new mapserver versions. >>>> >>>> 2.) Yes and No. In detail: >>>> >>>> 2a) If there is at most ONE straight line in the polygon, >>>mapserver renders this polygon correct, even if there is a >>>curved segement (arc) in the polygon. For example this is a >>>church, which contains three arcs in the polygon (triple >>>11,2,2 and 31,2,2 and 51,2,2). This polygon is rendered correct. >>>> >>>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>>(14080503,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>>o_array(1,1005,7,1,2,1,11,2,2,15,2,1,31,2,2,35,2,1,51,2,2,55,2, >>>1),mdsys.sdo_ordinate_array(4506867.81,5430890.76,4506872.05,54 >>>30889.72,4506881.01,5430887.51,4506881.58,5430889.82,4506883.14 >>>,5430896.16,4506937.22,5430883.9,4506941.09222415,5430884.75129 >>>585,4506943.86,5430887.59,4506948.31,5430886.72,4506947.53,5430 >>>882.98,4506950.45,5430882.37,4506950.02,5430880.3,4506955.17,54 >>>30879.23,4506955.58,5430881.2,4506958.35,5430880.62,4506959.21, >>>5430884.73,4506961.57385865,5430886.53782314,4506960.13,5430889 >>>.14,4506960.94,5430893,4506957.92,5430893.63,4506958.4,5430896. >>>12,4506953.2,5430897.12,4506952.74,5430894.72,4506950.1,5430895 >>>.27,4506949.23,5430891.12,4506944.73,5430892,4506942.9045371,54 >>>30896.27675424,4506939.38,5430899.31,4506893.36,5430909.55,4506 >>>886.79,5430911.01,4506888.96,5430919.81,4506882.98,5430921.28,4 >>>506874.83,5430923.28,4506874.09,5430920.3,4506872.55,5430914.03 >>>,4506866.92,5430915.42,4506864.74,5430915.95,4506861.35,5430902 >>>.17,4506870.09,5430900.02,4506867.81,5430890.76))); >>>> >>>> 2b) Mapserver does not render polygons, which exis>> Greetings >>>> Herbert >>>> >>>>>-----Urspr?ngliche Nachricht----- >>>>>Von: Paul Ramsey [mailto:pramsey at cleverelephant.ca] >>>>>Gesendet: Donnerstag, 18. September 2008 16:35 >>>>>An: Sch?nhammer, Herbert >>>>>Betreff: Re: [mapserver-users] Oracle Spatial + MS 5.2.0: No >>>>>drawing of certain objects >>>>> >>>>> >>>>>So, to confirm, there is now no difference in behavior between your >>>>>old and new mapserver installations? >>>>> >>>>>However, the old and new installations share an inability to render >>>>>polygons that include curved boundaries? >>>>> >>>>>P. >>>>> >>>>>On Thu, Sep 18, 2008 at 3:14 AM, Sch?nhammer, Herbert >>>>> wrote: >>>>>> Hallo Paul, >>>>>> >>>>>> (I needed some time because new hardware, ...) >>>>>> >>>>>> Okay: First of all: >>>>>> >>>>>> The reported NEW DIFFICULTIES are not reproducable any more. >>>>>I really don't know what happened. But LINESTRINGS made up of >>>>>a connected sequence of circular arcs ARE DRAWN by mapserver. >>>>>> >>>>>> The old problem still exists. >>>>>> ============================= >>>>>> POLYGONS made up of a connected sequence of circular arcs >>>>>ARE NOT DRAWN by mapserver. No error message. >>>>>> >>>>>> I have made a config error in my mapfile. So I could get an >>>>>error message from mapserver. In this error message the >>>>>SQL-statement sent to the oracle database is: >>>>>> >>>>>> SELECT fid, geom FROM AX_GEBAEUDE WHERE SDO_FILTER( geom, >>>>>MDSYS.SDO_GEOMETRY(2003, 82032, >>>>>NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARR >>>>>AY(4505602.25,5430841.31,4505622.97,5430856.39) >>>>>),'querytype=window') = 'TRUE' >>>>>> >>>>>> When i submit this SQL direct to the databse I get 4 >>>geometries back. >>>>>> Two POLYGONS made up of straight line segements. >>>>>> Two POLYGONS made up of a connected sequence of circular arcs. >>>>>> >>>>>> The polygons with straight line segments are drawn, the >>>>>polygons made up of a connected sequence of circular arcs are >>>>>not drawn. >>>>>> >>>>>> I have exported these objects from my database: >>>>>> >>>>>> The drawn polygons are: >>>>>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>>>>(14079074,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>>>>o_array(1,1003,1),mdsys.sdo_ordinate_array(4505658.59,5430772.1 >>>>>7,4505643.27,5430803.04,4505634.39,5430798.05,4505625.41,543081 >>>>>4,4505619.34,5430810.5898,4505607.9,5430830.95,4505607.4,543083 >>>>>0.7,4505600.29,5430845.02,4505511.2,5430801.08,4505534.42,54307 >>>>>54.01,4505552.34,5430762.86,4505569.51,5430728.08,4505658.59,54 >>>>>30772.17))); >>>>>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>>>>(14079078,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>>>>o_array(1,1003,1),mdsys.sdo_ordinate_array(4505643.27,5430803.0 >>>>>4,4505643.85,5430803.37,4505644.39,5430803.67,4505644.34,543080 >>>>>3.76,4505635.46,5430819.49,4505633.64,5430822.73,4505619.68,543 >>>>>0847.46,4505609.69,5430841.9199,4505613.95,5430834.36,4505625.4 >>>>>1,5430814,4505634.39,5430798.05,4505643.27,5430803.04))); >>>>>> >>>>>> The polygons which are not drawn are: >>>>>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>>>>(14079126,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>>>>o_array(1,1003,2),mdsys.sdo_ordinate_array(4505611.03,5430848.5 >>>>>5,4505611.03,5430845.19,4505614.39,5430845.19,4505614.39,543084 >>>>>8.55,4505611.03,5430848.55))); >>>>>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>>>>(14079128,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>>>>o_array(1,1003,2),mdsys.sdo_ordinate_array(4505615.64,5430849.9 >>>>>,4505615.64,5430847.3,4505618.24,5430847.3,4505618.24,5430849.9 >>>>>,4505615.64,5430849.9))); >>>>>> >>>>>> >>>>>> All polygons are GTYPE=2003 in SRID=82032. All POLYGONS are >>>>>SDO_ETYPE=1003. >>>>>> The POLYGONS with SDO_INTERPRETATION = 1 are drawn. >>>>>> The POLYGONS with SDO_INTERPRETATION = 2 are not drawn. >>>>>> >>>>>> >>>>>> greetings >>>>>> Herbert >>>>>> >>>>>>>-----Urspr?ngliche Nachricht----- >>>>>>>Von: Paul Ramsey [mailto:pramsey at cleverelephant.ca] >>>>>>>Gesendet: Donnerstag, 11. September 2008 19:07 >>>>>>>An: Sch?nhammer, Herbert >>>>>>>Cc: Mapserver-users (ma>>>>>Betreff: Re: >[mapserver-users] Oracle Spatial + MS 5.2.0: No >>>>>>>drawing of certain objects >>>>>>> >>>>>>> >>>>>>>Could you do a bit more legwork and see if the problem >>>appears at the >>>>>>>transition to 5.0 or the transition to 5.2? From there we >>>>>can probably >>>>>>>find the code change that caused it. >>>>>>> >>>>>>>P. >>>>>>> >>>>>>>On Wed, Sep 10, 2008 at 7:03 AM, Sch?nhammer, Herbert >>>>>>> wrote: >>>>>>>> Hi list, >>>>>>>> >>>>>>>> ( I had a similar discussion using Mapserver 4.10.x and >>>>>>>Oracle Spatial 9i in >>>>>>>> May 2007. But the problems changed using Mapserver 5.2.0 .). >>>>>>>> >>>>>>>> >>>>>>>> The new environmet: >>>>>>>> =============== >>>>>>>> Server SLES10 >>>>>>>> Mapserver 5.2.0 >>>>>>>> Oracle OCI - Interface used with Oracle 11-Client-Software >>>>>>>> >>>>>>>> DB-Server Windows 2xxx >>>>>>>> Oracle Spatial 10g >>>>>>>> >>>>>>>> >>>>>>>> The new problem : >>>>>>>> ============== >>>>>>>> Line strings made up of a connected sequence of circular >>>>>>>arcs ARE NOT DRAWN. >>>>>>>> No error message is generated by mapserver, but the objects >>>>>>>are not shown in >>>>>>>> the map. >>>>>>>> >>>>>>>> Example: >>>>>>>> INSERT INTO AX_BES_GEBLINIE (FID,GEOM) VALUES >>>>>>>> >>>>>>>(14196363,mdsys.sdo_geometry(2002,82032,null,mdsys.sdo_elem_inf >>>>>>>o_array(1,2,2),mdsys.sdo_ordinate_array(4512474.1948,5426555.09 >>>>>>>79,4512473.3318,5426554.2349,4512474.1948,5426553.3719,4512475. >>>>>>>0578,5426554.2349,4512474.1948,5426555.0979))); >>>>>>>> >>>>>>>> (Background: >>>>>>>> In my mailing from May 2007 I reported that these >>>Objects are drawn >>>>>>>> correctly by mapserver. This statement is indeed >>>>>>>reproducable correct using >>>>>>>> mapserver 4.10.x. This is independent from the used oracle >>>>>>>version ( 9i or >>>>>>>> 10g ). >>>>>>>> Now, using mapserver 5.2.0 these objects are not drawn >>>>>>>anymore. No error >>>>>>>> message is produced. This is also independent from the used >>>>>>>oracle version ( >>>>>>>> 9i or 10g ). ) >>>>>>>> >>>>>>>> The old problem: >>>>>>>> ============ >>>>>>>> Polygons made up of a connected sequence of circular arcs >>>>>>>ARE NOT DRAWN. No >>>>>>>> error message is generated by mapserver, but the objects are >>>>>>>not shown in >>>>>>>> the map. >>>>>>>> >>>>>>>> (This problem was already reported in May 2007. The >>>>>>>behaviour did not change >>>>>>>> from mapserver 4.10.x to 5.2.0) >>>>>>>> >>>>>>>> Example: >>>>>>>> INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES >>>>>>>> >>>>>>>(14079065,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_inf >>>>>>>o_array(1,1003,2),mdsys.sdo_ordinate_array(4505553.2585,5430757 >>>>>>>.2937,4505551.1659,5430755.2011,4505553.2585,5430753.1085,45055 >>>>>>>55.3511,5430755.2011,4505553.2585,5430757.2937))); >>>>>>>> >>>>>>>> >>>>>>>> Oracle Documentation: >>>>>>>> ================= >>>>>>>> Reading the Oracle Docs, I think all the objects are correct >>>>>>>defined. The >>>>>>>> geometries are validating by oracle 9i and oracle 10g (Using >>>>>>>the st_valid - >>>>>>>> method, e.g. SELECT a.GEOM.ST_IsValid() >>>>>>>> FROM ax_bes_geblinie a WHERE a.fid = 14196363;). >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Does anybody know a solution how to draw these objects with >>>>>>>mapserver ? >>>>>>>> >>>>>>>> greetings >>>>>>>> Herbert >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> mapserver-users mailing list >>>>>>>> mapserver-users at lists.osgeo.org >>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > -------------- next part -------------- A non-text attachment was scrubbed... Name: ms-error.gif Type: image/gif Size: 1188 bytes Desc: ms-error.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ms-correct.gif Type: image/gif Size: 1238 bytes Desc: ms-correct.gif URL: From guillaume.sueur at neogeo-online.net Mon Sep 22 23:47:51 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Tue, 23 Sep 2008 08:47:51 +0200 Subject: [mapserver-users] Using Fast CGI with MapServer toalleviate poor performance In-Reply-To: References: Message-ID: <48D89117.6080103@neogeo-online.net> I'm not a palette guru, so I won't answer on the raster mess up. But for your dcw vectors, as I could see, your are requesting the WMS layer in png format. Thus, this outputformat name doesn't exist in your mapfile, where you defined png24. So you should try to rename your OUTPUTFORMAT to PNG, or change your layers configuration and have them asking for png24. Actually, this could help for the raster problem too ;-) regards, Guillaume John.Westwood at port.ac.uk a ?crit : > Hi Everybody, > > I am attaching a cut down version of my html, javascript and map files. On our server the EmbeddedMap.js lives in the OpenLayers directory and is used by gbhgis_openlayers.html. > > The test address http://148.197.8.119/gbhgis_openlayers.html . This is just a test server so please don't tell the whole World about it! :) > > There are four layers, 2 x raster (europe 1940s, WMS and MapServer) and 2 x vector / raster (Digital Chart of the World, WMS and MapServer) . > > A problem with using the OpenLayers.MapServer method is that the (1) The raster colours are messed up and (2) Anti-aliasing is not being done on the vector layers. I don't know why this is. > > Regards, > > John Westwood > > >>>> Stephen Woodbridge 18/09/08 9:08 PM >>> > John Westwood wrote: >> Hi Paul and other MapServer Gurus, >> >> I have discovered a huge speed increase by using OpenLayers.MapServer >> (native) layers instead of OpenLayers.WMS layers. It is about ten >> times faster, I do not exaggerate. Why is WMS so slow? I have read >> that MapServer is a fast WMS server, have I done something wrong for >> it not to be? >> >> What do you think could be the problem? > > You might want to check that you are comparing apples and apples. I > would expect WMS to be a little slower because there is some overhead to > query the server before actually making the image request. > > Do you have ratio set the same for both layers? > What versions of Mapserver and OpenLayers are you using? > > Can you post a URL that has the two layers present in the layer switch > so we can look at the requests and how your have it configured? Or post > the HTML so we can look at. In fact you might want to post the HTML to > the openlayers list and as the question there first, to make sure you > have equivalent requests between WNS and Mapserver. > > -Steve W > >> I will give it some thought tomorrow. >> >> John >> >> >> >> >>>>> "Paul Ramsey" 17/09/08 5:15 PM >>> >> John, >> >> The idea that CGI is naturally a much slower situation than a >> long-running process is a bit of a red herring in the case of >> Mapserver, and I say that as someone who is anal retentive about >> these things. Unless your Mapserver installation has some naturally >> latent components (database connections, primarily) you'll find that >> moving from CGI to FastCGI is worth about 15ms per request. >> >> On Wed, Sep 17, 2008 at 8:40 AM, John Westwood >> wrote: >> >>> The reason I am trying to get MapServer to work with fast_cgi is >>> because I am experiencing poor performance with OpenLayers. I >>> believe that OpenLayers starts a new MapServer instance for each >>> tile request, thus causing an unnecessary overhead. Am I correct? >> Yes and no. If you are experiencing noticeably poor performance (you >> can actually *see* it being slow) the only place that the CGI >> overhead could be the cause is if you're connecting to Oracle or SDE >> for some of your layers. If that's not the case, look elsewhere >> first, the very small gains you will receive from moving to FastCGI >> will not change your underlying problem. >> >> Paul >> >> _______________________________________________ mapserver-users >> mailing list mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > ------------------------------------------------------------------------ > > > Map Information > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From umberto.nicoletti at gmail.com Mon Sep 22 23:53:40 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Tue, 23 Sep 2008 08:53:40 +0200 Subject: [mapserver-users] java mapscript + postgis = jvm crashed In-Reply-To: <259451.40654.qm@web23701.mail.ird.yahoo.com> References: <259451.40654.qm@web23701.mail.ird.yahoo.com> Message-ID: <75b4b93e0809222353j375978esc3044efa1e6329ac@mail.gmail.com> I am using postgis layers (on Linux, though) and it works fine. Do you share the same mapObj between threads (in application scope) or multiple requests (in session scope)? mapscript is safe only when a new mapObj is created for each request. What other kind of layers do you have in your map? Umberto On Mon, Sep 22, 2008 at 10:34 PM, Ludovico Bianchini wrote: > - Windows Vista Home Premium > - Postgres 8.1 > - jvm 1.6.0 > - jboss 4.0.3SP1, tomcat 5.5 > - struts2 > - ms4w 2.2.3 (mapscript.jar, mapscript.dll, all other dlls taken from this pack) > - postgresql-8.2-505.jdbc4.jar > > mapscript.jar is placed in C:\jboss-4.0.3SP1\server\default\deploy\jbossweb-tomcat55.sar > > When a layer with a postgis connection is turned on, the draw method crashes the jvm. > > Error file attached. > > Is there any solution to this problem? > > Postgis is listed in "unsafe components", i have not understood if there is one way to make it work using thread syncronization. > > Thanks in advance for any help. > > Ludovico > > > __________________________________________________ > Do You Yahoo!? > Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi > http://mail.yahoo.it > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Antti.Roppola at brs.gov.au Mon Sep 22 22:51:21 2008 From: Antti.Roppola at brs.gov.au (Roppola, Antti - BRS) Date: Tue, 23 Sep 2008 15:51:21 +1000 Subject: [mapserver-users] Mapserver and GDB files [SEC=UNCLASSIFIED] In-Reply-To: <49dc012b0809222220s45b020a7pc0385451a63e8ba@mail.gmail.com> References: <6246727221874A4FB8D3F9BBC37D9BD5021FC0A9@s-sp22.pca.state.mn.us><48D7B2E3.5070600@pobox.com><7B01866D-74D3-4BF3-9823-6EFD15194B86@kyngchaos.com> <49dc012b0809222220s45b020a7pc0385451a63e8ba@mail.gmail.com> Message-ID: <61C2DEA055980B418D063F8646FCAEFC05AD1B2B@ACT001CL03EX03.agdaff.gov.au> More than open mechanisms. I had heard (at a conference I think) that the intent was to have an open format. However I also later heard that ESRI are also very keen to avoid a bunch of issues such as those that occured when they released the Shape format. Most notably, people only implementing parts of the shape spec and leaving out important bits like data integrity. I suppose this ends up being a lot more complex for ESRI than just releasing a spec. This gives some idea on likely timing: http://events.esri.com/uc/QandA/index.cfm?ConferenceID=51AD3E9D-D566-ED8 5-AEE0DBF4F59C45FD Q: What are ESRI's plans for opening up access to the geodatabase? ESRI will provide full and open access to the geodatabase using the following methods: * A free and open API to the file geodatabase. * The file geodatabase was introduced at ArcGIS 9.2. While ESRI would ideally like to open the file geodatabase format in a manner similar to what we did for shapefiles when we released ArcView 2, geodatabases are complex and can be easily corrupted outside the ArcGIS environment. Instead, we plan to engineer a high performing and well documented API that developers can freely embed in custom applications and that will read and write file geodatabase datasets. This will be released after ArcGIS 9.3. * Geodatabase GML. ESRI will release a full geodatabase GML schema with ArcGIS 9.3. This profile will be based on the OGC specifications and built on the simple feature GML specification adopted by OGC this past year. I'd kind of hope that this is just a bunch of c libraries that we can compile on anything we want, but ultimately we'll just have to wait and see... Cheers, Antti On Mon, Sep 22, 2008 at 7:19 PM, William Kyngesburye wrote: On Sep 22, 2008, at 9:59 AM, Frank Warmerdam wrote: Fawcett, David wrote: .gdb files are ESRI's new File Geodatabase proprietary format. I am quite sure that OGR/FWTools does not support it. David, Ah thanks. Indeed they are not supported and it is hard to imagine they will be supported for a while. ESRI has indicated in the past that they intend to provide an open mechanism to access the file geodatabase and that is still likely to happen at some point. However, I think this would be quite a few months away at best. Hmmm, and if ESRI provides it, then, like SDE, it probably won't be available for OSX (or other linux platforms?). Bleh. ----- William Kyngesburye http://www.kyngchaos.com/ "I ache, therefore I am. Or in my case - I am, therefore I ache." - Marvin _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------ 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 sensitive 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 ------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From bea at ixsea.com Tue Sep 23 00:24:02 2008 From: bea at ixsea.com (=?iso-8859-1?Q?Beno=EEt_Andrieu?=) Date: Tue, 23 Sep 2008 09:24:02 +0200 Subject: [mapserver-users] Reprojection image quality Message-ID: <72843415C8DA43C5B62BD4B531110D72@ixsea.local> Hello guys ! I currently have some problems in the quality of the images produced by GDAL/Mapserver. We are using MapServer to serve raster imagery to NASA Worldwind. Our files are in UTM and Worldwind needs WGS84 images so we do reprojection on the fly. Using this, we can clearly see image quality artefacts between Worldwind (using WGS84, no choice) and a custom internal tool (showing original data). I can reproduce the problem using gdalwarp tool using a very simple command line : gdalwarp -multi -t_srs EPSG:4326 -srcnodata 0 -dstnodata 0 -r near %FileSrc%/*_p_*8bit.tif %FileDest% You can see the result on http://benoit.andrieu.free.fr/mapserver/Clipboard02.png : on the right, the original image and on the left, the resulting output. I suspect that using some others settings, I could improve the quality on gdalwarp's output in a first time and on mapserver's output in a second time but I don't know where to start... So if anyone could help or suggest anything, he will be welcome !!! Thanks in advance, Beno?t -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan.mincik at gmail.com Tue Sep 23 01:04:02 2008 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Tue, 23 Sep 2008 10:04:02 +0200 Subject: [mapserver-users] mapserver + MS SQL Message-ID: <200809231004.03022.ivan.mincik@gmail.com> Hi list, At first, I would like to say that I am not a fan in replacing perfect PostGIS database to MS SQL, but I must to adapt to customer's needs. I would like to ask if somebody has experience with loading data to mapserver from MS SQL Spatial 2008. Now, in 5.2 there is possibility to use new PLUGIN for MS SQL, which is only for Windows .... Other possibility is to use ODBC connection through OGR which can be working also in Linux. So my questions are : 1. Is there any other possibility ? 2. What is Your experience with performance when using ODBC connection through OGR ? 3. What is Your experience with performance when using new PLUGIN for MS SQL in 5.2 ? Thanks a lot -- Ivan From bea at ixsea.com Tue Sep 23 01:33:51 2008 From: bea at ixsea.com (=?iso-8859-1?Q?Beno=EEt_Andrieu?=) Date: Tue, 23 Sep 2008 10:33:51 +0200 Subject: [mapserver-users] Reprojection image quality In-Reply-To: <72843415C8DA43C5B62BD4B531110D72@ixsea.local> References: <72843415C8DA43C5B62BD4B531110D72@ixsea.local> Message-ID: Hi all ! I am trying to play with the parameters of gdalwarp. It seems that the tps option gives better output result than omitting this parameter. I just tried on a subset of my data and the resulting picture is very nice comparing to the previous. Right now, I am trying it on the whole dataset. By the way, could someone explain what it really does ? Is this a better/different algorithm ? -tps: Force use of thin plate spline transformer based on available GCPs. Beno?t ----- Original Message ----- From: Beno?t Andrieu To: mapserver-users at lists.osgeo.org Sent: Tuesday, September 23, 2008 9:24 AM Subject: [mapserver-users] Reprojection image quality Hello guys ! I currently have some problems in the quality of the images produced by GDAL/Mapserver. We are using MapServer to serve raster imagery to NASA Worldwind. Our files are in UTM and Worldwind needs WGS84 images so we do reprojection on the fly. Using this, we can clearly see image quality artefacts between Worldwind (using WGS84, no choice) and a custom internal tool (showing original data). I can reproduce the problem using gdalwarp tool using a very simple command line : gdalwarp -multi -t_srs EPSG:4326 -srcnodata 0 -dstnodata 0 -r near %FileSrc%/*_p_*8bit.tif %FileDest% You can see the result on http://benoit.andrieu.free.fr/mapserver/Clipboard02.png : on the right, the original image and on the left, the resulting output. I suspect that using some others settings, I could improve the quality on gdalwarp's output in a first time and on mapserver's output in a second time but I don't know where to start... So if anyone could help or suggest anything, he will be welcome !!! Thanks in advance, Beno?t ------------------------------------------------------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From damarmo at gmail.com Tue Sep 23 02:00:05 2008 From: damarmo at gmail.com (David Martinez Morata) Date: Tue, 23 Sep 2008 11:00:05 +0200 Subject: [mapserver-users] KML for WMS Service Message-ID: <9771eb540809230200x456b7f5w16d6099aa1891005@mail.gmail.com> Hi list. I just a little question. How I can create a KML file to show my WMS server in Google Earth? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at ec.gc.ca Tue Sep 23 05:38:13 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Tue, 23 Sep 2008 08:38:13 -0400 Subject: [mapserver-users] KML for WMS Service In-Reply-To: <9771eb540809230200x456b7f5w16d6099aa1891005@mail.gmail.com> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF5F6@ecburexch1.ontario.int.ec.gc.ca> MapServer does not (currently) support KML output. If you're talking about using a KML document as a wrapper to a WMS service, then you'll find this (nice) example handy: http://ilmbwww.gov.bc.ca/dm/wms/data.html ..Tom ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of David Martinez Morata Sent: 23 September, 2008 5:00 AM To: mapserver Subject: [mapserver-users] KML for WMS Service Hi list. I just a little question. How I can create a KML file to show my WMS server in Google Earth? Thanks From Bob.Basques at ci.stpaul.mn.us Tue Sep 23 05:48:44 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Tue, 23 Sep 2008 07:48:44 -0500 Subject: [mapserver-users] KML for WMS Service Message-ID: <48D8AD98020000A80000D915@jeckle> All, I don't think I'm answering your question directly, but I've learned a few things about how Google earth imports WMS data directly, and that in turn showed me how to export the layers from Google Earth into KML. So now I can write the appropriate KML output. GE will import WMS services directly, but it's user interface leave a bit to be desired on the operational side. I've been toying around with the same ideas though, where MapServer provides the result as a KML for GE use. So, my next step would be to make use of a MapServer template to generate the KML code (using the WMS export from GE as a starting point). But this is where I stopped in the steps, got other more pressing stuff at the moment. bobb >>> "David Martinez Morata" 09/23/08 4:00 AM >>> Hi list. I just a little question. How I can create a KML file to show my WMS server in Google Earth? Thanks From bea at ixsea.com Tue Sep 23 07:04:22 2008 From: bea at ixsea.com (=?iso-8859-1?Q?Beno=EEt_Andrieu?=) Date: Tue, 23 Sep 2008 16:04:22 +0200 Subject: [mapserver-users] Reprojection image quality In-Reply-To: References: <72843415C8DA43C5B62BD4B531110D72@ixsea.local> Message-ID: <675B4465B4D148078CC3F69A50755C1B@ixsea.local> Hi all ! Once again, I'm here !! So my results : - tps has no effects at all, - generating a merge with gdalwarp on a small number of files or generating a merge with gdalwarp on all the files plus specifying the same extent of the small number of files does not give me the same result. In the first case, the image is great with no artefacts, in the second case the image is not good at all with duplicated groups of pixels along vertical and horizontal lines. One could see the results on the same files as previously : http://benoit.andrieu.free.fr/mapserver/Clipboard02.png Has anyone any tips for me ?? ^^ Beno?t ----- Original Message ----- From: Beno?t Andrieu To: mapserver-users at lists.osgeo.org Sent: Tuesday, September 23, 2008 10:33 AM Subject: Re: [mapserver-users] Reprojection image quality Hi all ! I am trying to play with the parameters of gdalwarp. It seems that the tps option gives better output result than omitting this parameter. I just tried on a subset of my data and the resulting picture is very nice comparing to the previous. Right now, I am trying it on the whole dataset. By the way, could someone explain what it really does ? Is this a better/different algorithm ? -tps: Force use of thin plate spline transformer based on available GCPs. Beno?t ----- Original Message ----- From: Beno?t Andrieu To: mapserver-users at lists.osgeo.org Sent: Tuesday, September 23, 2008 9:24 AM Subject: [mapserver-users] Reprojection image quality Hello guys ! I currently have some problems in the quality of the images produced by GDAL/Mapserver. We are using MapServer to serve raster imagery to NASA Worldwind. Our files are in UTM and Worldwind needs WGS84 images so we do reprojection on the fly. Using this, we can clearly see image quality artefacts between Worldwind (using WGS84, no choice) and a custom internal tool (showing original data). I can reproduce the problem using gdalwarp tool using a very simple command line : gdalwarp -multi -t_srs EPSG:4326 -srcnodata 0 -dstnodata 0 -r near %FileSrc%/*_p_*8bit.tif %FileDest% You can see the result on http://benoit.andrieu.free.fr/mapserver/Clipboard02.png : on the right, the original image and on the left, the resulting output. I suspect that using some others settings, I could improve the quality on gdalwarp's output in a first time and on mapserver's output in a second time but I don't know where to start... So if anyone could help or suggest anything, he will be welcome !!! Thanks in advance, Beno?t ---------------------------------------------------------------------------- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From iratxe.lejarreta at axios.es Tue Sep 23 07:23:25 2008 From: iratxe.lejarreta at axios.es (Iratxe Lejarreta) Date: Tue, 23 Sep 2008 16:23:25 +0200 Subject: [mapserver-users] Scalability Message-ID: <200809231623.25657.iratxe.lejarreta@axios.es> Hi, I want to know what is the scalability of MapServer. I need information about the MapServer capacity when processed at the same time many requests. What is the MapServer's strategy in this case? Thanks, -- Iratxe Lejarreta www.axios.es From iratxe.lejarreta at axios.es Tue Sep 23 07:24:45 2008 From: iratxe.lejarreta at axios.es (Iratxe Lejarreta) Date: Tue, 23 Sep 2008 16:24:45 +0200 Subject: [mapserver-users] Integration with CSW Message-ID: <200809231624.45688.iratxe.lejarreta@axios.es> Hi, Know somebody about the integration of MapServer with Catalog Services for the Web (CSW)? Thanks, -- Iratxe Lejarreta www.axios.es From boolean10001 at yahoo.com Tue Sep 23 07:25:36 2008 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Tue, 23 Sep 2008 07:25:36 -0700 (PDT) Subject: [mapserver-users] KML for WMS Service In-Reply-To: <48D8AD98020000A80000D915@jeckle> Message-ID: <923954.13896.qm@web38205.mail.mud.yahoo.com> All, PostgreSQL can output as KML using the AsKML function. Hope this helps you to, at least, generate KML files. IC Carlos Ruiz? --- On Tue, 9/23/08, Bob Basques wrote: From: Bob Basques Subject: Re: [mapserver-users] KML for WMS Service To: damarmo at gmail.com, mapserver-users at lists.osgeo.org Date: Tuesday, September 23, 2008, 7:48 AM All, I don't think I'm answering your question directly, but I've learned a few things about how Google earth imports WMS data directly, and that in turn showed me how to export the layers from Google Earth into KML. So now I can write the appropriate KML output. GE will import WMS services directly, but it's user interface leave a bit to be desired on the operational side. I've been toying around with the same ideas though, where MapServer provides the result as a KML for GE use. So, my next step would be to make use of a MapServer template to generate the KML code (using the WMS export from GE as a starting point). But this is where I stopped in the steps, got other more pressing stuff at the moment. bobb >>> "David Martinez Morata" 09/23/08 4:00 AM >>> Hi list. I just a little question. How I can create a KML file to show my WMS server in Google Earth? Thanks _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at ec.gc.ca Tue Sep 23 07:26:32 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Tue, 23 Sep 2008 10:26:32 -0400 Subject: [mapserver-users] Integration with CSW References: <200809231624.45688.iratxe.lejarreta@axios.es> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F03BCC531@ecburexch1.ontario.int.ec.gc.ca> If you're asking whether MapServer can act as a CSW server, it cannot. MapServer can, however, publish a variety of OWS (WMS, WFS, WCS, SOS), which a CSW can harvest metadata from and publish for discovery. So your best bet would be to publish your WMSs to a CSW or stand up your own (Geonetwork opensource supports CSW). ..Tom -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org on behalf of Iratxe Lejarreta Sent: Tue 23-Sep-08 10:24 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Integration with CSW Hi, Know somebody about the integration of MapServer with Catalog Services for the Web (CSW)? Thanks, -- Iratxe Lejarreta www.axios.es _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woklist at kyngchaos.com Tue Sep 23 07:31:49 2008 From: woklist at kyngchaos.com (William Kyngesburye) Date: Tue, 23 Sep 2008 09:31:49 -0500 Subject: [mapserver-users] Mapserver and GDB files [SEC=UNCLASSIFIED] In-Reply-To: <61C2DEA055980B418D063F8646FCAEFC05AD1B2B@ACT001CL03EX03.agdaff.gov.au> References: <6246727221874A4FB8D3F9BBC37D9BD5021FC0A9@s-sp22.pca.state.mn.us><48D7B2E3.5070600@pobox.com><7B01866D-74D3-4BF3-9823-6EFD15194B86@kyngchaos.com> <49dc012b0809222220s45b020a7pc0385451a63e8ba@mail.gmail.com> <61C2DEA055980B418D063F8646FCAEFC05AD1B2B@ACT001CL03EX03.agdaff.gov.au> Message-ID: On Sep 23, 2008, at 12:51 AM, Roppola, Antti - BRS wrote: > ESRI will provide full and open access to the geodatabase using the > following methods: > ? A free and open API to the file geodatabase. * The file > geodatabase was introduced at ArcGIS 9.2. While ESRI would ideally > like to open the file geodatabase format in a manner similar to what > we did for shapefiles when we released ArcView 2, geodatabases are > complex and can be easily corrupted outside the ArcGIS > environment. Instead, we plan to engineer a high performing and > well documented API that developers can freely embed in custom > applications and that will read and write file geodatabase datasets. > This will be released after ArcGIS 9.3. > ? Geodatabase GML. ESRI will release a full geodatabase GML schema > with ArcGIS 9.3. This profile will be based on the OGC > specifications and built on the simple feature GML specification > adopted by OGC this past year. > > I'd kind of hope that this is just a bunch of c libraries that we > can compile on anything we want, > but ultimately we'll just have to wait and see... > I highly doubt that. ESRI publishes binary software, not source. In the same FAQ, the question about open source participation even says: " Traditionally, ESRI has been an open systems, closed source software vendor. ... ESRI continues to maintain an open system strategy. " And, unfortunately, the Geodatabase FAQ basically says outright that ESRI isn't going to publish the specs of the geodatabase format. We're at their mercy. Maybe we'll see binaries for the commercialized linux systems ESRI supports. ----- William Kyngesburye http://www.kyngchaos.com/ "Mon Dieu! but they are all alike. Cheating, murdering, lying, fighting, and all for things that the beasts of the jungle would not deign to possess - money to purchase the effeminate pleasures of weaklings. And yet withal bound down by silly customs that make them slaves to their unhappy lot while firm in the belief that they be the lords of creation enjoying the only real pleasures of existence.... - the wisdom of Tarzan From bfraser at geoanalytic.com Tue Sep 23 07:40:52 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 23 Sep 2008 08:40:52 -0600 Subject: [mapserver-users] Reprojection image quality In-Reply-To: <675B4465B4D148078CC3F69A50755C1B@ixsea.local> References: <72843415C8DA43C5B62BD4B531110D72@ixsea.local> <675B4465B4D148078CC3F69A50755C1B@ixsea.local> Message-ID: <48D8FFF4.1030204@geoanalytic.com> Beno?t, Try some of the other "-r" options such as "cubic" Brent Fraser Beno?t Andrieu wrote: > Hi all ! > > Once again, I'm here !! > > So my results : > - tps has no effects at all, > > - generating a merge with gdalwarp on a small number of files > or > generating a merge with gdalwarp on all the files plus specifying the > same extent of the small number of files > does not give me the same result. > In the first case, the image is great with no artefacts, in the second > case the image is not good at all with duplicated groups of pixels along > vertical and horizontal lines. One could see the results on the same > files as previously : > http://benoit.andrieu.free.fr/mapserver/Clipboard02.png > > Has anyone any tips for me ?? ^^ > > Beno?t > > > ----- Original Message ----- > *From:* Beno?t Andrieu > *To:* mapserver-users at lists.osgeo.org > > *Sent:* Tuesday, September 23, 2008 10:33 AM > *Subject:* Re: [mapserver-users] Reprojection image quality > > Hi all ! > > I am trying to play with the parameters of gdalwarp. > > It seems that the tps option gives better output result than > omitting this parameter. > I just tried on a subset of my data and the resulting picture is > very nice comparing to the previous. Right now, I am trying it on > the whole dataset. > > By the way, could someone explain what it really does ? > Is this a better/different algorithm ? > > -tps: > Force use of thin plate spline transformer based on available GCPs. > > Beno?t > > > ----- Original Message ----- > *From:* Beno?t Andrieu > *To:* mapserver-users at lists.osgeo.org > > *Sent:* Tuesday, September 23, 2008 9:24 AM > *Subject:* [mapserver-users] Reprojection image quality > > Hello guys ! > > I currently have some problems in the quality of the images > produced by GDAL/Mapserver. > > We are using MapServer to serve raster imagery to NASA Worldwind. > Our files are in UTM and Worldwind needs WGS84 images so we do > reprojection on the fly. > Using this, we can clearly see image quality artefacts between > Worldwind (using WGS84, no choice) and a custom internal tool > (showing original data). > > I can reproduce the problem using gdalwarp tool using a very > simple command line : > gdalwarp -multi -t_srs EPSG:4326 -srcnodata 0 -dstnodata 0 -r > near %FileSrc%/*_p_*8bit.tif %FileDest% > > You can see the result on > http://benoit.andrieu.free.fr/mapserver/Clipboard02.png : on the > right, the original image and on the left, the resulting output. > > I suspect that using some others settings, I could improve the > quality on gdalwarp's output in a first time and on mapserver's > output in a second time but I don't know where to start... > > So if anyone could help or suggest anything, he will be welcome !!! > > Thanks in advance, > > Beno?t > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From pramsey at cleverelephant.ca Tue Sep 23 08:04:33 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Tue, 23 Sep 2008 08:04:33 -0700 Subject: [mapserver-users] Scalability In-Reply-To: <200809231623.25657.iratxe.lejarreta@axios.es> References: <200809231623.25657.iratxe.lejarreta@axios.es> Message-ID: <30fe546d0809230804p399aecd8t84cac8a668bd9699@mail.gmail.com> Like Apache, Mapserver handles parallel requests by running multiple copies. In FastCGI mode, those copies are long-running daemons. In standard CGI mode, those copies are one-time affairs -- one run per request. On Tue, Sep 23, 2008 at 7:23 AM, Iratxe Lejarreta wrote: > Hi, > > I want to know what is the scalability of MapServer. > I need information about the MapServer capacity when processed at the same > time many requests. What is the MapServer's strategy in this case? > > Thanks, > > -- > Iratxe Lejarreta > www.axios.es > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pramsey at cleverelephant.ca Tue Sep 23 08:14:56 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Tue, 23 Sep 2008 08:14:56 -0700 Subject: [mapserver-users] Reprojection image quality In-Reply-To: <72843415C8DA43C5B62BD4B531110D72@ixsea.local> References: <72843415C8DA43C5B62BD4B531110D72@ixsea.local> Message-ID: <30fe546d0809230814l63240046jc08f6a2899625a4b@mail.gmail.com> Try adding lines like PROCESSING "RESAMPLE=BILINEAR" PROCESSING "OVERSAMPLE_RATIO=1.5" to your image layer in the map file. Move the oversample ratio up and down by increments of 0.1. Find something you like. If speed isn't an issue, change resample to AVERAGE and comment out the oversample line. p. On Tue, Sep 23, 2008 at 12:24 AM, Beno?t Andrieu wrote: > Hello guys ! > > I currently have some problems in the quality of the images produced by > GDAL/Mapserver. > > We are using MapServer to serve raster imagery to NASA Worldwind. > Our files are in UTM and Worldwind needs WGS84 images so we do reprojection > on the fly. > Using this, we can clearly see image quality artefacts between Worldwind > (using WGS84, no choice) and a custom internal tool (showing original data). > > I can reproduce the problem using gdalwarp tool using a very simple command > line : > gdalwarp -multi -t_srs EPSG:4326 -srcnodata 0 -dstnodata 0 -r near > %FileSrc%/*_p_*8bit.tif %FileDest% > > You can see the result on > http://benoit.andrieu.free.fr/mapserver/Clipboard02.png : on the right, the > original image and on the left, the resulting output. > > I suspect that using some others settings, I could improve the quality on > gdalwarp's output in a first time and on mapserver's output in a second time > but I don't know where to start... > > So if anyone could help or suggest anything, he will be welcome !!! > > Thanks in advance, > > Beno?t > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From dmorissette at mapgears.com Tue Sep 23 08:38:10 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 23 Sep 2008 11:38:10 -0400 Subject: [mapserver-users] Metadata Hashtable In-Reply-To: <48D83DE2.8050805@swoodbridge.com> References: <48D40DB2.3080103@planyukon.ca> <48D7D45F.5157.008F.0@dnr.state.mn.us> <48D823D4.2030601@planyukon.ca> <48D7E76C.5157.008F.0@dnr.state.mn.us> <48D83DE2.8050805@swoodbridge.com> Message-ID: <48D90D62.7040807@mapgears.com> Stephen Woodbridge wrote: > Hi all, > > I just looked through php_mapscript.c and I don't think there is a way > to do this in php because the function was never written to access the > hash table. You should probably write a bug on this for PHP/mapscript. I > don't think it is a problem for the swig stuff. > I had a quick look and it should be easy to port the methods from mapscript/swiginc/hashtable.i to PHP MapScript. If you could please file a ticket about this then we'll try to get it into 5.4 Daniel -- Daniel Morissette http://www.mapgears.com/ From mark_brooks at ncsu.edu Tue Sep 23 09:00:35 2008 From: mark_brooks at ncsu.edu (Mark Brooks) Date: Tue, 23 Sep 2008 12:00:35 -0400 Subject: [mapserver-users] shade a county Message-ID: <48D912A3.1070804@ncsu.edu> I have a shapefile of type polygon of all counties in the United States. Given a latitude/longitude point, I want to shade/hatch the county that it's in. I'm not sure of the best way to do this. Any suggestions? I'm working with PHP Mapscript by the way. Mark From dfuhry at gmail.com Tue Sep 23 12:21:02 2008 From: dfuhry at gmail.com (Dave Fuhry) Date: Tue, 23 Sep 2008 15:21:02 -0400 Subject: [mapserver-users] Mapserver and GDB files In-Reply-To: <30fe546d0809222223g711a0009q5db177872a020ed@mail.gmail.com> References: <6246727221874A4FB8D3F9BBC37D9BD5021FC0A9@s-sp22.pca.state.mn.us> <48D7B2E3.5070600@pobox.com> <7B01866D-74D3-4BF3-9823-6EFD15194B86@kyngchaos.com> <49dc012b0809222220s45b020a7pc0385451a63e8ba@mail.gmail.com> <30fe546d0809222223g711a0009q5db177872a020ed@mail.gmail.com> Message-ID: <90699a8d0809231221s7252405eh1749b552e42450b1@mail.gmail.com> Does anybody know if the .gdb format is SQLite-based? I remember hearing rumors that ESRI's next geodatabase file format was to be. I'm unable to find anything confirming or denying this online. I read http://gis.esri.com/library/userconf/pug07/papers/workshops/file-gdb.pdf as giving strong indications that it is. -Dave On Tue, Sep 23, 2008 at 1:23 AM, Paul Ramsey wrote: > Write an ArcGIS script to do all the work :) ArcGIS can export to > Shape file and can read lyr files. > > Heck: http://arcscripts.esri.com/details.asp?dbid=12766 > > P. > > On Mon, Sep 22, 2008 at 10:20 PM, Raivo Alla wrote: >> Thank you all very much for answers. >> I am working on a project, where all data is in .gdb files and styles in >> ArcGIS .lyr format. >> I guess both - getting .gdb and .lyr files working in mapserver environment >> - are at the moment not possible? >> So I must convert convert .gdb files (using FME maybe?) to some readable >> format like shapefiles (if possible) and >> just type manually mapserver symbology files... uhh. >> >> >> Raivo >> >> On Mon, Sep 22, 2008 at 7:19 PM, William Kyngesburye >> wrote: >>> >>> On Sep 22, 2008, at 9:59 AM, Frank Warmerdam wrote: >>> >>>> Fawcett, David wrote: >>>>> >>>>> .gdb files are ESRI's new File Geodatabase proprietary format. I am >>>>> quite sure that OGR/FWTools does not support it. >>>> >>>> David, >>>> >>>> Ah thanks. Indeed they are not supported and it is hard to imagine they >>>> will be supported for a while. ESRI has indicated in the past that they >>>> intend to provide an open mechanism to access the file geodatabase and >>>> that >>>> is still likely to happen at some point. However, I think this would be >>>> quite a few months away at best. >>> >>> Hmmm, and if ESRI provides it, then, like SDE, it probably won't be >>> available for OSX (or other linux platforms?). Bleh. >>> >>> ----- >>> William Kyngesburye >>> http://www.kyngchaos.com/ >>> >>> "I ache, therefore I am. Or in my case - I am, therefore I ache." >>> >>> - Marvin >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pramsey at cleverelephant.ca Tue Sep 23 12:42:00 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Tue, 23 Sep 2008 12:42:00 -0700 Subject: [mapserver-users] Mapserver and GDB files In-Reply-To: <90699a8d0809231221s7252405eh1749b552e42450b1@mail.gmail.com> References: <6246727221874A4FB8D3F9BBC37D9BD5021FC0A9@s-sp22.pca.state.mn.us> <48D7B2E3.5070600@pobox.com> <7B01866D-74D3-4BF3-9823-6EFD15194B86@kyngchaos.com> <49dc012b0809222220s45b020a7pc0385451a63e8ba@mail.gmail.com> <30fe546d0809222223g711a0009q5db177872a020ed@mail.gmail.com> <90699a8d0809231221s7252405eh1749b552e42450b1@mail.gmail.com> Message-ID: <30fe546d0809231242x656b0e10pbc197f8a59e0386f@mail.gmail.com> Not sure what you're seeing that screams "SQLLite", but I found this line on the final "Post 8.2" slide regarding access options interesting: "Home grown open source spatial data API (e.g. GDAL, FDO)" P. On Tue, Sep 23, 2008 at 12:21 PM, Dave Fuhry wrote: > Does anybody know if the .gdb format is SQLite-based? I remember > hearing rumors that ESRI's next geodatabase file format was to be. > I'm unable to find anything confirming or denying this online. > > I read http://gis.esri.com/library/userconf/pug07/papers/workshops/file-gdb.pdf > as giving strong indications that it is. > > -Dave > > > On Tue, Sep 23, 2008 at 1:23 AM, Paul Ramsey wrote: >> Write an ArcGIS script to do all the work :) ArcGIS can export to >> Shape file and can read lyr files. >> >> Heck: http://arcscripts.esri.com/details.asp?dbid=12766 >> >> P. >> >> On Mon, Sep 22, 2008 at 10:20 PM, Raivo Alla wrote: >>> Thank you all very much for answers. >>> I am working on a project, where all data is in .gdb files and styles in >>> ArcGIS .lyr format. >>> I guess both - getting .gdb and .lyr files working in mapserver environment >>> - are at the moment not possible? >>> So I must convert convert .gdb files (using FME maybe?) to some readable >>> format like shapefiles (if possible) and >>> just type manually mapserver symbology files... uhh. >>> >>> >>> Raivo >>> >>> On Mon, Sep 22, 2008 at 7:19 PM, William Kyngesburye >>> wrote: >>>> >>>> On Sep 22, 2008, at 9:59 AM, Frank Warmerdam wrote: >>>> >>>>> Fawcett, David wrote: >>>>>> >>>>>> .gdb files are ESRI's new File Geodatabase proprietary format. I am >>>>>> quite sure that OGR/FWTools does not support it. >>>>> >>>>> David, >>>>> >>>>> Ah thanks. Indeed they are not supported and it is hard to imagine they >>>>> will be supported for a while. ESRI has indicated in the past that they >>>>> intend to provide an open mechanism to access the file geodatabase and >>>>> that >>>>> is still likely to happen at some point. However, I think this would be >>>>> quite a few months away at best. >>>> >>>> Hmmm, and if ESRI provides it, then, like SDE, it probably won't be >>>> available for OSX (or other linux platforms?). Bleh. >>>> >>>> ----- >>>> William Kyngesburye >>>> http://www.kyngchaos.com/ >>>> >>>> "I ache, therefore I am. Or in my case - I am, therefore I ache." >>>> >>>> - Marvin >>>> >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From dfuhry at gmail.com Tue Sep 23 13:25:16 2008 From: dfuhry at gmail.com (Dave Fuhry) Date: Tue, 23 Sep 2008 16:25:16 -0400 Subject: [mapserver-users] Mapserver and GDB files In-Reply-To: <30fe546d0809231242x656b0e10pbc197f8a59e0386f@mail.gmail.com> References: <6246727221874A4FB8D3F9BBC37D9BD5021FC0A9@s-sp22.pca.state.mn.us> <48D7B2E3.5070600@pobox.com> <7B01866D-74D3-4BF3-9823-6EFD15194B86@kyngchaos.com> <49dc012b0809222220s45b020a7pc0385451a63e8ba@mail.gmail.com> <30fe546d0809222223g711a0009q5db177872a020ed@mail.gmail.com> <90699a8d0809231221s7252405eh1749b552e42450b1@mail.gmail.com> <30fe546d0809231242x656b0e10pbc197f8a59e0386f@mail.gmail.com> Message-ID: <90699a8d0809231325y4e01956bn4686531c1a405de7@mail.gmail.com> That, and the sudden syntax changes, all to SQL compliance: delimit fields with "field", not [field] wildcards _ and %, not ? and * UPPER and LOWER, not UCASE and LCASE and newly supported SQL clauses which ESRI is doubtful to have gone to extra lengths to implement: SELECT DISTINCT GROUP BY, ORDER BY Correlated sub-queries Select list expressions Trivial for a full-fledged db, but atypical for a single-file persistence & query system. -Dave On Tue, Sep 23, 2008 at 3:42 PM, Paul Ramsey wrote: > Not sure what you're seeing that screams "SQLLite", but I found this > line on the final "Post 8.2" slide regarding access options > interesting: > > "Home grown open source spatial data API (e.g. GDAL, FDO)" > > P. > > On Tue, Sep 23, 2008 at 12:21 PM, Dave Fuhry wrote: >> Does anybody know if the .gdb format is SQLite-based? I remember >> hearing rumors that ESRI's next geodatabase file format was to be. >> I'm unable to find anything confirming or denying this online. >> >> I read http://gis.esri.com/library/userconf/pug07/papers/workshops/file-gdb.pdf >> as giving strong indications that it is. >> >> -Dave >> >> >> On Tue, Sep 23, 2008 at 1:23 AM, Paul Ramsey wrote: >>> Write an ArcGIS script to do all the work :) ArcGIS can export to >>> Shape file and can read lyr files. >>> >>> Heck: http://arcscripts.esri.com/details.asp?dbid=12766 >>> >>> P. >>> >>> On Mon, Sep 22, 2008 at 10:20 PM, Raivo Alla wrote: >>>> Thank you all very much for answers. >>>> I am working on a project, where all data is in .gdb files and styles in >>>> ArcGIS .lyr format. >>>> I guess both - getting .gdb and .lyr files working in mapserver environment >>>> - are at the moment not possible? >>>> So I must convert convert .gdb files (using FME maybe?) to some readable >>>> format like shapefiles (if possible) and >>>> just type manually mapserver symbology files... uhh. >>>> >>>> >>>> Raivo >>>> >>>> On Mon, Sep 22, 2008 at 7:19 PM, William Kyngesburye >>>> wrote: >>>>> >>>>> On Sep 22, 2008, at 9:59 AM, Frank Warmerdam wrote: >>>>> >>>>>> Fawcett, David wrote: >>>>>>> >>>>>>> .gdb files are ESRI's new File Geodatabase proprietary format. I am >>>>>>> quite sure that OGR/FWTools does not support it. >>>>>> >>>>>> David, >>>>>> >>>>>> Ah thanks. Indeed they are not supported and it is hard to imagine they >>>>>> will be supported for a while. ESRI has indicated in the past that they >>>>>> intend to provide an open mechanism to access the file geodatabase and >>>>>> that >>>>>> is still likely to happen at some point. However, I think this would be >>>>>> quite a few months away at best. >>>>> >>>>> Hmmm, and if ESRI provides it, then, like SDE, it probably won't be >>>>> available for OSX (or other linux platforms?). Bleh. >>>>> >>>>> ----- >>>>> William Kyngesburye >>>>> http://www.kyngchaos.com/ >>>>> >>>>> "I ache, therefore I am. Or in my case - I am, therefore I ache." >>>>> >>>>> - Marvin >>>>> >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From pramsey at cleverelephant.ca Tue Sep 23 13:29:31 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Tue, 23 Sep 2008 13:29:31 -0700 Subject: [mapserver-users] Mapserver and GDB files In-Reply-To: <90699a8d0809231325y4e01956bn4686531c1a405de7@mail.gmail.com> References: <6246727221874A4FB8D3F9BBC37D9BD5021FC0A9@s-sp22.pca.state.mn.us> <48D7B2E3.5070600@pobox.com> <7B01866D-74D3-4BF3-9823-6EFD15194B86@kyngchaos.com> <49dc012b0809222220s45b020a7pc0385451a63e8ba@mail.gmail.com> <30fe546d0809222223g711a0009q5db177872a020ed@mail.gmail.com> <90699a8d0809231221s7252405eh1749b552e42450b1@mail.gmail.com> <30fe546d0809231242x656b0e10pbc197f8a59e0386f@mail.gmail.com> <90699a8d0809231325y4e01956bn4686531c1a405de7@mail.gmail.com> Message-ID: <30fe546d0809231329u1c66c0dha2a0edd3c53b4227@mail.gmail.com> Anyone have a small piece of data in the new-fangled FGDB file format they are willing to send me? P On Tue, Sep 23, 2008 at 1:25 PM, Dave Fuhry wrote: > That, and the sudden syntax changes, all to SQL compliance: > delimit fields with "field", not [field] > wildcards _ and %, not ? and * > UPPER and LOWER, not UCASE and LCASE > > and newly supported SQL clauses which ESRI is doubtful to have gone to > extra lengths to implement: > SELECT DISTINCT > GROUP BY, ORDER BY > Correlated sub-queries > Select list expressions > > Trivial for a full-fledged db, but atypical for a single-file > persistence & query system. > > -Dave > > > On Tue, Sep 23, 2008 at 3:42 PM, Paul Ramsey wrote: >> Not sure what you're seeing that screams "SQLLite", but I found this >> line on the final "Post 8.2" slide regarding access options >> interesting: >> >> "Home grown open source spatial data API (e.g. GDAL, FDO)" >> >> P. >> >> On Tue, Sep 23, 2008 at 12:21 PM, Dave Fuhry wrote: >>> Does anybody know if the .gdb format is SQLite-based? I remember >>> hearing rumors that ESRI's next geodatabase file format was to be. >>> I'm unable to find anything confirming or denying this online. >>> >>> I read http://gis.esri.com/library/userconf/pug07/papers/workshops/file-gdb.pdf >>> as giving strong indications that it is. >>> >>> -Dave >>> >>> >>> On Tue, Sep 23, 2008 at 1:23 AM, Paul Ramsey wrote: >>>> Write an ArcGIS script to do all the work :) ArcGIS can export to >>>> Shape file and can read lyr files. >>>> >>>> Heck: http://arcscripts.esri.com/details.asp?dbid=12766 >>>> >>>> P. >>>> >>>> On Mon, Sep 22, 2008 at 10:20 PM, Raivo Alla wrote: >>>>> Thank you all very much for answers. >>>>> I am working on a project, where all data is in .gdb files and styles in >>>>> ArcGIS .lyr format. >>>>> I guess both - getting .gdb and .lyr files working in mapserver environment >>>>> - are at the moment not possible? >>>>> So I must convert convert .gdb files (using FME maybe?) to some readable >>>>> format like shapefiles (if possible) and >>>>> just type manually mapserver symbology files... uhh. >>>>> >>>>> >>>>> Raivo >>>>> >>>>> On Mon, Sep 22, 2008 at 7:19 PM, William Kyngesburye >>>>> wrote: >>>>>> >>>>>> On Sep 22, 2008, at 9:59 AM, Frank Warmerdam wrote: >>>>>> >>>>>>> Fawcett, David wrote: >>>>>>>> >>>>>>>> .gdb files are ESRI's new File Geodatabase proprietary format. I am >>>>>>>> quite sure that OGR/FWTools does not support it. >>>>>>> >>>>>>> David, >>>>>>> >>>>>>> Ah thanks. Indeed they are not supported and it is hard to imagine they >>>>>>> will be supported for a while. ESRI has indicated in the past that they >>>>>>> intend to provide an open mechanism to access the file geodatabase and >>>>>>> that >>>>>>> is still likely to happen at some point. However, I think this would be >>>>>>> quite a few months away at best. >>>>>> >>>>>> Hmmm, and if ESRI provides it, then, like SDE, it probably won't be >>>>>> available for OSX (or other linux platforms?). Bleh. >>>>>> >>>>>> ----- >>>>>> William Kyngesburye >>>>>> http://www.kyngchaos.com/ >>>>>> >>>>>> "I ache, therefore I am. Or in my case - I am, therefore I ache." >>>>>> >>>>>> - Marvin >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> mapserver-users mailing list >>>>>> mapserver-users at lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > From metlud at yahoo.it Tue Sep 23 13:50:05 2008 From: metlud at yahoo.it (Ludovico Bianchini) Date: Tue, 23 Sep 2008 22:50:05 +0200 Subject: [mapserver-users] java mapscript + postgis = jvm crashed In-Reply-To: <75b4b93e0809222353j375978esc3044efa1e6329ac@mail.gmail.com> References: <259451.40654.qm@web23701.mail.ird.yahoo.com> <75b4b93e0809222353j375978esc3044efa1e6329ac@mail.gmail.com> Message-ID: <48D9567D.4080305@yahoo.it> Umberto Nicoletti ha scritto: > I am using postgis layers (on Linux, though) and it works fine. > > Do you share the same mapObj between threads (in application scope) or > multiple requests (in session scope)? > mapscript is safe only when a new mapObj is created for each request. > What other kind of layers do you have in your map? > > Umberto > > > On Mon, Sep 22, 2008 at 10:34 PM, Ludovico Bianchini wrote: > >> - Windows Vista Home Premium >> - Postgres 8.1 >> - jvm 1.6.0 >> - jboss 4.0.3SP1, tomcat 5.5 >> - struts2 >> - ms4w 2.2.3 (mapscript.jar, mapscript.dll, all other dlls taken from this pack) >> - postgresql-8.2-505.jdbc4.jar >> >> mapscript.jar is placed in C:\jboss-4.0.3SP1\server\default\deploy\jbossweb-tomcat55.sar >> >> When a layer with a postgis connection is turned on, the draw method crashes the jvm. >> >> Error file attached. >> >> Is there any solution to this problem? >> >> Postgis is listed in "unsafe components", i have not understood if there is one way to make it work using thread syncronization. >> >> Thanks in advance for any help. >> >> Ludovico >> >> >> __________________________________________________ >> Do You Yahoo!? >> Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi >> http://mail.yahoo.it >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > > > I think I do not share the same object between request. The other layer are shape file layer, they work fine (zoom ok, pan ok). . . . /jsp/mappa.jsp . . . public class MappaAction extends ActionSupport implements ServletRequestAware{ . .//attributes . . public String execute() throws Exception { mapObj mapObj_o = new mapObj("C:\\jboss-4.0.3sp1_map\\map\\treviso.map");//create a new mapObj object if(OP == null) OP = "-1"; int op = Integer.parseInt(OP); switch (op) { case Z_IN: zoomIn(mapObj_o); break; case Z_OUT: zoomOut(mapObj_o); break; case PAN: pan(mapObj_o); break; case REFRESH: refresh(mapObj_o); break; default: fullExtent(mapObj_o); break; } return SUCCESS; } . .//utility methods, map navigation methods . private void draw(mapObj mapObj_o){ . . mapImageObj = mapObj_o.draw();//this instruction crashes the JVM . . } } ######################################################## #### LAYER SEGNALETICA #### ######################################################## LAYER NAME "segnaletica" STATUS OFF TYPE POINT TRANSFORM false POSTLABELCACHE true CONNECTION "user=user password=password dbname=dbname host=localhost port=5432" CONNECTIONTYPE postgis DATA "posizionegeoref from rilievi.impianti" CLASS STYLE COLOR 255 99 0 SYMBOL "circle" SIZE 12 END END PROJECTION "init=epsg:4326" END END Ludovico Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com From mark_brooks at ncsu.edu Tue Sep 23 13:52:12 2008 From: mark_brooks at ncsu.edu (Mark Brooks) Date: Tue, 23 Sep 2008 16:52:12 -0400 Subject: [mapserver-users] Re: shade a county In-Reply-To: <48D912A3.1070804@ncsu.edu> References: <48D912A3.1070804@ncsu.edu> Message-ID: <48D956FC.1070106@ncsu.edu> I figured it out. It was actually pretty easy. For reference to others who might need to do this also, I'll post my methodology. I also have one outstanding question at the end... Mapscript snippet looks like this: // Make a new point object $cnty_layer = $map->getLayerByName('cnty'); $my_point = ms_newpointObj(); $my_point->setXY($lon,$lat); // Run a point query on the county layer. // layer must have a class with a LAYER TEMPLATE value if ($cnty_layer->queryByPoint($my_point,MS_SINGLE,1)==MS_SUCCESS){ $cnty_result = $cnty_layer->getResult(0); // Get the result $cnty_layer->open(); // Open layer for use with getShape() $cnty_shape=$cnty_layer->getShape($cnty_result->tileindex,$cnty_result->shapeindex); // Draw the shape onto the shaded county layer $cnty_shade = $map->getLayerByName('shade_red'); $cnty_shape->draw($map, $cnty_shade, $image); } Mapfile snippet that goes along with the above looks like this: LAYER NAME shade_red TYPE POLYGON STATUS ON TRANSPARENCY 50 # use OPACITY in mapserver v5 CLASS NAME "Red County" COLOR 187 0 0 END END Notice the transparency in the layer above. I'm still on mapserver 4.x. The problem is that the layer doesn't draw with any transparency, no matter what I put as the value. Any ideas? Mark Mark Brooks wrote: > I have a shapefile of type polygon of all counties in the United States. > Given a latitude/longitude point, I want to shade/hatch the county that > it's in. I'm not sure of the best way to do this. Any suggestions? > I'm working with PHP Mapscript by the way. > > Mark From blake at hailmail.net Tue Sep 23 16:26:21 2008 From: blake at hailmail.net (Dane Springmeyer) Date: Tue, 23 Sep 2008 16:26:21 -0700 Subject: [mapserver-users] OSX binaries update In-Reply-To: <6FCED936-B4E0-403C-AEB2-41FF7684F7A5@kyngchaos.com> References: <6FCED936-B4E0-403C-AEB2-41FF7684F7A5@kyngchaos.com> Message-ID: Hi William, I just installed you new mapserver 5.2.0-2.dmg to test out python mapscript. I get an inconv error which is odd. Any ideas? springmeyer:~ spring$ python Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import mapscript Traceback (most recent call last): File "", line 1, in File "/Library/Python/2.5/site-packages/mapscript.py", line 7, in import _mapscript ImportError: dlopen(/Library/Python/2.5/site-packages/_mapscript.so, 2): Symbol not found: _iconv Referenced from: /Library/Frameworks/GDAL.framework/Versions/1.5/ Libraries/libpq.dylib Expected in: /usr/local/lib/libiconv.2.dylib Thanks, Dane On Sep 19, 2008, at 9:18 AM, William Kyngesburye wrote: > I finally figured out a longstanding problem with my OSX binaries - > python mapscript wasn't working. > > The problem comes from FastCGI support for the mapserv CGI. When > python tries to import mapscript, you get an error about libfcgi not > finding the _environ symbol (from apache?). Since I build MapServer > with a dynamic library (framework) I can't use a separate library > for mapserv and mapscript. > > I tried moving cgi stuff from the library into mapserv, but I think > CGI functions are needed elsewhere also, or I just didn't go far > enough, and I couldn't get it to work. > > So, given this, and the recent discussion saying that fastcgi only > provides a tiny performance gain, I removed fastcgi from my OSX > binaries. (fastcgi is also a lot more complex to setup on OSX > compared to standard CGI and the various mapscripts.) > > And python mapscript now works on OSX! > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > "I ache, therefore I am. Or in my case - I am, therefore I ache." > > - Marvin > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woklist at kyngchaos.com Tue Sep 23 16:59:28 2008 From: woklist at kyngchaos.com (William Kyngesburye) Date: Tue, 23 Sep 2008 18:59:28 -0500 Subject: [mapserver-users] OSX binaries update In-Reply-To: References: <6FCED936-B4E0-403C-AEB2-41FF7684F7A5@kyngchaos.com> Message-ID: On Sep 23, 2008, at 6:26 PM, Dane Springmeyer wrote: > Hi William, > > I just installed you new mapserver 5.2.0-2.dmg to test out python > mapscript. > > I get an inconv error which is odd. Any ideas? > > springmeyer:~ spring$ python > Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17) > [GCC 4.0.1 (Apple Inc. build 5465)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> import mapscript > Traceback (most recent call last): > File "", line 1, in > File "/Library/Python/2.5/site-packages/mapscript.py", line 7, in > > import _mapscript > ImportError: dlopen(/Library/Python/2.5/site-packages/_mapscript.so, > 2): Symbol not found: _iconv > Referenced from: /Library/Frameworks/GDAL.framework/Versions/1.5/ > Libraries/libpq.dylib > Expected in: /usr/local/lib/libiconv.2.dylib > Err, umm, oh. Completely misleading - what I find in my binaries is that GDAL links /usr/local/pgsql/lib/libpq.dylib (which links /usr/lib/ libiconv). I don't know how I keep missing this in my post-processing for GDAL, or why nobody reported a problem since I released that build in June. And it's just the Leopard build (maybe [mostly] everyone using Leopard installs my Postgres?). I'll post an update soon. Hold off installing Postgres, if you were thinking about it, so I can make sure that's really the problem. ----- William Kyngesburye http://www.kyngchaos.com/ "We are at war with them. Neither in hatred nor revenge and with no particular pleasure I shall kill every ___ I can until the war is over. That is my duty." "Don't you even hate 'em?" "What good would it do if I did? If all the many millions of people of the allied nations devoted an entire year exclusively to hating the ____ it wouldn't kill one ___ nor shorten the war one day." "And it might give 'em all stomach ulcers." - Tarzan, on war From woklist at kyngchaos.com Tue Sep 23 18:11:25 2008 From: woklist at kyngchaos.com (William Kyngesburye) Date: Tue, 23 Sep 2008 20:11:25 -0500 Subject: [mapserver-users] OSX binaries update In-Reply-To: References: <6FCED936-B4E0-403C-AEB2-41FF7684F7A5@kyngchaos.com> Message-ID: New GDAL online now. On Sep 23, 2008, at 6:59 PM, William Kyngesburye wrote: > I'll post an update soon. Hold off installing Postgres, if you were > thinking about it, so I can make sure that's really the problem. ----- William Kyngesburye http://www.kyngchaos.com/ "I ache, therefore I am. Or in my case - I am, therefore I ache." - Marvin From jason.webb at agcl.co.nz Tue Sep 23 21:00:10 2008 From: jason.webb at agcl.co.nz (Jason Webb) Date: Wed, 24 Sep 2008 16:00:10 +1200 Subject: [mapserver-users] Google Map layer in mapserver In-Reply-To: <20080429130319.D2FA0E01636@lists.osgeo.org> References: <20080429130319.D2FA0E01636@lists.osgeo.org> Message-ID: <000001c91dfa$0a2d24d0$1e876e70$%webb@agcl.co.nz> Hello, A first post on this list I have been monitoring it for a long time. I have a question I could not find an answer to after searching all mapserver info I could find. We are using mapserver and a modified (by us) front end jBox. We add a lot of data (points) over the top of the map in the live jbox applet and the maps are not incredibly important for us they are just a reference. In fact it's a little bit of a pain to set up when you have somewhat of 3000 layers (SHP and S57) and raster you want to use in mapserver. It would be a lot easier if we could just include the google online maps I the background. We have done this for separate applications (with the google key) but I was wondering if someone has already done this in the mapserver (.map) files with a single layer call that obtains a map from google. Does anyone have some pointer to this? Many Thanks. Best Regards Jason Webb Skype: GlobalStation From David.Fawcett at state.mn.us Tue Sep 23 22:09:05 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 24 Sep 2008 00:09:05 -0500 Subject: [mapserver-users] transparent pixmaps in python mapscripts Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FC0BA@s-sp22.pca.state.mn.us> I am using a pixmap symbol to mark a point using Python MapScript v. 5.2. The image has a transparent background. When I use the symbol with MapServer CGI, I the transparency works. When I use the symbol in MapScript, I get a black background for the symbol, no transparency. Here is how I am creating the symbol: img = mapscript.imageObj(/symbols/redcross.png', 'GD/PNG') # create the symbol using the image symbol = mapscript.symbolObj('from_img') symbol.type = mapscript.MS_SYMBOL_PIXMAP symbol.setImage(img) symbol_index = mymap.symbolset.appendSymbol(symbol) I also tried to add this to the layer, but it made no difference either: inline_layer.transparency = mapscript.MS_GD_ALPHA Here is a gdalinfo report on the symbol image: Driver: PNG/Portable Network Graphics Files: redcross.png Size is 32, 32 Coordinate System is `' Image Structure Metadata: INTERLEAVE=PIXEL Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 32.0) Upper Right ( 32.0, 0.0) Lower Right ( 32.0, 32.0) Center ( 16.0, 16.0) Band 1 Block=32x1 Type=Byte, ColorInterp=Red Mask Flags: PER_DATASET ALPHA Band 2 Block=32x1 Type=Byte, ColorInterp=Green Mask Flags: PER_DATASET ALPHA Band 3 Block=32x1 Type=Byte, ColorInterp=Blue Mask Flags: PER_DATASET ALPHA Band 4 Block=32x1 Type=Byte, ColorInterp=Alpha Any ideas on how to get a pixmap symbol with a transparent background using python mapscript? Thanks, David. -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at gmail.com Tue Sep 23 23:56:03 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Wed, 24 Sep 2008 08:56:03 +0200 Subject: [mapserver-users] java mapscript + postgis = jvm crashed In-Reply-To: <48D9567D.4080305@yahoo.it> References: <259451.40654.qm@web23701.mail.ird.yahoo.com> <75b4b93e0809222353j375978esc3044efa1e6329ac@mail.gmail.com> <48D9567D.4080305@yahoo.it> Message-ID: <75b4b93e0809232356s67f55821o1bc08b9b16e24fca@mail.gmail.com> On Tue, Sep 23, 2008 at 10:50 PM, Ludovico Bianchini wrote: > Umberto Nicoletti ha scritto: >> >> I am using postgis layers (on Linux, though) and it works fine. >> >> Do you share the same mapObj between threads (in application scope) or >> multiple requests (in session scope)? >> mapscript is safe only when a new mapObj is created for each request. >> What other kind of layers do you have in your map? >> >> Umberto >> >> >> On Mon, Sep 22, 2008 at 10:34 PM, Ludovico Bianchini >> wrote: >> >>> >>> - Windows Vista Home Premium >>> - Postgres 8.1 >>> - jvm 1.6.0 >>> - jboss 4.0.3SP1, tomcat 5.5 >>> - struts2 >>> - ms4w 2.2.3 (mapscript.jar, mapscript.dll, all other dlls taken from >>> this pack) >>> - postgresql-8.2-505.jdbc4.jar >>> >>> mapscript.jar is placed in >>> C:\jboss-4.0.3SP1\server\default\deploy\jbossweb-tomcat55.sar >>> >>> When a layer with a postgis connection is turned on, the draw method >>> crashes the jvm. >>> >>> Error file attached. >>> >>> Is there any solution to this problem? >>> >>> Postgis is listed in "unsafe components", i have not understood if there >>> is one way to make it work using thread syncronization. >>> >>> Thanks in advance for any help. >>> >>> Ludovico >>> >>> >>> __________________________________________________ >>> Do You Yahoo!? >>> Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da >>> tanto spazio gratuito per i tuoi file e i messaggi >>> http://mail.yahoo.it >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> >> >> >> > > I think I do not share the same object between request. > > The other layer are shape file layer, they work fine (zoom ok, pan ok). > > > > . > . > . > method="{1}"> > /jsp/mappa.jsp > . > . > . > > > > > public class MappaAction extends ActionSupport implements > ServletRequestAware{ Are you sharing any mapscript object as an Action attribute? If yes that's probably the culprit, otherwis it seems pretty strange... Does the crash occur only when more than user is accessing the map or even when there is only one user? Also ms4w 2.2.3 seems prett old, why don't you upgrade to the latest? Umberto > . > .//attributes > . > . > public String execute() throws Exception { > mapObj mapObj_o = new > mapObj("C:\\jboss-4.0.3sp1_map\\map\\treviso.map");//create a new mapObj > object > if(OP == null) OP = "-1"; > int op = Integer.parseInt(OP); > switch (op) { > case Z_IN: zoomIn(mapObj_o); > break; > case Z_OUT: zoomOut(mapObj_o); > break; > case PAN: pan(mapObj_o); > break; > case REFRESH: refresh(mapObj_o); > break; > > default: fullExtent(mapObj_o); > break; > } > return SUCCESS; > } > . > .//utility methods, map navigation methods > . > > private void draw(mapObj mapObj_o){ > . > . > mapImageObj = mapObj_o.draw();//this instruction crashes the JVM > . > . > } > > } > > ######################################################## > #### LAYER SEGNALETICA > #### > ######################################################## > > LAYER > NAME "segnaletica" > STATUS OFF > TYPE POINT > TRANSFORM false > POSTLABELCACHE true > CONNECTION "user=user password=password dbname=dbname host=localhost > port=5432" > CONNECTIONTYPE postgis > DATA "posizionegeoref from rilievi.impianti" CLASS > STYLE > COLOR 255 99 0 > SYMBOL "circle" > SIZE 12 > END > END > PROJECTION > "init=epsg:4326" > END > END > > Ludovico > Chiacchiera con i tuoi amici in tempo reale! > http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com > From iratxe.lejarreta at axios.es Wed Sep 24 00:09:09 2008 From: iratxe.lejarreta at axios.es (Iratxe Lejarreta) Date: Wed, 24 Sep 2008 09:09:09 +0200 Subject: [mapserver-users] Scalability In-Reply-To: <30fe546d0809230804p399aecd8t84cac8a668bd9699@mail.gmail.com> References: <200809231623.25657.iratxe.lejarreta@axios.es> <30fe546d0809230804p399aecd8t84cac8a668bd9699@mail.gmail.com> Message-ID: <200809240909.09699.iratxe.lejarreta@axios.es> On Tuesday 23 September 2008 17:04:33 Paul Ramsey wrote: > Like Apache, Mapserver handles parallel requests by running multiple > copies. In FastCGI mode, those copies are long-running daemons. In > standard CGI mode, those copies are one-time affairs -- one run per > request. > > On Tue, Sep 23, 2008 at 7:23 AM, Iratxe Lejarreta > > wrote: > > Hi, > > > > I want to know what is the scalability of MapServer. > > I need information about the MapServer capacity when processed at the > > same time many requests. What is the MapServer's strategy in this case? > > > > Thanks, > > > > -- > > Iratxe Lejarreta > > www.axios.es > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users Ok, thank you for your help! Regards, -- Iratxe Lejarreta www.axios.es From iratxe.lejarreta at axios.es Wed Sep 24 00:09:47 2008 From: iratxe.lejarreta at axios.es (Iratxe Lejarreta) Date: Wed, 24 Sep 2008 09:09:47 +0200 Subject: [mapserver-users] Integration with CSW In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F03BCC531@ecburexch1.ontario.int.ec.gc.ca> References: <200809231624.45688.iratxe.lejarreta@axios.es> <2DC5CCA14756424BBBEE8B4B2E4A682F03BCC531@ecburexch1.ontario.int.ec.gc.ca> Message-ID: <200809240909.47631.iratxe.lejarreta@axios.es> On Tuesday 23 September 2008 16:26:32 Kralidis,Tom [Burlington] wrote: > If you're asking whether MapServer can act as a CSW server, it cannot. > > MapServer can, however, publish a variety of OWS (WMS, WFS, WCS, SOS), > which a CSW can harvest metadata from and publish for discovery. > > So your best bet would be to publish your WMSs to a CSW or stand up your > own (Geonetwork opensource supports CSW). > > ..Tom > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org on behalf of Iratxe Lejarreta > Sent: Tue 23-Sep-08 10:24 > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Integration with CSW > > Hi, > > Know somebody about the integration of MapServer with Catalog Services for > the Web (CSW)? > > Thanks, Ok, thank you for your help! Regards, -- Iratxe Lejarreta www.axios.es From pal.kristensen at statkart.no Wed Sep 24 01:16:37 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Wed, 24 Sep 2008 01:16:37 -0700 (PDT) Subject: [MAPSERVER-USERS] Mapserver and GDB files In-Reply-To: <30fe546d0809231329u1c66c0dha2a0edd3c53b4227@mail.gmail.com> References: <49dc012b0809220605l3a56e0e5rd94b9850e222cab7@mail.gmail.com> <48D7B014.1060008@pobox.com> <6246727221874A4FB8D3F9BBC37D9BD5021FC0A9@s-sp22.pca.state.mn.us> <48D7B2E3.5070600@pobox.com> <7B01866D-74D3-4BF3-9823-6EFD15194B86@kyngchaos.com> <49dc012b0809222220s45b020a7pc0385451a63e8ba@mail.gmail.com> <30fe546d0809222223g711a0009q5db177872a020ed@mail.gmail.com> <90699a8d0809231221s7252405eh1749b552e42450b1@mail.gmail.com> <30fe546d0809231242x656b0e10pbc197f8a59e0386f@mail.gmail.com> <90699a8d0809231325y4e01956bn4686531c1a405de7@mail.gmail.com> <30fe546d0809231329u1c66c0dha2a0edd3c53b4227@mail.gmail.com> Message-ID: <19644107.post@talk.nabble.com> Of course, I will send you a sample later today. I have to use ArcGIS 9.3 to do the export, hope this is OK? Regards, P?l Kristensen Paul Ramsey-3 wrote: > > Anyone have a small piece of data in the new-fangled FGDB file format > they are willing to send me? > > P > -- View this message in context: http://www.nabble.com/Mapserver-and-GDB-files-tp19607587p19644107.html Sent from the Mapserver - User mailing list archive at Nabble.com. From schroeter at netgis.de Wed Sep 24 03:11:00 2008 From: schroeter at netgis.de (Sven Schroeter) Date: Wed, 24 Sep 2008 12:11:00 +0200 Subject: [mapserver-users] query case insensitive Message-ID: <903045CF0C9A45D69784BDF028AC2F14@SVEN> Hi all, I'm using the queryByAttributes-function of PHP-Mapscript with the LIKE (~) operator for strings (out of a POSTGIS-table): $queryString = "nom_bande ~ 'WT'"; $queryItem = "nom_bande"; @$datQuery = $layer->queryByAttributes($queryitem,$queryString,MS_MULTIPLE); Every dataset that contains 'WT' comes as result. But this is case sensitive, if I try $queryString = "nom_bande ~ 'wt'"; there is no result. Is it possible to make the query case insensitive? Thanks Sven From stephan.holl at intevation.de Wed Sep 24 04:11:09 2008 From: stephan.holl at intevation.de (Stephan Holl) Date: Wed, 24 Sep 2008 13:11:09 +0200 Subject: [mapserver-users] For everyone who is not at the FOSS4G - Intergeo 2008 (Germany) Message-ID: <20080924131109.32dae75f@intevation.de> Hello, [Sorry for crossposting] Open Source Park at Intergeo 2008 Intergeo is the world's largest event and communication platform for geodesy, geoinformation and land management. The trade fair and conference cover all the key trends that crop up along the entire value-added chain -- from geo-based information surveys and data processing to integrated applications. This year's Intergeo trade fair and conference takes place in Bremen, Germany from September 30th through October 2nd. Unfortunately this event again takes place at the same time as FOSS4G 2008. The OSGeo operates a booth area providing space for Open Source Geospatial software projects and booths for commercial enterprises. The following Free and Open Source communities will be at the Open Source Parc (OSP) and present the projects: * Desktop-GIS: gvSIG, QGIS * WebMapping: deegree, Mapbender, MapServer, GeoServer, OpenLayers * Spatial Database: PostGIS * Organization: FOSSGIS e.V, OSGeo * OpenStreetMap Project In addition to the software projects the following service providers support the exhibition at the OSP of the Intergeo 2008: * 52?North GmbH * Autodesk GmbH * Bj?rnsen Beratende Ingenieure GmbH * lat/lon GmbH * in medias res GmbH * Intevation GmbH * WhereGroup GmbH & Co. KG Please feel free asking me, if you have any questions. We are looking forward to welcome you at the OSP! Link OSGeo Wiki: http://wiki.osgeo.org/wiki/Intergeo_2008 Link Intergeo: http://www.intergeo.de/2008_en/englisch/index.php -- Stephan Holl , http://intevation.de/~stephan Tel: +49 (0)541-33 50 8 32 | Intevation GmbH | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From ron at ocean.org.il Wed Sep 24 05:00:55 2008 From: ron at ocean.org.il (Ron Goldman) Date: Wed, 24 Sep 2008 15:00:55 +0300 Subject: [mapserver-users] display wind or current arrow map Message-ID: <48DA2BF7.9060606@ocean.org.il> Dear MapServer Users, I have a netcdf containing the Lon/Lat components of winds and currents and I want to display them on an arrow map. Is there a way to do this? so far I only found a way to do this for point shapefiles, but my data is composed of two rasters. any suggestions would be greatly appreciated. Ron Goldman *********************************************************** This outgoing email was scanned for viruses and other malicious content by the IT Department of Israel Oceanographic & Limnological Research. AntiVirus system managed by Eli W. Tel. 972-4-8565267 IMPORTANT: Do not open attachments from unrecognized senders. Never open attached files with extensions: *.pif, *.scr, *.vbs, *.exe. *********************************************************** -------------- next part -------------- A non-text attachment was scrubbed... Name: ron.vcf Type: text/x-vcard Size: 338 bytes Desc: not available URL: From akrherz at iastate.edu Wed Sep 24 06:46:08 2008 From: akrherz at iastate.edu (akrherz at iastate.edu) Date: Wed, 24 Sep 2008 08:46:08 -0500 (CDT) Subject: [mapserver-users] display wind or current arrow map In-Reply-To: <48DA2BF7.9060606@ocean.org.il> References: <48DA2BF7.9060606@ocean.org.il> Message-ID: On Wed, 24 Sep 2008, Ron Goldman wrote: > I have a netcdf containing the Lon/Lat components of winds and currents > and I want to display them on an arrow map. Is there a way to do this? > so far I only found a way to do this for point shapefiles, but my data > is composed of two rasters. any suggestions would be greatly > appreciated. Hi Ron, Do you need to do this within the Mapserver CGI environment or can you use Mapscript to generate your images? If you can use mapscript, you can write your own logic to figure out the rotation values based on the components. If you are stuck without mapscript, you could use another tool to add a rotation variable to your NetCDF file and then directly use it in your mapfile for symbol rotation (I believe this is now supported in 5.2.0)... Others on this list may have more clever ideas. daryl From dmorissette at mapgears.com Wed Sep 24 06:45:19 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 24 Sep 2008 09:45:19 -0400 Subject: [mapserver-users] transparent pixmaps in python mapscripts In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FC0BA@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5021FC0BA@s-sp22.pca.state.mn.us> Message-ID: <48DA446F.4020003@mapgears.com> David, TRANSPARENCY ALPHA works only between layers drawn using map.draw() in a single pass. If you call layer.draw() for each layer in a loop in your script then TRANSPARENCY ALPHA has no effect and that could explain the problem you are encountering. Daniel Fawcett, David wrote: > I am using a pixmap symbol to mark a point using Python MapScript v. 5.2. > > The image has a transparent background. When I use the symbol with > MapServer CGI, I the transparency works. When I use the symbol in > MapScript, I get a black background for the symbol, no transparency. > > Here is how I am creating the symbol: > > img = mapscript.imageObj(/symbols/redcross.png', 'GD/PNG') > > # create the symbol using the image > symbol = mapscript.symbolObj('from_img') > symbol.type = mapscript.MS_SYMBOL_PIXMAP > symbol.setImage(img) > symbol_index = mymap.symbolset.appendSymbol(symbol) > > I also tried to add this to the layer, but it made no difference either: > inline_layer.transparency = mapscript.MS_GD_ALPHA > > Here is a gdalinfo report on the symbol image: > > Driver: PNG/Portable Network Graphics > Files: redcross.png > Size is 32, 32 > Coordinate System is `' > Image Structure Metadata: > INTERLEAVE=PIXEL > Corner Coordinates: > Upper Left ( 0.0, 0.0) > Lower Left ( 0.0, 32.0) > Upper Right ( 32.0, 0.0) > Lower Right ( 32.0, 32.0) > Center ( 16.0, 16.0) > Band 1 Block=32x1 Type=Byte, ColorInterp=Red > Mask Flags: PER_DATASET ALPHA > Band 2 Block=32x1 Type=Byte, ColorInterp=Green > Mask Flags: PER_DATASET ALPHA > Band 3 Block=32x1 Type=Byte, ColorInterp=Blue > Mask Flags: PER_DATASET ALPHA > Band 4 Block=32x1 Type=Byte, ColorInterp=Alpha > > Any ideas on how to get a pixmap symbol with a transparent background > using python mapscript? > > Thanks, > > David. > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From woodbri at swoodbridge.com Wed Sep 24 07:51:42 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 24 Sep 2008 09:51:42 -0500 Subject: [mapserver-users] Metadata Hashtable In-Reply-To: <48D823D4.2030601@planyukon.ca> References: <48D40DB2.3080103@planyukon.ca> <48D7D45F.5157.008F.0@dnr.state.mn.us> <48D823D4.2030601@planyukon.ca> Message-ID: <48DA53FE.9070309@swoodbridge.com> Jeff, Did you write a bug for this? What bug number? Thanks, -Steve W Jeff Hamm wrote: > Thanks Steve. > Its finding the $hash I haven't got a handle on. > $oLayer->getMetaData("") wants a parameter key. > $oLayer->{metadata} returns nothing. > How do I grab the metadata hashtable itself? > > Ticket #439 was the only reference I found; but the examples there are > same as above, unsuccessful. > > Jeff > > > Steve Lime wrote: >> It should look something like this I believe (not a PHP guy): >> >> $key; # should be empty/NULL to start >> while($key = $hash->nextKey($key) { >> # do something with $key >> } >> >> Steve >> >> >>>>> On 9/19/2008 at 3:38 PM, in message >>>>> <48D40DB2.3080103 at planyukon.ca>, Jeff Hamm >>>>> >> wrote: >> >>> Mapserver Bugzilla seems to indicate that exposing metadata as a >>> proper object is possible (Tickets #734 and #737). >>> >>> I also want to print out all of the metadata key->value pairs for a >>> map layer using php-mapscript without explicitly naming them all. >>> Can anyone share a code snippet for this? >>> >>> TIA >>> Jeff Hamm >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jeff at planyukon.ca Wed Sep 24 07:43:40 2008 From: jeff at planyukon.ca (jeff at planyukon.ca) Date: Wed, 24 Sep 2008 07:43:40 -0700 Subject: [mapserver-users] Metadata Hashtable In-Reply-To: <48DA53FE.9070309@swoodbridge.com> References: <48D40DB2.3080103@planyukon.ca> <48D7D45F.5157.008F.0@dnr.state.mn.us> <48D823D4.2030601@planyukon.ca> <48DA53FE.9070309@swoodbridge.com> Message-ID: <20080924074340.tn2o4winksgo4sgk@webmail.yknet.ca> Steve, Ticket #2773 Methods to expose the metadata hashtable in mapscript/swiginc/hashtable.i need to be ported to php-mapscript to provide for a $hash = $layer->{metadata} hashtableObj. Thanks for your advice. Jeff Quoting Stephen Woodbridge : > Jeff, > > Did you write a bug for this? What bug number? > > Thanks, > -Steve W > > Jeff Hamm wrote: >> Thanks Steve. >> Its finding the $hash I haven't got a handle on. >> $oLayer->getMetaData("") wants a parameter key. >> $oLayer->{metadata} returns nothing. >> How do I grab the metadata hashtable itself? >> >> Ticket #439 was the only reference I found; but the examples there >> are same as above, unsuccessful. >> >> Jeff >> >> >> Steve Lime wrote: >>> It should look something like this I believe (not a PHP guy): >>> >>> $key; # should be empty/NULL to start >>> while($key = $hash->nextKey($key) { >>> # do something with $key >>> } >>> >>> Steve >>> >>> >>>>>> On 9/19/2008 at 3:38 PM, in message >>>>>> <48D40DB2.3080103 at planyukon.ca>, Jeff Hamm >>>>>> >>> wrote: >>> >>>> Mapserver Bugzilla seems to indicate that exposing metadata as a >>>> proper object is possible (Tickets #734 and #737). >>>> >>>> I also want to print out all of the metadata key->value pairs for >>>> a map layer using php-mapscript without explicitly naming them >>>> all. >>>> Can anyone share a code snippet for this? >>>> >>>> TIA >>>> Jeff Hamm >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> >>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From danlittle at yahoo.com Wed Sep 24 08:02:08 2008 From: danlittle at yahoo.com (Dan Little) Date: Wed, 24 Sep 2008 08:02:08 -0700 (PDT) Subject: [mapserver-users] transparent pixmaps in python mapscripts Message-ID: <820023.67244.qm@web51409.mail.re2.yahoo.com> You could render the map with a known background color, and then use PIL to create a transparent GIF from the image. If you can use white as the bg color then you can convert the image to a 2 color bitmap in memory, and then use it as a mask to perform the transparency composition. ----- Original Message ---- > From: Daniel Morissette > To: "Fawcett, David" > Cc: mapserver-users at lists.osgeo.org > Sent: Wednesday, September 24, 2008 8:45:19 AM > Subject: Re: [mapserver-users] transparent pixmaps in python mapscripts > > David, > > TRANSPARENCY ALPHA works only between layers drawn using map.draw() in a > single pass. If you call layer.draw() for each layer in a loop in your > script then TRANSPARENCY ALPHA has no effect and that could explain the > problem you are encountering. > > Daniel > > > Fawcett, David wrote: > > I am using a pixmap symbol to mark a point using Python MapScript v. 5.2. > > > > The image has a transparent background. When I use the symbol with > > MapServer CGI, I the transparency works. When I use the symbol in > > MapScript, I get a black background for the symbol, no transparency. > > > > Here is how I am creating the symbol: > > > > img = mapscript.imageObj(/symbols/redcross.png', 'GD/PNG') > > > > # create the symbol using the image > > symbol = mapscript.symbolObj('from_img') > > symbol.type = mapscript.MS_SYMBOL_PIXMAP > > symbol.setImage(img) > > symbol_index = mymap.symbolset.appendSymbol(symbol) > > > > I also tried to add this to the layer, but it made no difference either: > > inline_layer.transparency = mapscript.MS_GD_ALPHA > > > > Here is a gdalinfo report on the symbol image: > > > > Driver: PNG/Portable Network Graphics > > Files: redcross.png > > Size is 32, 32 > > Coordinate System is `' > > Image Structure Metadata: > > INTERLEAVE=PIXEL > > Corner Coordinates: > > Upper Left ( 0.0, 0.0) > > Lower Left ( 0.0, 32.0) > > Upper Right ( 32.0, 0.0) > > Lower Right ( 32.0, 32.0) > > Center ( 16.0, 16.0) > > Band 1 Block=32x1 Type=Byte, ColorInterp=Red > > Mask Flags: PER_DATASET ALPHA > > Band 2 Block=32x1 Type=Byte, ColorInterp=Green > > Mask Flags: PER_DATASET ALPHA > > Band 3 Block=32x1 Type=Byte, ColorInterp=Blue > > Mask Flags: PER_DATASET ALPHA > > Band 4 Block=32x1 Type=Byte, ColorInterp=Alpha > > > > Any ideas on how to get a pixmap symbol with a transparent background > > using python mapscript? > > > > Thanks, > > > > David. > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > Daniel Morissette > http://www.mapgears.com/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From ivan.mincik at gmail.com Wed Sep 24 09:09:53 2008 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Wed, 24 Sep 2008 18:09:53 +0200 Subject: [mapserver-users] RE:mapserver + MS SQL Message-ID: <200809241809.53913.ivan.mincik@gmail.com> I have started testing OGR ODBC connection from linux to MS SQL on win. There is polygon layer at MS SQL. *** I have configured ovf file: ODBC:test/test at win wkbPolygon select geom from ku2 *** With ogrinfo -ro -al test.ovf I get: OGRFeature(ku2):1599 geom (Binary) = 000000000104BA0000003EB1148070BF20C15D1DF97FB5C832C11B1727C08FBF20C16F23... POINT (0.0 -0.0) OGRFeature(ku2):1600 geom (Binary) = 000000000104C8010000C23023A08D2C19C1BC001400308E32C1C84A35A0372C19C1CF70... POINT (0.0 -0.0) OGRFeature(ku2):1601 geom (Binary) = 0000000001047905000038864D009A7818C19A41F1FF68B732C19092B3BF6C7818C10808... POINT (0.0 0.0) *** In the mapfile : LAYER NAME 'ku2' DEBUG 5 TYPE LINE CONNECTIONTYPE OGR CONNECTION "test.ovf" DATA "ku2" STATUS ON PROJECTION "init=epsg:2065" END METADATA "DESCRIPTION" "test" 'wms_title' 'test' "wms_format" "image/png" END CLASS NAME "test" STYLE OUTLINECOLOR 239 110 115 COLOR 204 204 204 WIDTH 8 END END END *** shp2img -m test.map -o test.png will run without error, but output image is BLANK. Any idea ? I have tried this with 2 different layers, different coordinate systems. >Hi list, >At first, I would like to say that I am not a fan in replacing perfect PostGIS database to MS SQL, but I must to adapt to customer's needs. >I would like to ask if somebody has experience with loading data to mapserver from MS SQL Spatial 2008. >Now, in 5.2 there is possibility to use new PLUGIN for MS SQL, which is only for Windows .... >Other possibility is to use ODBC connection through OGR which can be working also in Linux. > >So my questions are : >1. Is there any other possibility ? >2. What is Your experience with performance when using ODBC connection through OGR ? >3. What is Your experience with performance when using new PLUGIN for MS SQL in 5.2 ? > >Thanks a lot >-- >Ivan From Jukka.Rahkonen at mmmtike.fi Wed Sep 24 09:26:01 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 24 Sep 2008 19:26:01 +0300 Subject: [mapserver-users] RE:mapserver + MS SQL References: <200809241809.53913.ivan.mincik@gmail.com> Message-ID: Hi, First thing that comes into my mind is the good old STATUS ON thing. LAYER ON in mapfile means that the layer can be requested, but not that it is automatically included in a map. STATUS DEFAULT includes it automatic. Try what happens if you use: shp2img -m test.map -l ku2 -o test.png Alternatively, change LAYER DEFAULT and use the old command. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Ivan Mincik L?hetetty: ke 24.9.2008 19:09 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] RE:mapserver + MS SQL I have started testing OGR ODBC connection from linux to MS SQL on win. There is polygon layer at MS SQL. *** I have configured ovf file: ODBC:test/test at win wkbPolygon select geom from ku2 *** With ogrinfo -ro -al test.ovf I get: OGRFeature(ku2):1599 geom (Binary) = 000000000104BA0000003EB1148070BF20C15D1DF97FB5C832C11B1727C08FBF20C16F23... POINT (0.0 -0.0) OGRFeature(ku2):1600 geom (Binary) = 000000000104C8010000C23023A08D2C19C1BC001400308E32C1C84A35A0372C19C1CF70... POINT (0.0 -0.0) OGRFeature(ku2):1601 geom (Binary) = 0000000001047905000038864D009A7818C19A41F1FF68B732C19092B3BF6C7818C10808... POINT (0.0 0.0) *** In the mapfile : LAYER NAME 'ku2' DEBUG 5 TYPE LINE CONNECTIONTYPE OGR CONNECTION "test.ovf" DATA "ku2" STATUS ON PROJECTION "init=epsg:2065" END METADATA "DESCRIPTION" "test" 'wms_title' 'test' "wms_format" "image/png" END CLASS NAME "test" STYLE OUTLINECOLOR 239 110 115 COLOR 204 204 204 WIDTH 8 END END END *** shp2img -m test.map -o test.png will run without error, but output image is BLANK. Any idea ? I have tried this with 2 different layers, different coordinate systems. >Hi list, >At first, I would like to say that I am not a fan in replacing perfect PostGIS database to MS SQL, but I must to adapt to customer's needs. >I would like to ask if somebody has experience with loading data to mapserver from MS SQL Spatial 2008. >Now, in 5.2 there is possibility to use new PLUGIN for MS SQL, which is only for Windows .... >Other possibility is to use ODBC connection through OGR which can be working also in Linux. > >So my questions are : >1. Is there any other possibility ? >2. What is Your experience with performance when using ODBC connection through OGR ? >3. What is Your experience with performance when using new PLUGIN for MS SQL in 5.2 ? > >Thanks a lot >-- >Ivan _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From ivan.mincik at gmail.com Wed Sep 24 09:43:22 2008 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Wed, 24 Sep 2008 18:43:22 +0200 Subject: [mapserver-users] RE:mapserver + MS SQL Message-ID: <200809241843.22170.ivan.mincik@gmail.com> > Hi, > > First thing that comes into my mind is the good old STATUS ON thing. LAYER ON in mapfile means that the layer can be requested, but not that it is automatically included in a map. STATUS DEFAULT includes it automatic. Try what happens if you use: > > shp2img -m test.map -l ku2 -o test.png > > Alternatively, change LAYER DEFAULT and use the old command. > Thanks for reply, still blank picture, with "shp2img -m test.map -l ku2 -o test.png" also blank. BTW: for other data sources layer configuration is working. > -Jukka Rahkonen- > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Ivan Mincik > L?hetetty: ke 24.9.2008 19:09 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] RE:mapserver + MS SQL > > I have started testing OGR ODBC connection from linux to MS SQL on win. > There is polygon layer at MS SQL. > > *** I have configured ovf file: > > > > ODBC:test/test at win > wkbPolygon > > > select geom from ku2 > > > > *** With ogrinfo -ro -al test.ovf I get: > > OGRFeature(ku2):1599 > geom (Binary) = 000000000104BA0000003EB1148070BF20C15D1DF97FB5C832C11B1727C08FBF20C16F23... > POINT (0.0 -0.0) > > OGRFeature(ku2):1600 > geom (Binary) = 000000000104C8010000C23023A08D2C19C1BC001400308E32C1C84A35A0372C19C1CF70... > POINT (0.0 -0.0) > > OGRFeature(ku2):1601 > geom (Binary) = 0000000001047905000038864D009A7818C19A41F1FF68B732C19092B3BF6C7818C10808... > POINT (0.0 0.0) > > > *** In the mapfile : > > LAYER > NAME 'ku2' > DEBUG 5 > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION "test.ovf" > DATA "ku2" > STATUS ON > PROJECTION > "init=epsg:2065" > END > METADATA > "DESCRIPTION" "test" > 'wms_title' 'test' > "wms_format" "image/png" > END > CLASS > NAME "test" > STYLE > OUTLINECOLOR 239 110 115 > COLOR 204 204 204 > WIDTH 8 > END > END > END > > *** shp2img -m test.map -o test.png will run without error, but output image is BLANK. Any idea ? > I have tried this with 2 different layers, different coordinate systems. > > > > > >Hi list, > >At first, I would like to say that I am not a fan in replacing perfect PostGIS database to MS SQL, but I must to adapt to customer's needs. > >I would like to ask if somebody has experience with loading data to mapserver from MS SQL Spatial 2008. > >Now, in 5.2 there is possibility to use new PLUGIN for MS SQL, which is only for Windows .... > >Other possibility is to use ODBC connection through OGR which can be working also in Linux. > > > >So my questions are : > >1. Is there any other possibility ? > >2. What is Your experience with performance when using ODBC connection through OGR ? > >3. What is Your experience with performance when using new PLUGIN for MS SQL in 5.2 ? > > > >Thanks a lot > >-- > > >Ivan > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Mgr. Ivan Min??k Gista s.r.o tel:. 0907 639 570 email: ivan.mincik at gista.sk http://www.gista.sk, http://demo.gisplan.sk ------------------------------------------------------- -- Mgr. Ivan Min??k Gista s.r.o tel:. 0907 639 570 email: ivan.mincik at gista.sk http://www.gista.sk, http://demo.gisplan.sk From Jukka.Rahkonen at mmmtike.fi Wed Sep 24 09:56:12 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 24 Sep 2008 19:56:12 +0300 Subject: [mapserver-users] RE:mapserver + MS SQL References: <200809241843.22170.ivan.mincik@gmail.com> Message-ID: Hi, >> First thing that comes into my mind is the good old STATUS ON thing. LAYER ON in mapfile means that the layer can be requested, but not that it is automatically included in a map. STATUS DEFAULT includes it automatic. Try what happens if you use: >> >> shp2img -m test.map -l ku2 -o test.png >> >> Alternatively, change LAYER DEFAULT and use the old command. >> > Thanks for reply, > still blank picture, with "shp2img -m test.map -l ku2 -o test.png" also blank. BTW: for other data sources layer configuration > is > working. Pity, it would have been an easy fix but it was not the problem this time. Another common reason for blank image is that map extents do not suit the data extents. To make things as simple as possible in the beginning, check that your MAP is using the same projection as your LAYER, and that map extents are the same than extents of the data as reported by ogr2org. If this does not help either I fear I need to give up because I have never used the datasource you are using. -Jukka Rahkonen- From ivan.mincik at gmail.com Wed Sep 24 10:10:28 2008 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Wed, 24 Sep 2008 19:10:28 +0200 Subject: [mapserver-users] RE:mapserver + MS SQL In-Reply-To: References: <200809241843.22170.ivan.mincik@gmail.com> Message-ID: <200809241910.29308.ivan.mincik@gmail.com> On Wednesday 24 September 2008 18:56, you wrote: > Hi, > > >> First thing that comes into my mind is the good old STATUS ON thing. LAYER ON in mapfile means that the layer can be requested, but not that it is automatically included in a map. STATUS DEFAULT includes it automatic. Try what happens if you use: > >> > >> shp2img -m test.map -l ku2 -o test.png > >> > >> Alternatively, change LAYER DEFAULT and use the old command. > >> > > Thanks for reply, > > still blank picture, with "shp2img -m test.map -l ku2 -o test.png" also blank. BTW: for other data sources layer configuration > is > > working. > > > Pity, it would have been an easy fix but it was not the problem this time. Another common reason for blank image is that map extents do not suit the data extents. To make things as simple as possible in the beginning, check that your MAP is using the same projection as your LAYER, and that map extents are the same than extents of the data as reported by ogr2org. If this does not help either I fear I need to give up because I have never used the datasource you are using. > > -Jukka Rahkonen- > I was sure that MAPfile EXTENT is matching my data, but I have newer looked at ogrinfo's information about extent, because it is running from the screen very quickly. :) That is the problem. But why it is corrupted ? ogrinfo -ro -al test.ovf INFO: Open of `test.ovf' using driver `VRT' successful. Layer name: ku2 Geometry: Polygon Feature Count: 3550 Extent: (0.000000, -179441753791143469094582348050368606076769230976979143232596333732447718749484086013883159597108285162399003906607672013838798107945428976738835963963233366067456373325182194301163139111338691906684738825653288761055373466181297667973352185310923583498447210294222491698471297629594914501155102277295675539456.000000) - (0.000000, 175734419613493915284908111527587685566285205239442963467256452943608984986725857350577088162863653468103413582900903009085827916464724144589133044259082766497414963423479118268465870571875835035017193992561074143650124470293091261615552841201430022775661034285205338433980355154804186847502850450881261862912.000000) Layer SRS WKT: (unknown) From ivan.mincik at gmail.com Wed Sep 24 10:14:50 2008 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Wed, 24 Sep 2008 19:14:50 +0200 Subject: [mapserver-users] RE:mapserver + MS SQL In-Reply-To: References: <200809241809.53913.ivan.mincik@gmail.com> Message-ID: <200809241914.51071.ivan.mincik@gmail.com> Does OGR understand MS SQL Spatial geometry ? On Wednesday 24 September 2008 18:26, you wrote: > Hi, > > First thing that comes into my mind is the good old STATUS ON thing. LAYER ON in mapfile means that the layer can be requested, but not that it is automatically included in a map. STATUS DEFAULT includes it automatic. Try what happens if you use: > > shp2img -m test.map -l ku2 -o test.png > > Alternatively, change LAYER DEFAULT and use the old command. > > -Jukka Rahkonen- > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Ivan Mincik > L?hetetty: ke 24.9.2008 19:09 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] RE:mapserver + MS SQL > > I have started testing OGR ODBC connection from linux to MS SQL on win. > There is polygon layer at MS SQL. > > *** I have configured ovf file: > > > > ODBC:test/test at win > wkbPolygon > > > select geom from ku2 > > > > *** With ogrinfo -ro -al test.ovf I get: > > OGRFeature(ku2):1599 > geom (Binary) = 000000000104BA0000003EB1148070BF20C15D1DF97FB5C832C11B1727C08FBF20C16F23... > POINT (0.0 -0.0) > > OGRFeature(ku2):1600 > geom (Binary) = 000000000104C8010000C23023A08D2C19C1BC001400308E32C1C84A35A0372C19C1CF70... > POINT (0.0 -0.0) > > OGRFeature(ku2):1601 > geom (Binary) = 0000000001047905000038864D009A7818C19A41F1FF68B732C19092B3BF6C7818C10808... > POINT (0.0 0.0) > > > *** In the mapfile : > > LAYER > NAME 'ku2' > DEBUG 5 > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION "test.ovf" > DATA "ku2" > STATUS ON > PROJECTION > "init=epsg:2065" > END > METADATA > "DESCRIPTION" "test" > 'wms_title' 'test' > "wms_format" "image/png" > END > CLASS > NAME "test" > STYLE > OUTLINECOLOR 239 110 115 > COLOR 204 204 204 > WIDTH 8 > END > END > END > > *** shp2img -m test.map -o test.png will run without error, but output image is BLANK. Any idea ? > I have tried this with 2 different layers, different coordinate systems. > > > > > >Hi list, > >At first, I would like to say that I am not a fan in replacing perfect PostGIS database to MS SQL, but I must to adapt to customer's needs. > >I would like to ask if somebody has experience with loading data to mapserver from MS SQL Spatial 2008. > >Now, in 5.2 there is possibility to use new PLUGIN for MS SQL, which is only for Windows .... > >Other possibility is to use ODBC connection through OGR which can be working also in Linux. > > > >So my questions are : > >1. Is there any other possibility ? > >2. What is Your experience with performance when using ODBC connection through OGR ? > >3. What is Your experience with performance when using new PLUGIN for MS SQL in 5.2 ? > > > >Thanks a lot > >-- > > >Ivan > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Mgr. Ivan Min??k Gista s.r.o tel:. 0907 639 570 email: ivan.mincik at gista.sk http://www.gista.sk, http://demo.gisplan.sk From MarkVolz at co.lyon.mn.us Wed Sep 24 11:31:27 2008 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Wed, 24 Sep 2008 13:31:27 -0500 Subject: [mapserver-users] scalebar - control units based on scale? Message-ID: <3D56274B4A7874468F58FADDBFD098010622DB0B@llmhs02.r8nssis.local> Hello, Is there a way to use the current scale to control the units used on the scalebar? For example I would like the scalebar to display * 100 feet instead of .019 miles when I am zoomed in * 12 miles instead of 63000 feet when I am zoomed out Mark Volz GIS Specialist Lyon County, MN (507) 532-8218 -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Wed Sep 24 11:59:00 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 24 Sep 2008 13:59:00 -0500 Subject: [mapserver-users] transparent pixmaps in python mapscripts In-Reply-To: <48DA446F.4020003@mapgears.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FC0C2@s-sp22.pca.state.mn.us> Thanks Daniel, I am not calling layer.draw(), just map.draw(). David. -----Original Message----- From: Daniel Morissette [mailto:dmorissette at mapgears.com] Sent: Wednesday, September 24, 2008 8:45 AM To: Fawcett, David Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] transparent pixmaps in python mapscripts David, TRANSPARENCY ALPHA works only between layers drawn using map.draw() in a single pass. If you call layer.draw() for each layer in a loop in your script then TRANSPARENCY ALPHA has no effect and that could explain the problem you are encountering. Daniel Fawcett, David wrote: > I am using a pixmap symbol to mark a point using Python MapScript v. > 5.2. > > The image has a transparent background. When I use the symbol with > MapServer CGI, I the transparency works. When I use the symbol in > MapScript, I get a black background for the symbol, no transparency. > > Here is how I am creating the symbol: > > img = mapscript.imageObj(/symbols/redcross.png', 'GD/PNG') > > # create the symbol using the image > symbol = mapscript.symbolObj('from_img') > symbol.type = mapscript.MS_SYMBOL_PIXMAP > symbol.setImage(img) > symbol_index = mymap.symbolset.appendSymbol(symbol) > > I also tried to add this to the layer, but it made no difference > either: inline_layer.transparency = mapscript.MS_GD_ALPHA > > Here is a gdalinfo report on the symbol image: > > Driver: PNG/Portable Network Graphics > Files: redcross.png > Size is 32, 32 > Coordinate System is `' > Image Structure Metadata: > INTERLEAVE=PIXEL > Corner Coordinates: > Upper Left ( 0.0, 0.0) > Lower Left ( 0.0, 32.0) > Upper Right ( 32.0, 0.0) > Lower Right ( 32.0, 32.0) > Center ( 16.0, 16.0) > Band 1 Block=32x1 Type=Byte, ColorInterp=Red > Mask Flags: PER_DATASET ALPHA > Band 2 Block=32x1 Type=Byte, ColorInterp=Green > Mask Flags: PER_DATASET ALPHA > Band 3 Block=32x1 Type=Byte, ColorInterp=Blue > Mask Flags: PER_DATASET ALPHA > Band 4 Block=32x1 Type=Byte, ColorInterp=Alpha > > Any ideas on how to get a pixmap symbol with a transparent background > using python mapscript? > > Thanks, > > David. > > > > > > ---------------------------------------------------------------------- > -- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From David.Fawcett at state.mn.us Wed Sep 24 11:59:56 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 24 Sep 2008 13:59:56 -0500 Subject: [mapserver-users] transparent pixmaps in python mapscripts In-Reply-To: <820023.67244.qm@web51409.mail.re2.yahoo.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FC0C3@s-sp22.pca.state.mn.us> Thanks Dan, I am plopping it on an air photo, so I don't think that your approach will work. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dan Little Sent: Wednesday, September 24, 2008 10:02 AM To: Daniel Morissette; Fawcett, David Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] transparent pixmaps in python mapscripts You could render the map with a known background color, and then use PIL to create a transparent GIF from the image. If you can use white as the bg color then you can convert the image to a 2 color bitmap in memory, and then use it as a mask to perform the transparency composition. ----- Original Message ---- > From: Daniel Morissette > To: "Fawcett, David" > Cc: mapserver-users at lists.osgeo.org > Sent: Wednesday, September 24, 2008 8:45:19 AM > Subject: Re: [mapserver-users] transparent pixmaps in python > mapscripts > > David, > > TRANSPARENCY ALPHA works only between layers drawn using map.draw() in > a > single pass. If you call layer.draw() for each layer in a loop in your > script then TRANSPARENCY ALPHA has no effect and that could explain the > problem you are encountering. > > Daniel > > > Fawcett, David wrote: > > I am using a pixmap symbol to mark a point using Python MapScript v. > > 5.2. > > > > The image has a transparent background. When I use the symbol with > > MapServer CGI, I the transparency works. When I use the symbol in > > MapScript, I get a black background for the symbol, no transparency. > > > > Here is how I am creating the symbol: > > > > img = mapscript.imageObj(/symbols/redcross.png', 'GD/PNG') > > > > # create the symbol using the image > > symbol = mapscript.symbolObj('from_img') > > symbol.type = mapscript.MS_SYMBOL_PIXMAP > > symbol.setImage(img) > > symbol_index = mymap.symbolset.appendSymbol(symbol) > > > > I also tried to add this to the layer, but it made no difference > > either: inline_layer.transparency = mapscript.MS_GD_ALPHA > > > > Here is a gdalinfo report on the symbol image: > > > > Driver: PNG/Portable Network Graphics > > Files: redcross.png > > Size is 32, 32 > > Coordinate System is `' > > Image Structure Metadata: > > INTERLEAVE=PIXEL > > Corner Coordinates: > > Upper Left ( 0.0, 0.0) > > Lower Left ( 0.0, 32.0) > > Upper Right ( 32.0, 0.0) > > Lower Right ( 32.0, 32.0) > > Center ( 16.0, 16.0) > > Band 1 Block=32x1 Type=Byte, ColorInterp=Red > > Mask Flags: PER_DATASET ALPHA > > Band 2 Block=32x1 Type=Byte, ColorInterp=Green > > Mask Flags: PER_DATASET ALPHA > > Band 3 Block=32x1 Type=Byte, ColorInterp=Blue > > Mask Flags: PER_DATASET ALPHA > > Band 4 Block=32x1 Type=Byte, ColorInterp=Alpha > > > > Any ideas on how to get a pixmap symbol with a transparent > > background > > using python mapscript? > > > > Thanks, > > > > David. > > > > > > > > > > > > -------------------------------------------------------------------- > > ---- > > > > _______________________________________________ > > mapserver-users mailing list mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > Daniel Morissette > http://www.mapgears.com/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Wed Sep 24 12:44:10 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 24 Sep 2008 14:44:10 -0500 Subject: [mapserver-users] query case insensitive Message-ID: <48DA523A0200008F0001BEA6@co5.dnr.state.mn.us> Use the *~ operator as described at: http://www.postgresql.org/docs/8.3/static/functions-matching.html Steve >>> "Sven Schroeter" 09/24/08 5:12 AM >>> Hi all, I'm using the queryByAttributes-function of PHP-Mapscript with the LIKE (~) operator for strings (out of a POSTGIS-table): $queryString = "nom_bande ~ 'WT'"; $queryItem = "nom_bande"; @$datQuery = $layer->queryByAttributes($queryitem,$queryString,MS_MULTIPLE); Every dataset that contains 'WT' comes as result. But this is case sensitive, if I try $queryString = "nom_bande ~ 'wt'"; there is no result. Is it possible to make the query case insensitive? Thanks Sven _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Wed Sep 24 12:47:50 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 24 Sep 2008 14:47:50 -0500 Subject: [mapserver-users] scalebar - control units based on scale? Message-ID: <48DA53160200008F0001BEB1@co5.dnr.state.mn.us> Hi Mark: There's no easy way in MapServer. The way I'd do it would be to intervene on the client side and change calls to MapServer to use scalebar units in feet instead of miles once you cross a scale threshold. You can do that by appending map.scalebar=units%20feet to the URLs. Steve >>> "Mark Volz" 09/24/08 1:32 PM >>> Hello, Is there a way to use the current scale to control the units used on the scalebar? For example I would like the scalebar to display * 100 feet instead of .019 miles when I am zoomed in * 12 miles instead of 63000 feet when I am zoomed out Mark Volz GIS Specialist Lyon County, MN (507) 532-8218 From danlittle at yahoo.com Wed Sep 24 12:50:10 2008 From: danlittle at yahoo.com (Dan Little) Date: Wed, 24 Sep 2008 12:50:10 -0700 (PDT) Subject: [mapserver-users] transparent pixmaps in python mapscripts Message-ID: <369667.82015.qm@web51410.mail.re2.yahoo.com> It would be three step process. 1) Generate the image. 2) Perform the clipping. 3) Over lay the new clipped image onto the Aerial. It would require two Mapscript calls to generate images (one for the overlay and one for the aerial) but it would let the solution work. If you need any code I've used this method for a couple of applications' printing capabilities. ----- Original Message ---- > From: "Fawcett, David" > To: Dan Little > Cc: mapserver-users at lists.osgeo.org > Sent: Wednesday, September 24, 2008 1:59:56 PM > Subject: RE: [mapserver-users] transparent pixmaps in python mapscripts > > Thanks Dan, I am plopping it on an air photo, so I don't think that your > approach will work. > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dan Little > Sent: Wednesday, September 24, 2008 10:02 AM > To: Daniel Morissette; Fawcett, David > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] transparent pixmaps in python mapscripts > > > You could render the map with a known background color, and then use PIL > to create a transparent GIF from the image. > > If you can use white as the bg color then you can convert the image to a > 2 color bitmap in memory, and then use it as a mask to perform the > transparency composition. > > > > ----- Original Message ---- > > From: Daniel Morissette > > To: "Fawcett, David" > > Cc: mapserver-users at lists.osgeo.org > > Sent: Wednesday, September 24, 2008 8:45:19 AM > > Subject: Re: [mapserver-users] transparent pixmaps in python > > mapscripts > > > > David, > > > > TRANSPARENCY ALPHA works only between layers drawn using map.draw() in > > > a > > single pass. If you call layer.draw() for each layer in a loop in your > > > script then TRANSPARENCY ALPHA has no effect and that could explain > the > > problem you are encountering. > > > > Daniel > > > > > > Fawcett, David wrote: > > > I am using a pixmap symbol to mark a point using Python MapScript v. > > > > 5.2. > > > > > > The image has a transparent background. When I use the symbol with > > > MapServer CGI, I the transparency works. When I use the symbol in > > > MapScript, I get a black background for the symbol, no transparency. > > > > > > > Here is how I am creating the symbol: > > > > > > img = mapscript.imageObj(/symbols/redcross.png', 'GD/PNG') > > > > > > # create the symbol using the image > > > symbol = mapscript.symbolObj('from_img') > > > symbol.type = mapscript.MS_SYMBOL_PIXMAP > > > symbol.setImage(img) > > > symbol_index = mymap.symbolset.appendSymbol(symbol) > > > > > > I also tried to add this to the layer, but it made no difference > > > either: inline_layer.transparency = mapscript.MS_GD_ALPHA > > > > > > Here is a gdalinfo report on the symbol image: > > > > > > Driver: PNG/Portable Network Graphics > > > Files: redcross.png > > > Size is 32, 32 > > > Coordinate System is `' > > > Image Structure Metadata: > > > INTERLEAVE=PIXEL > > > Corner Coordinates: > > > Upper Left ( 0.0, 0.0) > > > Lower Left ( 0.0, 32.0) > > > Upper Right ( 32.0, 0.0) > > > Lower Right ( 32.0, 32.0) > > > Center ( 16.0, 16.0) > > > Band 1 Block=32x1 Type=Byte, ColorInterp=Red > > > Mask Flags: PER_DATASET ALPHA > > > Band 2 Block=32x1 Type=Byte, ColorInterp=Green > > > Mask Flags: PER_DATASET ALPHA > > > Band 3 Block=32x1 Type=Byte, ColorInterp=Blue > > > Mask Flags: PER_DATASET ALPHA > > > Band 4 Block=32x1 Type=Byte, ColorInterp=Alpha > > > > > > Any ideas on how to get a pixmap symbol with a transparent > > > background > > > using python mapscript? > > > > > > Thanks, > > > > > > David. > > > > > > > > > > > > > > > > > > -------------------------------------------------------------------- > > > ---- > > > > > > _______________________________________________ > > > mapserver-users mailing list mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > > Daniel Morissette > > http://www.mapgears.com/ > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From austin at cushingtechnologies.com Wed Sep 24 12:50:34 2008 From: austin at cushingtechnologies.com (Austin Donaghy) Date: Wed, 24 Sep 2008 14:50:34 -0500 Subject: [mapserver-users] OGR/PHP Consultant sought - Uprade to existing application Message-ID: <1DA1F8ECF7904DC5952509CBB1A70831@AJDDV2500> My late son (Phil Donaghy) built an application using OGR in PHP using MS4W that plots points using address information. We use this application for 911 data to pinpoint the address. We now wish to extend this to use this same application to plot a point given a Lat/Long for both 911 Phase II data and GPS. Does someone have a suggestion or php code fragment we could use to plug a lat/long argument into this application and come up with a point on the mapserver map display? The existing app (modified from one originally developed by folks at DM Solutions) takes the address, parses the map DBF and derives the point using the X and Y values therein. It works well and we simply want to augment it with Lat/Long interpretation - a skill I lack. This is an initial opportunity that has ongoing opportunities. Thanks Austin Donaghy Director Cushing Technologies Inc. www.cushingtechnologies.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitchelljj98 at gmail.com Wed Sep 24 13:03:16 2008 From: mitchelljj98 at gmail.com (John Mitchell) Date: Wed, 24 Sep 2008 16:03:16 -0400 Subject: [mapserver-users] can't derive the projection for a geotiff in Guatemala Message-ID: Hi, I am having difficulty deriving the EPSG code/projection/Coordinate System for a geotiff in Guatemala. Any help would be appreciated. Below is the gdalinfo listing: Driver: GTiff/GeoTIFF Size is 11214, 7860 Coordinate System is `' Origin = (317049.000000000000000,1659460.000000000000000) Pixel Size = (0.500000000000000,-0.500000000000000) Metadata: AREA_OR_POINT=Area TIFFTAG_SOFTWARE=ERDAS IMAGINE TIFFTAG_XRESOLUTION=1 TIFFTAG_YRESOLUTION=1 TIFFTAG_RESOLUTIONUNIT=1 (unitless) Corner Coordinates: Upper Left ( 317049.000, 1659460.000) Lower Left ( 317049.000, 1655530.000) Upper Right ( 322656.000, 1659460.000) Lower Right ( 322656.000, 1655530.000) Center ( 319852.500, 1657495.000) Band 1 Block=11214x8 Type=Byte, ColorInterp=Red Band 2 Block=11214x8 Type=Byte, ColorInterp=Green Band 3 Block=11214x8 Type=Byte, ColorInterp=Blue Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Wed Sep 24 13:09:40 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 24 Sep 2008 15:09:40 -0500 Subject: [mapserver-users] python mapscript - creating vector symbols on the fly? Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FC0C5@s-sp22.pca.state.mn.us> In Python mapscript, is it possible to construct a vector symbol, like a circle, without referencing a mapfile or a symbolset file? Essentially, build this in code: SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END If so, a few lines of code would be greatly appreciated... David. From randre at gmail.com Wed Sep 24 13:38:08 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Wed, 24 Sep 2008 13:38:08 -0700 Subject: [mapserver-users] Transparency via WMS request? Message-ID: <9c2015090809241338q9d31c92ge09f81326d3e81d9@mail.gmail.com> Ok, this is driving me bonkers. I have a raster image with nodata values set to be transparent. When I make requests to this layer in "mode=map", it works beautifully, and the nodata values are transparent. - http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/temp/temp.map&mode=map However, when I try to view the same data via a WMS request, the nodata values are displayed in black. - http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/temp/temp.map &SERVICE=WMS &version=%221.1.122 &REQUEST=GetMap &LAYERS=imagery &STYLES= &BBOX=-180,-90,180,90 &WIDTH=600 &HEIGHT=500 &FORMAT=png &SRS=epsg:4326 I have tried doing a couple of things to fix this, none of which has worked: - added "wms_transparent" "TRUE" to METADATA section of LAYER - added "&TRANSPARENT=TRUE" to the end of the WMS request - made sure that in OUTPUTFORMAT I have all of these: OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "TRANSPARENT=ON" FORMATOPTION "INTERLACE=OFF" TRANSPARENT ON END #end outputformat Please, can anyone tell me what I'm missing? Thanks, Roger -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Wed Sep 24 15:22:49 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 24 Sep 2008 17:22:49 -0500 Subject: [mapserver-users] shade a county Message-ID: <48DA776D0200008F0001BF13@co5.dnr.state.mn.us> A query map will do this. That is you do a point search with map output (mode=querymap) or mode=query with queryformat (in the mapfile) set to your favorite image type (e.g. PNG, PNG24, AGGPNG24, etc...). Steve >>> Mark Brooks 09/23/08 11:16 AM >>> I have a shapefile of type polygon of all counties in the United States. Given a latitude/longitude point, I want to shade/hatch the county that it's in. I'm not sure of the best way to do this. Any suggestions? I'm working with PHP Mapscript by the way. Mark _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From randre at gmail.com Wed Sep 24 15:36:15 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Wed, 24 Sep 2008 15:36:15 -0700 Subject: [mapserver-users] Re: Transparency via WMS request? In-Reply-To: <9c2015090809241338q9d31c92ge09f81326d3e81d9@mail.gmail.com> References: <9c2015090809241338q9d31c92ge09f81326d3e81d9@mail.gmail.com> Message-ID: <9c2015090809241536h46c4511ew73620f0b59a19983@mail.gmail.com> Thanks to some help from a fellow GIS developer, I think I've narrowed the problem down to the OUTPUTFORMAT section of my mapfile. Changing from the AGG to GD driver seemed to take care of the problem. Will need to do some additional futzing to see if I can get it working with AGG. -- On Wed, Sep 24, 2008 at 1:38 PM, Roger Andr? wrote: > Ok, this is driving me bonkers. I have a raster image with nodata values > set to be transparent. When I make requests to this layer in "mode=map", it > works beautifully, and the nodata values are transparent. > > - > http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/temp/temp.map&mode=map > > However, when I try to view the same data via a WMS request, the nodata > values are displayed in black. > > - http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/temp/temp.map > &SERVICE=WMS > &version=%221.1.122 > &REQUEST=GetMap > &LAYERS=imagery > &STYLES= > &BBOX=-180,-90,180,90 > &WIDTH=600 > &HEIGHT=500 > &FORMAT=png > &SRS=epsg:4326 > > I have tried doing a couple of things to fix this, none of which has > worked: > - added "wms_transparent" "TRUE" to METADATA section of LAYER > - added "&TRANSPARENT=TRUE" to the end of the WMS request > - made sure that in OUTPUTFORMAT I have all of these: > OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > FORMATOPTION "TRANSPARENT=ON" > FORMATOPTION "INTERLACE=OFF" > TRANSPARENT ON > END #end outputformat > > Please, can anyone tell me what I'm missing? > > Thanks, > > Roger > -- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From SansonR at asurequality.com Wed Sep 24 15:39:31 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Thu, 25 Sep 2008 10:39:31 +1200 Subject: [mapserver-users] Re: Transparency via WMS request? In-Reply-To: <9c2015090809241536h46c4511ew73620f0b59a19983@mail.gmail.com> References: <9c2015090809241338q9d31c92ge09f81326d3e81d9@mail.gmail.com> <9c2015090809241536h46c4511ew73620f0b59a19983@mail.gmail.com> Message-ID: <48DB6A63.379F.0037.0@asurequality.com> Is it possible to get layer transparency when outputformat=PDF? Thanks, Robert Sanson >>> "Roger Andr?" 25/09/2008 10:36 a.m. >>> Thanks to some help from a fellow GIS developer, I think I've narrowed the problem down to the OUTPUTFORMAT section of my mapfile. Changing from the AGG to GD driver seemed to take care of the problem. Will need to do some additional futzing to see if I can get it working with AGG. -- On Wed, Sep 24, 2008 at 1:38 PM, Roger Andr? wrote: Ok, this is driving me bonkers. I have a raster image with nodata values set to be transparent. When I make requests to this layer in "mode=map", it works beautifully, and the nodata values are transparent. - http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/temp/temp.map&mode=map However, when I try to view the same data via a WMS request, the nodata values are displayed in black. - http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/temp/temp.map &SERVICE=WMS &version=%221.1.122 &REQUEST=GetMap &LAYERS=imagery &STYLES= &BBOX=-180,-90,180,90 &WIDTH=600 &HEIGHT=500 &FORMAT=png &SRS=epsg:4326 I have tried doing a couple of things to fix this, none of which has worked: - added "wms_transparent" "TRUE" to METADATA section of LAYER - added "&TRANSPARENT=TRUE" to the end of the WMS request - made sure that in OUTPUTFORMAT I have all of these: OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "TRANSPARENT=ON" FORMATOPTION "INTERLACE=OFF" TRANSPARENT ON END #end outputformat Please, can anyone tell me what I'm missing? Thanks, Roger -- Click here ( https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg== ) to report this email as spam. ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From randre at gmail.com Wed Sep 24 15:56:07 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Wed, 24 Sep 2008 15:56:07 -0700 Subject: [mapserver-users] Re: Transparency via WMS request? In-Reply-To: <48DB6A63.379F.0037.0@asurequality.com> References: <9c2015090809241338q9d31c92ge09f81326d3e81d9@mail.gmail.com> <9c2015090809241536h46c4511ew73620f0b59a19983@mail.gmail.com> <48DB6A63.379F.0037.0@asurequality.com> Message-ID: <9c2015090809241556o67fd3d15o467528e398e27b8e@mail.gmail.com> Sorry, but I can't test that. I don't have pdf support compiled into this version of Mapserver. I did get transparency to work using the AGG driver by altering my OUTPUTFORMAT to look like this: OUTPUTFORMAT NAME 'AGGA' DRIVER AGG/PNG IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "TRANSPARENT=ON" FORMATOPTION "INTERLACE=OFF" TRANSPARENT ON END #end outputformat Unfortunately, it seemed to have decreased the quality of the rendering. I've switched back to using the GD driver, and that seems to give good quality and correct transparency. OUTPUTFORMAT NAME 'png' DRIVER GD/PNG IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "TRANSPARENT=ON" FORMATOPTION "INTERLACE=OFF" TRANSPARENT ON END #end outputformat --- On Wed, Sep 24, 2008 at 3:39 PM, Robert Sanson wrote: > Is it possible to get layer transparency when outputformat=PDF? > > Thanks, > > Robert Sanson > > >>> "Roger Andr?" 25/09/2008 10:36 a.m. >>> > Thanks to some help from a fellow GIS developer, I think I've narrowed the > problem down to the OUTPUTFORMAT section of my mapfile. Changing from the > AGG to GD driver seemed to take care of the problem. Will need to do some > additional futzing to see if I can get it working with AGG. > -- > > > > On Wed, Sep 24, 2008 at 1:38 PM, Roger Andr? wrote: > >> Ok, this is driving me bonkers. I have a raster image with nodata values >> set to be transparent. When I make requests to this layer in "mode=map", it >> works beautifully, and the nodata values are transparent. >> >> - >> http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/temp/temp.map&mode=map >> >> However, when I try to view the same data via a WMS request, the nodata >> values are displayed in black. >> >> - http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/temp/temp.map >> &SERVICE=WMS >> &version="1.1.122 >> >> &REQUEST=GetMap >> &LAYERS=imagery >> &STYLES= >> &BBOX=-180,-90,180,90 >> &WIDTH=600 >> &HEIGHT=500 >> &FORMAT=png >> &SRS=epsg:4326 >> >> I have tried doing a couple of things to fix this, none of which has >> worked: >> - added "wms_transparent" "TRUE" to METADATA section of LAYER >> - added "&TRANSPARENT=TRUE" to the end of the WMS request >> - made sure that in OUTPUTFORMAT I have all of these: >> OUTPUTFORMAT >> NAME png >> DRIVER "AGG/PNG" >> MIMETYPE "image/png" >> IMAGEMODE RGBA >> EXTENSION "png" >> FORMATOPTION "TRANSPARENT=ON" >> FORMATOPTION "INTERLACE=OFF" >> TRANSPARENT ON >> END #end outputformat >> >> Please, can anyone tell me what I'm missing? >> >> Thanks, >> >> Roger >> -- >> > > > > Click here to > report this email as spam. > > > > ------------------------------------------------------------------ > > The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. > ------------------------------------------------------------------ > > This message has been scanned for malware by SurfControl plc. > www.surfcontrol.com > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ishwari.s at gmail.com Wed Sep 24 19:19:53 2008 From: ishwari.s at gmail.com (Ishwari Sivagnanam) Date: Thu, 25 Sep 2008 07:49:53 +0530 Subject: [mapserver-users] Re: mapserver-users Digest, Vol 8, Issue 81 In-Reply-To: <20080924065610.00161E01268@lists.osgeo.org> References: <20080924065610.00161E01268@lists.osgeo.org> Message-ID: Ludovico,I had a java mapscript connection timeout problem too. Making sure that every table with feature information in PostGIS had a corresponding record in the "geometry_columns" table and then doing a Vacuum/analyze/reindex on the database, fixed my problem. If you haven't done this already then maybe you can try this too. Just a suggestion. Ishwari > > ------------------------------ > > Message: 7 > Date: Wed, 24 Sep 2008 08:56:03 +0200 > From: "Umberto Nicoletti" > Subject: Re: [mapserver-users] java mapscript + postgis = jvm crashed > To: "Ludovico Bianchini" > Cc: mapserver-users at lists.osgeo.org > Message-ID: > <75b4b93e0809232356s67f55821o1bc08b9b16e24fca at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > On Tue, Sep 23, 2008 at 10:50 PM, Ludovico Bianchini > wrote: > > Umberto Nicoletti ha scritto: > >> > >> I am using postgis layers (on Linux, though) and it works fine. > >> > >> Do you share the same mapObj between threads (in application scope) or > >> multiple requests (in session scope)? > >> mapscript is safe only when a new mapObj is created for each request. > >> What other kind of layers do you have in your map? > >> > >> Umberto > >> > >> > >> On Mon, Sep 22, 2008 at 10:34 PM, Ludovico Bianchini > >> wrote: > >> > >>> > >>> - Windows Vista Home Premium > >>> - Postgres 8.1 > >>> - jvm 1.6.0 > >>> - jboss 4.0.3SP1, tomcat 5.5 > >>> - struts2 > >>> - ms4w 2.2.3 (mapscript.jar, mapscript.dll, all other dlls taken from > >>> this pack) > >>> - postgresql-8.2-505.jdbc4.jar > >>> > >>> mapscript.jar is placed in > >>> C:\jboss-4.0.3SP1\server\default\deploy\jbossweb-tomcat55.sar > >>> > >>> When a layer with a postgis connection is turned on, the draw method > >>> crashes the jvm. > >>> > >>> Error file attached. > >>> > >>> Is there any solution to this problem? > >>> > >>> Postgis is listed in "unsafe components", i have not understood if > there > >>> is one way to make it work using thread syncronization. > >>> > >>> Thanks in advance for any help. > >>> > >>> Ludovico > >>> > >>> > >>> __________________________________________________ > >>> Do You Yahoo!? > >>> Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da > >>> tanto spazio gratuito per i tuoi file e i messaggi > >>> http://mail.yahoo.it > >>> _______________________________________________ > >>> mapserver-users mailing list > >>> mapserver-users at lists.osgeo.org > >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >>> > >>> > >>> > >> > >> > >> > > > > I think I do not share the same object between request. > > > > The other layer are shape file layer, they work fine (zoom ok, pan ok). > > > > > > > > . > > . > > . > > > method="{1}"> > > /jsp/mappa.jsp > > . > > . > > . > > > > > > > > > > public class MappaAction extends ActionSupport implements > > ServletRequestAware{ > > Are you sharing any mapscript object as an Action attribute? If yes > that's probably the culprit, otherwis it seems pretty strange... > Does the crash occur only when more than user is accessing the map or > even when there is only one user? > > Also ms4w 2.2.3 seems prett old, why don't you upgrade to the latest? > > Umberto > > > . > > .//attributes > > . > > . > > public String execute() throws Exception { > > mapObj mapObj_o = new > > mapObj("C:\\jboss-4.0.3sp1_map\\map\\treviso.map");//create a new mapObj > > object > > if(OP == null) OP = "-1"; > > int op = Integer.parseInt(OP); > > switch (op) { > > case Z_IN: zoomIn(mapObj_o); > > break; > > case Z_OUT: zoomOut(mapObj_o); > > break; > > case PAN: pan(mapObj_o); > > break; > > case REFRESH: refresh(mapObj_o); > > break; > > > > default: fullExtent(mapObj_o); > > break; > > } > > return SUCCESS; > > } > > . > > .//utility methods, map navigation methods > > . > > > > private void draw(mapObj mapObj_o){ > > . > > . > > mapImageObj = mapObj_o.draw();//this instruction crashes the JVM > > . > > . > > } > > > > } > > > > ######################################################## > > #### LAYER SEGNALETICA > > #### > > ######################################################## > > > > LAYER > > NAME "segnaletica" > > STATUS OFF > > TYPE POINT > > TRANSFORM false > > POSTLABELCACHE true > > CONNECTION "user=user password=password dbname=dbname > host=localhost > > port=5432" > > CONNECTIONTYPE postgis > > DATA "posizionegeoref from rilievi.impianti" CLASS > > STYLE > > COLOR 255 99 0 > > SYMBOL "circle" > > SIZE 12 > > END > > END > > PROJECTION > > "init=epsg:4326" > > END > > END > > > > Ludovico > > Chiacchiera con i tuoi amici in tempo reale! > > http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com > > > > > ------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > End of mapserver-users Digest, Vol 8, Issue 81 > ********************************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From SansonR at asurequality.com Wed Sep 24 21:02:17 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Thu, 25 Sep 2008 16:02:17 +1200 Subject: [mapserver-users] Including a title on a map? In-Reply-To: <30fe546d0809230814l63240046jc08f6a2899625a4b@mail.gmail.com> References: <72843415C8DA43C5B62BD4B531110D72@ixsea.local> <30fe546d0809230814l63240046jc08f6a2899625a4b@mail.gmail.com> Message-ID: <48DBB609.379F.0037.0@asurequality.com> Is it possible to print a title on a map? I would like to be able to send a variable on the URL containing a string to be used as a title to embed into the returned image in a particular location. I am using Javascript to formulate a CGI request for a PDF output, using mode=map. Many thanks, Robert Sanson ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ron at ocean.org.il Wed Sep 24 22:13:41 2008 From: ron at ocean.org.il (Ron Goldman) Date: Thu, 25 Sep 2008 08:13:41 +0300 Subject: [mapserver-users] display wind or current arrow map In-Reply-To: References: <48DA2BF7.9060606@ocean.org.il> Message-ID: <48DB1E05.8020204@ocean.org.il> Hi daryl, thank you for your answer. I can preprocess the netcdf to change it to direction/magnitude. but I couldn't get the SYMBOL to work with raster LAYER. My mapfile looks something like this: LAYER ... DATA "NETCDF:\test\test.nc:direction" TYPE RASTER PROCESSING "BANDS=1" PROCESSING "SCALE=0,360" ... CLASS EXPRESSION ([pixel] > 0.0 ) STYLE SYMBOL "arrow" ANGLE [pixel] COLOR 0 0 0 END END ... but I just get an black map of my raster. Are symbols supported with rasters? akrherz at iastate.edu wrote: > On Wed, 24 Sep 2008, Ron Goldman wrote: > >> I have a netcdf containing the Lon/Lat components of winds and >> currents and I want to display them on an arrow map. Is there a way >> to do this? so far I only found a way to do this for point >> shapefiles, but my data is composed of two rasters. any suggestions >> would be greatly appreciated. > > Hi Ron, > > Do you need to do this within the Mapserver CGI environment or can you > use Mapscript to generate your images? If you can use mapscript, you > can write your own logic to figure out the rotation values based on > the components. > > If you are stuck without mapscript, you could use another tool to add > a rotation variable to your NetCDF file and then directly use it in > your mapfile for symbol rotation (I believe this is now supported in > 5.2.0)... > > Others on this list may have more clever ideas. > > daryl > *********************************************************** This outgoing email was scanned for viruses and other malicious content by the IT Department of Israel Oceanographic & Limnological Research. AntiVirus system managed by Eli W. Tel. 972-4-8565267 IMPORTANT: Do not open attachments from unrecognized senders. Never open attached files with extensions: *.pif, *.scr, *.vbs, *.exe. *********************************************************** -------------- next part -------------- A non-text attachment was scrubbed... Name: ron.vcf Type: text/x-vcard Size: 338 bytes Desc: not available URL: From hellomps at gmail.com Wed Sep 24 23:17:20 2008 From: hellomps at gmail.com (ramya srinivasan) Date: Thu, 25 Sep 2008 11:47:20 +0530 Subject: [mapserver-users] Displaying points on the map only for certain time period Message-ID: <3702658f0809242317k9903a9bofe3cd224d0ed5d41@mail.gmail.com> Hi, I have to display a point on the map only for 5 seconds. After 5 seconds the second point from the database should be retrieved from the database and displayed.This process continues till all the points in the database is displayed.Can anyone tell me how to do this.. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Sep 24 23:36:28 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 25 Sep 2008 09:36:28 +0300 Subject: [mapserver-users] Including a title on a map? In-Reply-To: <48DBB609.379F.0037.0@asurequality.com> Message-ID: Perhaps you could see if this copyright layer document points to right direction? http://mapserver.gis.umn.edu/docs/faq/copyright-layer -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Robert Sanson L?hetetty: 25. syyskuuta 2008 7:02 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Including a title on a map? Is it possible to print a title on a map? I would like to be able to send a variable on the URL containing a string to be used as a title to embed into the returned image in a particular location. I am using Javascript to formulate a CGI request for a PDF output, using mode=map. Many thanks, Robert Sanson ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at gmail.com Wed Sep 24 23:46:43 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Thu, 25 Sep 2008 08:46:43 +0200 Subject: [mapserver-users] python mapscript - creating vector symbols on the fly? In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FC0C5@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5021FC0C5@s-sp22.pca.state.mn.us> Message-ID: <75b4b93e0809242346n569fc246p19736a0b9c616276@mail.gmail.com> David, after a quick look it seems that the API is there, although I am not entirely sure whether it is stable or tested. in pseudocode: symbol=new symbolObj() //set attributes of symbol map->symbolset.append(symbol) Regards, Umberto On Wed, Sep 24, 2008 at 10:09 PM, Fawcett, David wrote: > In Python mapscript, is it possible to construct a vector symbol, like a > circle, without referencing a mapfile or a symbolset file? > > Essentially, build this in code: > > SYMBOL > NAME 'circle' > TYPE ELLIPSE > POINTS 1 1 END > FILLED TRUE > END > > If so, a few lines of code would be greatly appreciated... > > David. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From ramses2k at gmx.de Thu Sep 25 00:29:52 2008 From: ramses2k at gmx.de (ramses2k) Date: Thu, 25 Sep 2008 09:29:52 +0200 Subject: [mapserver-users] Display many Raster maps References: <6246727221874A4FB8D3F9BBC37D9BD5021FC0C5@s-sp22.pca.state.mn.us> <75b4b93e0809242346n569fc246p19736a0b9c616276@mail.gmail.com> Message-ID: <000f01c91ee0$80004a20$0902a8c0@diebels> Dear List, I got a couple of Rater images (geoTIFF) and I wonder how I can get them all into one mapserver application. It's actually a big map composed of many tiles. The mapfile actually allowas only one TIFF-file to display, or am I completely wrong? thanks, Clemens / TU Darmstadt ----- Original Message ----- From: "Umberto Nicoletti" To: "Fawcett, David" Cc: Sent: Thursday, September 25, 2008 8:46 AM Subject: Re: [mapserver-users] python mapscript - creating vector symbols onthe fly? > David, > after a quick look it seems that the API is there, although I am not > entirely sure whether it is stable or tested. > > in pseudocode: > > symbol=new symbolObj() > //set attributes of symbol > map->symbolset.append(symbol) > > Regards, > Umberto > > > On Wed, Sep 24, 2008 at 10:09 PM, Fawcett, David > wrote: >> In Python mapscript, is it possible to construct a vector symbol, like a >> circle, without referencing a mapfile or a symbolset file? >> >> Essentially, build this in code: >> >> SYMBOL >> NAME 'circle' >> TYPE ELLIPSE >> POINTS 1 1 END >> FILLED TRUE >> END >> >> If so, a few lines of code would be greatly appreciated... >> >> David. >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Thu Sep 25 00:34:14 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 25 Sep 2008 10:34:14 +0300 Subject: [mapserver-users] Display many Raster maps In-Reply-To: <000f01c91ee0$80004a20$0902a8c0@diebels> Message-ID: Hi, Read this, especially what is said about rasters and tile indexing. http://mapserver.gis.umn.edu/docs/howto/raster_data -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta ramses2k > L?hetetty: 25. syyskuuta 2008 10:30 > Kopio: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Display many Raster maps > > Dear List, > > I got a couple of Rater images (geoTIFF) and I wonder how I > can get them all into one mapserver application. It's > actually a big map composed of many tiles. The mapfile > actually allowas only one TIFF-file to display, or am I > completely wrong? > > thanks, > Clemens / TU Darmstadt > > > > ----- Original Message ----- > From: "Umberto Nicoletti" > To: "Fawcett, David" > Cc: > Sent: Thursday, September 25, 2008 8:46 AM > Subject: Re: [mapserver-users] python mapscript - creating > vector symbols onthe fly? > > > > David, > > after a quick look it seems that the API is there, although > I am not > > entirely sure whether it is stable or tested. > > > > in pseudocode: > > > > symbol=new symbolObj() > > //set attributes of symbol > > map->symbolset.append(symbol) > > > > Regards, > > Umberto > > > > > > On Wed, Sep 24, 2008 at 10:09 PM, Fawcett, David > > wrote: > >> In Python mapscript, is it possible to construct a vector symbol, > >> like a circle, without referencing a mapfile or a symbolset file? > >> > >> Essentially, build this in code: > >> > >> SYMBOL > >> NAME 'circle' > >> TYPE ELLIPSE > >> POINTS 1 1 END > >> FILLED TRUE > >> END > >> > >> If so, a few lines of code would be greatly appreciated... > >> > >> David. > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From adams at terrestris.de Thu Sep 25 00:36:45 2008 From: adams at terrestris.de (Till Adams) Date: Thu, 25 Sep 2008 09:36:45 +0200 Subject: [mapserver-users] Display many Raster maps In-Reply-To: <000f01c91ee0$80004a20$0902a8c0@diebels> References: <6246727221874A4FB8D3F9BBC37D9BD5021FC0C5@s-sp22.pca.state.mn.us> <75b4b93e0809242346n569fc246p19736a0b9c616276@mail.gmail.com> <000f01c91ee0$80004a20$0902a8c0@diebels> Message-ID: <48DB3F8D.8030308@terrestris.de> Clemens, use gdaltindex to create a raster catalog for your rasters, this is a shapefile, in the example called "index.shp". (need to install gdal-utils) Then create a layer like this: LAYER NAME 'luftbild' TYPE RASTER TILEINDEX '/path/to/index.shp' TILEITEM 'location' STATUS ON METADATA 'WMS_SRS' 'epsg:[EPSG]' WMS_TITLE 'Rasters ..' END PROJECTION 'init=epsg:[EPSG]' END END Reagrds, Till > Dear List, > > I got a couple of Rater images (geoTIFF) and I wonder how I can get > them all into one mapserver application. It's actually a big map > composed of many tiles. The mapfile actually allowas only one > TIFF-file to display, or am I completely wrong? > > thanks, > Clemens / TU Darmstadt > > > -- ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From schroeter at netgis.de Thu Sep 25 01:38:36 2008 From: schroeter at netgis.de (Sven Schroeter) Date: Thu, 25 Sep 2008 10:38:36 +0200 Subject: [mapserver-users] Displaying points on the map only for certaintime period References: <3702658f0809242317k9903a9bofe3cd224d0ed5d41@mail.gmail.com> Message-ID: <878805265D074F2D9AD986D58FC91D74@SVEN> Hi, that depends on your client application. For example you can update the map via php-mapscript with ajax. For a periodical request I use the prototype javascript framework: http://www.prototypejs.org/api/ajax/periodicalUpdater greetings Sven ----- Original Message ----- From: ramya srinivasan To: mapserver-users at lists.osgeo.org Sent: Thursday, September 25, 2008 8:17 AM Subject: [mapserver-users] Displaying points on the map only for certaintime period Hi, I have to display a point on the map only for 5 seconds. After 5 seconds the second point from the database should be retrieved from the database and displayed.This process continues till all the points in the database is displayed.Can anyone tell me how to do this.. Thanks. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From bokhorst at argoss.nl Thu Sep 25 02:20:34 2008 From: bokhorst at argoss.nl (Reinoud Bokhorst) Date: Thu, 25 Sep 2008 11:20:34 +0200 Subject: [mapserver-users] Color filled transparent polygons Message-ID: <48DB57E2.6030204@argoss.nl> Hi, I have a PostGIS table with about 12000 polygons scattered around the globe. The polygons outline areas where I have particular model data. To get an impression about the data density, I want to plot the polygons with a fill color and a high transparency value. This would mean that the colour on the map gets darker depending on how many polygons overlap at a particular location because the color values will add up. I can do this for example in QGIS but not in Mapserver. It requires that the polygons themselves are drawn using a transparency value but it seems that mapserver first draws all polygons and them applies the transparency value to the resulting image. Is there a solution for this? Reinoud Bokhorst From thomas.bonfort at gmail.com Thu Sep 25 02:47:42 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 25 Sep 2008 11:47:42 +0200 Subject: [mapserver-users] Color filled transparent polygons In-Reply-To: <48DB57E2.6030204@argoss.nl> References: <48DB57E2.6030204@argoss.nl> Message-ID: yes, from version 5.2 AND with AGG output, you can obtain this by setting the OPACITY keyword at the STYLE level. cheers, thomas On Thu, Sep 25, 2008 at 11:20, Reinoud Bokhorst wrote: > Hi, > I have a PostGIS table with about 12000 polygons scattered around the globe. > The polygons outline areas where I have particular model data. To get an > impression about the data density, I want to plot the polygons with a fill > color and a high transparency value. This would mean that the colour on the > map gets darker depending on how many polygons overlap at a particular > location because the color values will add up. > I can do this for example in QGIS but not in Mapserver. It requires that the > polygons themselves are drawn using a transparency value but it seems that > mapserver first draws all polygons and them applies the transparency value > to the resulting image. Is there a solution for this? > > Reinoud Bokhorst > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From matej at matnet.net Thu Sep 25 05:00:59 2008 From: matej at matnet.net (Matej) Date: Thu, 25 Sep 2008 14:00:59 +0200 Subject: [mapserver-users] Points with hyperlinks Message-ID: <4A00AA82216644238C935DDBAE56175A@Leeml> Hi, I have a mapfile with layer that has a large number of points on it. Every point (well, many of them) has an attribute "hyperlink". What would be the easiest way to achieve a "clickable" point and get that URL in a new window? Matej Serc matej at matnet.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From damarmo at gmail.com Thu Sep 25 05:47:54 2008 From: damarmo at gmail.com (David Martinez Morata) Date: Thu, 25 Sep 2008 14:47:54 +0200 Subject: [mapserver-users] KML for WMS Service In-Reply-To: <923954.13896.qm@web38205.mail.mud.yahoo.com> References: <48D8AD98020000A80000D915@jeckle> <923954.13896.qm@web38205.mail.mud.yahoo.com> Message-ID: <9771eb540809250547j42cded0by94b619a5fb3f7841@mail.gmail.com> Thanks for all your answeres! I go to start testing with this information! Thanks 2008/9/23 Carlos Ruiz > All, > > PostgreSQL can output as KML using the AsKML function. Hope this helps you > to, at > least, generate KML files. > > *IC Carlos Ruiz* > ** > > > --- On *Tue, 9/23/08, Bob Basques * wrote: > > From: Bob Basques > Subject: Re: [mapserver-users] KML for WMS Service > To: damarmo at gmail.com, mapserver-users at lists.osgeo.org > Date: Tuesday, September 23, 2008, 7:48 AM > > All, > > I don't think I'm answering your question directly, but I've > learned a few things about how Google earth imports WMS data directly, and that > in turn showed me how to > export the layers from Google Earth into KML. So now I > can write the appropriate KML output. > > GE will import WMS services directly, but it's user interface leave a bit > to be desired on the operational side. I've been toying around with the > same ideas though, where MapServer provides the result as a KML for GE use. > > So, my next step would be to make use of a MapServer template to generate the > KML code (using the WMS export from GE as a starting point). But this is where > I stopped in the steps, got other more pressing stuff at the moment. > > bobb > > > > >>> "David Martinez Morata" > 09/23/08 4:00 AM >>> > Hi list. > I just a little question. > > How I can create a KML file to show my WMS server in Google Earth? > > Thanks > > _______________________________________________ > mapserver-users mailing > list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From work at xwb.com Thu Sep 25 05:52:16 2008 From: work at xwb.com (Chip Taylor) Date: Thu, 25 Sep 2008 05:52:16 -0700 Subject: [mapserver-users] Directional arrows for streets In-Reply-To: <9771eb540809250547j42cded0by94b619a5fb3f7841@mail.gmail.com> References: <48D8AD98020000A80000D915@jeckle> <923954.13896.qm@web38205.mail.mud.yahoo.com> <9771eb540809250547j42cded0by94b619a5fb3f7841@mail.gmail.com> Message-ID: <000b01c91f0d$8b0471d0$a10d5570$@com> Using MapServer 5.2 with street data from Navteq, is there a way to include directional arrows for one way roads? Chip Taylor -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Thu Sep 25 06:35:27 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 25 Sep 2008 08:35:27 -0500 Subject: [mapserver-users] Including a title on a map? In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FC0C7@s-sp22.pca.state.mn.us> If you want to allow the title string to be passed through the URL, you can use URL Configuration changes to pass the text in. Take a look at this document (if you are using MapServer 5.x): http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT Scroll down to the section on URL configuration changes. Take a look at example 3. I am not sure if you can pass in just the text, or if you will need to pass in the feature coords and the text. Combine this with the example that Jukka pointed you to and you should be set. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Thursday, September 25, 2008 1:36 AM To: Robert Sanson; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Including a title on a map? Perhaps you could see if this copyright layer document points to right direction? http://mapserver.gis.umn.edu/docs/faq/copyright-layer -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Robert Sanson L?hetetty: 25. syyskuuta 2008 7:02 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Including a title on a map? Is it possible to print a title on a map? I would like to be able to send a variable on the URL containing a string to be used as a title to embed into the returned image in a particular location. I am using Javascript to formulate a CGI request for a PDF output, using mode=map. Many thanks, Robert Sanson ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Thu Sep 25 06:42:29 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 25 Sep 2008 08:42:29 -0500 Subject: [mapserver-users] Color filled transparent polygons In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FC0C8@s-sp22.pca.state.mn.us> You can increase the opacity at the style level by assigning differing levels of opacity based on attributes in the data table, but I don't believe that this is the case that Reinoud is describing. I am pretty sure that when two symbols of reduced opacity overlap, the area covered by both symbols has the same opacity level as the areas that do not overlap. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas bonfort Sent: Thursday, September 25, 2008 4:48 AM To: Reinoud Bokhorst Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Color filled transparent polygons yes, from version 5.2 AND with AGG output, you can obtain this by setting the OPACITY keyword at the STYLE level. cheers, thomas On Thu, Sep 25, 2008 at 11:20, Reinoud Bokhorst wrote: > Hi, > I have a PostGIS table with about 12000 polygons scattered around the > globe. The polygons outline areas where I have particular model data. > To get an impression about the data density, I want to plot the > polygons with a fill color and a high transparency value. This would > mean that the colour on the map gets darker depending on how many > polygons overlap at a particular location because the color values > will add up. I can do this for example in QGIS but not in Mapserver. > It requires that the polygons themselves are drawn using a > transparency value but it seems that mapserver first draws all > polygons and them applies the transparency value to the resulting > image. Is there a solution for this? > > Reinoud Bokhorst > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Tim.Nolte at ipcswirelessinc.com Thu Sep 25 06:51:55 2008 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Thu, 25 Sep 2008 09:51:55 -0400 Subject: [mapserver-users] Re: Transparency via WMS request? In-Reply-To: <9c2015090809241556o67fd3d15o467528e398e27b8e@mail.gmail.com> References: <9c2015090809241338q9d31c92ge09f81326d3e81d9@mail.gmail.com><9c2015090809241536h46c4511ew73620f0b59a19983@mail.gmail.com><48DB6A63.379F.0037.0@asurequality.com> <9c2015090809241556o67fd3d15o467528e398e27b8e@mail.gmail.com> Message-ID: Something I notice is that you don't have any MIMETYPE for your OUTPUTFORMAT. If you want to use AGG and PNG with transparency I'd try adding: MIMETYPE "image/png; mode=24bit" to your OUTPUTFORMAT. ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Roger Andr? Sent: Wednesday, September 24, 2008 6:56 PM To: Robert Sanson Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Re: Transparency via WMS request? Sorry, but I can't test that. I don't have pdf support compiled into this version of Mapserver. I did get transparency to work using the AGG driver by altering my OUTPUTFORMAT to look like this: OUTPUTFORMAT NAME 'AGGA' DRIVER AGG/PNG IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "TRANSPARENT=ON" FORMATOPTION "INTERLACE=OFF" TRANSPARENT ON END #end outputformat Unfortunately, it seemed to have decreased the quality of the rendering. I've switched back to using the GD driver, and that seems to give good quality and correct transparency. OUTPUTFORMAT NAME 'png' DRIVER GD/PNG IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "TRANSPARENT=ON" FORMATOPTION "INTERLACE=OFF" TRANSPARENT ON END #end outputformat --- On Wed, Sep 24, 2008 at 3:39 PM, Robert Sanson wrote: Is it possible to get layer transparency when outputformat=PDF? Thanks, Robert Sanson >>> "Roger Andr?" 25/09/2008 10:36 a.m. >>> Thanks to some help from a fellow GIS developer, I think I've narrowed the problem down to the OUTPUTFORMAT section of my mapfile. Changing from the AGG to GD driver seemed to take care of the problem. Will need to do some additional futzing to see if I can get it working with AGG. -- On Wed, Sep 24, 2008 at 1:38 PM, Roger Andr? wrote: Ok, this is driving me bonkers. I have a raster image with nodata values set to be transparent. When I make requests to this layer in "mode=map", it works beautifully, and the nodata values are transparent. - http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/temp/temp.map&mode=map However, when I try to view the same data via a WMS request, the nodata values are displayed in black. - http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/temp/temp.map &SERVICE=WMS &version="1.1.122 &REQUEST=GetMap &LAYERS=imagery &STYLES= &BBOX=-180,-90,180,90 &WIDTH=600 &HEIGHT=500 &FORMAT=png &SRS=epsg:4326 I have tried doing a couple of things to fix this, none of which has worked: - added "wms_transparent" "TRUE" to METADATA section of LAYER - added "&TRANSPARENT=TRUE" to the end of the WMS request - made sure that in OUTPUTFORMAT I have all of these: OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "TRANSPARENT=ON" FORMATOPTION "INTERLACE=OFF" TRANSPARENT ON END #end outputformat Please, can anyone tell me what I'm missing? Thanks, Roger -- Click here to report this email as spam. ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jochen at remote.org Thu Sep 25 06:48:33 2008 From: jochen at remote.org (Jochen Topf) Date: Thu, 25 Sep 2008 15:48:33 +0200 Subject: [mapserver-users] How to pimp WMS meta information? In-Reply-To: <48CF4113.6090002@thinkpad> References: <48CF4113.6090002@thinkpad> Message-ID: <20080925134833.GA18523@localhost.localdomain> On Tue, Sep 16, 2008 at 07:16:03AM +0200, Markus Spring wrote: > trying to set up a multi-map service based WMS mapservices and > OpenLayers, I would like to retrieve user-defined meta information from a > map via the GetCapabilities request. > > For example, if I define > > METADATA > WMS_TITLE "Palliativstationen" > WMS_ONLINERESOURCE "http://gis.local/wms/palliativ" > WMS_SRS "epsg:31468" > > WMS_SHOW_QUERY_IN "large_popup" > > END > > I would like to retrieve the value "large_popup" of WMS_SHOW_QUERY_IN > through the GetCapabilities call. The background idea is that this > information could be used by my application but should not harm other > people's use of the WMS service. > > Is there any viable way to accomplish this with a mapserver based WMS service? I have used the WMS keywords on a WMS layer to add special infos only needed for my application. Not the cleanest approach, because other applications will, of course, also see those special keywords you put in, but as a workaround it is ok. Would be nice if there was an "official" way to do this, though. Jochen -- Jochen Topf jochen at remote.org http://www.remote.org/jochen/ +49-721-388298 From fsc7mail at gmail.com Thu Sep 25 07:21:23 2008 From: fsc7mail at gmail.com (Felipe Costa) Date: Thu, 25 Sep 2008 10:21:23 -0400 Subject: [mapserver-users] KML for WMS Service In-Reply-To: <9771eb540809250547j42cded0by94b619a5fb3f7841@mail.gmail.com> References: <48D8AD98020000A80000D915@jeckle> <923954.13896.qm@web38205.mail.mud.yahoo.com> <9771eb540809250547j42cded0by94b619a5fb3f7841@mail.gmail.com> Message-ID: <549eaee90809250721u4d02657ar8aeb8a99b19b5282@mail.gmail.com> Hello, I'm not sure what you want but I think you could take a look at http://www.itopen.it/soluzioni/kml-map-server/ Best regards, Felipe Costa On Thu, Sep 25, 2008 at 8:47 AM, David Martinez Morata wrote: > Thanks for all your answeres! > I go to start testing with this information! > Thanks > > 2008/9/23 Carlos Ruiz > >> All, >> >> PostgreSQL can output as KML using the AsKML function. Hope this helps you >> to, at >> least, generate KML files. >> >> *IC Carlos Ruiz* >> ** >> >> >> --- On *Tue, 9/23/08, Bob Basques * wrote: >> >> From: Bob Basques >> Subject: Re: [mapserver-users] KML for WMS Service >> To: damarmo at gmail.com, mapserver-users at lists.osgeo.org >> Date: Tuesday, September 23, 2008, 7:48 AM >> >> All, >> >> I don't think I'm answering your question directly, but I've >> learned a few things about how Google earth imports WMS data directly, and that >> >> in turn showed me how to >> export the layers from Google Earth into KML. So now I >> can write the appropriate KML output. >> >> GE will import WMS services directly, but it's user interface leave a bit >> to be desired on the operational side. I've been toying around with the >> >> same ideas though, where MapServer provides the result as a KML for GE use. >> >> So, my next step would be to make use of a MapServer template to generate the >> KML code (using the WMS export from GE as a starting point). But this is where >> >> I stopped in the steps, got other more pressing stuff at the moment. >> >> bobb >> >> >> >> >>> "David Martinez Morata" >> >> 09/23/08 4:00 AM >>> >> Hi list. >> I just a little question. >> >> How I can create a KML file to show my WMS server in Google Earth? >> >> Thanks >> >> _______________________________________________ >> >> mapserver-users mailing >> list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Bendirei o senhor em todo o tempo, Na minha boca sempre o seu louvor Sl 34 (33),1?16 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pianosnake at gmail.com Thu Sep 25 07:51:52 2008 From: pianosnake at gmail.com (Florin A.) Date: Thu, 25 Sep 2008 08:51:52 -0600 Subject: [mapserver-users] Points with hyperlinks In-Reply-To: <4A00AA82216644238C935DDBAE56175A@Leeml> References: <4A00AA82216644238C935DDBAE56175A@Leeml> Message-ID: <1d674ec80809250751y31d7a865k59c7d702b99cb8fc@mail.gmail.com> Look at the examples for map and query templates and try this: Setup a separate query template html file for your point layer. Inside this template put a JavaScript function that opens a new window based on the attribute you want. When the query template loads after a click on the map, then the new window will open. On Thu, Sep 25, 2008 at 6:00 AM, Matej wrote: > Hi, > > I have a mapfile with layer that has a large number of points on it. Every > point (well, many of them) has an attribute "hyperlink". What would be the > easiest way to achieve a "clickable" point and get that URL in a new window? > > Matej Serc > matej at matnet.net > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Steve.Lime at dnr.state.mn.us Thu Sep 25 08:54:22 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 25 Sep 2008 10:54:22 -0500 Subject: [mapserver-users] Points with hyperlinks In-Reply-To: <4A00AA82216644238C935DDBAE56175A@Leeml> References: <4A00AA82216644238C935DDBAE56175A@Leeml> Message-ID: <48DB6DDD.5157.008F.0@dnr.state.mn.us> One option is to trigger MapServer queries on each click. How you do that depends on your client environment. For example, on this site: http://www.dnr.state.mn.us/maps/compass.html OpenLayers is used for the client. When a click is detected a MapServer query url is built and opened in a new window. With some feature types (for example, state parks) I the info needed to build a URL to another page on our site in the attribute table. I use those and a URL query template to redirect the browser to the appropriate page. For example: LAYER NAME 'state_parks' ... TEMPLATE 'http://www.dnr.state.mn.us/state_parks/[PARK_DIR]/index.html' END Works great. You can't use a full URL (including the http://) in an attribute like this since MapServer needs to somehow tell the difference between a URL-based template and a file-based on. It's perfectly acceptable though to do something like: TEMPLATE 'http://[ATTRIBUTE]' Steve >>> On 9/25/2008 at 7:00 AM, in message <4A00AA82216644238C935DDBAE56175A at Leeml>, "Matej" wrote: > Hi, > > I have a mapfile with layer that has a large number of points on it. Every > point (well, many of them) has an attribute "hyperlink". What would be the > easiest way to achieve a "clickable" point and get that URL in a new window? > > Matej Serc > matej at matnet.net From David.Fawcett at state.mn.us Thu Sep 25 10:26:06 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 25 Sep 2008 12:26:06 -0500 Subject: [mapserver-users] Color filled transparent polygons In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FC0CB@s-sp22.pca.state.mn.us> Of course Thomas would have had the right answer! I happily stand corrected. The opacity of overlapping symbols is cumulative. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas bonfort Sent: Thursday, September 25, 2008 4:48 AM To: Reinoud Bokhorst Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Color filled transparent polygons yes, from version 5.2 AND with AGG output, you can obtain this by setting the OPACITY keyword at the STYLE level. cheers, thomas On Thu, Sep 25, 2008 at 11:20, Reinoud Bokhorst wrote: > Hi, > I have a PostGIS table with about 12000 polygons scattered around the > globe. The polygons outline areas where I have particular model data. > To get an impression about the data density, I want to plot the > polygons with a fill color and a high transparency value. This would > mean that the colour on the map gets darker depending on how many > polygons overlap at a particular location because the color values > will add up. I can do this for example in QGIS but not in Mapserver. > It requires that the polygons themselves are drawn using a > transparency value but it seems that mapserver first draws all > polygons and them applies the transparency value to the resulting > image. Is there a solution for this? > > Reinoud Bokhorst > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Tom.Kralidis at ec.gc.ca Thu Sep 25 11:23:09 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Thu, 25 Sep 2008 14:23:09 -0400 Subject: [mapserver-users] How to pimp WMS meta information? In-Reply-To: <20080925134833.GA18523@localhost.localdomain> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF61A@ecburexch1.ontario.int.ec.gc.ca> > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Jochen Topf > Sent: 25 September, 2008 9:49 AM > To: Markus Spring > Cc: Mapserver-users > Subject: Re: [mapserver-users] How to pimp WMS meta information? > > On Tue, Sep 16, 2008 at 07:16:03AM +0200, Markus Spring wrote: > > trying to set up a multi-map service based WMS mapservices and > > OpenLayers, I would like to retrieve user-defined meta information > > from a map via the GetCapabilities request. > > > > For example, if I define > > > > METADATA > > WMS_TITLE "Palliativstationen" > > WMS_ONLINERESOURCE "http://gis.local/wms/palliativ" > > WMS_SRS "epsg:31468" > > > > WMS_SHOW_QUERY_IN "large_popup" > > > > END > > > > I would like to retrieve the value "large_popup" of > WMS_SHOW_QUERY_IN > > through the GetCapabilities call. The background idea is that this > > information could be used by my application but should not > harm other > > people's use of the WMS service. > > > > Is there any viable way to accomplish this with a mapserver > based WMS service? > > I have used the WMS keywords on a WMS layer to add special > infos only needed for my application. Not the cleanest > approach, because other applications will, of course, also > see those special keywords you put in, but as a workaround it is ok. > > Would be nice if there was an "official" way to do this, though. > Out of the box, MapServer will return a well-formed, valid XML document which obeys the WMS standard. Having said this, you could use mapscript WxS (http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript) to, on GetCapabilities, intercept the request/response mechanism and write out a modified GetCapbilities XML document, adding in your own XML elements and definitions, i.e.: foo bar large_popup ... This would work, with the assumptions that: 1./ a WMS Capabilities parser which is doing DTD checking would choke on this, as it is not part of the WMS DTD 2./ if there is no DTD checking, the Capabilities will be processed, only 'aware' clients would know what to do with this info Of course, if you want to be to-spec 100%, there are ways to extend DTDs with inline ENTITY's, etc. :) Hope this helps. ..Tom From randre at gmail.com Thu Sep 25 20:27:41 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Thu, 25 Sep 2008 20:27:41 -0700 Subject: [mapserver-users] Creation of continuous color ramp legends Message-ID: <9c2015090809252027j23852e5ax87438f17a5b29da6@mail.gmail.com> I'm interested in hearing how people have gone about creating legend graphics for continuous data sets. Say for hypsometric tinting. Thanks! Roger -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Antti.Roppola at brs.gov.au Thu Sep 25 20:58:45 2008 From: Antti.Roppola at brs.gov.au (Roppola, Antti - BRS) Date: Fri, 26 Sep 2008 13:58:45 +1000 Subject: [mapserver-users] Creation of continuous color ramp legends [SEC=UNCLASSIFIED] In-Reply-To: <9c2015090809252027j23852e5ax87438f17a5b29da6@mail.gmail.com> References: <9c2015090809252027j23852e5ax87438f17a5b29da6@mail.gmail.com> Message-ID: <61C2DEA055980B418D063F8646FCAEFC05AD1B62@ACT001CL03EX03.agdaff.gov.au> I used GIMP to create visually pleasing colour ramps and somehow (it was a while ago) exported/embedded them in TIFF files as colour maps (I think). The legend was colour chips for key breakpoints in the gradients I defined and to hold the legend I created a bogus layer in the same group as the TIFF. Sorry if this is vague or incorrect, it was a few years ago now... Antti ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Roger Andr? Sent: Friday, 26 September 2008 1:28 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Creation of continuous color ramp legends I'm interested in hearing how people have gone about creating legend graphics for continuous data sets. Say for hypsometric tinting. Thanks! Roger -- ------ 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 sensitive 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 ------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at remoteinformation.com.au Thu Sep 25 21:16:46 2008 From: ben at remoteinformation.com.au (Ben Madin) Date: Fri, 26 Sep 2008 12:16:46 +0800 Subject: [mapserver-users] RE:mapserver + MS SQL In-Reply-To: <20080924171503.6569DE0129D@lists.osgeo.org> References: <20080924171503.6569DE0129D@lists.osgeo.org> Message-ID: <497B603F-586A-4CCF-BB13-61E3FD0D43F1@remoteinformation.com.au> G'day all, I have a similar problem to this, but slightly more basic, and slightly more outdated! I have a MS SQL table with investigations in, and the latitude and longitude of said investigations. I wanted to be able to make a map, using OGR / ODBC to connect to MS SQL, and display the points classed by the level of investigation. I created the OGR connection : ODBC:mmap/private at mmap select rep.id, rep.latitude as latitude, rep.longitude as longitude, upper(left(rlu1.lookupfull,1)) +substring(rlu1.lookupfull,2,len(rlu1.lookupfull)) as response from reports rep join results res1 on (res1.reportid = rep.id and res1.resulttypeid = 17 and res1.del=0) join resultlookup rlu1 on (rlu1.resulttypesid = 17 and rlu1.id = res1.resultvalue) where projectid = 30 wkbPoint and tested it : C:\Documents and Settings\Administrator>C:\ms4w\tools\gdal-ogr\ogrinfo C:\ms4w\Apache\htdocs\mmap\mapserver\xot1.ovf -ro -al INFO: Open of `C:\ms4w\Apache\htdocs\mmap\mapserver\xot1.ovf' using driver `VRT' successful. Layer name: mmapdata Geometry: Point Feature Count: 1978 Extent: (0.000000, -43.173000) - (153.570000, 0.000000) Layer SRS WKT: (unknown) id: Integer (10.0) latitude: String (7.0) longitude: String (7.0) response: String (256.0) OGRFeature(mmapdata):0 id (Integer) = 8887 latitude (String) = -34.922 longitude (String) = 138.599 response (String) = Specimens sent to the Laboratory POINT (138.59899999999999 -34.921999999999997 0) OGRFeature(mmapdata):1 id (Integer) = 10128 latitude (String) = -18.280 longitude (String) = 143.530 response (String) = Specimens sent to the Laboratory POINT (143.53 -18.28 0) OGRFeature(mmapdata):2 id (Integer) = 10129 latitude (String) = -16.920 longitude (String) = 145.770 response (String) = Investigation POINT (145.77000000000001 -16.920000000000002 0) So far, so good. Then I built it into a map file : MAP EXTENT 110 -45 160 -8 FONTSET "/ms4w/Apache/htdocs/mmap/mapserver//fonts/fontset.txt" IMAGECOLOR 203 230 255 IMAGETYPE gif SYMBOLSET "/ms4w/Apache/htdocs/mmap/mapserver//symbols/colour.sym" SHAPEPATH "C:\ms4w\Apache\htdocs\mmap\mapserver" SIZE 600 600 STATUS ON UNITS DD NAME "basemap" OUTPUTFORMAT NAME "gif" MIMETYPE "image/gif" DRIVER "gd/gif" EXTENSION "gif" IMAGEMODE "PC256" TRANSPARENT FALSE END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 8 KEYSPACING 5 4 LABEL ANGLE 0.000000 ANTIALIAS TRUE FONT "lucida" MAXSIZE 256 MINSIZE 4 SIZE 7 TYPE TRUETYPE BUFFER 2 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 OUTLINECOLOR 255 255 250 PARTIALS TRUE POSITION UR SHADOWCOLOR 250 250 250 SHADOWSIZE 2 2 END POSITION LL STATUS EMBED TRANSPARENT TRUE END LAYER DATA "ausregion" GROUP "Australia" METADATA END NAME "ausregionlayer" SIZEUNITS DD STATUS DEFAULT TOLERANCEUNITS PIXELS TYPE POLYGON UNITS METERS CLASS METADATA END STYLE ANGLE 360 COLOR 245 245 220 SYMBOL 0 END END END LAYER CONNECTION " ODBC:mmap/password at mmap select rep.latitude as latitude, rep.longitude as longitude, upper(left(rlu1.lookupfull,1))+substring(rlu1.lookupfull, 2,len(rlu1.lookupfull)) as response from reports rep join results res1 on (res1.reportid = rep.id and res1.resulttypeid = 17 and res1.del=0) join resultlookup rlu1 on (rlu1.resulttypesid = 17 and rlu1.id = res1.resultvalue) where projectid = 30 wkbPoint " CONNECTIONTYPE OGR DATA "mmapdata" CLASSITEM response METADATA END NAME ".xot1" SIZEUNITS PIXELS STATUS DEFAULT TOLERANCEUNITS PIXELS TYPE POINT UNITS METERS CLASS NAME "Field investigation" EXPRESSION "investigation" LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS FALSE POSITION AUTO END METADATA END STYLE ANGLE 360 COLOR 166 206 227 SIZE 10 SYMBOL 1 END END etc and try : C:\Documents and Settings\Administrator>c:\ms4w\tools\mapserv \shp2img.exe -m C:\ms4w\Apache\htdocs\nahis\mapserver\tmp \NAHISdf7c8a22c2b16b33730aa228fac405bb.map -l .xot1 -o C:\test.gif scalefactor = 12 and I get the map with the borders etc, but no points (the legend show up OK). Even if I remove the classitem and expressions, I still don't get any points. My two questions therefore are : 1. How can I find if I am truly getting no points at all, or they are not displaying. 2. How do I set up expressions to specify that the third column in my sql statement (response) is the classitem and to class based on it. The catch here is that to maintain compatibility with the rest of the system, I am using ms4w 1.5.5 cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... From bokhorst at argoss.nl Thu Sep 25 23:46:38 2008 From: bokhorst at argoss.nl (Reinoud Bokhorst) Date: Fri, 26 Sep 2008 08:46:38 +0200 Subject: [mapserver-users] Color filled transparent polygons In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FC0CB@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5021FC0CB@s-sp22.pca.state.mn.us> Message-ID: <48DC854E.1020006@argoss.nl> Thank you for your answers. At the time I installed mapserver 5.2, I didn't manage to compile in AGG support so I left it out. Of course that is then just the feature you need... I'll have to give it a retry. Reinoud Fawcett, David wrote: > Of course Thomas would have had the right answer! I happily stand > corrected. > > The opacity of overlapping symbols is cumulative. > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas > bonfort > Sent: Thursday, September 25, 2008 4:48 AM > To: Reinoud Bokhorst > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Color filled transparent polygons > > > yes, > from version 5.2 AND with AGG output, you can obtain this by setting the > OPACITY keyword at the STYLE level. > > cheers, > thomas > > On Thu, Sep 25, 2008 at 11:20, Reinoud Bokhorst > wrote: >> Hi, >> I have a PostGIS table with about 12000 polygons scattered around the >> globe. The polygons outline areas where I have particular model data. >> To get an impression about the data density, I want to plot the >> polygons with a fill color and a high transparency value. This would >> mean that the colour on the map gets darker depending on how many >> polygons overlap at a particular location because the color values >> will add up. I can do this for example in QGIS but not in Mapserver. >> It requires that the polygons themselves are drawn using a >> transparency value but it seems that mapserver first draws all >> polygons and them applies the transparency value to the resulting >> image. Is there a solution for this? >> >> Reinoud Bokhorst >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From kobben at itc.nl Fri Sep 26 00:05:06 2008 From: kobben at itc.nl (Barend Kobben) Date: Fri, 26 Sep 2008 09:05:06 +0200 Subject: [mapserver-users] How to pimp WMS meta information? In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF61A@ecburexch1.ontario.int.ec.gc.ca> Message-ID: FYI, the valid way to extend the GetCapabilities is to use the element. (See the WMS spec on the OGC pages www.opengeospatial.org) -- Barend K?bben International Institute for Geo-Information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 25-09-08 20:23, "Kralidis,Tom [Burlington]" wrote: > > >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >> Jochen Topf >> Sent: 25 September, 2008 9:49 AM >> To: Markus Spring >> Cc: Mapserver-users >> Subject: Re: [mapserver-users] How to pimp WMS meta information? >> >> On Tue, Sep 16, 2008 at 07:16:03AM +0200, Markus Spring wrote: >>> trying to set up a multi-map service based WMS mapservices and >>> OpenLayers, I would like to retrieve user-defined meta information >>> from a map via the GetCapabilities request. >>> >>> For example, if I define >>> >>> METADATA >>> WMS_TITLE "Palliativstationen" >>> WMS_ONLINERESOURCE "http://gis.local/wms/palliativ" >>> WMS_SRS "epsg:31468" >>> >>> WMS_SHOW_QUERY_IN "large_popup" >>> >>> END >>> >>> I would like to retrieve the value "large_popup" of >> WMS_SHOW_QUERY_IN >>> through the GetCapabilities call. The background idea is that this >>> information could be used by my application but should not >> harm other >>> people's use of the WMS service. >>> >>> Is there any viable way to accomplish this with a mapserver >> based WMS service? >> >> I have used the WMS keywords on a WMS layer to add special >> infos only needed for my application. Not the cleanest >> approach, because other applications will, of course, also >> see those special keywords you put in, but as a workaround it is ok. >> >> Would be nice if there was an "official" way to do this, though. >> > > Out of the box, MapServer will return a well-formed, valid XML document > which obeys the WMS standard. > > Having said this, you could use mapscript WxS > (http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript) to, on > GetCapabilities, intercept the request/response mechanism and write out > a modified GetCapbilities XML document, adding in your own XML elements > and definitions, i.e.: > > > foo > bar > large_popup > ... > > This would work, with the assumptions that: > > 1./ a WMS Capabilities parser which is doing DTD checking would choke on > this, as it is not part of the WMS DTD > 2./ if there is no DTD checking, the Capabilities will be processed, > only 'aware' clients would know what to do with this info > > Of course, if you want to be to-spec 100%, there are ways to extend DTDs > with inline ENTITY's, etc. :) > > Hope this helps. > > ..Tom > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users International Institute for Geo-Information Science and Earth Observation (ITC) Chamber of Commerce: 410 27 560 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. From jochen at remote.org Fri Sep 26 00:27:28 2008 From: jochen at remote.org (Jochen Topf) Date: Fri, 26 Sep 2008 09:27:28 +0200 Subject: [mapserver-users] How to pimp WMS meta information? In-Reply-To: References: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF61A@ecburexch1.ontario.int.ec.gc.ca> Message-ID: <20080926072728.GA10054@localhost.localdomain> On Fri, Sep 26, 2008 at 09:05:06AM +0200, Barend Kobben wrote: > FYI, the valid way to extend the GetCapabilities is to use the > element. (See the WMS spec on the OGC pages > www.opengeospatial.org) And I'd rather use that, but as far as I know you can't set this from a Mapserver map file? Jochen -- Jochen Topf jochen at remote.org http://www.remote.org/jochen/ +49-721-388298 From kobben at itc.nl Fri Sep 26 00:31:54 2008 From: kobben at itc.nl (Barend Kobben) Date: Fri, 26 Sep 2008 09:31:54 +0200 Subject: [mapserver-users] How to pimp WMS meta information? In-Reply-To: <20080926072728.GA10054@localhost.localdomain> Message-ID: Ah, that might be true, never tried it. I just followed up on the comment about using mapscript to alter the Getcapabilities.xml, and reminded you that the element would be the place to go if you don't want a Validator to choke on the xml you've created... Barend On 26-09-08 09:27, "Jochen Topf" wrote: > On Fri, Sep 26, 2008 at 09:05:06AM +0200, Barend Kobben wrote: >> FYI, the valid way to extend the GetCapabilities is to use the >> element. (See the WMS spec on the OGC pages >> www.opengeospatial.org) > > And I'd rather use that, but as far as I know you can't set this from a > Mapserver map file? > > Jochen International Institute for Geo-Information Science and Earth Observation (ITC) Chamber of Commerce: 410 27 560 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. From flavio at tydac.ch Fri Sep 26 02:00:14 2008 From: flavio at tydac.ch (Flavio Hendry) Date: Fri, 26 Sep 2008 11:00:14 +0200 Subject: [mapserver-users] Directional arrows for streets In-Reply-To: <000b01c91f0d$8b0471d0$a10d5570$@com> References: <48D8AD98020000A80000D915@jeckle> <923954.13896.qm@web38205.mail.mud.yahoo.com> <9771eb540809250547j42cded0by94b619a5fb3f7841@mail.gmail.com> <000b01c91f0d$8b0471d0$a10d5570$@com> Message-ID: Hi Chip As follows: Symbol file (arrow1 is an arrow to the right, 2 to the left) SYMBOL NAME "Arrow1" TYPE TRUETYPE FONT "Neapoljs" CHARACTER "A" GAP -25 END SYMBOL NAME "Arrow2" TYPE TRUETYPE FONT "Neapoljs" CHARACTER "D" GAP -25 END Map File (attribuites FT and TF of Tele Atlas data in this case, equals to FromTo, ToFrom ...): LAYER NAME "Beschriftung Richtung" GROUP "teleatlas" TYPE LINE STATUS ON MINSCALE 0 MAXSCALE 3500 CONNECTIONTYPE OGR CONNECTION "teleatlas/streets/streets_oneway.tab" SIZEUNITS pixels CLASSITEM "OneWay" CLASS COLOR 12 74 12 EXPRESSION "FT" SYMBOL "Arrow1" SIZE 14 END CLASS COLOR 12 74 12 EXPRESSION "TF" SYMBOL "Arrow2" SIZE 14 END END result see www.ortsplan.ch ... go for bern, zoom in to the center of the city (up to 0.5km zoom level ...) Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch TYDAC SwissMaps: http://www.mapplus.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- Location: http://www.mapplus.ch/adr/bern/luternauweg/12 ---------------------------------------------------------------- -----Original Message----- From: "Chip Taylor" To: Date: Thu, 25 Sep 2008 05:52:16 -0700 Subject: [mapserver-users] Directional arrows for streets > Using MapServer 5.2 with street data from Navteq, is there a way to > include > directional arrows for one way roads? > > > > Chip Taylor > > > > > From matej at matnet.net Fri Sep 26 02:51:53 2008 From: matej at matnet.net (Matej) Date: Fri, 26 Sep 2008 11:51:53 +0200 Subject: [mapserver-users] Points with hyperlinks In-Reply-To: <48DB4D29020000A80000DA58@jeckle> References: <48DB4D29020000A80000DA58@jeckle> Message-ID: <5434FCE7F6B04A9BB79804B3D76F7CE7@Leeml> Hello, thanks everyone for help and suggestions so far ... I am using GeoMoose as a client and I have some problems implementing it. Does someone have a working XML Mapbook code snippet for "including" mapfiles into the GeoMoose? It works directly when I call mapserv from URL anyway ... Thanks everyone, Matej Serc matej at matnet.net From Tom.Kralidis at ec.gc.ca Fri Sep 26 04:30:37 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Fri, 26 Sep 2008 07:30:37 -0400 Subject: [mapserver-users] How to pimp WMS meta information? In-Reply-To: <20080926072728.GA10054@localhost.localdomain> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF61B@ecburexch1.ontario.int.ec.gc.ca> > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Jochen Topf > Sent: 26 September, 2008 3:27 AM > To: Barend Kobben > Cc: Kralidis,Tom [Burlington]; Mapserver-users > Subject: Re: [mapserver-users] How to pimp WMS meta information? > > On Fri, Sep 26, 2008 at 09:05:06AM +0200, Barend Kobben wrote: > > FYI, the valid way to extend the GetCapabilities is to use the > > element. (See the WMS spec > on the OGC > > pages > > www.opengeospatial.org) > > And I'd rather use that, but as far as I know you can't set > this from a Mapserver map file? > Correct. You would have to use something like mapscript to output a modified capabilities. ..Tom From Tom.Kralidis at ec.gc.ca Fri Sep 26 04:31:17 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Fri, 26 Sep 2008 07:31:17 -0400 Subject: [mapserver-users] How to pimp WMS meta information? In-Reply-To: Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF61C@ecburexch1.ontario.int.ec.gc.ca> > -----Original Message----- > From: Barend Kobben [mailto:kobben at itc.nl] > Sent: 26 September, 2008 3:32 AM > To: Jochen Topf > Cc: Kralidis,Tom [Burlington]; Markus Spring; Mapserver-users > Subject: Re: [mapserver-users] How to pimp WMS meta information? > > Ah, that might be true, never tried it. I just followed up on > the comment about using mapscript to alter the > Getcapabilities.xml, and reminded you that the > element would be the place to > go if you don't want a Validator to choke on the xml you've created... > > Barend > Both ways work and are valid when tested in various XML validators. You can use VendorSpecificCapabilities, yes, but the extra info, which, from this thread, appears to be on a per-layer basis, would have to be enclosed within the VendorSpecificaCapabilities tag, with the correct ELEMENT defitions within the DOCTYPE. http://wiki.osgeo.org/wiki/WMS_Tiling_Client_Recommendation#Example_Vend orSpecificCapabilities exemplifies this capability. Here's an example per this thread: large_popup ... ...or something like that. To confirm, you cannot set something like this from within the mapfile > > On 26-09-08 09:27, "Jochen Topf" wrote: > > > On Fri, Sep 26, 2008 at 09:05:06AM +0200, Barend Kobben wrote: > >> FYI, the valid way to extend the GetCapabilities is to use the > >> element. (See the WMS spec > on the OGC > >> pages > >> www.opengeospatial.org) > > > > And I'd rather use that, but as far as I know you can't set > this from > > a Mapserver map file? > > > > Jochen > > > International Institute for Geo-Information Science and Earth > Observation (ITC) Chamber of Commerce: 410 27 560 > > E-mail disclaimer > The information in this e-mail, including any attachments, is > intended for the addressee only. If you are not the intended > recipient, you are hereby notified that any disclosure, > copying, distribution or action in relation to the content of > this information is strictly prohibited. If you have received > this e-mail by mistake, please delete the message and any > attachment and inform the sender by return e-mail. ITC > accepts no liability for any error or omission in the message > content or for damage of any kind that may arise as a result > of e-mail transmission. > From Bob.Basques at ci.stpaul.mn.us Fri Sep 26 05:18:39 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Fri, 26 Sep 2008 07:18:39 -0500 Subject: [mapserver-users] Points with hyperlinks Message-ID: <48DC9B10020000A80000DAB9@jeckle> Matej, I'm copying this reply to the GeoMoose Mail list. Are you interested in working the process as a pick option or query service, where you pick a point on the map and the server responds with a new window containing the link, or do you want to use a Imagemap, where all the links available for a particular view are downloaded at once and you can open up a new window by picking from active areas in the map? GeoMoose can go both ways. I use the ImageMap process quite extensively, since I can send some basic metadata like info down to the client in short form, and let the user decide it they want to see more. I can also include more than on link this way and let the user decide which they want to open up. The Query Service is good though if you know you are always going to want to look at the result in a new page no matter what. bobb >>> "Matej" 09/26/08 4:52 AM >>> Hello, thanks everyone for help and suggestions so far ... I am using GeoMoose as a client and I have some problems implementing it. Does someone have a working XML Mapbook code snippet for "including" mapfiles into the GeoMoose? It works directly when I call mapserv from URL anyway ... Thanks everyone, Matej Serc matej at matnet.net _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From candalt at online.no Fri Sep 26 06:47:14 2008 From: candalt at online.no (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Fri, 26 Sep 2008 15:47:14 +0200 (MEST) Subject: [mapserver-users] Line not drawn in Mapserver WMS Message-ID: <2482493.653621222436834196.JavaMail.adm-moff@moffice11.nsc.no> Hi Have a simple PostGIS layer (linestring) published as a WMS layer in Mapserver. Am using OpenLayers to view the layer. But one strange thing happens. The table consists of 3 linestrings, but at a high scale only one of them is drawn in the map. 2 of the linestrings are very short lines, so at high scales they are only drawn as a small dot...but when the extent and scale is high...none of them are drawn in the map. Is there any logic to this? Below are my wms url, mapfile and pgdump Regards Sture URL: http://localhost/wms.aspx?LAYERS=layer_1&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A32633&BBOX=-2838571.5191647126,5343607.668848526,3880571.5191647126,9055392.331151474&WIDTH=1488&HEIGHT=822 Mapfiledef: LAYER PROJECTION "init=epsg:32633" END METADATA "wms_title" "Kulturminnetur" "wms_srs" "EPSG:4326 EPSG:25831 EPSG:25832 EPSG:25833 EPSG:25834 EPSG:25835 EPSG:27391 EPSG:27392 EPSG:27393 EPSG:27394 EPSG:27395 EPSG:27396 EPSG:27397 EPSG:27398 EPSG:32631 EPSG:32632 EPSG:32633 EPSG:32634 EPSG:32635 EPSG:102132 EPSG:102133 EPSG:102134 EPSG:102135" "wms_abstract" "For ? hente dette tema via WMS m? ein nytte layer_294 som verdi i LAYER parameter" "gml_include_items" "all" END CONNECTION "user=root password=xxxxxxxx dbname=test host=localhost" CONNECTIONTYPE postgis DATA "geom FROM (SELECT * FROM kl_kulturtur) AS kl_kulturtur USING UNIQUE id USING SRID=32633" STATUS off TYPE line DUMP TRUE TEMPLATE "TRUE" NAME "layer_1" CLASS COLOR 248 130 15 NAME "Kulturminnetur" SIZE 4 SYMBOL "circle" END END PostgreSQL/PostGIS dump: -- -- PostgreSQL database dump -- SET client_encoding = 'SQL_ASCII'; SET check_function_bodies = false; SET client_min_messages = warning; SET search_path = public, pg_catalog; SET default_tablespace = ''; SET default_with_oids = false; -- -- Name: kl_kulturtur; Type: TABLE; Schema: public; Owner: root; Tablespace: -- CREATE TABLE kl_kulturtur ( id integer NOT NULL, namn character varying(100), omtale character varying(500), tema character varying(500), fylke integer, kommune integer, vanskegrad character varying(50), framkomstmiddel character varying(100), arrangor character varying(150), lengde integer, geom geometry, geom_start geometry, geom_stop geometry, kontakt_namn character varying(100), kontakt_adresse character varying(100), kontakt_postnr integer, kontakt_poststad character varying(40), kontakt_tlf character varying(50), kontakt_epost character varying(50), isonline integer, registrert date, lastupdate date, webdbreguser character varying(10) ); ALTER TABLE public.kl_kulturtur OWNER TO root; -- -- Data for Name: kl_kulturtur; Type: TABLE DATA; Schema: public; Owner: root -- INSERT INTO kl_kulturtur (id, namn, omtale, tema, fylke, kommune, vanskegrad, framkomstmiddel, arrangor, lengde, geom, geom_start, geom_stop, kontakt_namn, kontakt_adresse, kontakt_postnr, kontakt_poststad, kontakt_tlf, kontakt_epost, isonline, registrert, lastupdate, webdbreguser) VALUES (4, 'Gamlevegen p? Gr?neng', 'P? Gr?neng, kring 6 km fr? Balestrand austover st?r det att ein 3 km lang stubb av den gamle bygdevegen som gjekk mellom Balestrand og Tjugum. Du kan parkera n?r kyrkja. Vegen g?r gjennom gardstun og langs vegen st?r det stabbesteinar. Her k?yrde det store bussar sommar og vinter. Langs vegen er det fine murar og du vil ?g sj? restar av ein enno eldre bygdeveg. ', '', 1400, 1418, '', 'G?', 'Balestrand turlag', 1, '0102000020797F000010000000360C94332EA5E640ECB4779B7C005A413481C76C5C9CE640D88D21C293005A4141C57434608CE64073E603EFB5005A41FED18E18F17CE6403D0C3CE1CA005A41EA61AF35A669E64037FFC998D2005A41B7C80F6FDE5BE640144C5864D0005A41D466038C894DE64037FFC998D2005A41F104F7A8343FE640C2CB906ADB005A41EF792AE26236E640073274D3DF005A415C4FB1E28027E6404D98573CE4005A414A6A9EC6071DE6401DCB0177F1005A417862D8385A10E6403A710163FB005A4105ECEBE3C604E640E8F0396906015A4103611F1DF5FBE5400497395510015A41520DE63996F2E540B216725B1B015A41004B868F51EAE540D4C9E38F1D015A41', '0101000020797F0000360C94332EA5E640ECB4779B7C005A41', '0101000020797F0000004B868F51EAE540D4C9E38F1D015A41', 'Balestrand turlag', 'Balestrand turlag', 6899, 'Balestrand', '9999999', 'bt at bt.no', -1, NULL, NULL, 'SDI'); INSERT INTO kl_kulturtur (id, namn, omtale, tema, fylke, kommune, vanskegrad, framkomstmiddel, arrangor, lengde, geom, geom_start, geom_stop, kontakt_namn, kontakt_adresse, kontakt_postnr, kontakt_poststad, kontakt_tlf, kontakt_epost, isonline, registrert, lastupdate, webdbreguser) VALUES (5, 'Gamlevegen langs fjorden i Balestrand sentrum', 'Turen startar i Balestrand sentrum og g?r s?rvestover langs Sognefjorden. Dette er den gamle bygdevegen. Her m?ter du eit spanande bygningsmilj? med hus i sveitserstil og drakestil. M?larar som Hans Dahl, Hans Andreas Dahl og Adelsteen Normann budde i dette omr?det. ', 'arkitektur, sveitserstil, m?larar, kunstmilj?, strandmilj?', 1400, 1418, '', 'bil, g?', 'Balestrand turistkontor', 1, '0102000020797F00000600000025AFDBA6BC7AE6404C20D3A0D0FF594136C202FD9563E640E7D72D7E38FF5941F4B883538342E640BBC1A3A2C3FE5941B3C59D371433E6403347E33808FE59415334C4FEF931E64003961EDFC3FD59419AB276E13A4AE6400C0209D801FD5941', '0101000020797F000025AFDBA6BC7AE6404C20D3A0D0FF5941', '0101000020797F00009AB276E13A4AE6400C0209D801FD5941', 'Balestrand Reiselivslag', 'Holmen', 6899, 'Balestrand', '9666666', 'br at br.no', -1, NULL, NULL, 'GUR'); INSERT INTO kl_kulturtur (id, namn, omtale, tema, fylke, kommune, vanskegrad, framkomstmiddel, arrangor, lengde, geom, geom_start, geom_stop, kontakt_namn, kontakt_adresse, kontakt_postnr, kontakt_poststad, kontakt_tlf, kontakt_epost, isonline, registrert, lastupdate, webdbreguser) VALUES (100, 'Test', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0102000020797F000002000000000000000017E14000000000A8CB584100000000006A18410000000030C15D41', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -- -- Name: pk_kulturtur; Type: CONSTRAINT; Schema: public; Owner: root; Tablespace: -- ALTER TABLE ONLY kl_kulturtur ADD CONSTRAINT pk_kulturtur PRIMARY KEY (id); -- -- PostgreSQL database dump complete -- From randre at gmail.com Fri Sep 26 08:42:17 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Fri, 26 Sep 2008 08:42:17 -0700 Subject: [mapserver-users] Creation of continuous color ramp legends [SEC=UNCLASSIFIED] In-Reply-To: <61C2DEA055980B418D063F8646FCAEFC05AD1B62@ACT001CL03EX03.agdaff.gov.au> References: <9c2015090809252027j23852e5ax87438f17a5b29da6@mail.gmail.com> <61C2DEA055980B418D063F8646FCAEFC05AD1B62@ACT001CL03EX03.agdaff.gov.au> Message-ID: <9c2015090809260842n496677e7g3af7e901a75e4f50@mail.gmail.com> Hi Antti, Sounds like they probably looked very good. However I was hoping to find a means of generating them automagically. I found some interesting information regarding the Imagemagick gradient tool last night, but was not able to pass in more than 2 colors at a time. I'll have to see if it's possible to do so, or whether I can create multiple, small images of the gradients between color pairs, and then assemble them into a longer image that represents the entire range. Thanks, Roger -- On Thu, Sep 25, 2008 at 8:58 PM, Roppola, Antti - BRS < Antti.Roppola at brs.gov.au> wrote: > I used GIMP to create visually pleasing colour ramps and somehow (it was > a while ago) exported/embedded them in TIFF files as colour maps (I think). > The legend was colour chips for key breakpoints in the gradients I defined > and to hold the legend I created a bogus layer in the same group as the > TIFF. > > Sorry if this is vague or incorrect, it was a few years ago now... > > Antti > > ------------------------------ > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Roger Andr? > *Sent:* Friday, 26 September 2008 1:28 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] Creation of continuous color ramp legends > > I'm interested in hearing how people have gone about creating legend > graphics for continuous data sets. Say for hypsometric tinting. > > Thanks! > > Roger > -- > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at remoteinformation.com.au Fri Sep 26 13:07:44 2008 From: ben at remoteinformation.com.au (Ben Madin) Date: Sat, 27 Sep 2008 04:07:44 +0800 Subject: [mapserver-users] RE:mapserver + MS SQL In-Reply-To: <20080926064708.099EAE015CE@lists.osgeo.org> References: <20080926064708.099EAE015CE@lists.osgeo.org> Message-ID: <1F32EC58-BBBE-4565-984C-3DB3D306AFC0@remoteinformation.com.au> To follow up on this : > The catch here is that to maintain compatibility with the rest of > the system, I am using ms4w 1.5.5 This was the problem. > 1. How can I find if I am truly getting no points at all, or they > are not displaying. I stumbled across an email reply from Frank W suggesting that the ogr link in mapserver didn't work properly for odbc in ogr 1.3.2, which is what was compiled into ms4w 1.5.5. Solution - try to upgrade. > 2. How do I set up expressions to specify that the third column in > my sql statement (response) is the classitem and to class based on > it. This was straight-forward enough once the SQL was working. On 26/09/2008, at 2:47 PM, mapserver-users-request at lists.osgeo.org wrote: > From: Ben Madin > Date: 26 September 2008 12:16:46 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] RE:mapserver + MS SQL > > G'day all, > > I have a similar problem to this, but slightly more basic, and > slightly more outdated! > > I have a MS SQL table with investigations in, and the latitude and > longitude of said investigations. I wanted to be able to make a map, > using OGR / ODBC to connect to MS SQL, and display the points > classed by the level of investigation. > > I created the OGR connection : > > > > ODBC:mmap/private at mmap > select rep.id, rep.latitude as latitude, > rep.longitude as longitude, upper(left(rlu1.lookupfull,1)) > +substring(rlu1.lookupfull,2,len(rlu1.lookupfull)) as response from > reports rep join results res1 on (res1.reportid = rep.id and > res1.resulttypeid = 17 and res1.del=0) join resultlookup rlu1 on > (rlu1.resulttypesid = 17 and rlu1.id = res1.resultvalue) where > projectid = 30 > wkbPoint > y='latitude'/> > > > > and tested it : > > C:\Documents and Settings\Administrator>C:\ms4w\tools\gdal-ogr > \ogrinfo C:\ms4w\Apache\htdocs\mmap\mapserver\xot1.ovf -ro -al > INFO: Open of `C:\ms4w\Apache\htdocs\mmap\mapserver\xot1.ovf' > using driver `VRT' successful. > > Layer name: mmapdata > Geometry: Point > Feature Count: 1978 > Extent: (0.000000, -43.173000) - (153.570000, 0.000000) > Layer SRS WKT: > (unknown) > id: Integer (10.0) > latitude: String (7.0) > longitude: String (7.0) > response: String (256.0) > OGRFeature(mmapdata):0 > id (Integer) = 8887 > latitude (String) = -34.922 > longitude (String) = 138.599 > response (String) = Specimens sent to the Laboratory > POINT (138.59899999999999 -34.921999999999997 0) > > OGRFeature(mmapdata):1 > id (Integer) = 10128 > latitude (String) = -18.280 > longitude (String) = 143.530 > response (String) = Specimens sent to the Laboratory > POINT (143.53 -18.28 0) > > OGRFeature(mmapdata):2 > id (Integer) = 10129 > latitude (String) = -16.920 > longitude (String) = 145.770 > response (String) = Investigation > POINT (145.77000000000001 -16.920000000000002 0) > > > So far, so good. > > Then I built it into a map file : > > MAP > EXTENT 110 -45 160 -8 > FONTSET "/ms4w/Apache/htdocs/mmap/mapserver//fonts/fontset.txt" > IMAGECOLOR 203 230 255 > IMAGETYPE gif > SYMBOLSET "/ms4w/Apache/htdocs/mmap/mapserver//symbols/colour.sym" > SHAPEPATH "C:\ms4w\Apache\htdocs\mmap\mapserver" > SIZE 600 600 > STATUS ON > UNITS DD > NAME "basemap" > > OUTPUTFORMAT > NAME "gif" > MIMETYPE "image/gif" > DRIVER "gd/gif" > EXTENSION "gif" > IMAGEMODE "PC256" > TRANSPARENT FALSE > END > > LEGEND > IMAGECOLOR 255 255 255 > KEYSIZE 20 8 > KEYSPACING 5 4 > LABEL > ANGLE 0.000000 > ANTIALIAS TRUE > FONT "lucida" > MAXSIZE 256 > MINSIZE 4 > SIZE 7 > TYPE TRUETYPE > BUFFER 2 > COLOR 0 0 0 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > OUTLINECOLOR 255 255 250 > PARTIALS TRUE > POSITION UR > SHADOWCOLOR 250 250 250 > SHADOWSIZE 2 2 > END > POSITION LL > STATUS EMBED > TRANSPARENT TRUE > END > > > LAYER > DATA "ausregion" > GROUP "Australia" > METADATA > END > NAME "ausregionlayer" > SIZEUNITS DD > STATUS DEFAULT > TOLERANCEUNITS PIXELS > TYPE POLYGON > UNITS METERS > CLASS > METADATA > END > STYLE > ANGLE 360 > COLOR 245 245 220 > SYMBOL 0 > END > END > END > > > LAYER > CONNECTION " > > ODBC:mmap/password at mmap > select rep.latitude as latitude, rep.longitude as > longitude, upper(left(rlu1.lookupfull,1))+substring(rlu1.lookupfull, > 2,len(rlu1.lookupfull)) as response from reports rep join results > res1 on (res1.reportid = rep.id and res1.resulttypeid = 17 and > res1.del=0) join resultlookup rlu1 on (rlu1.resulttypesid = 17 and > rlu1.id = res1.resultvalue) where projectid = 30 > wkbPoint > y='latitude'/> > > " > CONNECTIONTYPE OGR > DATA "mmapdata" > CLASSITEM response > METADATA > END > NAME ".xot1" > SIZEUNITS PIXELS > STATUS DEFAULT > TOLERANCEUNITS PIXELS > TYPE POINT > UNITS METERS > CLASS > NAME "Field investigation" > EXPRESSION "investigation" > LABEL > SIZE MEDIUM > TYPE BITMAP > BUFFER 0 > COLOR 0 0 0 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > PARTIALS FALSE > POSITION AUTO > END > METADATA > END > STYLE > ANGLE 360 > COLOR 166 206 227 > SIZE 10 > SYMBOL 1 > END > END > > etc > > and try : > > C:\Documents and Settings\Administrator>c:\ms4w\tools\mapserv > \shp2img.exe -m C:\ms4w\Apache\htdocs\nahis\mapserver\tmp > \NAHISdf7c8a22c2b16b33730aa228fac405bb.map > -l .xot1 -o C:\test.gif > scalefactor = 12 > > and I get the map with the borders etc, but no points (the legend > show up OK). Even if I remove the classitem and expressions, I still > don't get any points. -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... -------------- next part -------------- An HTML attachment was scrubbed... URL: From srph124 at yahoo.com Mon Sep 1 07:33:45 2008 From: srph124 at yahoo.com (Saka Royban) Date: Mon, 01 Sep 2008 14:33:45 -0000 Subject: [mapserver-users] Arabic Labeling problem?!!!! Message-ID: <347195.31403.qm@web58211.mail.re3.yahoo.com> Hi all. i have asked this problem in MS4W mailing list but no success. it sounds it originally relates to mapserver According to what History.txt? for MS4W2.2.8 says, problem for arabic and hebrew languages has been solved by using UTF8. But i couldn't get a good result. In fact, UTF8 doesn't show letters correctly (just some symbols). i have tried lots of fonts but the same result. in current version, the problem of joining letters have been solved because i can get result using 'ISO8859-6' encoding which is for arabic but now?this encoding changes some of letters?with each other. In last version, 'Windows-1256' encoding (for arabic) worked well for showing letters just they were separate not joint. but in cuurent versions this encoding just shows some symbols. I'm confused. maybe i should setup sth which i don't do or i don't know sth else. that would be my appreciate to help me because it is really a need. Maps without labels have less usage. Thanks in advance (See attachments) My Mapfile: (Using TimesNewRomans Font) ?LABEL ??TYPE TrueType ??FONT timesnewromans ??ENCODING 'windows-1256' ??SIZE 12 ?? END -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ISO8859-6.png Type: image/x-png Size: 25449 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: UTF-8.png Type: image/x-png Size: 11479 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Windows-1256.png Type: image/x-png Size: 28454 bytes Desc: not available URL: From aberenyi at burken.hu Tue Sep 2 05:03:55 2008 From: aberenyi at burken.hu (=?UTF-8?B?QmVyw6lueWkgQXR0aWxh?=) Date: Tue, 02 Sep 2008 12:03:55 -0000 Subject: [mapserver-users] reprojection In-Reply-To: References: <48B7F7B2.1080505@burken.hu> Message-ID: <48BD2C25.9010309@burken.hu> Dear Linc, Thank you for the answer and sorry for the late reply. I'm getting closer to the solution, but now I face a new problem (I hope mailman will let my attachment trough). I think this is because epsg:23700 is an oblique mercator projection, so I tried to set sphericalMercator: false...so success... Have you or anyone else any other idea? Thanks in advance, Attila ps: now I use this config: map = new OpenLayers.Map('map'); var satellite = new OpenLayers.Layer.Google ( "Google Streets", { projection: "EPSG:900913" } ); wms = new OpenLayers.Layer.MapServer ( "HUN", "http://localhost/cgi-bin/mapserv?", { map: 'mo.map', layers: 'Megyek', transparent: true, sphericalMercator: false }, { opacity: 0.7 } ); map.addLayers([satellite, wms]); CLAY.LINC ?rta: > > Hello Attila, > > > > I posted the item below to the OpenLayers forum regarding a similar > problem. As noted in the posting, if the overlay is not visible by > default the initial placement of the layer is off. However, any map > move that fetches the data again fixes the problem. I have received > no answers to the posting nor have I figured it out myself yet. This > posting includes the map file and the OpenLayers example. > > > > In addition to what is in the posting below, you need to include the > Google projection (900913) definition in the PROJ4 data file. > Information on that can be found at this posting: > > > > > http://lists.osgeo.org/pipermail/mapserver-users/2008-August/057291.html > > > > If you are using PostGIS, you will need to do both items 1 and 2. If > you are not using PostGIS, then I believe you only need item 1. Also, > thanks to Paul Ramsey, if you add the Google projection definition to > the top of the PROJ4 epsg file (as well as the definitions of the > other projections/coordinate systems you are using) MapServer will > make your map faster. (Thanks Paul, this make a perceptible difference!). > > > > I hope this helps, > > > > Best regards, > > > > -Linc > > > > --- OpenLayers Posting --- > > > > Using an overlay layer projected by MS (OpenLayer.MapServer object) to > Google (and Virtual Earth, EPSG 900913), if the overlay layer is > initially visible (visibility: true) then the overlay layer is > correctly placed. If the initial visibility is false, then upon the > first fetch of the layer, it is NOT correctly placed. However, any > subsequent map navigation that causes a fetch of the data correctly > places the overlay layer. This behavior is consistent using the layer > switcher control and manually turning the layer on and off (not > including the layer switcher control). > > > > The relevant portions of code are below. Sorry it is a bit long, but > it is needed for completeness. > > > > Hopefully this is a newbie error on my part. > > > > Any ideas? > > > > Thanks, > > > > -Linc > > > > MS Map File Fragment... > > > > PROJECTION > > "init=epsg:900913" #Google > > END #end projection > > > > LAYER > > NAME "senate" > > connectiontype postgis > > connection "user=xxxx password=xxxx dbname=xxxx host=xxxx > port=xxxx" > > data "geom from s17s0036_shapes" > > PROJECTION > > "init=epsg:4269" > > END #end projection > > TYPE polygon > > STATUS OFF > > CLASS > > STYLE > > OUTLINECOLOR 0 255 0 > > WIDTH 3 > > END #end style > > END #end class > > END #end layer > > > > LAYER > > NAME "senate_go" > > connectiontype postgis > > connection "user=xxx password=xxx dbname=xxx host=xxx > port=xxx" > > data "geom from s17s0036_go" > > PROJECTION > > "init=epsg:900913" > > END #end projection > > TYPE polygon > > STATUS OFF > > #MINSCALE 7000000 > > CLASS > > STYLE > > OUTLINECOLOR 255 0 0 > > WIDTH 3 > > END #end style > > END #end class > > END #end layer > > > > 900913 projection defined to PROJ4 and PostGIS per Subha > Ramakrishnan's MapServer posting of last week. > > > > I used the OpenLayers Google Overlay example. I?m a newbie so it's > not real pretty.... In this code, I was trying to see if the layer > switcher control was the issue so I did not include it and manually > toggled layer visibility. > > > > > > > > > >

OpenLayers Google Example

> > > >
> > > >

> > onclick="toggleLayer(this.value)" /> Senate (EPSG:4269)
> > onclick="toggleLayer(this.value)" /> Senate (EPSG:900913)
> >

> > > >
> > > > > > > > > > > > > > *From:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of > *Ber?nyi Attila > *Sent:* Friday, August 29, 2008 9:21 AM > *To:* _mapserver > *Subject:* [mapserver-users] reprojection > > > > Dear All, > > I have a lot of data in epsg:23700 (HD-72 EOV), and I try to display > it as an overlay over Google Map (epsg:900913) in Openlayers trough > WMS. Theoretically it is possible to do this but I have no success at > all...Which projection should I define in tha main MAP part? And in > the LAYER part? > Have anybody done something like this before? If yes, please help me. > > Thanks in advance, > > Attila Ber?ny > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: projection.png Type: image/png Size: 954213 bytes Desc: not available URL: From ycnyon at pd.jaring.my Thu Sep 11 08:33:17 2008 From: ycnyon at pd.jaring.my (YC Nyon) Date: Thu, 11 Sep 2008 15:33:17 -0000 Subject: [mapserver-users] Re: Crispness of road edge References: <9c2015090809101256r577648fcx838b7ea15a171c55@mail.gmail.com> Message-ID: <001d01c91421$72d30c80$1c020a0a@notebook> Hi, I've been using the map file from http://boston.freemap.in/basemap.map to setup a mapserver 5.0 WMS and using Openlayers as the interface. The results has been good except the edges of the road doesn't seem to be sharp when compared with google or some samples i seen from Mapnik. I use AGG as the output. Have tinker with the antialias, width of the line, etc without much luck Below is snippets of my mapfile: OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB MIMETYPE "image/png; mode=24bit" FORMATOPTION "INTERLACE=OFF" END layer name roads_1sg group roads type line projection "init=epsg:4326" end status on data sg_road maxscale 1000 classitem "KIND" labelitem fullname class EXPRESSION ('[KIND]' = "Secondary" OR '[KIND]' = "Minor Road" OR '[KIND]' = "Alley" OR '[KIND]' = "Unnamed Road") style color 192 192 192 width 17 antialias true end style color 255 255 255 width 15 antialias true end label type truetype antialias true font arial size 13 position cc angle follow color 25 25 25 outlinecolor 255 255 255 buffer 10 partials false mindistance 300 MINFEATURESIZE 100 end end class EXPRESSION ('[KIND]' = "Major Road" OR '[KIND]' = "Provincial Road") style color 185 174 155 width 17 antialias true end style color 255 255 115 width 15 antialias true end label type truetype antialias true font arialb size 13 position cc angle follow color 25 25 25 outlinecolor 255 255 115 buffer 15 partials false mindistance 300 MINFEATURESIZE 100 end end class EXPRESSION ('[KIND]' = 'Highway' OR '[KIND]' = 'Expressway' ) style color 171 135 26 width 18 antialias true end style color 242 191 46 width 16 antialias true end end end -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: compare.gif Type: image/gif Size: 86663 bytes Desc: not available URL: From dzizes451 at gmail.com Tue Sep 16 02:24:30 2008 From: dzizes451 at gmail.com (dzizes451 at gmail.com) Date: Tue, 16 Sep 2008 11:24:30 +0200 Subject: [MAPSERVER-USERS] Debian Oracle10g OCI In-Reply-To: <75b4b93e0809160214l6bf4220dja8384c3b6f7aa282@mail.gmail.com> References: <484196.41437.qm@web51405.mail.re2.yahoo.com> <75b4b93e0809160151q6ce1b62cscb803d8e7160400e@mail.gmail.com> <75b4b93e0809160214l6bf4220dja8384c3b6f7aa282@mail.gmail.com> Message-ID: Now I get: checking if OracleSpatial support requested... yes, user supplied ORACLE_HOME configure: error: Oracle Spatial: libclntsh.so not found. I enclose the config.log. -- Micha? 2008/9/16 Umberto Nicoletti > try: > > -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2.0 > > otherwise post the config.log file. > > Umberto > > 2008/9/16 : > > Thanks for the tip! > > The Makefile looks like: > > -------------- Compiler Info ------------- > > C compiler: gcc -O2 -fPIC -Wall > > C++ compiler: g++ -O2 -fPIC -Wall > > Debug: > > Generic NINT: > > > > -------------- Renderer Settings --------- > > zlib support: -DUSE_ZLIB > > png support: > > palette rgba png support: > > jpeg support: > > iconv support: -DUSE_ICONV > > AGG support: > > AGG Freetype support: > > Ming(flash) support: > > PDFLib support: > > > > -------------- Support Libraries --------- > > Proj.4 support: -DUSE_PROJ > > Libxml2 support: > > FriBidi support: > > Curl support: -DUSE_CURL > > FastCGI support: > > Threading support: -DUSE_THREAD > > GEOS support: > > > > -------------- Data Format Drivers ------- > > native tiff support: > > PostGIS support: > > EPPL7 support: -DUSE_EPPL > > ArcSDE support: > > OGR support: -DUSE_OGR > > GDAL support: -DUSE_GDAL > > Oracle Spatial support: -DUSE_ORACLESPATIAL > > > > -------------- OGC Services -------------- > > WMS Server: -DUSE_WMS_SVR > > WMS Client: -DUSE_WMS_LYR > > WFS Server: > > WFS Client: -DUSE_WMS_LYR > > WCS Server: > > SOS Server: > > > > -------------- MapScript ----------------- > > PHP MapScript: no > > > > the make command throws the following error: > > > > warning: libnnz10.so, needed by > > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so, not > > found (try using -rpath or -rpath-link) > > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > > undefined reference to `nztSearchNZDefault' > > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > > undefined reference to `nzosCipherSpecToStr' > > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > > undefined reference to `nztwOpenWallet' > > /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: > > undefined reference to `A_X931RandomInit' > > .... > > ends with > > collect2: ld returned 1 exit status > > make: *** [shp2img] Error 1 > > > > any ideas! > > > > -- > > Micha? > > > > > > 2008/9/16 Umberto Nicoletti > >> > >> Usign tiff AND gdal is not recommended, you'd better try these options: > >> > >> ./configure > >> -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server > >> -with-proj -with-wfsclient -with-wmsclient -with-gdal -with-ogr > >> -with-threads -with-freetype -without-tiff -with-FastCGI > >> > >> as for the expat error: > >> > >> sudo apt-get install libexpat1 libexpat1-dev > >> > >> Umberto > >> > >> 2008/9/16 : > >> > Hi again, > >> > > >> > I've tried to compile mapserv executable with: > >> > > >> > ./configure > >> > > -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server > >> > -with-proj -with-wfsclient -with-wmsclient -with-gdal -with-ogr > >> > -with-threads -with-freetype -with-tiff -with-FastCGI > >> > > >> > and I receive this error: > >> > > >> > /usr/bin/ld: cannot find -lexpat > >> > collect2: ld returned 1 exit status > >> > make: *** [shp2img] Error 1 > >> > > >> > Does anyone know what is wrong? > >> > > >> > -- > >> > Micha? > >> > > >> > > >> > On Mon, Sep 15, 2008 at 3:16 PM, Dan Little > wrote: > >> >> > >> >> Umberto is right, for Mapserver to connect to Oracle you need to > >> >> specify > >> >> that capability at compile time. But for you ge tthat far I think > you > >> >> need > >> >> to make sure that some of the basics work. > >> >> > >> >> Also, if you cannot connect to Oracle via SQL*Plus (assuming the > binary > >> >> is > >> >> installed) you have other problems including but not limited to: > >> >> - needing to set the LD_LIBRARY_PATH to include all the libraries. > >> >> This > >> >> may also need to be done in Apache while running mapserver to access > >> >> Oracle. > >> >> - needing to configure your TNSNAMES file. > >> >> - check firewall setting in order to make sure you can connect on > 1521 > >> >> (or > >> >> whatever port you are using for Oracle). > >> >> > >> >> Generally, when running an Oracle layer, you want to try the > following > >> >> diagnostic steps: > >> >> 1) Use SQL Developer to connect to the database (it has it's own > >> >> drivers > >> >> built in, so there's no software dependency issues). This will > resolve > >> >> whether or not the databas is working. > >> >> 2) On the machine, try connecting with SQL Plus. This will determine > >> >> whether or not you have your client configured correctly. Do not > move > >> >> on > >> >> until this works. > >> >> 3) Try and re-compile Mapserver with Oracle Spatial. At the end of > the > >> >> ./configure script there is an output screen, ensure that you see > >> >> Oracle is > >> >> turned on, otherwise scroll up in the screen and see what's missing. > >> >> > >> >> > >> >> > >> >> ----- Original Message ---- > >> >> > From: Umberto Nicoletti > >> >> > To: dzizes > >> >> > Cc: mapserver-users at lists.osgeo.org > >> >> > Sent: Monday, September 15, 2008 7:45:48 AM > >> >> > Subject: Re: [MAPSERVER-USERS] Debian Oracle10g OCI > >> >> > > >> >> > You have to recompile mapserver with the: > >> >> > > >> >> > --with-oraclespatial=[path to oracle home] > >> >> > > >> >> > option. That's all that is needed to enable oracle spatial support > in > >> >> > mapserver. > >> >> > > >> >> > HTH, > >> >> > Umberto > >> >> > > >> >> > On Mon, Sep 15, 2008 at 2:05 PM, dzizes wrote: > >> >> > > > >> >> > > Hi, > >> >> > > > >> >> > > I've installed mapserver on Debian (lenny distribution). I've > >> >> > > managed > >> >> > > to > >> >> > > create mapfile based on shp data and successfully send a wms > >> >> > > request > >> >> > > to get > >> >> > > a map. I seems that mapserver works fine. > >> >> > > > >> >> > > I've also installed oracle-ex and I can connect to my Oracle via > >> >> > > sqlplus. > >> >> > > However, when I request wms (to a map file pointing to Oracle10g) > I > >> >> > > receive > >> >> > > the following: > >> >> > > > >> >> > > msDrawMap(): Image handling error. Failed to draw layer named > >> >> > > 'test'. > >> >> > > msOracleSpatialLayerOpen(): OracleSpatial error. OracleSpatial is > >> >> > > not > >> >> > > supported > >> >> > > > >> >> > > I've found that I need OCI installed and configured properly, but > >> >> > > there is > >> >> > > no clear tutorial. > >> >> > > Please provide me a some step by step guide. > >> >> > > > >> >> > > Greets, > >> >> > > Michal > >> >> > > > >> >> > > -- > >> >> > > View this message in context: > >> >> > > http://www.nabble.com/Debian-Oracle10g-OCI-tp19491636p19491636.html > >> >> > > Sent from the Mapserver - User mailing list archive at > Nabble.com. > >> >> > > > >> >> > > _______________________________________________ > >> >> > > mapserver-users mailing list > >> >> > > mapserver-users at lists.osgeo.org > >> >> > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> > > > >> >> > _______________________________________________ > >> >> > mapserver-users mailing list > >> >> > mapserver-users at lists.osgeo.org > >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> > >> >> > >> >> > >> >> > >> > > >> > > >> > _______________________________________________ > >> > mapserver-users mailing list > >> > mapserver-users at lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > >> > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 33657 bytes Desc: not available URL: From bfraser at geoanalytic.com Thu Sep 18 13:17:22 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 18 Sep 2008 14:17:22 -0600 Subject: [mapserver-users] GRID or not to GRID (USNG question) In-Reply-To: <48D251BA.163B.00A8.0@ci.stpaul.mn.us> References: <48CE9D20.163B.00A8.0@ci.stpaul.mn.us> <48D2797B.2070604@geoanalytic.com> <48D2362D.163B.00A8.0@ci.stpaul.mn.us><48D2362D.163B.00A8.0@ci.stpaul.mn.us> <48D28403.7000500@geoanalytic.com> <48D251BA.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <48D2B752.90100@geoanalytic.com> Bob, I now get the username dialog when I try to turn on layers. I think you will be able to get some improvement with the GRID Layer's LABEL POSITION settings, but in the end it will not be perfect. To get a finer level of control over the GRID LABELs, we need to introduce some more map file objects. Here's some of my notes from March (the last time we talked about this) Need concept of margin so phantom lines in margin not labeled Labels should be gapped relative to margin/neatline, not extent of output graphic file - gap should be user-settable parameter Text placement must take into account non-90 deg map rotation (must include dx and dy of text box) So possible map file objects might be: MARGIN WIDTH: width specified in pixels (left, right, top, bottom?) SHAPE: PROJECTED, GEOGRAPHIC (follows curved graticule lines) TRANSPARENCY: 0 - 100 % TICS: length in pixels (left, right, top, bottom?) NEATLINE: thickness, style ANNO: GAP: in pixels from margin/neatline, or as mult of text size ORIENTATION: UP, PARALLEL LABEL: FORMAT: deg/min/sec symbols, linear units STYLE: sub/superscript (see USNG, or UTM labels on Canadian NTS sheets) TRUNCATE: full/partials others?... And I have no idea how polar projection map GRID labels would be spec'd out. See the attached PNG graphic for my prototype (with still lots of problems). That should get the creative juices flowing... Brent Bob Basques wrote: > Brent, > > I figured out the publishing problem (my error) for the Web Interface. > This link should work now: > > http://gis.ci.stpaul.mn.us/gis/gismo_public/html/?mapbook=/datasets/CONFIGS/SAINT_PAUL/PUBLIC_WORKS/MAPBOOKS/TS/usng_1st_public.xml > > It will give you a better idea of the labeling problems at different > scales of view that I'm running into. > > We actually did some code change in MapServer to get to the point of > even coming close to the USNG formats, but it still comes up short. > > Thanks > > bobb > > > >> >> Brent Fraser wrote: > Bob, > > I seem to remember experimenting with different LABEL -> POSITION > settings in the GRID layer. I'll try to find my map file. > > Brent > > Bob Basques wrote: >> Brent, >> >> Sorry about that, I really need to get a test box for outside posting of >> things. :c) >> >> Here is a screenshot about what I'm talking about: >> >> >> Basically I want to align the labels along the edges. I've tried a few >> different things to fake it with some positive results, But nothing that >> I can implement as a production piece because it needs some sort of >> manual intervention in the final process. >> >> The entities are predefined lines as a SHP file that I'm labeling. Now >> using the MapServer Grid Object I got this far: >> >> >> But even this is not getting me to the final destination. There's not >> much control on numbering and the process is fairly slow compared to >> just labeling the lines. >> >> Any ideas? >> >> bobb >> >> >> >> > >> Brent Fraser wrote: >> Bob, >> >> I get a Username/Password request dialog from the URL... >> >> Brent Fraser >> >> Bob Basques wrote: >> > All, >> > >> > in the following interface: >> > >> > >> > http://gis.ci.stpaul.mn.us/gis/gismo_public/html/?mapbook=/datasets/CONFIGS/SAINT_PAUL/PUBLIC_WORKS/MAPBOOKS/TS/usng_1st.xml >> > >> > The last two layers in the "US National Grid Layers" folder show a layer >> > with lines Easting and Northing, that I want to label. They label just >> > fine, but I would like to align them along an edge of the view >> > automatically, the ideal situation would be to have two labels on each >> > end of the lines along the edges of the view. >> > >> > We've tried using the GRID object, even going so modifying the source >> > for GRID, you can see an example in the third to last layer above, "USNG >> > via MapServer GRID" (Wait for it, it's kinda slow right now) And just >> > can't seem to get the output in any sort of usable result for printing. >> > >> > Question, anyone got any ideas about how to align those labels along the >> > edges? >> > >> > Thanks >> > >> > bobb >> > >> > >> > >> > >> > ------------------------------------------------------------------------ >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- A non-text attachment was scrubbed... Name: alberta_v5.0.2_postfix_norot.png Type: image/png Size: 194829 bytes Desc: not available URL: From bea at ixsea.com Mon Sep 22 07:50:54 2008 From: bea at ixsea.com (=?iso-8859-1?Q?Beno=EEt_Andrieu?=) Date: Mon, 22 Sep 2008 16:50:54 +0200 Subject: [mapserver-users] Reprojection image quality Message-ID: Hello guys ! I currently have some problems in the quality of the images produced by GDAL/Mapserver. We are using MapServer to serve raster imagery to NASA Worldwind. Our files are in UTM and Worldwind needs WGS84 images so we do reprojection on the fly. Using this, we can clearly see image quality artefacts between Worldwind (using WGS84, no choice) and a custom internal tool (showing original data). I can reproduce the problem using gdalwarp tool using a very simple command line : gdalwarp -multi -t_srs EPSG:4326 -srcnodata 0 -dstnodata 0 -r near %FileSrc%/*_p_*8bit.tif %FileDest% You can see the result in the embedded file : on the right, the original image and on the left, the resulting output. I suspect that using some others settings, I could improve the quality on gdalwarp's output in a first time and on mapserver's output in a second time but I don't know where to start... So if anyone could help or suggest anything, he will be welcome !!! Thanks in advance, Beno?t -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Clipboard02.png Type: image/png Size: 115952 bytes Desc: not available URL: From pramsey at cleverelephant.ca Sat Sep 27 11:33:11 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Sat, 27 Sep 2008 11:33:11 -0700 Subject: [mapserver-users] Reprojection image quality In-Reply-To: References: Message-ID: <30fe546d0809271133l4b3d1c09uc7610502c7824cec@mail.gmail.com> Add PROCESSING "RESAMPLE=BILINEAR" to your raster layer. If you're feeling really free with your CPU cycles, add PROCESSING "RESAMPLE=AVERAGE" On Mon, Sep 22, 2008 at 7:50 AM, Beno?t Andrieu wrote: > Hello guys ! > > I currently have some problems in the quality of the images produced by > GDAL/Mapserver. > > We are using MapServer to serve raster imagery to NASA Worldwind. > Our files are in UTM and Worldwind needs WGS84 images so we do reprojection > on the fly. > Using this, we can clearly see image quality artefacts between Worldwind > (using WGS84, no choice) and a custom internal tool (showing original data). > > I can reproduce the problem using gdalwarp tool using a very simple command > line : > gdalwarp -multi -t_srs EPSG:4326 -srcnodata 0 -dstnodata 0 -r near > %FileSrc%/*_p_*8bit.tif %FileDest% > > You can see the result in the embedded file : on the right, the original > image and on the left, the resulting output. > > I suspect that using some others settings, I could improve the quality on > gdalwarp's output in a first time and on mapserver's output in a second time > but I don't know where to start... > > So if anyone could help or suggest anything, he will be welcome !!! > > Thanks in advance, > > Beno?t > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From rpinho_eng at yahoo.com.br Sat Sep 27 17:57:31 2008 From: rpinho_eng at yahoo.com.br (Ricardo Pinho) Date: Sat, 27 Sep 2008 17:57:31 -0700 (PDT) Subject: [mapserver-users] GISVM - FOSS4G 2008 Special Edition Message-ID: <164192.86691.qm@web65711.mail.ac4.yahoo.com> Dear all, I am proud to announce the "GIS Virtual Machine" FOSS4G 2008 Special Edition, available at: http://www.gisvm.com This full-feature GIS Workstation, based exclusively on free GIS software, now also includes "Kosmo 1.2" and the "uDIG 1.1" Sanity Check release. The one that will be used on uDIG Lab presentation at Cape Town!!! Please feel free to download it and enjoy!!! Regards, -- Ricardo Pinho PS. These are the GISVM specs: GISVM - FOSS4G 2008 Special Edition Free and ready to use anywhere GIS Virtual Machine Workstation. A FOSS4G 2008 Special Edition! ________________________________ Features VMware info - CPUs : 1 - RAM : 512 MB - Networking : NAT - Harddisk : 8 GB SCSI (expanding) - VMware tools : Installed - Sound card : Enabled - USB : Enabled OS info - OS : Ubuntu 8.04 Desktop - Installation : Standard - Hostname : gisvm - Patches : till date of creation - IPv4 address : dhcp - IPv6 address : dhcp - DNS name : none - Nameserver : dhcp - Route : dhcp - Root password: not set (use sudo to execute commands as root) - User login : user - User password: user - Keyboard : US-intl - Date created : 18-09-2008 GIS DESKTOP APPLICATIONS AVAILABLE - Quantum GIS 0.11.0 Metis + GRASS - gvSIG 1.2 - FWTools 2.0.6 (Open EV, GDAL/OGR, Proj.4, OGDI, Mapserver, Python) - (NEW!!!) uDIG 1.1 SC 2 as presented at FOSS4G 2008 - (NEW!!!) Kosmo 1.2, an excellent Arcview clone GIS SERVER APPLICATIONS AVAILABLE PostgreSQL 8.3 + PostGIS 1.3.3-1 + pgAdminIII - Database : postgis - Login : postgres - Password : postgres JAVA 6 JDK + TOMCAT 6.0.18 - Port Number : 8080 - Manager login: admin - Password : admin GeoSERVER 1.7.0 RC1 - Login : admin - Password : geoserver Apache 2 + PHP 5.2.4 + Mapserver 5.1 + PHP Mapscript - CGI-BIN : http://localhost/cgi-bin/mapserv - WWW Root : /var/www/ General purpose applications available: - OpenOffice2.4: Writer, Calc, Impress, Draw - Internet : Firefox, Evolution Mail, Ekiga Softphone, Transmission Bit Torrent Client - Graphics : F-Spot Photo Manager, GIMP Image Editor, XSane Image Scanner - Sound & Video: Audio CD Extractor, Brasero Disc Burning, Movie Player, Rhythmbox Music Player, Sound Recorder And thats all! Problems and feedback: http://www.gisvm.com/forum Keep informed on: http://www.gisvm.com/blog Brought to you by Ricardo Pinho (http://www.gisvm.com) Based on the ubuntu804desktop by Chrysaor (http://chrysaor.info) ______________________________ Technical Specifications Operating System: Ubuntu 8.04 Hardy VMware Tools installed: Yes Size: 1000MB Allocated Memory (RAM): 512 Torrent Available Applications Installed: GIS DESKTOP APPLICATIONS - Quantum GIS 0.11.0 Metis + GRASS - gvSIG 1.2 - FWTools 2.0.6 (Open EV, GDAL/OGR, Proj.4, OGDI, Mapserver, Python) - (NEW!!!) uDIG 1.1 S.C. 2 - (NEW!!!) Kosmo 1.2 GIS SERVER APPLICATIONS - PostgreSQL 8.3 + PostGIS 1.3.3-1 + pgAdminIII - JAVA 6 JDK + TOMCAT 6.0.18 - GeoSERVER 1.7.0 RC1 - Apache 2 + PHP 5.2.4 + Mapserver 5.1 + PHP Mapscript GENERAL PURPOSE APPLICATIONS - OpenOffice2.4: Writer, Calc, Impress, Draw - Internet : Firefox, Evolution Mail, Ekiga Softphone, Transmission Bit Torrent Client - Graphics : F-Spot Photo Manager, GIMP Image Editor, XSane Image Scanner - Sound & Video: Audio CD Extractor, Brasero Disc Burning, Movie Player, Rhythmbox Music Player, Sound Recorder Novos endere?os, o Yahoo! que voc? conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com. http://br.new.mail.yahoo.com/addresses From metlud at yahoo.it Sun Sep 28 01:12:22 2008 From: metlud at yahoo.it (Ludovico Bianchini) Date: Sun, 28 Sep 2008 10:12:22 +0200 Subject: [mapserver-users] java mapscript + postgis = jvm crashed (SOLVED) In-Reply-To: <75b4b93e0809232356s67f55821o1bc08b9b16e24fca@mail.gmail.com> References: <259451.40654.qm@web23701.mail.ird.yahoo.com> <75b4b93e0809222353j375978esc3044efa1e6329ac@mail.gmail.com> <48D9567D.4080305@yahoo.it> <75b4b93e0809232356s67f55821o1bc08b9b16e24fca@mail.gmail.com> Message-ID: <48DF3C66.9050704@yahoo.it> I've upgraded to ms4w 2.3.0, it's solved the "crashing" problem. Another question: could I still use Postgres 8.1 + postgis 1.3.2 ? Have I to upgrade database too? (I don't see in the map the layer from postgis, but it could be a problem in my code or shape file or db data). Thanks. Ludovico Umberto Nicoletti ha scritto: > On Tue, Sep 23, 2008 at 10:50 PM, Ludovico Bianchini wrote: > >> Umberto Nicoletti ha scritto: >> >>> I am using postgis layers (on Linux, though) and it works fine. >>> >>> Do you share the same mapObj between threads (in application scope) or >>> multiple requests (in session scope)? >>> mapscript is safe only when a new mapObj is created for each request. >>> What other kind of layers do you have in your map? >>> >>> Umberto >>> >>> >>> On Mon, Sep 22, 2008 at 10:34 PM, Ludovico Bianchini >>> wrote: >>> >>> >>>> - Windows Vista Home Premium >>>> - Postgres 8.1 >>>> - jvm 1.6.0 >>>> - jboss 4.0.3SP1, tomcat 5.5 >>>> - struts2 >>>> - ms4w 2.2.3 (mapscript.jar, mapscript.dll, all other dlls taken from >>>> this pack) >>>> - postgresql-8.2-505.jdbc4.jar >>>> >>>> mapscript.jar is placed in >>>> C:\jboss-4.0.3SP1\server\default\deploy\jbossweb-tomcat55.sar >>>> >>>> When a layer with a postgis connection is turned on, the draw method >>>> crashes the jvm. >>>> >>>> Error file attached. >>>> >>>> Is there any solution to this problem? >>>> >>>> Postgis is listed in "unsafe components", i have not understood if there >>>> is one way to make it work using thread syncronization. >>>> >>>> Thanks in advance for any help. >>>> >>>> Ludovico >>>> >>>> >>>> __________________________________________________ >>>> Do You Yahoo!? >>>> Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da >>>> tanto spazio gratuito per i tuoi file e i messaggi >>>> http://mail.yahoo.it >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>>> >>>> >>> >>> >> I think I do not share the same object between request. >> >> The other layer are shape file layer, they work fine (zoom ok, pan ok). >> >> >> >> . >> . >> . >> > method="{1}"> >> /jsp/mappa.jsp >> . >> . >> . >> >> >> >> >> public class MappaAction extends ActionSupport implements >> ServletRequestAware{ >> > > Are you sharing any mapscript object as an Action attribute? If yes > that's probably the culprit, otherwis it seems pretty strange... > Does the crash occur only when more than user is accessing the map or > even when there is only one user? > > Also ms4w 2.2.3 seems prett old, why don't you upgrade to the latest? > > Umberto > > >> . >> .//attributes >> . >> . >> public String execute() throws Exception { >> mapObj mapObj_o = new >> mapObj("C:\\jboss-4.0.3sp1_map\\map\\treviso.map");//create a new mapObj >> object >> if(OP == null) OP = "-1"; >> int op = Integer.parseInt(OP); >> switch (op) { >> case Z_IN: zoomIn(mapObj_o); >> break; >> case Z_OUT: zoomOut(mapObj_o); >> break; >> case PAN: pan(mapObj_o); >> break; >> case REFRESH: refresh(mapObj_o); >> break; >> >> default: fullExtent(mapObj_o); >> break; >> } >> return SUCCESS; >> } >> . >> .//utility methods, map navigation methods >> . >> >> private void draw(mapObj mapObj_o){ >> . >> . >> mapImageObj = mapObj_o.draw();//this instruction crashes the JVM >> . >> . >> } >> >> } >> >> ######################################################## >> #### LAYER SEGNALETICA >> #### >> ######################################################## >> >> LAYER >> NAME "segnaletica" >> STATUS OFF >> TYPE POINT >> TRANSFORM false >> POSTLABELCACHE true >> CONNECTION "user=user password=password dbname=dbname host=localhost >> port=5432" >> CONNECTIONTYPE postgis >> DATA "posizionegeoref from rilievi.impianti" CLASS >> STYLE >> COLOR 255 99 0 >> SYMBOL "circle" >> SIZE 12 >> END >> END >> PROJECTION >> "init=epsg:4326" >> END >> END >> >> Ludovico >> Chiacchiera con i tuoi amici in tempo reale! >> http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com >> >> > > > Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com From metlud at yahoo.it Sun Sep 28 02:45:09 2008 From: metlud at yahoo.it (Ludovico Bianchini) Date: Sun, 28 Sep 2008 11:45:09 +0200 Subject: [mapserver-users] java mapscript + postgis = query use pixel map's limits Message-ID: <48DF5225.7020602@yahoo.it> - Windows Vista Home Premium - Postgres 8.1 - jvm 1.6.0 - jboss 4.0.3SP1, tomcat 5.5 - struts2 - ms4w 2.3.0 (mapscript.jar, mapscript.dll, all other dlls taken from this pack) - postgresql-8.2-505.jdbc4.jar The query created to extract postgis layer is of the type SELECT asbinary(force_collection(force_2d(posizionegeoref)),'NDR') from rilievi.impianti where posizionegeoref && setSRID('BOX3D(0 0,599 399)'::BOX3D, find_srid('','rilievi.impianti','posizionegeoref') ); The BOX3D filter is created using pixel map's limits...( BOX3D(0 0,599 399) ) why this? I use setExtent() before draw(), all navigation operations work fine, why is the query build against the pixel dimensions of the resulting image and not against the real dimensions calculated for the rectangle? Perhaps I am missing some basic instructions, but I don't know what... Thanks in advance for any suggestions. Ludovico Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com From gwaldron at gmail.com Sun Sep 28 06:57:55 2008 From: gwaldron at gmail.com (Glenn Waldron) Date: Sun, 28 Sep 2008 09:57:55 -0400 Subject: [mapserver-users] SRTM via WMS - edge matching Message-ID: <70fbea790809280657h760ec0dan557c1f0a6a5c2de7@mail.gmail.com> Hi, Hopefully this question isn't too OT ... I want to deploy something similar under Mapserver so I want to make sure I know how to do it. I am trying to access SRTM elevation data via WMS, from the JPL site ( http://onearth.jpl.nasas.gov/wms.cgi?request=GetCapabilities, layer = "srtmplus"). I'm asking for PNGs. The issue is that if I request adjacent bbox's, the elevation values along the adjacent edge don't match up. My best guess is that this happens because of resampling on the server side, but that's just a guess. Can anyone offer some insight into how to resolve this? Thanks, Glenn -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Sun Sep 28 07:26:36 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Sun, 28 Sep 2008 09:26:36 -0500 Subject: [mapserver-users] SRTM via WMS - edge matching Message-ID: <48DF5C11020000A80000DB24@jeckle> did you try grabbing an initially larger bbox and then clipping it back to the desired bboxN bobb **************** You can't be late until you show up. *************** ************ You never learn anything by doing it right. ************ *** War doesn't determine who's right. War determines who's left. *** >>> "Glenn Waldron" 09/28/08 08:58 AM >>> Hi, Hopefully this question isn't too OT ... I want to deploy something similar under Mapserver so I want to make sure I know how to do it. I am trying to access SRTM elevation data via WMS, from the JPL site ( http://onearth.jpl.nasas.gov/wms.cgi?request=GetCapabilities, layer = "srtmplus"). I'm asking for PNGs. The issue is that if I request adjacent bbox's, the elevation values along the adjacent edge don't match up. My best guess is that this happens because of resampling on the server side, but that's just a guess. Can anyone offer some insight into how to resolve this? Thanks, Glenn From gwaldron at gmail.com Sun Sep 28 09:10:36 2008 From: gwaldron at gmail.com (Glenn Waldron) Date: Sun, 28 Sep 2008 12:10:36 -0400 Subject: [mapserver-users] SRTM via WMS - edge matching In-Reply-To: <48DF5C11020000A80000DB24@jeckle> References: <48DF5C11020000A80000DB24@jeckle> Message-ID: <70fbea790809280910n5c09c82di651b676392259b9e@mail.gmail.com> Hi Bob, thanks for your suggestion. That is one backup plan if I cannot find a better way. My concern is that the approach would not be readily compatible with WMS-C/TileService/Tilecache configurations. Glenn On Sun, Sep 28, 2008 at 10:26 AM, Bob Basques wrote: > did you try grabbing an initially larger bbox and then clipping it back to > the desired bboxN > > bobb > > > **************** You can't be late until you show up. *************** > ************ You never learn anything by doing it right. ************ > *** War doesn't determine who's right. War determines who's left. *** > > >>> "Glenn Waldron" 09/28/08 08:58 AM >>> > Hi, > > Hopefully this question isn't too OT ... I want to deploy something similar > under Mapserver so I want to make sure I know how to do it. > > I am trying to access SRTM elevation data via WMS, from the JPL site ( > http://onearth.jpl.nasas.gov/wms.cgi?request=GetCapabilities, layer = > "srtmplus"). I'm asking for PNGs. The issue is that if I request adjacent > bbox's, the elevation values along the adjacent edge don't match up. My > best > guess is that this happens because of resampling on the server side, but > that's just a guess. > > Can anyone offer some insight into how to resolve this? > > Thanks, > Glenn > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Sun Sep 28 11:55:50 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sun, 28 Sep 2008 20:55:50 +0200 Subject: [mapserver-users] Re: Crispness of road edge In-Reply-To: <001d01c91421$72d30c80$1c020a0a@notebook> References: <9c2015090809101256r577648fcx838b7ea15a171c55@mail.gmail.com> <001d01c91421$72d30c80$1c020a0a@notebook> Message-ID: hi, the output you're showing has been rendered with gd, not agg. make sure openlayers is calling your wms server with your agg outputformat, by adding a format: 'agg' to your layer options. ps: the "antialias true" keywords are not necessary when using agg cheers, thomas On Thu, Sep 11, 2008 at 17:17, YC Nyon wrote: > Hi, > > I've been using the map file from http://boston.freemap.in/basemap.map > to setup a mapserver 5.0 WMS and using Openlayers as the interface. > > The results has been good except the edges of the road doesn't seem to be > sharp when compared with google or some samples i seen from Mapnik. > I use AGG as the output. > Have tinker with the antialias, width of the line, etc without much luck > > Below is snippets of my mapfile: > > OUTPUTFORMAT > NAME 'AGG' > DRIVER AGG/PNG > IMAGEMODE RGB > MIMETYPE "image/png; mode=24bit" > FORMATOPTION "INTERLACE=OFF" > END > > > layer > name roads_1sg > group roads > type line > projection > "init=epsg:4326" > end > status on > data sg_road > maxscale 1000 > classitem "KIND" > labelitem fullname > class > EXPRESSION ('[KIND]' = "Secondary" OR '[KIND]' = "Minor Road" OR > '[KIND]' = "Alley" OR '[KIND]' = "Unnamed Road") > style > color 192 192 192 > width 17 > antialias true > end > style > color 255 255 255 > width 15 > antialias true > end > label > type truetype > antialias true > font arial > size 13 > position cc > angle follow > color 25 25 25 > outlinecolor 255 255 255 > buffer 10 > partials false > mindistance 300 > MINFEATURESIZE 100 > end > end > class > EXPRESSION ('[KIND]' = "Major Road" OR '[KIND]' = "Provincial > Road") > style > color 185 174 155 > width 17 > antialias true > end > style > color 255 255 115 > width 15 > antialias true > end > label > type truetype > antialias true > font arialb > size 13 > position cc > angle follow > color 25 25 25 > outlinecolor 255 255 115 > buffer 15 > partials false > mindistance 300 > MINFEATURESIZE 100 > end > end > class > EXPRESSION ('[KIND]' = 'Highway' OR '[KIND]' = 'Expressway' ) > style > color 171 135 26 > width 18 > antialias true > end > style > color 242 191 46 > width 16 > antialias true > end > end > end > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From matej at matnet.net Sun Sep 28 12:22:54 2008 From: matej at matnet.net (Matej) Date: Sun, 28 Sep 2008 21:22:54 +0200 Subject: [mapserver-users] Points with hyperlinks In-Reply-To: <48DC9B10020000A80000DAB9@jeckle> References: <48DC9B10020000A80000DAB9@jeckle> Message-ID: <90F2C71285854504AEA716B8ED9E22D5@Leeml> Bob, thank you for your reply. My current choice would be the Imagemap one. Could you attach some short XML and other appropriate snippets to achieve it? Actually I have a working .map file which creates my that content between and , but I am looking for examples on how to include it into GeoMoose, which anyways works perfectly. Thank you for your help in advance, Matej Serc matej at matnet.net ----- Original Message ----- From: "Bob Basques" To: Cc: ; Sent: Friday, September 26, 2008 2:18 PM Subject: Re: [mapserver-users] Points with hyperlinks Matej, I'm copying this reply to the GeoMoose Mail list. Are you interested in working the process as a pick option or query service, where you pick a point on the map and the server responds with a new window containing the link, or do you want to use a Imagemap, where all the links available for a particular view are downloaded at once and you can open up a new window by picking from active areas in the map? GeoMoose can go both ways. I use the ImageMap process quite extensively, since I can send some basic metadata like info down to the client in short form, and let the user decide it they want to see more. I can also include more than on link this way and let the user decide which they want to open up. The Query Service is good though if you know you are always going to want to look at the result in a new page no matter what. bobb >>> "Matej" 09/26/08 4:52 AM >>> Hello, thanks everyone for help and suggestions so far ... I am using GeoMoose as a client and I have some problems implementing it. Does someone have a working XML Mapbook code snippet for "including" mapfiles into the GeoMoose? It works directly when I call mapserv from URL anyway ... Thanks everyone, Matej Serc matej at matnet.net _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From SansonR at asurequality.com Sun Sep 28 13:26:59 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Mon, 29 Sep 2008 09:26:59 +1300 Subject: [mapserver-users] RE:mapserver + MS SQL In-Reply-To: <1F32EC58-BBBE-4565-984C-3DB3D306AFC0@remoteinformation.com.au> References: <20080926064708.099EAE015CE@lists.osgeo.org> <1F32EC58-BBBE-4565-984C-3DB3D306AFC0@remoteinformation.com.au> Message-ID: <48E09F63.379F.0037.0@asurequality.com> Hi Ben If you can set up a view in SQL-Server with just the fields you need, then it simplifies things. Set up the OGR datasource config file just specifying the primary key and lat/long fields eg: ODBC:user/passwd at APIARY vw_ogr_apiary_layer wkbPoint EPSG:27200 apiary_id In your Mapserver file, the layer definition: LAYER NAME "apiaries" TYPE POINT UNITS METERS CONNECTION "./apiaries.ovf" CONNECTIONTYPE OGR DATA "apiaries" FILTER "WHERE apiary_id = '%apiaryid%'" STATUS ON ... I pass an apiaryid is as a filter on my WFS call to this layer. Otherwise miss out the FILTER statement. Kind regards, Robert Sanson Robert Sanson, BVSc, MACVSc, PhD Geospatial Services AsureQuality Limited PO Box 585, Palmerston North NEW ZEALAND Phone: +64 6 351-7990 Fax: +64 6 351-7919 Mobile: 021 448-472 E-mail: sansonr at asurequality.com >>> Ben Madin 27/09/2008 8:07 a.m. >>> To follow up on this : The catch here is that to maintain compatibility with the rest of the system, I am using ms4w 1.5.5 This was the problem. 1. How can I find if I am truly getting no points at all, or they are not displaying. I stumbled across an email reply from Frank W suggesting that the ogr link in mapserver didn't work properly for odbc in ogr 1.3.2, which is what was compiled into ms4w 1.5.5. Solution - try to upgrade. 2. How do I set up expressions to specify that the third column in my sql statement (response) is the classitem and to class based on it. This was straight-forward enough once the SQL was working. On 26/09/2008, at 2:47 PM, mapserver-users-request at lists.osgeo.org wrote: From: Ben Madin Date: 26 September 2008 12:16:46 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE:mapserver + MS SQL G'day all, I have a similar problem to this, but slightly more basic, and slightly more outdated! I have a MS SQL table with investigations in, and the latitude and longitude of said investigations. I wanted to be able to make a map, using OGR / ODBC to connect to MS SQL, and display the points classed by the level of investigation. I created the OGR connection : ODBC:mmap/private at mmap select rep.id, rep.latitude as latitude, rep.longitude as longitude, upper(left(rlu1.lookupfull,1))+substring(rlu1.lookupfull,2,len(rlu1.lookupfull)) as response from reports rep join results res1 on (res1.reportid = rep.id and res1.resulttypeid = 17 and res1.del=0) join resultlookup rlu1 on (rlu1.resulttypesid = 17 and rlu1.id = res1.resultvalue) where projectid = 30 wkbPoint and tested it : C:\Documents and Settings\Administrator>C:\ms4w\tools\gdal-ogr\ogrinfo C:\ms4w\Apache\htdocs\mmap\mapserver\xot1.ovf -ro -al INFO: Open of `C:\ms4w\Apache\htdocs\mmap\mapserver\xot1.ovf' using driver `VRT' successful. Layer name: mmapdata Geometry: Point Feature Count: 1978 Extent: (0.000000, -43.173000) - (153.570000, 0.000000) Layer SRS WKT: (unknown) id: Integer (10.0) latitude: String (7.0) longitude: String (7.0) response: String (256.0) OGRFeature(mmapdata):0 id (Integer) = 8887 latitude (String) = -34.922 longitude (String) = 138.599 response (String) = Specimens sent to the Laboratory POINT (138.59899999999999 -34.921999999999997 0) OGRFeature(mmapdata):1 id (Integer) = 10128 latitude (String) = -18.280 longitude (String) = 143.530 response (String) = Specimens sent to the Laboratory POINT (143.53 -18.28 0) OGRFeature(mmapdata):2 id (Integer) = 10129 latitude (String) = -16.920 longitude (String) = 145.770 response (String) = Investigation POINT (145.77000000000001 -16.920000000000002 0) So far, so good. Then I built it into a map file : MAP EXTENT 110 -45 160 -8 FONTSET "/ms4w/Apache/htdocs/mmap/mapserver//fonts/fontset.txt" IMAGECOLOR 203 230 255 IMAGETYPE gif SYMBOLSET "/ms4w/Apache/htdocs/mmap/mapserver//symbols/colour.sym" SHAPEPATH "C:\ms4w\Apache\htdocs\mmap\mapserver" SIZE 600 600 STATUS ON UNITS DD NAME "basemap" OUTPUTFORMAT NAME "gif" MIMETYPE "image/gif" DRIVER "gd/gif" EXTENSION "gif" IMAGEMODE "PC256" TRANSPARENT FALSE END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 8 KEYSPACING 5 4 LABEL ANGLE 0.000000 ANTIALIAS TRUE FONT "lucida" MAXSIZE 256 MINSIZE 4 SIZE 7 TYPE TRUETYPE BUFFER 2 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 OUTLINECOLOR 255 255 250 PARTIALS TRUE POSITION UR SHADOWCOLOR 250 250 250 SHADOWSIZE 2 2 END POSITION LL STATUS EMBED TRANSPARENT TRUE END LAYER DATA "ausregion" GROUP "Australia" METADATA END NAME "ausregionlayer" SIZEUNITS DD STATUS DEFAULT TOLERANCEUNITS PIXELS TYPE POLYGON UNITS METERS CLASS METADATA END STYLE ANGLE 360 COLOR 245 245 220 SYMBOL 0 END END END LAYER CONNECTION " ODBC:mmap/password at mmap select rep.latitude as latitude, rep.longitude as longitude, upper(left(rlu1.lookupfull,1))+substring(rlu1.lookupfull,2,len(rlu1.lookupfull)) as response from reports rep join results res1 on (res1.reportid = rep.id and res1.resulttypeid = 17 and res1.del=0) join resultlookup rlu1 on (rlu1.resulttypesid = 17 and rlu1.id = res1.resultvalue) where projectid = 30 wkbPoint " CONNECTIONTYPE OGR DATA "mmapdata" CLASSITEM response METADATA END NAME ".xot1" SIZEUNITS PIXELS STATUS DEFAULT TOLERANCEUNITS PIXELS TYPE POINT UNITS METERS CLASS NAME "Field investigation" EXPRESSION "investigation" LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS FALSE POSITION AUTO END METADATA END STYLE ANGLE 360 COLOR 166 206 227 SIZE 10 SYMBOL 1 END END etc and try : C:\Documents and Settings\Administrator>c:\ms4w\tools\mapserv\shp2img.exe -m C:\ms4w\Apache\htdocs\nahis\mapserver\tmp\NAHISdf7c8a22c2b16b33730aa228fac405bb.map -l .xot1 -o C:\test.gif scalefactor = 12 and I get the map with the borders etc, but no points (the legend show up OK). Even if I remove the classitem and expressions, I still don't get any points. -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... Click here ( https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg== ) to report this email as spam. ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From SansonR at asurequality.com Sun Sep 28 14:08:38 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Mon, 29 Sep 2008 10:08:38 +1300 Subject: [mapserver-users] Including a variable title on a map? In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FC0C7@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5021FC0C7@s-sp22.pca.state.mn.us> Message-ID: <48E0A925.379F.0037.0@asurequality.com> OK - thanks for the hints. I can now get a static string on my map as annotation, but I am still struggling to modify this via the URL. My map file snippet is: LAYER NAME fid STATUS ON TYPE annotation TRANSFORM false FEATURE POINTS 600 20 #this is the position of the text in image coordinates (pixels) END TEXT "%farmid%" END CLASS LABEL #defines the font, colors etc. of the text FONT "arial" TYPE TRUETYPE SIZE 14 BUFFER 1 COLOR 255 0 0 OUTLINECOLOR 255 255 255 #--Halo FORCE TRUE END END END My URL contains this section: &map.layer[fid].feature[0].TEXT=AS00001 I have tried with and without quotes around the TEXT, and also with and without feature[0]. Any assistance appreciated. Robert Sanson >>> "Fawcett, David" 26/09/2008 1:35 a.m. >>> If you want to allow the title string to be passed through the URL, you can use URL Configuration changes to pass the text in. Take a look at this document (if you are using MapServer 5.x): http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT Scroll down to the section on URL configuration changes. Take a look at example 3. I am not sure if you can pass in just the text, or if you will need to pass in the feature coords and the text. Combine this with the example that Jukka pointed you to and you should be set. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Thursday, September 25, 2008 1:36 AM To: Robert Sanson; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Including a title on a map? Perhaps you could see if this copyright layer document points to right direction? http://mapserver.gis.umn.edu/docs/faq/copyright-layer -Jukka Rahkonen- L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Robert Sanson L?hetetty: 25. syyskuuta 2008 7:02 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Including a title on a map? Is it possible to print a title on a map? I would like to be able to send a variable on the URL containing a string to be used as a title to embed into the returned image in a particular location. I am using Javascript to formulate a CGI request for a PDF output, using mode=map. Many thanks, Robert Sanson ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com ( http://www.surfcontrol.com/ ) Click here ( https://www.mailcontrol.com/sr/8KBuz0TuG3PTndxI!oX7UihQAH2Wln+Dl3nxVTW8QEzLdM2kKMnUZ86pZht1Q5VlAx1tJ6swZg7wFL4l1WzKMQ== ) to report this email as spam. ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From SansonR at asurequality.com Sun Sep 28 20:03:16 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Mon, 29 Sep 2008 16:03:16 +1300 Subject: [mapserver-users] Variable substitution in FILTER request with a LIKE Message-ID: <48E0FC44.379F.0037.0@asurequality.com> I would like to have a FILTER section in my layer definition of an ArcSDE layer where I formulate a "WHERE NAME LIKE ...". The problem is, is that Mapserver defines variables using %variable%, and the "%" is also used as a wild card in SQL-Server, which is what we use for SDE. The Layer defition is: LAYER NAME road TYPE LINE UNITS METERS STATUS ON CONNECTIONTYPE SDE CONNECTIONTYPE PLUGIN CONNECTION "esri-arcsde,port:nnnn,sde_crs,user,passwd" PLUGIN "c:/ms4w/apache/specialplugins/msplugin_sde_91.dll" DATA "sde_crs.SDEADMIN.CRS_ROAD,SHAPE" FILTER "WHERE NAME LIKE '%" + %road% + "%'" # data is queryable DUMP TRUE Is there any solution to this? Many thanks, Robert Sanson ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From subha at gslab.com Sun Sep 28 21:14:43 2008 From: subha at gslab.com (Subha Ramakrishnan) Date: Mon, 29 Sep 2008 09:44:43 +0530 Subject: [mapserver-users] Highlighting a polygon In-Reply-To: <90F2C71285854504AEA716B8ED9E22D5@Leeml> References: <48DC9B10020000A80000DAB9@jeckle> <90F2C71285854504AEA716B8ED9E22D5@Leeml> Message-ID: <48E05633.3000608@gslab.com> Hi, I am using openlayers and mapserver to overlay an image of the states of india on google map. Is there a way to color/highlight a state on clicking, using mapserver? I am not using any mapscript. So are there any settings to be done in map file which will enable this? And how do i send a request from openlayers to get the image from mapserver? Expecting a reply. Thanks. Subha From SansonR at asurequality.com Sun Sep 28 21:20:40 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Mon, 29 Sep 2008 17:20:40 +1300 Subject: [mapserver-users] Highlighting a polygon In-Reply-To: <48E05633.3000608@gslab.com> References: <48DC9B10020000A80000DAB9@jeckle> <90F2C71285854504AEA716B8ED9E22D5@Leeml> <48E05633.3000608@gslab.com> Message-ID: <48E10E68.379F.0037.0@asurequality.com> Dear Subha I would set up two states layers in Mapserver. One is a generic one that responds to GetFeatureInfo requests from OpenLayers. The second one has a FILTER section. On the click handler in OpenLayers, once you click on a state and get it's name via a GetFeatureInfo request, then load the second States layer by passing the name of the state to mapserver with variable substitution. I do something similar with Roads. My second layer would be defined something like the following: LAYER NAME crs_roads GROUP "CRS" TYPE LINE STATUS ON DATA ../data/nztm/crs/roads_1207 FILTERITEM 'NAME' FILTER '%road%' In OpenLayers I would send the WMS request like: selrd = new OpenLayers.Layer.WMS( "Selected Road", "http://10.65.192.1/cgi-bin/gsswms.exe?road="+rdname ( 'http://10.65.192.1/cgi-bin/gsswms.exe?road="+rdname' )+"&", {layers: ['crs_roads'], transparent: 'true', format: "image/png"}, {singleTile: true, isBaseLayer: false, maxResolution: 500000, visibility: true} ); map.addLayer(selrd); where rdname is variable holding the road name (in your case State name) retrieved from the click event. Kind regards, Robert Sanson >>> Subha Ramakrishnan 29/09/2008 5:14 p.m. >>> Hi, I am using openlayers and mapserver to overlay an image of the states of india on google map. Is there a way to color/highlight a state on clicking, using mapserver? I am not using any mapscript. So are there any settings to be done in map file which will enable this? And how do i send a request from openlayers to get the image from mapserver? Expecting a reply. Thanks. Subha _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at gmail.com Sun Sep 28 23:25:10 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Mon, 29 Sep 2008 08:25:10 +0200 Subject: [mapserver-users] java mapscript + postgis = query use pixel map's limits In-Reply-To: <48DF5225.7020602@yahoo.it> References: <48DF5225.7020602@yahoo.it> Message-ID: <75b4b93e0809282325o684a64cbr3587d3049921f453@mail.gmail.com> On Sun, Sep 28, 2008 at 11:45 AM, Ludovico Bianchini wrote: > - Windows Vista Home Premium > - Postgres 8.1 > - jvm 1.6.0 > - jboss 4.0.3SP1, tomcat 5.5 > - struts2 > - ms4w 2.3.0 (mapscript.jar, mapscript.dll, all other dlls taken from this > pack) > - postgresql-8.2-505.jdbc4.jar > > The query created to extract postgis layer is of the type > > SELECT asbinary(force_collection(force_2d(posizionegeoref)),'NDR') from > rilievi.impianti where posizionegeoref && setSRID('BOX3D(0 0,599 > 399)'::BOX3D, find_srid('','rilievi.impianti','posizionegeoref') ); > > The BOX3D filter is created using pixel map's limits...( BOX3D(0 0,599 399) > ) why this? > > I use setExtent() before draw(), all navigation operations work fine, why is > the query build against the pixel > dimensions of the resulting image and not against the real dimensions > calculated for the rectangle? do you call setExtent before querying and convert image units into map units? > > Perhaps I am missing some basic instructions, but I don't know what... > > Thanks in advance for any suggestions. > Ludovico > Chiacchiera con i tuoi amici in tempo reale! > http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From candalt at online.no Sun Sep 28 23:29:47 2008 From: candalt at online.no (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Mon, 29 Sep 2008 08:29:47 +0200 (MEST) Subject: SV: [mapserver-users] Line not drawn in Mapserver WMS Message-ID: <13669210.828251222669787737.JavaMail.adm-moff@moffice3.nsc.no> Hi Thanx for tip...have tested to extract the linestrings to a shapefile and added them to ArcView....all the lines are drawn. Also tested in QGis and uDig...where also all the lines are drawn... Regards Sture -------------------------------------------------------------------------------- Fra: Roger Andr? [mailto:randre at gmail.com] Sendt: 26. september 2008 17:35 Til: Sture Dings?yr Emne: Re: [mapserver-users] Line not drawn in Mapserver WMS Hi Sture, Have you confirmed that the linestrings are properly pulled from PostGIS? I would use pgsql2shp to pull them out and verify that they look ok in a GIS viewer first. Roger -- On Fri, Sep 26, 2008 at 6:47 AM, Sture Dings?yr wrote: Hi Have a simple PostGIS layer (linestring) published as a WMS layer in Mapserver. Am using OpenLayers to view the layer. But one strange thing happens. The table consists of 3 linestrings, but at a high scale only one of them is drawn in the map. 2 of the linestrings are very short lines, so at high scales they are only drawn as a small dot...but when the extent and scale is high...none of them are drawn in the map. Is there any logic to this? Below are my wms url, mapfile and pgdump Regards Sture URL: http://localhost/wms.aspx?LAYERS=layer_1&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A32633&BBOX=-2838571.5191647126,5343607.668848526,3880571.5191647126,9055392.331151474&WIDTH=1488&HEIGHT=822 Mapfiledef: LAYER PROJECTION "init=epsg:32633" END METADATA "wms_title" "Kulturminnetur" "wms_srs" "EPSG:4326 EPSG:25831 EPSG:25832 EPSG:25833 EPSG:25834 EPSG:25835 EPSG:27391 EPSG:27392 EPSG:27393 EPSG:27394 EPSG:27395 EPSG:27396 EPSG:27397 EPSG:27398 EPSG:32631 EPSG:32632 EPSG:32633 EPSG:32634 EPSG:32635 EPSG:102132 EPSG:102133 EPSG:102134 EPSG:102135" "wms_abstract" "For ? hente dette tema via WMS m? ein nytte layer_294 som verdi i LAYER parameter" "gml_include_items" "all" END CONNECTION "user=root password=xxxxxxxx dbname=test host=localhost" CONNECTIONTYPE postgis DATA "geom FROM (SELECT * FROM kl_kulturtur) AS kl_kulturtur USING UNIQUE id USING SRID=32633" STATUS off TYPE line DUMP TRUE TEMPLATE "TRUE" NAME "layer_1" CLASS COLOR 248 130 15 NAME "Kulturminnetur" SIZE 4 SYMBOL "circle" END END PostgreSQL/PostGIS dump: -- -- PostgreSQL database dump -- SET client_encoding = 'SQL_ASCII'; SET check_function_bodies = false; SET client_min_messages = warning; SET search_path = public, pg_catalog; SET default_tablespace = ''; SET default_with_oids = false; -- -- Name: kl_kulturtur; Type: TABLE; Schema: public; Owner: root; Tablespace: -- CREATE TABLE kl_kulturtur ( id integer NOT NULL, namn character varying(100), omtale character varying(500), tema character varying(500), fylke integer, kommune integer, vanskegrad character varying(50), framkomstmiddel character varying(100), arrangor character varying(150), lengde integer, geom geometry, geom_start geometry, geom_stop geometry, kontakt_namn character varying(100), kontakt_adresse character varying(100), kontakt_postnr integer, kontakt_poststad character varying(40), kontakt_tlf character varying(50), kontakt_epost character varying(50), isonline integer, registrert date, lastupdate date, webdbreguser character varying(10) ); ALTER TABLE public.kl_kulturtur OWNER TO root; -- -- Data for Name: kl_kulturtur; Type: TABLE DATA; Schema: public; Owner: root -- INSERT INTO kl_kulturtur (id, namn, omtale, tema, fylke, kommune, vanskegrad, framkomstmiddel, arrangor, lengde, geom, geom_start, geom_stop, kontakt_namn, kontakt_adresse, kontakt_postnr, kontakt_poststad, kontakt_tlf, kontakt_epost, isonline, registrert, lastupdate, webdbreguser) VALUES (4, 'Gamlevegen p? Gr?neng', 'P? Gr?neng, kring 6 km fr? Balestrand austover st?r det att ein 3 km lang stubb av den gamle bygdevegen som gjekk mellom Balestrand og Tjugum. Du kan parkera n?r kyrkja. Vegen g?r gjennom gardstun og langs vegen st?r det stabbesteinar. Her k?yrde det store bussar sommar og vinter. Langs vegen er det fine murar og du vil ?g sj? restar av ein enno eldre bygdeveg. ', '', 1400, 1418, '', 'G?', 'Balestrand turlag', 1, '0102000020797F000010000000360C94332EA5E640ECB4779B7C005A413481C76C5C9CE640D88D21C293005A4141C57434608CE64073E603EFB5005A41FED18E18F17CE6403D0C3CE1CA005A41EA61AF35A669E64037FFC998D2005A41B7C80F6FDE5BE640144C5864D0005A41D466038C894DE64037FFC998D2005A41F104F7A8343FE640C2CB906ADB005A41EF792AE26236E640073274D3DF005A415C4FB1E28027E6404D98573CE4005A414A6A9EC6071DE6401DCB0177F1005A417862D8385A10E6403A710163FB005A4105ECEBE3C604E640E8F0396906015A4103611F1DF5FBE5400497395510015A41520DE63996F2E540B216725B1B015A41004B868F51EAE540D4C9E38F1D015A41', '0101000020797F0000360C94332EA5E640ECB4779B7C005A41', '0101000020797F0000004B868F51EAE540D4C9E38F1D015A41', 'Balestrand turlag', 'Balestrand turlag', 6899, 'Balestrand', '9999999', 'bt at bt.no', -1, NULL, NULL, 'SDI'); INSERT INTO kl_kulturtur (id, namn, omtale, tema, fylke, kommune, vanskegrad, framkomstmiddel, arrangor, lengde, geom, geom_start, geom_stop, kontakt_namn, kontakt_adresse, kontakt_postnr, kontakt_poststad, kontakt_tlf, kontakt_epost, isonline, registrert, lastupdate, webdbreguser) VALUES (5, 'Gamlevegen langs fjorden i Balestrand sentrum', 'Turen startar i Balestrand sentrum og g?r s?rvestover langs Sognefjorden. Dette er den gamle bygdevegen. Her m?ter du eit spanande bygningsmilj? med hus i sveitserstil og drakestil. M?larar som Hans Dahl, Hans Andreas Dahl og Adelsteen Normann budde i dette omr?det. ', 'arkitektur, sveitserstil, m?larar, kunstmilj?, strandmilj?', 1400, 1418, '', 'bil, g?', 'Balestrand turistkontor', 1, '0102000020797F00000600000025AFDBA6BC7AE6404C20D3A0D0FF594136C202FD9563E640E7D72D7E38FF5941F4B883538342E640BBC1A3A2C3FE5941B3C59D371433E6403347E33808FE59415334C4FEF931E64003961EDFC3FD59419AB276E13A4AE6400C0209D801FD5941', '0101000020797F000025AFDBA6BC7AE6404C20D3A0D0FF5941', '0101000020797F00009AB276E13A4AE6400C0209D801FD5941', 'Balestrand Reiselivslag', 'Holmen', 6899, 'Balestrand', '9666666', 'br at br.no', -1, NULL, NULL, 'GUR'); INSERT INTO kl_kulturtur (id, namn, omtale, tema, fylke, kommune, vanskegrad, framkomstmiddel, arrangor, lengde, geom, geom_start, geom_stop, kontakt_namn, kontakt_adresse, kontakt_postnr, kontakt_poststad, kontakt_tlf, kontakt_epost, isonline, registrert, lastupdate, webdbreguser) VALUES (100, 'Test', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0102000020797F000002000000000000000017E14000000000A8CB584100000000006A18410000000030C15D41', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -- -- Name: pk_kulturtur; Type: CONSTRAINT; Schema: public; Owner: root; Tablespace: -- ALTER TABLE ONLY kl_kulturtur ADD CONSTRAINT pk_kulturtur PRIMARY KEY (id); -- -- PostgreSQL database dump complete -- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From David.Fawcett at state.mn.us Mon Sep 29 06:48:43 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 29 Sep 2008 08:48:43 -0500 Subject: [mapserver-users] Including a variable title on a map? In-Reply-To: <48E0A925.379F.0037.0@asurequality.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FC0D4@s-sp22.pca.state.mn.us> Robert, I tried to play with an example to get the substitution to work by just setting the feature text or layer text, but I got parse errors. Those params may not be available for substitution. My quick solution would be to create both the feature and it's text on the fly. If you were setting the location for the title in the map file, I am guessing that you can hardcode it in the URL that requests the map. Here is an example that does work: The URL: # to create a new point feature http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/workshop08/testPoint.map&mode=map&map.layer[howdy]=FEATURE+POINTS+0+0+END+TEXT+%27Goodbye%20World%27+END Here is the map file text: MAP NAME 'hello_world' SIZE 500 500 IMAGECOLOR 143 188 143 EXTENT -200 -200 200 200 LAYER NAME "howdy" STATUS DEFAULT TYPE ANNOTATION FEATURE POINTS 0 0 END #TEXT 'Hello World' END CLASS LABEL TYPE BITMAP COLOR 0 0 0 END END END END # end of map -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert Sanson Sent: Sunday, September 28, 2008 4:09 PM To: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Including a variable title on a map? OK - thanks for the hints. I can now get a static string on my map as annotation, but I am still struggling to modify this via the URL. My map file snippet is: LAYER NAME fid STATUS ON TYPE annotation TRANSFORM false FEATURE POINTS 600 20 #this is the position of the text in image coordinates (pixels) END TEXT "?rmid%" END CLASS LABEL #defines the font, colors etc. of the text FONT "arial" TYPE TRUETYPE SIZE 14 BUFFER 1 COLOR 255 0 0 OUTLINECOLOR 255 255 255 #--Halo FORCE TRUE END END END My URL contains this section: &map.layer[fid].feature[0].TEXT=AS00001 I have tried with and without quotes around the TEXT, and also with and without feature[0]. Any assistance appreciated. Robert Sanson >>> "Fawcett, David" 26/09/2008 1:35 a.m. >>> If you want to allow the title string to be passed through the URL, you can use URL Configuration changes to pass the text in. Take a look at this document (if you are using MapServer 5.x): http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT Scroll down to the section on URL configuration changes. Take a look at example 3. I am not sure if you can pass in just the text, or if you will need to pass in the feature coords and the text. Combine this with the example that Jukka pointed you to and you should be set. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Thursday, September 25, 2008 1:36 AM To: Robert Sanson; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Including a title on a map? Perhaps you could see if this copyright layer document points to right direction? http://mapserver.gis.umn.edu/docs/faq/copyright-layer -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Robert Sanson L?hetetty: 25. syyskuuta 2008 7:02 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Including a title on a map? Is it possible to print a title on a map? I would like to be able to send a variable on the URL containing a string to be used as a title to embed into the returned image in a particular location. I am using Javascript to formulate a CGI request for a PDF output, using mode=map. Many thanks, Robert Sanson ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com Click here to report this email as spam. ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From subha at gslab.com Mon Sep 29 06:58:55 2008 From: subha at gslab.com (Subha Ramakrishnan) Date: Mon, 29 Sep 2008 19:28:55 +0530 Subject: [mapserver-users] Image with different colors for different polygons In-Reply-To: <13669210.828251222669787737.JavaMail.adm-moff@moffice3.nsc.no> References: <13669210.828251222669787737.JavaMail.adm-moff@moffice3.nsc.no> Message-ID: <48E0DF1F.4060606@gslab.com> Hi, I want to know if it is possible to color a polygon with different colors? For eg. If i've states of a country, i want to show each state with a different color. Please let me know if it possible to do this. And if so what are the settings to be done for the same? Thanks & regards, Subha. From thomas.bonfort at gmail.com Mon Sep 29 09:46:00 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 29 Sep 2008 18:46:00 +0200 Subject: [mapserver-users] Including a variable title on a map? In-Reply-To: <48E0A925.379F.0037.0@asurequality.com> References: <6246727221874A4FB8D3F9BBC37D9BD5021FC0C7@s-sp22.pca.state.mn.us> <48E0A925.379F.0037.0@asurequality.com> Message-ID: try with &map.layer[fid].feature[0]=TEXT+AS00001 -- thomas On Sun, Sep 28, 2008 at 23:08, Robert Sanson wrote: > OK - thanks for the hints. I can now get a static string on my map as > annotation, but I am still struggling to modify this via the URL. My map > file snippet is: > > LAYER > NAME fid > STATUS ON > TYPE annotation > TRANSFORM false > FEATURE > POINTS > 600 20 #this is the position of the text in image coordinates (pixels) > END > TEXT "?rmid%" > END > CLASS > LABEL #defines the font, colors etc. of the text > FONT "arial" > TYPE TRUETYPE > SIZE 14 > BUFFER 1 > COLOR 255 0 0 > OUTLINECOLOR 255 255 255 #--Halo > FORCE TRUE > END > END > END > > My URL contains this section: > > &map.layer[fid].feature[0].TEXT=AS00001 > > I have tried with and without quotes around the TEXT, and also with and > without feature[0]. > > Any assistance appreciated. > > Robert Sanson > >>>> "Fawcett, David" 26/09/2008 1:35 a.m. >>> > If you want to allow the title string to be passed through the URL, you can > use URL Configuration changes to pass the text in. > Take a look at this document (if you are using MapServer 5.x): > http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT > Scroll down to the section on URL configuration changes. Take a look at > example 3. I am not sure if you can pass in just the text, or if you will > need to pass in the feature coords and the text. > Combine this with the example that Jukka pointed you to and you should be > set. > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka > Sent: Thursday, September 25, 2008 1:36 AM > To: Robert Sanson; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Including a title on a map? > > Perhaps you could see if this copyright layer document points to right > direction? > http://mapserver.gis.umn.edu/docs/faq/copyright-layer > > -Jukka Rahkonen- > > ________________________________ > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Robert Sanson > L?hetetty: 25. syyskuuta 2008 7:02 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Including a title on a map? > > Is it possible to print a title on a map? I would like to be able to send a > variable on the URL containing a string to be used as a title to embed into > the returned image in a particular location. > > I am using Javascript to formulate a CGI request for a PDF output, using > mode=map. > > Many thanks, > > Robert Sanson > > > ------------------------------------------------------------------ > The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. > ------------------------------------------------------------------ > > This message has been scanned for malware by SurfControl plc. > www.surfcontrol.com > > Click here to report this email as spam. > > > ------------------------------------------------------------------ > The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. > ------------------------------------------------------------------ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Steve.Lime at dnr.state.mn.us Mon Sep 29 10:02:15 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 29 Sep 2008 12:02:15 -0500 Subject: [mapserver-users] Variable substitution in FILTER request with aLIKE In-Reply-To: <48E0FC44.379F.0037.0@asurequality.com> References: <48E0FC44.379F.0037.0@asurequality.com> Message-ID: <48E0C3C6.5157.008F.0@dnr.state.mn.us> FILTER "WHERE NAME LIKE '%%road%%'" won't work? MapServer should just replace the inner %road% and leave the outer %'s alone. Steve >>> On 9/28/2008 at 10:03 PM, in message <48E0FC44.379F.0037.0 at asurequality.com>, "Robert Sanson" wrote: > I would like to have a FILTER section in my layer definition of an ArcSDE > layer where I formulate a "WHERE NAME LIKE ...". The problem is, is that > Mapserver defines variables using %variable%, and the "%" is also used as a > wild card in SQL-Server, which is what we use for SDE. > > > > The Layer defition is: > > > > LAYER > > NAME road > > TYPE LINE > > UNITS METERS > > STATUS ON > > CONNECTIONTYPE SDE > > CONNECTIONTYPE PLUGIN > > CONNECTION "esri-arcsde,port:nnnn,sde_crs,user,passwd" > > PLUGIN "c:/ms4w/apache/specialplugins/msplugin_sde_91.dll" > > DATA "sde_crs.SDEADMIN.CRS_ROAD,SHAPE" > > FILTER "WHERE NAME LIKE '%" + %road% + "%'" > > > > # data is queryable > > DUMP TRUE > > > > Is there any solution to this? > > > > Many thanks, > > > > Robert Sanson > > ------------------------------------------------------------------ > > The contents of this email are confidential to AsureQuality. If you have > received this communication in error please notify the sender immediately and > delete the message and any attachments. The opinions expressed in this email > are not necessarily those of AsureQuality. This message has been scanned for > known viruses before delivery. AsureQuality supports the Unsolicited > Electronic Messages Act 2007. If you do not wish to receive similar > communications in future, please notify the sender of this message. > > ------------------------------------------------------------------ > > > > This message has been scanned for malware by SurfControl plc. > www.surfcontrol.com From David.Fawcett at state.mn.us Mon Sep 29 10:51:34 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 29 Sep 2008 12:51:34 -0500 Subject: [mapserver-users] Including a variable title on a map? In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FC0DB@s-sp22.pca.state.mn.us> That approach still gives me an error: http://localhost/cgi-bin/mapserv.exe?mode=map&map=\ms4w\apps\workshop08\ testPoint.map&map.layer[howdy].feature[0]=text%20Goodbye loadLayer(): Unknown identifier. Parsing error near (text):(line 1) This is with a recent ms4w distro. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas bonfort Sent: Monday, September 29, 2008 11:46 AM To: Robert Sanson Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Including a variable title on a map? try with &map.layer[fid].feature[0]=TEXT+AS00001 -- thomas From SansonR at asurequality.com Mon Sep 29 13:09:17 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Tue, 30 Sep 2008 09:09:17 +1300 Subject: [mapserver-users] Variable substitution in FILTER request with a LIKE In-Reply-To: <48E0C3C6.5157.008F.0@dnr.state.mn.us> References: <48E0FC44.379F.0037.0@asurequality.com> <48E0C3C6.5157.008F.0@dnr.state.mn.us> Message-ID: <48E1ECBB.379F.0037.0@asurequality.com> Thanks Steve - Works perfectly! Robert >>> "Steve Lime" 30/09/2008 6:02 a.m. >>> FILTER "WHERE NAME LIKE '%%road%%'" won't work? MapServer should just replace the inner %road% and leave the outer %'s alone. Steve >>> On 9/28/2008 at 10:03 PM, in message <48E0FC44.379F.0037.0 at asurequality.com>, "Robert Sanson" wrote: > I would like to have a FILTER section in my layer definition of an ArcSDE > layer where I formulate a "WHERE NAME LIKE ...". The problem is, is that > Mapserver defines variables using %variable%, and the "%" is also used as a > wild card in SQL-Server, which is what we use for SDE. > > > > The Layer defition is: > > > > LAYER > > NAME road > > TYPE LINE > > UNITS METERS > > STATUS ON > > CONNECTIONTYPE SDE > > CONNECTIONTYPE PLUGIN > > CONNECTION "esri-arcsde,port:nnnn,sde_crs,user,passwd" > > PLUGIN "c:/ms4w/apache/specialplugins/msplugin_sde_91.dll" > > DATA "sde_crs.SDEADMIN.CRS_ROAD,SHAPE" > > FILTER "WHERE NAME LIKE '%" + %road% + "%'" > > > > # data is queryable > > DUMP TRUE > > > > Is there any solution to this? > > > > Many thanks, > > > > Robert Sanson > > ------------------------------------------------------------------ > > The contents of this email are confidential to AsureQuality. If you have > received this communication in error please notify the sender immediately and > delete the message and any attachments. The opinions expressed in this email > are not necessarily those of AsureQuality. This message has been scanned for > known viruses before delivery. AsureQuality supports the Unsolicited > Electronic Messages Act 2007. If you do not wish to receive similar > communications in future, please notify the sender of this message. > > ------------------------------------------------------------------ > > > > This message has been scanned for malware by SurfControl plc. > www.surfcontrol.com ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From metlud at yahoo.it Mon Sep 29 13:19:46 2008 From: metlud at yahoo.it (Ludovico Bianchini) Date: Mon, 29 Sep 2008 22:19:46 +0200 Subject: [mapserver-users] java mapscript + postgis = query use pixel map's limits In-Reply-To: <75b4b93e0809282325o684a64cbr3587d3049921f453@mail.gmail.com> References: <48DF5225.7020602@yahoo.it> <75b4b93e0809282325o684a64cbr3587d3049921f453@mail.gmail.com> Message-ID: <48E13862.7000304@yahoo.it> This is the code LAYER NAME "segnaletica" STATUS on TYPE POINT TRANSFORM false POSTLABELCACHE true CONNECTION "user=user password=password dbname=dbname host=localhost port=5432" CONNECTIONTYPE postgis DATA "posizionegeoref from rilievi.impianti" CLASS STYLE COLOR 255 99 0 SYMBOL "circle" SIZE 100 END END PROJECTION "init=epsg:4326" END END private void zoomIn(mapObj mapObj_o) { double[] extent = explodeExtent();//retrieve the previous map extent from the form data mapObj_o.setExtent(extent[0], extent[1], extent[2], extent[3]);//assign to the map the previous extent pointObj pointObj_o_pix = new pointObj(Integer.parseInt(getMap_x()),Integer.parseInt(getMap_y()), 0);//create a pixel-based point for the user //click rectObj rectObj_o = new rectObj(extent[0], extent[1], extent[2], extent[3], mapscript.MS_FALSE);//create a rectangle based on the previous extent mapObj_o.zoomPoint(2, pointObj_o_pix, WIDTH, HEIGHT, rectObj_o, null);//zoom in the map; WIDTH=600 pixel, HEIGHT=400 pixel draw(mapObj_o); } private void draw(mapObj mapObj_o){ imageObj mapImageObj; String imageName = getImageName(); String imagePath = IMAGE_URL + imageName; mapImageObj = mapObj_o.draw(); mapImageObj.save(imagePath, mapObj_o); setMappa("/map/" + imageName); setCurrent_extent(String.valueOf(mapObj_o.getExtent().getMinx()) + " " + String.valueOf(mapObj_o.getExtent().getMiny()) + " " + String.valueOf(mapObj_o.getExtent().getMaxx()) + " " + String.valueOf(mapObj_o.getExtent().getMaxy()));//set the actual extent in a hidden input element of the form } I've tried also private void draw(mapObj mapObj_o){ toggleLayer(mapObj_o); imageObj mapImageObj; String imageName = getImageName(); String imagePath = IMAGE_URL + imageName; mapObj_o.setSize(WIDTH, HEIGHT); mapImageObj = mapObj_o.draw(); mapImageObj.save(imagePath, mapObj_o); setMappa("/map/" + imageName); setCurrent_extent(String.valueOf(mapObj_o.getExtent().getMinx()) + " " + String.valueOf(mapObj_o.getExtent().getMiny()) + " " + String.valueOf(mapObj_o.getExtent().getMaxx()) + " " + String.valueOf(mapObj_o.getExtent().getMaxy())); } Umberto Nicoletti ha scritto: > On Sun, Sep 28, 2008 at 11:45 AM, Ludovico Bianchini wrote: > >> - Windows Vista Home Premium >> - Postgres 8.1 >> - jvm 1.6.0 >> - jboss 4.0.3SP1, tomcat 5.5 >> - struts2 >> - ms4w 2.3.0 (mapscript.jar, mapscript.dll, all other dlls taken from this >> pack) >> - postgresql-8.2-505.jdbc4.jar >> >> The query created to extract postgis layer is of the type >> >> SELECT asbinary(force_collection(force_2d(posizionegeoref)),'NDR') from >> rilievi.impianti where posizionegeoref && setSRID('BOX3D(0 0,599 >> 399)'::BOX3D, find_srid('','rilievi.impianti','posizionegeoref') ); >> >> The BOX3D filter is created using pixel map's limits...( BOX3D(0 0,599 399) >> ) why this? >> >> I use setExtent() before draw(), all navigation operations work fine, why is >> the query build against the pixel >> dimensions of the resulting image and not against the real dimensions >> calculated for the rectangle? >> > > do you call setExtent before querying and convert image units into map units? > > >> Perhaps I am missing some basic instructions, but I don't know what... >> >> Thanks in advance for any suggestions. >> Ludovico >> Chiacchiera con i tuoi amici in tempo reale! >> http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com From SansonR at asurequality.com Mon Sep 29 13:25:20 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Tue, 30 Sep 2008 09:25:20 +1300 Subject: [mapserver-users] Including a variable title on a map? In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FC0DB@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5021FC0DB@s-sp22.pca.state.mn.us> Message-ID: <48E1F07F.379F.0037.0@asurequality.com> Including the entire FEATURE+POINTS+TEXT code as below works, thanks David and Thomas. I don't seem to be able to modify just the TEXT as David discovered. I am using MS4W 2.2.9 http://10.65.192.1/cgi-bin/gsstmpdf.exe?farmid=AS00001&mode=map&layers=nz50ktm+linz_orthos+farm+crs_parcels+crs_road+main_gates+copyright+fid&MINX=1471766&MINY=5119253&MAXX=1475952&MAXY=5123406&mapsize=1200+1200&map.layer[fid]=FEATURE+POINTS+600+20+END+TEXT+AS00001+END&map.outputformat=pdf Robert >>> "Fawcett, David" 30/09/2008 6:51 a.m. >>> That approach still gives me an error: http://localhost/cgi-bin/mapserv.exe?mode=map&map=\ms4w\apps\workshop08\ testPoint.map&map.layer[howdy].feature[0]=text%20Goodbye loadLayer(): Unknown identifier. Parsing error near (text):(line 1) This is with a recent ms4w distro. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas bonfort Sent: Monday, September 29, 2008 11:46 AM To: Robert Sanson Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Including a variable title on a map? try with &map.layer[fid].feature[0]=TEXT+AS00001 -- thomas ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From metlud at yahoo.it Mon Sep 29 13:29:17 2008 From: metlud at yahoo.it (Ludovico Bianchini) Date: Mon, 29 Sep 2008 22:29:17 +0200 Subject: [mapserver-users] java mapscript + postgis = query use pixel map's limits (SOLVED) In-Reply-To: <48E13862.7000304@yahoo.it> References: <48DF5225.7020602@yahoo.it> <75b4b93e0809282325o684a64cbr3587d3049921f453@mail.gmail.com> <48E13862.7000304@yahoo.it> Message-ID: <48E13A9D.6010700@yahoo.it> The error was the directive TRANSFORM false in LAYER "segnaletica". (http://mapserver.gis.umn.edu/docs/reference/mapscript/index_html#layerobj) I changed it with TRANSFORM true and now A-L-L work fine!! Ludovico Ludovico Bianchini ha scritto: > This is the code > > LAYER > NAME "segnaletica" > STATUS on > TYPE POINT > TRANSFORM false > POSTLABELCACHE true > CONNECTION "user=user password=password dbname=dbname > host=localhost port=5432" > CONNECTIONTYPE postgis > DATA "posizionegeoref from rilievi.impianti" > CLASS > STYLE > COLOR 255 99 0 > SYMBOL "circle" > SIZE 100 > END > END > PROJECTION > "init=epsg:4326" > END > END > > private void zoomIn(mapObj mapObj_o) { > double[] extent = explodeExtent();//retrieve the previous map > extent from the form data > mapObj_o.setExtent(extent[0], extent[1], extent[2], > extent[3]);//assign to the map the previous extent > pointObj pointObj_o_pix = new > pointObj(Integer.parseInt(getMap_x()),Integer.parseInt(getMap_y()), > 0);//create a pixel-based point for the user //click > rectObj rectObj_o = new rectObj(extent[0], extent[1], > extent[2], extent[3], > mapscript.MS_FALSE);//create a rectangle based on the > previous extent > mapObj_o.zoomPoint(2, pointObj_o_pix, WIDTH, HEIGHT, rectObj_o, > null);//zoom in the map; WIDTH=600 pixel, HEIGHT=400 pixel > draw(mapObj_o); > } > > private void draw(mapObj mapObj_o){ > imageObj mapImageObj; > String imageName = getImageName(); > String imagePath = IMAGE_URL + imageName; > mapImageObj = mapObj_o.draw(); > mapImageObj.save(imagePath, mapObj_o); > setMappa("/map/" + imageName); > > setCurrent_extent(String.valueOf(mapObj_o.getExtent().getMinx()) + " " + > String.valueOf(mapObj_o.getExtent().getMiny()) + " " + > String.valueOf(mapObj_o.getExtent().getMaxx()) + " " + > > String.valueOf(mapObj_o.getExtent().getMaxy()));//set the actual > extent in a hidden input element of the form > } > > I've tried also > > private void draw(mapObj mapObj_o){ > toggleLayer(mapObj_o); > imageObj mapImageObj; > String imageName = getImageName(); > String imagePath = IMAGE_URL + imageName; > mapObj_o.setSize(WIDTH, HEIGHT); > mapImageObj = mapObj_o.draw(); > mapImageObj.save(imagePath, mapObj_o); > setMappa("/map/" + imageName); > > setCurrent_extent(String.valueOf(mapObj_o.getExtent().getMinx()) + " " + > String.valueOf(mapObj_o.getExtent().getMiny()) + " " + > String.valueOf(mapObj_o.getExtent().getMaxx()) + " " + > String.valueOf(mapObj_o.getExtent().getMaxy())); > } > > Umberto Nicoletti ha scritto: >> On Sun, Sep 28, 2008 at 11:45 AM, Ludovico Bianchini >> wrote: >> >>> - Windows Vista Home Premium >>> - Postgres 8.1 >>> - jvm 1.6.0 >>> - jboss 4.0.3SP1, tomcat 5.5 >>> - struts2 >>> - ms4w 2.3.0 (mapscript.jar, mapscript.dll, all other dlls taken >>> from this >>> pack) >>> - postgresql-8.2-505.jdbc4.jar >>> >>> The query created to extract postgis layer is of the type >>> >>> SELECT asbinary(force_collection(force_2d(posizionegeoref)),'NDR') from >>> rilievi.impianti where posizionegeoref && setSRID('BOX3D(0 0,599 >>> 399)'::BOX3D, find_srid('','rilievi.impianti','posizionegeoref') ); >>> >>> The BOX3D filter is created using pixel map's limits...( BOX3D(0 >>> 0,599 399) >>> ) why this? >>> >>> I use setExtent() before draw(), all navigation operations work >>> fine, why is >>> the query build against the pixel >>> dimensions of the resulting image and not against the real dimensions >>> calculated for the rectangle? >>> >> >> do you call setExtent before querying and convert image units into >> map units? >> >> >>> Perhaps I am missing some basic instructions, but I don't know what... >>> >>> Thanks in advance for any suggestions. >>> Ludovico >>> Chiacchiera con i tuoi amici in tempo reale! >>> http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> >> >> > > Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com From SansonR at asurequality.com Mon Sep 29 13:34:28 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Tue, 30 Sep 2008 09:34:28 +1300 Subject: [mapserver-users] How to get my Browser to open a Mapserver map with outputformat=pdf? In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FC0DB@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5021FC0DB@s-sp22.pca.state.mn.us> Message-ID: <48E1F2A3.379F.0037.0@asurequality.com> I have a Map file with and Outputformat = PDF defined: OUTPUTFORMAT NAME pdf MIMETYPE "application/x-pdf" IMAGEMODE RGBA DRIVER pdf EXTENSION "pdf" FORMATOPTION "TRANSPARENT=ON" TRANSPARENT ON #FORMATOPTION "OUTPUT_TYPE=RASTER" ##not mandatory END I call the map by sending a URL from OpenLayers: http://10.65.192.1/cgi-bin/mapserv.exe?map=/ms4w/apps/service/gsstmpdf.map&mode=map&layers=nz50ktm+main_gates&MINX=1471766&MINY=5119253&MAXX=1475952&MAXY=5123406&mapsize=1200+1200&map.outputformat=pdf Just wondering how I can get the Browser to automatically open the returned PDF in a new window, as the file returned from Mapserver is called mapserv.exe? At the moment I have to download it to disk, then change its name to a PDF extension, then open it with Adobe Acrobat Reader. Many thanks, Robert ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhaops at hotmail.com Mon Sep 29 14:01:34 2008 From: zhaops at hotmail.com (zhao peisheng) Date: Mon, 29 Sep 2008 21:01:34 +0000 Subject: [mapserver-users] rendering false color rater data in mapserver Message-ID: I am doing as following. PROCESSING "SCALE=-1,599" PROCESSING "SCALE_BUCKETS=60000" CLASS EXPRESSION ([pixel] <=-0.5) STYLE COLOR 0 0 0 END END CLASS EXPRESSION ([pixel] >-0.5 AND [pixel] <= 0.005) STYLE COLOR 255 255 255 END END CLASS EXPRESSION ([pixel] >0.005 AND [pixel] <= 50) STYLE COLOR 100 100 254 END END I still find the rendering for value "0", value "0.176844" and value "0.0352402" in same color. Can you help me to figure it out? Thanks a lot. Peisheng _________________________________________________________________ See how Windows Mobile brings your life together?at home, work, or on the go. http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Mon Sep 29 20:58:47 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Tue, 30 Sep 2008 09:28:47 +0530 Subject: [mapserver-users] Image with different colors for different polygons In-Reply-To: <48E0DF1F.4060606@gslab.com> References: <13669210.828251222669787737.JavaMail.adm-moff@moffice3.nsc.no> <48E0DF1F.4060606@gslab.com> Message-ID: <002101c922b0$d8784940$8968dbc0$@com> Hi, Try this... # World Sub Regions Layer starts here LAYER NAME "Sub Regions" CONNECTIONTYPE POSTGIS CONNECTION "host=192.168.1.158 dbname=GIS password=administrator user=postgres port=5432" DATA "the_geom from rgp_gis_subregions" TYPE POLYGON STATUS ON LabelItem "ungs_csr" ClassItem "ungs_csr" CLASS NAME 'Antarctica' EXPRESSION 'Antarctica' COLOR 182 252 183 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Australia and New Zealand' EXPRESSION 'Australia and New Zealand' COLOR 252 215 247 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Central Africa' EXPRESSION 'Central Africa' COLOR 252 249 207 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Central America' EXPRESSION 'Central America' COLOR 252 182 202 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Central Asia' EXPRESSION 'Central Asia' COLOR 179 252 228 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'East Asia' EXPRESSION 'East Asia' COLOR 252 192 239 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Eastern Africa' EXPRESSION 'Eastern Africa' COLOR 252 190 182 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Eastern Europe' EXPRESSION 'Eastern Europe' COLOR 227 194 252 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Latin America and Caribbean' EXPRESSION 'Latin America and Caribbean' COLOR 217 212 252 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Melanesia' EXPRESSION 'Melanesia' COLOR 222 252 215 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Northern Africa' EXPRESSION 'Northern Africa' COLOR 252 213 212 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Northern America' EXPRESSION 'Northern America' COLOR 252 234 215 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Northern Asia and Eastern Europe' EXPRESSION 'Northern Asia and Eastern Europe' COLOR 184 179 252 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Northern Europe' EXPRESSION 'Northern Europe' COLOR 184 197 252 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Polynesia' EXPRESSION 'Polynesia' COLOR 222 252 179 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'South America' EXPRESSION 'South America' COLOR 252 179 246 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'South Asia' EXPRESSION 'South Asia' COLOR 252 221 182 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Southeast Asia' EXPRESSION 'Southeast Asia' COLOR 187 249 252 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Southern Africa' EXPRESSION 'Southern Africa' COLOR 215 252 244 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Western Africa' EXPRESSION 'Western Africa' COLOR 252 245 182 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Western Europe' EXPRESSION 'Western Europe' COLOR 207 237 252 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS END # //end of the Sub region layer layer Thanks and regards # World Sub Regions Layer starts here LAYER NAME "Sub Regions" #CONNECTIONTYPE POSTGIS #CONNECTION "host=192.168.1.158 dbname=GIS password=administrator user=postgres port=5432" #DATA "the_geom from rgp_gis_subregions" CONNECTIONTYPE PLUGIN PLUGIN "D:\home\Vtammineni\Data\sandbox\gis\RoulacGis\plugins\msplugin_mssql2008.dl l" #plug in #CONNECTION "server=192.168.1.79;uid=sa;pwd=asp123;database=testspatial;Integrated Security=false" # data base server connection CONNECTION "server=RGPRTW74\SQLEXPRESS;uid=sa;pwd=asp123;database=gis;Integrated Security=false" # data base server connection DATA "geom from rgp_gis_subregions" # table TYPE POLYGON STATUS ON #MaxScale 77054330 #MinScale 66054330 #LABELMAXSCALE 55054330 #LABELMINSCALE 5433000 TRANSPARENCY 50 LabelItem "ungs_csr" ClassItem "ungs_csr" CLASS NAME 'Antarctica' EXPRESSION 'Antarctica' COLOR 182 252 183 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Australia and New Zealand' EXPRESSION 'Australia and New Zealand' COLOR 252 215 247 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Central Africa' EXPRESSION 'Central Africa' COLOR 252 249 207 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Central America' EXPRESSION 'Central America' COLOR 252 182 202 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Central Asia' EXPRESSION 'Central Asia' COLOR 179 252 228 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'East Asia' EXPRESSION 'East Asia' COLOR 252 192 239 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Eastern Africa' EXPRESSION 'Eastern Africa' COLOR 252 190 182 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Eastern Europe' EXPRESSION 'Eastern Europe' COLOR 227 194 252 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Latin America and Caribbean' EXPRESSION 'Latin America and Caribbean' COLOR 217 212 252 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Melanesia' EXPRESSION 'Melanesia' COLOR 222 252 215 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Northern Africa' EXPRESSION 'Northern Africa' COLOR 252 213 212 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Northern America' EXPRESSION 'Northern America' COLOR 252 234 215 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Northern Asia and Eastern Europe' EXPRESSION 'Northern Asia and Eastern Europe' COLOR 184 179 252 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Northern Europe' EXPRESSION 'Northern Europe' COLOR 184 197 252 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Polynesia' EXPRESSION 'Polynesia' COLOR 222 252 179 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'South America' EXPRESSION 'South America' COLOR 252 179 246 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'South Asia' EXPRESSION 'South Asia' COLOR 252 221 182 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Southeast Asia' EXPRESSION 'Southeast Asia' COLOR 187 249 252 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Southern Africa' EXPRESSION 'Southern Africa' COLOR 215 252 244 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Western Africa' EXPRESSION 'Western Africa' COLOR 252 245 182 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS CLASS NAME 'Western Europe' EXPRESSION 'Western Europe' COLOR 207 237 252 OUTLINECOLOR 110 110 110 LABEL #label start POSITION auto SIZE SMALL COLOR 255 25 25 END # label end END # CLASS END # //end of the Sub region layer layer Thanks And Regards, Venkat. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Subha Ramakrishnan Sent: Monday, September 29, 2008 7:29 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Image with different colors for different polygons Hi, I want to know if it is possible to color a polygon with different colors? For eg. If i've states of a country, i want to show each state with a different color. Please let me know if it possible to do this. And if so what are the settings to be done for the same? Thanks & regards, Subha. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Toutant at inspq.qc.ca Tue Sep 30 08:36:53 2008 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 30 Sep 2008 11:36:53 -0400 Subject: [mapserver-users] WMS don't load Message-ID: Hello, I have 2 mapServers on different computer (windows). I defined a mapFile containing several layers and one WMS layer. The same copy of this mapFile is used on both server. On one server all layers are shown on the static map. On the other server all layers show up except the WMS layer. On both machine mapserv -v shows that WMS client is supported. Any idea on what else I should verify? thanks, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan.mincik at gmail.com Tue Sep 30 09:21:47 2008 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Tue, 30 Sep 2008 18:21:47 +0200 Subject: [mapserver-users] mapmssql2008.c Message-ID: <200809301821.47304.ivan.mincik@gmail.com> I would like to ask, what is the main reason why new mapmssql2008.c is not possible to compile and use on Linux ??? Is it any chance to modify the code to use this PLUGIN in Linux ? Ivan From mlinden at zeelandnet.nl Tue Sep 30 09:26:12 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Tue, 30 Sep 2008 18:26:12 +0200 Subject: [mapserver-users] High resolution printing Message-ID: <48E25324.7090103@zeelandnet.nl> Hello list! I have been searching the web for tips and tricks, but basically what I need is a method or procedure or (commercial) tool that can enhance my mapserver installation to enable high resolution printing. What I am looking for is the best practice to: - Add a button to our website - Let the button start a script or program that processes the active layers in the map view based upon the current extent - Generate a mixture of high-res images and optionally svg or alike for linework - combine the works in a pdf - present the pdf for download to the user I would also like to know if there are any commercial, mapserver based, solutions for this. I am also willing to hire an expert to achieve this. Any ideas? Kind regards, Milo van der Linden From Steve.Lime at dnr.state.mn.us Tue Sep 30 09:47:50 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 30 Sep 2008 11:47:50 -0500 Subject: [mapserver-users] WMS don't load In-Reply-To: References: Message-ID: <48E211E6.5157.008F.0@dnr.state.mn.us> MapServer version? >>> On 9/30/2008 at 10:36 AM, in message , wrote: > Hello, > I have 2 mapServers on different computer (windows). > I defined a mapFile containing several layers and one WMS layer. > The same copy of this mapFile is used on both server. On one server all > layers are shown on the static map. On the other server all layers show up > except the WMS layer. > > On both machine mapserv -v shows that WMS client is supported. > Any idea on what else I should verify? > > thanks, > Steve From Steve.Toutant at inspq.qc.ca Tue Sep 30 09:57:29 2008 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 30 Sep 2008 12:57:29 -0400 Subject: [mapserver-users] WMS don't load In-Reply-To: <48E211E6.5157.008F.0@dnr.state.mn.us> Message-ID: Version 5.0.0 on the server that works well Version 5.2.0 on the server where WMS don't load Also, If I call the WMS directly from internet explorer with http://atlas.gc.ca/cgi-bin/atlaswms_fr?VERSION=1.1.1&request=GetMap&SRS=EPSG:42304&BBOX=-2750564.75,-936638.5,3583872.5,4673125&WIDTH=400&HEIGHT=300&LAYERS=pe_15m&STYLES=&FORMAT=GIF it works on both servers so I guess it is not a network problem. Here is the layer part of my mapfile: LAYER # pe WMS map from geoConnexion NAME pe TYPE RASTER OFFSITE 0 0 0 STATUS default CONNECTIONTYPE WMS CONNECTION "http://atlas.gc.ca/cgi-bin/atlaswms_fr?VERSION=1.1.1&request=GetMap&SRS=EPSG:42304&BBOX=-2750564.75,-936638.5,3583872.5,4673125&WIDTH=400&HEIGHT=300&LAYERS=pe_15m&STYLES=&FORMAT=GIF" # METADATA # "wms_srs" "EPSG:42304" # "wms_name" "pe" # "wms_server_version" "1.1.1" # "wms_format" "gif" # END PROJECTION "init=epsg:42304" END END # pe WMS image ends here I tried with the METADATA statement unmarked as well thanks, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From NSoto at plotplans.com Tue Sep 30 10:06:50 2008 From: NSoto at plotplans.com (Nelson Soto) Date: Tue, 30 Sep 2008 13:06:50 -0400 Subject: [mapserver-users] ArcSDE 9.3 Support. Message-ID: <7BA6F57E003ADF4EA12DAA3043BB13D43B0D0D@geoexchange.DesLauriers.local> I have seen this question asked but have not found any answers; Is Mapserver capable of displaying and working with SDE 9.3??? The last noted version I can see is 9.2 and am curious as it is not explicitly labeled as not working on the MapServer website. Thanks, Nelson -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Tue Sep 30 11:04:09 2008 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 30 Sep 2008 14:04:09 -0400 Subject: [mapserver-users] Precaching and opacity Message-ID: <4EFF8BB964547748A07CA32961810C0412C47DD7@SOM-TEAQASMAIL1.som.w2k.state.me.us> Sorry for not responding back sooner, but it looks as though the problem is solved. I used the OFFSITE command to make the background transparent. This works well now. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Tue Sep 30 11:25:39 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 30 Sep 2008 13:25:39 -0500 Subject: [mapserver-users] WMS don't load In-Reply-To: References: <48E211E6.5157.008F.0@dnr.state.mn.us> Message-ID: <48E228D3.5157.008F.0@dnr.state.mn.us> If you do a mapserv -v is the output identical on each box? >>> On 9/30/2008 at 11:57 AM, in message , wrote: > Version 5.0.0 on the server that works well > Version 5.2.0 on the server where WMS don't load > > > Also, If I call the WMS directly from internet explorer with > http://atlas.gc.ca/cgi-bin/atlaswms_fr?VERSION=1.1.1&request=GetMap&SRS=EPSG:42 > 304&BBOX=-2750564.75,-936638.5,3583872.5,4673125&WIDTH=400&HEIGHT=300&LAYERS=pe_15m& > STYLES=&FORMAT=GIF > > it works on both servers so I guess it is not a network problem. > Here is the layer part of my mapfile: > LAYER # pe WMS map from geoConnexion > NAME pe > TYPE RASTER > OFFSITE 0 0 0 > STATUS default > CONNECTIONTYPE WMS > CONNECTION > "http://atlas.gc.ca/cgi-bin/atlaswms_fr?VERSION=1.1.1&request=GetMap&SRS=EPSG:4 > 2304&BBOX=-2750564.75,-936638.5,3583872.5,4673125&WIDTH=400&HEIGHT=300&LAYERS=pe_15 > m&STYLES=&FORMAT=GIF" > > # METADATA > # "wms_srs" "EPSG:42304" > # "wms_name" "pe" > # "wms_server_version" "1.1.1" > # "wms_format" "gif" > # END > > PROJECTION > "init=epsg:42304" > END > END # pe WMS image ends here > > > I tried with the METADATA statement unmarked as well > thanks, > Steve From Steve.Toutant at inspq.qc.ca Tue Sep 30 11:33:07 2008 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 30 Sep 2008 14:33:07 -0400 Subject: [mapserver-users] WMS don't load In-Reply-To: <48E228D3.5157.008F.0@dnr.state.mn.us> Message-ID: For both servers I used MS4W to install mapserver mapserv -v returns almost the same thing The difference is the version, and these: SUPPORTS=ICO NV SUPPORTS=FRIBIDI SUPPORTS=RGBA_PNG MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=S VG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS _SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREAD S SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICO NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUP PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Steve Toutant, M. Sc. Analyste en g?omatique Secteur environnement Direction des risques biologiques, environnementaux et occupationnels Institut national de sant? publique du Qu?bec 945, avenue Wolfe Qu?bec, Qc G1V 5B3 T?l.: (418) 650-5115 #5281 Fax.: (418) 654-3144 steve.toutant at inspq.qc.ca http://www.inspq.qc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Tue Sep 30 11:34:35 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 30 Sep 2008 13:34:35 -0500 Subject: [mapserver-users] ArcSDE 9.3 Support. In-Reply-To: <7BA6F57E003ADF4EA12DAA3043BB13D43B0D0D@geoexchange.DesLauriers.local> References: <7BA6F57E003ADF4EA12DAA3043BB13D43B0D0D@geoexchange.DesLauriers.local> Message-ID: <48E22AEB.5157.008F.0@dnr.state.mn.us> My assumption is that if it is not specifically stated that something WON'T work with a particular version then it probably will work. I'd say try it. I don't have that version handy or I'd do it myself. Steve >>> On 9/30/2008 at 12:06 PM, in message <7BA6F57E003ADF4EA12DAA3043BB13D43B0D0D at geoexchange.DesLauriers.local>, "Nelson Soto" wrote: > I have seen this question asked but have not found any answers; Is > Mapserver capable of displaying and working with SDE 9.3??? The last > noted version I can see is 9.2 and am curious as it is not explicitly > labeled as not working on the MapServer website. > > > > Thanks, > Nelson From NSoto at plotplans.com Tue Sep 30 12:45:00 2008 From: NSoto at plotplans.com (Nelson Soto) Date: Tue, 30 Sep 2008 15:45:00 -0400 Subject: [mapserver-users] ArcSDE 9.3 Support. In-Reply-To: <1222802959.15517.0.camel@huey-desktop> References: <7BA6F57E003ADF4EA12DAA3043BB13D43B0D0D@geoexchange.DesLauriers.local> <48E22AEB.5157.008F.0@dnr.state.mn.us> <1222802959.15517.0.camel@huey-desktop> Message-ID: <7BA6F57E003ADF4EA12DAA3043BB13D43B0D1A@geoexchange.DesLauriers.local> Unfortunately, I'm trying to get the msplugin_sde_92.dll to even load as a plug in at all. I get the following error : msDrawMap(): Image handling error. Failed to draw layer named 'parcels-sde'. loadCustomLayerDLL: General error message. Failed to load dynamic Layer LIB: D:\ms4w\Apache\specialplugins\msplugin_sde_92.dll msGetSymbol(): General error message. Can't load requested dynamic library: D:\ms4w\Apache\specialplugins\msplugin_sde_92.dll The path is correct but is likely one of that dll's dependencies... Ogrinfo and gdalinfo took some time to report 'SDE' in the formats list and it was due to not being able to find the ArcGIS SDK dlls... I couldn't figure out why (I did run SETENV.bat) so I just copied them into the gdal-ogr folder and didn't overwrite any of the files that perhaps may be shared but I'm sure this will lead to issues... What steps did you follow to get this set up correctly? I have used ms4w instructions for enabling and this doesn't seem to be effective... I have the ArcSDE 9.3 C API SDK installed. -----Original Message----- From: Huey Brantley [mailto:huey.brantley at vanderbilt.edu] Sent: Tuesday, September 30, 2008 3:29 PM To: Steve Lime Cc: mapserver-users at lists.osgeo.org; Nelson Soto Subject: Re: [mapserver-users] ArcSDE 9.3 Support. I use MapServer with ArcGIS 9.3 with no problems. On Tue, 2008-09-30 at 13:34 -0500, Steve Lime wrote: > My assumption is that if it is not specifically stated that something WON'T work with a particular > version then it probably will work. I'd say try it. I don't have that version handy or I'd do it myself. > > Steve > > >>> On 9/30/2008 at 12:06 PM, in message > <7BA6F57E003ADF4EA12DAA3043BB13D43B0D0D at geoexchange.DesLauriers.local>, "Nelson > Soto" wrote: > > I have seen this question asked but have not found any answers; Is > > Mapserver capable of displaying and working with SDE 9.3??? The last > > noted version I can see is 9.2 and am curious as it is not explicitly > > labeled as not working on the MapServer website. > > > > > > > > Thanks, > > Nelson > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From huey.brantley at vanderbilt.edu Tue Sep 30 12:29:19 2008 From: huey.brantley at vanderbilt.edu (Huey Brantley) Date: Tue, 30 Sep 2008 14:29:19 -0500 Subject: [mapserver-users] ArcSDE 9.3 Support. In-Reply-To: <48E22AEB.5157.008F.0@dnr.state.mn.us> References: <7BA6F57E003ADF4EA12DAA3043BB13D43B0D0D@geoexchange.DesLauriers.local> <48E22AEB.5157.008F.0@dnr.state.mn.us> Message-ID: <1222802959.15517.0.camel@huey-desktop> I use MapServer with ArcGIS 9.3 with no problems. On Tue, 2008-09-30 at 13:34 -0500, Steve Lime wrote: > My assumption is that if it is not specifically stated that something WON'T work with a particular > version then it probably will work. I'd say try it. I don't have that version handy or I'd do it myself. > > Steve > > >>> On 9/30/2008 at 12:06 PM, in message > <7BA6F57E003ADF4EA12DAA3043BB13D43B0D0D at geoexchange.DesLauriers.local>, "Nelson > Soto" wrote: > > I have seen this question asked but have not found any answers; Is > > Mapserver capable of displaying and working with SDE 9.3??? The last > > noted version I can see is 9.2 and am curious as it is not explicitly > > labeled as not working on the MapServer website. > > > > > > > > Thanks, > > Nelson > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From NSoto at plotplans.com Tue Sep 30 12:56:28 2008 From: NSoto at plotplans.com (Nelson Soto) Date: Tue, 30 Sep 2008 15:56:28 -0400 Subject: [mapserver-users] ArcSDE 9.3 Support. In-Reply-To: <7BA6F57E003ADF4EA12DAA3043BB13D43B0D1A@geoexchange.DesLauriers.local> References: <7BA6F57E003ADF4EA12DAA3043BB13D43B0D0D@geoexchange.DesLauriers.local><48E22AEB.5157.008F.0@dnr.state.mn.us><1222802959.15517.0.camel@huey-desktop> <7BA6F57E003ADF4EA12DAA3043BB13D43B0D1A@geoexchange.DesLauriers.local> Message-ID: <7BA6F57E003ADF4EA12DAA3043BB13D43B0D1C@geoexchange.DesLauriers.local> After tracing dependencies with Dependency Walker, I can see sde.dll and libmap.dll aren't loading correctly when loading 'msplugin_sde_92.dll'. Any ideas on how to alleviate this? -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nelson Soto Sent: Tuesday, September 30, 2008 3:45 PM To: Huey Brantley; Steve Lime Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] ArcSDE 9.3 Support. Unfortunately, I'm trying to get the msplugin_sde_92.dll to even load as a plug in at all. I get the following error : msDrawMap(): Image handling error. Failed to draw layer named 'parcels-sde'. loadCustomLayerDLL: General error message. Failed to load dynamic Layer LIB: D:\ms4w\Apache\specialplugins\msplugin_sde_92.dll msGetSymbol(): General error message. Can't load requested dynamic library: D:\ms4w\Apache\specialplugins\msplugin_sde_92.dll The path is correct but is likely one of that dll's dependencies... Ogrinfo and gdalinfo took some time to report 'SDE' in the formats list and it was due to not being able to find the ArcGIS SDK dlls... I couldn't figure out why (I did run SETENV.bat) so I just copied them into the gdal-ogr folder and didn't overwrite any of the files that perhaps may be shared but I'm sure this will lead to issues... What steps did you follow to get this set up correctly? I have used ms4w instructions for enabling and this doesn't seem to be effective... I have the ArcSDE 9.3 C API SDK installed. -----Original Message----- From: Huey Brantley [mailto:huey.brantley at vanderbilt.edu] Sent: Tuesday, September 30, 2008 3:29 PM To: Steve Lime Cc: mapserver-users at lists.osgeo.org; Nelson Soto Subject: Re: [mapserver-users] ArcSDE 9.3 Support. I use MapServer with ArcGIS 9.3 with no problems. On Tue, 2008-09-30 at 13:34 -0500, Steve Lime wrote: > My assumption is that if it is not specifically stated that something WON'T work with a particular > version then it probably will work. I'd say try it. I don't have that version handy or I'd do it myself. > > Steve > > >>> On 9/30/2008 at 12:06 PM, in message > <7BA6F57E003ADF4EA12DAA3043BB13D43B0D0D at geoexchange.DesLauriers.local>, "Nelson > Soto" wrote: > > I have seen this question asked but have not found any answers; Is > > Mapserver capable of displaying and working with SDE 9.3??? The last > > noted version I can see is 9.2 and am curious as it is not explicitly > > labeled as not working on the MapServer website. > > > > > > > > Thanks, > > Nelson > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Tue Sep 30 13:10:17 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 30 Sep 2008 15:10:17 -0500 Subject: Fwd: Re: [mapserver-users] WMS don't load References: <48E22B2E.5157.008F.0@dnr.state.mn.us> Message-ID: <48E24159.5157.008F.0@dnr.state.mn.us> Perhaps some windows/ms4w users will have an idea... Steve >>> On 9/30/2008 at 2:04 PM, in message , wrote: > Are you getting an exception from the WMS? > No, I only get a blank page. I didn't find any log with information. > > How about running shp2img on the mapfile on each platform? > I didn't know shp2img, thanks. > I tried this on both servers and I got the same error > shp2img -m TutorielStatic.map -o test.png > msProcessProjection(): Projection library error. No such file or directory > > But it still work for one server when launched with http:// > .../cgi-bin/mapserv.exe? > > I searched for this error message and I found that for version 5 we got to > include the ellipsoid in the PROJECTION statement but I used this in the > LAYER definition: > PROJECTION > "init=epsg:42304" > END > > and that for the MAP definition > PROJECTION > "init=epsg:4326" #wgs84 lat long > END > I don't think I should include the ellipsoid there. > > Also, 4326 and 42304 are in my EPSG file. > > Thanks for your help. > Steve > > Steve Toutant, M. Sc. > Analyste en g?omatique > Secteur environnement > Direction des risques biologiques, environnementaux et occupationnels > Institut national de sant? publique du Qu?bec > 945, avenue Wolfe > Qu?bec, Qc G1V 5B3 > T?l.: (418) 650-5115 #5281 > Fax.: (418) 654-3144 > steve.toutant at inspq.qc.ca > http://www.inspq.qc.ca > From bfraser at geoanalytic.com Tue Sep 30 14:16:05 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 30 Sep 2008 15:16:05 -0600 Subject: [mapserver-users] High resolution printing In-Reply-To: <48E25324.7090103@zeelandnet.nl> References: <48E25324.7090103@zeelandnet.nl> Message-ID: <48E29715.8040306@geoanalytic.com> Milo, It will likely involve several changes to Mapserver's mappdf.c (see http://lists.osgeo.org/pipermail/mapserver-users/2008-April/055593.html). Brent Fraser Milo van der Linden wrote: > Hello list! > > I have been searching the web for tips and tricks, but basically what I > need is a method or procedure or (commercial) tool that can enhance my > mapserver installation to enable high resolution printing. > > What I am looking for is the best practice to: > > - Add a button to our website > - Let the button start a script or program that processes the active > layers in the map view based upon the current extent > - Generate a mixture of high-res images and optionally svg or alike for > linework > - combine the works in a pdf > - present the pdf for download to the user > > I would also like to know if there are any commercial, mapserver based, > solutions for this. I am also willing to hire an expert to achieve this. > > Any ideas? > > Kind regards, > > Milo van der Linden > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From andreas.albarello at territoriumonline.com Tue Sep 30 13:24:35 2008 From: andreas.albarello at territoriumonline.com (Andreas Albarello) Date: Tue, 30 Sep 2008 22:24:35 +0200 Subject: [mapserver-users] ArcSDE 9.3 Support. In-Reply-To: <7BA6F57E003ADF4EA12DAA3043BB13D43B0D1C@geoexchange.DesLauriers.local> References: <7BA6F57E003ADF4EA12DAA3043BB13D43B0D0D@geoexchange.DesLauriers.local> Message-ID: On 30 Sep 2008, at 21:56, Nelson Soto wrote: > After tracing dependencies with Dependency Walker, I can see sde.dll > and > libmap.dll aren't loading correctly when loading > 'msplugin_sde_92.dll'. > > Any ideas on how to alleviate this? Nelson, dynamically loaded plugin dlls which in turn require other statically compiled libraries is where Windows dll hell starts to get really ugly. Windows tries to locate your sde libraries either in one of the directories contained in your %PATH% (probably set by setenv.bat but I don't use MS4W so I can't help you there) or, preferably, in the application's folder. By that, if I'm not mistaken, they mean the directory which the main executable image of your app is launched from, so probably the one containing mapserv.exe (or maybe the one where libmap.dll resides?). It's definitely not going to work if you place them relative to the plugin inside your specialplugins folder as that dll is dynamically loaded into the main application's process space. What I'm saying is that Dependency Walker won't help you in this case if you launch it directly on msplugin_sde_92.dll, because what counts is what mapserver.exe/libmap.dll sees, not the plugin. Still, if all fails, you could always just drop the sde libs into c: \windows\system32 but I'm sure with some trial and error you'll find a place where they get picked up correctly. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From RMcCulley at county24.com Tue Sep 30 14:33:37 2008 From: RMcCulley at county24.com (Rob McCulley) Date: Tue, 30 Sep 2008 15:33:37 -0600 Subject: [mapserver-users] High resolution printing In-Reply-To: <48E29715.8040306@geoanalytic.com> References: <48E25324.7090103@zeelandnet.nl> <48E29715.8040306@geoanalytic.com> Message-ID: <8563B9D6767C904A912272A2D56548E43159C2@vermilion.County24.local> I'm working on the same thing right now. The first option is to generate a high resolution raster image from mapserver and then user reportlab to put that into a .pdf. The problem with this is the file size of the resulting .pdf is large, and the vectors still don't look as good as they could. What I've been working on now is using reportlab and svglib. I create a high resolution .jpg of just the raster layers from mapserver, and then I create an .svg file of the vector layers. I use svglib to convert the .svg file into a reportlab graphics object, and draw that on top of the raster into a .pdf document. The file size is still large, but the vectors look much better. The problem I'm having now is that not all of mapservers labeling options are available to svg output (namely, you can't wrap labels). http://www.reportlab.org/ http://pypi.python.org/pypi/svglib/0.6.0 Rob McCulley GIS Coordinator County of Vermilion River -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent Fraser Sent: Tuesday, September 30, 2008 3:16 PM To: Milo van der Linden Cc: mapserver-users Subject: Re: [mapserver-users] High resolution printing Milo, It will likely involve several changes to Mapserver's mappdf.c (see http://lists.osgeo.org/pipermail/mapserver-users/2008-April/055593.html) . Brent Fraser Milo van der Linden wrote: > Hello list! > > I have been searching the web for tips and tricks, but basically what I > need is a method or procedure or (commercial) tool that can enhance my > mapserver installation to enable high resolution printing. > > What I am looking for is the best practice to: > > - Add a button to our website > - Let the button start a script or program that processes the active > layers in the map view based upon the current extent > - Generate a mixture of high-res images and optionally svg or alike for > linework > - combine the works in a pdf > - present the pdf for download to the user > > I would also like to know if there are any commercial, mapserver based, > solutions for this. I am also willing to hire an expert to achieve this. > > Any ideas? > > Kind regards, > > Milo van der Linden > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Tue Sep 30 14:41:05 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 1 Oct 2008 00:41:05 +0300 Subject: [mapserver-users] WMS don't load References: Message-ID: Hi, Is either of your servers behind a proxy? Another thing, your connection string is not correct and I am surprised that one server is working. I suggest you to follow the instructions of document http://mapserver.gis.umn.edu/docs/howto/wms_client. Your connection is of very old format and there is no need to use that. Use the current format as described in the document above. Especially you don't for sure need request=GetMap, BBOX, WIDTH and HEIGHT here. Version, SRS, LAYERS and FORMAT are meant to be captured from metadata section when using the new format. PROJECTION is unnecessary for cascaded WMS layers but it should not harm if it is correct, like you seem to have. Take it away still. wms_name in metadata should obviously be "pe_15m". wms_format should be "image/gif" Correcting these should bring you at least closer to a working connection. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Steve.Toutant at inspq.qc.ca L?hetetty: ti 30.9.2008 19:57 Vastaanottaja: Steve Lime Kopio: mapserver-users at lists.osgeo.org; mapserver-users-bounces at lists.osgeo.org Aihe: Re: [mapserver-users] WMS don't load Version 5.0.0 on the server that works well Version 5.2.0 on the server where WMS don't load Also, If I call the WMS directly from internet explorer with http://atlas.gc.ca/cgi-bin/atlaswms_fr?VERSION=1.1.1&request=GetMap&SRS=EPSG:42304&BBOX=-2750564.75,-936638.5,3583872.5,4673125&WIDTH=400&HEIGHT=300&LAYERS=pe_15m&STYLES=&FORMAT=GIF it works on both servers so I guess it is not a network problem. Here is the layer part of my mapfile: LAYER # pe WMS map from geoConnexion NAME pe TYPE RASTER OFFSITE 0 0 0 STATUS default CONNECTIONTYPE WMS CONNECTION "http://atlas.gc.ca/cgi-bin/atlaswms_fr?VERSION=1.1.1&request=GetMap&SRS=EPSG:42304&BBOX=-2750564.75,-936638.5,3583872.5,4673125&WIDTH=400&HEIGHT=300&LAYERS=pe_15m&STYLES=&FORMAT=GIF" # METADATA # "wms_srs" "EPSG:42304" # "wms_name" "pe" # "wms_server_version" "1.1.1" # "wms_format" "gif" # END PROJECTION "init=epsg:42304" END END # pe WMS image ends here I tried with the METADATA statement unmarked as well thanks, Steve From danlittle at yahoo.com Tue Sep 30 14:42:49 2008 From: danlittle at yahoo.com (Dan Little) Date: Tue, 30 Sep 2008 14:42:49 -0700 (PDT) Subject: [mapserver-users] High resolution printing Message-ID: <377797.38868.qm@web51404.mail.re2.yahoo.com> If you'd like a PHP approach to this problem you can check out the GeoMOOSE project, and our print.php script. It uses GD and FPDF. ----- Original Message ---- > From: Rob McCulley > To: mapserver-users at lists.osgeo.org > Sent: Tuesday, September 30, 2008 4:33:37 PM > Subject: RE: [mapserver-users] High resolution printing > > I'm working on the same thing right now. The first option is to > generate a high resolution raster image from mapserver and then user > reportlab to put that into a .pdf. The problem with this is the file > size of the resulting .pdf is large, and the vectors still don't look as > good as they could. > > What I've been working on now is using reportlab and svglib. I create a > high resolution .jpg of just the raster layers from mapserver, and then > I create an .svg file of the vector layers. I use svglib to convert the > .svg file into a reportlab graphics object, and draw that on top of the > raster into a .pdf document. The file size is still large, but the > vectors look much better. The problem I'm having now is that not all of > mapservers labeling options are available to svg output (namely, you > can't wrap labels). > > http://www.reportlab.org/ > http://pypi.python.org/pypi/svglib/0.6.0 > > > Rob McCulley > GIS Coordinator > County of Vermilion River > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent > Fraser > Sent: Tuesday, September 30, 2008 3:16 PM > To: Milo van der Linden > Cc: mapserver-users > Subject: Re: [mapserver-users] High resolution printing > > Milo, > > It will likely involve several changes to Mapserver's mappdf.c > (see > http://lists.osgeo.org/pipermail/mapserver-users/2008-April/055593.html) > . > > Brent Fraser > > Milo van der Linden wrote: > > Hello list! > > > > I have been searching the web for tips and tricks, but basically what > I > > need is a method or procedure or (commercial) tool that can enhance my > > > mapserver installation to enable high resolution printing. > > > > What I am looking for is the best practice to: > > > > - Add a button to our website > > - Let the button start a script or program that processes the active > > layers in the map view based upon the current extent > > - Generate a mixture of high-res images and optionally svg or alike > for > > linework > > - combine the works in a pdf > > - present the pdf for download to the user > > > > I would also like to know if there are any commercial, mapserver > based, > > solutions for this. I am also willing to hire an expert to achieve > this. > > > > Any ideas? > > > > Kind regards, > > > > Milo van der Linden > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From fsalas at geocuba.cu Tue Sep 30 09:02:23 2008 From: fsalas at geocuba.cu (fsalas) Date: Tue, 30 Sep 2008 18:02:23 +0200 Subject: [mapserver-users] about dynamic maps in mapserver Message-ID: <002201c92316$0520d420$d101030a@mapificacion03> Hi, It?s possible to obtain a thematic maps dynamic with mapserver? I know about the EXPRESSION tag , how i change the value of field to create one thematic maps dynamic ? For example the first time EXPRESSION = "tobacco" and the other time EXPRESSION = "rice" where i cant obtain a tutorial about this topic? ___________________________________ Dpto de Sistemas Inform?ticos Oficina Central Grupo Empresarial GEOCUBA Este mensaje esta libre de virus. Revisado por Kaspersky Antivirus ---------------------------------------------------------------------- Engine version: 4.0.1.14 Engine date: 2002/06/25 Definition count: 1139838 Definition date: 2008/09/30 MDAV version: 2.2.8 -------------- next part -------------- An HTML attachment was scrubbed... URL: From SansonR at asurequality.com Tue Sep 30 15:24:03 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Wed, 01 Oct 2008 11:24:03 +1300 Subject: [mapserver-users] High resolution printing In-Reply-To: <377797.38868.qm@web51404.mail.re2.yahoo.com> References: <377797.38868.qm@web51404.mail.re2.yahoo.com> Message-ID: <48E35DD2.379F.0037.0@asurequality.com> I am using OpenLayers to formulate the Mapserver request for a PDF map, specifying the output resolution in pixels. I read somewhere that default Mapserver is compiled with up to 4000x4000 pixel images? If you need higher than this, you have to set some variables in the source code and recompile. Anyway, I get a PDF generated, but my problem is that it comes back with a filename of mapserv.exe and my Browser won't recognise it as a PDF. How can I open the PDF in a new window automatically, so I can print it? Thanks, Robert Sanson >>> Dan Little 1/10/2008 10:42 a.m. >>> If you'd like a PHP approach to this problem you can check out the GeoMOOSE project, and our print.php script. It uses GD and FPDF. ----- Original Message ---- > From: Rob McCulley > To: mapserver-users at lists.osgeo.org > Sent: Tuesday, September 30, 2008 4:33:37 PM > Subject: RE: [mapserver-users] High resolution printing > > I'm working on the same thing right now. The first option is to > generate a high resolution raster image from mapserver and then user > reportlab to put that into a .pdf. The problem with this is the file > size of the resulting .pdf is large, and the vectors still don't look as > good as they could. > > What I've been working on now is using reportlab and svglib. I create a > high resolution .jpg of just the raster layers from mapserver, and then > I create an .svg file of the vector layers. I use svglib to convert the > .svg file into a reportlab graphics object, and draw that on top of the > raster into a .pdf document. The file size is still large, but the > vectors look much better. The problem I'm having now is that not all of > mapservers labeling options are available to svg output (namely, you > can't wrap labels). > > http://www.reportlab.org/ > http://pypi.python.org/pypi/svglib/0.6.0 > > > Rob McCulley > GIS Coordinator > County of Vermilion River > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent > Fraser > Sent: Tuesday, September 30, 2008 3:16 PM > To: Milo van der Linden > Cc: mapserver-users > Subject: Re: [mapserver-users] High resolution printing > > Milo, > > It will likely involve several changes to Mapserver's mappdf.c > (see > http://lists.osgeo.org/pipermail/mapserver-users/2008-April/055593.html) > . > > Brent Fraser > > Milo van der Linden wrote: > > Hello list! > > > > I have been searching the web for tips and tricks, but basically what > I > > need is a method or procedure or (commercial) tool that can enhance my > > > mapserver installation to enable high resolution printing. > > > > What I am looking for is the best practice to: > > > > - Add a button to our website > > - Let the button start a script or program that processes the active > > layers in the map view based upon the current extent > > - Generate a mixture of high-res images and optionally svg or alike > for > > linework > > - combine the works in a pdf > > - present the pdf for download to the user > > > > I would also like to know if there are any commercial, mapserver > based, > > solutions for this. I am also willing to hire an expert to achieve > this. > > > > Any ideas? > > > > Kind regards, > > > > Milo van der Linden > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chris.Lynnes at nasa.gov Tue Sep 30 15:03:30 2008 From: Chris.Lynnes at nasa.gov (Christopher Lynnes) Date: Tue, 30 Sep 2008 18:03:30 -0400 Subject: [mapserver-users] OUTPUTFORMAT to suppress formats in GetCapabilities? Message-ID: <72066116-8673-4DDE-9A17-D4337BA68393@nasa.gov> I would like to suppress tiff as an option in our GetCapabilities response. As an experiment, I added an OUTPUTFORMAT section with a single format, png, to my map file, but MapServer (ver. 5.2) proceeds to add the other default formats in on its own to the GetCapabilities response. Has anyone seen this before? (I know the OUTPUTFORMAT section I added in is being "seen", because if I mung it (e.g. "ping" instead of "png"), the munged version shows up in the GetCapabilities response.) Here is what I am using: OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" END -- Christopher Lynnes NASA/GSFC, Code 610.2 301-614-5185 From woodbri at swoodbridge.com Tue Sep 30 17:15:23 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 30 Sep 2008 19:15:23 -0500 Subject: [mapserver-users] High resolution printing In-Reply-To: <48E35DD2.379F.0037.0@asurequality.com> References: <377797.38868.qm@web51404.mail.re2.yahoo.com> <48E35DD2.379F.0037.0@asurequality.com> Message-ID: <48E2C11B.4050205@swoodbridge.com> Sounds like you need to issue an HTTP header(s) like: Content-Disposition: filename=mapserver.pdf but, I'm not sure how to do that from mapserver without some additional research. -Steve W Robert Sanson wrote: > > I am using OpenLayers to formulate the Mapserver request for a PDF map, > specifying the output resolution in pixels. I read somewhere that > default Mapserver is compiled with up to 4000x4000 pixel images? If you > need higher than this, you have to set some variables in the source code > and recompile. > > Anyway, I get a PDF generated, but my problem is that it comes back with > a filename of mapserv.exe and my Browser won't recognise it as a PDF. > How can I open the PDF in a new window automatically, so I can print it? > > Thanks, > > Robert Sanson > > >>> Dan Little 1/10/2008 10:42 a.m. >>> > If you'd like a PHP approach to this problem you can check out the > GeoMOOSE project, and our print.php script. > > It uses GD and FPDF. > > > > ----- Original Message ---- > > From: Rob McCulley > > To: mapserver-users at lists.osgeo.org > > Sent: Tuesday, September 30, 2008 4:33:37 PM > > Subject: RE: [mapserver-users] High resolution printing > > > > I'm working on the same thing right now. The first option is to > > generate a high resolution raster image from mapserver and then user > > reportlab to put that into a .pdf. The problem with this is the file > > size of the resulting .pdf is large, and the vectors still don't look as > > good as they could. > > > > What I've been working on now is using reportlab and svglib. I create a > > high resolution .jpg of just the raster layers from mapserver, and then > > I create an .svg file of the vector layers. I use svglib to convert the > > .svg file into a reportlab graphics object, and draw that on top of the > > raster into a .pdf document. The file size is still large, but the > > vectors look much better. The problem I'm having now is that not all of > > mapservers labeling options are available to svg output (namely, you > > can't wrap labels). > > > > http://www.reportlab.org/ > > http://pypi.python.org/pypi/svglib/0.6.0 > > > > > > Rob McCulley > > GIS Coordinator > > County of Vermilion River > > > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent > > Fraser > > Sent: Tuesday, September 30, 2008 3:16 PM > > To: Milo van der Linden > > Cc: mapserver-users > > Subject: Re: [mapserver-users] High resolution printing > > > > Milo, > > > > It will likely involve several changes to Mapserver's mappdf.c > > (see > > http://lists.osgeo.org/pipermail/mapserver-users/2008-April/055593.html) > > . > > > > Brent Fraser > > > > Milo van der Linden wrote: > > > Hello list! > > > > > > I have been searching the web for tips and tricks, but basically what > > I > > > need is a method or procedure or (commercial) tool that can enhance my > > > > > mapserver installation to enable high resolution printing. > > > > > > What I am looking for is the best practice to: > > > > > > - Add a button to our website > > > - Let the button start a script or program that processes the active > > > layers in the map view based upon the current extent > > > - Generate a mixture of high-res images and optionally svg or alike > > for > > > linework > > > - combine the works in a pdf > > > - present the pdf for download to the user > > > > > > I would also like to know if there are any commercial, mapserver > > based, > > > solutions for this. I am also willing to hire an expert to achieve > > this. > > > > > > Any ideas? > > > > > > Kind regards, > > > > > > Milo van der Linden > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > ------------------------------------------------------------------ > The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. > ------------------------------------------------------------------ > > > > This message has been scanned for malware by SurfControl plc. > www.surfcontrol.com > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From SansonR at asurequality.com Tue Sep 30 16:16:13 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Wed, 01 Oct 2008 12:16:13 +1300 Subject: [mapserver-users] High resolution printing In-Reply-To: <48E2C11B.4050205@swoodbridge.com> References: <377797.38868.qm@web51404.mail.re2.yahoo.com> <48E35DD2.379F.0037.0@asurequality.com> <48E2C11B.4050205@swoodbridge.com> Message-ID: <48E36A0D.379F.0037.0@asurequality.com> Thanks Stephen. I solved it (crudely) by changing mapserv.exe to mapserv.pdf in my cgi-bin directory. Robert >>> Stephen Woodbridge 1/10/2008 1:15 p.m. >>> Sounds like you need to issue an HTTP header(s) like: Content-Disposition: filename=mapserver.pdf but, I'm not sure how to do that from mapserver without some additional research. -Steve W Robert Sanson wrote: > > I am using OpenLayers to formulate the Mapserver request for a PDF map, > specifying the output resolution in pixels. I read somewhere that > default Mapserver is compiled with up to 4000x4000 pixel images? If you > need higher than this, you have to set some variables in the source code > and recompile. > > Anyway, I get a PDF generated, but my problem is that it comes back with > a filename of mapserv.exe and my Browser won't recognise it as a PDF. > How can I open the PDF in a new window automatically, so I can print it? > > Thanks, > > Robert Sanson > > >>> Dan Little 1/10/2008 10:42 a.m. >>> > If you'd like a PHP approach to this problem you can check out the > GeoMOOSE project, and our print.php script. > > It uses GD and FPDF. > > > > ----- Original Message ---- > > From: Rob McCulley > > To: mapserver-users at lists.osgeo.org > > Sent: Tuesday, September 30, 2008 4:33:37 PM > > Subject: RE: [mapserver-users] High resolution printing > > > > I'm working on the same thing right now. The first option is to > > generate a high resolution raster image from mapserver and then user > > reportlab to put that into a .pdf. The problem with this is the file > > size of the resulting .pdf is large, and the vectors still don't look as > > good as they could. > > > > What I've been working on now is using reportlab and svglib. I create a > > high resolution .jpg of just the raster layers from mapserver, and then > > I create an .svg file of the vector layers. I use svglib to convert the > > .svg file into a reportlab graphics object, and draw that on top of the > > raster into a .pdf document. The file size is still large, but the > > vectors look much better. The problem I'm having now is that not all of > > mapservers labeling options are available to svg output (namely, you > > can't wrap labels). > > > > http://www.reportlab.org/ > > http://pypi.python.org/pypi/svglib/0.6.0 > > > > > > Rob McCulley > > GIS Coordinator > > County of Vermilion River > > > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent > > Fraser > > Sent: Tuesday, September 30, 2008 3:16 PM > > To: Milo van der Linden > > Cc: mapserver-users > > Subject: Re: [mapserver-users] High resolution printing > > > > Milo, > > > > It will likely involve several changes to Mapserver's mappdf.c > > (see > > http://lists.osgeo.org/pipermail/mapserver-users/2008-April/055593.html) > > . > > > > Brent Fraser > > > > Milo van der Linden wrote: > > > Hello list! > > > > > > I have been searching the web for tips and tricks, but basically what > > I > > > need is a method or procedure or (commercial) tool that can enhance my > > > > > mapserver installation to enable high resolution printing. > > > > > > What I am looking for is the best practice to: > > > > > > - Add a button to our website > > > - Let the button start a script or program that processes the active > > > layers in the map view based upon the current extent > > > - Generate a mixture of high-res images and optionally svg or alike > > for > > > linework > > > - combine the works in a pdf > > > - present the pdf for download to the user > > > > > > I would also like to know if there are any commercial, mapserver > > based, > > > solutions for this. I am also willing to hire an expert to achieve > > this. > > > > > > Any ideas? > > > > > > Kind regards, > > > > > > Milo van der Linden > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > ------------------------------------------------------------------ > The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. > ------------------------------------------------------------------ > > > > This message has been scanned for malware by SurfControl plc. > www.surfcontrol.com > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Tue Sep 30 17:19:33 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 30 Sep 2008 19:19:33 -0500 Subject: [mapserver-users] High resolution printing In-Reply-To: <48E35DD2.379F.0037.0@asurequality.com> References: <377797.38868.qm@web51404.mail.re2.yahoo.com> <48E35DD2.379F.0037.0@asurequality.com> Message-ID: <48E2C215.7060604@swoodbridge.com> http://mapserver.gis.umn.edu/docs/howto/pdf-output Robert Sanson wrote: > > I am using OpenLayers to formulate the Mapserver request for a PDF map, > specifying the output resolution in pixels. I read somewhere that > default Mapserver is compiled with up to 4000x4000 pixel images? If you > need higher than this, you have to set some variables in the source code > and recompile. > > Anyway, I get a PDF generated, but my problem is that it comes back with > a filename of mapserv.exe and my Browser won't recognise it as a PDF. > How can I open the PDF in a new window automatically, so I can print it? > > Thanks, > > Robert Sanson > > >>> Dan Little 1/10/2008 10:42 a.m. >>> > If you'd like a PHP approach to this problem you can check out the > GeoMOOSE project, and our print.php script. > > It uses GD and FPDF. > > > > ----- Original Message ---- > > From: Rob McCulley > > To: mapserver-users at lists.osgeo.org > > Sent: Tuesday, September 30, 2008 4:33:37 PM > > Subject: RE: [mapserver-users] High resolution printing > > > > I'm working on the same thing right now. The first option is to > > generate a high resolution raster image from mapserver and then user > > reportlab to put that into a .pdf. The problem with this is the file > > size of the resulting .pdf is large, and the vectors still don't look as > > good as they could. > > > > What I've been working on now is using reportlab and svglib. I create a > > high resolution .jpg of just the raster layers from mapserver, and then > > I create an .svg file of the vector layers. I use svglib to convert the > > .svg file into a reportlab graphics object, and draw that on top of the > > raster into a .pdf document. The file size is still large, but the > > vectors look much better. The problem I'm having now is that not all of > > mapservers labeling options are available to svg output (namely, you > > can't wrap labels). > > > > http://www.reportlab.org/ > > http://pypi.python.org/pypi/svglib/0.6.0 > > > > > > Rob McCulley > > GIS Coordinator > > County of Vermilion River > > > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent > > Fraser > > Sent: Tuesday, September 30, 2008 3:16 PM > > To: Milo van der Linden > > Cc: mapserver-users > > Subject: Re: [mapserver-users] High resolution printing > > > > Milo, > > > > It will likely involve several changes to Mapserver's mappdf.c > > (see > > http://lists.osgeo.org/pipermail/mapserver-users/2008-April/055593.html) > > . > > > > Brent Fraser > > > > Milo van der Linden wrote: > > > Hello list! > > > > > > I have been searching the web for tips and tricks, but basically what > > I > > > need is a method or procedure or (commercial) tool that can enhance my > > > > > mapserver installation to enable high resolution printing. > > > > > > What I am looking for is the best practice to: > > > > > > - Add a button to our website > > > - Let the button start a script or program that processes the active > > > layers in the map view based upon the current extent > > > - Generate a mixture of high-res images and optionally svg or alike > > for > > > linework > > > - combine the works in a pdf > > > - present the pdf for download to the user > > > > > > I would also like to know if there are any commercial, mapserver > > based, > > > solutions for this. I am also willing to hire an expert to achieve > > this. > > > > > > Any ideas? > > > > > > Kind regards, > > > > > > Milo van der Linden > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > ------------------------------------------------------------------ > The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. > ------------------------------------------------------------------ > > > > This message has been scanned for malware by SurfControl plc. > www.surfcontrol.com > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From pzader at gmail.com Tue Sep 30 19:50:39 2008 From: pzader at gmail.com (pablo zader) Date: Tue, 30 Sep 2008 23:50:39 -0300 Subject: [mapserver-users] Architectural style Message-ID: <52be2a8b0809301950q3c8a0a15v58e2f6204234058a@mail.gmail.com> Hello friends. I am developing an application mapserver and need to present an architectural design of this application. Then, my question is, that I am used architectural it(he,she) is in use frequently for this type of applications? I was investigating and the thing more that encontre, is on a style client - server. That me aconcejan? Thank you -- Pablo Zader -------------- next part -------------- An HTML attachment was scrubbed... URL: