From 2001xxj at gmail.com Fri Jan 1 03:38:20 2010 From: 2001xxj at gmail.com (xxj) Date: Fri, 1 Jan 2010 03:38:20 -0800 (PST) Subject: [mapserver-users] How to render raster data using Oracle Georaster? In-Reply-To: <4B3CC6DB.3060007@pmldnet.com> References: <1262255912007-4235902.post@n2.nabble.com> <4B3CAE27.9010406@pmldnet.com> <1262272995892-4236701.post@n2.nabble.com> <4B3CC6DB.3060007@pmldnet.com> Message-ID: <1262345900507-4239315.post@n2.nabble.com> Hi Ivan, Thanks for help! Unfortunately, I got the same errors after commenting out the two lines in mapstring.c and recompiling the whole application. It seems that GDAL is not called when MapServer try to get a GeoRaster data set. Are you sure that just commenting out the two lines can work? Please can you post your map file in the thread I mentioned? For I want to have it as a reference. Regards, xxj Ivan-5 wrote: > > Hi Xxj, > > As I wrote before. There are code in Mapserver that wrongly assume that > raster DATA is always file > based. The code is in mapstring.g lines 668 and 695. If you comment out > those two lines I believe > you could make it work. > > http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapstring.c#L668 > http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapstring.c#L695 > > I would suggest you to file a bug report on that issue. > > The thread that you mentioned was about another bug that I detected. > Mapsever wasn't using GDAL > raster overviews at all. Not only GeoRaster. And it makes a big difference > when displaying GeoRaster > to have Pyramids/Overviews properly supported as you can see also with > Oracle's Mapviewer. > > Best regards, > > Ivan > > xxj wrote: >> Hi, >> >> Please have a look at this thread. >> >> http://n2.nabble.com/MapServer-Oracle-performance-td3529225.html#a3531606 >> >> According to the replies by Ivan-5, it seems that he has ever succeeded >> in >> rendering raster data using Oracle GeoRaster. How did he make it? >> >> I also noticed that you get the same user name in this forum. May I >> assume >> that you are exactly the guy? :) >> >> Regards, >> >> xxj > > _______________________________________________ > 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/How-to-render-raster-data-using-Oracle-Georaster-tp4235902p4239315.html Sent from the Mapserver - User mailing list archive at Nabble.com. From andy at squeakycode.net Sat Jan 2 06:50:13 2010 From: andy at squeakycode.net (Andy Colson) Date: Sat, 02 Jan 2010 08:50:13 -0600 Subject: [mapserver-users] Problem with Russia polygon In-Reply-To: <125FE5C84575394CB9ED84D5DBB151D578FB489776@PTPPICEX03.PTPortugal.corpPT.com> References: <125FE5C84575394CB9ED84D5DBB151D578FB489776@PTPPICEX03.PTPortugal.corpPT.com> Message-ID: <4B3F5D25.7050407@squeakycode.net> On 12/30/2009 11:14 AM, Nelson Correia wrote: > Hello, > > I?m using shapefile world data from gadm.org (I?ve had this same problem > with other data sources too) and I?m having a problem with the Russian > polygon: mapserver draws some strange lines parallel to the equator, > near the north pole (like you can see in the attached image). > > Anyone had the same problem and knows how to solve it? > > Thanks, > > Nelson I have no idea if this is the same problem, but I have run into weird drawing problems before. I import shape files into PostGIS and then use mapserver on that. I got a polygon layer that had an unclosed line (I guess that is a good way to describe it). It pissed off mapserver. I could run sql like: select gid from layer where not ST_IsClosed(the_geom) and it would pull it up. The people that sent me the layer swore there was nothing wrong with it (they didn't see any error). I guess to make a long story short, do you have any editors (like qgis) that you can use to see/edit the layer and make sure each record is valid? -Andy From kobben at itc.nl Sat Jan 2 07:33:06 2010 From: kobben at itc.nl (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Sat, 2 Jan 2010 16:33:06 +0100 Subject: [mapserver-users] Problem with Russia polygon In-Reply-To: <4B3F5D25.7050407@squeakycode.net> Message-ID: Hi, > I guess to make a long story short, do you have any editors (like qgis) that > you can use to see/edit the layer and make sure each record is valid? You can use PostGIS's ST_IsValid() for that. The problem of Nelson seems to me to be a 'dateline' problem: you have coordinates in latlon and some polygons are crossing the dateline (and/or the poles), therefore the coordinates' sign jumps from - to + (or from E to W). If you then draw that in a Plate Carree 'projection (where latitudes and longitudes are treated as if they were Cartesian coordinates , which they surely aren't: they are angles from the middle of the Earth!), then the polygon jumps from the extreme right to the extreme left of the picture... -- Barend K?bben Senior Lecturer University of Twente, Faculty of Geo-Information Science and Earth Observation (ITC) PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 02-01-10 15:50, "Andy Colson" wrote: > On 12/30/2009 11:14 AM, Nelson Correia wrote: >> Hello, >> >> I?m using shapefile world data from gadm.org (I?ve had this same problem >> with other data sources too) and I?m having a problem with the Russian >> polygon: mapserver draws some strange lines parallel to the equator, >> near the north pole (like you can see in the attached image). >> >> Anyone had the same problem and knows how to solve it? >> >> Thanks, >> >> Nelson > > I have no idea if this is the same problem, but I have run into weird drawing > problems before. I import shape files into PostGIS and then use mapserver on > that. I got a polygon layer that had an unclosed line (I guess that is a good > way to describe it). It pissed off mapserver. I could run sql like: > > select gid from layer where not ST_IsClosed(the_geom) > > and it would pull it up. The people that sent me the layer swore there was > nothing wrong with it (they didn't see any error). > > I guess to make a long story short, do you have any editors (like qgis) that > you can use to see/edit the layer and make sure each record is valid? > > -Andy > _______________________________________________ > 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 greenzeod at web.de Mon Jan 4 02:07:24 2010 From: greenzeod at web.de (greenzeod at web.de) Date: Mon, 04 Jan 2010 11:07:24 +0100 Subject: [mapserver-users] WMS-Client example Message-ID: <1024995303@web.de> Hello, I have a problem with the WMS-Client sample layer, which doesn?t work for me. I tried to add the prov_bound layer to my map-config file, but when I tried to display the layer, i get only a white image. If i use the local bathymetry layer instead of prob_bound - it works. Did I make something wrong? Best Regrads Sergej My call for the image: http://127.0.0.1/cgi-bin/mapserv.exe?MAP=E:/Program%20Files%20%28x86%29/ms4w/apps/gmap/htdocs/gmap75.map&SERVICE=wms&VERSION=1.1.1&LAYERS=prov_bound&REQUEST=GetMap&SRS=EPSG:42304&BBOX=-2200000,-712631,3072800,3840000&FORMAT=image/png&WIDTH=400&HEIGHT=300 MAP-File: # # Start of layer definitions # LAYER NAME "prov_bound" TYPE RASTER STATUS ON CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 EPSG:42304" "wms_name" "prov_bound" "wms_server_version" "1.1.0" "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" "wms_format" "image/gif" END END LAYER NAME bathymetry METADATA "wms_title" "Elevation/Bathymetry" END TYPE RASTER STATUS ON DATA bath_mapserver.tif PROJECTION "init=epsg:42304" END END END # layer ___________________________________________________________ Preisknaller: WEB.DE DSL Flatrate f?r nur 16,99 Euro/mtl.! http://produkte.web.de/go/02/ From Jukka.Rahkonen at mmmtike.fi Mon Jan 4 02:50:29 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 4 Jan 2010 12:50:29 +0200 Subject: [mapserver-users] WMS-Client example In-Reply-To: <1024995303@web.de> References: <1024995303@web.de> Message-ID: Hi, First problem is that the url "www2.dmsolutions.ca/cgi-bin/mswms_gmap?" does not answer. You have no chance to succeed with that WMS server at the moment. -Jukka Rahkonen- greenzeod wrote: > Hello, > > I have a problem with the WMS-Client sample layer, which > doesn?t work for me. > I tried to add the prov_bound layer to my map-config file, > but when I tried to display the layer, i get only a white image. > > If i use the local bathymetry layer instead of prob_bound - it works. > > Did I make something wrong? > > Best Regrads > > Sergej > > > My call for the image: > > http://127.0.0.1/cgi-bin/mapserv.exe?MAP=E:/Program%20Files%20 > %28x86%29/ms4w/apps/gmap/htdocs/gmap75.map&SERVICE=wms&VERSION > =1.1.1&LAYERS=prov_bound&REQUEST=GetMap&SRS=EPSG:42304&BBOX=-2 > 200000,-712631,3072800,3840000&FORMAT=image/png&WIDTH=400&HEIGHT=300 > > > MAP-File: > > # > # Start of layer definitions > # > LAYER > NAME "prov_bound" > TYPE RASTER > STATUS ON > CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?" > CONNECTIONTYPE WMS > METADATA > "wms_srs" "EPSG:42304 EPSG:42101 > EPSG:4269 EPSG:4326 EPSG:42304" > "wms_name" "prov_bound" > "wms_server_version" "1.1.0" > "wms_formatlist" > "image/gif,image/png,image/jpeg,image/wbmp" > "wms_format" "image/gif" > END > END > > > > LAYER > NAME bathymetry > METADATA > "wms_title" "Elevation/Bathymetry" > END > TYPE RASTER > STATUS ON > DATA bath_mapserver.tif > PROJECTION > "init=epsg:42304" > END > END > > END # layer > > > > ___________________________________________________________ > Preisknaller: WEB.DE DSL Flatrate f?r nur 16,99 Euro/mtl.! > http://produkte.web.de/go/02/ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From nelson-correia at telecom.pt Mon Jan 4 05:31:32 2010 From: nelson-correia at telecom.pt (Nelson Correia) Date: Mon, 4 Jan 2010 13:31:32 +0000 Subject: [mapserver-users] Problem with Russia polygon In-Reply-To: References: <4B3F5D25.7050407@squeakycode.net> Message-ID: <125FE5C84575394CB9ED84D5DBB151D578FB489793@PTPPICEX03.PTPortugal.corpPT.com> Hello, All the russian polygons are valid (st_valid) and closed (st_closed). The problem seems to be in the vertical lines at 180? and -180? that divide certain areas of the country. It seems like when mapserver tries to draw these lines, there's some kind of unknown behavior that make it draw horizontal lines instead, resulting in very strange polygons. However, I have not solved the problem yet. Nelson -----Original Message----- From: Barend K?bben [mailto:kobben at itc.nl] Sent: s?bado, 2 de Janeiro de 2010 15:33 To: Andy Colson; Nelson Correia Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with Russia polygon Hi, > I guess to make a long story short, do you have any editors (like qgis) that > you can use to see/edit the layer and make sure each record is valid? You can use PostGIS's ST_IsValid() for that. The problem of Nelson seems to me to be a 'dateline' problem: you have coordinates in latlon and some polygons are crossing the dateline (and/or the poles), therefore the coordinates' sign jumps from - to + (or from E to W). If you then draw that in a Plate Carree 'projection (where latitudes and longitudes are treated as if they were Cartesian coordinates , which they surely aren't: they are angles from the middle of the Earth!), then the polygon jumps from the extreme right to the extreme left of the picture... -- Barend K?bben Senior Lecturer University of Twente, Faculty of Geo-Information Science and Earth Observation (ITC) PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 02-01-10 15:50, "Andy Colson" wrote: > On 12/30/2009 11:14 AM, Nelson Correia wrote: >> Hello, >> >> I?m using shapefile world data from gadm.org (I?ve had this same problem >> with other data sources too) and I?m having a problem with the Russian >> polygon: mapserver draws some strange lines parallel to the equator, >> near the north pole (like you can see in the attached image). >> >> Anyone had the same problem and knows how to solve it? >> >> Thanks, >> >> Nelson > > I have no idea if this is the same problem, but I have run into weird drawing > problems before. I import shape files into PostGIS and then use mapserver on > that. I got a polygon layer that had an unclosed line (I guess that is a good > way to describe it). It pissed off mapserver. I could run sql like: > > select gid from layer where not ST_IsClosed(the_geom) > > and it would pull it up. The people that sent me the layer swore there was > nothing wrong with it (they didn't see any error). > > I guess to make a long story short, do you have any editors (like qgis) that > you can use to see/edit the layer and make sure each record is valid? > > -Andy > _______________________________________________ > 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 yassefa at dmsolutions.ca Mon Jan 4 06:14:43 2010 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 04 Jan 2010 09:14:43 -0500 Subject: [mapserver-users] WMS-Client example In-Reply-To: References: <1024995303@web.de> Message-ID: <4B41F7D3.3050003@dmsolutions.ca> www2.dmsolutions.ca/cgi-bin/mswms_gmap is now up and running. regards, Rahkonen Jukka wrote: > Hi, > > First problem is that the url "www2.dmsolutions.ca/cgi-bin/mswms_gmap?" does not answer. You have no chance to succeed with that WMS server at the moment. > > -Jukka Rahkonen- > > > greenzeod wrote: > > >> Hello, >> >> I have a problem with the WMS-Client sample layer, which >> doesn?t work for me. >> I tried to add the prov_bound layer to my map-config file, >> but when I tried to display the layer, i get only a white image. >> >> If i use the local bathymetry layer instead of prob_bound - it works. >> >> Did I make something wrong? >> >> Best Regrads >> >> Sergej >> >> >> My call for the image: >> >> http://127.0.0.1/cgi-bin/mapserv.exe?MAP=E:/Program%20Files%20 >> %28x86%29/ms4w/apps/gmap/htdocs/gmap75.map&SERVICE=wms&VERSION >> =1.1.1&LAYERS=prov_bound&REQUEST=GetMap&SRS=EPSG:42304&BBOX=-2 >> 200000,-712631,3072800,3840000&FORMAT=image/png&WIDTH=400&HEIGHT=300 >> >> >> MAP-File: >> >> # >> # Start of layer definitions >> # >> LAYER >> NAME "prov_bound" >> TYPE RASTER >> STATUS ON >> CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?" >> CONNECTIONTYPE WMS >> METADATA >> "wms_srs" "EPSG:42304 EPSG:42101 >> EPSG:4269 EPSG:4326 EPSG:42304" >> "wms_name" "prov_bound" >> "wms_server_version" "1.1.0" >> "wms_formatlist" >> "image/gif,image/png,image/jpeg,image/wbmp" >> "wms_format" "image/gif" >> END >> END >> >> >> >> LAYER >> NAME bathymetry >> METADATA >> "wms_title" "Elevation/Bathymetry" >> END >> TYPE RASTER >> STATUS ON >> DATA bath_mapserver.tif >> PROJECTION >> "init=epsg:42304" >> END >> END >> >> END # layer >> >> >> >> ___________________________________________________________ >> Preisknaller: WEB.DE DSL Flatrate f?r nur 16,99 Euro/mtl.! >> http://produkte.web.de/go/02/ >> >> _______________________________________________ >> 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 > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From 2001xxj at gmail.com Mon Jan 4 07:52:26 2010 From: 2001xxj at gmail.com (xxj) Date: Mon, 4 Jan 2010 07:52:26 -0800 (PST) Subject: [mapserver-users] How to render raster data using Oracle Georaster? In-Reply-To: <1262255912007-4235902.post@n2.nabble.com> References: <1262255912007-4235902.post@n2.nabble.com> Message-ID: <1262620346197-4250472.post@n2.nabble.com> Could anybody help me about this issue? :-) Thanks, xxj xxj wrote: > > Hi folks, > > Is Oracle Georaster supported by MapServer? > > I am using MapServer5.6.0 and can render vector data using Oracle > successfully. But when I was trying raster data using Oracle database, the > following errors happens. > > Errors: > > > "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> > > > msDrawMap(): Image handling error. Failed to draw layer named > 'bluemarble'. > msDrawRaster(): Unable to access file. > georaster:wz/wz at orclat18,sf_rasters,georaster,georid=101 using full path > georaster:wz/wz at orclat18,sf_rasters,georaster,georid=101 > > > > My layer definition in mapfile is as following: > > LAYER > NAME bluemarble > TYPE raster > STATUS ON > #CONNECTIONTYPE oraclespatial > #CONNECTION "wz/wz at orclat18" > #DATA "geor:wz/wz at orclat18,student_rdt_01,id=1" > DATA "georaster:wz/wz at orclat18,sf_rasters,georaster,georid=101" > #DATA drgncimq1926.tif > #DATA "georaster from sf_rasters using srid 8307" > #DATA "GEOR:temporary.vrt" > CLASS > EXPRESSION ([pixel] >= 0 AND [pixel] <= 1000) > STYLE > COLOR 255 0 0 > END > END > METADATA > WMS_TITLE "bluemarble" > WMS_ABSTRACT "bluemarble." > WMS_SRS "EPSG:4326" > END > END > > I am very sure that GDAL and GeoRaster are compiled into MapServer and > well configured for the belows are the output about them. > > Output of mapserv: > > [oracle at ts cgi-bin]$ ./mapserv -v > ./mapserv: /usr/lib/libxml2.so.2: no version information available > (required by ./mapserv) > MapServer version 5.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP OUTPUT=SVG > SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > > Output of gdal_translate: > > [oracle at ts cgi-bin]$ gdal_translate |grep Geo > GTiff: GeoTIFF > GeoRaster: Oracle Spatial GeoRaster > > I have ever tried to confirm that if gdal is OK by executing the command > of > "gdal_translate -of gtiff > geor:wz/wz at orclat18,sf_rasters,georaster,georid=101 bluemarble.tiff > -outsize 100% 100%" > in the command line. And found it's OK, the expected picture file was > returned. > > I am so confused by the errors above now! So I wonder how to render raster > data with Oracle and GDAL on MapServer? > > Thanks! > > -- View this message in context: http://n2.nabble.com/How-to-render-raster-data-using-Oracle-Georaster-tp4235902p4250472.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Mon Jan 4 09:27:39 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 4 Jan 2010 11:27:39 -0600 Subject: [mapserver-users] Problem with Russia polygon In-Reply-To: <125FE5C84575394CB9ED84D5DBB151D578FB489793@PTPPICEX03.PTPortugal.corpPT.com> References: <4B3F5D25.7050407@squeakycode.net> <125FE5C84575394CB9ED84D5DBB151D578FB489793@PTPPICEX03.PTPortugal.corpPT.com> Message-ID: Would be interesting to get a copy of the data in shapefile format, plus the mapfile that generates the error... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nelson Correia Sent: Monday, January 04, 2010 7:32 AM To: Barend K?bben; Andy Colson Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Problem with Russia polygon Hello, All the russian polygons are valid (st_valid) and closed (st_closed). The problem seems to be in the vertical lines at 180? and -180? that divide certain areas of the country. It seems like when mapserver tries to draw these lines, there's some kind of unknown behavior that make it draw horizontal lines instead, resulting in very strange polygons. However, I have not solved the problem yet. Nelson -----Original Message----- From: Barend K?bben [mailto:kobben at itc.nl] Sent: s?bado, 2 de Janeiro de 2010 15:33 To: Andy Colson; Nelson Correia Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with Russia polygon Hi, > I guess to make a long story short, do you have any editors (like qgis) that > you can use to see/edit the layer and make sure each record is valid? You can use PostGIS's ST_IsValid() for that. The problem of Nelson seems to me to be a 'dateline' problem: you have coordinates in latlon and some polygons are crossing the dateline (and/or the poles), therefore the coordinates' sign jumps from - to + (or from E to W). If you then draw that in a Plate Carree 'projection (where latitudes and longitudes are treated as if they were Cartesian coordinates , which they surely aren't: they are angles from the middle of the Earth!), then the polygon jumps from the extreme right to the extreme left of the picture... -- Barend K?bben Senior Lecturer University of Twente, Faculty of Geo-Information Science and Earth Observation (ITC) PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 02-01-10 15:50, "Andy Colson" wrote: > On 12/30/2009 11:14 AM, Nelson Correia wrote: >> Hello, >> >> I?m using shapefile world data from gadm.org (I?ve had this same problem >> with other data sources too) and I?m having a problem with the Russian >> polygon: mapserver draws some strange lines parallel to the equator, >> near the north pole (like you can see in the attached image). >> >> Anyone had the same problem and knows how to solve it? >> >> Thanks, >> >> Nelson > > I have no idea if this is the same problem, but I have run into weird drawing > problems before. I import shape files into PostGIS and then use mapserver on > that. I got a polygon layer that had an unclosed line (I guess that is a good > way to describe it). It pissed off mapserver. I could run sql like: > > select gid from layer where not ST_IsClosed(the_geom) > > and it would pull it up. The people that sent me the layer swore there was > nothing wrong with it (they didn't see any error). > > I guess to make a long story short, do you have any editors (like qgis) that > you can use to see/edit the layer and make sure each record is valid? > > -Andy > _______________________________________________ > 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. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From nelson-correia at telecom.pt Mon Jan 4 10:34:32 2010 From: nelson-correia at telecom.pt (Nelson Correia) Date: Mon, 4 Jan 2010 18:34:32 +0000 Subject: [mapserver-users] Problem with Russia polygon In-Reply-To: References: <4B3F5D25.7050407@squeakycode.net> <125FE5C84575394CB9ED84D5DBB151D578FB489793@PTPPICEX03.PTPortugal.corpPT.com> Message-ID: <125FE5C84575394CB9ED84D5DBB151D578FB48979F@PTPPICEX03.PTPortugal.corpPT.com> Here is the simplified shapefile, along with a mapfile that uses it: http://www.2shared.com/file/10449234/a18d6a03/countries.html Nelson -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: segunda-feira, 4 de Janeiro de 2010 17:28 To: Nelson Correia; Barend K?bben; Andy Colson Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Problem with Russia polygon Would be interesting to get a copy of the data in shapefile format, plus the mapfile that generates the error... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nelson Correia Sent: Monday, January 04, 2010 7:32 AM To: Barend K?bben; Andy Colson Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Problem with Russia polygon Hello, All the russian polygons are valid (st_valid) and closed (st_closed). The problem seems to be in the vertical lines at 180? and -180? that divide certain areas of the country. It seems like when mapserver tries to draw these lines, there's some kind of unknown behavior that make it draw horizontal lines instead, resulting in very strange polygons. However, I have not solved the problem yet. Nelson -----Original Message----- From: Barend K?bben [mailto:kobben at itc.nl] Sent: s?bado, 2 de Janeiro de 2010 15:33 To: Andy Colson; Nelson Correia Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with Russia polygon Hi, > I guess to make a long story short, do you have any editors (like qgis) that > you can use to see/edit the layer and make sure each record is valid? You can use PostGIS's ST_IsValid() for that. The problem of Nelson seems to me to be a 'dateline' problem: you have coordinates in latlon and some polygons are crossing the dateline (and/or the poles), therefore the coordinates' sign jumps from - to + (or from E to W). If you then draw that in a Plate Carree 'projection (where latitudes and longitudes are treated as if they were Cartesian coordinates , which they surely aren't: they are angles from the middle of the Earth!), then the polygon jumps from the extreme right to the extreme left of the picture... -- Barend K?bben Senior Lecturer University of Twente, Faculty of Geo-Information Science and Earth Observation (ITC) PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 02-01-10 15:50, "Andy Colson" wrote: > On 12/30/2009 11:14 AM, Nelson Correia wrote: >> Hello, >> >> I?m using shapefile world data from gadm.org (I?ve had this same problem >> with other data sources too) and I?m having a problem with the Russian >> polygon: mapserver draws some strange lines parallel to the equator, >> near the north pole (like you can see in the attached image). >> >> Anyone had the same problem and knows how to solve it? >> >> Thanks, >> >> Nelson > > I have no idea if this is the same problem, but I have run into weird drawing > problems before. I import shape files into PostGIS and then use mapserver on > that. I got a polygon layer that had an unclosed line (I guess that is a good > way to describe it). It pissed off mapserver. I could run sql like: > > select gid from layer where not ST_IsClosed(the_geom) > > and it would pull it up. The people that sent me the layer swore there was > nothing wrong with it (they didn't see any error). > > I guess to make a long story short, do you have any editors (like qgis) that > you can use to see/edit the layer and make sure each record is valid? > > -Andy > _______________________________________________ > 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. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From joe.bussell at gmail.com Mon Jan 4 12:50:35 2010 From: joe.bussell at gmail.com (Joe Bussell) Date: Mon, 4 Jan 2010 12:50:35 -0800 Subject: [mapserver-users] Problem with Russia polygon In-Reply-To: <125FE5C84575394CB9ED84D5DBB151D578FB48979F@PTPPICEX03.PTPortugal.corpPT.com> References: <4B3F5D25.7050407@squeakycode.net> <125FE5C84575394CB9ED84D5DBB151D578FB489793@PTPPICEX03.PTPortugal.corpPT.com> <125FE5C84575394CB9ED84D5DBB151D578FB48979F@PTPPICEX03.PTPortugal.corpPT.com> Message-ID: We ran into this issue for an Air Force project I worked on. We ended up splitting the polygons into multiple polygons E and W of the dateline. Joe Bussell On Mon, Jan 4, 2010 at 10:34 AM, Nelson Correia wrote: > Here is the simplified shapefile, along with a mapfile that uses it: > http://www.2shared.com/file/10449234/a18d6a03/countries.html > > Nelson > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: segunda-feira, 4 de Janeiro de 2010 17:28 > To: Nelson Correia; Barend K?bben; Andy Colson > Cc: mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Problem with Russia polygon > > Would be interesting to get a copy of the data in shapefile format, plus the mapfile that generates the error... > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nelson Correia > Sent: Monday, January 04, 2010 7:32 AM > To: Barend K?bben; Andy Colson > Cc: mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Problem with Russia polygon > > Hello, > > All the russian polygons are valid (st_valid) and closed (st_closed). The problem seems to be in the vertical lines at 180? and -180? that divide certain areas of the country. It seems like when mapserver tries to draw these lines, there's some kind of unknown behavior that make it draw horizontal lines instead, resulting in very strange polygons. > > However, I have not solved the problem yet. > > Nelson > > -----Original Message----- > From: Barend K?bben [mailto:kobben at itc.nl] > Sent: s?bado, 2 de Janeiro de 2010 15:33 > To: Andy Colson; Nelson Correia > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Problem with Russia polygon > > Hi, > >> I guess to make a long story short, do you have any editors (like qgis) that >> you can use to see/edit the layer and make sure ?each record is valid? > You can use PostGIS's ST_IsValid() for that. > > The problem of Nelson seems to me to be a 'dateline' problem: you have > coordinates in latlon and some polygons are crossing the dateline (and/or > the poles), therefore the coordinates' sign jumps from - to + (or from E to > W). If you then draw that in a Plate Carree 'projection (where latitudes and > longitudes are treated as if they were Cartesian coordinates , which they > surely aren't: they are angles from the middle of the Earth!), then the > polygon jumps from the extreme right to the extreme left of the picture... > > > -- > Barend K?bben > Senior Lecturer > University of Twente, Faculty of Geo-Information Science and > Earth Observation (ITC) > PO Box 6, 7500AA Enschede, The Netherlands > +31 (0)53 4874253 > > > > On 02-01-10 15:50, "Andy Colson" wrote: > >> On 12/30/2009 11:14 AM, Nelson Correia wrote: >>> Hello, >>> >>> I?m using shapefile world data from gadm.org (I?ve had this same problem >>> with other data sources too) and I?m having a problem with the Russian >>> polygon: mapserver draws some strange lines parallel to the equator, >>> near the north pole (like you can see in the attached image). >>> >>> Anyone had the same problem and knows how to solve it? >>> >>> Thanks, >>> >>> Nelson >> >> I have no idea if this is the same problem, but I have run into weird drawing >> problems before. ?I import shape files into PostGIS and then use mapserver on >> that. ?I got a polygon layer that had an unclosed line (I guess that is a good >> way to describe it). ?It pissed off mapserver. ?I could run sql like: >> >> select gid from layer where not ST_IsClosed(the_geom) >> >> and it would pull it up. ?The people that sent me the layer swore there was >> nothing wrong with it (they didn't see any error). >> >> I guess to make a long story short, do you have any editors (like qgis) that >> you can use to see/edit the layer and make sure ?each record is valid? >> >> -Andy >> _______________________________________________ >> 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. > > > _______________________________________________ > 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 Mon Jan 4 12:52:01 2010 From: kobben at itc.nl (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Mon, 4 Jan 2010 21:52:01 +0100 Subject: [mapserver-users] Problem with Russia polygon In-Reply-To: <125FE5C84575394CB9ED84D5DBB151D578FB48979F@PTPPICEX03.PTPortugal.corpPT.com> Message-ID: You've got data that is in latlong (units decimal degrees) in your shapefile, however in the EXTENT part of the map file you use EXTENT -20037508 -13590765 20037508 11229864 Which are not latlomngs but some projected coordinates, and UNITS meters IN the LAYER you tell mapserver that its: PROJECTION "proj=longlat" "datum=WGS84" "no_defs" END These two are contradictory. You'll have to match the PROJECTION in the LAYER to the actual projection and units (apparentlt these are correct) , and make sure the EXTENT is expressed in the same system. So best thing is to set the EXTENT in latlons (as its the whole world -180 -90 180 90 is a safe bet) and UNITS to degrees... Yours, -- Barend K?bben Senior Lecturer University of Twente, Faculty of Geo-Information Science and Earth Observation (ITC) PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 04-01-10 19:34, "Nelson Correia" wrote: > Here is the simplified shapefile, along with a mapfile that uses it: > http://www.2shared.com/file/10449234/a18d6a03/countries.html > > Nelson > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: segunda-feira, 4 de Janeiro de 2010 17:28 > To: Nelson Correia; Barend K?bben; Andy Colson > Cc: mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Problem with Russia polygon > > Would be interesting to get a copy of the data in shapefile format, plus the > mapfile that generates the error... > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nelson Correia > Sent: Monday, January 04, 2010 7:32 AM > To: Barend K?bben; Andy Colson > Cc: mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Problem with Russia polygon > > Hello, > > All the russian polygons are valid (st_valid) and closed (st_closed). The > problem seems to be in the vertical lines at 180? and -180? that divide > certain areas of the country. It seems like when mapserver tries to draw these > lines, there's some kind of unknown behavior that make it draw horizontal > lines instead, resulting in very strange polygons. > > However, I have not solved the problem yet. > > Nelson > > -----Original Message----- > From: Barend K?bben [mailto:kobben at itc.nl] > Sent: s?bado, 2 de Janeiro de 2010 15:33 > To: Andy Colson; Nelson Correia > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Problem with Russia polygon > > Hi, > >> I guess to make a long story short, do you have any editors (like qgis) that >> you can use to see/edit the layer and make sure each record is valid? > You can use PostGIS's ST_IsValid() for that. > > The problem of Nelson seems to me to be a 'dateline' problem: you have > coordinates in latlon and some polygons are crossing the dateline (and/or > the poles), therefore the coordinates' sign jumps from - to + (or from E to > W). If you then draw that in a Plate Carree 'projection (where latitudes and > longitudes are treated as if they were Cartesian coordinates , which they > surely aren't: they are angles from the middle of the Earth!), then the > polygon jumps from the extreme right to the extreme left of the picture... > > > -- > Barend K?bben > Senior Lecturer > University of Twente, Faculty of Geo-Information Science and > Earth Observation (ITC) > PO Box 6, 7500AA Enschede, The Netherlands > +31 (0)53 4874253 > > > > On 02-01-10 15:50, "Andy Colson" wrote: > >> On 12/30/2009 11:14 AM, Nelson Correia wrote: >>> Hello, >>> >>> I?m using shapefile world data from gadm.org (I?ve had this same problem >>> with other data sources too) and I?m having a problem with the Russian >>> polygon: mapserver draws some strange lines parallel to the equator, >>> near the north pole (like you can see in the attached image). >>> >>> Anyone had the same problem and knows how to solve it? >>> >>> Thanks, >>> >>> Nelson >> >> I have no idea if this is the same problem, but I have run into weird drawing >> problems before. I import shape files into PostGIS and then use mapserver on >> that. I got a polygon layer that had an unclosed line (I guess that is a >> good >> way to describe it). It pissed off mapserver. I could run sql like: >> >> select gid from layer where not ST_IsClosed(the_geom) >> >> and it would pull it up. The people that sent me the layer swore there was >> nothing wrong with it (they didn't see any error). >> >> I guess to make a long story short, do you have any editors (like qgis) that >> you can use to see/edit the layer and make sure each record is valid? >> >> -Andy >> _______________________________________________ >> 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. > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente 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 bfraser at geoanalytic.com Mon Jan 4 12:57:22 2010 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 4 Jan 2010 13:57:22 -0700 (Mountain Standard Time) Subject: [mapserver-users] mapserver 5.6.0, RFC 52 and driver support In-Reply-To: <.65.255.239.241.1261522488.squirrel@65.255.239.241> References: <.65.255.239.241.1261514878.squirrel@65.255.239.241> <.65.255.239.241.1261515277.squirrel@65.255.239.241> <.65.255.239.241.1261516190.squirrel@65.255.239.241> <.65.255.239.241.1261517626.squirrel@65.255.239.241> <.65.255.239.241.1261520266.squirrel@65.255.239.241> <.65.255.239.241.1261520979.squirrel@65.255.239.241> <.65.255.239.241.1261522488.squirrel@65.255.239.241> Message-ID: <.65.255.239.241.1262638642.squirrel@65.255.239.241> Steve, One unexpected requirement of using OUTPUTFORMAT/TEMPLATE (RFC 36) for the query results is that I still seem to need a LAYER TEMPLATE definition. It can be set to anything except a zero length string: LAYER : TEMPLATE 'bogus' I guess it's required so Mapserver considers the layer queryable? Thanks! Brent > For those following this thread, I used: > > OUTPUTFORMAT > NAME 'UnassignedWells_select_template' > DRIVER 'TEMPLATE' > MIMETYPE 'text/html' > FORMATOPTION > 'FILE=database\UnassignedWells_select_template_test.html' > END > > and added > > [resultset layer="UnAssignedWells"][feature] > : > [/feature][/resultset] > > around the per-record text in UnassignedWells_select_template_test.html > > But as suspected, it still didn't solve my performance problem... > > Brent > >> I've got: >> OUTPUTFORMAT >> NAME 'UnassignedWells_select_template' >> DRIVER 'TEMPLATE' >> MIMETYPE 'text/html' >> TEMPLATE 'database\UnassignedWells_select_template_test.html' >> #? FORMATOPTION >> 'FILE=database\UnassignedWells_select_template_test.html' >> END >> >> in my map file and a command line of: >> >> mapserv >> QUERY_STRING="mode=nquery&qformat=UnassignedWells_select_template&map=select2_Test.map&qlayer=UnAssignedWells&" >> >> Am I close? >> >> Thanks >> Brent >> >> >>> Yup. What sort of an example would help? >>> >>> -----Original Message----- >>> From: Brent Fraser [mailto:bfraser at geoanalytic.com] >>> Sent: Tuesday, December 22, 2009 4:18 PM >>> To: Lime, Steve D (DNR) >>> Cc: mapserver-users at lists.osgeo.org >>> Subject: RE: [mapserver-users] mapserver 5.6.0, RFC 52 and driver >>> support >>> >>> I'd like to give the new-style approach a try, but the doc seems a >>> little >>> thin. You've talking about RFC 36 right? >>> >>>> The new-style approach opens the template only once. That's not your >>>> bottleneck though I bet... >>>> >>>> -----Original Message----- >>>> From: Brent Fraser [mailto:bfraser at geoanalytic.com] >>>> Sent: Tuesday, December 22, 2009 3:34 PM >>>> To: Lime, Steve D (DNR) >>>> Cc: mapserver-users at lists.osgeo.org >>>> Subject: RE: [mapserver-users] mapserver 5.6.0, RFC 52 and driver >>>> support >>>> >>>>> What kind of templating are you using? The old-style stuff or the >>>>> new-style? How many results you talking? >>>> >>>> Old style. Low 100's of records returned... >>>> >>>>> >>>>> -----Original Message----- >>>>> From: Brent Fraser [mailto:bfraser at geoanalytic.com] >>>>> Sent: Tuesday, December 22, 2009 3:10 PM >>>>> To: Lime, Steve D (DNR) >>>>> Cc: mapserver-users at lists.osgeo.org >>>>> Subject: RE: [mapserver-users] mapserver 5.6.0, RFC 52 and driver >>>>> support >>>>> >>>>> The strange thing is the image render is quick (a few seconds), but >>>>> the >>>>> nquery+mapshape (rectangle) with the processing of the template is >>>>> several >>>>> minutes. And while it opens/reads/closes the template file for each >>>>> record(!), I suspect the majority of the time is spent requesting the >>>>> record and dealing with the result. >>>>> >>>>> Ok, on goes the hacker suit... >>>>> >>>>> Thanks! >>>>> Brent >>>>> >>>>>> Probably a question better answered by OGR maintainers... In theory >>>>>> working off a single >>>>>> result set, even if you have to traverse it more than once, would be >>>>>> far >>>>>> more efficient >>>>>> than id-based lookups done now. >>>>>> >>>>>> Steve >>>>>> >>>>>> -----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, December 22, 2009 2:55 PM >>>>>> To: Lime, Steve D (DNR) >>>>>> Cc: mapserver-users at lists.osgeo.org >>>>>> Subject: RE: [mapserver-users] mapserver 5.6.0, RFC 52 and driver >>>>>> support >>>>>> >>>>>> Do you think there would be any point in making the changes for OGR >>>>>> (for >>>>>> my ODBC -> Sql Server connection)? If so, I'll start having a look >>>>>> at >>>>>> the >>>>>> code... >>>>>> >>>>>> Brent >>>>>> >>>>>>> The improvements are limited to native drivers only, principally >>>>>>> Oracle >>>>>>> Spatial and PostGIS. >>>>>>> >>>>>>> Steve >>>>>>> >>>>>>> -----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, December 22, 2009 2:48 PM >>>>>>> To: mapserver-users at lists.osgeo.org >>>>>>> Subject: [mapserver-users] mapserver 5.6.0, RFC 52 and driver >>>>>>> support >>>>>>> >>>>>>> To all, >>>>>>> >>>>>>> I've got a query performance problem I'm trying to track down. I >>>>>>> was >>>>>>> hopeful that 5.6 with RFC 52 implemented might help me, but it >>>>>>> seems >>>>>>> to >>>>>>> have no impact. >>>>>>> >>>>>>> Are the changes for RFC 52 implemented for OGR ODBC connections? >>>>>>> >>>>>>> Thanks! >>>>>>> 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 >> > > From Steve.Lime at state.mn.us Mon Jan 4 13:36:39 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 4 Jan 2010 15:36:39 -0600 Subject: [mapserver-users] mapserver 5.6.0, RFC 52 and driver support In-Reply-To: <.65.255.239.241.1262638642.squirrel@65.255.239.241> References: <.65.255.239.241.1261514878.squirrel@65.255.239.241> <.65.255.239.241.1261515277.squirrel@65.255.239.241> <.65.255.239.241.1261516190.squirrel@65.255.239.241> <.65.255.239.241.1261517626.squirrel@65.255.239.241> <.65.255.239.241.1261520266.squirrel@65.255.239.241> <.65.255.239.241.1261520979.squirrel@65.255.239.241> <.65.255.239.241.1261522488.squirrel@65.255.239.241> <.65.255.239.241.1262638642.squirrel@65.255.239.241> Message-ID: Correct. We've not gotten around to a more formal declaration. Steve -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Monday, January 04, 2010 2:57 PM To: Lime, Steve D (DNR) Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] mapserver 5.6.0, RFC 52 and driver support Steve, One unexpected requirement of using OUTPUTFORMAT/TEMPLATE (RFC 36) for the query results is that I still seem to need a LAYER TEMPLATE definition. It can be set to anything except a zero length string: LAYER : TEMPLATE 'bogus' I guess it's required so Mapserver considers the layer queryable? Thanks! Brent > For those following this thread, I used: > > OUTPUTFORMAT > NAME 'UnassignedWells_select_template' > DRIVER 'TEMPLATE' > MIMETYPE 'text/html' > FORMATOPTION > 'FILE=database\UnassignedWells_select_template_test.html' > END > > and added > > [resultset layer="UnAssignedWells"][feature] > : > [/feature][/resultset] > > around the per-record text in UnassignedWells_select_template_test.html > > But as suspected, it still didn't solve my performance problem... > > Brent > >> I've got: >> OUTPUTFORMAT >> NAME 'UnassignedWells_select_template' >> DRIVER 'TEMPLATE' >> MIMETYPE 'text/html' >> TEMPLATE 'database\UnassignedWells_select_template_test.html' >> #? FORMATOPTION >> 'FILE=database\UnassignedWells_select_template_test.html' >> END >> >> in my map file and a command line of: >> >> mapserv >> QUERY_STRING="mode=nquery&qformat=UnassignedWells_select_template&map=select2_Test.map&qlayer=UnAssignedWells&" >> >> Am I close? >> >> Thanks >> Brent >> >> >>> Yup. What sort of an example would help? >>> >>> -----Original Message----- >>> From: Brent Fraser [mailto:bfraser at geoanalytic.com] >>> Sent: Tuesday, December 22, 2009 4:18 PM >>> To: Lime, Steve D (DNR) >>> Cc: mapserver-users at lists.osgeo.org >>> Subject: RE: [mapserver-users] mapserver 5.6.0, RFC 52 and driver >>> support >>> >>> I'd like to give the new-style approach a try, but the doc seems a >>> little >>> thin. You've talking about RFC 36 right? >>> >>>> The new-style approach opens the template only once. That's not your >>>> bottleneck though I bet... >>>> >>>> -----Original Message----- >>>> From: Brent Fraser [mailto:bfraser at geoanalytic.com] >>>> Sent: Tuesday, December 22, 2009 3:34 PM >>>> To: Lime, Steve D (DNR) >>>> Cc: mapserver-users at lists.osgeo.org >>>> Subject: RE: [mapserver-users] mapserver 5.6.0, RFC 52 and driver >>>> support >>>> >>>>> What kind of templating are you using? The old-style stuff or the >>>>> new-style? How many results you talking? >>>> >>>> Old style. Low 100's of records returned... >>>> >>>>> >>>>> -----Original Message----- >>>>> From: Brent Fraser [mailto:bfraser at geoanalytic.com] >>>>> Sent: Tuesday, December 22, 2009 3:10 PM >>>>> To: Lime, Steve D (DNR) >>>>> Cc: mapserver-users at lists.osgeo.org >>>>> Subject: RE: [mapserver-users] mapserver 5.6.0, RFC 52 and driver >>>>> support >>>>> >>>>> The strange thing is the image render is quick (a few seconds), but >>>>> the >>>>> nquery+mapshape (rectangle) with the processing of the template is >>>>> several >>>>> minutes. And while it opens/reads/closes the template file for each >>>>> record(!), I suspect the majority of the time is spent requesting the >>>>> record and dealing with the result. >>>>> >>>>> Ok, on goes the hacker suit... >>>>> >>>>> Thanks! >>>>> Brent >>>>> >>>>>> Probably a question better answered by OGR maintainers... In theory >>>>>> working off a single >>>>>> result set, even if you have to traverse it more than once, would be >>>>>> far >>>>>> more efficient >>>>>> than id-based lookups done now. >>>>>> >>>>>> Steve >>>>>> >>>>>> -----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, December 22, 2009 2:55 PM >>>>>> To: Lime, Steve D (DNR) >>>>>> Cc: mapserver-users at lists.osgeo.org >>>>>> Subject: RE: [mapserver-users] mapserver 5.6.0, RFC 52 and driver >>>>>> support >>>>>> >>>>>> Do you think there would be any point in making the changes for OGR >>>>>> (for >>>>>> my ODBC -> Sql Server connection)? If so, I'll start having a look >>>>>> at >>>>>> the >>>>>> code... >>>>>> >>>>>> Brent >>>>>> >>>>>>> The improvements are limited to native drivers only, principally >>>>>>> Oracle >>>>>>> Spatial and PostGIS. >>>>>>> >>>>>>> Steve >>>>>>> >>>>>>> -----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, December 22, 2009 2:48 PM >>>>>>> To: mapserver-users at lists.osgeo.org >>>>>>> Subject: [mapserver-users] mapserver 5.6.0, RFC 52 and driver >>>>>>> support >>>>>>> >>>>>>> To all, >>>>>>> >>>>>>> I've got a query performance problem I'm trying to track down. I >>>>>>> was >>>>>>> hopeful that 5.6 with RFC 52 implemented might help me, but it >>>>>>> seems >>>>>>> to >>>>>>> have no impact. >>>>>>> >>>>>>> Are the changes for RFC 52 implemented for OGR ODBC connections? >>>>>>> >>>>>>> Thanks! >>>>>>> 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 >> > > From john.callahan at udel.edu Mon Jan 4 13:51:54 2010 From: john.callahan at udel.edu (John Callahan) Date: Mon, 4 Jan 2010 16:51:54 -0500 Subject: [mapserver-users] php mapscript Message-ID: Does anyone know of a php_mapscript.dll (this is for Windows) that works with MapServer 5.4+ and PHP 5.2? Looking at MS4W 3.0 beta, it looks like it's for MS 5.4.2 and PHP 5.3. Previous version of MS4W is for PHP 5.2 and MS 5.2.4. Thanks. - John ************************************************** John Callahan, Geospatial Application Developer Delaware Geological Survey, University of Delaware URL: http://www.dgs.udel.edu ************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Mon Jan 4 14:03:29 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 5 Jan 2010 00:03:29 +0200 Subject: [mapserver-users] Problem with Russia polygon References: Message-ID: Hi, Unfortunately the extents are OK and the problem is something more complicated. Extents are indeed in meters but that's how they must be because the MAP level projection looks like this: PROJECTION "init=epsg:900913" END -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Barend K?bben L?hetetty: ma 4.1.2010 22:52 Vastaanottaja: Nelson Correia; Lime, Steve D (DNR); Andy Colson Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Problem with Russia polygon You've got data that is in latlong (units decimal degrees) in your shapefile, however in the EXTENT part of the map file you use EXTENT -20037508 -13590765 20037508 11229864 Which are not latlomngs but some projected coordinates, and UNITS meters IN the LAYER you tell mapserver that its: PROJECTION "proj=longlat" "datum=WGS84" "no_defs" END These two are contradictory. You'll have to match the PROJECTION in the LAYER to the actual projection and units (apparentlt these are correct) , and make sure the EXTENT is expressed in the same system. So best thing is to set the EXTENT in latlons (as its the whole world -180 -90 180 90 is a safe bet) and UNITS to degrees... Yours, -- Barend K?bben Senior Lecturer University of Twente, Faculty of Geo-Information Science and Earth Observation (ITC) PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 04-01-10 19:34, "Nelson Correia" wrote: > Here is the simplified shapefile, along with a mapfile that uses it: > http://www.2shared.com/file/10449234/a18d6a03/countries.html > > Nelson > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: segunda-feira, 4 de Janeiro de 2010 17:28 > To: Nelson Correia; Barend K?bben; Andy Colson > Cc: mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Problem with Russia polygon > > Would be interesting to get a copy of the data in shapefile format, plus the > mapfile that generates the error... > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nelson Correia > Sent: Monday, January 04, 2010 7:32 AM > To: Barend K?bben; Andy Colson > Cc: mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Problem with Russia polygon > > Hello, > > All the russian polygons are valid (st_valid) and closed (st_closed). The > problem seems to be in the vertical lines at 180? and -180? that divide > certain areas of the country. It seems like when mapserver tries to draw these > lines, there's some kind of unknown behavior that make it draw horizontal > lines instead, resulting in very strange polygons. > > However, I have not solved the problem yet. > > Nelson > > -----Original Message----- > From: Barend K?bben [mailto:kobben at itc.nl] > Sent: s?bado, 2 de Janeiro de 2010 15:33 > To: Andy Colson; Nelson Correia > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Problem with Russia polygon > > Hi, > >> I guess to make a long story short, do you have any editors (like qgis) that >> you can use to see/edit the layer and make sure each record is valid? > You can use PostGIS's ST_IsValid() for that. > > The problem of Nelson seems to me to be a 'dateline' problem: you have > coordinates in latlon and some polygons are crossing the dateline (and/or > the poles), therefore the coordinates' sign jumps from - to + (or from E to > W). If you then draw that in a Plate Carree 'projection (where latitudes and > longitudes are treated as if they were Cartesian coordinates , which they > surely aren't: they are angles from the middle of the Earth!), then the > polygon jumps from the extreme right to the extreme left of the picture... > > > -- > Barend K?bben > Senior Lecturer > University of Twente, Faculty of Geo-Information Science and > Earth Observation (ITC) > PO Box 6, 7500AA Enschede, The Netherlands > +31 (0)53 4874253 > > > > On 02-01-10 15:50, "Andy Colson" wrote: > >> On 12/30/2009 11:14 AM, Nelson Correia wrote: >>> Hello, >>> >>> I?m using shapefile world data from gadm.org (I?ve had this same problem >>> with other data sources too) and I?m having a problem with the Russian >>> polygon: mapserver draws some strange lines parallel to the equator, >>> near the north pole (like you can see in the attached image). >>> >>> Anyone had the same problem and knows how to solve it? >>> >>> Thanks, >>> >>> Nelson >> >> I have no idea if this is the same problem, but I have run into weird drawing >> problems before. I import shape files into PostGIS and then use mapserver on >> that. I got a polygon layer that had an unclosed line (I guess that is a >> good >> way to describe it). It pissed off mapserver. I could run sql like: >> >> select gid from layer where not ST_IsClosed(the_geom) >> >> and it would pull it up. The people that sent me the layer swore there was >> nothing wrong with it (they didn't see any error). >> >> I guess to make a long story short, do you have any editors (like qgis) that >> you can use to see/edit the layer and make sure each record is valid? >> >> -Andy >> _______________________________________________ >> 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. > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente 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. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From gmbh at gazeta.pl Mon Jan 4 15:16:51 2010 From: gmbh at gazeta.pl (Marek Wawoczny) Date: Tue, 05 Jan 2010 00:16:51 +0100 Subject: [mapserver-users] Mapserver OSM data render problem Message-ID: <4B4276E3.6070109@gazeta.pl> Hello, I have an problem with Mapserver OSM setup. I've used tutorial from http://trac.osgeo.org/mapserver/wiki/RenderingOsmData and new mapnik-utils scripts from SVN. When I test my setup with shp2img I receive image with coastlines only: http://yfrog.com/0cosmsj If I test the same database with Mapnik generate_image.py script I receive full image: http://yfrog.com/j5imagebmj Any one knows what could be wrong? One more thing - shp2img returns message "msPostGISLayerWhichShapes got 0 records in result." when run in debug mode - seems that queries returns no rows - but I don't know why. Here is my .map file contents: http://www.pastie.org/766740.txt?key=nq4abq014rv13bpeciha Any ideas? Thank you, best regards! Marek From Jukka.Rahkonen at mmmtike.fi Mon Jan 4 22:01:22 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 5 Jan 2010 08:01:22 +0200 Subject: [mapserver-users] Mapserver OSM data render problem References: <4B4276E3.6070109@gazeta.pl> Message-ID: Hi, What options did you use when importing data with osm2pgsql? The mapfile is set to use projection epsg:4326 and that requires the use of some switch with osm2pgsql, perhaps it is -l. README.txt of ogr2pgsql tells about osm2pgsql projections: " Depending on what you're using one or the other is appropriate. The default mapnik style (osm.xml) assumes that the data is stored in 900913 and this is the default for osm2pgsql. Combining the -v and -h switches will tell about the exact definitions of the projections." Try either by importing data again by using a swith suitable for epsg:4326 or by editing your mapfile to use epsg:900913 instead of epsg:4326. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Marek Wawoczny L?hetetty: ti 5.1.2010 1:16 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Mapserver OSM data render problem Hello, I have an problem with Mapserver OSM setup. I've used tutorial from http://trac.osgeo.org/mapserver/wiki/RenderingOsmData and new mapnik-utils scripts from SVN. When I test my setup with shp2img I receive image with coastlines only: http://yfrog.com/0cosmsj If I test the same database with Mapnik generate_image.py script I receive full image: http://yfrog.com/j5imagebmj Any one knows what could be wrong? One more thing - shp2img returns message "msPostGISLayerWhichShapes got 0 records in result." when run in debug mode - seems that queries returns no rows - but I don't know why. Here is my .map file contents: http://www.pastie.org/766740.txt?key=nq4abq014rv13bpeciha Any ideas? Thank you, best regards! Marek _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From nelson-correia at telecom.pt Tue Jan 5 06:05:29 2010 From: nelson-correia at telecom.pt (Nelson Correia) Date: Tue, 5 Jan 2010 14:05:29 +0000 Subject: [mapserver-users] Problem with Russia polygon In-Reply-To: References: Message-ID: <125FE5C84575394CB9ED84D5DBB151D578FB4897B2@PTPPICEX03.PTPortugal.corpPT.com> The problem seems to be with the re-projection from 4326 to 900913, which I'm doing with mapserver (hence, the map file configuration). If I configure the mapfile to use 4326 and make a request in 4326, the problem disappear. So, the re-projection to 900913 should be screwing the polygons at the edges of the map. I tried to re-project the polygons with postgis (st_transform), but I got the following error: ERROR: transform: couldn't project point: -20 (tolerance condition error) Which I don't know the meaning. In the project I'm doing, I have to use 900913, so, if anyone have some ideas of how to solve this, they will be well appreciated. Thanks, Nelson -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: segunda-feira, 4 de Janeiro de 2010 22:03 To: Barend K?bben; Nelson Correia; Lime, Steve D (DNR); Andy Colson Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with Russia polygon Hi, Unfortunately the extents are OK and the problem is something more complicated. Extents are indeed in meters but that's how they must be because the MAP level projection looks like this: PROJECTION "init=epsg:900913" END -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Barend K?bben L?hetetty: ma 4.1.2010 22:52 Vastaanottaja: Nelson Correia; Lime, Steve D (DNR); Andy Colson Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Problem with Russia polygon You've got data that is in latlong (units decimal degrees) in your shapefile, however in the EXTENT part of the map file you use EXTENT -20037508 -13590765 20037508 11229864 Which are not latlomngs but some projected coordinates, and UNITS meters IN the LAYER you tell mapserver that its: PROJECTION "proj=longlat" "datum=WGS84" "no_defs" END These two are contradictory. You'll have to match the PROJECTION in the LAYER to the actual projection and units (apparentlt these are correct) , and make sure the EXTENT is expressed in the same system. So best thing is to set the EXTENT in latlons (as its the whole world -180 -90 180 90 is a safe bet) and UNITS to degrees... Yours, -- Barend K?bben Senior Lecturer University of Twente, Faculty of Geo-Information Science and Earth Observation (ITC) PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 04-01-10 19:34, "Nelson Correia" wrote: > Here is the simplified shapefile, along with a mapfile that uses it: > http://www.2shared.com/file/10449234/a18d6a03/countries.html > > Nelson > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: segunda-feira, 4 de Janeiro de 2010 17:28 > To: Nelson Correia; Barend K?bben; Andy Colson > Cc: mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Problem with Russia polygon > > Would be interesting to get a copy of the data in shapefile format, plus the > mapfile that generates the error... > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nelson Correia > Sent: Monday, January 04, 2010 7:32 AM > To: Barend K?bben; Andy Colson > Cc: mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Problem with Russia polygon > > Hello, > > All the russian polygons are valid (st_valid) and closed (st_closed). The > problem seems to be in the vertical lines at 180? and -180? that divide > certain areas of the country. It seems like when mapserver tries to draw these > lines, there's some kind of unknown behavior that make it draw horizontal > lines instead, resulting in very strange polygons. > > However, I have not solved the problem yet. > > Nelson > > -----Original Message----- > From: Barend K?bben [mailto:kobben at itc.nl] > Sent: s?bado, 2 de Janeiro de 2010 15:33 > To: Andy Colson; Nelson Correia > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Problem with Russia polygon > > Hi, > >> I guess to make a long story short, do you have any editors (like qgis) that >> you can use to see/edit the layer and make sure each record is valid? > You can use PostGIS's ST_IsValid() for that. > > The problem of Nelson seems to me to be a 'dateline' problem: you have > coordinates in latlon and some polygons are crossing the dateline (and/or > the poles), therefore the coordinates' sign jumps from - to + (or from E to > W). If you then draw that in a Plate Carree 'projection (where latitudes and > longitudes are treated as if they were Cartesian coordinates , which they > surely aren't: they are angles from the middle of the Earth!), then the > polygon jumps from the extreme right to the extreme left of the picture... > > > -- > Barend K?bben > Senior Lecturer > University of Twente, Faculty of Geo-Information Science and > Earth Observation (ITC) > PO Box 6, 7500AA Enschede, The Netherlands > +31 (0)53 4874253 > > > > On 02-01-10 15:50, "Andy Colson" wrote: > >> On 12/30/2009 11:14 AM, Nelson Correia wrote: >>> Hello, >>> >>> I?m using shapefile world data from gadm.org (I?ve had this same problem >>> with other data sources too) and I?m having a problem with the Russian >>> polygon: mapserver draws some strange lines parallel to the equator, >>> near the north pole (like you can see in the attached image). >>> >>> Anyone had the same problem and knows how to solve it? >>> >>> Thanks, >>> >>> Nelson >> >> I have no idea if this is the same problem, but I have run into weird drawing >> problems before. I import shape files into PostGIS and then use mapserver on >> that. I got a polygon layer that had an unclosed line (I guess that is a >> good >> way to describe it). It pissed off mapserver. I could run sql like: >> >> select gid from layer where not ST_IsClosed(the_geom) >> >> and it would pull it up. The people that sent me the layer swore there was >> nothing wrong with it (they didn't see any error). >> >> I guess to make a long story short, do you have any editors (like qgis) that >> you can use to see/edit the layer and make sure each record is valid? >> >> -Andy >> _______________________________________________ >> 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. > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente 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. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From stelaanders at gmail.com Tue Jan 5 06:20:26 2010 From: stelaanders at gmail.com (stela anders) Date: Tue, 5 Jan 2010 11:20:26 -0300 Subject: [mapserver-users] Error configuring WMS app : Projection library error. Invalid argument... Message-ID: Hello all... I?m stuck trying to convert a mapscript app to WMS ... My mapfile : MAP EXTENT -79.7892 -34.2426 -24.9958 6.11775 FONTSET "..\Fonts.txt" IMAGECOLOR 230 254 254 IMAGETYPE png SIZE 400 200 STATUS ON UNITS dd NAME "Map" INCLUDE "Simbols.sym" OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE "PC256" TRANSPARENT TRUE END PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END WEB IMAGEPATH 'C:\map\temp' IMAGEURL '/tmp/' QUERYFORMAT text/html LEGENDFORMAT text/html BROWSEFORMAT text/html METADATA "wms_title" "WMS Server" ##required "wms_onlineresource" "http://localhost/cgi-bin-last/mapserv.exe?" ##required "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326" ##recommended END END LEGEND ... END REFERENCE ... END LAYER NAME Argentina METADATA "wms_title" "Argentina" ##required END TYPE POLYGON STATUS ON INCLUDE "Connection.map" DATA "the_geom from tbl_argentina USING UNIQUE gid USING SRID=0" PROJECTION "proj=longlat" "ellps=WGS84" "datum=WGS84" "no_defs" END CLASS COLOR 255 200 255 END END END When I try to open that with my OpenLayer app, I got images with that error : Error: msProcessProjection(): *Projection library error*. *Invalid argument http://localhost/cgi-bin-last/mapserv.exe?MAP=C:/inetpub/wwwroot/Openlayer/Mapserver/Mapfile/Map.map&LAYERS=Argentina&TRANSPARENT=true&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-62.9142,-17.3676,-57.2892,-11.7426&WIDTH=256&HEIGHT=256 Any help pleasssssse! Stella * -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Jan 5 06:56:35 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 5 Jan 2010 16:56:35 +0200 Subject: [mapserver-users] WMS bounding box and tileindex raster layer Message-ID: Hi, It seems to be that MapServer WMS does not automatically generate WMS bounding box metadata for raster layers which are read through tileindex. However, the metadata is generated if I publish the tileindex shapefile as a normal vector layer. Is there some good reason for not calculating the bounds of the raster layer from the tileindex shapefile? -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Tue Jan 5 07:03:10 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 05 Jan 2010 10:03:10 -0500 Subject: [mapserver-users] Error configuring WMS app : Projection library error. Invalid argument... In-Reply-To: References: Message-ID: <4B4354AE.9060506@pobox.com> stela anders wrote: > LAYER > NAME Argentina > METADATA > "wms_title" "Argentina" ##required > END > TYPE POLYGON > STATUS ON > INCLUDE "Connection.map" > DATA "the_geom from tbl_argentina USING UNIQUE gid USING SRID=0" > PROJECTION > "proj=longlat" > "ellps=WGS84" > "datum=WGS84" > "no_defs" > END > > CLASS > COLOR 255 200 255 > END > END > > END > > When I try to open that with my OpenLayer app, I got images with that > error : > > Error: msProcessProjection(): /Projection library error/. /Invalid argument Stella, I am not sure why you are getting this error. I search high and low and can't find "Invalid argument" in either MapServer or PROJ.4. Are you working on linux or Windows? Were the "/" characters really in this message? It is hard for me to understand how this could happen. With regard to your mapfile, I was surprised that you don't have wms_srs metadata on your layer. It is a shot in the dark, but perhaps you could add wms_srs EPSG:4326 metadata on the layer, and reorder the wms_srs metadata on the map to put EPSG:4326 first. Also, you could try changing: > PROJECTION > "proj=longlat" > "ellps=WGS84" > "datum=WGS84" > "no_defs" > END to: PROJECTION "+init=epsg:4326" END in both the layer and map. This is slower to expand but it might make it easier for mapserver to relate to epsg codes. 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 warmerdam at pobox.com Tue Jan 5 07:04:35 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 05 Jan 2010 10:04:35 -0500 Subject: [mapserver-users] WMS bounding box and tileindex raster layer In-Reply-To: References: Message-ID: <4B435503.3070109@pobox.com> Rahkonen Jukka wrote: > Hi, > > It seems to be that MapServer WMS does not automatically generate WMS > bounding box metadata for raster layers which are read through > tileindex. However, the metadata is generated if I publish the > tileindex shapefile as a normal vector layer. Is there some good reason > for not calculating the bounds of the raster layer from the tileindex > shapefile? Jukka, The reason is sloth, though this isn't a very good reason. It ought to be done. 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 stelaanders at gmail.com Tue Jan 5 07:56:08 2010 From: stelaanders at gmail.com (stela anders) Date: Tue, 5 Jan 2010 12:56:08 -0300 Subject: [mapserver-users] Error configuring WMS app : Projection library error. Invalid argument... In-Reply-To: <4B4354AE.9060506@pobox.com> References: <4B4354AE.9060506@pobox.com> Message-ID: Hello Frank! Thanks for your time ;) I?m working on Windows 7... I made all modifications you suggest me, but got the same error... The URL now is : http://localhost/cgi-bin-last/mapserv.exe?MAP=C:/inetpub/wwwroot/Openlayer/Mapserver/Mapfile/Map.map&LAYERS=Argentina&TRANSPARENT=true&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:4326&BBOX=-62.9142,-17.3676,-57.2892,-11.7426&WIDTH=256&HEIGHT=256 The only difference that I noticed is that the error in browser now is in TEXT format... Before the error was write in a Image... I?m completely lost ! :( Any other idea? ps.: Sorry for my bad english Stella 2010/1/5 Frank Warmerdam > stela anders wrote: > >> LAYER >> NAME Argentina >> METADATA >> "wms_title" "Argentina" ##required >> END TYPE POLYGON >> STATUS ON >> INCLUDE "Connection.map" DATA "the_geom from >> tbl_argentina USING UNIQUE gid USING SRID=0" >> PROJECTION >> "proj=longlat" >> "ellps=WGS84" >> "datum=WGS84" >> "no_defs" >> END >> >> CLASS >> COLOR 255 200 255 >> END >> END >> >> END >> >> When I try to open that with my OpenLayer app, I got images with that >> error : >> >> Error: msProcessProjection(): /Projection library error/. /Invalid >> argument >> > > Stella, > > I am not sure why you are getting this error. I search high and low and > can't > find "Invalid argument" in either MapServer or PROJ.4. Are you working on > linux or Windows? Were the "/" characters really in this message? It is > hard for me to understand how this could happen. > > With regard to your mapfile, I was surprised that you don't have > wms_srs metadata on your layer. It is a shot in the dark, but perhaps you > could add wms_srs EPSG:4326 metadata on the layer, and reorder the wms_srs > metadata on the map to put EPSG:4326 first. > > Also, you could try changing: > > > > PROJECTION > > "proj=longlat" > > "ellps=WGS84" > > "datum=WGS84" > > "no_defs" > > END > > to: > > PROJECTION > "+init=epsg:4326" > END > > in both the layer and map. This is slower to expand but it might > make it easier for mapserver to relate to epsg codes. > > > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From c.declercq at alkante.com Tue Jan 5 07:49:28 2010 From: c.declercq at alkante.com (Charlotte DECLERCQ) Date: Tue, 5 Jan 2010 16:49:28 +0100 (CET) Subject: [mapserver-users] MAPSCRIPT - queryByAttributes on WFS layer In-Reply-To: <1953474463.1657.1262699330482.JavaMail.root@linux12> Message-ID: <1333039532.1666.1262706568867.JavaMail.root@linux12> Hello, I am trying to launch a query on a WFS layer. The query is : $oLayer->queryByAttributes($m_Champs, "\"".stripslashes($m_Requete)."\"", MS_MULTIPLE ); with $m_Champs : gid $m_Requete : upper(gid) = upper(\'140\') Whereas there is one record matching, mapserver can't find it : No matching record(s) found. I obtain the same result with $m_Requete : gid = '140', or gid = 140, or gid = \'140\' But if $m_Requete is equals to 140, then mapserver returns the element. Any idea? Thanks, -- Charlotte DECLERCQ ALKANTE SAS Ing?nieur R&D SIG 1, rue du Ch?ne Morand 35 510 Cesson-S?vign? Bur: + 33 (0) 2 99 22 25 70 fax : + 33 (0) 2 99 32 12 76 From dgwalton at gmail.com Tue Jan 5 08:07:32 2010 From: dgwalton at gmail.com (Daniel Walton) Date: Tue, 5 Jan 2010 10:07:32 -0600 Subject: [mapserver-users] Error configuring WMS app : Projection library error. Invalid argument... In-Reply-To: References: <4B4354AE.9060506@pobox.com> Message-ID: <8ab83e651001050807i119724f5n5b441c3433e3f6ca@mail.gmail.com> Stella, Try adding a config entry to your mapfile that points to the folder containing your epsg configuration file: MAP ... CONFIG "PROJ_LIB" "C:/somedir/proj/nad/" ... END Dan Walton dgwalton at gmail.com [image: Linkedin] [image: Twitter] On Tue, Jan 5, 2010 at 9:56 AM, stela anders wrote: > Hello Frank! > Thanks for your time ;) > > I?m working on Windows 7... > > I made all modifications you suggest me, but got the same error... > The URL now is : > > > http://localhost/cgi-bin-last/mapserv.exe?MAP=C:/inetpub/wwwroot/Openlayer/Mapserver/Mapfile/Map.map&LAYERS=Argentina&TRANSPARENT=true&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:4326&BBOX=-62.9142,-17.3676,-57.2892,-11.7426&WIDTH=256&HEIGHT=256 > > > The only difference that I noticed is that the error in browser now is in > TEXT format... > Before the error was write in a Image... > > I?m completely lost ! :( > > Any other idea? > > ps.: Sorry for my bad english > > Stella > > 2010/1/5 Frank Warmerdam > > stela anders wrote: >> >>> LAYER >>> NAME Argentina >>> METADATA >>> "wms_title" "Argentina" ##required >>> END TYPE POLYGON >>> STATUS ON >>> INCLUDE "Connection.map" DATA "the_geom from >>> tbl_argentina USING UNIQUE gid USING SRID=0" >>> PROJECTION >>> "proj=longlat" >>> "ellps=WGS84" >>> "datum=WGS84" >>> "no_defs" >>> END >>> >>> CLASS >>> COLOR 255 200 255 >>> END >>> END >>> >>> END >>> >>> When I try to open that with my OpenLayer app, I got images with that >>> error : >>> >>> Error: msProcessProjection(): /Projection library error/. /Invalid >>> argument >>> >> >> Stella, >> >> I am not sure why you are getting this error. I search high and low and >> can't >> find "Invalid argument" in either MapServer or PROJ.4. Are you working on >> linux or Windows? Were the "/" characters really in this message? It is >> hard for me to understand how this could happen. >> >> With regard to your mapfile, I was surprised that you don't have >> wms_srs metadata on your layer. It is a shot in the dark, but perhaps you >> could add wms_srs EPSG:4326 metadata on the layer, and reorder the wms_srs >> metadata on the map to put EPSG:4326 first. >> >> Also, you could try changing: >> >> >> > PROJECTION >> > "proj=longlat" >> > "ellps=WGS84" >> > "datum=WGS84" >> > "no_defs" >> > END >> >> to: >> >> PROJECTION >> "+init=epsg:4326" >> END >> >> in both the layer and map. This is slower to expand but it might >> make it easier for mapserver to relate to epsg codes. >> >> >> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Tue Jan 5 08:10:28 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 05 Jan 2010 11:10:28 -0500 Subject: [mapserver-users] MAPSCRIPT - queryByAttributes on WFS layer In-Reply-To: <1333039532.1666.1262706568867.JavaMail.root@linux12> References: <1333039532.1666.1262706568867.JavaMail.root@linux12> Message-ID: <4B436474.4020609@mapgears.com> Charlotte DECLERCQ wrote: > Hello, > > I am trying to launch a query on a WFS layer. > The query is : > $oLayer->queryByAttributes($m_Champs, "\"".stripslashes($m_Requete)."\"", MS_MULTIPLE ); > with $m_Champs : gid > $m_Requete : upper(gid) = upper(\'140\') > > Whereas there is one record matching, mapserver can't find it : No matching record(s) found. > > I obtain the same result with $m_Requete : gid = '140', or gid = 140, or gid = \'140\' > > But if $m_Requete is equals to 140, then mapserver returns the element. > > Any idea? > > Thanks, > If $m_Requete contains a logical expression such as "gid = '140'" then you need to enclose it inside round brackets for the parser to detect that it is a logical expression. If you enclose it inside double quotes (as you did above) then it treats $m_requete as a constant that is matched against $m_champs. That's why things work when you use $m_requete = "140"; So the best fix is to use $m_requete = "140" with the queryByAttributes() statement above since constant expressions are the fastest. However, if you want to pass a logical expression for some reason, then you should use: $oLayer->queryByAttributes($m_Champs, "(".stripslashes($m_Requete).")", MS_MULTIPLE ); Daniel -- Daniel Morissette http://www.mapgears.com/ From stelaanders at gmail.com Tue Jan 5 08:18:36 2010 From: stelaanders at gmail.com (stela anders) Date: Tue, 5 Jan 2010 13:18:36 -0300 Subject: [mapserver-users] Error configuring WMS app : Projection library error. Invalid argument... In-Reply-To: <8ab83e651001050807i119724f5n5b441c3433e3f6ca@mail.gmail.com> References: <4B4354AE.9060506@pobox.com> <8ab83e651001050807i119724f5n5b441c3433e3f6ca@mail.gmail.com> Message-ID: Woww! Thats it!!!! Worked now! Thanksss guysss ! Thanks Daniel! iuupi! Stella 2010/1/5 Daniel Walton > Stella, > > Try adding a config entry to your mapfile that points to the folder > containing your epsg configuration file: > > MAP > ... > CONFIG "PROJ_LIB" "C:/somedir/proj/nad/" > > > ... > END > > > > Dan Walton > dgwalton at gmail.com > [image: Linkedin] [image: > Twitter] > > > On Tue, Jan 5, 2010 at 9:56 AM, stela anders wrote: > >> Hello Frank! >> Thanks for your time ;) >> >> I?m working on Windows 7... >> >> I made all modifications you suggest me, but got the same error... >> The URL now is : >> >> >> http://localhost/cgi-bin-last/mapserv.exe?MAP=C:/inetpub/wwwroot/Openlayer/Mapserver/Mapfile/Map.map&LAYERS=Argentina&TRANSPARENT=true&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:4326&BBOX=-62.9142,-17.3676,-57.2892,-11.7426&WIDTH=256&HEIGHT=256 >> >> >> The only difference that I noticed is that the error in browser now is in >> TEXT format... >> Before the error was write in a Image... >> >> I?m completely lost ! :( >> >> Any other idea? >> >> ps.: Sorry for my bad english >> >> Stella >> >> 2010/1/5 Frank Warmerdam >> >> stela anders wrote: >>> >>>> LAYER >>>> NAME Argentina >>>> METADATA >>>> "wms_title" "Argentina" ##required >>>> END TYPE POLYGON >>>> STATUS ON >>>> INCLUDE "Connection.map" DATA "the_geom from >>>> tbl_argentina USING UNIQUE gid USING SRID=0" >>>> PROJECTION >>>> "proj=longlat" >>>> "ellps=WGS84" >>>> "datum=WGS84" >>>> "no_defs" >>>> END >>>> >>>> CLASS >>>> COLOR 255 200 255 >>>> END >>>> END >>>> >>>> END >>>> >>>> When I try to open that with my OpenLayer app, I got images with that >>>> error : >>>> >>>> Error: msProcessProjection(): /Projection library error/. /Invalid >>>> argument >>>> >>> >>> Stella, >>> >>> I am not sure why you are getting this error. I search high and low and >>> can't >>> find "Invalid argument" in either MapServer or PROJ.4. Are you working >>> on >>> linux or Windows? Were the "/" characters really in this message? It is >>> hard for me to understand how this could happen. >>> >>> With regard to your mapfile, I was surprised that you don't have >>> wms_srs metadata on your layer. It is a shot in the dark, but perhaps >>> you >>> could add wms_srs EPSG:4326 metadata on the layer, and reorder the >>> wms_srs >>> metadata on the map to put EPSG:4326 first. >>> >>> Also, you could try changing: >>> >>> >>> > PROJECTION >>> > "proj=longlat" >>> > "ellps=WGS84" >>> > "datum=WGS84" >>> > "no_defs" >>> > END >>> >>> to: >>> >>> PROJECTION >>> "+init=epsg:4326" >>> END >>> >>> in both the layer and map. This is slower to expand but it might >>> make it easier for mapserver to relate to epsg codes. >>> >>> >>> 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 >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From anddreas2 at yahoo.gr Tue Jan 5 11:59:55 2010 From: anddreas2 at yahoo.gr (Andreas Douvalis) Date: Tue, 5 Jan 2010 19:59:55 +0000 (GMT) Subject: [mapserver-users] How do I have a polygon with an outline with a width? Message-ID: <296751.35897.qm@web23708.mail.ird.yahoo.com> I?test chameleon 2.6 with Mapserver 5.4 and I have problem with Polygons Symbols. ? I have already ?altered my Symbol.sym file?to start with??"SYMBOLSET" and finish with "END". ? ?In fact??I have problem only?with?polygons and their WIDTH. Lines and points works perfect. ? it seems like mapserver can not read Symbol.sym? for polygons. ? Here is a part of Layer section in map file:?? ? //------------------------------------------------------------------------------------------ ? LAYER ??? NAME "Perifereies" ??? GROUP "?????????? ????" ??? STATUS OFF ??? DATA "C:\ms4w\apps\chameleon\samples\dataGreek\Dioikitika\Perifereies" ??? TYPE POLYGON ??? UNITS METERS ??? LABELITEM "NAME"???? ??? METADATA ????? wms_name "???????????" ????? wms_title? "???????????" ????? SPATIALSEARCH "NAME,????_?????,POP_1991_,POP_2001_,Embad_km2" ????? SPATIALSEARCHLIST "NAME,????_?????,POP_1991_,POP_2001_,Embad_km2" ??? END??? ??? TEMPLATE "Perifereies.dbf" ??? CLASS ????? NAME "Perifereies" ????? STYLE ??????? SYMBOL "circle" ??????? SIZE 3?? ??????? COLOR?12 112 255????????? ??????? OUTLINECOLOR 0 112 255?????? ??????? WIDTH 5? ????? END ??? END END ? //------------------------------------------------------------------------------------------ ? If I dont use '..........SYMBOL "circle".........' and I write?: ? ? STYLE ??????? COLOR?12 112 255???? ??????? OUTLINECOLOR 0 112 255?????? ??????? WIDTH 5?? ???? END ? ?everything is ok ?but then ?I cannot control outline width. ?????? ? Regarding the outputformat here is the part of my map file: ? OUTPUTFORMAT ??? NAME 'AGG_Q' ??? DRIVER AGG/PNG ??? IMAGEMODE RGB ??? FORMATOPTION "QUANTIZE_FORCE=ON" ??? FORMATOPTION "QUANTIZE_DITHER=OFF" ??? FORMATOPTION "QUANTIZE_COLORS=256" END ? I HAVE ALREADY CHECK THE ABOVE LINK BUT THERE IS NO CHANGE REGARDING THE OUTLINE WIDTH ? http://mapserver.org/faq.html#how-do-i-have-a-polygon-that-has-both-a-fill-and-an-outline-with-a-width ? ANY HELP PLEASE ___________________________________________________________ ?????????????? Yahoo!; ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at uva.nl Tue Jan 5 13:38:49 2010 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Tue, 05 Jan 2010 22:38:49 +0100 Subject: [mapserver-users] Problem with Russia polygon In-Reply-To: <125FE5C84575394CB9ED84D5DBB151D578FB4897B2@PTPPICEX03.PTPortugal.corpPT.com> References: <125FE5C84575394CB9ED84D5DBB151D578FB4897B2@PTPPICEX03.PTPortugal.corpPT.com> Message-ID: <4B43B169.7090207@uva.nl> I have seen the same problem several times. It could be a rounding problem: EPSG:900913 is the Mercator projection as used by Google, which is undefined at the Poles. Perhaps setting your extent a bit southward from the North Pole will solve the problem. Google maps does it too when you zoom to world scale, and even so, Antarctica is bigger than the rest of the world combined. Jan On 5-1-2010 15:05, Nelson Correia wrote: > The problem seems to be with the re-projection from 4326 to 900913, which I'm doing with mapserver (hence, the map file configuration). > > If I configure the mapfile to use 4326 and make a request in 4326, the problem disappear. So, the re-projection to 900913 should be screwing the polygons at the edges of the map. > I tried to re-project the polygons with postgis (st_transform), but I got the following error: > > ERROR: transform: couldn't project point: -20 (tolerance condition error) > > Which I don't know the meaning. > > In the project I'm doing, I have to use 900913, so, if anyone have some ideas of how to solve this, they will be well appreciated. > > Thanks, > > Nelson > > -----Original Message----- > From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] > Sent: segunda-feira, 4 de Janeiro de 2010 22:03 > To: Barend K?bben; Nelson Correia; Lime, Steve D (DNR); Andy Colson > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Problem with Russia polygon > > Hi, > > Unfortunately the extents are OK and the problem is something more complicated. Extents are indeed in meters but that's how they must be because the MAP level projection looks like this: > > PROJECTION > "init=epsg:900913" > END > > > -Jukka Rahkonen- > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Barend K?bben > L?hetetty: ma 4.1.2010 22:52 > Vastaanottaja: Nelson Correia; Lime, Steve D (DNR); Andy Colson > Kopio: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Problem with Russia polygon > > You've got data that is in latlong (units decimal degrees) in your > shapefile, however in the EXTENT part of the map file you use > EXTENT -20037508 -13590765 20037508 11229864 > Which are not latlomngs but some projected coordinates, and > UNITS meters > > IN the LAYER you tell mapserver that its: > PROJECTION > "proj=longlat" > "datum=WGS84" > "no_defs" > END > > These two are contradictory. You'll have to match the PROJECTION in the > LAYER to the actual projection and units (apparentlt these are correct) , > and make sure the EXTENT is expressed in the same system. So best thing is > to set the EXTENT in latlons (as its the whole world -180 -90 180 90 is a > safe bet) and UNITS to degrees... > > > Yours, > > > From c.declercq at alkante.com Wed Jan 6 00:07:43 2010 From: c.declercq at alkante.com (Charlotte DECLERCQ) Date: Wed, 6 Jan 2010 09:07:43 +0100 (CET) Subject: [mapserver-users] MAPSCRIPT - queryByAttributes on WFS layer In-Reply-To: <4B436474.4020609@mapgears.com> Message-ID: <843151402.1729.1262765263591.JavaMail.root@linux12> Hello Daniel and thanks for the quick answer. $oLayer->queryByAttributes($m_Champs, "(".stripslashes($m_Requete).")", MS_MULTIPLE ); doesn't seem to work with $m_Requete : upper(gid) = upper(\'140\'). Is it possible to do some comparison like gid > 140 ... on a WFS layer? I know it is possible on other types of layers. -- Charlotte DECLERCQ ALKANTE SAS Ing?nieur R&D SIG 1, rue du Ch?ne Morand 35 510 Cesson-S?vign? Bur: + 33 (0) 2 99 22 25 70 fax : + 33 (0) 2 99 32 12 76 ----- Mail Original ----- De: "Daniel Morissette" ?: mapserver-users at lists.osgeo.org Envoy?: Mardi 5 Janvier 2010 17:10:28 Objet: Re: [mapserver-users] MAPSCRIPT - queryByAttributes on WFS layer Charlotte DECLERCQ wrote: > Hello, > > I am trying to launch a query on a WFS layer. > The query is : > $oLayer->queryByAttributes($m_Champs, "\"".stripslashes($m_Requete)."\"", MS_MULTIPLE ); > with $m_Champs : gid > $m_Requete : upper(gid) = upper(\'140\') > > Whereas there is one record matching, mapserver can't find it : No matching record(s) found. > > I obtain the same result with $m_Requete : gid = '140', or gid = 140, or gid = \'140\' > > But if $m_Requete is equals to 140, then mapserver returns the element. > > Any idea? > > Thanks, > If $m_Requete contains a logical expression such as "gid = '140'" then you need to enclose it inside round brackets for the parser to detect that it is a logical expression. If you enclose it inside double quotes (as you did above) then it treats $m_requete as a constant that is matched against $m_champs. That's why things work when you use $m_requete = "140"; So the best fix is to use $m_requete = "140" with the queryByAttributes() statement above since constant expressions are the fastest. However, if you want to pass a logical expression for some reason, then you should use: $oLayer->queryByAttributes($m_Champs, "(".stripslashes($m_Requete).")", MS_MULTIPLE ); 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 From c.declercq at alkante.com Wed Jan 6 00:10:23 2010 From: c.declercq at alkante.com (Charlotte DECLERCQ) Date: Wed, 6 Jan 2010 09:10:23 +0100 (CET) Subject: [mapserver-users] MAPSCRIPT - queryByAttributes on WFS layer In-Reply-To: <843151402.1729.1262765263591.JavaMail.root@linux12> Message-ID: <9702136.1732.1262765423629.JavaMail.root@linux12> I forgot to tell, the error I get with $oLayer->queryByAttributes($m_Champs, "(".stripslashes($m_Requete).")", MS_MULTIPLE ) is Warning: [MapServer Error]: msQueryByAttributes(): No matching record(s) found. Warning: [MapServer Error]: msEvalExpression: Failed to parse expression ----- Mail Original ----- De: "Charlotte DECLERCQ" ?: "Daniel Morissette" Cc: mapserver-users at lists.osgeo.org Envoy?: Mercredi 6 Janvier 2010 09:07:43 Objet: Re: [mapserver-users] MAPSCRIPT - queryByAttributes on WFS layer Hello Daniel and thanks for the quick answer. $oLayer->queryByAttributes($m_Champs, "(".stripslashes($m_Requete).")", MS_MULTIPLE ); doesn't seem to work with $m_Requete : upper(gid) = upper(\'140\'). Is it possible to do some comparison like gid > 140 ... on a WFS layer? I know it is possible on other types of layers. -- Charlotte DECLERCQ ALKANTE SAS Ing?nieur R&D SIG 1, rue du Ch?ne Morand 35 510 Cesson-S?vign? Bur: + 33 (0) 2 99 22 25 70 fax : + 33 (0) 2 99 32 12 76 ----- Mail Original ----- De: "Daniel Morissette" ?: mapserver-users at lists.osgeo.org Envoy?: Mardi 5 Janvier 2010 17:10:28 Objet: Re: [mapserver-users] MAPSCRIPT - queryByAttributes on WFS layer Charlotte DECLERCQ wrote: > Hello, > > I am trying to launch a query on a WFS layer. > The query is : > $oLayer->queryByAttributes($m_Champs, "\"".stripslashes($m_Requete)."\"", MS_MULTIPLE ); > with $m_Champs : gid > $m_Requete : upper(gid) = upper(\'140\') > > Whereas there is one record matching, mapserver can't find it : No matching record(s) found. > > I obtain the same result with $m_Requete : gid = '140', or gid = 140, or gid = \'140\' > > But if $m_Requete is equals to 140, then mapserver returns the element. > > Any idea? > > Thanks, > If $m_Requete contains a logical expression such as "gid = '140'" then you need to enclose it inside round brackets for the parser to detect that it is a logical expression. If you enclose it inside double quotes (as you did above) then it treats $m_requete as a constant that is matched against $m_champs. That's why things work when you use $m_requete = "140"; So the best fix is to use $m_requete = "140" with the queryByAttributes() statement above since constant expressions are the fastest. However, if you want to pass a logical expression for some reason, then you should use: $oLayer->queryByAttributes($m_Champs, "(".stripslashes($m_Requete).")", MS_MULTIPLE ); 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 -- Charlotte DECLERCQ ALKANTE SAS Ing?nieur R&D SIG 1, rue du Ch?ne Morand 35 510 Cesson-S?vign? Bur: + 33 (0) 2 99 22 25 70 fax : + 33 (0) 2 99 32 12 76 From happyforev1 at gmail.com Wed Jan 6 01:32:11 2010 From: happyforev1 at gmail.com (=?UTF-8?B?546L6L+e5rOi?=) Date: Wed, 6 Jan 2010 17:32:11 +0800 Subject: [mapserver-users] about label in mapfile Message-ID: <46b388481001060132k647a9c19t651691d568fe8846@mail.gmail.com> Hi all, I configured my mapfile with label as follows: labelitem "name" CLASS NAME "river" STYLE color 0 200 0 width 3 END label angle auto COLOR 0 255 0 SHADOWCOLOR 218 0 0 SHADOWSIZE 1 1 TYPE truetype encoding GB2312 font simsun SIZE 10 POSITION auto PARTIALS FALSE # MINDISTANCE 30 BUFFER 4 FORCE true END # end of label END everything is ok except two problems: 1?some texts did not display wholly, part of the word disapear. 2?in the river layer, some rivers were labeled two or more times while I want that each river is labeled once. Anyone can help me to resolve those two problems, thank you very much. -- ???? -------------- next part -------------- An HTML attachment was scrubbed... URL: From gmbh at gazeta.pl Wed Jan 6 01:33:51 2010 From: gmbh at gazeta.pl (Marek Wawoczny) Date: Wed, 6 Jan 2010 10:33:51 +0100 Subject: [mapserver-users] Mapserver OSM data render problem In-Reply-To: References: <4B4276E3.6070109@gazeta.pl> Message-ID: 2010/1/5 Rahkonen Jukka : > What options did you use when importing data with osm2pgsql? The mapfile is set to use projection epsg:4326 and that requires the use of some switch with osm2pgsql, perhaps it is -l. README.txt of ogr2pgsql tells about osm2pgsql projections: > > Try either by importing data again by using a swith suitable for epsg:4326 or by editing your mapfile to use epsg:900913 instead of epsg:4326. Hello, Thank you! It's working now :) Default projection for osm2pgsql is epsg:900913 (it was changed some time ago) - maybe it's a good idea to update tutorial and mapnik-utils? Best regards! Marek From vasileestan at gmail.com Wed Jan 6 02:53:10 2010 From: vasileestan at gmail.com (luftadler) Date: Wed, 6 Jan 2010 02:53:10 -0800 (PST) Subject: [mapserver-users] cofigure problems on Ubuntu 9.10 Message-ID: <1262775190986-4260091.post@n2.nabble.com> Hi everyone, I try to install MapServer 5.6.0, for the first time, on my machine (using Ubuntu 9.10). The problem is that my configuration don't find few installed libraries like: png and jpeg. My configuration script: ./configure \ --enable-debug \ --prefix=/usr \ --with-xml2 \ --with-pdf \ --with-gd \ --with-jpeg \ --with-freetype \ --with-agg \ --with-eppl \ --with-proj \ --with-threads \ --with-sde \ --with-geos \ --with-ogr \ --with-gdal \ --with-tiff \ --with-postgis \ --with-wfs \ --with-wcs \ --with-wmsclient \ --with-wfsclient \ --with-sos \ --with-fribidi-config \ --with-php=/usr/include/php5 \ --with-httpd=/usr/sbin/apache2 \ ______________________________________________ MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -g -fPIC -Wall C++ compiler: g++ -g -fPIC -Wall Debug: -g Generic NINT: -------------- Renderer Settings --------- OpenGL support: zlib support: -DUSE_ZLIB png support: palette rgba png support: jpeg support: iconv support: -DUSE_ICONV AGG support: -DUSE_AGG Cairo (SVG,PDF) support: Ming(flash) support: PDFLib support: -DUSE_PDF -------------- Support Libraries --------- Proj.4 support: -DUSE_PROJ Libxml2 support: -DUSE_LIBXML2 FriBidi support: -DUSE_FRIBIDI Curl support: -DUSE_CURL FastCGI support: Threading support: -DUSE_THREAD GEOS support: -DUSE_GEOS -DGEOS_HAS_SIMPLIFY -------------- Data Format Drivers ------- native tiff support: -DUSE_TIFF PostGIS support: -DUSE_POSTGIS EPPL7 support: -DUSE_EPPL ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL Oracle Spatial support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: -DUSE_WFS_SVR WFS Client: -DUSE_WMS_LYR WCS Server: -DUSE_WCS_SVR SOS Server: -DUSE_SOS_SVR -------------- MapScript ----------------- PHP MapScript: yes ___________________________________________ #Vasi -- View this message in context: http://n2.nabble.com/cofigure-problems-on-Ubuntu-9-10-tp4260091p4260091.html Sent from the Mapserver - User mailing list archive at Nabble.com. From espen.isaksen at gmail.com Wed Jan 6 04:10:41 2010 From: espen.isaksen at gmail.com (Espen Isaksen) Date: Wed, 6 Jan 2010 13:10:41 +0100 Subject: [mapserver-users] Raster error - failed to reproject Message-ID: Hi! I get some errors for some images in Norway. The images are in ECW format and EPSG:32632 projection. We reproject these images to Spherical Mercator on-the-fly in Mapserver, but we get this error on some of the images: msProjectRect(): all points failed to reproject, trying to fall back to using world bounds ... hope this helps. The peculiar thing is that this error only happens in areas way outside of Norway. So I would expect that these images should not be accessed at all. Anybody have an idea what is going on? Espen From cnieman at dmsolutions.ca Wed Jan 6 04:31:41 2010 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Wed, 06 Jan 2010 07:31:41 -0500 Subject: [mapserver-users] How do I have a polygon with an outline with a width? In-Reply-To: <296751.35897.qm@web23708.mail.ird.yahoo.com> References: <296751.35897.qm@web23708.mail.ird.yahoo.com> Message-ID: <4B4482AD.30002@dmsolutions.ca> Hi, If you are indeed using MapServer 5.4, you should be able to control the width of a polygon's outline by specifying an OUTLINECOLOUR and a WIDTH. I just tested with the 5.4 svn branch and had no trouble. I'm not sure what you mean by it seems that MapServer cannot read a symbol file for polygons - I have no problem using it to specify a fill pattern, but I don't think it can be used to specify an outline style. Christy On 01/05/2010 02:59 PM, Andreas Douvalis wrote: > I test chameleon 2.6 with Mapserver 5.4 and I have problem with > Polygons Symbols. > I have already altered my Symbol.sym file to start with "SYMBOLSET" > and finish with "END". > In fact I have problem only with polygons and their WIDTH. Lines and > points works perfect. > it seems like mapserver can not read Symbol.sym for polygons. > Here is a part of Layer section in map file: > //------------------------------------------------------------------------------------------ > LAYER > NAME "Perifereies" > GROUP "?????????? ????" > STATUS OFF > DATA "C:\ms4w\apps\chameleon\samples\dataGreek\Dioikitika\Perifereies" > TYPE POLYGON > UNITS METERS > LABELITEM "NAME" > METADATA > wms_name "???????????" > wms_title "???????????" > SPATIALSEARCH "NAME,????_?????,POP_1991_,POP_2001_,Embad_km2" > SPATIALSEARCHLIST "NAME,????_?????,POP_1991_,POP_2001_,Embad_km2" > END > TEMPLATE "Perifereies.dbf" > CLASS > NAME "Perifereies" > STYLE > SYMBOL "circle" > SIZE 3 > COLOR 12 112 255 > OUTLINECOLOR 0 112 255 > WIDTH 5 > END > END > END > //------------------------------------------------------------------------------------------ > If I dont use '..........SYMBOL "circle".........' and I write : > STYLE > COLOR 12 112 255 > OUTLINECOLOR 0 112 255 > WIDTH 5 > END > everything is ok but then I cannot control outline width. > Regarding the outputformat here is the part of my map file: > OUTPUTFORMAT > NAME 'AGG_Q' > DRIVER AGG/PNG > IMAGEMODE RGB > FORMATOPTION "QUANTIZE_FORCE=ON" > FORMATOPTION "QUANTIZE_DITHER=OFF" > FORMATOPTION "QUANTIZE_COLORS=256" > END > > I HAVE ALREADY CHECK THE ABOVE LINK BUT THERE IS NO CHANGE REGARDING > THE OUTLINE WIDTH > > http://mapserver.org/faq.html#how-do-i-have-a-polygon-that-has-both-a-fill-and-an-outline-with-a-width > > > ANY HELP PLEASE > > > ------------------------------------------------------------------------ > ?????????????? Yahoo! > ?????????? ?? ?????????? ???? ???? (spam); ?? Yahoo! Mail ???????? ??? > ???????? ?????? ????????? ???? ??? ??????????? ????????? > http://login.yahoo.com/config/mail?.intl=gr > > > _______________________________________________ > 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 jfuch at indec.mecon.gov.ar Wed Jan 6 04:46:38 2010 From: jfuch at indec.mecon.gov.ar (Fuchs Juan Carlos) Date: Wed, 6 Jan 2010 09:46:38 -0300 Subject: [mapserver-users] Error configuring WMS app : Projection libr ary error. Invalid argument... Message-ID: Hi Stela I will add my 10 cents to Frank?s answer you put DATA "the_geom from tbl_argentina USING UNIQUE gid USING SRID=0" ?don?t it have to say DATA "the_geom from tbl_argentina USING UNIQUE gid USING SRID=-1" ? cheers JC. -----Mensaje original----- De: Frank Warmerdam [mailto:warmerdam at pobox.com] Enviado el: Martes, 05 de Enero de 2010 12:03 p.m. Para: stela anders CC: MAPSERVER-USERS Asunto: Re: [mapserver-users] Error configuring WMS app : Projection library error. Invalid argument... stela anders wrote: > LAYER > NAME Argentina > METADATA > "wms_title" "Argentina" ##required > END > TYPE POLYGON > STATUS ON > INCLUDE "Connection.map" > DATA "the_geom from tbl_argentina USING UNIQUE gid USING SRID=0" > PROJECTION > "proj=longlat" > "ellps=WGS84" > "datum=WGS84" > "no_defs" > END > > CLASS > COLOR 255 200 255 > END > END > > END > > When I try to open that with my OpenLayer app, I got images with that > error : > > Error: msProcessProjection(): /Projection library error/. /Invalid argument Stella, I am not sure why you are getting this error. I search high and low and can't find "Invalid argument" in either MapServer or PROJ.4. Are you working on linux or Windows? Were the "/" characters really in this message? It is hard for me to understand how this could happen. With regard to your mapfile, I was surprised that you don't have wms_srs metadata on your layer. It is a shot in the dark, but perhaps you could add wms_srs EPSG:4326 metadata on the layer, and reorder the wms_srs metadata on the map to put EPSG:4326 first. Also, you could try changing: > PROJECTION > "proj=longlat" > "ellps=WGS84" > "datum=WGS84" > "no_defs" > END to: PROJECTION "+init=epsg:4326" END in both the layer and map. This is slower to expand but it might make it easier for mapserver to relate to epsg codes. 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 valemunoz at gmail.com Wed Jan 6 05:02:21 2010 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Wed, 6 Jan 2010 10:02:21 -0300 Subject: [mapserver-users] wms output problem Message-ID: <4b56aefe1001060502v5eb141b0r8835b77d7aeac5a6@mail.gmail.com> Hi! i have a problem with the output image of my wms, i define PNG but return JPEG. Source mapfile OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE 'image/png' IMAGEMODE RGB EXTENSION "png" FORMATOPTION "TRANSPARENT=OFF" FORMATOPTION "INTERLACE=ON" END source wms mapfile OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE 'image/png' IMAGEMODE RGB EXTENSION "png" FORMATOPTION "TRANSPARENT=OFF" FORMATOPTION "INTERLACE=ON" END can you help me please? RG -------------- next part -------------- An HTML attachment was scrubbed... URL: From stelaanders at gmail.com Wed Jan 6 05:14:45 2010 From: stelaanders at gmail.com (stela anders) Date: Wed, 6 Jan 2010 10:14:45 -0300 Subject: [mapserver-users] Error configuring WMS app : Projection library error. Invalid argument... In-Reply-To: <8ab83e651001050826r1155d225r68b8944bf7409852@mail.gmail.com> References: <4B4354AE.9060506@pobox.com> <8ab83e651001050807i119724f5n5b441c3433e3f6ca@mail.gmail.com> <8ab83e651001050826r1155d225r68b8944bf7409852@mail.gmail.com> Message-ID: Guys, other problem now ;( I have 2 layers with same name ... One with LINE and other with ANNOTATION ... It works fine in mapscript environment... But now, with WMS I got a error when I use both layers with same name: msWMSLoadGetMapParams(): *WMS server error*. *Invalid layer*(s) given in the *LAYERS* parameter Both layer works separately... My 2 layers LAYER NAME Road METADATA "wms_title" "Road" END GROUP "Transport" TYPE LINE STATUS ON INCLUDE "Connection.map" DATA ... PROJECTION "+init=epsg:4326" END CLASS TEMPLATE "dummy" NAME "Rod x" STYLE SYMBOL "road" COLOR 0 0 0 ANTIALIAS TRUE END END END LAYER NAME Road METADATA "wms_title" "Road" END GROUP "Transport" TYPE ANNOTATION STATUS ON INCLUDE "Connection.map" DATA ... PROJECTION "+init=epsg:4326" END LABELITEM 'rod' CLASS TEMPLATE "dummy" STYLE SYMBOL 'roadsymbol' END LABEL TYPE TRUETYPE FONT Arial SIZE 7 COLOR 70 70 70 MINDISTANCE 100 MINFEATURESIZE 10 PARTIALS FALSE BUFFER 10 END END END Why? Thanks and sorry for noob questions Stella 2010/1/5 Daniel Walton > You're welcome Stella. I struggled through the Windows WMS stuff a few > months ago, glad to help. > > -Dan > > > On Tue, Jan 5, 2010 at 10:18 AM, stela anders wrote: > >> Woww! >> Thats it!!!! >> Worked now! >> Thanksss guysss ! Thanks Daniel! >> iuupi! >> >> Stella >> >> 2010/1/5 Daniel Walton >> >> Stella, >>> >>> Try adding a config entry to your mapfile that points to the folder >>> containing your epsg configuration file: >>> >>> MAP >>> ... >>> CONFIG "PROJ_LIB" "C:/somedir/proj/nad/" >>> >>> >>> ... >>> END >>> >>> >>> >>> Dan Walton >>> dgwalton at gmail.com >>> [image: Linkedin] [image: >>> Twitter] >>> >>> >>> On Tue, Jan 5, 2010 at 9:56 AM, stela anders wrote: >>> >>>> Hello Frank! >>>> Thanks for your time ;) >>>> >>>> I?m working on Windows 7... >>>> >>>> I made all modifications you suggest me, but got the same error... >>>> The URL now is : >>>> >>>> >>>> http://localhost/cgi-bin-last/mapserv.exe?MAP=C:/inetpub/wwwroot/Openlayer/Mapserver/Mapfile/Map.map&LAYERS=Argentina&TRANSPARENT=true&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:4326&BBOX=-62.9142,-17.3676,-57.2892,-11.7426&WIDTH=256&HEIGHT=256 >>>> >>>> >>>> The only difference that I noticed is that the error in browser now is >>>> in TEXT format... >>>> Before the error was write in a Image... >>>> >>>> I?m completely lost ! :( >>>> >>>> Any other idea? >>>> >>>> ps.: Sorry for my bad english >>>> >>>> Stella >>>> >>>> 2010/1/5 Frank Warmerdam >>>> >>>> stela anders wrote: >>>>> >>>>>> LAYER >>>>>> NAME Argentina >>>>>> METADATA >>>>>> "wms_title" "Argentina" ##required >>>>>> END TYPE POLYGON >>>>>> STATUS ON >>>>>> INCLUDE "Connection.map" DATA "the_geom from >>>>>> tbl_argentina USING UNIQUE gid USING SRID=0" >>>>>> PROJECTION >>>>>> "proj=longlat" >>>>>> "ellps=WGS84" >>>>>> "datum=WGS84" >>>>>> "no_defs" >>>>>> END >>>>>> >>>>>> CLASS >>>>>> COLOR 255 200 255 >>>>>> END >>>>>> END >>>>>> >>>>>> END >>>>>> >>>>>> When I try to open that with my OpenLayer app, I got images with that >>>>>> error : >>>>>> >>>>>> Error: msProcessProjection(): /Projection library error/. /Invalid >>>>>> argument >>>>>> >>>>> >>>>> Stella, >>>>> >>>>> I am not sure why you are getting this error. I search high and low >>>>> and can't >>>>> find "Invalid argument" in either MapServer or PROJ.4. Are you working >>>>> on >>>>> linux or Windows? Were the "/" characters really in this message? It >>>>> is >>>>> hard for me to understand how this could happen. >>>>> >>>>> With regard to your mapfile, I was surprised that you don't have >>>>> wms_srs metadata on your layer. It is a shot in the dark, but perhaps >>>>> you >>>>> could add wms_srs EPSG:4326 metadata on the layer, and reorder the >>>>> wms_srs >>>>> metadata on the map to put EPSG:4326 first. >>>>> >>>>> Also, you could try changing: >>>>> >>>>> >>>>> > PROJECTION >>>>> > "proj=longlat" >>>>> > "ellps=WGS84" >>>>> > "datum=WGS84" >>>>> > "no_defs" >>>>> > END >>>>> >>>>> to: >>>>> >>>>> PROJECTION >>>>> "+init=epsg:4326" >>>>> END >>>>> >>>>> in both the layer and map. This is slower to expand but it might >>>>> make it easier for mapserver to relate to epsg codes. >>>>> >>>>> >>>>> 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 >>>> >>>> >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed Jan 6 05:34:55 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 06 Jan 2010 09:34:55 -0400 Subject: [mapserver-users] php mapscript In-Reply-To: References: Message-ID: <4B44917F.3000409@gatewaygeomatics.com> John Callahan wrote: > Does anyone know of a php_mapscript.dll (this is for Windows) that works > with MapServer 5.4+ and PHP 5.2? Looking at MS4W 3.0 beta, it looks > like it's for MS 5.4.2 and PHP 5.3. Previous version of MS4W is for PHP > 5.2 and MS 5.2.4. Thanks. > Hello John, Happy new year. Yes you are correct that recent versions of MS4W use PHP 5.3 If you require a custom build you can always contact me directly to discuss rates. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From Jukka.Rahkonen at mmmtike.fi Wed Jan 6 05:43:01 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 6 Jan 2010 15:43:01 +0200 Subject: [mapserver-users] wms output problem References: <4b56aefe1001060502v5eb141b0r8835b77d7aeac5a6@mail.gmail.com> Message-ID: Hi, Are you sure you are asking for png? Your client may have a default setting for jpeg. The request should look like http://localhost/cgi-bin/mapserv.exe?map=c:\ms4w\osm.map&REQUEST=GetMap&SERVICE=WMS &VERSION=1.1.1&WIDTH=1059&HEIGHT=687&LAYERS=default&TRANSPARENT=TRUE &FORMAT=image/png &BBOX=3430775,6764522,3430932,6764624 &SRS=epsg:2393&STYLES= -Jukka Rahkonen- Valeria Mu?oz wrote: Hi! i have a problem with the output image of my wms, i define PNG but return JPEG. Source mapfile OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE 'image/png' IMAGEMODE RGB EXTENSION "png" FORMATOPTION "TRANSPARENT=OFF" FORMATOPTION "INTERLACE=ON" END source wms mapfile OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE 'image/png' IMAGEMODE RGB EXTENSION "png" FORMATOPTION "TRANSPARENT=OFF" FORMATOPTION "INTERLACE=ON" END can you help me please? RG From valemunoz at gmail.com Wed Jan 6 05:49:57 2010 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Wed, 6 Jan 2010 10:49:57 -0300 Subject: [mapserver-users] wms output problem In-Reply-To: References: <4b56aefe1001060502v5eb141b0r8835b77d7aeac5a6@mail.gmail.com> Message-ID: <4b56aefe1001060549n667641cam382a73db37691b31@mail.gmail.com> I define PNG in the mapfile. RG 2010/1/6 Rahkonen Jukka > Hi, > > Are you sure you are asking for png? Your client may have a default > setting for jpeg. The request should look like > > http://localhost/cgi-bin/mapserv.exe?map=c > :\ms4w\osm.map&REQUEST=GetMap&SERVICE=WMS > &VERSION=1.1.1&WIDTH=1059&HEIGHT=687&LAYERS=default&TRANSPARENT=TRUE > &FORMAT=image/png > &BBOX=3430775,6764522,3430932,6764624 > &SRS=epsg:2393&STYLES= > > -Jukka Rahkonen- > > Valeria Mu?oz wrote: > > > Hi! > > i have a problem with the output image of my wms, i define PNG but return > JPEG. > > Source mapfile > > OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE 'image/png' > IMAGEMODE RGB > EXTENSION "png" > FORMATOPTION "TRANSPARENT=OFF" > FORMATOPTION "INTERLACE=ON" > END > > source wms mapfile > > OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE 'image/png' > IMAGEMODE RGB > EXTENSION "png" > FORMATOPTION "TRANSPARENT=OFF" > FORMATOPTION "INTERLACE=ON" > END > > > can you help me please? > > RG > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Jan 6 06:00:20 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 6 Jan 2010 16:00:20 +0200 Subject: [mapserver-users] wms output problem References: <4b56aefe1001060502v5eb141b0r8835b77d7aeac5a6@mail.gmail.com> <4b56aefe1001060549n667641cam382a73db37691b31@mail.gmail.com> Message-ID: Hi, Mapserver can always return images at least in png, jpeg and gif formats. You must explicitly tell it what format you want with WMS &FORMAT= parameter. You can check what kind of requests the client is sending from your Apache access.log file. -Jukka- Valeria Mu?oz wrote: I define PNG in the mapfile. RG 2010/1/6 Rahkonen Jukka > Hi, > > Are you sure you are asking for png? Your client may have a default > setting for jpeg. The request should look like > > http://localhost/cgi-bin/mapserv.exe?map=c > :\ms4w\osm.map&REQUEST=GetMap&SERVICE=WMS > &VERSION=1.1.1&WIDTH=1059&HEIGHT=687&LAYERS=default&TRANSPARENT=TRUE > &FORMAT=image/png > &BBOX=3430775,6764522,3430932,6764624 > &SRS=epsg:2393&STYLES= > > -Jukka Rahkonen- > > Valeria Mu?oz wrote: > > > Hi! > > i have a problem with the output image of my wms, i define PNG but return > JPEG. > > Source mapfile > > OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE 'image/png' > IMAGEMODE RGB > EXTENSION "png" > FORMATOPTION "TRANSPARENT=OFF" > FORMATOPTION "INTERLACE=ON" > END > > source wms mapfile > > OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE 'image/png' > IMAGEMODE RGB > EXTENSION "png" > FORMATOPTION "TRANSPARENT=OFF" > FORMATOPTION "INTERLACE=ON" > END > > > can you help me please? > > RG > > From valemunoz at gmail.com Wed Jan 6 06:10:00 2010 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Wed, 6 Jan 2010 11:10:00 -0300 Subject: [mapserver-users] wms output problem In-Reply-To: References: <4b56aefe1001060502v5eb141b0r8835b77d7aeac5a6@mail.gmail.com> <4b56aefe1001060549n667641cam382a73db37691b31@mail.gmail.com> Message-ID: <4b56aefe1001060610m55f96991n7d1b0270a673eb26@mail.gmail.com> i will do that thanks a lot. Saludos 2010/1/6 Rahkonen Jukka > Hi, > > Mapserver can always return images at least in png, jpeg and gif formats. > You must explicitly tell it what format you want with WMS &FORMAT= > parameter. You can check what kind of requests the client is sending from > your Apache access.log file. > > -Jukka- > > > Valeria Mu?oz wrote: > > I define PNG in the mapfile. > > RG > > 2010/1/6 Rahkonen Jukka > > > Hi, > > > > Are you sure you are asking for png? Your client may have a default > > setting for jpeg. The request should look like > > > > http://localhost/cgi-bin/mapserv.exe?map=c > > :\ms4w\osm.map&REQUEST=GetMap&SERVICE=WMS > > &VERSION=1.1.1&WIDTH=1059&HEIGHT=687&LAYERS=default&TRANSPARENT=TRUE > > &FORMAT=image/png > > &BBOX=3430775,6764522,3430932,6764624 > > &SRS=epsg:2393&STYLES= > > > > -Jukka Rahkonen- > > > > Valeria Mu?oz wrote: > > > > > > Hi! > > > > i have a problem with the output image of my wms, i define PNG but > return > > JPEG. > > > > Source mapfile > > > > OUTPUTFORMAT > > NAME png > > DRIVER "AGG/PNG" > > MIMETYPE 'image/png' > > IMAGEMODE RGB > > EXTENSION "png" > > FORMATOPTION "TRANSPARENT=OFF" > > FORMATOPTION "INTERLACE=ON" > > END > > > > source wms mapfile > > > > OUTPUTFORMAT > > NAME png > > DRIVER "AGG/PNG" > > MIMETYPE 'image/png' > > IMAGEMODE RGB > > EXTENSION "png" > > FORMATOPTION "TRANSPARENT=OFF" > > FORMATOPTION "INTERLACE=ON" > > END > > > > > > can you help me please? > > > > RG > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aboudreault at mapgears.com Wed Jan 6 06:26:38 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Wed, 06 Jan 2010 09:26:38 -0500 Subject: [mapserver-users] cofigure problems on Ubuntu 9.10 In-Reply-To: <1262775190986-4260091.post@n2.nabble.com> References: <1262775190986-4260091.post@n2.nabble.com> Message-ID: <4B449D9E.9090109@mapgears.com> I would suggest to verify with the dpkg command line if the packages |libpng12-dev and ||libjpeg62-dev |are installed. You can also take a look to these binarie packages: https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable , which contain mapserver 5.6.0. Alan luftadler wrote: > Hi everyone, > > I try to install MapServer 5.6.0, for the first time, on my machine (using > Ubuntu 9.10). > The problem is that my configuration don't find few installed libraries > like: png and jpeg. > > My configuration script: > > ./configure \ > --enable-debug \ > --prefix=/usr \ > --with-xml2 \ > --with-pdf \ > --with-gd \ > --with-jpeg \ > --with-freetype \ > --with-agg \ > --with-eppl \ > --with-proj \ > --with-threads \ > --with-sde \ > --with-geos \ > --with-ogr \ > --with-gdal \ > --with-tiff \ > --with-postgis \ > --with-wfs \ > --with-wcs \ > --with-wmsclient \ > --with-wfsclient \ > --with-sos \ > --with-fribidi-config \ > --with-php=/usr/include/php5 \ > --with-httpd=/usr/sbin/apache2 \ > > ______________________________________________ > MapServer is now configured for > > -------------- Compiler Info ------------- > C compiler: gcc -g -fPIC -Wall > C++ compiler: g++ -g -fPIC -Wall > Debug: -g > Generic NINT: > > -------------- Renderer Settings --------- > OpenGL support: > zlib support: -DUSE_ZLIB > png support: > palette rgba png support: > jpeg support: > iconv support: -DUSE_ICONV > AGG support: -DUSE_AGG > Cairo (SVG,PDF) support: > Ming(flash) support: > PDFLib support: -DUSE_PDF > > -------------- Support Libraries --------- > Proj.4 support: -DUSE_PROJ > Libxml2 support: -DUSE_LIBXML2 > FriBidi support: -DUSE_FRIBIDI > Curl support: -DUSE_CURL > FastCGI support: > Threading support: -DUSE_THREAD > GEOS support: -DUSE_GEOS -DGEOS_HAS_SIMPLIFY > > -------------- Data Format Drivers ------- > native tiff support: -DUSE_TIFF > PostGIS support: -DUSE_POSTGIS > EPPL7 support: -DUSE_EPPL > ArcSDE support: > OGR support: -DUSE_OGR > GDAL support: -DUSE_GDAL > Oracle Spatial support: > > -------------- OGC Services -------------- > WMS Server: -DUSE_WMS_SVR > WMS Client: -DUSE_WMS_LYR > WFS Server: -DUSE_WFS_SVR > WFS Client: -DUSE_WMS_LYR > WCS Server: -DUSE_WCS_SVR > SOS Server: -DUSE_SOS_SVR > > -------------- MapScript ----------------- > PHP MapScript: yes > ___________________________________________ > > #Vasi > > -- Alan Boudreault Mapgears http://www.mapgears.com/ From jmckenna at gatewaygeomatics.com Wed Jan 6 06:19:53 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 06 Jan 2010 10:19:53 -0400 Subject: [mapserver-users] Error configuring WMS app : Projection library error. Invalid argument... In-Reply-To: References: <4B4354AE.9060506@pobox.com> <8ab83e651001050807i119724f5n5b441c3433e3f6ca@mail.gmail.com> <8ab83e651001050826r1155d225r68b8944bf7409852@mail.gmail.com> Message-ID: <4B449C09.1040604@gatewaygeomatics.com> stela anders wrote: > Guys, other problem now ;( > I have 2 layers with same name ... One with LINE and other with > ANNOTATION ... It works fine in mapscript environment... But now, with > WMS I got a error when I use both layers with same name: > > msWMSLoadGetMapParams(): /WMS server error/. /Invalid layer/(s) given in > the /LAYERS/ parameter > > Both layer works separately... > > My 2 layers > > LAYER > NAME Road > METADATA > "wms_title" "Road" > END > GROUP "Transport" > TYPE LINE > STATUS ON > INCLUDE "Connection.map" > DATA ... > PROJECTION > "+init=epsg:4326" > END > CLASS > TEMPLATE "dummy" > NAME "Rod x" > STYLE > SYMBOL "road" > COLOR 0 0 0 > ANTIALIAS TRUE > END > END > END > > LAYER > NAME Road > METADATA > "wms_title" "Road" > END > GROUP "Transport" > TYPE ANNOTATION > STATUS ON > INCLUDE "Connection.map" > DATA ... > PROJECTION > "+init=epsg:4326" > END > LABELITEM 'rod' > CLASS > TEMPLATE "dummy" > STYLE > SYMBOL 'roadsymbol' > END > LABEL > TYPE TRUETYPE > FONT Arial > SIZE 7 > COLOR 70 70 70 > MINDISTANCE 100 > MINFEATURESIZE 10 > PARTIALS FALSE > BUFFER 10 > END > END > END > > > Why? Hello Stella, Check your GetCapabilities response of your WMS service - your 2 layers of the same name were probably renamed by MapServer with unique names (such as "Road_01" and "Road_02"), so you should request the layers with those names. To avoid this you could: - use different names in your mapfile - combine your 2 layers into one layer - since you already have the layers in a group, add a group metadata tag in the layers, and then use the group name in your WMS LAYERS request (but first verify names through a GetCapabilities request), such as: LAYER NAME "Road" GROUP "Transport" METADATA "wms_title" "Road" "wms_group_title" "groupname" END ... END http://localhost/cgi-bin-last/mapserv.exe?MAP=C:/inetpub/wwwroot/Openlayer/Mapserver/Mapfile/Map.map&LAYERS=Transport&............... -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From ludwig at kni-online.de Wed Jan 6 07:03:53 2010 From: ludwig at kni-online.de (Ludwig Kniprath) Date: Wed, 06 Jan 2010 16:03:53 +0100 Subject: [mapserver-users] Re: wms output problem Message-ID: <3883046.2330061262790233103.JavaMail.servlet@kundenserver> Just an idea: Perhaps a missing "IMAGETYPE png" in the mapfile? Regards Ludwig > >Hi! > > i have a problem with the output image of my wms, i define PNG but return >JPEG. > >Source mapfile > >OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE 'image/png' > IMAGEMODE RGB > EXTENSION "png" > FORMATOPTION "TRANSPARENT=OFF" > FORMATOPTION "INTERLACE=ON" > END > >source wms mapfile > >OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE 'image/png' > IMAGEMODE RGB > EXTENSION "png" > FORMATOPTION "TRANSPARENT=OFF" > FORMATOPTION "INTERLACE=ON" > END > > >can you help me please? > >RG From stelaanders at gmail.com Wed Jan 6 07:39:23 2010 From: stelaanders at gmail.com (stela anders) Date: Wed, 6 Jan 2010 12:39:23 -0300 Subject: [mapserver-users] Error configuring WMS app : Projection library error. Invalid argument... In-Reply-To: <4B449C09.1040604@gatewaygeomatics.com> References: <4B4354AE.9060506@pobox.com> <8ab83e651001050807i119724f5n5b441c3433e3f6ca@mail.gmail.com> <8ab83e651001050826r1155d225r68b8944bf7409852@mail.gmail.com> <4B449C09.1040604@gatewaygeomatics.com> Message-ID: Thanks Jeff! Could you show me how combine my 2 layers? Stella 2010/1/6 Jeff McKenna > stela anders wrote: > >> Guys, other problem now ;( >> I have 2 layers with same name ... One with LINE and other with ANNOTATION >> ... It works fine in mapscript environment... But now, with WMS I got a >> error when I use both layers with same name: >> >> msWMSLoadGetMapParams(): /WMS server error/. /Invalid layer/(s) given in >> the /LAYERS/ parameter >> >> Both layer works separately... >> >> My 2 layers >> >> LAYER >> NAME Road >> METADATA >> "wms_title" "Road" END >> GROUP "Transport" >> TYPE LINE >> STATUS ON >> INCLUDE "Connection.map" >> DATA ... >> PROJECTION >> "+init=epsg:4326" >> END >> CLASS >> TEMPLATE "dummy" NAME "Rod x" >> STYLE >> SYMBOL "road" >> COLOR 0 0 0 >> ANTIALIAS TRUE >> END >> END END >> LAYER >> NAME Road >> METADATA >> "wms_title" "Road" END >> GROUP "Transport" >> TYPE ANNOTATION >> STATUS ON >> INCLUDE "Connection.map" >> DATA ... >> PROJECTION >> "+init=epsg:4326" >> END >> LABELITEM 'rod' >> CLASS >> TEMPLATE "dummy" >> STYLE >> SYMBOL 'roadsymbol' >> END >> LABEL >> TYPE TRUETYPE >> FONT Arial >> SIZE 7 >> COLOR 70 70 70 >> MINDISTANCE 100 >> MINFEATURESIZE 10 >> PARTIALS FALSE >> BUFFER 10 >> END >> END END >> >> >> Why? >> > > Hello Stella, > > Check your GetCapabilities response of your WMS service - your 2 layers of > the same name were probably renamed by MapServer with unique names (such as > "Road_01" and "Road_02"), so you should request the layers with those names. > > To avoid this you could: > > - use different names in your mapfile > - combine your 2 layers into one layer > - since you already have the layers in a group, add a group metadata tag in > the layers, and then use the group name in your WMS LAYERS request (but > first verify names through a GetCapabilities request), such as: > > LAYER > NAME "Road" > GROUP "Transport" > METADATA > "wms_title" "Road" > "wms_group_title" "groupname" > END > ... > END > > > > http://localhost/cgi-bin-last/mapserv.exe?MAP=C:/inetpub/wwwroot/Openlayer/Mapserver/Mapfile/Map.map&LAYERS=Transport&............. > .. > > -jeff > > > -- > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed Jan 6 07:56:14 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 06 Jan 2010 11:56:14 -0400 Subject: [mapserver-users] Error configuring WMS app : Projection library error. Invalid argument... In-Reply-To: References: <4B4354AE.9060506@pobox.com> <8ab83e651001050807i119724f5n5b441c3433e3f6ca@mail.gmail.com> <8ab83e651001050826r1155d225r68b8944bf7409852@mail.gmail.com> <4B449C09.1040604@gatewaygeomatics.com> Message-ID: <4B44B29E.10100@gatewaygeomatics.com> stela anders wrote: > Thanks Jeff! > Could you show me how combine my 2 layers? > I may not understand your scenario very well. You might want to check an example mapfile for labeling roads (such as the labeled roads in http://svn.osgeo.org/osgeo/foss4g/benchmarking/mapserver/shapefile-merged.map) -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From anddreas2 at yahoo.gr Wed Jan 6 08:22:18 2010 From: anddreas2 at yahoo.gr (Andreas Douvalis) Date: Wed, 6 Jan 2010 16:22:18 +0000 (GMT) Subject: [mapserver-users] How do I have a polygon with an outline with a width? Message-ID: <572417.27408.qm@web23704.mail.ird.yahoo.com> I found the solution! ? (finally my problem?was chameleon issue) ? The problem was that I?changed my Symbol.sym file to start with??"SYMBOLSET" and finish with "END" but I didnt changed the Default Symbol.sym file ( /ms4w/apps/chameleon/cwc2/etc/symbols.sym)? which I have declared in cwc2.xml file. ? Now I have declared my Symbol file as default and everything is OK. ? Thanks ___________________________________________________________ ?????????????? Yahoo!; ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.dees at gmail.com Wed Jan 6 12:23:40 2010 From: ian.dees at gmail.com (Ian Dees) Date: Wed, 6 Jan 2010 14:23:40 -0600 Subject: [mapserver-users] Tilemode Projection Problem Message-ID: <3baad6b81001061223v214582f9tb7baa8cf53680cf7@mail.gmail.com> Hi everyone, I've spent the better part of today scouring the internet for documentation and help on the tile mode present in mapserver, but I couldn't find an answer to my problem, so please forgive me if I'm missing some obvious documentation some where... I am attempting to show some GeoTIFFs (from here: ftp://geoftp.ibge.gov.br/mapas/ortofoto/). My research says they're in epsg:31984. I'm trying to use MapServer's tile mode to display them on a Google Map API instance, but can't seem to get any of the images to show up. Also, why am I required to give a PROJECTION statement as a child to the MAP statement (what I assume is the "viewing projection") if the tile mode is just going to reproject to spherical mercator? My .map file is below. Thanks! MAP NAME GMAP_TILE STATUS ON PROJECTION "init=epsg:31984" END IMAGECOLOR 192 192 192 IMAGEQUALITY 95 IMAGETYPE png OUTPUTFORMAT NAME png DRIVER 'GD/PNG' TRANSPARENT ON END LAYER NAME brazil TYPE raster DATA "/var/www/map/2414-1-SO.tif" STATUS ON PROJECTION "init=epsg:31984" END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Wed Jan 6 12:41:08 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Wed, 6 Jan 2010 14:41:08 -0600 Subject: [mapserver-users] Tilemode Projection Problem In-Reply-To: <3baad6b81001061223v214582f9tb7baa8cf53680cf7@mail.gmail.com> References: <3baad6b81001061223v214582f9tb7baa8cf53680cf7@mail.gmail.com> Message-ID: Ian, I haven't used tilemode, but my assumption is that the map projection block is used to define what the output projection for your tile is (like in the other MapServer modes). Try setting map projection to epsg:3785 or using the proj4 text: +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs If tilemode requires a map extent, it should be expressed in units of the output projection. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Dees Sent: Wednesday, January 06, 2010 2:24 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Tilemode Projection Problem Hi everyone, I've spent the better part of today scouring the internet for documentation and help on the tile mode present in mapserver, but I couldn't find an answer to my problem, so please forgive me if I'm missing some obvious documentation some where... I am attempting to show some GeoTIFFs (from here: ftp://geoftp.ibge.gov.br/mapas/ortofoto/). My research says they're in epsg:31984. I'm trying to use MapServer's tile mode to display them on a Google Map API instance, but can't seem to get any of the images to show up. Also, why am I required to give a PROJECTION statement as a child to the MAP statement (what I assume is the "viewing projection") if the tile mode is just going to reproject to spherical mercator? My .map file is below. Thanks! MAP NAME GMAP_TILE STATUS ON PROJECTION "init=epsg:31984" END IMAGECOLOR 192 192 192 IMAGEQUALITY 95 IMAGETYPE png OUTPUTFORMAT NAME png DRIVER 'GD/PNG' TRANSPARENT ON END LAYER NAME brazil TYPE raster DATA "/var/www/map/2414-1-SO.tif" STATUS ON PROJECTION "init=epsg:31984" END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.dees at gmail.com Wed Jan 6 12:56:09 2010 From: ian.dees at gmail.com (Ian Dees) Date: Wed, 6 Jan 2010 14:56:09 -0600 Subject: [mapserver-users] Tilemode Projection Problem In-Reply-To: References: <3baad6b81001061223v214582f9tb7baa8cf53680cf7@mail.gmail.com> Message-ID: <3baad6b81001061256l4372c92dif35918f1ed0f267b@mail.gmail.com> I tried this and am still not getting anything from my TIFFs. I switched over to using the statesp020.shp data (which is epsg:4326, right?) and am getting very oddly-garbled tiles: http://209.98.160.119:8080/map.html On Wed, Jan 6, 2010 at 2:41 PM, Fawcett, David (MPCA) < David.Fawcett at state.mn.us> wrote: > Ian, > > > > I haven?t used tilemode, but my assumption is that the map projection block > is used to define what the output projection for your tile is (like in the > other MapServer modes). > > > > Try setting map projection to epsg:3785 or using the proj4 text: > > > > +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137 > +towgs84=0,0,0,0,0,0,0 +units=m +no_defs > > > > If tilemode requires a map extent, it should be expressed in units of the > output projection. > > > > David. > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Ian Dees > *Sent:* Wednesday, January 06, 2010 2:24 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] Tilemode Projection Problem > > > > Hi everyone, > > I've spent the better part of today scouring the internet for documentation > and help on the tile mode present in mapserver, but I couldn't find an > answer to my problem, so please forgive me if I'm missing some obvious > documentation some where... > > I am attempting to show some GeoTIFFs (from here: > ftp://geoftp.ibge.gov.br/mapas/ortofoto/). My research says they're in > epsg:31984. > > I'm trying to use MapServer's tile mode to display them on a Google Map API > instance, but can't seem to get any of the images to show up. > > Also, why am I required to give a PROJECTION statement as a child to the > MAP statement (what I assume is the "viewing projection") if the tile mode > is just going to reproject to spherical mercator? > > My .map file is below. > > Thanks! > > MAP > NAME GMAP_TILE > STATUS ON > > PROJECTION "init=epsg:31984" END > > IMAGECOLOR 192 192 192 > IMAGEQUALITY 95 > IMAGETYPE png > > OUTPUTFORMAT > NAME png > DRIVER 'GD/PNG' > TRANSPARENT ON > END > > LAYER > NAME brazil > TYPE raster > DATA "/var/www/map/2414-1-SO.tif" > STATUS ON > PROJECTION "init=epsg:31984" END > END > END > -------------- next part -------------- An HTML attachment was scrubbed... URL: From arnd.wippermann at web.de Wed Jan 6 13:14:35 2010 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed, 6 Jan 2010 22:14:35 +0100 Subject: AW: [mapserver-users] Problem with Russia polygon In-Reply-To: <125FE5C84575394CB9ED84D5DBB151D578FB4897B2@PTPPICEX03.PTPortugal.corpPT.com> Message-ID: Hi, Use ogr tools to convert the shapefile to mapinfo mif. Then you can look at the coordinates for the polygons. There are a couple of times with a longitude < -180. 179.999986 -89.99999999999992 -180.0000149999999 -89.99997799999991 -179.9994199999999 -84.42868099999998 If you change them to -180 (i have tested with -179..... and it works, perhaps -180 do not work) and convert the mapinfo file back to shape, then your trouble should be vanished. Arnd -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Nelson Correia Gesendet: Dienstag, 5. Januar 2010 15:05 An: Rahkonen Jukka; Barend K?bben; Lime, Steve D (DNR); Andy Colson Cc: mapserver-users at lists.osgeo.org Betreff: RE: [mapserver-users] Problem with Russia polygon The problem seems to be with the re-projection from 4326 to 900913, which I'm doing with mapserver (hence, the map file configuration). If I configure the mapfile to use 4326 and make a request in 4326, the problem disappear. So, the re-projection to 900913 should be screwing the polygons at the edges of the map. I tried to re-project the polygons with postgis (st_transform), but I got the following error: ERROR: transform: couldn't project point: -20 (tolerance condition error) Which I don't know the meaning. In the project I'm doing, I have to use 900913, so, if anyone have some ideas of how to solve this, they will be well appreciated. Thanks, Nelson -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: segunda-feira, 4 de Janeiro de 2010 22:03 To: Barend K?bben; Nelson Correia; Lime, Steve D (DNR); Andy Colson Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with Russia polygon Hi, Unfortunately the extents are OK and the problem is something more complicated. Extents are indeed in meters but that's how they must be because the MAP level projection looks like this: PROJECTION "init=epsg:900913" END -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Barend K?bben L?hetetty: ma 4.1.2010 22:52 Vastaanottaja: Nelson Correia; Lime, Steve D (DNR); Andy Colson Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Problem with Russia polygon You've got data that is in latlong (units decimal degrees) in your shapefile, however in the EXTENT part of the map file you use EXTENT -20037508 -13590765 20037508 11229864 Which are not latlomngs but some projected coordinates, and UNITS meters IN the LAYER you tell mapserver that its: PROJECTION "proj=longlat" "datum=WGS84" "no_defs" END These two are contradictory. You'll have to match the PROJECTION in the LAYER to the actual projection and units (apparentlt these are correct) , and make sure the EXTENT is expressed in the same system. So best thing is to set the EXTENT in latlons (as its the whole world -180 -90 180 90 is a safe bet) and UNITS to degrees... Yours, -- Barend K?bben Senior Lecturer University of Twente, Faculty of Geo-Information Science and Earth Observation (ITC) PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 04-01-10 19:34, "Nelson Correia" wrote: > Here is the simplified shapefile, along with a mapfile that uses it: > http://www.2shared.com/file/10449234/a18d6a03/countries.html > > Nelson > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: segunda-feira, 4 de Janeiro de 2010 17:28 > To: Nelson Correia; Barend K?bben; Andy Colson > Cc: mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Problem with Russia polygon > > Would be interesting to get a copy of the data in shapefile format, plus the > mapfile that generates the error... > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nelson Correia > Sent: Monday, January 04, 2010 7:32 AM > To: Barend K?bben; Andy Colson > Cc: mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Problem with Russia polygon > > Hello, > > All the russian polygons are valid (st_valid) and closed (st_closed). The > problem seems to be in the vertical lines at 180? and -180? that divide > certain areas of the country. It seems like when mapserver tries to draw these > lines, there's some kind of unknown behavior that make it draw horizontal > lines instead, resulting in very strange polygons. > > However, I have not solved the problem yet. > > Nelson > > -----Original Message----- > From: Barend K?bben [mailto:kobben at itc.nl] > Sent: s?bado, 2 de Janeiro de 2010 15:33 > To: Andy Colson; Nelson Correia > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Problem with Russia polygon > > Hi, > >> I guess to make a long story short, do you have any editors (like qgis) that >> you can use to see/edit the layer and make sure each record is valid? > You can use PostGIS's ST_IsValid() for that. > > The problem of Nelson seems to me to be a 'dateline' problem: you have > coordinates in latlon and some polygons are crossing the dateline (and/or > the poles), therefore the coordinates' sign jumps from - to + (or from E to > W). If you then draw that in a Plate Carree 'projection (where latitudes and > longitudes are treated as if they were Cartesian coordinates , which they > surely aren't: they are angles from the middle of the Earth!), then the > polygon jumps from the extreme right to the extreme left of the picture... > > > -- > Barend K?bben > Senior Lecturer > University of Twente, Faculty of Geo-Information Science and > Earth Observation (ITC) > PO Box 6, 7500AA Enschede, The Netherlands > +31 (0)53 4874253 > > > > On 02-01-10 15:50, "Andy Colson" wrote: > >> On 12/30/2009 11:14 AM, Nelson Correia wrote: >>> Hello, >>> >>> I?m using shapefile world data from gadm.org (I?ve had this same problem >>> with other data sources too) and I?m having a problem with the Russian >>> polygon: mapserver draws some strange lines parallel to the equator, >>> near the north pole (like you can see in the attached image). >>> >>> Anyone had the same problem and knows how to solve it? >>> >>> Thanks, >>> >>> Nelson >> >> I have no idea if this is the same problem, but I have run into weird drawing >> problems before. I import shape files into PostGIS and then use mapserver on >> that. I got a polygon layer that had an unclosed line (I guess that is a >> good >> way to describe it). It pissed off mapserver. I could run sql like: >> >> select gid from layer where not ST_IsClosed(the_geom) >> >> and it would pull it up. The people that sent me the layer swore there was >> nothing wrong with it (they didn't see any error). >> >> I guess to make a long story short, do you have any editors (like qgis) that >> you can use to see/edit the layer and make sure each record is valid? >> >> -Andy >> _______________________________________________ >> 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. > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente 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. _______________________________________________ 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 vasileestan at gmail.com Thu Jan 7 04:42:29 2010 From: vasileestan at gmail.com (Vasile Cristian Stan) Date: Thu, 7 Jan 2010 04:42:29 -0800 (PST) Subject: [mapserver-users] cofigure problems on Ubuntu 9.10 In-Reply-To: <4B449D9E.9090109@mapgears.com> References: <1262775190986-4260091.post@n2.nabble.com> <4B449D9E.9090109@mapgears.com> Message-ID: <1262868149967-4266229.post@n2.nabble.com> Thanks Alan The packages are installed. ii libjpeg62-dev 6b-14build1 Development files for the IJG JPEG library ii libpng12-dev 1.2.37-1 PNG library - development Also, I tried to configure using another script presented here: http://n2.nabble.com/Error-running-configure-on-a-Linux-machine-td3278036.html#a3278036 , and with this script jpeg and png works but the rest of packages are not included. So, there are no problems with the packages, maybe the configuration script is wrong. # Vasi Alan Boudreault wrote: > > I would suggest to verify with the dpkg command line if the packages > |libpng12-dev and ||libjpeg62-dev |are installed. > > You can also take a look to these binarie packages: > https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable , which > contain mapserver 5.6.0. > > Alan > > luftadler wrote: >> Hi everyone, >> >> I try to install MapServer 5.6.0, for the first time, on my machine >> (using >> Ubuntu 9.10). >> The problem is that my configuration don't find few installed libraries >> like: png and jpeg. >> >> My configuration script: >> >> ./configure \ >> --enable-debug \ >> --prefix=/usr \ >> --with-xml2 \ >> --with-pdf \ >> --with-gd \ >> --with-jpeg \ >> --with-freetype \ >> --with-agg \ >> --with-eppl \ >> --with-proj \ >> --with-threads \ >> --with-sde \ >> --with-geos \ >> --with-ogr \ >> --with-gdal \ >> --with-tiff \ >> --with-postgis \ >> --with-wfs \ >> --with-wcs \ >> --with-wmsclient \ >> --with-wfsclient \ >> --with-sos \ >> --with-fribidi-config \ >> --with-php=/usr/include/php5 \ >> --with-httpd=/usr/sbin/apache2 \ >> >> ______________________________________________ >> MapServer is now configured for >> >> -------------- Compiler Info ------------- >> C compiler: gcc -g -fPIC -Wall >> C++ compiler: g++ -g -fPIC -Wall >> Debug: -g >> Generic NINT: >> >> -------------- Renderer Settings --------- >> OpenGL support: >> zlib support: -DUSE_ZLIB >> png support: >> palette rgba png support: >> jpeg support: >> iconv support: -DUSE_ICONV >> AGG support: -DUSE_AGG >> Cairo (SVG,PDF) support: >> Ming(flash) support: >> PDFLib support: -DUSE_PDF >> >> -------------- Support Libraries --------- >> Proj.4 support: -DUSE_PROJ >> Libxml2 support: -DUSE_LIBXML2 >> FriBidi support: -DUSE_FRIBIDI >> Curl support: -DUSE_CURL >> FastCGI support: >> Threading support: -DUSE_THREAD >> GEOS support: -DUSE_GEOS -DGEOS_HAS_SIMPLIFY >> >> -------------- Data Format Drivers ------- >> native tiff support: -DUSE_TIFF >> PostGIS support: -DUSE_POSTGIS >> EPPL7 support: -DUSE_EPPL >> ArcSDE support: >> OGR support: -DUSE_OGR >> GDAL support: -DUSE_GDAL >> Oracle Spatial support: >> >> -------------- OGC Services -------------- >> WMS Server: -DUSE_WMS_SVR >> WMS Client: -DUSE_WMS_LYR >> WFS Server: -DUSE_WFS_SVR >> WFS Client: -DUSE_WMS_LYR >> WCS Server: -DUSE_WCS_SVR >> SOS Server: -DUSE_SOS_SVR >> >> -------------- MapScript ----------------- >> PHP MapScript: yes >> ___________________________________________ >> >> #Vasi >> >> > > > -- > Alan Boudreault > Mapgears > 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://n2.nabble.com/cofigure-problems-on-Ubuntu-9-10-tp4260091p4266229.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Tim.Nolte at ipcswirelessinc.com Thu Jan 7 05:03:21 2010 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Thu, 7 Jan 2010 08:03:21 -0500 Subject: [mapserver-users] FW: [MapServer] #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript Message-ID: Has anyone else experienced this issue and aware of a fix? - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS:??? 616-706-2438 Support: 616-929-0289 Fax: 616-554-6484 -----Original Message----- From: trac at osgeo.org [mailto:trac at osgeo.org] Sent: Wednesday, January 06, 2010 4:48 PM To: undisclosed-recipients Subject: [MapServer] #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript ---------------------------------+------------------------------------------ Reporter: tnolte | Owner: sdlime Type: defect | Status: new Priority: normal | Milestone: Component: MapServer C Library | Version: 5.6 Severity: normal | Keywords: oracle, wfs ---------------------------------+------------------------------------------ I'm using a PHP MapScript WFS wrapper script: {{{ $request = ms_newOwsRequestObj(); /* set some parameters specifically */ if (!array_key_exists('SERVICE',$_REQUEST)) { $_REQUEST['SERVICE'] = "WFS"; } if (!array_key_exists('VERSION',$_REQUEST)) { $_REQUEST['VERSION'] = "1.0.0"; } foreach ($_REQUEST as $key => $value) { $request->setParameter($key, $value); } ms_ioinstallstdouttobuffer(); if ($_GET['features'] == "sites") { $oMap = ms_newMapObj("../map/sites.map"); } else { $oMap = ms_newMapObj("../map/wfs.map"); } $oMap->owsdispatch($request); $contenttype = ms_iostripstdoutbuffercontenttype(); $buffer = ms_iogetstdoutbufferstring(); header('Content-Type: '.$contenttype); echo $buffer; ms_ioresethandlers(); }}} My WFS client is receiving the data columns but there is no geometry data returned to the client to map. The client that I an using is MapInfo 9.5.1. Server versions are: Apache 2.2.4, PHP 5.2.6, Oracle 10G R2, MapServer 5.6 -- Ticket URL: MapServer MapServer From Tim.Nolte at ipcswirelessinc.com Thu Jan 7 06:07:47 2010 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Thu, 7 Jan 2010 09:07:47 -0500 Subject: [mapserver-users] FW: [MapServer] #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript Message-ID: Anyone have any comments on this? ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS:??? 616-706-2438 Support: 616-929-0289 Fax: 616-554-6484 -----Original Message----- From: trac at osgeo.org [mailto:trac at osgeo.org] Sent: Thursday, January 07, 2010 9:00 AM To: undisclosed-recipients Subject: Re: [MapServer] #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript ---------------------------------+------------------------------------------ Reporter: tnolte | Owner: sdlime Type: defect | Status: new Priority: normal | Milestone: Component: MapServer C Library | Version: 5.6 Severity: normal | Resolution: Keywords: oracle, wfs | ---------------------------------+------------------------------------------ Comment (by tnolte): I have reverted my Development server back to MS 5.4.2 and the WFS is working again. I looked at the same request using DEBUG and can see that the process that is used to query the Oracle Spatial data is completely different. I'm suspecting these are the single-pass query changes that were made in 5.6 for WFS. I need to find out if there is now code changes that need to be made in PHP MapScript or if this is indeed a 5.6 defect. Can anyone else verify this? -- Ticket URL: MapServer MapServer From ian.dees at gmail.com Thu Jan 7 06:22:12 2010 From: ian.dees at gmail.com (Ian Dees) Date: Thu, 7 Jan 2010 08:22:12 -0600 Subject: [mapserver-users] Tilemode Projection Problem In-Reply-To: <3baad6b81001061256l4372c92dif35918f1ed0f267b@mail.gmail.com> References: <3baad6b81001061223v214582f9tb7baa8cf53680cf7@mail.gmail.com> <3baad6b81001061256l4372c92dif35918f1ed0f267b@mail.gmail.com> Message-ID: <3baad6b81001070622x6a15a229i76e2ffd04e8b5f82@mail.gmail.com> After getting all the projection sections into my .map file without any correctly-drawn tiles, I've given up on tilemode for now and am trying out tilecache with MapServer's WMS. However, it appears that EPSG:900913 is not known in my system. On a Linux install, where is the list of projections/WKT? I've tried using upper and lower-case namespace (epsg and EPSG) to no avail. I get the following error through tilecache when it attempts to hit my WMS: msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. URL it tries: http://209.98.160.119:8080/cgi-bin/mapserv?map=/var/www/map/map.map&layers=states&styles=&service=WMS&width=256&format=image%2Fpng&request=GetMap&height=256&srs=EPSG%3A900913&version=1.1.1&bbox=-20037508.34%2C-20037508.34%2C20037508.3384%2C20037508.3384 On Wed, Jan 6, 2010 at 2:56 PM, Ian Dees wrote: > I tried this and am still not getting anything from my TIFFs. I switched > over to using the statesp020.shp data (which is epsg:4326, right?) and am > getting very oddly-garbled tiles: > > http://209.98.160.119:8080/map.html > > > On Wed, Jan 6, 2010 at 2:41 PM, Fawcett, David (MPCA) < > David.Fawcett at state.mn.us> wrote: > >> Ian, >> >> >> >> I haven?t used tilemode, but my assumption is that the map projection >> block is used to define what the output projection for your tile is (like in >> the other MapServer modes). >> >> >> >> Try setting map projection to epsg:3785 or using the proj4 text: >> >> >> >> +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137 >> +towgs84=0,0,0,0,0,0,0 +units=m +no_defs >> >> >> >> If tilemode requires a map extent, it should be expressed in units of the >> output projection. >> >> >> >> David. >> >> >> >> *From:* mapserver-users-bounces at lists.osgeo.org [mailto: >> mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Ian Dees >> *Sent:* Wednesday, January 06, 2010 2:24 PM >> *To:* mapserver-users at lists.osgeo.org >> *Subject:* [mapserver-users] Tilemode Projection Problem >> >> >> >> Hi everyone, >> >> I've spent the better part of today scouring the internet for >> documentation and help on the tile mode present in mapserver, but I couldn't >> find an answer to my problem, so please forgive me if I'm missing some >> obvious documentation some where... >> >> I am attempting to show some GeoTIFFs (from here: >> ftp://geoftp.ibge.gov.br/mapas/ortofoto/). My research says they're in >> epsg:31984. >> >> I'm trying to use MapServer's tile mode to display them on a Google Map >> API instance, but can't seem to get any of the images to show up. >> >> Also, why am I required to give a PROJECTION statement as a child to the >> MAP statement (what I assume is the "viewing projection") if the tile mode >> is just going to reproject to spherical mercator? >> >> My .map file is below. >> >> Thanks! >> >> MAP >> NAME GMAP_TILE >> STATUS ON >> >> PROJECTION "init=epsg:31984" END >> >> IMAGECOLOR 192 192 192 >> IMAGEQUALITY 95 >> IMAGETYPE png >> >> OUTPUTFORMAT >> NAME png >> DRIVER 'GD/PNG' >> TRANSPARENT ON >> END >> >> LAYER >> NAME brazil >> TYPE raster >> DATA "/var/www/map/2414-1-SO.tif" >> STATUS ON >> PROJECTION "init=epsg:31984" END >> END >> END >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From danlittle at yahoo.com Thu Jan 7 06:30:06 2010 From: danlittle at yahoo.com (Dan Little) Date: Thu, 7 Jan 2010 06:30:06 -0800 (PST) Subject: [mapserver-users] Tilemode Projection Problem In-Reply-To: <3baad6b81001070622x6a15a229i76e2ffd04e8b5f82@mail.gmail.com> References: <3baad6b81001061223v214582f9tb7baa8cf53680cf7@mail.gmail.com> <3baad6b81001061256l4372c92dif35918f1ed0f267b@mail.gmail.com> <3baad6b81001070622x6a15a229i76e2ffd04e8b5f82@mail.gmail.com> Message-ID: <590968.26731.qm@web51406.mail.re2.yahoo.com> It's in the "share/proj" directory... but that will depend on where proj is installed... could be /usr /usr/local /opt /opt/local ... or if you're me ... /opt/mapserver/ (primarily because I'm anal and isolate the crap out of things). > >From: Ian Dees >To: "Fawcett, David (MPCA)" >Cc: "mapserver-users at lists.osgeo.org" >Sent: Thu, January 7, 2010 8:22:12 AM >Subject: Re: [mapserver-users] Tilemode Projection Problem > >>After getting all the projection sections into my .map file without any correctly-drawn tiles, I've given up on tilemode for now and am trying out tilecache with MapServer's WMS. However, it appears that EPSG:900913 is not known in my system. On a Linux install, where is the list of projections/WKT? > >I've tried using upper and lower-case namespace (epsg and EPSG) to no avail. > >I get the following error through tilecache when it attempts to hit my WMS: > > > > >msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. > > > >URL it tries: >http://209.98.160.119:8080/cgi-bin/mapserv?map=/var/www/map/map.map&layers=states&styles=&service=WMS&width=256&format=image%2Fpng&request=GetMap&height=256&srs=EPSG%3A900913&version=1.1.1&bbox=-20037508.34%2C-20037508.34%2C20037508.3384%2C20037508.3384 > > >On Wed, Jan 6, 2010 at 2:56 PM, Ian Dees wrote: > >I tried this and am still not getting anything from my TIFFs. I switched over to using the statesp020.shp data (which is epsg:4326, right?) and am getting very oddly-garbled tiles: >> >>http://209.98.160.119:8080/map.html >> >> >>On Wed, Jan 6, 2010 at 2:41 PM, Fawcett, David (MPCA) wrote: >> >>>>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>>>>> >>>>>> >>>Ian, >>> >>>I haven?t used tilemode, but my assumption is that the map >>>projection block is used to define what the output projection for your tile is >>>(like in the other MapServer modes). >>> >>>Try setting map projection to epsg:3785 or using the proj4 text: >>> >>>+proj=merc >>>+lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +towgs84=0,0,0,0,0,0,0 >>>+units=m +no_defs >>> >>>If tilemode requires a map extent, it should be expressed in >>>units of the output projection. >>> >>>David. >>> >>>>>> >>>From:mapserver-users-bounces at lists.osgeo.org >>>[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Dees >>>Sent: Wednesday, January 06, 2010 2:24 PM >>>To: mapserver-users at lists.osgeo.org >>>Subject: [mapserver-users] Tilemode Projection Problem >>>>>> >>> >>>Hi everyone, >>> >>>>>>I've spent the better part of today scouring the internet for documentation and >>>help on the tile mode present in mapserver, but I couldn't find an answer to my >>>problem, so please forgive me if I'm missing some obvious documentation some >>>where... >>> >>>>>>I am attempting to show some GeoTIFFs (from here: ftp://geoftp.ibge.gov.br/mapas/ortofoto/). >>>My research says they're in epsg:31984. >>> >>>>>>I'm trying to use MapServer's tile mode to display them on a Google Map API >>>instance, but can't seem to get any of the images to show up. >>> >>>>>>Also, why am I required to give a PROJECTION statement as a child to the MAP >>>statement (what I assume is the "viewing projection") if the tile mode >>>is just going to reproject to spherical mercator? >>> >>>>>>My .map file is below. >>> >>>>>>Thanks! >>> >>>>>>MAP >>>>>> NAME GMAP_TILE >>>>>> STATUS ON >>> >>>>>> PROJECTION >>>"init=epsg:31984" END >>> >>>>>> IMAGECOLOR 192 192 192 >>>>>> IMAGEQUALITY 95 >>>>>> IMAGETYPE png >>> >>>>>> OUTPUTFORMAT >>>>>> >>>NAME png >>>>>> >>>DRIVER 'GD/PNG' >>>>>> >>>TRANSPARENT ON >>>>>> END >>> >>>>>> LAYER >>>>>> >>>NAME brazil >>>>>> >>>TYPE raster >>>>>> >>>DATA "/var/www/map/2414-1-SO.tif" >>>>>> >>>STATUS ON >>>>>> >>>PROJECTION "init=epsg:31984" END >>>>>> END >>>>>>END >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aboudreault at mapgears.com Thu Jan 7 06:41:16 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Thu, 7 Jan 2010 09:41:16 -0500 Subject: [mapserver-users] cofigure problems on Ubuntu 9.10 In-Reply-To: <1262868149967-4266229.post@n2.nabble.com> References: <1262775190986-4260091.post@n2.nabble.com> <4B449D9E.9090109@mapgears.com> <1262868149967-4266229.post@n2.nabble.com> Message-ID: <201001070941.16621.aboudreault@mapgears.com> I'm mostly sure that the configure script is right, because we use it on Ubuntu Karmic. You can see the the configure options used to build the package on karmic there: http://svn.debian.org/wsvn/pkg- grass/packages/mapserver/tags/5.6.0%2Bfinal-1/debian/rules I don't see "--with-png" in your config options... you should add it if you want the support. Otherwise, I suggest to take a look at the "config.log" file to see what's happen in detail. Hope this help. Alan On January 7, 2010 07:42:29 am Vasile Cristian Stan wrote: > Thanks Alan > > The packages are installed. > ii libjpeg62-dev 6b-14build1 Development files for the IJG JPEG > library > ii libpng12-dev 1.2.37-1 PNG library - development > > Also, I tried to configure using another script presented here: > http://n2.nabble.com/Error-running-configure-on-a-Linux-machine-td3278036.h > tml#a3278036 , and with this script jpeg and png works but the rest of > packages are not included. > So, there are no problems with the packages, maybe the configuration script > is wrong. > > # Vasi > > Alan Boudreault wrote: > > I would suggest to verify with the dpkg command line if the packages > > > > |libpng12-dev and ||libjpeg62-dev |are installed. > > > > You can also take a look to these binarie packages: > > https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable , which > > contain mapserver 5.6.0. > > > > Alan > > > > luftadler wrote: > >> Hi everyone, > >> > >> I try to install MapServer 5.6.0, for the first time, on my machine > >> (using > >> Ubuntu 9.10). > >> The problem is that my configuration don't find few installed libraries > >> like: png and jpeg. > >> > >> My configuration script: > >> > >> ./configure \ > >> --enable-debug \ > >> --prefix=/usr \ > >> --with-xml2 \ > >> --with-pdf \ > >> --with-gd \ > >> --with-jpeg \ > >> --with-freetype \ > >> --with-agg \ > >> --with-eppl \ > >> --with-proj \ > >> --with-threads \ > >> --with-sde \ > >> --with-geos \ > >> --with-ogr \ > >> --with-gdal \ > >> --with-tiff \ > >> --with-postgis \ > >> --with-wfs \ > >> --with-wcs \ > >> --with-wmsclient \ > >> --with-wfsclient \ > >> --with-sos \ > >> --with-fribidi-config \ > >> --with-php=/usr/include/php5 \ > >> --with-httpd=/usr/sbin/apache2 \ > >> > >> ______________________________________________ > >> MapServer is now configured for > >> > >> -------------- Compiler Info ------------- > >> C compiler: gcc -g -fPIC -Wall > >> C++ compiler: g++ -g -fPIC -Wall > >> Debug: -g > >> Generic NINT: > >> > >> -------------- Renderer Settings --------- > >> OpenGL support: > >> zlib support: -DUSE_ZLIB > >> png support: > >> palette rgba png support: > >> jpeg support: > >> iconv support: -DUSE_ICONV > >> AGG support: -DUSE_AGG > >> Cairo (SVG,PDF) support: > >> Ming(flash) support: > >> PDFLib support: -DUSE_PDF > >> > >> -------------- Support Libraries --------- > >> Proj.4 support: -DUSE_PROJ > >> Libxml2 support: -DUSE_LIBXML2 > >> FriBidi support: -DUSE_FRIBIDI > >> Curl support: -DUSE_CURL > >> FastCGI support: > >> Threading support: -DUSE_THREAD > >> GEOS support: -DUSE_GEOS -DGEOS_HAS_SIMPLIFY > >> > >> -------------- Data Format Drivers ------- > >> native tiff support: -DUSE_TIFF > >> PostGIS support: -DUSE_POSTGIS > >> EPPL7 support: -DUSE_EPPL > >> ArcSDE support: > >> OGR support: -DUSE_OGR > >> GDAL support: -DUSE_GDAL > >> Oracle Spatial support: > >> > >> -------------- OGC Services -------------- > >> WMS Server: -DUSE_WMS_SVR > >> WMS Client: -DUSE_WMS_LYR > >> WFS Server: -DUSE_WFS_SVR > >> WFS Client: -DUSE_WMS_LYR > >> WCS Server: -DUSE_WCS_SVR > >> SOS Server: -DUSE_SOS_SVR > >> > >> -------------- MapScript ----------------- > >> PHP MapScript: yes > >> ___________________________________________ > >> > >> #Vasi > -- Alan Boudreault Mapgears http://www.mapgears.com From ibrahimsaricicek at gmail.com Thu Jan 7 07:05:52 2010 From: ibrahimsaricicek at gmail.com (ibrahimsaricicek) Date: Thu, 7 Jan 2010 07:05:52 -0800 (PST) Subject: [mapserver-users] Get table name from WFS Message-ID: <1262876752650-4266874.post@n2.nabble.com> Hi all; Is there a way to get the table name in XML package? What sould I do for such an WFS mapfile? (I wanna see the table name of the object, I clicked on Openlayers...) Thanks, all.. -- View this message in context: http://n2.nabble.com/Get-table-name-from-WFS-tp4266874p4266874.html Sent from the Mapserver - User mailing list archive at Nabble.com. From stephan.holl at intevation.de Thu Jan 7 07:06:24 2010 From: stephan.holl at intevation.de (Stephan Holl) Date: Thu, 7 Jan 2010 16:06:24 +0100 Subject: [mapserver-users] Modifying GetLegendGraphic-URL in METADATA Message-ID: <20100107160624.30450368@thoe.hq.intevation.de> Dear mapserver-users, I would like to modify the given GetLegendGraphic-URL in the GetCapabilities-doc ideally by a METADATA mapfile parameter. Is this possible? I have found the METADATA-parameters wms_style__legendurl_[width|height|href|format] parameters, but as far as I understand this parameters are there to define different images for several styles. When having this parameters set no Is there a way to modify the GetLegendGraphic-URL from a mapfile-parameter? TIA Best Stephan -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | 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: 198 bytes Desc: not available URL: From albertoasuero at gmail.com Thu Jan 7 07:18:43 2010 From: albertoasuero at gmail.com (Alberto Asuero Arroyo) Date: Thu, 7 Jan 2010 16:18:43 +0100 Subject: [mapserver-users] Re: multiple query layers GetFeatureInfo order response In-Reply-To: <939ef32f1001070651q4d7fa356p50f47ec3903e65da@mail.gmail.com> References: <939ef32f1001070651q4d7fa356p50f47ec3903e65da@mail.gmail.com> Message-ID: <939ef32f1001070718m71b620a0s17e608c3ba129b61@mail.gmail.com> Hi!! I've being testing and the response order of the GetFeatureInfo template is the same that the order of the layer in the file .map I've defined a mapfile with layer1 the first, layer 2 the second ... On Thu, Jan 7, 2010 at 3:51 PM, Alberto Asuero Arroyo < albertoasuero at gmail.com> wrote: > Hello > > I'm trying to do a multiple query layer GetFeatureInfo against mapserver > 5.0.3. Unfortunately Mapserver doesn't respond in the order I expected . > > My templates are xhtml that they are parsed from java applet. The issue > come in when several features information are found, mapserver return many > htmls with an order unknown to me. > > I'd wish the templates were received in the same order of the layer list of > QUERY_LAYERS > > For example: > > Query 1: > > > http://10.30.102.100/cgi-bin/sil?VERSION=1.1.1&SERVICE=WMS&FORMAT=image%2Fpng&EXCEPTIONS=application/vnd.ogc.se_xml&TRANSPARENT=FALSE&LAYERS= > *layer1,layer2,layer3* > &WIDTH=1250&HEIGHT=595&SRS=EPSG:23030&BBOX=265683.6,4149453.7,266431.2,4149809.6&REQUEST=GetFeatureInfo&QUERY_LAYERS= > *layer1,layer2,layer3* > &INFO_FORMAT=text/html&FEATURE_COUNT=100&I=973&J=235&X=973&Y=235%27 > > Its returns either: > > ... template layer2 ... > ... template layer1 ... > ... template layer3 ... > > > or: > > ... template layer3 ... > ... template layer2 ... > ... template layer1 ... > > > ... > > I'd wish its always return (like the query list order): > > ... template layer1 ... > ... template layer2 ... > ... template layer3 ... > > How can I do this? > > Thanks in advance > > Regards, Alberto > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tim.Nolte at ipcswirelessinc.com Thu Jan 7 07:22:19 2010 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Thu, 7 Jan 2010 10:22:19 -0500 Subject: [mapserver-users] FW: [MapServer] #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript Message-ID: Below is a sample of my mapfile if anyone sees anything incorrect for 5.6. ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS:??? 616-706-2438 Support: 616-929-0289 Fax: 616-554-6484 -----Original Message----- From: trac at osgeo.org [mailto:trac at osgeo.org] Sent: Thursday, January 07, 2010 10:21 AM To: undisclosed-recipients Subject: Re: [MapServer] #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript ---------------------------------+------------------------------------------ Reporter: tnolte | Owner: sdlime Type: defect | Status: new Priority: normal | Milestone: Component: MapServer C Library | Version: 5.6 Severity: normal | Resolution: Keywords: oracle, wfs | ---------------------------------+------------------------------------------ Comment (by tnolte): Basics of my mapfile: {{{ MAP NAME "iPCS Wireless MapServer" SHAPEPATH "../data" SYMBOLSET "../etc/symbols.txt" FONTSET "../etc/fonts.txt" STATUS ON SIZE 768 576 #600 400 EXTENT -104.29 29.71 -71.55 52.63 #-128.2 16.9 -65.2 58.9 UNITS DD IMAGECOLOR 156 188 217 CONFIG PROJ_LIB "/usr/local/share/proj" CONFIG MS_ERRORFILE "/export/home/www/ipcs/wfs_error.log" DEBUG 5 STATUS ON # ================================================== # Web Interface Definition # ================================================== WEB METADATA wfs_title "iPCS Wireless MapServer" wfs_abstract "iPCS MapServer WFS Service" wfs_onlineresource "http://ms-test.ilpcs.com/cgi- bin/mapserv?map=/export/home/www/ipcs/map/wfs.map&" wfs_request_method "GET" wfs_srs "EPSG:4269" ows_schemas_location "http://schemas.opengis.net/wfs/" END IMAGEPATH "/export/home/www/ipcs/mapserver/.cache/ms_tmp/" IMAGEURL "/ms_tmp/" END # ================================================== # Projection Definition # ================================================== PROJECTION "init=epsg:4269" END LAYER GROUP CELLSITES NAME onairkw TYPE POINT STATUS ON DEBUG 5 CONNECTIONTYPE oraclespatial INCLUDE "./templates/oracle.ref" PROCESSING "CLOSE_CONNECTION=DEFER" DATA "geom FROM ms_sites_onair_kw_vw USING UNIQUE site_id SRID 8307" #LABELITEM "bts_switch_id" METADATA wfs_title "Cell Sites: On-Air (KW)" wfs_extent "-104.29 29.71 -71.55 52.63" wfs_typename "onairkw" gml_geometries "msGeometry" gml_msGeometry_type "point" gml_featureid "site_id" gml_include_items "all" END DUMP TRUE END END # Map File }}} -- Ticket URL: MapServer MapServer From kobben at itc.nl Thu Jan 7 08:18:14 2010 From: kobben at itc.nl (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Thu, 7 Jan 2010 17:18:14 +0100 Subject: [mapserver-users] Get table name from WFS In-Reply-To: <1262876752650-4266874.post@n2.nabble.com> Message-ID: Hi , Can you explain what you mean by "table name in XML package"...? WFS only outputs XML, the data may or may not have originated in a table, but that's not exposed in the WFS interfaces... -- Barend K?bben Senior Lecturer University of Twente, Faculty of Geo-Information Science and Earth Observation (ITC) PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 07-01-10 16:05, "ibrahimsaricicek" wrote: > > > Hi all; > > Is there a way to get the table name in XML package? What sould I do for > such an WFS mapfile? > > (I wanna see the table name of the object, I clicked on Openlayers...) > > > Thanks, all.. > > -- > View this message in context: > http://n2.nabble.com/Get-table-name-from-WFS-tp4266874p4266874.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 Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente 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 yves.moisan at boreal-is.com Thu Jan 7 08:12:29 2010 From: yves.moisan at boreal-is.com (Yves Moisan) Date: Thu, 07 Jan 2010 11:12:29 -0500 Subject: [mapserver-users] Truncated msGMLOutput Message-ID: <1262880749.4523.85.camel@yves-laptop> Hi All, I have a truncated msGMLOutput document for one of my layers and I fail to understand where the problem is. It looks similar to http://trac.osgeo.org/mapserver/ticket/779 but for GetFeatureInfo. I'm running MS 5.2.1 under windows. I tried to run the query on the commandline and here's what I get : E:\mydir\ms4w\Apache\cgi-bin>mapserv "QUERY_STRING=map=../mapfiles/mymapfile.map&QUERY_LA YERS=stations&LAYERS=stations&REQUEST=GetFeatureInfo&EXCEPTIONS=application%2Fvnd.ogc.se_xml&VERSION =1.0.0&SRS=EPSG%3A32644&BBOX=373865.273287%2C2090503.076491% 2C374934.203341%2C2090907.506727&X=406&Y =293&INFO_FORMAT=gml%3B%20charset%3Diso-8859-1&FEATURE_COUNT=1000" Content-type: text/xml I guess there's something wrong in my layer definition but I can't see it so here it is : LAYER NAME 'stations' TYPE POINT DUMP TRUE STATUS On TEMPLATE void CLASSITEM e_cat_station_type_id CONNECTION 'user=user password=pwd dbname=mydb host=localhost port=5433' CONNECTIONTYPE POSTGIS DATA '"the_geom_dummy_32644" FROM "e_cat_station" USING UNIQUE e_cat_station_id USING SRID=32644' METADATA 'DESCRIPTION' 'Stations' 'LAYER_ENCODING' 'UTF-8' "wms_title" "Monitoring station" "wms_srs" "EPSG:32644" "gml_include_items" "all" END # Metadata TRANSPARENCY 100 TOLERANCE 5 CLASS NAME "Number7" EXPRESSION "7" STYLE SYMBOL 'circle' OUTLINECOLOR 0 0 0 COLOR 0 255 0 SIZE 18 END END CLASS NAME "All Stations" STYLE SYMBOL 'circle' OUTLINECOLOR 0 0 0 COLOR 255 0 0 SIZE 6 END END END # Layer The layer shows well (except for the CLASSITEM which I have to sort out, but that's another issue). What am I doing wrong and also how can a truncated XML be generated like this ? TIA, Yves Moisan From Steve.Lime at state.mn.us Thu Jan 7 10:14:04 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 7 Jan 2010 12:14:04 -0600 Subject: [mapserver-users] Re: multiple query layers GetFeatureInfo order response In-Reply-To: <939ef32f1001070718m71b620a0s17e608c3ba129b61@mail.gmail.com> References: <939ef32f1001070651q4d7fa356p50f47ec3903e65da@mail.gmail.com> <939ef32f1001070718m71b620a0s17e608c3ba129b61@mail.gmail.com> Message-ID: You might try a more recent version of MapServer too. Looking at the code the WMS server does set an internal layer order based on the LAYERS= parameter in the WMS request and the default templating respects that order. I don't know if 5.0.3 works that way or if those are more recent changes. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Alberto Asuero Arroyo Sent: Thursday, January 07, 2010 9:19 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Re: multiple query layers GetFeatureInfo order response Hi!! I've being testing and the response order of the GetFeatureInfo template is the same that the order of the layer in the file .map I've defined a mapfile with layer1 the first, layer 2 the second ... On Thu, Jan 7, 2010 at 3:51 PM, Alberto Asuero Arroyo > wrote: Hello I'm trying to do a multiple query layer GetFeatureInfo against mapserver 5.0.3. Unfortunately Mapserver doesn't respond in the order I expected . My templates are xhtml that they are parsed from java applet. The issue come in when several features information are found, mapserver return many htmls with an order unknown to me. I'd wish the templates were received in the same order of the layer list of QUERY_LAYERS For example: Query 1: http://10.30.102.100/cgi-bin/sil?VERSION=1.1.1&SERVICE=WMS&FORMAT=image%2Fpng&EXCEPTIONS=application/vnd.ogc.se_xml&TRANSPARENT=FALSE&LAYERS=layer1,layer2,layer3&WIDTH=1250&HEIGHT=595&SRS=EPSG:23030&BBOX=265683.6,4149453.7,266431.2,4149809.6&REQUEST=GetFeatureInfo&QUERY_LAYERS=layer1,layer2,layer3&INFO_FORMAT=text/html&FEATURE_COUNT=100&I=973&J=235&X=973&Y=235%27 Its returns either: ... template layer2 ... ... template layer1 ... ... template layer3 ... or: ... template layer3 ... ... template layer2 ... ... template layer1 ... ... I'd wish its always return (like the query list order): ... template layer1 ... ... template layer2 ... ... template layer3 ... How can I do this? Thanks in advance Regards, Alberto -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Thu Jan 7 10:25:39 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 07 Jan 2010 13:25:39 -0500 Subject: [mapserver-users] Re: multiple query layers GetFeatureInfo order response In-Reply-To: References: <939ef32f1001070651q4d7fa356p50f47ec3903e65da@mail.gmail.com> <939ef32f1001070718m71b620a0s17e608c3ba129b61@mail.gmail.com> Message-ID: <4B462723.8010801@mapgears.com> Lime, Steve D (DNR) wrote: > You might try a more recent version of MapServer too. Looking at the > code the WMS server does set an internal layer order based on the > LAYERS= parameter in the WMS request and the default templating respects > that order. I don?t know if 5.0.3 works that way or if those are more > recent changes. > That problem was fixed in 5.6: http://trac.osgeo.org/mapserver/ticket/2619 Daniel -- Daniel Morissette http://www.mapgears.com/ From dmorissette at mapgears.com Thu Jan 7 10:30:30 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 07 Jan 2010 13:30:30 -0500 Subject: [mapserver-users] MAPSCRIPT - queryByAttributes on WFS layer In-Reply-To: <843151402.1729.1262765263591.JavaMail.root@linux12> References: <843151402.1729.1262765263591.JavaMail.root@linux12> Message-ID: <4B462846.5090208@mapgears.com> Charlotte DECLERCQ wrote: > Hello Daniel and thanks for the quick answer. > > $oLayer->queryByAttributes($m_Champs, "(".stripslashes($m_Requete).")", > MS_MULTIPLE ); > > doesn't seem to work with $m_Requete : upper(gid) = upper(\'140\'). > I don't think MapServer Logical Expressions support the upper() operator. See http://mapserver.org/mapfile/expressions.html#mapserver-expressions > Is it possible to do some comparison like gid > 140 ... on a WFS layer? > I know it is possible on other types of layers. > Yes, use gid > 140 as your expression. Daniel -- Daniel Morissette http://www.mapgears.com/ From dmorissette at mapgears.com Thu Jan 7 11:37:09 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 07 Jan 2010 14:37:09 -0500 Subject: [mapserver-users] Truncated msGMLOutput In-Reply-To: <1262880749.4523.85.camel@yves-laptop> References: <1262880749.4523.85.camel@yves-laptop> Message-ID: <4B4637E5.7020508@mapgears.com> My first guess would be that the mapserv process aborts (seg faults?). I'd suggest you enable MS_ERRORFILE/DEBUG at both the map and layer level and look for any hints in the debug output. Also check your Apache error_log for signs of a seg fault (not sure if you'd see anything on Windows though). Daniel Yves Moisan wrote: > Hi All, > > I have a truncated msGMLOutput document for one of my layers and I fail > to understand where the problem is. It looks similar to > http://trac.osgeo.org/mapserver/ticket/779 but for GetFeatureInfo. I'm > running MS 5.2.1 under windows. I tried to run the query on the > commandline and here's what I get : > > E:\mydir\ms4w\Apache\cgi-bin>mapserv > "QUERY_STRING=map=../mapfiles/mymapfile.map&QUERY_LA > YERS=stations&LAYERS=stations&REQUEST=GetFeatureInfo&EXCEPTIONS=application%2Fvnd.ogc.se_xml&VERSION > =1.0.0&SRS=EPSG%3A32644&BBOX=373865.273287%2C2090503.076491% > 2C374934.203341%2C2090907.506727&X=406&Y > =293&INFO_FORMAT=gml%3B%20charset%3Diso-8859-1&FEATURE_COUNT=1000" > > Content-type: text/xml > > > > xmlns:gml="http://www.opengis.net/gml" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > I guess there's something wrong in my layer definition but I can't see > it so here it is : > > LAYER > NAME 'stations' > TYPE POINT > DUMP TRUE > STATUS On > TEMPLATE void > CLASSITEM e_cat_station_type_id > CONNECTION 'user=user password=pwd dbname=mydb host=localhost > port=5433' > CONNECTIONTYPE POSTGIS > DATA '"the_geom_dummy_32644" FROM "e_cat_station" USING UNIQUE > e_cat_station_id USING SRID=32644' > > METADATA > 'DESCRIPTION' 'Stations' > 'LAYER_ENCODING' 'UTF-8' > "wms_title" "Monitoring station" > "wms_srs" "EPSG:32644" > "gml_include_items" "all" > END # Metadata > > TRANSPARENCY 100 > TOLERANCE 5 > > CLASS > NAME "Number7" > EXPRESSION "7" > STYLE > SYMBOL 'circle' > OUTLINECOLOR 0 0 0 > COLOR 0 255 0 > SIZE 18 > END > END > CLASS > NAME "All Stations" > STYLE > SYMBOL 'circle' > OUTLINECOLOR 0 0 0 > COLOR 255 0 0 > SIZE 6 > END > END > > > END # Layer > > The layer shows well (except for the CLASSITEM which I have to sort out, > but that's another issue). What am I doing wrong and also how can a > truncated XML be generated like this ? > > TIA, > > Yves Moisan > > _______________________________________________ > 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 yves.moisan at boreal-is.com Thu Jan 7 12:37:14 2010 From: yves.moisan at boreal-is.com (Yves Moisan) Date: Thu, 07 Jan 2010 15:37:14 -0500 Subject: [mapserver-users] Truncated msGMLOutput In-Reply-To: <4B4637E5.7020508@mapgears.com> References: <1262880749.4523.85.camel@yves-laptop> <4B4637E5.7020508@mapgears.com> Message-ID: <1262896634.31316.77.camel@yves-laptop> > My first guess would be that the mapserv process aborts (seg faults?). > > I'd suggest you enable MS_ERRORFILE/DEBUG at both the map and layer > level and look for any hints in the debug output. Also check your Apache > error_log for signs of a seg fault (not sure if you'd see anything on > Windows though). > > Daniel Hi Daniel, Yes, I've just set an error file location (as per Julien's offline suggestion just before yours) and found out the issue was a boolean to text cast issue. I made a view out of my table getting rid of the faulty column and everything is ok now. I wonder why though MS returns a malformed GML output instead of an error message. Cheers, Yves From Steve.Lime at state.mn.us Thu Jan 7 12:55:02 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 7 Jan 2010 14:55:02 -0600 Subject: [mapserver-users] FW: [MapServer] #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript In-Reply-To: References: Message-ID: It's almost certainly related to the one-pass stuff. Oracle support was gutted in the process and has been a bit problematic since. May be related to the other issue you raised in mid-Dec. What's the WFS query? Again a polygon? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nolte, Tim Sent: Thursday, January 07, 2010 8:08 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] FW: [MapServer] #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript Anyone have any comments on this? ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS:??? 616-706-2438 Support: 616-929-0289 Fax: 616-554-6484 -----Original Message----- From: trac at osgeo.org [mailto:trac at osgeo.org] Sent: Thursday, January 07, 2010 9:00 AM To: undisclosed-recipients Subject: Re: [MapServer] #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript ---------------------------------+-------------------------------------- ---------------------------------+---- Reporter: tnolte | Owner: sdlime Type: defect | Status: new Priority: normal | Milestone: Component: MapServer C Library | Version: 5.6 Severity: normal | Resolution: Keywords: oracle, wfs | ---------------------------------+-------------------------------------- ---------------------------------+---- Comment (by tnolte): I have reverted my Development server back to MS 5.4.2 and the WFS is working again. I looked at the same request using DEBUG and can see that the process that is used to query the Oracle Spatial data is completely different. I'm suspecting these are the single-pass query changes that were made in 5.6 for WFS. I need to find out if there is now code changes that need to be made in PHP MapScript or if this is indeed a 5.6 defect. Can anyone else verify this? -- Ticket URL: MapServer MapServer From francoisecherel at hotmail.com Thu Jan 7 13:51:07 2010 From: francoisecherel at hotmail.com (francoise cherel) Date: Thu, 7 Jan 2010 21:51:07 +0000 Subject: [mapserver-users] (no subject) Message-ID: Hi, I have installed MS4W NSIS on my computer : ms4w-2.3.1-setup.exe I added de OGC Workshop and I can see the link to the workshop on my main page (localhost). But I have a message error : You don't have permission to access /ms_ogc_workshop/index.html on this server. Thanks _________________________________________________________________ Vivez No?l avant l'heure avec Hotmail Magic Moment ! http://www.hotmailmagicmoment.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Thu Jan 7 14:01:42 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 07 Jan 2010 17:01:42 -0500 Subject: [mapserver-users] Truncated msGMLOutput In-Reply-To: <1262896634.31316.77.camel@yves-laptop> References: <1262880749.4523.85.camel@yves-laptop> <4B4637E5.7020508@mapgears.com> <1262896634.31316.77.camel@yves-laptop> Message-ID: <4B4659C6.8090202@mapgears.com> Yves Moisan wrote: > > I wonder why though MS returns a malformed GML output instead of an > error message. > Quite likely because the GML output has already started when the error happens, and then it's too late to generate a valid OWS XML exception. We'd need to buffer the GML output (and potentially use lots of memory) to really do the right thing and produce an OWS XML exception in a case like this. The alternative would be to just dump the error message as a string at the end of the truncated GML ouptut which would be better than silently stopping as is happening now. You could file a ticket about this with some steps to reproduce the error if you feel that's worth it, but others may argue that's not a valid move. Keep in mind that the best way to troubleshoot issues like this is MS_ERRORFILE/DEBUG... that's why we made those enhancements a few releases ago. Daniel -- Daniel Morissette http://www.mapgears.com/ From Tim.Nolte at ipcswirelessinc.com Thu Jan 7 14:07:26 2010 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Thu, 7 Jan 2010 17:07:26 -0500 Subject: [mapserver-users] FW: [MapServer] #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript In-Reply-To: References: Message-ID: Actually the query was the whole Oracle Spatial table(view actually). I was finally able to come up with a work around by writing a wfs.php wrapper that fully handled all of the requests via PHP MapScript. I'm actually processing the POSTed XML from the MapInfo WFS client and manually adding them to the ms_newOwsRequestObj request object. And the php wrapper is actually returning all of the results. I'm not using the CGI at all. So I can say that this is something that is broken in the CGI and not PHP MapScript. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS:??? 616-706-2438 Support: 616-929-0289 Fax: 616-554-6484 -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Thursday, January 07, 2010 3:55 PM To: Nolte, Tim; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] FW: [MapServer] #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript It's almost certainly related to the one-pass stuff. Oracle support was gutted in the process and has been a bit problematic since. May be related to the other issue you raised in mid-Dec. What's the WFS query? Again a polygon? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nolte, Tim Sent: Thursday, January 07, 2010 8:08 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] FW: [MapServer] #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript Anyone have any comments on this? ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS:??? 616-706-2438 Support: 616-929-0289 Fax: 616-554-6484 -----Original Message----- From: trac at osgeo.org [mailto:trac at osgeo.org] Sent: Thursday, January 07, 2010 9:00 AM To: undisclosed-recipients Subject: Re: [MapServer] #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript ---------------------------------+-------------------------------------- ---------------------------------+---- Reporter: tnolte | Owner: sdlime Type: defect | Status: new Priority: normal | Milestone: Component: MapServer C Library | Version: 5.6 Severity: normal | Resolution: Keywords: oracle, wfs | ---------------------------------+-------------------------------------- ---------------------------------+---- Comment (by tnolte): I have reverted my Development server back to MS 5.4.2 and the WFS is working again. I looked at the same request using DEBUG and can see that the process that is used to query the Oracle Spatial data is completely different. I'm suspecting these are the single-pass query changes that were made in 5.6 for WFS. I need to find out if there is now code changes that need to be made in PHP MapScript or if this is indeed a 5.6 defect. Can anyone else verify this? -- Ticket URL: MapServer MapServer From jmckenna at gatewaygeomatics.com Thu Jan 7 16:12:09 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 07 Jan 2010 20:12:09 -0400 Subject: [mapserver-users] (no subject) In-Reply-To: References: Message-ID: <4B467859.1060505@gatewaygeomatics.com> francoise cherel wrote: > > Hi, > I have installed MS4W NSIS on my computer : ms4w-2.3.1-setup.exe > > I added de OGC Workshop and I can see the link to the workshop on my > main page (localhost). > > But I have a message error : > You don't have permission to access /ms_ogc_workshop/index.html on this > server. > > Thanks Hello Francoise, Did you restart the Apache service after extracting the OGC workshop zipfile? By the way, if you have any other MS4W questions, you can join the MS4W mailing list and ask there (http://lists.maptools.org/mailman/listinfo/ms4w-users). Thanks. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From ibrahimsaricicek at gmail.com Thu Jan 7 23:13:20 2010 From: ibrahimsaricicek at gmail.com (ibrahimsaricicek) Date: Thu, 7 Jan 2010 23:13:20 -0800 (PST) Subject: [mapserver-users] Get table name from WFS In-Reply-To: References: <1262876752650-4266874.post@n2.nabble.com> Message-ID: <1262934800651-4270951.post@n2.nabble.com> Hi; I have two Postgis tables. Now on Openlayers, I can see table data of my objects in a pop-up window, clicking on the object. (by parsing xml) I mean is there a way to get the table name of the object beside table contents? Thanks... -- View this message in context: http://n2.nabble.com/Get-table-name-from-WFS-tp4266874p4270951.html Sent from the Mapserver - User mailing list archive at Nabble.com. From albertoasuero at gmail.com Thu Jan 7 23:29:08 2010 From: albertoasuero at gmail.com (Alberto Asuero Arroyo) Date: Fri, 8 Jan 2010 08:29:08 +0100 Subject: [mapserver-users] Re: multiple query layers GetFeatureInfo order response In-Reply-To: <4B462723.8010801@mapgears.com> References: <939ef32f1001070651q4d7fa356p50f47ec3903e65da@mail.gmail.com> <939ef32f1001070718m71b620a0s17e608c3ba129b61@mail.gmail.com> <4B462723.8010801@mapgears.com> Message-ID: <939ef32f1001072329p24758218p606ec037bf402854@mail.gmail.com> Ok... Thank you very much Alberto On Thu, Jan 7, 2010 at 7:25 PM, Daniel Morissette wrote: > Lime, Steve D (DNR) wrote: > >> You might try a more recent version of MapServer too. Looking at the code >> the WMS server does set an internal layer order based on the LAYERS= >> parameter in the WMS request and the default templating respects that order. >> I don?t know if 5.0.3 works that way or if those are more recent changes. >> >> > That problem was fixed in 5.6: > > http://trac.osgeo.org/mapserver/ticket/2619 > > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From luigi.cardeles at gmail.com Fri Jan 8 08:54:03 2010 From: luigi.cardeles at gmail.com (Luigi Castro Cardeles) Date: Fri, 8 Jan 2010 14:54:03 -0200 Subject: [mapserver-users] Problem trying to compile Mapserver 5.6.0 with --with-experimental-png Message-ID: Hi List, i am trying to compile Mapserver 5.6.0 on a linux box with --with-experimental-png but the below message appears: checking if AGG support requested... checking if RGBA palette png support requested... configure: error: cannot find png headers in /root/app/mapserver-5.6.0/yes /root/app/mapserver-5.6.0 is the folder where i untar the mapserver tarball yes -> i don't know what is this :P Where i put the location of png headers? This is the command line: ./configure --enable-point-z-m --with-freetype --with-zlib --with-png --with-jpeg --with-xpm --with-libiconv --with-gd --with-pdf --with-agg=/usr --with-experimental-png --with-eppl --with-proj --with-threads --with-geos --with-ogr --with-gdal --with-tiff --with-postgis --with-ming --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-sos --with-curl-config --with-xml2-config --with-fribidi-config --with-cairo --with-fastcgi --with-php=/usr/include/php If i remove --with-experimental-png, i got this: ./configure --enable-point-z-m --with-freetype --with-zlib --with-png --with-jpeg --with-xpm --with-libiconv --with-gd --with-pdf --with-agg=/usr --with-eppl --with-proj --with-threads --with-geos --with-ogr --with-gdal --with-tiff --with-postgis --with-ming --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-sos --with-curl-config --with-xml2-config --with-fribidi-config --with-cairo --with-fastcgi --with-php=/usr/include/php -------------- Compiler Info ------------- C compiler: gcc -O2 -fPIC -W -Wall -Wcast-align -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -Wmissing-declarations C++ compiler: g++ -O2 -fPIC -W -Wall -Wcast-align -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type Debug: Generic NINT: -------------- Renderer Settings --------- OpenGL support: zlib support: -DUSE_ZLIB png support: palette rgba png support: jpeg support: iconv support: -DUSE_ICONV AGG support: -DUSE_AGG Cairo (SVG,PDF) support: -DUSE_CAIRO Ming(flash) support: -DUSE_MING_FLASH PDFLib support: -DUSE_PDF -------------- Support Libraries --------- Proj.4 support: -DUSE_PROJ Libxml2 support: -DUSE_LIBXML2 FriBidi support: -DUSE_FRIBIDI -DUSE_FRIBIDI2 Curl support: -DUSE_CURL FastCGI support: -DUSE_FASTCGI Threading support: -DUSE_THREAD GEOS support: -DUSE_GEOS -DGEOS_HAS_SIMPLIFY -------------- Data Format Drivers ------- native tiff support: -DUSE_TIFF PostGIS support: -DUSE_POSTGIS EPPL7 support: -DUSE_EPPL ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL Oracle Spatial support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: -DUSE_WFS_SVR WFS Client: -DUSE_WMS_LYR WCS Server: -DUSE_WCS_SVR SOS Server: -DUSE_SOS_SVR -------------- MapScript ----------------- PHP MapScript: yes Any clue about this problem? Best Regard's Luigi Castro Cardeles -------------- next part -------------- An HTML attachment was scrubbed... URL: From luigi.cardeles at gmail.com Fri Jan 8 08:58:04 2010 From: luigi.cardeles at gmail.com (Luigi Castro Cardeles) Date: Fri, 8 Jan 2010 14:58:04 -0200 Subject: [mapserver-users] Re: Problem trying to compile Mapserver 5.6.0 with --with-experimental-png In-Reply-To: References: Message-ID: addon: i have the png headers installed. []'s Luigi Castro Cardeles 2010/1/8 Luigi Castro Cardeles > Hi List, > > i am trying to compile Mapserver 5.6.0 on a linux box with > --with-experimental-png but the below message appears: > > checking if AGG support requested... checking if RGBA palette png support > requested... configure: error: cannot find png headers in > /root/app/mapserver-5.6.0/yes > > /root/app/mapserver-5.6.0 is the folder where i untar the mapserver tarball > > yes -> i don't know what is this :P > > Where i put the location of png headers? > > This is the command line: > ./configure --enable-point-z-m --with-freetype --with-zlib --with-png > --with-jpeg --with-xpm --with-libiconv --with-gd --with-pdf --with-agg=/usr > --with-experimental-png --with-eppl --with-proj --with-threads --with-geos > --with-ogr --with-gdal --with-tiff --with-postgis --with-ming --with-wfs > --with-wcs --with-wmsclient --with-wfsclient --with-sos --with-curl-config > --with-xml2-config --with-fribidi-config --with-cairo --with-fastcgi > --with-php=/usr/include/php > > > If i remove --with-experimental-png, i got this: > ./configure --enable-point-z-m --with-freetype --with-zlib --with-png > --with-jpeg --with-xpm --with-libiconv --with-gd --with-pdf --with-agg=/usr > --with-eppl --with-proj --with-threads --with-geos --with-ogr --with-gdal > --with-tiff --with-postgis --with-ming --with-wfs --with-wcs > --with-wmsclient --with-wfsclient --with-sos --with-curl-config > --with-xml2-config --with-fribidi-config --with-cairo --with-fastcgi > --with-php=/usr/include/php > > -------------- Compiler Info ------------- > C compiler: gcc -O2 -fPIC -W -Wall -Wcast-align > -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type > -Wmissing-declarations > C++ compiler: g++ -O2 -fPIC -W -Wall -Wcast-align > -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type > Debug: > Generic NINT: > > -------------- Renderer Settings --------- > OpenGL support: > zlib support: -DUSE_ZLIB > png support: > palette rgba png support: > jpeg support: > iconv support: -DUSE_ICONV > AGG support: -DUSE_AGG > Cairo (SVG,PDF) support: -DUSE_CAIRO > Ming(flash) support: -DUSE_MING_FLASH > PDFLib support: -DUSE_PDF > > -------------- Support Libraries --------- > Proj.4 support: -DUSE_PROJ > Libxml2 support: -DUSE_LIBXML2 > FriBidi support: -DUSE_FRIBIDI -DUSE_FRIBIDI2 > Curl support: -DUSE_CURL > FastCGI support: -DUSE_FASTCGI > Threading support: -DUSE_THREAD > GEOS support: -DUSE_GEOS -DGEOS_HAS_SIMPLIFY > > -------------- Data Format Drivers ------- > native tiff support: -DUSE_TIFF > PostGIS support: -DUSE_POSTGIS > EPPL7 support: -DUSE_EPPL > ArcSDE support: > OGR support: -DUSE_OGR > GDAL support: -DUSE_GDAL > Oracle Spatial support: > > -------------- OGC Services -------------- > WMS Server: -DUSE_WMS_SVR > WMS Client: -DUSE_WMS_LYR > WFS Server: -DUSE_WFS_SVR > WFS Client: -DUSE_WMS_LYR > WCS Server: -DUSE_WCS_SVR > SOS Server: -DUSE_SOS_SVR > > -------------- MapScript ----------------- > PHP MapScript: yes > > > Any clue about this problem? > > Best Regard's > Luigi Castro Cardeles > -------------- next part -------------- An HTML attachment was scrubbed... URL: From luigi.cardeles at gmail.com Fri Jan 8 10:16:44 2010 From: luigi.cardeles at gmail.com (Luigi Castro Cardeles) Date: Fri, 8 Jan 2010 16:16:44 -0200 Subject: [mapserver-users] Is mysqlclient a dependency to compile mapserver? Message-ID: Hi list, another question :D even if i don't want compile mapserver with mysql suport (i don't put --with-mygis at configure) when i run make it throws a error about mysqlclient the full message: g++ -O2 -fPIC -W -Wall -Wcast-align -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -Wmissing-declarations -DUSE_POINT_Z_M -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_POINT_Z_M -DUSE_FASTCGI -DUSE_CAIRO -DUSE_FRIBIDI -DUSE_FRIBIDI2 -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_POSTGIS -DUSE_TIFF -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DGEOS_HAS_SIMPLIFY -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL -DUSE_AGG -DUSE_FTGL -DUSE_PDF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -DUSE_FRIBIDI -DUSE_FRIBIDI2 -I/usr/include -I/usr/include/freetype2 -I/usr/include/FTGL/ -I/usr/include/gdal/ -I/usr/include -I/usr/include -I/usr/include/libxml2 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 shp2img.o -L. -lmapserver -lgd -L/usr/lib64 -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -L/usr/lib64 -lftgl -lpdf -ltiff -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -lproj -ljpeg -lpng -lgdal -L/usr/lib64 -lgeos_c -I/usr/include -lsqlite3 -lodbc -lodbcinst -L/usr/lib -lexpat -L/usr/lib -lxerces-c -lpthread -ljasper -lhdf5 -L/usr/lib64/hdf -lmfhdf -ldf -logdi -lgif -ljpeg -lgeotiff -ltiff -lpng -lnetcdf -lcfitsio -lpq -L/usr/lib64 -lpq -lz -lpthread -lm -lrt -ldl -ldap -ldapclient -ldapserver -lpthread -lrx -lcurl -lxml2 -lz -lm -lcurl -rdynamic -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lssl -lcrypto -L/usr/lib64 -lpq -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lcrypt -ldl -lm -lcurl -L/usr/lib64 -lgeos_c -lpthread -L -lc -lfcgi -lz -lxml2 -lz -lm -lfribidi -lm -lstdc++ -lfreetype -lfontconfig -lz -lcairo -lpng12 -o shp2img /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status make: ** [shp2img] Error 1 and here is the configure i use: ./configure --enable-point-z-m --with-freetype --with-zlib --with-png --with-jpeg --with-xpm --with-libiconv --with-gd --with-pdf --with-ftgl --with-agg=/usr --with-eppl --with-proj --with-threads --with-geos --with-ogr --with-gdal --with-tiff --with-postgis --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-sos --with-curl-config --with-xml2-config --with-fribidi-config --with-cairo --with-fastcgi --with-php=/usr/include/php --with-warnings Best Regard's and sorry for the poor english Luigi Castro Cardeles -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Fri Jan 8 11:10:12 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 08 Jan 2010 14:10:12 -0500 Subject: [mapserver-users] Problem trying to compile Mapserver 5.6.0 with --with-experimental-png In-Reply-To: References: Message-ID: <4B478314.2030505@mapgears.com> Try --with-png=/usr You may have to provide valid paths for a few of the other configure options. See "./configure --help" and/or README.CONFIGURE. Also, it is better to turn on only the options that you require and not try to blindly try to include every possible options without looking up what they are about and which args they take. Daniel Luigi Castro Cardeles wrote: > Hi List, > > i am trying to compile Mapserver 5.6.0 on a linux box with > --with-experimental-png but the below message appears: > > checking if AGG support requested... checking if RGBA palette png > support requested... configure: error: cannot find png headers in > /root/app/mapserver-5.6.0/yes > > /root/app/mapserver-5.6.0 is the folder where i untar the mapserver tarball > > yes -> i don't know what is this :P > > Where i put the location of png headers? > > This is the command line: > ./configure --enable-point-z-m --with-freetype --with-zlib --with-png > --with-jpeg --with-xpm --with-libiconv --with-gd --with-pdf > --with-agg=/usr --with-experimental-png --with-eppl --with-proj > --with-threads --with-geos --with-ogr --with-gdal --with-tiff > --with-postgis --with-ming --with-wfs --with-wcs --with-wmsclient > --with-wfsclient --with-sos --with-curl-config --with-xml2-config > --with-fribidi-config --with-cairo --with-fastcgi > --with-php=/usr/include/php > > > If i remove --with-experimental-png, i got this: > ./configure --enable-point-z-m --with-freetype --with-zlib --with-png > --with-jpeg --with-xpm --with-libiconv --with-gd --with-pdf > --with-agg=/usr --with-eppl --with-proj --with-threads --with-geos > --with-ogr --with-gdal --with-tiff --with-postgis --with-ming --with-wfs > --with-wcs --with-wmsclient --with-wfsclient --with-sos > --with-curl-config --with-xml2-config --with-fribidi-config --with-cairo > --with-fastcgi --with-php=/usr/include/php > > -------------- Compiler Info ------------- > C compiler: gcc -O2 -fPIC -W -Wall -Wcast-align > -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type > -Wmissing-declarations > C++ compiler: g++ -O2 -fPIC -W -Wall -Wcast-align > -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type > Debug: > Generic NINT: > > -------------- Renderer Settings --------- > OpenGL support: > zlib support: -DUSE_ZLIB > png support: > palette rgba png support: > jpeg support: > iconv support: -DUSE_ICONV > AGG support: -DUSE_AGG > Cairo (SVG,PDF) support: -DUSE_CAIRO > Ming(flash) support: -DUSE_MING_FLASH > PDFLib support: -DUSE_PDF > > -------------- Support Libraries --------- > Proj.4 support: -DUSE_PROJ > Libxml2 support: -DUSE_LIBXML2 > FriBidi support: -DUSE_FRIBIDI -DUSE_FRIBIDI2 > Curl support: -DUSE_CURL > FastCGI support: -DUSE_FASTCGI > Threading support: -DUSE_THREAD > GEOS support: -DUSE_GEOS -DGEOS_HAS_SIMPLIFY > > -------------- Data Format Drivers ------- > native tiff support: -DUSE_TIFF > PostGIS support: -DUSE_POSTGIS > EPPL7 support: -DUSE_EPPL > ArcSDE support: > OGR support: -DUSE_OGR > GDAL support: -DUSE_GDAL > Oracle Spatial support: > > -------------- OGC Services -------------- > WMS Server: -DUSE_WMS_SVR > WMS Client: -DUSE_WMS_LYR > WFS Server: -DUSE_WFS_SVR > WFS Client: -DUSE_WMS_LYR > WCS Server: -DUSE_WCS_SVR > SOS Server: -DUSE_SOS_SVR > > -------------- MapScript ----------------- > PHP MapScript: yes > > > Any clue about this problem? > > Best Regard's > Luigi Castro Cardeles > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 dmorissette at mapgears.com Fri Jan 8 14:08:21 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 08 Jan 2010 17:08:21 -0500 Subject: [mapserver-users] MapServer 5.6.1 released Message-ID: <4B47ACD5.2080105@mapgears.com> The MapServer team is pleased to announce the release of MapServer version 5.6.1. No new functionality has been added. This is a maintenance release that fixes a few issues found in 5.6.0, including a few important ones related to queries that may have prevented some users from upgrading to 5.6.0. The list of fixes since 5.6.0 is included at the end of this message. The source code is available at: http://mapserver.org/download.html The binary distributions listed in the download page should be updated with the new release in the next few days. Version 5.6.1 (2010-01-08): --------------------------- - Changed msSaveImageBufferGD to be in accordance with msSaveImageGD (#3201) - Changed the query map rendering implementation without adding extra layers to the map (#3069) - SQL Server 2008 plugin is not handling null field values correctly (#2893) - Hatch symbol not properly saved (#2905) - Expose symbolObj.inmapfile to the SWIG API, have already been exposed to PHP (#3233) - Expose getGeomTransform/setGeomTransform to SWIG instead of exposing the private vars for rfc48 (#3214) - Fixed writeSymbol to support writing 'ANGLE AUTO' (#3214) - Fixed problems with point queries not working via the CGI (mode=query or mode=nquery) (#3246) From geo.engineer123 at gmail.com Fri Jan 8 21:27:12 2010 From: geo.engineer123 at gmail.com (Shaz N) Date: Sat, 9 Jan 2010 09:27:12 +0400 Subject: [mapserver-users] Premature end of script headers: mapserv Message-ID: Hi users.. I have been adding a few new shapefiles to my existing map file. I am a facing a new problem since last evening. I added 9 shapefiles successfully and could view the map in the browser. While adding the 10th shapefile I got an error. All the new shapefiles are simple point shapefiles. Example: LAYER NAME 'sc' CONNECTIONTYPE postgis CONNECTION " " DATA "the_geom from sc" TEMPLATE "dummy.html" DEBUG ON TYPE POINT MAXSCALE 10000 MINSCALE 2000 STATUS DEFAULT LABELITEM "name" LABELCACHE ON CLASS MAXSCALE 10000 MINSCALE 2000 STYLE ANTIALIAS TRUE SYMBOL "square" SIZE 9 COLOR 153 0 102 OUTLINECOLOR 255 255 255 END #end style LABEL ANGLE auto COLOR 153 0 102 ANTIALIAS TRUE FONT vera_sans-bold TYPE TRUETYPE SIZE 9 POSITION auto PARTIALS false BUFFER 1 END #end label END#end class END #end layer This is the error from the error log: Premature end of script headers: mapserv And this is what I got using WMS get map request on the browser: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. I checked the shapefile and map file for errors and couldn?t find any. And mapserver has been installed correctly and has been working well. The problem only arises when I add the extra layer. It works well with all the existing ones. The map file works on my PHP map display page but when I try it using WMS it does not work. I use MapServer 5.0. Any help would be greatly appreciated. Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From geo.engineer123 at gmail.com Fri Jan 8 21:34:48 2010 From: geo.engineer123 at gmail.com (Shaz N) Date: Sat, 9 Jan 2010 09:34:48 +0400 Subject: [mapserver-users] about label in mapfile In-Reply-To: <46b388481001060132k647a9c19t651691d568fe8846@mail.gmail.com> References: <46b388481001060132k647a9c19t651691d568fe8846@mail.gmail.com> Message-ID: Hi.. Which version of MapServer do u use? On Wed, Jan 6, 2010 at 1:32 PM, ??? wrote: > Hi all, > I configured my mapfile with label as follows: > labelitem "name" > CLASS > NAME "river" > STYLE > color 0 200 0 > width 3 > END > > label > angle auto > COLOR 0 255 0 > SHADOWCOLOR 218 0 0 > SHADOWSIZE 1 1 > TYPE truetype > encoding GB2312 > font simsun > SIZE 10 > POSITION auto > PARTIALS FALSE > # MINDISTANCE 30 > BUFFER 4 > FORCE true > END # end of label > END > everything is ok except two problems: > 1?some texts did not display wholly, part of the word disapear. > 2?in the river layer, some rivers were labeled two or more times while I > want that each river is labeled once. > Anyone can help me to resolve those two problems, thank you very much. > > -- > ???? > > _______________________________________________ > 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 happyforev1 at gmail.com Fri Jan 8 23:46:20 2010 From: happyforev1 at gmail.com (=?UTF-8?B?546L6L+e5rOi?=) Date: Sat, 9 Jan 2010 15:46:20 +0800 Subject: [mapserver-users] Can I set class name in mapfile to Chinese? Message-ID: <46b388481001082346j75b6498dsb75fb72a2205a0eb@mail.gmail.com> Hi all, I use mapserver5.4.0 (PHP+MapScript) with ka-map under FreeBSD Release7.1 . Firstly, I want to know if it is possible to display Chinese class name in Legend by MapScript function drawLegend(). When I set my class name to Chinese characters in my mapfile, the name will become messy codes. I searched the MapServer website for explanation of Funciton drawLegend, however, there was only simple two sentences about it. I do not know where I can find more information about that, how can I make the legend picture display Chinese characters? Thank you for any hints. -- ???? -------------- next part -------------- An HTML attachment was scrubbed... URL: From danlittle at yahoo.com Sat Jan 9 04:45:35 2010 From: danlittle at yahoo.com (Dan Little) Date: Sat, 9 Jan 2010 04:45:35 -0800 (PST) Subject: [mapserver-users] Premature end of script headers: mapserv In-Reply-To: References: Message-ID: <810146.10726.qm@web51407.mail.re2.yahoo.com> Try testing it with shp2img and see if you still get the same error. Also, you may need to try the whole thing under GDB or with debugging turned on. > >From: Shaz N >To: mapserver-users at lists.osgeo.org >Sent: Fri, January 8, 2010 11:27:12 PM >Subject: [mapserver-users] Premature end of script headers: mapserv > > >Hi users.. > >I have been adding a few new shapefiles to my existing map file. I am a facing a new problem since last evening. I added 9 shapefiles successfully and could view the map in the browser. While adding the 10th shapefile I got an error. All the new shapefiles are simple point shapefiles. >Example: LAYER > NAME 'sc' > CONNECTIONTYPE postgis > CONNECTION " " > DATA "the_geom from sc" > TEMPLATE "dummy.html" > DEBUG ON > TYPE POINT > MAXSCALE 10000 > MINSCALE 2000 > STATUS DEFAULT > LABELITEM "name" > LABELCACHE ON > > CLASS > MAXSCALE 10000 > MINSCALE 2000 > > STYLE > ANTIALIAS TRUE > SYMBOL "square" > SIZE 9 > COLOR 153 0 102 > OUTLINECOLOR 255 255 255 > END #end style > > LABEL > ANGLE auto > COLOR 153 0 102 > ANTIALIAS TRUE > FONT vera_sans-bold > TYPE TRUETYPE > SIZE 9 > POSITION auto > PARTIALS false > BUFFER 1 > END #end label > END#end class >END #end layer > >This is the error from the error log: > >Premature end of script headers: mapserv > >And this is what I got using WMS get map request on the browser: >Internal Server Error >The server encountered an internal error or misconfiguration and was unable to complete your request. >Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error. >More information about this error may be available in the server error log. > >I checked the shapefile and map file for errors and couldn?t find any. And mapserver has been installed correctly and has been working well. The problem only arises when I add the extra layer. It works well with all the existing ones. >The map file works on my PHP map display page but when I try it using WMS it does not work. > >I use MapServer 5.0. > >Any help would be greatly appreciated. >Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From danlittle at yahoo.com Sat Jan 9 04:53:11 2010 From: danlittle at yahoo.com (Dan Little) Date: Sat, 9 Jan 2010 04:53:11 -0800 (PST) Subject: [mapserver-users] Can I set class name in mapfile to Chinese? In-Reply-To: <46b388481001082346j75b6498dsb75fb72a2205a0eb@mail.gmail.com> References: <46b388481001082346j75b6498dsb75fb72a2205a0eb@mail.gmail.com> Message-ID: <901942.52185.qm@web51406.mail.re2.yahoo.com> What encoding is used for Chinese? > >From: ??? >To: mapserver-users >Sent: Sat, January 9, 2010 1:46:20 AM >Subject: [mapserver-users] Can I set class name in mapfile to Chinese? > >>Hi all, >I use mapserver5.4.0 (PHP+MapScript) with ka-map under FreeBSD Release7.1 . Firstly, I want to know if it is possible to display Chinese class name in Legend by MapScript function drawLegend(). When I set my class name to Chinese characters in my mapfile, the name will become messy codes. I searched the MapServer website for explanation of Funciton drawLegend, however, there was only simple two sentences about it. I do not know where I can find more information about that, how can I make the legend picture display Chinese characters? >>Thank you for any hints. > >-- >???? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Sat Jan 9 08:49:31 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Sat, 9 Jan 2010 10:49:31 -0600 Subject: [mapserver-users] FW: [MapServer] #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript In-Reply-To: References: , Message-ID: Tim: Can you even draw from Oracle? I setup a super simple mapfile that works fine with 5.4 but throws an error with 5.6 in msOracleSpatialLayerWhichShapes(). I'm wondering if the root cause is well below the query functions. I'm just hitting the CGI with a call like: mapserv -nh "QUERY_STRING=map=test.map&mode=map&layers=all" Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nolte, Tim [Tim.Nolte at ipcswirelessinc.com] Sent: Thursday, January 07, 2010 4:07 PM To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] FW: [MapServer] #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript Actually the query was the whole Oracle Spatial table(view actually). I was finally able to come up with a work around by writing a wfs.php wrapper that fully handled all of the requests via PHP MapScript. I'm actually processing the POSTed XML from the MapInfo WFS client and manually adding them to the ms_newOwsRequestObj request object. And the php wrapper is actually returning all of the results. I'm not using the CGI at all. So I can say that this is something that is broken in the CGI and not PHP MapScript. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Support: 616-929-0289 Fax: 616-554-6484 -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Thursday, January 07, 2010 3:55 PM To: Nolte, Tim; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] FW: [MapServer] #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript It's almost certainly related to the one-pass stuff. Oracle support was gutted in the process and has been a bit problematic since. May be related to the other issue you raised in mid-Dec. What's the WFS query? Again a polygon? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nolte, Tim Sent: Thursday, January 07, 2010 8:08 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] FW: [MapServer] #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript Anyone have any comments on this? ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Support: 616-929-0289 Fax: 616-554-6484 -----Original Message----- From: trac at osgeo.org [mailto:trac at osgeo.org] Sent: Thursday, January 07, 2010 9:00 AM To: undisclosed-recipients Subject: Re: [MapServer] #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript ---------------------------------+-------------------------------------- ---------------------------------+---- Reporter: tnolte | Owner: sdlime Type: defect | Status: new Priority: normal | Milestone: Component: MapServer C Library | Version: 5.6 Severity: normal | Resolution: Keywords: oracle, wfs | ---------------------------------+-------------------------------------- ---------------------------------+---- Comment (by tnolte): I have reverted my Development server back to MS 5.4.2 and the WFS is working again. I looked at the same request using DEBUG and can see that the process that is used to query the Oracle Spatial data is completely different. I'm suspecting these are the single-pass query changes that were made in 5.6 for WFS. I need to find out if there is now code changes that need to be made in PHP MapScript or if this is indeed a 5.6 defect. Can anyone else verify this? -- Ticket URL: MapServer MapServer From geo.engineer123 at gmail.com Sat Jan 9 10:28:09 2010 From: geo.engineer123 at gmail.com (Shaz N) Date: Sat, 9 Jan 2010 22:28:09 +0400 Subject: [mapserver-users] Premature end of script headers: mapserv In-Reply-To: <810146.10726.qm@web51407.mail.re2.yahoo.com> References: <810146.10726.qm@web51407.mail.re2.yahoo.com> Message-ID: Hi.. It works with shp2img. I got the png file and it was perfect. The wms request doesnt work and thats when I get the error. I am sorry to sound confused but I am not sure about how to proceed. Should I set DEBUG ON in all my layers? What else do I do? Please help. Thanks. On Sat, Jan 9, 2010 at 4:45 PM, Dan Little wrote: > Try testing it with shp2img and see if you still get the same error. > Also, you may need to try the whole thing under GDB or with debugging > turned on. > > > *From:* Shaz N > *To:* mapserver-users at lists.osgeo.org > *Sent:* Fri, January 8, 2010 11:27:12 PM > *Subject:* [mapserver-users] Premature end of script headers: mapserv > > Hi users.. > > > > I have been adding a few new shapefiles to my existing map file. I am a > facing a new problem since last evening. I added 9 shapefiles successfully > and could view the map in the browser. While adding the 10th shapefile I got > an error. All the new shapefiles are simple point shapefiles. > > Example: LAYER > > NAME 'sc' > > CONNECTIONTYPE postgis > > CONNECTION " " > > DATA "the_geom from sc" > > TEMPLATE "dummy.html" > > DEBUG ON > > TYPE POINT > > MAXSCALE 10000 > > MINSCALE 2000 > > STATUS DEFAULT > > LABELITEM "name" > > LABELCACHE ON > > > > CLASS > > MAXSCALE 10000 > > MINSCALE 2000 > > > > STYLE > > ANTIALIAS TRUE > > SYMBOL "square" > > SIZE 9 > > COLOR 153 0 102 > > OUTLINECOLOR 255 255 255 > > END #end style > > > > LABEL > > ANGLE auto > > COLOR 153 0 102 > > ANTIALIAS TRUE > > FONT vera_sans-bold > > TYPE TRUETYPE > > SIZE 9 > > POSITION auto > > PARTIALS false > > BUFFER 1 > > END #end label > > END#end class > > END #end layer > > > > This is the error from the error log: > > > > Premature end of script headers: mapserv > > > > And this is what I got using WMS get map request on the browser: > > Internal Server Error > > The server encountered an internal error or misconfiguration and was unable > to complete your request. > > Please contact the server administrator, [no address given] and inform them > of the time the error occurred, and anything you might have done that may > have caused the error. > > More information about this error may be available in the server error log. > > > > I checked the shapefile and map file for errors and couldn?t find any. And > mapserver has been installed correctly and has been working well. The > problem only arises when I add the extra layer. It works well with all the > existing ones. > > The map file works on my PHP map display page but when I try it using WMS > it does not work. > > > > I use MapServer 5.0. > > > > Any help would be greatly appreciated. > > Thanks in advance. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Sat Jan 9 14:56:28 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sun, 10 Jan 2010 00:56:28 +0200 Subject: [mapserver-users] Premature end of script headers: mapserv References: Message-ID: Hi, You talk about adding a shapefile but the layer definitions below are for PostGIS layer. Have you copy-pasted another layer or what? The main problem could be that the layer in your mail is missing entries for WMS metadata. Try reading and following the document at http://mapserver.org/ogc/wms_server.html. -Jukka Rahkonen- Shaz N wrote: > Hi users.. > I have been adding a few new shapefiles to my existing map file. I am a facing a new problem since last evening. I added 9 shapefiles successfully and could view the map in the browser. While adding the 10th shapefile I got an error. All the new shapefiles are simple point shapefiles. Example: LAYER NAME 'sc' CONNECTIONTYPE postgis CONNECTION " " DATA "the_geom from sc" TEMPLATE "dummy.html" DEBUG ON TYPE POINT MAXSCALE 10000 MINSCALE 2000 STATUS DEFAULT LABELITEM "name" LABELCACHE ON CLASS MAXSCALE 10000 MINSCALE 2000 STYLE ANTIALIAS TRUE SYMBOL "square" SIZE 9 COLOR 153 0 102 OUTLINECOLOR 255 255 255 END #end style LABEL ANGLE auto COLOR 153 0 102 ANTIALIAS TRUE FONT vera_sans-bold TYPE TRUETYPE SIZE 9 POSITION auto PARTIALS false BUFFER 1 END #end label END#end class END #end layer This is the error from the error log: Premature end of script headers: mapserv And this is what I got using WMS get map request on the browser: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. I checked the shapefile and map file for errors and couldn't find any. And mapserver has been installed correctly and has been working well. The problem only arises when I add the extra layer. It works well with all the existing ones. The map file works on my PHP map display page but when I try it using WMS it does not work. I use MapServer 5.0. Any help would be greatly appreciated. Thanks in advance. From geo.engineer123 at gmail.com Sat Jan 9 21:31:56 2010 From: geo.engineer123 at gmail.com (Shaz N) Date: Sun, 10 Jan 2010 09:31:56 +0400 Subject: [mapserver-users] Premature end of script headers: mapserv In-Reply-To: References: Message-ID: Hi.. I added the new shapefiles to PostGIS using shp2pgsql etc and it was successful. After that, in my mapfile, I included a new layer for each of these shapefiles. What I copy-pasted in my mail was the layer that I added in my mapfile. I have included WMS metadata in the beginning of the mapfile: WEB IMAGEURL "/tmp/" IMAGEPATH /tmp/ms_tmp/ METADATA "wms_title" "MOL" ##required "wms_onlineresource" "....." ##required "wms_srs" "EPSG:2060" ##recommended END I was getting a good output using WMS request: http://....../cgi-bin/mapserv?map=/data/..../t....map&SERVICE=WMS&VERSION=1.1.1&REQUEST=getmap&layers=mol&STYLES=&SRS=epsg:2060&FORMAT=image/jpeg&WIDTH=600&HEIGHT=500&BBOX=332271.136,2800048.4565,335043.0915,2803465.287 As I kept adding new layers, I suddenly started getting an Internal server error on my browser. When I checked the error log, it read: Premature end of script headers: mapserv. All the new layers were similar to each other, with only different "NAME" and "DATA". But the internal server error would just not go unless I reduced the total number of layers in my mapfile. shp2img works fine and I get an output. What doesnt work is the WMS. Works when I reduce the total number of layers in my mapfile. Is there a maximum number of layers or classes that we can use? I use version 5.0 After reading the latest reply, I added WMS metadata to the "layers" also, but WMS still doesnt work. Please help. Thanku v much.. On Sun, Jan 10, 2010 at 2:56 AM, Rahkonen Jukka wrote: > Hi, > > You talk about adding a shapefile but the layer definitions below are for > PostGIS layer. Have you copy-pasted another layer or what? The main problem > could be that the layer in your mail is missing entries for WMS metadata. > Try reading and following the document at > http://mapserver.org/ogc/wms_server.html. > > -Jukka Rahkonen- > > Shaz N wrote: > > > Hi users.. > > > > > I have been adding a few new shapefiles to my existing map file. I am a > facing a new problem since last evening. I added 9 shapefiles successfully > and could view the map in the browser. While adding the 10th shapefile I > got > an error. All the new shapefiles are simple point shapefiles. > > Example: LAYER > > NAME 'sc' > > CONNECTIONTYPE postgis > > CONNECTION " " > > DATA "the_geom from sc" > > TEMPLATE "dummy.html" > > DEBUG ON > > TYPE POINT > > MAXSCALE 10000 > > MINSCALE 2000 > > STATUS DEFAULT > > LABELITEM "name" > > LABELCACHE ON > > > > CLASS > > MAXSCALE 10000 > > MINSCALE 2000 > > > > STYLE > > ANTIALIAS TRUE > > SYMBOL "square" > > SIZE 9 > > COLOR 153 0 102 > > OUTLINECOLOR 255 255 255 > > END #end style > > > > LABEL > > ANGLE auto > > COLOR 153 0 102 > > ANTIALIAS TRUE > > FONT vera_sans-bold > > TYPE TRUETYPE > > SIZE 9 > > POSITION auto > > PARTIALS false > > BUFFER 1 > > END #end label > > END#end class > > END #end layer > > > > This is the error from the error log: > > > > Premature end of script headers: mapserv > > > > And this is what I got using WMS get map request on the browser: > > Internal Server Error > > The server encountered an internal error or misconfiguration and was unable > to complete your request. > > Please contact the server administrator, [no address given] and inform them > of the time the error occurred, and anything you might have done that may > have caused the error. > > More information about this error may be available in the server error log. > > > > I checked the shapefile and map file for errors and couldn't find any. And > mapserver has been installed correctly and has been working well. The > problem only arises when I add the extra layer. It works well with all the > existing ones. > > The map file works on my PHP map display page but when I try it using WMS > it > does not work. > > > > I use MapServer 5.0. > > > > Any help would be greatly appreciated. > > Thanks in advance. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Sun Jan 10 04:02:36 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sun, 10 Jan 2010 14:02:36 +0200 Subject: [mapserver-users] Premature end of script headers: mapserv References: Message-ID: Hi, If I understood right "mol" is the name you have given at MAP level. I do not know if using &layers=mol should really work or not, I have never tried it that way. I use wms_titles advertised at layer lever, either comma separated list or &layers=all. Try what happens when using &layers=all. If it fails add "DEBUG 5" into layer definitions and have a look at ms_errorfile after doing some failing requests. -Jukka- -----Alkuper?inen viesti----- L?hett?j?: Shaz N [mailto:geo.engineer123 at gmail.com] L?hetetty: su 10.1.2010 7:31 Vastaanottaja: Rahkonen Jukka Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Premature end of script headers: mapserv Hi.. I added the new shapefiles to PostGIS using shp2pgsql etc and it was successful. After that, in my mapfile, I included a new layer for each of these shapefiles. What I copy-pasted in my mail was the layer that I added in my mapfile. I have included WMS metadata in the beginning of the mapfile: WEB IMAGEURL "/tmp/" IMAGEPATH /tmp/ms_tmp/ METADATA "wms_title" "MOL" ##required "wms_onlineresource" "....." ##required "wms_srs" "EPSG:2060" ##recommended END I was getting a good output using WMS request: http://....../cgi-bin/mapserv?map=/data/..../t....map&SERVICE=WMS&VERSION=1.1.1&REQUEST=getmap&layers=mol&STYLES=&SRS=epsg:2060&FORMAT=image/jpeg&WIDTH=600&HEIGHT=500&BBOX=332271.136,2800048.4565,335043.0915,2803465.287 As I kept adding new layers, I suddenly started getting an Internal server error on my browser. When I checked the error log, it read: Premature end of script headers: mapserv. All the new layers were similar to each other, with only different "NAME" and "DATA". But the internal server error would just not go unless I reduced the total number of layers in my mapfile. shp2img works fine and I get an output. What doesnt work is the WMS. Works when I reduce the total number of layers in my mapfile. Is there a maximum number of layers or classes that we can use? I use version 5.0 After reading the latest reply, I added WMS metadata to the "layers" also, but WMS still doesnt work. Please help. Thanku v much.. On Sun, Jan 10, 2010 at 2:56 AM, Rahkonen Jukka wrote: > Hi, > > You talk about adding a shapefile but the layer definitions below are for > PostGIS layer. Have you copy-pasted another layer or what? The main problem > could be that the layer in your mail is missing entries for WMS metadata. > Try reading and following the document at > http://mapserver.org/ogc/wms_server.html. > > -Jukka Rahkonen- > > Shaz N wrote: > > > Hi users.. > > > > > I have been adding a few new shapefiles to my existing map file. I am a > facing a new problem since last evening. I added 9 shapefiles successfully > and could view the map in the browser. While adding the 10th shapefile I > got > an error. All the new shapefiles are simple point shapefiles. > > Example: LAYER > > NAME 'sc' > > CONNECTIONTYPE postgis > > CONNECTION " " > > DATA "the_geom from sc" > > TEMPLATE "dummy.html" > > DEBUG ON > > TYPE POINT > > MAXSCALE 10000 > > MINSCALE 2000 > > STATUS DEFAULT > > LABELITEM "name" > > LABELCACHE ON > > > > CLASS > > MAXSCALE 10000 > > MINSCALE 2000 > > > > STYLE > > ANTIALIAS TRUE > > SYMBOL "square" > > SIZE 9 > > COLOR 153 0 102 > > OUTLINECOLOR 255 255 255 > > END #end style > > > > LABEL > > ANGLE auto > > COLOR 153 0 102 > > ANTIALIAS TRUE > > FONT vera_sans-bold > > TYPE TRUETYPE > > SIZE 9 > > POSITION auto > > PARTIALS false > > BUFFER 1 > > END #end label > > END#end class > > END #end layer > > > > This is the error from the error log: > > > > Premature end of script headers: mapserv > > > > And this is what I got using WMS get map request on the browser: > > Internal Server Error > > The server encountered an internal error or misconfiguration and was unable > to complete your request. > > Please contact the server administrator, [no address given] and inform them > of the time the error occurred, and anything you might have done that may > have caused the error. > > More information about this error may be available in the server error log. > > > > I checked the shapefile and map file for errors and couldn't find any. And > mapserver has been installed correctly and has been working well. The > problem only arises when I add the extra layer. It works well with all the > existing ones. > > The map file works on my PHP map display page but when I try it using WMS > it > does not work. > > > > I use MapServer 5.0. > > > > Any help would be greatly appreciated. > > Thanks in advance. > > From jmckenna at gatewaygeomatics.com Sun Jan 10 05:49:56 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sun, 10 Jan 2010 09:49:56 -0400 Subject: [mapserver-users] Premature end of script headers: mapserv In-Reply-To: References: Message-ID: <4B49DB04.5010806@gatewaygeomatics.com> Rahkonen Jukka wrote: > Hi, > > If I understood right "mol" is the name you have given at MAP level. I do not know if using &layers=mol should really work or not, I have never tried it that way. I use wms_titles advertised at layer lever, either comma separated list or &layers=all. > > Try what happens when using &layers=all. If it fails add "DEBUG 5" into layer definitions and have a look at ms_errorfile after doing some failing requests. > > -Jukka- > Just to follow up on Jukka's excellent advice: passing the MAP name in the LAYERS parameter in a WMS GetMap request is an undocumented trick to return a map image of all layers, from MapServer. I would follow Jukka's advice. I would start with a GetCapabilities request, make sure no warnings or errors are reported there, then request each layer by name through a WMS GetMap...that way you can narrow your problem down to one layer. Once you have that one problem layer, remove all other layers from your mapfile, then try again. If same problem occurs, then try to access that shapefile (not loaded into PostGIS) by a GetMap request - if the raw shapefile works then you might have a problem with PostGIS and you can focus your attention there. Hope this helps a little. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From thomas.bonfort at gmail.com Sun Jan 10 10:11:41 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sun, 10 Jan 2010 19:11:41 +0100 Subject: [mapserver-users] Can I set class name in mapfile to Chinese? In-Reply-To: <46b388481001082346j75b6498dsb75fb72a2205a0eb@mail.gmail.com> References: <46b388481001082346j75b6498dsb75fb72a2205a0eb@mail.gmail.com> Message-ID: * make sure your mapfile itself is encoded in utf8 * in your legend's label block, add ENCODING utf8. make sure your label are of type truetype and not bitmap, as the included bitmap fonts definitely do not contain more than ascii characters. regards, thomas this should do the trick. I don't know about chinese encodings, but you should be able to replace utf8 with whatever encoding your mapfile is in. On Sat, Jan 9, 2010 at 08:46, ??? wrote: > Hi all, > I use mapserver5.4.0 (PHP+MapScript) with ka-map under FreeBSD Release7.1 . > Firstly, I want to know if it is possible to display Chinese class name in > Legend by MapScript function drawLegend(). When I set my class name to > Chinese characters in my mapfile, the name will become messy codes. I > searched the MapServer website for explanation of Funciton drawLegend, > however, there was only simple two sentences about it. I do not know where I > can find more information about that, how can I make the legend picture > display Chinese characters? > Thank you for any hints. > > -- > ???? > > _______________________________________________ > 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 karlos036 at yahoo.com Sun Jan 10 12:07:13 2010 From: karlos036 at yahoo.com (karlos036) Date: Sun, 10 Jan 2010 12:07:13 -0800 (PST) Subject: [mapserver-users] Can I set class name in mapfile to Chinese? In-Reply-To: <901942.52185.qm@web51406.mail.re2.yahoo.com> References: <46b388481001082346j75b6498dsb75fb72a2205a0eb@mail.gmail.com> <901942.52185.qm@web51406.mail.re2.yahoo.com> Message-ID: <1263154033781-4282386.post@n2.nabble.com> Hi, I believe that displaying Chinese multi-byte characters is not a limitation of MapServer. Assuming that you have already added the character set you want to display to your FreeBSD system, you need to define the display character set in the HTML header of your web page like this ... Depending on the character set you are trying to show, you may get by with using UFT-8. UCS, the universal ISO 10646 character set definition can also be used. Search the web and you can get examples on how to do this. Cheers, Karlos Dan Little wrote: > > What encoding is used for Chinese? > > >> >>From: ??? >>To: mapserver-users >>Sent: Sat, January 9, 2010 1:46:20 AM >>Subject: [mapserver-users] Can I set class name in mapfile to Chinese? >> >>>Hi all, >>I use mapserver5.4.0 (PHP+MapScript) with ka-map under FreeBSD Release7.1 . Firstly, I want to know if it is possible to display Chinese class name in Legend by MapScript function drawLegend(). When I set my class name to Chinese characters in my mapfile, the name will become messy codes. I searched the MapServer website for explanation of Funciton drawLegend, however, there was only simple two sentences about it. I do not know where I can find more information about that, how can I make the legend picture display Chinese characters? >>>Thank you for any hints. >> >>-- >>???? >> > > > > _______________________________________________ > 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/Can-I-set-class-name-in-mapfile-to-Chinese-tp4276715p4282386.html Sent from the Mapserver - User mailing list archive at Nabble.com. From charles at weareland.com Sun Jan 10 14:11:03 2010 From: charles at weareland.com (bascom49) Date: Sun, 10 Jan 2010 14:11:03 -0800 (PST) Subject: [mapserver-users] New Mapserver install Message-ID: <1263161463360-4282833.post@n2.nabble.com> Ive installed mapserver on a vps server under centos 5 linux. I'm having problems with setting up mapscript. My php setup is : http://174.120.238.19/info.php The output from mapserv -v is: root at inf [/usr/local/apache/cgi-bin]# /usr/local/apache/cgi-bin/mapserv -v MapServer version 5.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE php_mapscript.so is located at: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_mapscript.so I compiled mapserver 5.4.2 from source. Can someone please help me trouble shoot my install ? -- View this message in context: http://n2.nabble.com/New-Mapserver-install-tp4282833p4282833.html Sent from the Mapserver - User mailing list archive at Nabble.com. From baylis.tony at gmail.com Sun Jan 10 17:30:55 2010 From: baylis.tony at gmail.com (Tony Baylis) Date: Mon, 11 Jan 2010 11:30:55 +1000 Subject: [mapserver-users] map projection problem Message-ID: <748707e91001101730p407842f6kf2a643a342626019@mail.gmail.com> Hi All, I'm a bit confused as to the way mapserver deals with projections. My understanding is that if I place a 'PROJECTION' tag as a high level object in the mapfile, then that is the projection I should expect when I read coordinates from a tool such as Chameleon's cursorpos widget. If I then have layers using data of a different base projection I need to place a 'PROJECTION' tag within the 'LAYER' object describing the projection of the base layer. This will ensure all layers even if they are different projections will reproject correctly and layers will render in the correct position relative to each other. If the above is correct can someone explain why I my map is rendering in the projection of the base layers rather than the projection I define in the mapfile level 'PROJECTION' object. See below for me example mapfile. Tony # # Start of map file # MAP NAME sp_geography STATUS ON SIZE 800 500 EXTENT 564300 9470937 599600 9493000 UNITS METERS SHAPEPATH "/opt/FriedaRiver/" IMAGECOLOR 237 255 208 SYMBOLSET "/opt/testwww/htdocs/includes/symbols.sym" FONTSET "/usr/share/fonts/truetype/font.list" DEBUG 2 CONFIG "MS_ERRORFILE" "/opt/testwww/wms_error/ms_error.txt" OUTPUTFORMAT NAME "AGGA" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE RGBA TRANSPARENT ON END # # Start of web interface definition # WEB IMAGEPATH "/opt/testwww/ms_tmp/" IMAGEURL "/ms_tmp/" END # # Assign Projection # PROJECTION "init=epsg:32754" END LAYER GROUP "Geography" CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=FriedaRiver user=****password=********" NAME "Rivers" DATA "wkb_geometry FROM png_riversamg66z54 using unique ogc_fid" PROJECTION "init=epsg:20254" END METADATA SOURCE "METADATA: Supplied by Xstrata 2003" END TEMPLATE "/var/www/chameleon/widgets/Query/QueryResults.phtml" STATUS ON TYPE LINE LABELITEM "name" CLASS STYLE SYMBOL "minor towns" COLOR 50 100 255 SIZE 1 END LABEL ANGLE FOLLOW MINDISTANCE 200 FONT ArialItalic TYPE TRUETYPE SIZE 8 COLOR 50 100 255 OUTLINECOLOR 255 255 255 POSITION UC END END END LAYER GROUP "Tenement" CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=FriedaRiver user=**** password=*****" NAME "Tenement EL58" DATA "wkb_geometry FROM el58_agd66z54 using unique ogc_fid" PROJECTION "init=epsg:20254" END METADATA SOURCE "METADATA: Supplied by Xstrata 2003" END TEMPLATE "/var/www/chameleon/widgets/Query/QueryResults.phtml" STATUS ON TYPE LINE CLASS STYLE COLOR 0 0 0 WIDTH 3 END END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Sun Jan 10 17:40:48 2010 From: andy at squeakycode.net (Andy Colson) Date: Sun, 10 Jan 2010 19:40:48 -0600 Subject: [mapserver-users] New Mapserver install In-Reply-To: <1263161463360-4282833.post@n2.nabble.com> References: <1263161463360-4282833.post@n2.nabble.com> Message-ID: <4B4A81A0.30800@squeakycode.net> On 01/10/2010 04:11 PM, bascom49 wrote: > > Ive installed mapserver on a vps server under centos 5 linux. I'm having > problems with setting up mapscript. > > My php setup is : > > http://174.120.238.19/info.php > > The output from mapserv -v is: > > root at inf [/usr/local/apache/cgi-bin]# /usr/local/apache/cgi-bin/mapserv -v > MapServer version 5.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT > SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS > INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > php_mapscript.so is located at: > > /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_mapscript.so > > I compiled mapserver 5.4.2 from source. > > Can someone please help me trouble shoot my install ? > I don't see a problem, or an error. So what do you need help with? -Andy From jasonbeverage at gmail.com Sun Jan 10 17:49:52 2010 From: jasonbeverage at gmail.com (Jason Beverage) Date: Sun, 10 Jan 2010 20:49:52 -0500 Subject: [mapserver-users] Transparent lines at -180 when rendering BlueMarble data In-Reply-To: <2c4bbbeb0912311522l428e950fla9070af4fa7e49e9@mail.gmail.com> References: <2c4bbbeb0912281127o4b8befc1x488e9b06c4e32497@mail.gmail.com> <2c4bbbeb0912311522l428e950fla9070af4fa7e49e9@mail.gmail.com> Message-ID: <2c4bbbeb1001101749v332fc6f1qe8b31c6f80f8a245@mail.gmail.com> Hi all, I figured out what the issue was, but I'm not sure I understand why it causes the transparent pixels. Originally, when I created my mapObj in Python, I was initializing the map's projection to a geographic projection with: m.setProjection("init=epsg:4326") The issue goes away if I initialize the map using a PROJ string instead: m.setProjection("+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs") The really strange thing is that the proj string is the exact definition of EPSG 4326, so the result of both calls should be equivalent. When I add my layers to the map, I'm setting their projection with setWKTProjection and passing in their WKT strings stored in a database, and both the map and the layer (BlueMarble) should have the same projection. It's almost as if by setting the map's projection with an EPSG code makes Mapserver think it needs to reproject the data even though it doesn't. Any thoughts on why this would occur? Thanks! Jason On Thu, Dec 31, 2009 at 6:22 PM, Jason Beverage wrote: > Hi Steve, > > I thought of that too, but even the Introduction to MapServer page ( > http://mapserver.org/introduction.html) uses -180 -90 180 90 to render the > BlueMarble data at full extent so that seems like it shouldn't be the case. > I'll keep on testing and see what I can come up with. > > Thanks, > > Jason > > > On Wed, Dec 30, 2009 at 11:40 PM, Lime, Steve D (DNR) < > Steve.Lime at state.mn.us> wrote: > >> I wonder if it's due to differences in the extent models. GDAL uses >> edge-to-edge (I believe) meaning that the extent represents the outer edge >> of the UL and LR pixels in the image. MapServer uses a center-to-center >> model where the extent represents the pixel centers of the UL and LR pixels. >> The software itself takes these differences into account and you might need >> to as well as you compute extents. So, when you set an extent with minx at >> -180, MapServer has the center of it's left-hand edge pixels at -180, but in >> GDAL that's the left-hand edge of the left-hand edge pixels. Rounding error >> could account for the blank column. >> >> I'd convert your GDAL extent to a MapServer extent (I can help with this >> if necessary) and then chop things up based on that. Make sense? >> >> Steve >> >> ________________________________________ >> From: mapserver-users-bounces at lists.osgeo.org [ >> mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jason Beverage [ >> jasonbeverage at gmail.com] >> Sent: Monday, December 28, 2009 1:27 PM >> To: mapserver-users >> Subject: [mapserver-users] Transparent lines at -180 when rendering >> BlueMarble data >> >> Hi all, >> >> I'm using mapscript to render some blue marble data into tiles. The issue >> I'm seeing is that occasionally I get a 1pixel wide transparent column along >> -180 at different zoom levels. For example, if I render a 256x256 tile by >> setting the map's extent using: >> map.setExtent (-180.0, -22.5, -157.5, 0.0) >> >> I'm getting the attached image with the transparent column. >> >> The extent of the file itself via gdalinfo is -180,-90,180,90 so it does >> cover the whole world and there are no transparent pixels in the data >> itself. >> >> Thanks! >> >> Jason >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at remoteinformation.com.au Sun Jan 10 17:21:45 2010 From: lists at remoteinformation.com.au (Ben Madin) Date: Mon, 11 Jan 2010 09:21:45 +0800 Subject: [mapserver-users] Premature end of script headers: mapserv In-Reply-To: <20100110170015.42935E015AC@lists.osgeo.org> References: <20100110170015.42935E015AC@lists.osgeo.org> Message-ID: <46E5665F-02CC-43D4-8D0C-198BE9092F42@remoteinformation.com.au> I have had similar errors in the past, and almost invariably it was a postgis query error. Follow Jukka's advice - debug 5 for both the map and the layer, and look in the log. cheers Ben On 11/01/2010, at 1:00 , mapserver-users-request at lists.osgeo.org wrote: > If I understood right "mol" is the name you have given at MAP level. I do not know if using &layers=mol should really work or not, I have never tried it that way. I use wms_titles advertised at layer lever, either comma separated list or &layers=all. > > Try what happens when using &layers=all. If it fails add "DEBUG 5" into layer definitions and have a look at ms_errorfile after doing some failing requests. > > -Jukka- > > > -----Alkuper?inen viesti----- > L?hett?j?: Shaz N [mailto:geo.engineer123 at gmail.com] > L?hetetty: su 10.1.2010 7:31 > Vastaanottaja: Rahkonen Jukka > Kopio: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Premature end of script headers: mapserv > > Hi.. > > I added the new shapefiles to PostGIS using shp2pgsql etc and it was > successful. After that, in my mapfile, I included a new layer for each of > these shapefiles. What I copy-pasted in my mail was the layer that I added > in my mapfile. > > I have included WMS metadata in the beginning of the mapfile: > WEB > IMAGEURL "/tmp/" > IMAGEPATH /tmp/ms_tmp/ > METADATA > "wms_title" "MOL" ##required > "wms_onlineresource" "....." ##required > "wms_srs" "EPSG:2060" ##recommended > END > > I was getting a good output using WMS request: > http://....../cgi-bin/mapserv?map=/data/..../t....map&SERVICE=WMS&VERSION=1.1.1&REQUEST=getmap&layers=mol&STYLES=&SRS=epsg:2060&FORMAT=image/jpeg&WIDTH=600&HEIGHT=500&BBOX=332271.136,2800048.4565,335043.0915,2803465.287 > > As I kept adding new layers, I suddenly started getting an Internal server > error on my browser. When I checked the error log, it read: Premature end of > script headers: mapserv. > All the new layers were similar to each other, with only different "NAME" > and "DATA". But the internal server error would just not go unless I reduced > the total number of layers in my mapfile. From charles at weareland.com Sun Jan 10 18:55:03 2010 From: charles at weareland.com (bascom49) Date: Sun, 10 Jan 2010 18:55:03 -0800 (PST) Subject: [mapserver-users] New Mapserver install In-Reply-To: <4B4A81A0.30800@squeakycode.net> References: <1263161463360-4282833.post@n2.nabble.com> <4B4A81A0.30800@squeakycode.net> Message-ID: <1263178503117-4283578.post@n2.nabble.com> Andy Colson wrote: > > On 01/10/2010 04:11 PM, bascom49 wrote: >> >> Ive installed mapserver on a vps server under centos 5 linux. I'm having >> problems with setting up mapscript. >> >> My php setup is : >> >> http://174.120.238.19/info.php >> >> The output from mapserv -v is: >> >> root at inf [/usr/local/apache/cgi-bin]# /usr/local/apache/cgi-bin/mapserv >> -v >> MapServer version 5.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV >> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT >> SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS >> INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> >> php_mapscript.so is located at: >> >> >> /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_mapscript.so >> >> I compiled mapserver 5.4.2 from source. >> >> Can someone please help me trouble shoot my install ? >> > > I don't see a problem, or an error. So what do you need help with? > > -Andy > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > I expected to see a mapscript entry in the output from phpinfo(0), similar to what is shown here : http://www.londatiga.net/it/installing-mapserver-and-php-mapscript-on-linux/ Any insight that you may have is greatly appreciated. Thanks, Charles -- View this message in context: http://n2.nabble.com/New-Mapserver-install-tp4282833p4283578.html Sent from the Mapserver - User mailing list archive at Nabble.com. From andy at squeakycode.net Sun Jan 10 19:28:53 2010 From: andy at squeakycode.net (Andy Colson) Date: Sun, 10 Jan 2010 21:28:53 -0600 Subject: [mapserver-users] New Mapserver install In-Reply-To: <1263178503117-4283578.post@n2.nabble.com> References: <1263161463360-4282833.post@n2.nabble.com> <4B4A81A0.30800@squeakycode.net> <1263178503117-4283578.post@n2.nabble.com> Message-ID: <4B4A9AF5.7030808@squeakycode.net> On 01/10/2010 08:55 PM, bascom49 wrote: > > > Andy Colson wrote: >> >> On 01/10/2010 04:11 PM, bascom49 wrote: >>> >>> Ive installed mapserver on a vps server under centos 5 linux. I'm having >>> problems with setting up mapscript. >>> >>> My php setup is : >>> >>> http://174.120.238.19/info.php >>> >>> The output from mapserv -v is: >>> >>> root at inf [/usr/local/apache/cgi-bin]# /usr/local/apache/cgi-bin/mapserv >>> -v >>> MapServer version 5.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >>> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV >>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT >>> SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS >>> INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >>> >>> >>> php_mapscript.so is located at: >>> >>> >>> /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_mapscript.so >>> >>> I compiled mapserver 5.4.2 from source. >>> >>> Can someone please help me trouble shoot my install ? >>> >> >> I don't see a problem, or an error. So what do you need help with? >> >> -Andy >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > I expected to see a mapscript entry in the output from phpinfo(0), similar > to > what is shown here : > > http://www.londatiga.net/it/installing-mapserver-and-php-mapscript-on-linux/ > > Any insight that you may have is greatly appreciated. > > Thanks, > Charles > Ah, did you add an entry into the php.ini (in the extensions group)? -Andy From charles at weareland.com Sun Jan 10 19:39:28 2010 From: charles at weareland.com (bascom49) Date: Sun, 10 Jan 2010 19:39:28 -0800 (PST) Subject: [mapserver-users] New Mapserver install In-Reply-To: <4B4A9AF5.7030808@squeakycode.net> References: <1263161463360-4282833.post@n2.nabble.com> <4B4A81A0.30800@squeakycode.net> <1263178503117-4283578.post@n2.nabble.com> <4B4A9AF5.7030808@squeakycode.net> Message-ID: <1263181168896-4283679.post@n2.nabble.com> Andy Colson wrote: > > On 01/10/2010 08:55 PM, bascom49 wrote: >> >> >> Andy Colson wrote: >>> >>> On 01/10/2010 04:11 PM, bascom49 wrote: >>>> >>>> Ive installed mapserver on a vps server under centos 5 linux. I'm >>>> having >>>> problems with setting up mapscript. >>>> >>>> My php setup is : >>>> >>>> http://174.120.238.19/info.php >>>> >>>> The output from mapserv -v is: >>>> >>>> root at inf [/usr/local/apache/cgi-bin]# /usr/local/apache/cgi-bin/mapserv >>>> -v >>>> MapServer version 5.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >>>> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV >>>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT >>>> SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS >>>> INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL >>>> INPUT=SHAPEFILE >>>> >>>> >>>> php_mapscript.so is located at: >>>> >>>> >>>> /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_mapscript.so >>>> >>>> I compiled mapserver 5.4.2 from source. >>>> >>>> Can someone please help me trouble shoot my install ? >>>> >>> >>> I don't see a problem, or an error. So what do you need help with? >>> >>> -Andy >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> >> I expected to see a mapscript entry in the output from phpinfo(0), >> similar >> to >> what is shown here : >> >> http://www.londatiga.net/it/installing-mapserver-and-php-mapscript-on-linux/ >> >> Any insight that you may have is greatly appreciated. >> >> Thanks, >> Charles >> > > Ah, did you add an entry into the php.ini (in the extensions group)? > > -Andy > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > I added : extension = ?php_mapscript.so? to php.ini. I did not add a new path entry as I had copied php_mapscript.so to the default php extensions directory that I saw listed from the output of phpinfo(). Is there something that I need to do to force php.ini to be reloaded ? -- View this message in context: http://n2.nabble.com/New-Mapserver-install-tp4282833p4283679.html Sent from the Mapserver - User mailing list archive at Nabble.com. From andy at squeakycode.net Sun Jan 10 19:59:13 2010 From: andy at squeakycode.net (Andy Colson) Date: Sun, 10 Jan 2010 21:59:13 -0600 Subject: [mapserver-users] New Mapserver install In-Reply-To: <1263181168896-4283679.post@n2.nabble.com> References: <1263161463360-4282833.post@n2.nabble.com> <4B4A81A0.30800@squeakycode.net> <1263178503117-4283578.post@n2.nabble.com> <4B4A9AF5.7030808@squeakycode.net> <1263181168896-4283679.post@n2.nabble.com> Message-ID: <4B4AA211.2040200@squeakycode.net> On 01/10/2010 09:39 PM, bascom49 wrote: > > > > Andy Colson wrote: >> >> On 01/10/2010 08:55 PM, bascom49 wrote: >>> >>> >>> Andy Colson wrote: >>>> >>>> On 01/10/2010 04:11 PM, bascom49 wrote: >>>>> >>>>> Ive installed mapserver on a vps server under centos 5 linux. I'm >>>>> having >>>>> problems with setting up mapscript. >>>>> >>>>> My php setup is : >>>>> >>>>> http://174.120.238.19/info.php >>>>> >>>>> The output from mapserv -v is: >>>>> >>>>> root at inf [/usr/local/apache/cgi-bin]# /usr/local/apache/cgi-bin/mapserv >>>>> -v >>>>> MapServer version 5.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >>>>> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV >>>>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT >>>>> SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS >>>>> INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL >>>>> INPUT=SHAPEFILE >>>>> >>>>> >>>>> php_mapscript.so is located at: >>>>> >>>>> >>>>> /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_mapscript.so >>>>> >>>>> I compiled mapserver 5.4.2 from source. >>>>> >>>>> Can someone please help me trouble shoot my install ? >>>>> >>>> >>>> I don't see a problem, or an error. So what do you need help with? >>>> >>>> -Andy >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>> >>> I expected to see a mapscript entry in the output from phpinfo(0), >>> similar >>> to >>> what is shown here : >>> >>> http://www.londatiga.net/it/installing-mapserver-and-php-mapscript-on-linux/ >>> >>> Any insight that you may have is greatly appreciated. >>> >>> Thanks, >>> Charles >>> >> >> Ah, did you add an entry into the php.ini (in the extensions group)? >> >> -Andy >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > I added : > extension = ?php_mapscript.so? to php.ini. > > I did not add a new path entry as I had copied php_mapscript.so to the > default php extensions directory > that I saw listed from the output of phpinfo(). > > Is there something that I need to do to force php.ini to be reloaded ? > Yeah, you have to restart apache. From Jukka.Rahkonen at mmmtike.fi Sun Jan 10 21:12:06 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 11 Jan 2010 07:12:06 +0200 Subject: [mapserver-users] map projection problem References: <748707e91001101730p407842f6kf2a643a342626019@mail.gmail.com> Message-ID: Hi, Your mapfile should output image in epsg:32754. How do you know that output is in epsg:20254? Without knowing how Chameleon's cursorpos works I would not count on that, it may well calculate projected coordinates on the fly. Try for example with cgi calls from your browser in &mode=map mode. That way you can control the bbox and check if the extents of the returning image suits the bbox of the request. -Jukka Rahkonen- Tony Baylis wrote: > Hi All, > I'm a bit confused as to the way mapserver deals with projections. My understanding is that if I place a 'PROJECTION' tag as a high level object in the mapfile, then that is the projection I should expect when I read coordinates from a tool such as Chameleon's cursorpos widget. > If I then have layers using data of a different base projection I need to place a 'PROJECTION' tag within the 'LAYER' object describing the projection of the base layer. This will ensure all layers even if they are different projections will reproject correctly and layers will render in the correct position relative to each other. > If the above is correct can someone explain why I my map is rendering in the projection of the base layers rather than the projection I define in the mapfile level 'PROJECTION' object. See below for me example mapfile. > Tony > # # Start of map file # MAP NAME sp_geography STATUS ON SIZE 800 500 EXTENT 564300 9470937 599600 9493000 UNITS METERS SHAPEPATH "/opt/FriedaRiver/" IMAGECOLOR 237 255 208 SYMBOLSET "/opt/testwww/htdocs/includes/symbols.sym" FONTSET "/usr/share/fonts/truetype/font.list" DEBUG 2 CONFIG "MS_ERRORFILE" "/opt/testwww/wms_error/ms_error.txt" OUTPUTFORMAT NAME "AGGA" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE RGBA TRANSPARENT ON END # # Start of web interface definition # WEB IMAGEPATH "/opt/testwww/ms_tmp/" IMAGEURL "/ms_tmp/" END # # Assign Projection # PROJECTION "init=epsg:32754" END LAYER GROUP "Geography" CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=FriedaRiver user=****password=********" NAME "Rivers" DATA "wkb_geometry FROM png_riversamg66z54 using unique ogc_fid" PROJECTION "init=epsg:20254" END METADATA SOURCE "METADATA: Supplied by Xstrata 2003" END TEMPLATE "/var/www/chameleon/widgets/Query/QueryResults.phtml" STATUS ON TYPE LINE LABELITEM "name" CLASS STYLE SYMBOL "minor towns" COLOR 50 100 255 SIZE 1 END LABEL ANGLE FOLLOW MINDISTANCE 200 FONT ArialItalic TYPE TRUETYPE SIZE 8 COLOR 50 100 255 OUTLINECOLOR 255 255 255 POSITION UC END END END LAYER GROUP "Tenement" CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=FriedaRiver user=**** password=*****" NAME "Tenement EL58" DATA "wkb_geometry FROM el58_agd66z54 using unique ogc_fid" PROJECTION "init=epsg:20254" END METADATA SOURCE "METADATA: Supplied by Xstrata 2003" END TEMPLATE "/var/www/chameleon/widgets/Query/QueryResults.phtml" STATUS ON TYPE LINE CLASS STYLE COLOR 0 0 0 WIDTH 3 END END END END From vasileestan at gmail.com Mon Jan 11 02:13:34 2010 From: vasileestan at gmail.com (Vasile Cristian Stan) Date: Mon, 11 Jan 2010 02:13:34 -0800 (PST) Subject: [mapserver-users] simple mapfile questions Message-ID: <1263204814159-4284657.post@n2.nabble.com> Hi Where is located mapfile on a linux sistem? It is a process for activating mapfile? Thanks in advance! -- View this message in context: http://n2.nabble.com/simple-mapfile-questions-tp4284657p4284657.html Sent from the Mapserver - User mailing list archive at Nabble.com. From vasileestan at gmail.com Mon Jan 11 02:24:41 2010 From: vasileestan at gmail.com (Vasile Cristian Stan) Date: Mon, 11 Jan 2010 02:24:41 -0800 (PST) Subject: [mapserver-users] cofigure problems on Ubuntu 9.10 In-Reply-To: <201001070941.16621.aboudreault@mapgears.com> References: <1262775190986-4260091.post@n2.nabble.com> <4B449D9E.9090109@mapgears.com> <1262868149967-4266229.post@n2.nabble.com> <201001070941.16621.aboudreault@mapgears.com> Message-ID: <1263205481319-4284719.post@n2.nabble.com> In the conf.log i have this output for jpeg "configure:11147: checking checking ms JPEG output configure:11151: result: no we, have GDAL available." after all I made installation of binaries packages from /launchpad.net Thanks Alan for the reply and for the easy way (launchpad packages) #Vasi :handshake: Alan Boudreault wrote: > > I'm mostly sure that the configure script is right, because we use it on > Ubuntu Karmic. > > You can see the the configure options used to build the package on karmic > there: > http://svn.debian.org/wsvn/pkg- > grass/packages/mapserver/tags/5.6.0%2Bfinal-1/debian/rules > > I don't see "--with-png" in your config options... you should add it if > you > want the support. > > Otherwise, I suggest to take a look at the "config.log" file to see what's > happen in detail. > > Hope this help. > Alan > > On January 7, 2010 07:42:29 am Vasile Cristian Stan wrote: >> Thanks Alan >> >> The packages are installed. >> ii libjpeg62-dev 6b-14build1 Development files for the IJG JPEG >> library >> ii libpng12-dev 1.2.37-1 PNG library - development >> >> Also, I tried to configure using another script presented here: >> http://n2.nabble.com/Error-running-configure-on-a-Linux-machine-td3278036.h >> tml#a3278036 , and with this script jpeg and png works but the rest of >> packages are not included. >> So, there are no problems with the packages, maybe the configuration >> script >> is wrong. >> >> # Vasi >> >> Alan Boudreault wrote: >> > I would suggest to verify with the dpkg command line if the packages >> > >> > |libpng12-dev and ||libjpeg62-dev |are installed. >> > >> > You can also take a look to these binarie packages: >> > https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable , which >> > contain mapserver 5.6.0. >> > >> > Alan >> > >> > luftadler wrote: >> >> Hi everyone, >> >> >> >> I try to install MapServer 5.6.0, for the first time, on my machine >> >> (using >> >> Ubuntu 9.10). >> >> The problem is that my configuration don't find few installed >> libraries >> >> like: png and jpeg. >> >> >> >> My configuration script: >> >> >> >> ./configure \ >> >> --enable-debug \ >> >> --prefix=/usr \ >> >> --with-xml2 \ >> >> --with-pdf \ >> >> --with-gd \ >> >> --with-jpeg \ >> >> --with-freetype \ >> >> --with-agg \ >> >> --with-eppl \ >> >> --with-proj \ >> >> --with-threads \ >> >> --with-sde \ >> >> --with-geos \ >> >> --with-ogr \ >> >> --with-gdal \ >> >> --with-tiff \ >> >> --with-postgis \ >> >> --with-wfs \ >> >> --with-wcs \ >> >> --with-wmsclient \ >> >> --with-wfsclient \ >> >> --with-sos \ >> >> --with-fribidi-config \ >> >> --with-php=/usr/include/php5 \ >> >> --with-httpd=/usr/sbin/apache2 \ >> >> >> >> ______________________________________________ >> >> MapServer is now configured for >> >> >> >> -------------- Compiler Info ------------- >> >> C compiler: gcc -g -fPIC -Wall >> >> C++ compiler: g++ -g -fPIC -Wall >> >> Debug: -g >> >> Generic NINT: >> >> >> >> -------------- Renderer Settings --------- >> >> OpenGL support: >> >> zlib support: -DUSE_ZLIB >> >> png support: >> >> palette rgba png support: >> >> jpeg support: >> >> iconv support: -DUSE_ICONV >> >> AGG support: -DUSE_AGG >> >> Cairo (SVG,PDF) support: >> >> Ming(flash) support: >> >> PDFLib support: -DUSE_PDF >> >> >> >> -------------- Support Libraries --------- >> >> Proj.4 support: -DUSE_PROJ >> >> Libxml2 support: -DUSE_LIBXML2 >> >> FriBidi support: -DUSE_FRIBIDI >> >> Curl support: -DUSE_CURL >> >> FastCGI support: >> >> Threading support: -DUSE_THREAD >> >> GEOS support: -DUSE_GEOS -DGEOS_HAS_SIMPLIFY >> >> >> >> -------------- Data Format Drivers ------- >> >> native tiff support: -DUSE_TIFF >> >> PostGIS support: -DUSE_POSTGIS >> >> EPPL7 support: -DUSE_EPPL >> >> ArcSDE support: >> >> OGR support: -DUSE_OGR >> >> GDAL support: -DUSE_GDAL >> >> Oracle Spatial support: >> >> >> >> -------------- OGC Services -------------- >> >> WMS Server: -DUSE_WMS_SVR >> >> WMS Client: -DUSE_WMS_LYR >> >> WFS Server: -DUSE_WFS_SVR >> >> WFS Client: -DUSE_WMS_LYR >> >> WCS Server: -DUSE_WCS_SVR >> >> SOS Server: -DUSE_SOS_SVR >> >> >> >> -------------- MapScript ----------------- >> >> PHP MapScript: yes >> >> ___________________________________________ >> >> >> >> #Vasi >> > > -- > Alan Boudreault > Mapgears > 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://n2.nabble.com/cofigure-problems-on-Ubuntu-9-10-tp4260091p4284719.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Tim.Nolte at ipcswirelessinc.com Mon Jan 11 05:41:29 2010 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Mon, 11 Jan 2010 08:41:29 -0500 Subject: [mapserver-users] FW: [MapServer] #3256: No valid WFSgeometries from Oracle Spatial data source via PHP MapScript In-Reply-To: References: , Message-ID: Yes, actually I am successfully using Oracle spatial layers with the Fusion framework that calls the "mapserv" CGI directly. I do have an issue with some Query results however. When I pass a valid query file that has result for only 1 layer but also request other layers that don't have results I get no selection results. So there are for sure issues with both WFS & queries for Oracle Spatial layers. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS:??? 616-706-2438 Support: 616-929-0289 Fax: 616-554-6484 -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Saturday, January 09, 2010 11:50 AM To: Nolte, Tim; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] FW: [MapServer] #3256: No valid WFSgeometries from Oracle Spatial data source via PHP MapScript Tim: Can you even draw from Oracle? I setup a super simple mapfile that works fine with 5.4 but throws an error with 5.6 in msOracleSpatialLayerWhichShapes(). I'm wondering if the root cause is well below the query functions. I'm just hitting the CGI with a call like: mapserv -nh "QUERY_STRING=map=test.map&mode=map&layers=all" Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nolte, Tim [Tim.Nolte at ipcswirelessinc.com] Sent: Thursday, January 07, 2010 4:07 PM To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] FW: [MapServer] #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript Actually the query was the whole Oracle Spatial table(view actually). I was finally able to come up with a work around by writing a wfs.php wrapper that fully handled all of the requests via PHP MapScript. I'm actually processing the POSTed XML from the MapInfo WFS client and manually adding them to the ms_newOwsRequestObj request object. And the php wrapper is actually returning all of the results. I'm not using the CGI at all. So I can say that this is something that is broken in the CGI and not PHP MapScript. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Support: 616-929-0289 Fax: 616-554-6484 -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Thursday, January 07, 2010 3:55 PM To: Nolte, Tim; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] FW: [MapServer] #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript It's almost certainly related to the one-pass stuff. Oracle support was gutted in the process and has been a bit problematic since. May be related to the other issue you raised in mid-Dec. What's the WFS query? Again a polygon? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nolte, Tim Sent: Thursday, January 07, 2010 8:08 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] FW: [MapServer] #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript Anyone have any comments on this? ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Support: 616-929-0289 Fax: 616-554-6484 -----Original Message----- From: trac at osgeo.org [mailto:trac at osgeo.org] Sent: Thursday, January 07, 2010 9:00 AM To: undisclosed-recipients Subject: Re: [MapServer] #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript #3256: No valid WFS geometries from Oracle Spatial data source via PHP MapScript ---------------------------------+-------------------------------------- ---------------------------------+---- Reporter: tnolte | Owner: sdlime Type: defect | Status: new Priority: normal | Milestone: Component: MapServer C Library | Version: 5.6 Severity: normal | Resolution: Keywords: oracle, wfs | ---------------------------------+-------------------------------------- ---------------------------------+---- Comment (by tnolte): I have reverted my Development server back to MS 5.4.2 and the WFS is working again. I looked at the same request using DEBUG and can see that the process that is used to query the Oracle Spatial data is completely different. I'm suspecting these are the single-pass query changes that were made in 5.6 for WFS. I need to find out if there is now code changes that need to be made in PHP MapScript or if this is indeed a 5.6 defect. Can anyone else verify this? -- Ticket URL: MapServer MapServer From nelson-correia at telecom.pt Mon Jan 11 08:02:58 2010 From: nelson-correia at telecom.pt (Nelson Correia) Date: Mon, 11 Jan 2010 16:02:58 +0000 Subject: [mapserver-users] Problem with Russia polygon In-Reply-To: References: <125FE5C84575394CB9ED84D5DBB151D578FB4897B2@PTPPICEX03.PTPortugal.corpPT.com> Message-ID: <125FE5C84575394CB9ED84D5DBB151D578FB489812@PTPPICEX03.PTPortugal.corpPT.com> Hi, This solution worked perfectly! Thank you all for your help. Nelson Correia -----Original Message----- From: arnd.wippermann at web.de [mailto:arnd.wippermann at web.de] Sent: quarta-feira, 6 de Janeiro de 2010 21:15 To: Nelson Correia Cc: mapserver-users at lists.osgeo.org Subject: AW: [mapserver-users] Problem with Russia polygon Hi, Use ogr tools to convert the shapefile to mapinfo mif. Then you can look at the coordinates for the polygons. There are a couple of times with a longitude < -180. 179.999986 -89.99999999999992 -180.0000149999999 -89.99997799999991 -179.9994199999999 -84.42868099999998 If you change them to -180 (i have tested with -179..... and it works, perhaps -180 do not work) and convert the mapinfo file back to shape, then your trouble should be vanished. Arnd -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Nelson Correia Gesendet: Dienstag, 5. Januar 2010 15:05 An: Rahkonen Jukka; Barend K?bben; Lime, Steve D (DNR); Andy Colson Cc: mapserver-users at lists.osgeo.org Betreff: RE: [mapserver-users] Problem with Russia polygon The problem seems to be with the re-projection from 4326 to 900913, which I'm doing with mapserver (hence, the map file configuration). If I configure the mapfile to use 4326 and make a request in 4326, the problem disappear. So, the re-projection to 900913 should be screwing the polygons at the edges of the map. I tried to re-project the polygons with postgis (st_transform), but I got the following error: ERROR: transform: couldn't project point: -20 (tolerance condition error) Which I don't know the meaning. In the project I'm doing, I have to use 900913, so, if anyone have some ideas of how to solve this, they will be well appreciated. Thanks, Nelson -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: segunda-feira, 4 de Janeiro de 2010 22:03 To: Barend K?bben; Nelson Correia; Lime, Steve D (DNR); Andy Colson Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with Russia polygon Hi, Unfortunately the extents are OK and the problem is something more complicated. Extents are indeed in meters but that's how they must be because the MAP level projection looks like this: PROJECTION "init=epsg:900913" END -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Barend K?bben L?hetetty: ma 4.1.2010 22:52 Vastaanottaja: Nelson Correia; Lime, Steve D (DNR); Andy Colson Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Problem with Russia polygon You've got data that is in latlong (units decimal degrees) in your shapefile, however in the EXTENT part of the map file you use EXTENT -20037508 -13590765 20037508 11229864 Which are not latlomngs but some projected coordinates, and UNITS meters IN the LAYER you tell mapserver that its: PROJECTION "proj=longlat" "datum=WGS84" "no_defs" END These two are contradictory. You'll have to match the PROJECTION in the LAYER to the actual projection and units (apparentlt these are correct) , and make sure the EXTENT is expressed in the same system. So best thing is to set the EXTENT in latlons (as its the whole world -180 -90 180 90 is a safe bet) and UNITS to degrees... Yours, -- Barend K?bben Senior Lecturer University of Twente, Faculty of Geo-Information Science and Earth Observation (ITC) PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 04-01-10 19:34, "Nelson Correia" wrote: > Here is the simplified shapefile, along with a mapfile that uses it: > http://www.2shared.com/file/10449234/a18d6a03/countries.html > > Nelson > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: segunda-feira, 4 de Janeiro de 2010 17:28 > To: Nelson Correia; Barend K?bben; Andy Colson > Cc: mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Problem with Russia polygon > > Would be interesting to get a copy of the data in shapefile format, plus the > mapfile that generates the error... > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nelson Correia > Sent: Monday, January 04, 2010 7:32 AM > To: Barend K?bben; Andy Colson > Cc: mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Problem with Russia polygon > > Hello, > > All the russian polygons are valid (st_valid) and closed (st_closed). The > problem seems to be in the vertical lines at 180? and -180? that divide > certain areas of the country. It seems like when mapserver tries to draw these > lines, there's some kind of unknown behavior that make it draw horizontal > lines instead, resulting in very strange polygons. > > However, I have not solved the problem yet. > > Nelson > > -----Original Message----- > From: Barend K?bben [mailto:kobben at itc.nl] > Sent: s?bado, 2 de Janeiro de 2010 15:33 > To: Andy Colson; Nelson Correia > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Problem with Russia polygon > > Hi, > >> I guess to make a long story short, do you have any editors (like qgis) that >> you can use to see/edit the layer and make sure each record is valid? > You can use PostGIS's ST_IsValid() for that. > > The problem of Nelson seems to me to be a 'dateline' problem: you have > coordinates in latlon and some polygons are crossing the dateline (and/or > the poles), therefore the coordinates' sign jumps from - to + (or from E to > W). If you then draw that in a Plate Carree 'projection (where latitudes and > longitudes are treated as if they were Cartesian coordinates , which they > surely aren't: they are angles from the middle of the Earth!), then the > polygon jumps from the extreme right to the extreme left of the picture... > > > -- > Barend K?bben > Senior Lecturer > University of Twente, Faculty of Geo-Information Science and > Earth Observation (ITC) > PO Box 6, 7500AA Enschede, The Netherlands > +31 (0)53 4874253 > > > > On 02-01-10 15:50, "Andy Colson" wrote: > >> On 12/30/2009 11:14 AM, Nelson Correia wrote: >>> Hello, >>> >>> I?m using shapefile world data from gadm.org (I?ve had this same problem >>> with other data sources too) and I?m having a problem with the Russian >>> polygon: mapserver draws some strange lines parallel to the equator, >>> near the north pole (like you can see in the attached image). >>> >>> Anyone had the same problem and knows how to solve it? >>> >>> Thanks, >>> >>> Nelson >> >> I have no idea if this is the same problem, but I have run into weird drawing >> problems before. I import shape files into PostGIS and then use mapserver on >> that. I got a polygon layer that had an unclosed line (I guess that is a >> good >> way to describe it). It pissed off mapserver. I could run sql like: >> >> select gid from layer where not ST_IsClosed(the_geom) >> >> and it would pull it up. The people that sent me the layer swore there was >> nothing wrong with it (they didn't see any error). >> >> I guess to make a long story short, do you have any editors (like qgis) that >> you can use to see/edit the layer and make sure each record is valid? >> >> -Andy >> _______________________________________________ >> 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. > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente 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. _______________________________________________ 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 luigi.cardeles at gmail.com Mon Jan 11 08:08:00 2010 From: luigi.cardeles at gmail.com (Luigi Castro Cardeles) Date: Mon, 11 Jan 2010 14:08:00 -0200 Subject: [mapserver-users] Problem trying to compile Mapserver 5.6.0 with --with-experimental-png In-Reply-To: <4B478314.2030505@mapgears.com> References: <4B478314.2030505@mapgears.com> Message-ID: Hi List, Many thanks Daniel :D your help was essential. this is a test build anyway, the goal is test this features :D []'s Luigi Castro Cardeles 2010/1/8 Daniel Morissette > Try --with-png=/usr > > You may have to provide valid paths for a few of the other configure > options. See "./configure --help" and/or README.CONFIGURE. > > Also, it is better to turn on only the options that you require and not try > to blindly try to include every possible options without looking up what > they are about and which args they take. > > Daniel > > Luigi Castro Cardeles wrote: > >> Hi List, >> >> i am trying to compile Mapserver 5.6.0 on a linux box with >> --with-experimental-png but the below message appears: >> >> checking if AGG support requested... checking if RGBA palette png support >> requested... configure: error: cannot find png headers in >> /root/app/mapserver-5.6.0/yes >> >> /root/app/mapserver-5.6.0 is the folder where i untar the mapserver >> tarball >> >> yes -> i don't know what is this :P >> >> Where i put the location of png headers? >> >> This is the command line: >> ./configure --enable-point-z-m --with-freetype --with-zlib --with-png >> --with-jpeg --with-xpm --with-libiconv --with-gd --with-pdf --with-agg=/usr >> --with-experimental-png --with-eppl --with-proj --with-threads --with-geos >> --with-ogr --with-gdal --with-tiff --with-postgis --with-ming --with-wfs >> --with-wcs --with-wmsclient --with-wfsclient --with-sos --with-curl-config >> --with-xml2-config --with-fribidi-config --with-cairo --with-fastcgi >> --with-php=/usr/include/php >> >> >> If i remove --with-experimental-png, i got this: >> ./configure --enable-point-z-m --with-freetype --with-zlib --with-png >> --with-jpeg --with-xpm --with-libiconv --with-gd --with-pdf --with-agg=/usr >> --with-eppl --with-proj --with-threads --with-geos --with-ogr --with-gdal >> --with-tiff --with-postgis --with-ming --with-wfs --with-wcs >> --with-wmsclient --with-wfsclient --with-sos --with-curl-config >> --with-xml2-config --with-fribidi-config --with-cairo --with-fastcgi >> --with-php=/usr/include/php >> >> -------------- Compiler Info ------------- >> C compiler: gcc -O2 -fPIC -W -Wall -Wcast-align >> -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type >> -Wmissing-declarations >> C++ compiler: g++ -O2 -fPIC -W -Wall -Wcast-align >> -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type >> Debug: Generic NINT: >> -------------- Renderer Settings --------- >> OpenGL support: zlib support: -DUSE_ZLIB >> png support: palette rgba png support: jpeg support: >> iconv support: -DUSE_ICONV >> AGG support: -DUSE_AGG >> Cairo (SVG,PDF) support: -DUSE_CAIRO >> Ming(flash) support: -DUSE_MING_FLASH >> PDFLib support: -DUSE_PDF >> >> -------------- Support Libraries --------- >> Proj.4 support: -DUSE_PROJ >> Libxml2 support: -DUSE_LIBXML2 >> FriBidi support: -DUSE_FRIBIDI -DUSE_FRIBIDI2 >> Curl support: -DUSE_CURL >> FastCGI support: -DUSE_FASTCGI >> Threading support: -DUSE_THREAD >> GEOS support: -DUSE_GEOS -DGEOS_HAS_SIMPLIFY >> >> -------------- Data Format Drivers ------- >> native tiff support: -DUSE_TIFF >> PostGIS support: -DUSE_POSTGIS >> EPPL7 support: -DUSE_EPPL >> ArcSDE support: OGR support: -DUSE_OGR >> GDAL support: -DUSE_GDAL >> Oracle Spatial support: >> -------------- OGC Services -------------- >> WMS Server: -DUSE_WMS_SVR >> WMS Client: -DUSE_WMS_LYR >> WFS Server: -DUSE_WFS_SVR >> WFS Client: -DUSE_WMS_LYR >> WCS Server: -DUSE_WCS_SVR >> SOS Server: -DUSE_SOS_SVR >> >> -------------- MapScript ----------------- >> PHP MapScript: yes >> >> >> Any clue about this problem? >> >> Best Regard's >> Luigi Castro Cardeles >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From luigi.cardeles at gmail.com Mon Jan 11 09:45:21 2010 From: luigi.cardeles at gmail.com (Luigi Castro Cardeles) Date: Mon, 11 Jan 2010 15:45:21 -0200 Subject: [mapserver-users] Re: Is mysqlclient a dependency to compile mapserver? In-Reply-To: References: Message-ID: Hi list, this issue happens because the gdal / ogr i was using was mysql enable (ogrinfo --formats shows "MySQL (read/write)"). i already solve my own mistake :P thanks :) Luigi Castro Cardeles 2010/1/8 Luigi Castro Cardeles > Hi list, > > another question :D > > even if i don't want compile mapserver with mysql suport (i don't put > --with-mygis at configure) when i run make it throws a error about > mysqlclient > > > the full message: > > g++ -O2 -fPIC -W -Wall -Wcast-align -Wmissing-prototypes > -Wstrict-prototypes -Wpointer-arith -Wreturn-type -Wmissing-declarations > -DUSE_POINT_Z_M -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR > -DUSE_POINT_Z_M -DUSE_FASTCGI -DUSE_CAIRO -DUSE_FRIBIDI -DUSE_FRIBIDI2 > -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL > -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_POSTGIS -DUSE_TIFF > -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DGEOS_HAS_SIMPLIFY -DUSE_THREAD -DUSE_PROJ > -DUSE_EPPL -DUSE_AGG -DUSE_FTGL -DUSE_PDF -DUSE_GD_GIF -DUSE_GD_PNG > -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB > -DUSE_FRIBIDI -DUSE_FRIBIDI2 -I/usr/include -I/usr/include/freetype2 > -I/usr/include/FTGL/ -I/usr/include/gdal/ -I/usr/include > -I/usr/include -I/usr/include/libxml2 -I/usr/include/fribidi > -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 > -I/usr/include/libpng12 shp2img.o -L. -lmapserver -lgd -L/usr/lib64 -lgd > -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -L/usr/lib64 -lftgl -lpdf -ltiff > -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -lproj -ljpeg -lpng -lgdal > -L/usr/lib64 -lgeos_c -I/usr/include -lsqlite3 -lodbc -lodbcinst -L/usr/lib > -lexpat -L/usr/lib -lxerces-c -lpthread -ljasper -lhdf5 -L/usr/lib64/hdf > -lmfhdf -ldf -logdi -lgif -ljpeg -lgeotiff -ltiff -lpng -lnetcdf -lcfitsio > -lpq -L/usr/lib64 -lpq -lz -lpthread -lm -lrt -ldl -ldap -ldapclient > -ldapserver -lpthread -lrx -lcurl -lxml2 -lz -lm -lcurl -rdynamic > -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lssl -lcrypto > -L/usr/lib64 -lpq -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lgssapi_krb5 > -lz -lreadline -lcrypt -ldl -lm -lcurl -L/usr/lib64 -lgeos_c -lpthread > -L -lc -lfcgi -lz -lxml2 -lz -lm -lfribidi -lm -lstdc++ -lfreetype > -lfontconfig -lz -lcairo -lpng12 -o shp2img > /usr/bin/ld: cannot find -lmysqlclient > collect2: ld returned 1 exit status > make: ** [shp2img] Error 1 > > and here is the configure i use: > ./configure --enable-point-z-m --with-freetype --with-zlib --with-png > --with-jpeg --with-xpm --with-libiconv --with-gd --with-pdf --with-ftgl > --with-agg=/usr --with-eppl --with-proj --with-threads --with-geos > --with-ogr --with-gdal --with-tiff --with-postgis --with-wfs --with-wcs > --with-wmsclient --with-wfsclient --with-sos --with-curl-config > --with-xml2-config --with-fribidi-config --with-cairo --with-fastcgi > --with-php=/usr/include/php --with-warnings > > Best Regard's and sorry for the poor english > > Luigi Castro Cardeles > -------------- next part -------------- An HTML attachment was scrubbed... URL: From flsolu at gmail.com Mon Jan 11 11:17:32 2010 From: flsolu at gmail.com (Flavio Souza) Date: Mon, 11 Jan 2010 16:17:32 -0300 Subject: [mapserver-users] catalina.bat on sysdeo Message-ID: Hello , my name is Fl?vio I have a question I try run the servlet HelloServlet public class HelloServlet extends HttpServlet { public void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { try { -> System.loadLibrary("mapscript"); System.err.println("Loaded the Mapscript library"); } catch (UnsatisfiedLinkError e) { e.printStackTrace(); } // mapscript mapObj map; map = new mapObj ("third.map"); I get the following error: at System.loadLibrary("mapscript"); * java.lang.UnsatisfiedLinkError: C:\ms4w\Apache\cgi-bin\mapscript\java\mapscript.dll: Can't find dependent libraries java.lang.ClassLoader$NativeLibrary.load(Native Method) java.lang.ClassLoader.loadLibrary0(Unknown Source) java.lang.ClassLoader.loadLibrary(Unknown Source) java.lang.Runtime.loadLibrary0(Unknown Source) java.lang.System.loadLibrary(Unknown Source) edu.umn.gis.mapscript.mapscriptJNI.(mapscriptJNI.java:23) edu.umn.gis.mapscript.mapObj.(mapObj.java:275) HelloServlet.doGet(HelloServlet.java:30) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) i am use sysdeo tomcat , and i am not know what i do thanks in advance Fl?vio souza _______________________________ (021) ?7629-4249 From jmckenna at gatewaygeomatics.com Mon Jan 11 11:43:07 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 11 Jan 2010 15:43:07 -0400 Subject: [mapserver-users] catalina.bat on sysdeo In-Reply-To: References: Message-ID: <4B4B7F4B.2090508@gatewaygeomatics.com> Flavio Souza wrote: > Hello , my name is Fl?vio > I have a question > > I try run the servlet HelloServlet > > > public class HelloServlet extends HttpServlet { > public void doGet (HttpServletRequest req, > HttpServletResponse res) > throws ServletException, IOException > { > try > { > -> System.loadLibrary("mapscript"); > System.err.println("Loaded the Mapscript library"); > } > catch (UnsatisfiedLinkError e) > { > e.printStackTrace(); > } > > // mapscript > mapObj map; > map = new mapObj ("third.map"); > > I get the following error: at System.loadLibrary("mapscript"); * > > java.lang.UnsatisfiedLinkError: > C:\ms4w\Apache\cgi-bin\mapscript\java\mapscript.dll: Can't find > dependent libraries > java.lang.ClassLoader$NativeLibrary.load(Native Method) > java.lang.ClassLoader.loadLibrary0(Unknown Source) > java.lang.ClassLoader.loadLibrary(Unknown Source) > java.lang.Runtime.loadLibrary0(Unknown Source) > java.lang.System.loadLibrary(Unknown Source) > edu.umn.gis.mapscript.mapscriptJNI.(mapscriptJNI.java:23) > edu.umn.gis.mapscript.mapObj.(mapObj.java:275) > HelloServlet.doGet(HelloServlet.java:30) > javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > i am use sysdeo tomcat , and i am not know what i do > Hello Flavio, I don't use Java MapScript, but I do package it for use in MS4W...but I don't know if it is used frequently. You can search the MS4W-users mailing list to see Java questions (http://old.nabble.com/forum/Search.jtp?forum=16523&local=y&query=java) but not many questions are asked for Java. By the way you can also search this MapServer-users list here: http://n2.nabble.com/MapServer-f1969210.html If you find a problem with Java mapscript in MS4W, you can report it in its issue tracker (http://www.maptools.org/ms4w/index.phtml?page=bugs.html) or send a message to the MS4W-users list (subscribe at http://lists.maptools.org/mailman/listinfo/ms4w-users). thanks. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From IANT at napier.govt.nz Mon Jan 11 11:57:05 2010 From: IANT at napier.govt.nz (Ian Tidy) Date: Tue, 12 Jan 2010 08:57:05 +1300 Subject: [mapserver-users] catalina.bat on sysdeo In-Reply-To: References: Message-ID: Hi Fl?vio I'm don't know if this is applicable (I don't use Java MapScript), but when I was trying to get php_mapscript working with Aptana, I needed to set the paths to the supporting DLLs. Have a look at the C:\MS4W\setenv.bat file and modify your system settings to include all the paths and other variables that are set in this batch file. The MapServer.DLL has a few dependencies, and your system is not finding them. Cheers Ian ______________________ Ian Tidy GIS Analyst / Developer Works Asset Department Napier City Council Skype ian.tidy.ncc mailto:iant at napier.govt.nz http://www.napier.govt.nz | http://maps.napier.govt.nz -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Flavio Souza Sent: Tuesday, January 12, 2010 8:18 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] catalina.bat on sysdeo Hello , my name is Fl?vio I have a question I try run the servlet HelloServlet public class HelloServlet extends HttpServlet { public void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { try { -> System.loadLibrary("mapscript"); System.err.println("Loaded the Mapscript library"); } catch (UnsatisfiedLinkError e) { e.printStackTrace(); } // mapscript mapObj map; map = new mapObj ("third.map"); I get the following error: at System.loadLibrary("mapscript"); * java.lang.UnsatisfiedLinkError: C:\ms4w\Apache\cgi-bin\mapscript\java\mapscript.dll: Can't find dependent libraries java.lang.ClassLoader$NativeLibrary.load(Native Method) java.lang.ClassLoader.loadLibrary0(Unknown Source) java.lang.ClassLoader.loadLibrary(Unknown Source) java.lang.Runtime.loadLibrary0(Unknown Source) java.lang.System.loadLibrary(Unknown Source) edu.umn.gis.mapscript.mapscriptJNI.(mapscriptJNI.java:23) edu.umn.gis.mapscript.mapObj.(mapObj.java:275) HelloServlet.doGet(HelloServlet.java:30) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) i am use sysdeo tomcat , and i am not know what i do thanks in advance Fl?vio souza _______________________________ (021) ?7629-4249 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. From emacgillavry at hotmail.com Mon Jan 11 13:25:37 2010 From: emacgillavry at hotmail.com (Edward Mac Gillavry) Date: Mon, 11 Jan 2010 22:25:37 +0100 Subject: [mapserver-users] PNG32 to support transparent images in Silverlight? Message-ID: Dear list, Serving up PNG images to a Silverlight client, that needs to have a transparent background doesn't appear to work for 8-bit PNG and 24-bit PNG, because Silverlight does not appear to support palette-based transparency. Is there any way to serve up 32-bit PNG like so: IMAGECOLOR 255 255 255 IMAGETYPE png32 OUTPUTFORMAT NAME png32 DRIVER 'AGG/PNG' MIMETYPE 'image/png' IMAGEMODE RGBA EXTENSION 'png' TRANSPARENT ON END Our current MapServer setup is: "MapServer version 5.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE" Simply installed on Ubuntu using apt-get, but had I better compile from source -?with-experimental-png option instead? Please advise. Thanks in advance. Regards, Edward -------------- next part -------------- An HTML attachment was scrubbed... URL: From boolean10001 at yahoo.com Mon Jan 11 13:43:21 2010 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Mon, 11 Jan 2010 13:43:21 -0800 (PST) Subject: [mapserver-users] 5.6.1 version and labels Message-ID: <401172.95681.qm@web38203.mail.mud.yahoo.com> Hi all, I have updated my Mapserver version from 5.4 to 5.6.0 (and later to 5.6.1 because the queries). There's something odd with the labels because appears bigger than i had defined. Does anybody knows why ? Thanks in advance IC Carlos Ruiz -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Jan 11 13:55:08 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 11 Jan 2010 15:55:08 -0600 Subject: [mapserver-users] 5.6.1 version and labels In-Reply-To: <401172.95681.qm@web38203.mail.mud.yahoo.com> References: <401172.95681.qm@web38203.mail.mud.yahoo.com> Message-ID: What does your layer def look like? What renderer are you using? Are you setting a specific RESOLUTION? There may be some subtle sizing changes but I haven't run across anything significant yet. Before and after images are helpful too. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Carlos Ruiz Sent: Monday, January 11, 2010 3:43 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] 5.6.1 version and labels Hi all, I have updated my Mapserver version from 5.4 to 5.6.0 (and later to 5.6.1 because the queries). There's something odd with the labels because appears bigger than i had defined. Does anybody knows why ? Thanks in advance IC Carlos Ruiz -------------- next part -------------- An HTML attachment was scrubbed... URL: From tspradley at snoogems.com Mon Jan 11 14:44:26 2010 From: tspradley at snoogems.com (Ted Spradley) Date: Mon, 11 Jan 2010 14:44:26 -0800 (PST) Subject: [mapserver-users] WMS layer - GetFeatureInfo request, multiple row (attributes) return Message-ID: <1263249866907-4288650.post@n2.nabble.com> Hi all, I am querying a WMS layer (several, but the question is regarding layer 'building_comp_query') using OpenLayers with a GetFeatureInfo request. The data returned from all layers but 'building_comp_query' is as expected. The layers returning data as expected return a single row of attributes related to the user selected feature (a property parcel). Layer 'building_comp_query' is a PostGIS layer of TYPE QUERY whose SQL SELECT returns multiple rows, but when queried by the GetFeatureInfo request below, a single row is returned. I understand the default FEATURE_COUNT is 1, and when set higher, multiple rows of the same data is returned. I am thinking the solution is to use the new style templating and an OUTPUTFORMAT for the layer, and TEMPLATE 'dummy' but if that is correct, where does the OUTPUTFORMAT get referenced in a GetFeatureInfo request? When I try my proposed solution I get the following: Content-type: application/vnd.ogc.se_xml msReturnPage(): Unable to access file. dummy.html Thanks in advance, Ted S. /* OpenLayers GetFeatureInfo request */ var url = tl_us_county_48201.getFullRequestString({ REQUEST: "GetFeatureInfo", EXCEPTIONS: "application/vnd.ogc.se_xml", BBOX: tl_us_county_48201.map.getExtent().toBBOX(), X: e.xy.x, Y: e.xy.y, INFO_FORMAT: 'text/html', QUERY_LAYERS: 'countries,usa_zcta5,parcels_query,tx_school_districts,schools,places,building_comp_query', WIDTH: tl_us_county_48201.map.size.w, HEIGHT: tl_us_county_48201.map.size.h }); /* layer definition */ LAYER NAME 'building_comp_query' TYPE QUERY STATUS ON #DEBUG 3 TEMPLATE bldgCompGetFeatureInfo.html HEADER bldgCompGetFeatureInfo_header.html FOOTER bldgCompGetFeatureInfo_footer.html PROCESSING "CLOSE_CONNECTION=DEFER" PROCESSING 'LABEL_NO_CLIP=1' DUMP TRUE MAXSCALEDENOM 10000 CONNECTIONTYPE POSTGIS CONNECTION "dbname=cad1 user=tedkspradley password=05gusher host=localhost port=5432" DATA "the_geom from (select b.the_geom AS the_geom, b.gid AS gid, a.building_num AS building_num, a.building_component AS building_component, a.area AS area FROM parcels b, building_component_areas a WHERE a.hcad_acct=b.hcad_num) as foo using unique gid using srid=-1" PROJECTION "init=epsg:102740" END METADATA "wms_title" "Building Component Areas Query Layer" "wfs_title" "Building Component Areas Query Layer" "wms_srs" "epsg:102740 epsg:4326" "gml_include_items" "all" "wms_include_items" "all" "gml_featureid" "ogc_fid" "qstring_validation_pattern" '.' END END # End layer 'building_component_areas_query' /* url GetFeatureInfo request */ http://maps.snoogems.com/cgi-bin/mapserv? map=/path/to/srch_cad.map &SERVICE=WMS&VERSION=1.1.1 &REQUEST=GetFeatureInfo &SRS=EPSG%3A102740 &WIDTH=800&HEIGHT=800 &BBOX=3102785.400463,13832395.006499,3104115.230452,13833724.836488 &LAYERS=building_comp_query &STYLES= &FORMAT=image%2Fpng&QUERY_LAYERS=building_comp_query&X=398&Y=390&INFO_FORMAT=text/html&FEATURE_COUNT=999 -- View this message in context: http://n2.nabble.com/WMS-layer-GetFeatureInfo-request-multiple-row-attributes-return-tp4288650p4288650.html Sent from the Mapserver - User mailing list archive at Nabble.com. From tspradley at snoogems.com Mon Jan 11 15:02:06 2010 From: tspradley at snoogems.com (Ted Spradley) Date: Mon, 11 Jan 2010 15:02:06 -0800 (PST) Subject: [mapserver-users] WMS layer - GetFeatureInfo request, multiple row (attributes) return In-Reply-To: <1263249866907-4288650.post@n2.nabble.com> References: <1263249866907-4288650.post@n2.nabble.com> Message-ID: <1263250926218-4288728.post@n2.nabble.com> Ah, also when I add the file 'dummy.html' with the magic string, the return is a blank page. Thanks again, Ted S Ted Spradley wrote: > > Hi all, > > I am querying a WMS layer (several, but the question is regarding layer > 'building_comp_query') using > OpenLayers with a GetFeatureInfo request. The data returned from all > layers but 'building_comp_query' > is as expected. The layers returning data as expected return a single row > of attributes related to the > user selected feature (a property parcel). Layer 'building_comp_query' is > a PostGIS layer of TYPE QUERY whose SQL SELECT returns multiple rows, but > when queried by the GetFeatureInfo request below, a single > row is returned. I understand the default FEATURE_COUNT is 1, and when > set higher, multiple rows of the > same data is returned. > > I am thinking the solution is to use the new style templating and an > OUTPUTFORMAT for the layer, and > TEMPLATE 'dummy' but if that is correct, where does the OUTPUTFORMAT get > referenced in a GetFeatureInfo request? > > When I try my proposed solution I get the following: > > Content-type: application/vnd.ogc.se_xml msReturnPage(): Unable to access > file. dummy.html > > Thanks in advance, > Ted S. > > /* OpenLayers GetFeatureInfo request */ > > var url = tl_us_county_48201.getFullRequestString({ > REQUEST: "GetFeatureInfo", > EXCEPTIONS: "application/vnd.ogc.se_xml", > BBOX: tl_us_county_48201.map.getExtent().toBBOX(), > X: e.xy.x, > Y: e.xy.y, > INFO_FORMAT: 'text/html', > QUERY_LAYERS: > 'countries,usa_zcta5,parcels_query,tx_school_districts,schools,places,building_comp_query', > WIDTH: tl_us_county_48201.map.size.w, > HEIGHT: tl_us_county_48201.map.size.h > }); > > /* layer definition */ > > LAYER > NAME 'building_comp_query' > TYPE QUERY > STATUS ON > #DEBUG 3 > TEMPLATE bldgCompGetFeatureInfo.html > HEADER bldgCompGetFeatureInfo_header.html > FOOTER bldgCompGetFeatureInfo_footer.html > PROCESSING "CLOSE_CONNECTION=DEFER" > PROCESSING 'LABEL_NO_CLIP=1' > > DUMP TRUE > MAXSCALEDENOM 10000 > CONNECTIONTYPE POSTGIS > CONNECTION "dbname=cad1 user=tedkspradley password=05gusher > host=localhost port=5432" > > DATA "the_geom from (select b.the_geom AS the_geom, b.gid AS gid, > a.building_num AS building_num, a.building_component AS > building_component, a.area AS area FROM parcels b, > building_component_areas a WHERE a.hcad_acct=b.hcad_num) as foo using > unique gid using srid=-1" > > PROJECTION > "init=epsg:102740" > END > METADATA > "wms_title" "Building Component Areas Query Layer" > "wfs_title" "Building Component Areas Query Layer" > "wms_srs" "epsg:102740 epsg:4326" > "gml_include_items" "all" > "wms_include_items" "all" > "gml_featureid" "ogc_fid" > "qstring_validation_pattern" '.' > END > END # End layer 'building_component_areas_query' > > /* url GetFeatureInfo request */ > > http://maps.snoogems.com/cgi-bin/mapserv? > map=/path/to/srch_cad.map > &SERVICE=WMS&VERSION=1.1.1 > &REQUEST=GetFeatureInfo > &SRS=EPSG%3A102740 > &WIDTH=800&HEIGHT=800 > &BBOX=3102785.400463,13832395.006499,3104115.230452,13833724.836488 > &LAYERS=building_comp_query > &STYLES= > &FORMAT=image%2Fpng&QUERY_LAYERS=building_comp_query&X=398&Y=390&INFO_FORMAT=text/html&FEATURE_COUNT=999 > -- View this message in context: http://n2.nabble.com/WMS-layer-GetFeatureInfo-request-multiple-row-attributes-return-tp4288650p4288728.html Sent from the Mapserver - User mailing list archive at Nabble.com. From brfr at metrico.lu Tue Jan 12 01:54:58 2010 From: brfr at metrico.lu (Frank Broniewski) Date: Tue, 12 Jan 2010 10:54:58 +0100 Subject: [mapserver-users] OWSRequest raw post data Message-ID: <013CFE76BB0C4FA6A9A326EDCDDD28E9@PCFL01BRFR> Hello list, I am wondering how I could load / pass a raw post body to the owsrequest object. GET is simply done with setParameter. I see that there is a postrequest attribute for the owsrequest object, but there is no documentation for it. Can I set it manually? I am using a WSGI Framework and the documented req.loadParams() function does not work with it. Or is there a parameter 'post' or 'xml' which I can set with the raw post data with setParameter()? Many Thanks Frank -- Frank Broniewski Metrico s.?r.l. ( http://www.metrico.lu ) 36, rue des Romains L-5433 Niederdonven Luxembourg Fon: +352 26 74 94 28 Fax: +352 26 74 94 99 From brfr at metrico.lu Tue Jan 12 01:33:26 2010 From: brfr at metrico.lu (Frank Broniewski) Date: Tue, 12 Jan 2010 10:33:26 +0100 Subject: [mapserver-users] OWSRequest raw post data Message-ID: <4616439053D14197B84A74E6F2B79459@PCFL01BRFR> Hello list, I am wondering how I could load / pass a raw post body to the owsrequest object. GET is simply done with setParameter. I see that there is a postrequest attribute for the owsrequest object, but there is no documentation for it. Can I set it manually? I am using a WSGI Framework and the documented req.loadParams() function does not work with it. Or is there a parameter 'post' or 'xml' which I can set with the raw post data with setParameter()? Many Thanks Frank Frank Broniewski Metrico s.?r.l. ( http://www.metrico.lu ) 36, rue des Romains L-5433 Niederdonven Luxembourg Fon: +352 26 74 94 28 Fax: +352 26 74 94 99 From oliver.christen at camptocamp.com Tue Jan 12 06:04:58 2010 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Tue, 12 Jan 2010 15:04:58 +0100 Subject: [mapserver-users] symbol circle (ellipse) rendered not round but oval Message-ID: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> hello I have a weird problem with symbology. Im rendering a line with dots, but the dots are not round but slightly oval, see image http://dev.camptocamp.com/~ochriste/tilecache.png Any idea what could be the cause ? Here is my symbol definition: SYMBOL NAME "linie-gepunkt10" TYPE ELLIPSE POINTS 1 1 END STYLE 1 20 END FILLED TRUE END and my layer's class definition: CLASS EXPRESSION "3" MAXSCALEDENOM 200001 STYLE SYMBOL "linie-gepunkt10" SIZE 10 COLOR 102 51 0 END STYLE SYMBOL "linie-gepunkt10" SIZE 8 COLOR 204 102 0 END END and the map outputformat: OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "INTERLACE=OFF" END From thomas.bonfort at gmail.com Tue Jan 12 06:18:10 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 12 Jan 2010 15:18:10 +0100 Subject: [mapserver-users] symbol circle (ellipse) rendered not round but oval In-Reply-To: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> References: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> Message-ID: hi Oliver :) try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use PATTERN now) cheers, thomas On Tue, Jan 12, 2010 at 15:04, Oliver Christen < oliver.christen at camptocamp.com> wrote: > hello > > I have a weird problem with symbology. > Im rendering a line with dots, but the dots are not round but slightly > oval, see image http://dev.camptocamp.com/~ochriste/tilecache.png > > Any idea what could be the cause ? > > Here is my symbol definition: > > SYMBOL > NAME "linie-gepunkt10" > TYPE ELLIPSE > POINTS > 1 1 > END > STYLE > 1 20 > END > FILLED TRUE > END > > and my layer's class definition: > > CLASS > EXPRESSION "3" > MAXSCALEDENOM 200001 > STYLE > SYMBOL "linie-gepunkt10" > SIZE 10 > COLOR 102 51 0 > END > STYLE > SYMBOL "linie-gepunkt10" > SIZE 8 > COLOR 204 102 0 > END > END > > and the map outputformat: > > OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > FORMATOPTION "INTERLACE=OFF" > 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 Tim.Nolte at ipcswirelessinc.com Tue Jan 12 06:56:48 2010 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Tue, 12 Jan 2010 09:56:48 -0500 Subject: [mapserver-users] OWSRequest raw post data In-Reply-To: <4616439053D14197B84A74E6F2B79459@PCFL01BRFR> References: <4616439053D14197B84A74E6F2B79459@PCFL01BRFR> Message-ID: What language are you using, is this PHP? - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS:??? 616-706-2438 Support: 616-929-0289 Fax: 616-554-6484 -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Frank Broniewski Sent: Tuesday, January 12, 2010 4:33 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] OWSRequest raw post data Hello list, I am wondering how I could load / pass a raw post body to the owsrequest object. GET is simply done with setParameter. I see that there is a postrequest attribute for the owsrequest object, but there is no documentation for it. Can I set it manually? I am using a WSGI Framework and the documented req.loadParams() function does not work with it. Or is there a parameter 'post' or 'xml' which I can set with the raw post data with setParameter()? Many Thanks Frank Frank Broniewski Metrico s.?r.l. ( http://www.metrico.lu ) 36, rue des Romains L-5433 Niederdonven Luxembourg Fon: +352 26 74 94 28 Fax: +352 26 74 94 99 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From brfr at metrico.lu Tue Jan 12 07:26:24 2010 From: brfr at metrico.lu (Frank Broniewski) Date: Tue, 12 Jan 2010 16:26:24 +0100 Subject: [mapserver-users] OWSRequest raw post data In-Reply-To: References: <4616439053D14197B84A74E6F2B79459@PCFL01BRFR> Message-ID: <526C4B0FB3FD4E4CA8CC7B303511C1AE@PCFL01BRFR> Sorry, I forgot to mention that. I'm using Python ... -------------------------------------------------- From: "Nolte, Tim" Sent: Tuesday, January 12, 2010 3:56 PM To: "Frank Broniewski" ; Subject: RE: [mapserver-users] OWSRequest raw post data > What language are you using, is this PHP? > > - Tim > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Network Planning Engineer > > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Support: 616-929-0289 > Fax: 616-554-6484 > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Frank > Broniewski > Sent: Tuesday, January 12, 2010 4:33 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] OWSRequest raw post data > > Hello list, > > I am wondering how I could load / pass a raw post body to the owsrequest > object. GET is simply done with setParameter. I see that there is a > postrequest attribute for the owsrequest object, but there is no > documentation for it. Can I set it manually? I am using a WSGI Framework > and > the documented req.loadParams() function does not work with it. > Or is there a parameter 'post' or 'xml' which I can set with the raw post > data with setParameter()? > > Many Thanks > > Frank > > > > Frank Broniewski > > Metrico s.?r.l. ( http://www.metrico.lu ) > 36, rue des Romains > L-5433 Niederdonven > Luxembourg > > Fon: +352 26 74 94 28 > Fax: +352 26 74 94 99 > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From oliver.christen at camptocamp.com Tue Jan 12 07:31:00 2010 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Tue, 12 Jan 2010 16:31:00 +0100 Subject: [mapserver-users] symbol circle (ellipse) rendered not round but oval References: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> Message-ID: Hi Thomas :) thanks for the answer, but sadely it didnt solve my problem: here are a few tests I did: using GAP 20 gave me really weird result: http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png using PATTERN 1 22 END gave me better result, but the dot are still slightly oval: http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png I wondered if the visual effect may have come from the fact im pilling up two circle one over the other, but even when trying to display only the outer or inner circles, the circle are still slightly off: http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png (both at once http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png) any other idea? ^_^ ----- Original Message ----- From: thomas bonfort To: Oliver Christen Cc: mapserver-users at lists.osgeo.org Sent: Tuesday, January 12, 2010 3:18 PM Subject: Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval hi Oliver :) try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use PATTERN now) cheers, thomas On Tue, Jan 12, 2010 at 15:04, Oliver Christen wrote: hello I have a weird problem with symbology. Im rendering a line with dots, but the dots are not round but slightly oval, see image http://dev.camptocamp.com/~ochriste/tilecache.png Any idea what could be the cause ? Here is my symbol definition: SYMBOL NAME "linie-gepunkt10" TYPE ELLIPSE POINTS 1 1 END STYLE 1 20 END FILLED TRUE END and my layer's class definition: CLASS EXPRESSION "3" MAXSCALEDENOM 200001 STYLE SYMBOL "linie-gepunkt10" SIZE 10 COLOR 102 51 0 END STYLE SYMBOL "linie-gepunkt10" SIZE 8 COLOR 204 102 0 END END and the map outputformat: OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "INTERLACE=OFF" 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 David.Fawcett at state.mn.us Tue Jan 12 07:33:57 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Tue, 12 Jan 2010 09:33:57 -0600 Subject: [mapserver-users] symbol circle (ellipse) rendered not round but oval In-Reply-To: References: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> Message-ID: Are you requesting your image through a WMS and maybe getting a ?non-square pixel? effect? If you are using WMS, are the symbols round when you do a cgi request in mode=map or mode=tile? David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Oliver Christen Sent: Tuesday, January 12, 2010 9:31 AM To: thomas bonfort Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval Hi Thomas :) thanks for the answer, but sadely it didnt solve my problem: here are a few tests I did: using GAP 20 gave me really weird result: http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png using PATTERN 1 22 END gave me better result, but the dot are still slightly oval: http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png I wondered if the visual effect may have come from the fact im pilling up two circle one over the other, but even when trying to display only the outer or inner circles, the circle are still slightly off: http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png (both at once http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png) any other idea? ^_^ ----- Original Message ----- From: thomas bonfort To: Oliver Christen Cc: mapserver-users at lists.osgeo.org Sent: Tuesday, January 12, 2010 3:18 PM Subject: Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval hi Oliver :) try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use PATTERN now) cheers, thomas On Tue, Jan 12, 2010 at 15:04, Oliver Christen > wrote: hello I have a weird problem with symbology. Im rendering a line with dots, but the dots are not round but slightly oval, see image http://dev.camptocamp.com/~ochriste/tilecache.png Any idea what could be the cause ? Here is my symbol definition: SYMBOL NAME "linie-gepunkt10" TYPE ELLIPSE POINTS 1 1 END STYLE 1 20 END FILLED TRUE END and my layer's class definition: CLASS EXPRESSION "3" MAXSCALEDENOM 200001 STYLE SYMBOL "linie-gepunkt10" SIZE 10 COLOR 102 51 0 END STYLE SYMBOL "linie-gepunkt10" SIZE 8 COLOR 204 102 0 END END and the map outputformat: OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "INTERLACE=OFF" 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 thomas.bonfort at gmail.com Tue Jan 12 07:36:36 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 12 Jan 2010 16:36:36 +0100 Subject: [mapserver-users] symbol circle (ellipse) rendered not round but oval In-Reply-To: References: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> Message-ID: symbol name dots type ellipse points 1 1 end gap 20 end ... style symbol "dots" size 8 color r g b outlinecolor r g b end On Tue, Jan 12, 2010 at 16:31, Oliver Christen < oliver.christen at camptocamp.com> wrote: > Hi Thomas :) > > thanks for the answer, but sadely it didnt solve my problem: > > here are a few tests I did: > > using GAP 20 gave me really weird result: > http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png > > using PATTERN 1 22 END gave me better result, but the dot are still > slightly oval: > http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png > > I wondered if the visual effect may have come from the fact im pilling up > two circle one over the other, but even when trying to display only the > outer or inner circles, the circle are still slightly off: > http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png > http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png > (both at once > http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png > ) > > any other idea? ^_^ > > ----- Original Message ----- > *From:* thomas bonfort > *To:* Oliver Christen > *Cc:* mapserver-users at lists.osgeo.org > *Sent:* Tuesday, January 12, 2010 3:18 PM > *Subject:* Re: [mapserver-users] symbol circle (ellipse) rendered not > round but oval > > hi Oliver :) > > try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use > PATTERN now) > > cheers, > thomas > > On Tue, Jan 12, 2010 at 15:04, Oliver Christen < > oliver.christen at camptocamp.com> wrote: > >> hello >> >> I have a weird problem with symbology. >> Im rendering a line with dots, but the dots are not round but slightly >> oval, see image http://dev.camptocamp.com/~ochriste/tilecache.png >> >> Any idea what could be the cause ? >> >> Here is my symbol definition: >> >> SYMBOL >> NAME "linie-gepunkt10" >> TYPE ELLIPSE >> POINTS >> 1 1 >> END >> STYLE >> 1 20 >> END >> FILLED TRUE >> END >> >> and my layer's class definition: >> >> CLASS >> EXPRESSION "3" >> MAXSCALEDENOM 200001 >> STYLE >> SYMBOL "linie-gepunkt10" >> SIZE 10 >> COLOR 102 51 0 >> END >> STYLE >> SYMBOL "linie-gepunkt10" >> SIZE 8 >> COLOR 204 102 0 >> END >> END >> >> and the map outputformat: >> >> OUTPUTFORMAT >> NAME png >> DRIVER "AGG/PNG" >> MIMETYPE "image/png" >> IMAGEMODE RGBA >> EXTENSION "png" >> FORMATOPTION "INTERLACE=OFF" >> 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 oliver.christen at camptocamp.com Tue Jan 12 07:52:12 2010 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Tue, 12 Jan 2010 16:52:12 +0100 Subject: [mapserver-users] symbol circle (ellipse) rendered not round but oval References: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> Message-ID: <5C90B99F1D0C4CA0967B92FBEDBCE59F@maunakea> GAP 20 is really giving unwanted result: http://dev.camptocamp.com/~ochriste/tilecache9.png though using only one style instead of two seems to solve the oval problem (but why ???) style symbol "dots" size 8 color 204 102 0 outlinecolor 102 51 0 end I dont understand how GAP is supposed working: with GAP 2, I had ~10px between dots, with GAP 3, I had ~18px between dots, with GAP 4, I had ~26px between dots whats the logic ? ----- Original Message ----- From: thomas bonfort To: Oliver Christen Cc: mapserver-users at lists.osgeo.org Sent: Tuesday, January 12, 2010 4:36 PM Subject: Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval symbol name dots type ellipse points 1 1 end gap 20 end ... style symbol "dots" size 8 color r g b outlinecolor r g b end On Tue, Jan 12, 2010 at 16:31, Oliver Christen wrote: Hi Thomas :) thanks for the answer, but sadely it didnt solve my problem: here are a few tests I did: using GAP 20 gave me really weird result: http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png using PATTERN 1 22 END gave me better result, but the dot are still slightly oval: http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png I wondered if the visual effect may have come from the fact im pilling up two circle one over the other, but even when trying to display only the outer or inner circles, the circle are still slightly off: http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png (both at once http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png) any other idea? ^_^ ----- Original Message ----- From: thomas bonfort To: Oliver Christen Cc: mapserver-users at lists.osgeo.org Sent: Tuesday, January 12, 2010 3:18 PM Subject: Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval hi Oliver :) try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use PATTERN now) cheers, thomas On Tue, Jan 12, 2010 at 15:04, Oliver Christen wrote: hello I have a weird problem with symbology. Im rendering a line with dots, but the dots are not round but slightly oval, see image http://dev.camptocamp.com/~ochriste/tilecache.png Any idea what could be the cause ? Here is my symbol definition: SYMBOL NAME "linie-gepunkt10" TYPE ELLIPSE POINTS 1 1 END STYLE 1 20 END FILLED TRUE END and my layer's class definition: CLASS EXPRESSION "3" MAXSCALEDENOM 200001 STYLE SYMBOL "linie-gepunkt10" SIZE 10 COLOR 102 51 0 END STYLE SYMBOL "linie-gepunkt10" SIZE 8 COLOR 204 102 0 END END and the map outputformat: OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "INTERLACE=OFF" 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 thomas.bonfort at gmail.com Tue Jan 12 07:56:02 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 12 Jan 2010 16:56:02 +0100 Subject: [mapserver-users] symbol circle (ellipse) rendered not round but oval In-Reply-To: <5C90B99F1D0C4CA0967B92FBEDBCE59F@maunakea> References: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> <5C90B99F1D0C4CA0967B92FBEDBCE59F@maunakea> Message-ID: gap in pixels = symbol->gap * style->size On Tue, Jan 12, 2010 at 16:52, Oliver Christen < oliver.christen at camptocamp.com> wrote: > GAP 20 is really giving unwanted result: > > http://dev.camptocamp.com/~ochriste/tilecache9.png > > though using only one style instead of two seems to solve the oval problem > (but why ???) > > style > symbol "dots" > size 8 > color 204 102 0 > outlinecolor 102 51 0 > end > > I dont understand how GAP is supposed working: > > with GAP 2, I had ~10px between dots, > with GAP 3, I had ~18px between dots, > with GAP 4, I had ~26px between dots > > whats the logic ? > > ----- Original Message ----- > *From:* thomas bonfort > *To:* Oliver Christen > *Cc:* mapserver-users at lists.osgeo.org > *Sent:* Tuesday, January 12, 2010 4:36 PM > *Subject:* Re: [mapserver-users] symbol circle (ellipse) rendered not > round but oval > > symbol > name dots > type ellipse > points 1 1 end > gap 20 > end > > ... > > style > symbol "dots" > size 8 > color r g b > outlinecolor r g b > end > > > > > On Tue, Jan 12, 2010 at 16:31, Oliver Christen < > oliver.christen at camptocamp.com> wrote: > >> Hi Thomas :) >> >> thanks for the answer, but sadely it didnt solve my problem: >> >> here are a few tests I did: >> >> using GAP 20 gave me really weird result: >> http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png >> >> using PATTERN 1 22 END gave me better result, but the dot are still >> slightly oval: >> http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png >> >> I wondered if the visual effect may have come from the fact im pilling up >> two circle one over the other, but even when trying to display only the >> outer or inner circles, the circle are still slightly off: >> http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png >> http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png >> (both at once >> http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png >> ) >> >> any other idea? ^_^ >> >> ----- Original Message ----- >> *From:* thomas bonfort >> *To:* Oliver Christen >> *Cc:* mapserver-users at lists.osgeo.org >> *Sent:* Tuesday, January 12, 2010 3:18 PM >> *Subject:* Re: [mapserver-users] symbol circle (ellipse) rendered not >> round but oval >> >> hi Oliver :) >> >> try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use >> PATTERN now) >> >> cheers, >> thomas >> >> On Tue, Jan 12, 2010 at 15:04, Oliver Christen < >> oliver.christen at camptocamp.com> wrote: >> >>> hello >>> >>> I have a weird problem with symbology. >>> Im rendering a line with dots, but the dots are not round but slightly >>> oval, see image http://dev.camptocamp.com/~ochriste/tilecache.png >>> >>> Any idea what could be the cause ? >>> >>> Here is my symbol definition: >>> >>> SYMBOL >>> NAME "linie-gepunkt10" >>> TYPE ELLIPSE >>> POINTS >>> 1 1 >>> END >>> STYLE >>> 1 20 >>> END >>> FILLED TRUE >>> END >>> >>> and my layer's class definition: >>> >>> CLASS >>> EXPRESSION "3" >>> MAXSCALEDENOM 200001 >>> STYLE >>> SYMBOL "linie-gepunkt10" >>> SIZE 10 >>> COLOR 102 51 0 >>> END >>> STYLE >>> SYMBOL "linie-gepunkt10" >>> SIZE 8 >>> COLOR 204 102 0 >>> END >>> END >>> >>> and the map outputformat: >>> >>> OUTPUTFORMAT >>> NAME png >>> DRIVER "AGG/PNG" >>> MIMETYPE "image/png" >>> IMAGEMODE RGBA >>> EXTENSION "png" >>> FORMATOPTION "INTERLACE=OFF" >>> 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 tspradley at snoogems.com Tue Jan 12 11:17:58 2010 From: tspradley at snoogems.com (Ted Spradley) Date: Tue, 12 Jan 2010 11:17:58 -0800 (PST) Subject: [mapserver-users] Templates & JOIN object (one to many) Message-ID: <1263323878833-4293738.post@n2.nabble.com> Hi guys, I have a query layer that joins two PostGIS tables. Mapserver objects if a TEMPLATE is not declared in the JOIN object, but I couldn't find a reference to a template being needed in the documentation other than in the LAYER object. The GetFeatureInfo request for this layer returns an empty page (browser). I believe the primary problem is either in the template tags or the template references in either the LAYER or JOIN objects. Please note that the same template is specified for both objects. I am not able to get a clear understanding from the docs regarding the template tags or the placement of the TEMPLATE directive. The code .... /* GetFeatureInfo url */ http://url.com/cgi-bin/mapserv? map=/path/to/cad.map &SERVICE=WMS &VERSION=1.1.1 &REQUEST=GetFeatureInfo &SRS=EPSG%3A102740 &WIDTH=800 &HEIGHT=800 &BBOX=3102785.400463,13832395.006499,3104115.230452,13833724.836488 &LAYERS=building_comp_query &STYLES= &FORMAT=image%2Fpng &QUERY_LAYERS=building_comp_query &X=398&Y=390 &INFO_FORMAT=text/html /* layer definition */ LAYER NAME 'building_comp_query' TYPE QUERY STATUS ON DEBUG 3 TEMPLATE bldgCompGetFeatureInfo.html HEADER bldgCompGetFeatureInfo_header.html FOOTER bldgCompGetFeatureInfo_footer.html PROCESSING "CLOSE_CONNECTION=DEFER" PROCESSING 'LABEL_NO_CLIP=1' DUMP TRUE MAXSCALEDENOM 10000 CONNECTIONTYPE POSTGIS CONNECTION "dbname=cad1 user=user password=password host=localhost port=5432" DATA "the_geom from (select b.the_geom AS the_geom, b.gid AS gid, b.hcad_num AS hcad_num FROM parcels b) as foo using unique gid using srid=-1" JOIN NAME "building_components" CONNECTION "dbname=cad1 user=user password=password host=localhost port=5432" CONNECTIONTYPE ogr TABLE "building_component_areas" FROM "hcad_num" TO "hcad_acct" TYPE ONE-TO-MANY TEMPLATE bldgCompGetFeatureInfo.html END PROJECTION "init=epsg:102740" END METADATA "wms_title" "Building Component Areas Query Layer" "wfs_title" "Building Component Areas Query Layer" "wms_srs" "epsg:102740 epsg:4326" "gml_include_items" "all" "wms_include_items" "all" "gml_featureid" "ogc_fid" ## REQUIRED "qstring_validation_pattern" '.' END END # End layer 'building_component_areas_query' /* template bldgCompGetFeatureInfo_header.html */
The result is a table listing all of the building components. Building Details Building Number Building Component Area units 1 ONE STORY MAS UPR 24 sq ft 1 OPEN MAS PORCH PRI 24 sq ft 1 BASE AREA PRI 1164 sq ft 1 MAS/BRK GARAGE PRI 400 sq ft 1 OPEN MAS PORCH PRI 16 sq ft 1 BASE AREA UPR 1164 sq ft 1 ONE STORY FRAME PRI 60 sq ft 1 ONE STORY MAS UPR 400 sq ft 1 OPEN MAS PORCH PRI 31 sq ft This will work using GetFeatureInfo in the URL, but if you are accessing your WMS with OpenLayers, you are already in a javascript, so you need to use straight html in your templates. /* template bldgCompGetFeatureInfo_header.html */ /* template bldgCompGetFeatureInfo.html */ [join_building_components] /* template bldgCompGetFeatureInfo_join.html */ /* template bldgCompGetFeatureInfo_footer.html */
Building Details
Building Number Building Component Area Units
[building_components_building_num] [building_components_building_component] [building_components_area] sq ft
Cheers everybody! Hope it helps someone. ----- Gracias a todo! Ted S MapServer version 5.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Linux/Fedora7 -- View this message in context: http://n2.nabble.com/Templates-JOIN-object-one-to-many-tp4293738p4306948.html Sent from the Mapserver - User mailing list archive at Nabble.com. From oliver.christen at camptocamp.com Wed Jan 13 01:05:25 2010 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Wed, 13 Jan 2010 10:05:25 +0100 Subject: [mapserver-users] symbol circle (ellipse) rendered not round but oval In-Reply-To: References: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> Message-ID: <8106afb31001130105y5b4e9b3ci1a9195ffec0e9a62@mail.gmail.com> hi David Im requesting the image through wms indeed. Though the bbox x/y ratio is exactly the same as the image x/y. I tried to request the same image directly in cgi, sadely I get exactly the same problem: image result in cgi: http://dev.camptocamp.com/~ochriste/cgi.png (as compared to the wms image http://dev.camptocamp.com/~ochriste/wms.png) this is the cgi request I used: /usr/lib/cgi-bin/mapserv -nh "QUERY_STRING=map=/var/www/veloland/private/veloland/veloland/wms/veloland.map&mode=map&LAYERS=MtblandRoutenNational&mapext=556960+220720+557600+221360&mapsize=256+256" > cgi.png I used exactly the same bbox and image size as the wms request: /wms?FORMAT=image%2Fpng&LAYERS=MtblandRoutenNational&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A21781&BBOX=556960,220720,557600,221360&WIDTH=256&HEIGHT=256 this is when using STYLE 1 20 END or PATTERN 1 20 END for the symbol when using GAP the dots are correctly shaped so I suspect the problem is within the interpretation of STYLE/PATTERN for the symbol generation ? 2010/1/12 Fawcett, David (MPCA) > Are you requesting your image through a WMS and maybe getting a > ?non-square pixel? effect? > > > > If you are using WMS, are the symbols round when you do a cgi request in > mode=map or mode=tile? > > > > David. > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Oliver Christen > *Sent:* Tuesday, January 12, 2010 9:31 AM > *To:* thomas bonfort > > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] symbol circle (ellipse) rendered not > round but oval > > > > Hi Thomas :) > > > > thanks for the answer, but sadely it didnt solve my problem: > > > > here are a few tests I did: > > > > using GAP 20 gave me really weird result: > > http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png > > > > using PATTERN 1 22 END gave me better result, but the dot are still > slightly oval: > > http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png > > > > I wondered if the visual effect may have come from the fact im pilling up > two circle one over the other, but even when trying to display only the > outer or inner circles, the circle are still slightly off: > > http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png > > http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png > > (both at once > http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png > ) > > > > any other idea? ^_^ > > ----- Original Message ----- > > *From:* thomas bonfort > > *To:* Oliver Christen > > *Cc:* mapserver-users at lists.osgeo.org > > *Sent:* Tuesday, January 12, 2010 3:18 PM > > *Subject:* Re: [mapserver-users] symbol circle (ellipse) rendered not > round but oval > > > > hi Oliver :) > > try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use > PATTERN now) > > cheers, > thomas > > On Tue, Jan 12, 2010 at 15:04, Oliver Christen < > oliver.christen at camptocamp.com> wrote: > > hello > > I have a weird problem with symbology. > Im rendering a line with dots, but the dots are not round but slightly > oval, see image http://dev.camptocamp.com/~ochriste/tilecache.png > > Any idea what could be the cause ? > > Here is my symbol definition: > > SYMBOL > NAME "linie-gepunkt10" > TYPE ELLIPSE > POINTS > 1 1 > END > STYLE > 1 20 > END > FILLED TRUE > END > > and my layer's class definition: > > CLASS > EXPRESSION "3" > MAXSCALEDENOM 200001 > STYLE > SYMBOL "linie-gepunkt10" > SIZE 10 > COLOR 102 51 0 > END > STYLE > SYMBOL "linie-gepunkt10" > SIZE 8 > COLOR 204 102 0 > END > END > > and the map outputformat: > > OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > FORMATOPTION "INTERLACE=OFF" > 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 oliver.christen at camptocamp.com Wed Jan 13 01:08:24 2010 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Wed, 13 Jan 2010 10:08:24 +0100 Subject: [mapserver-users] symbol circle (ellipse) rendered not round but oval In-Reply-To: References: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> <5C90B99F1D0C4CA0967B92FBEDBCE59F@maunakea> Message-ID: <8106afb31001130108u3da74aa3i7fb1b727300687d2@mail.gmail.com> thank you Thomas so if I have a dot of, for example, 8px and I want a space pf 20px between the dots, I need a gap of 20/8 = 2.5 but as far as I can see, Mapserver doesnt like none-integer value for gap. what should I do? :( 2010/1/12 thomas bonfort > gap in pixels = symbol->gap * style->size > > > On Tue, Jan 12, 2010 at 16:52, Oliver Christen < > oliver.christen at camptocamp.com> wrote: > >> GAP 20 is really giving unwanted result: >> >> http://dev.camptocamp.com/~ochriste/tilecache9.png >> >> though using only one style instead of two seems to solve the oval problem >> (but why ???) >> >> style >> symbol "dots" >> size 8 >> color 204 102 0 >> outlinecolor 102 51 0 >> end >> >> I dont understand how GAP is supposed working: >> >> with GAP 2, I had ~10px between dots, >> with GAP 3, I had ~18px between dots, >> with GAP 4, I had ~26px between dots >> >> whats the logic ? >> >> ----- Original Message ----- >> *From:* thomas bonfort >> *To:* Oliver Christen >> *Cc:* mapserver-users at lists.osgeo.org >> *Sent:* Tuesday, January 12, 2010 4:36 PM >> *Subject:* Re: [mapserver-users] symbol circle (ellipse) rendered not >> round but oval >> >> symbol >> name dots >> type ellipse >> points 1 1 end >> gap 20 >> end >> >> ... >> >> style >> symbol "dots" >> size 8 >> color r g b >> outlinecolor r g b >> end >> >> >> >> >> On Tue, Jan 12, 2010 at 16:31, Oliver Christen < >> oliver.christen at camptocamp.com> wrote: >> >>> Hi Thomas :) >>> >>> thanks for the answer, but sadely it didnt solve my problem: >>> >>> here are a few tests I did: >>> >>> using GAP 20 gave me really weird result: >>> http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png >>> >>> using PATTERN 1 22 END gave me better result, but the dot are still >>> slightly oval: >>> http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png >>> >>> I wondered if the visual effect may have come from the fact im pilling up >>> two circle one over the other, but even when trying to display only the >>> outer or inner circles, the circle are still slightly off: >>> http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png >>> http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png >>> (both at once >>> http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png >>> ) >>> >>> any other idea? ^_^ >>> >>> ----- Original Message ----- >>> *From:* thomas bonfort >>> *To:* Oliver Christen >>> *Cc:* mapserver-users at lists.osgeo.org >>> *Sent:* Tuesday, January 12, 2010 3:18 PM >>> *Subject:* Re: [mapserver-users] symbol circle (ellipse) rendered not >>> round but oval >>> >>> hi Oliver :) >>> >>> try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use >>> PATTERN now) >>> >>> cheers, >>> thomas >>> >>> On Tue, Jan 12, 2010 at 15:04, Oliver Christen < >>> oliver.christen at camptocamp.com> wrote: >>> >>>> hello >>>> >>>> I have a weird problem with symbology. >>>> Im rendering a line with dots, but the dots are not round but slightly >>>> oval, see image http://dev.camptocamp.com/~ochriste/tilecache.png >>>> >>>> Any idea what could be the cause ? >>>> >>>> Here is my symbol definition: >>>> >>>> SYMBOL >>>> NAME "linie-gepunkt10" >>>> TYPE ELLIPSE >>>> POINTS >>>> 1 1 >>>> END >>>> STYLE >>>> 1 20 >>>> END >>>> FILLED TRUE >>>> END >>>> >>>> and my layer's class definition: >>>> >>>> CLASS >>>> EXPRESSION "3" >>>> MAXSCALEDENOM 200001 >>>> STYLE >>>> SYMBOL "linie-gepunkt10" >>>> SIZE 10 >>>> COLOR 102 51 0 >>>> END >>>> STYLE >>>> SYMBOL "linie-gepunkt10" >>>> SIZE 8 >>>> COLOR 204 102 0 >>>> END >>>> END >>>> >>>> and the map outputformat: >>>> >>>> OUTPUTFORMAT >>>> NAME png >>>> DRIVER "AGG/PNG" >>>> MIMETYPE "image/png" >>>> IMAGEMODE RGBA >>>> EXTENSION "png" >>>> FORMATOPTION "INTERLACE=OFF" >>>> 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 David.Fawcett at state.mn.us Wed Jan 13 06:46:20 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Wed, 13 Jan 2010 08:46:20 -0600 Subject: [mapserver-users] symbol circle (ellipse) rendered not round but oval In-Reply-To: <8106afb31001130105y5b4e9b3ci1a9195ffec0e9a62@mail.gmail.com> References: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> <8106afb31001130105y5b4e9b3ci1a9195ffec0e9a62@mail.gmail.com> Message-ID: Oliver, Apologies for sending you down the wrong path. I don't follow the dev list, so I am not up on the latest feature opportunities (and pitfalls). My solutions appear to be aimed at things people have already figured out... David. From: Oliver Christen [mailto:oliver.christen at camptocamp.com] Sent: Wednesday, January 13, 2010 3:05 AM To: Fawcett, David (MPCA) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval hi David Im requesting the image through wms indeed. Though the bbox x/y ratio is exactly the same as the image x/y. I tried to request the same image directly in cgi, sadely I get exactly the same problem: image result in cgi: http://dev.camptocamp.com/~ochriste/cgi.png (as compared to the wms image http://dev.camptocamp.com/~ochriste/wms.png) this is the cgi request I used: /usr/lib/cgi-bin/mapserv -nh "QUERY_STRING=map=/var/www/veloland/private/veloland/veloland/wms/veloland.map&mode=map&LAYERS=MtblandRoutenNational&mapext=556960+220720+557600+221360&mapsize=256+256" > cgi.png I used exactly the same bbox and image size as the wms request: /wms?FORMAT=image%2Fpng&LAYERS=MtblandRoutenNational&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A21781&BBOX=556960,220720,557600,221360&WIDTH=256&HEIGHT=256 this is when using STYLE 1 20 END or PATTERN 1 20 END for the symbol when using GAP the dots are correctly shaped so I suspect the problem is within the interpretation of STYLE/PATTERN for the symbol generation ? 2010/1/12 Fawcett, David (MPCA) > Are you requesting your image through a WMS and maybe getting a 'non-square pixel' effect? If you are using WMS, are the symbols round when you do a cgi request in mode=map or mode=tile? David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Oliver Christen Sent: Tuesday, January 12, 2010 9:31 AM To: thomas bonfort Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval Hi Thomas :) thanks for the answer, but sadely it didnt solve my problem: here are a few tests I did: using GAP 20 gave me really weird result: http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png using PATTERN 1 22 END gave me better result, but the dot are still slightly oval: http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png I wondered if the visual effect may have come from the fact im pilling up two circle one over the other, but even when trying to display only the outer or inner circles, the circle are still slightly off: http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png (both at once http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png) any other idea? ^_^ ----- Original Message ----- From: thomas bonfort To: Oliver Christen Cc: mapserver-users at lists.osgeo.org Sent: Tuesday, January 12, 2010 3:18 PM Subject: Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval hi Oliver :) try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use PATTERN now) cheers, thomas On Tue, Jan 12, 2010 at 15:04, Oliver Christen > wrote: hello I have a weird problem with symbology. Im rendering a line with dots, but the dots are not round but slightly oval, see image http://dev.camptocamp.com/~ochriste/tilecache.png Any idea what could be the cause ? Here is my symbol definition: SYMBOL NAME "linie-gepunkt10" TYPE ELLIPSE POINTS 1 1 END STYLE 1 20 END FILLED TRUE END and my layer's class definition: CLASS EXPRESSION "3" MAXSCALEDENOM 200001 STYLE SYMBOL "linie-gepunkt10" SIZE 10 COLOR 102 51 0 END STYLE SYMBOL "linie-gepunkt10" SIZE 8 COLOR 204 102 0 END END and the map outputformat: OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "INTERLACE=OFF" 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 havard.tveite at umb.no Wed Jan 13 09:18:15 2010 From: havard.tveite at umb.no (Havard Tveite) Date: Wed, 13 Jan 2010 18:18:15 +0100 Subject: [mapserver-users] symbol circle (ellipse) rendered not round but oval In-Reply-To: <8106afb31001130108u3da74aa3i7fb1b727300687d2@mail.gmail.com> References: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> <5C90B99F1D0C4CA0967B92FBEDBCE59F@maunakea> <8106afb31001130108u3da74aa3i7fb1b727300687d2@mail.gmail.com> Message-ID: <4B4E0057.4020407@umb.no> Dear Oliver Christen, Using Mapserver 5.6.0 and AGG rendering, you can achieve what you want by using a combination of ellipse size and gap size in the symbol definition. There is something strange in the calculations (a gap of about half the ellipse size seems to produce touching symbols), so in your case, you could try to use 8 as the diameter of the ellipses, and 20 + 4 (half the ellipse size) = 24 as the gap: symbol name dots type ellipse points 8 8 end gap 24 end H?vard Oliver Christen wrote: > thank you Thomas > > so if I have a dot of, for example, 8px and I want a space pf 20px > between the dots, I need a gap of 20/8 = 2.5 > > but as far as I can see, Mapserver doesnt like none-integer value for gap. > > what should I do? :( > > 2010/1/12 thomas bonfort > > > gap in pixels = symbol->gap * style->size > > > On Tue, Jan 12, 2010 at 16:52, Oliver Christen > > wrote: > > GAP 20 is really giving unwanted result: > > http://dev.camptocamp.com/~ochriste/tilecache9.png > > > though using only one style instead of two seems to solve the > oval problem (but why ???) > > style > symbol "dots" > size 8 > color 204 102 0 > outlinecolor 102 51 0 > end > > I dont understand how GAP is supposed working: > > with GAP 2, I had ~10px between dots, > with GAP 3, I had ~18px between dots, > with GAP 4, I had ~26px between dots > > whats the logic ? > > ----- Original Message ----- > *From:* thomas bonfort > *To:* Oliver Christen > *Cc:* mapserver-users at lists.osgeo.org > > *Sent:* Tuesday, January 12, 2010 4:36 PM > *Subject:* Re: [mapserver-users] symbol circle (ellipse) > rendered not round but oval > > symbol > name dots > type ellipse > points 1 1 end > gap 20 > end > > ... > > style > symbol "dots" > size 8 > color r g b > outlinecolor r g b > end > > > > > On Tue, Jan 12, 2010 at 16:31, Oliver Christen > > wrote: > > Hi Thomas :) > > thanks for the answer, but sadely it didnt solve my problem: > > here are a few tests I did: > > using GAP 20 gave me really weird result: > http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png > > > using PATTERN 1 22 END gave me better result, but the > dot are still slightly oval: > http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png > > > I wondered if the visual effect may have come from the > fact im pilling up two circle one over the other, but > even when trying to display only the outer or inner > circles, the circle are still slightly off: > http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png > > http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png > > (both at once > http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png > ) > > any other idea? ^_^ > > ----- Original Message ----- > *From:* thomas bonfort > > *To:* Oliver Christen > > *Cc:* mapserver-users at lists.osgeo.org > > *Sent:* Tuesday, January 12, 2010 3:18 PM > *Subject:* Re: [mapserver-users] symbol circle > (ellipse) rendered not round but oval > > hi Oliver :) > > try with GAP 20 instead of STYLE 1 20 END (which is > deprecated btw, use PATTERN now) > > cheers, > thomas > > On Tue, Jan 12, 2010 at 15:04, Oliver Christen > > wrote: > > hello > > I have a weird problem with symbology. > Im rendering a line with dots, but the dots are > not round but slightly oval, see image > http://dev.camptocamp.com/~ochriste/tilecache.png > > > Any idea what could be the cause ? > > Here is my symbol definition: > > SYMBOL > NAME "linie-gepunkt10" > TYPE ELLIPSE > POINTS > 1 1 > END > STYLE > 1 20 > END > FILLED TRUE > END > > and my layer's class definition: > > CLASS > EXPRESSION "3" > MAXSCALEDENOM 200001 > STYLE > SYMBOL "linie-gepunkt10" > SIZE 10 > COLOR 102 51 0 > END > STYLE > SYMBOL "linie-gepunkt10" > SIZE 8 > COLOR 204 102 0 > END > END > > and the map outputformat: > > OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > FORMATOPTION "INTERLACE=OFF" > END > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ From charles at weareland.com Wed Jan 13 14:28:50 2010 From: charles at weareland.com (bascom49) Date: Wed, 13 Jan 2010 14:28:50 -0800 (PST) Subject: [mapserver-users] php error Message-ID: <1263421730977-4380950.post@n2.nabble.com> I am installing mapserver 5.4.2. My php version is 5.2.9. I am getting an error message with the following code : php if (PHP_OS == "WINNT" || PHP_OS == "WIN32") { $dllversion = 'php_mapscript.dll'; } else { $dllversion = 'php_mapscript.so'; } if (!extension_loaded('MapScript')) {dl($dllversion);} phpinfo(); ?> A link to the file producing this error is at : http://174.120.238.19/info.php You can view my php configuration at this link: http://174.120.238.19/info.php Does anyone have experience with the following php issue ? [13-Jan-2010 14:00:04] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/?php_mapscript.so?php_mapscript.so? [13-Jan-2010 14:00:04] PHP Warning: PHP Startup: U?SH??: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=0 PHP compiled with module API=20060613, debug=0, thread-safety=0 These options need to match Thanks, Charles -- View this message in context: http://n2.nabble.com/php-error-tp4380950p4380950.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aboudreault at mapgears.com Wed Jan 13 14:41:17 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Wed, 13 Jan 2010 17:41:17 -0500 Subject: [mapserver-users] php error In-Reply-To: <1263421730977-4380950.post@n2.nabble.com> References: <1263421730977-4380950.post@n2.nabble.com> Message-ID: <4B4E4C0D.9050608@mapgears.com> PHP mapscript hasn't been compiled with php 5.2.9. You'll have to rebuild the module with the proper php lib. You probably have a old php 4.x on your system too. Alan bascom49 wrote: > I am installing mapserver 5.4.2. My php version is 5.2.9. > > I am getting an error message with the following code : > > php > if (PHP_OS == "WINNT" || PHP_OS == "WIN32") { > $dllversion = 'php_mapscript.dll'; > } else { > $dllversion = 'php_mapscript.so'; > } > if (!extension_loaded('MapScript')) {dl($dllversion);} > phpinfo(); > ?> > > A link to the file producing this error is at : > http://174.120.238.19/info.php > > You can view my php configuration at this link: > http://174.120.238.19/info.php > > > Does anyone have experience with the following php issue ? > > > [13-Jan-2010 14:00:04] PHP Warning: PHP Startup: Unable to load dynamic > library > '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/?php_mapscript.so?php_mapscript.so? > [13-Jan-2010 14:00:04] PHP > Warning: PHP Startup: U?SH??: Unable to initialize module > Module compiled with module API=20020429, debug=0, thread-safety=0 > PHP compiled with module API=20060613, debug=0, thread-safety=0 > These options need to match > > > Thanks, > Charles > -- Alan Boudreault Mapgears http://www.mapgears.com/ From charles at weareland.com Wed Jan 13 15:35:05 2010 From: charles at weareland.com (bascom49) Date: Wed, 13 Jan 2010 15:35:05 -0800 (PST) Subject: [mapserver-users] php error In-Reply-To: <4B4E4C0D.9050608@mapgears.com> References: <1263421730977-4380950.post@n2.nabble.com> <4B4E4C0D.9050608@mapgears.com> Message-ID: <1263425705148-4385574.post@n2.nabble.com> Alan Boudreault wrote: > > PHP mapscript hasn't been compiled with php 5.2.9. You'll have to > rebuild the module with the proper php lib. You probably have a old php > 4.x on your system too. > > Alan > > bascom49 wrote: >> I am installing mapserver 5.4.2. My php version is 5.2.9. >> >> I am getting an error message with the following code : >> >> php >> if (PHP_OS == "WINNT" || PHP_OS == "WIN32") { >> $dllversion = 'php_mapscript.dll'; >> } else { >> $dllversion = 'php_mapscript.so'; >> } >> if (!extension_loaded('MapScript')) {dl($dllversion);} >> phpinfo(); >> ?> >> >> A link to the file producing this error is at : >> http://174.120.238.19/info.php >> >> You can view my php configuration at this link: >> http://174.120.238.19/info.php >> >> >> Does anyone have experience with the following php issue ? >> >> >> [13-Jan-2010 14:00:04] PHP Warning: PHP Startup: Unable to load dynamic >> library >> '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/?php_mapscript.so?php_mapscript.so? >> [13-Jan-2010 14:00:04] >> PHP >> Warning: PHP Startup: U?SH??: Unable to initialize module >> Module compiled with module API=20020429, debug=0, thread-safety=0 >> PHP compiled with module API=20060613, debug=0, thread-safety=0 >> These options need to match >> >> >> Thanks, >> Charles >> > > > -- > Alan Boudreault > Mapgears > http://www.mapgears.com/ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > I had installing mapscript with php by following this link: http://mapserver.org/installation/php.html and must have misunderstood that I could compile against php5. I do have a php4 binary on my server. Is this as simple as compiling mapserver with the php4 binary to produce php_mapscript.so and keeping php5 on my system or do I have to reinstall php4 as well ? -- View this message in context: http://n2.nabble.com/php-error-tp4380950p4385574.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aboudreault at mapgears.com Wed Jan 13 15:47:00 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Wed, 13 Jan 2010 18:47:00 -0500 Subject: [mapserver-users] php error In-Reply-To: <1263425705148-4385574.post@n2.nabble.com> References: <1263421730977-4380950.post@n2.nabble.com> <4B4E4C0D.9050608@mapgears.com> <1263425705148-4385574.post@n2.nabble.com> Message-ID: <4B4E5B74.8050704@mapgears.com> You can have both on your system, but if you want to use php mapscript with php 5.2.9, you need to specify the proper header path. ie. on ubuntu: --with-php=/usr/include/php5/ This way, the mapscript module will work with your php 5.2.9. Hope this help. Alan bascom49 wrote: > > Alan Boudreault wrote: > >> PHP mapscript hasn't been compiled with php 5.2.9. You'll have to >> rebuild the module with the proper php lib. You probably have a old php >> 4.x on your system too. >> >> Alan >> >> bascom49 wrote: >> >>> I am installing mapserver 5.4.2. My php version is 5.2.9. >>> >>> I am getting an error message with the following code : >>> >>> php >>> if (PHP_OS == "WINNT" || PHP_OS == "WIN32") { >>> $dllversion = 'php_mapscript.dll'; >>> } else { >>> $dllversion = 'php_mapscript.so'; >>> } >>> if (!extension_loaded('MapScript')) {dl($dllversion);} >>> phpinfo(); >>> ?> >>> >>> A link to the file producing this error is at : >>> http://174.120.238.19/info.php >>> >>> You can view my php configuration at this link: >>> http://174.120.238.19/info.php >>> >>> >>> Does anyone have experience with the following php issue ? >>> >>> >>> [13-Jan-2010 14:00:04] PHP Warning: PHP Startup: Unable to load dynamic >>> library >>> '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/?php_mapscript.so?php_mapscript.so? >>> [13-Jan-2010 14:00:04] >>> PHP >>> Warning: PHP Startup: U?SH??: Unable to initialize module >>> Module compiled with module API=20020429, debug=0, thread-safety=0 >>> PHP compiled with module API=20060613, debug=0, thread-safety=0 >>> These options need to match >>> >>> >>> Thanks, >>> Charles >>> >>> >> -- >> Alan Boudreault >> Mapgears >> http://www.mapgears.com/ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > > I had installing mapscript with php by following this link: > http://mapserver.org/installation/php.html > and must have misunderstood that I could compile against > php5. I do have a php4 binary on my server. Is this as simple as > compiling mapserver with the php4 binary to produce php_mapscript.so > and keeping php5 on my system or do I have to reinstall php4 as well ? > > > > -- Alan Boudreault Mapgears http://www.mapgears.com/ From beyhan at deprem.gov.tr Wed Jan 13 05:11:25 2010 From: beyhan at deprem.gov.tr (Murat BEYHAN) Date: Wed, 13 Jan 2010 15:11:25 +0200 Subject: [mapserver-users] how can I associate MySql and Gdal Message-ID: <20100113130709.M9941@deprem.gov.tr> Hi friends, I have installed mandriva 2010 and then installed Mysql mapserver and gdal which are coming with Mandriva one CD. But I could not read data from MySql database by using ogr because of the supported formats. How could I associate MySql with gdal in order to draw map using data stored in MySql Please help me the formats supported by gdal as follows murat ogrinfo --formats Supported Formats: -> "GRASS" (readonly) -> "ESRI Shapefile" (read/write) -> "MapInfo File" (read/write) -> "UK .NTF" (readonly) -> "SDTS" (readonly) -> "TIGER" (read/write) -> "S57" (read/write) -> "DGN" (read/write) -> "VRT" (readonly) -> "REC" (readonly) -> "Memory" (read/write) -> "BNA" (read/write) -> "CSV" (read/write) -> "GML" (read/write) -> "GPX" (read/write) -> "KML" (read/write) -> "GeoJSON" (read/write) -> "GMT" (read/write) -> "SQLite" (read/write) -> "ODBC" (read/write) -> "PGeo" (readonly) -> "OGDI" (readonly) -> "PostgreSQL" (read/write) -> "XPlane" (readonly) -> "AVCBin" (readonly) -> "AVCE00" (readonly) -> "Geoconcept" (read/write) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From brfr at metrico.lu Wed Jan 13 22:42:39 2010 From: brfr at metrico.lu (Frank Broniewski) Date: Thu, 14 Jan 2010 07:42:39 +0100 Subject: [mapserver-users] OWSRequest raw post data In-Reply-To: <526C4B0FB3FD4E4CA8CC7B303511C1AE@PCFL01BRFR> References: <4616439053D14197B84A74E6F2B79459@PCFL01BRFR> <526C4B0FB3FD4E4CA8CC7B303511C1AE@PCFL01BRFR> Message-ID: It seems that setting owsrequest.postdata is sufficiant -------------------------------------------------- From: "Frank Broniewski" Sent: Tuesday, January 12, 2010 4:26 PM To: Subject: Re: [mapserver-users] OWSRequest raw post data > Sorry, I forgot to mention that. I'm using Python ... > > -------------------------------------------------- > From: "Nolte, Tim" > Sent: Tuesday, January 12, 2010 3:56 PM > To: "Frank Broniewski" ; > > Subject: RE: [mapserver-users] OWSRequest raw post data > >> What language are you using, is this PHP? >> >> - Tim >> >> ---- >> Timothy J Nolte - tnolte at ilpcs.com >> Network Planning Engineer >> >> 4717 Broadmoor Ave, Suite G >> Kentwood, MI 49512 >> >> Office: 616-656-5163 >> PCS: 616-706-2438 >> Support: 616-929-0289 >> Fax: 616-554-6484 >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Frank >> Broniewski >> Sent: Tuesday, January 12, 2010 4:33 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] OWSRequest raw post data >> >> Hello list, >> >> I am wondering how I could load / pass a raw post body to the owsrequest >> object. GET is simply done with setParameter. I see that there is a >> postrequest attribute for the owsrequest object, but there is no >> documentation for it. Can I set it manually? I am using a WSGI Framework >> and >> the documented req.loadParams() function does not work with it. >> Or is there a parameter 'post' or 'xml' which I can set with the raw post >> data with setParameter()? >> >> Many Thanks >> >> Frank >> >> >> >> Frank Broniewski >> >> Metrico s.?r.l. ( http://www.metrico.lu ) >> 36, rue des Romains >> L-5433 Niederdonven >> Luxembourg >> >> Fon: +352 26 74 94 28 >> Fax: +352 26 74 94 99 >> >> _______________________________________________ >> 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 oliver.christen at camptocamp.com Wed Jan 13 23:49:58 2010 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Thu, 14 Jan 2010 08:49:58 +0100 Subject: [mapserver-users] symbol circle (ellipse) rendered not round but oval References: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> <5C90B99F1D0C4CA0967B92FBEDBCE59F@maunakea> <8106afb31001130108u3da74aa3i7fb1b727300687d2@mail.gmail.com> <4B4E0057.4020407@umb.no> Message-ID: <830CA97B19EB45F993FB4AAB7AE86131@maunakea> Thank you H?vard I see you have changed "points 1 1 end" by "points 8 8 end". Tell me if im wrong, but these values are only used to render the proportions of the elipse but not it's size, is that correct? so if I understand correctly, using larger values for the elipse width/height refine the rendering of the vectorised dot geometry ? regards Oliver > Dear Oliver Christen, > > Using Mapserver 5.6.0 and AGG rendering, you can achieve what > you want by using a combination of ellipse size and gap size > in the symbol definition. > There is something strange in the calculations (a gap of > about half the ellipse size seems to produce touching symbols), > so in your case, you could try to use 8 as the diameter of the > ellipses, and 20 + 4 (half the ellipse size) = 24 as the > gap: > > symbol > name dots > type ellipse > points 8 8 end > gap 24 > end > > > H?vard > > Oliver Christen wrote: >> thank you Thomas >> >> so if I have a dot of, for example, 8px and I want a space pf 20px >> between the dots, I need a gap of 20/8 = 2.5 >> >> but as far as I can see, Mapserver doesnt like none-integer value for >> gap. >> >> what should I do? :( >> >> 2010/1/12 thomas bonfort > > >> >> gap in pixels = symbol->gap * style->size >> >> >> On Tue, Jan 12, 2010 at 16:52, Oliver Christen >> > > wrote: >> >> GAP 20 is really giving unwanted result: >> http://dev.camptocamp.com/~ochriste/tilecache9.png >> >> though using only one style instead of two seems to solve the >> oval problem (but why ???) >> style >> symbol "dots" >> size 8 >> color 204 102 0 >> outlinecolor 102 51 0 >> end >> I dont understand how GAP is supposed working: >> with GAP 2, I had ~10px between dots, >> with GAP 3, I had ~18px between dots, >> with GAP 4, I had ~26px between dots >> whats the logic ? >> >> ----- Original Message ----- >> *From:* thomas bonfort >> *To:* Oliver Christen >> *Cc:* mapserver-users at lists.osgeo.org >> >> *Sent:* Tuesday, January 12, 2010 4:36 PM >> *Subject:* Re: [mapserver-users] symbol circle (ellipse) >> rendered not round but oval >> >> symbol >> name dots >> type ellipse >> points 1 1 end >> gap 20 >> end >> >> ... >> >> style >> symbol "dots" >> size 8 >> color r g b >> outlinecolor r g b >> end >> >> >> >> >> On Tue, Jan 12, 2010 at 16:31, Oliver Christen >> > > wrote: >> >> Hi Thomas :) >> thanks for the answer, but sadely it didnt solve my >> problem: >> here are a few tests I did: >> using GAP 20 gave me really weird result: >> http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png >> >> >> using PATTERN 1 22 END gave me better result, but the >> dot are still slightly oval: >> >> http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png >> >> >> I wondered if the visual effect may have come from the >> fact im pilling up two circle one over the other, but >> even when trying to display only the outer or inner >> circles, the circle are still slightly off: >> >> http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png >> >> >> >> http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png >> >> >> (both at once >> >> http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png >> >> ) >> any other idea? ^_^ >> >> ----- Original Message ----- >> *From:* thomas bonfort >> >> *To:* Oliver Christen >> >> *Cc:* mapserver-users at lists.osgeo.org >> >> *Sent:* Tuesday, January 12, 2010 3:18 PM >> *Subject:* Re: [mapserver-users] symbol circle >> (ellipse) rendered not round but oval >> >> hi Oliver :) >> >> try with GAP 20 instead of STYLE 1 20 END (which is >> deprecated btw, use PATTERN now) >> >> cheers, >> thomas >> >> On Tue, Jan 12, 2010 at 15:04, Oliver Christen >> > > wrote: >> >> hello >> >> I have a weird problem with symbology. >> Im rendering a line with dots, but the dots are >> not round but slightly oval, see image >> http://dev.camptocamp.com/~ochriste/tilecache.png >> >> >> >> Any idea what could be the cause ? >> >> Here is my symbol definition: >> >> SYMBOL >> NAME "linie-gepunkt10" >> TYPE ELLIPSE >> POINTS >> 1 1 >> END >> STYLE >> 1 20 >> END >> FILLED TRUE >> END >> >> and my layer's class definition: >> >> CLASS >> EXPRESSION "3" >> MAXSCALEDENOM 200001 >> STYLE >> SYMBOL "linie-gepunkt10" >> SIZE 10 >> COLOR 102 51 0 >> END >> STYLE >> SYMBOL "linie-gepunkt10" >> SIZE 8 >> COLOR 204 102 0 >> END >> END >> >> and the map outputformat: >> >> OUTPUTFORMAT >> NAME png >> DRIVER "AGG/PNG" >> MIMETYPE "image/png" >> IMAGEMODE RGBA >> EXTENSION "png" >> FORMATOPTION "INTERLACE=OFF" >> END >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> > > -- > H?vard Tveite > Department of Mathematical Sciences and Technology, UMB > Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY > Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ > From oliver.christen at camptocamp.com Thu Jan 14 00:22:57 2010 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Thu, 14 Jan 2010 09:22:57 +0100 Subject: [mapserver-users] symbol circle (ellipse) rendered not round but oval References: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> <5C90B99F1D0C4CA0967B92FBEDBCE59F@maunakea> <8106afb31001130108u3da74aa3i7fb1b727300687d2@mail.gmail.com> Message-ID: mmm, I tested a bit and it seems the calculation is more complex than that, as the ellipse size definition of the symbol has also some effect. style->size 8, "points 6 6 end", "gap 20" => spacing of ~20px between dots style->size 8, "points 8 8 end", "gap 20" => spacing of ~14px between dots style->size 10, "points 6 6 end", "gap 20" => spacing of ~26px between dots I fear I dont understand at all how this is calculated :( ----- Original Message ----- From: Oliver Christen To: thomas bonfort Cc: mapserver-users at lists.osgeo.org Sent: Wednesday, January 13, 2010 10:08 AM Subject: Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval thank you Thomas so if I have a dot of, for example, 8px and I want a space pf 20px between the dots, I need a gap of 20/8 = 2.5 but as far as I can see, Mapserver doesnt like none-integer value for gap. what should I do? :( 2010/1/12 thomas bonfort gap in pixels = symbol->gap * style->size On Tue, Jan 12, 2010 at 16:52, Oliver Christen wrote: GAP 20 is really giving unwanted result: http://dev.camptocamp.com/~ochriste/tilecache9.png though using only one style instead of two seems to solve the oval problem (but why ???) style symbol "dots" size 8 color 204 102 0 outlinecolor 102 51 0 end I dont understand how GAP is supposed working: with GAP 2, I had ~10px between dots, with GAP 3, I had ~18px between dots, with GAP 4, I had ~26px between dots whats the logic ? ----- Original Message ----- From: thomas bonfort To: Oliver Christen Cc: mapserver-users at lists.osgeo.org Sent: Tuesday, January 12, 2010 4:36 PM Subject: Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval symbol name dots type ellipse points 1 1 end gap 20 end ... style symbol "dots" size 8 color r g b outlinecolor r g b end On Tue, Jan 12, 2010 at 16:31, Oliver Christen wrote: Hi Thomas :) thanks for the answer, but sadely it didnt solve my problem: here are a few tests I did: using GAP 20 gave me really weird result: http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png using PATTERN 1 22 END gave me better result, but the dot are still slightly oval: http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png I wondered if the visual effect may have come from the fact im pilling up two circle one over the other, but even when trying to display only the outer or inner circles, the circle are still slightly off: http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png (both at once http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png) any other idea? ^_^ ----- Original Message ----- From: thomas bonfort To: Oliver Christen Cc: mapserver-users at lists.osgeo.org Sent: Tuesday, January 12, 2010 3:18 PM Subject: Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval hi Oliver :) try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use PATTERN now) cheers, thomas On Tue, Jan 12, 2010 at 15:04, Oliver Christen wrote: hello I have a weird problem with symbology. Im rendering a line with dots, but the dots are not round but slightly oval, see image http://dev.camptocamp.com/~ochriste/tilecache.png Any idea what could be the cause ? Here is my symbol definition: SYMBOL NAME "linie-gepunkt10" TYPE ELLIPSE POINTS 1 1 END STYLE 1 20 END FILLED TRUE END and my layer's class definition: CLASS EXPRESSION "3" MAXSCALEDENOM 200001 STYLE SYMBOL "linie-gepunkt10" SIZE 10 COLOR 102 51 0 END STYLE SYMBOL "linie-gepunkt10" SIZE 8 COLOR 204 102 0 END END and the map outputformat: OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "INTERLACE=OFF" 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 havard.tveite at umb.no Thu Jan 14 00:21:46 2010 From: havard.tveite at umb.no (Havard Tveite) Date: Thu, 14 Jan 2010 09:21:46 +0100 Subject: [mapserver-users] symbol circle (ellipse) rendered not round but oval In-Reply-To: <830CA97B19EB45F993FB4AAB7AE86131@maunakea> References: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> <5C90B99F1D0C4CA0967B92FBEDBCE59F@maunakea> <8106afb31001130108u3da74aa3i7fb1b727300687d2@mail.gmail.com> <4B4E0057.4020407@umb.no> <830CA97B19EB45F993FB4AAB7AE86131@maunakea> Message-ID: <4B4ED41A.7060702@umb.no> Oliver Christen wrote: > Thank you H?vard > I see you have changed "points 1 1 end" by "points 8 8 end". > Tell me if im wrong, but these values are only used to render the > proportions of the elipse but not it's size, is that correct? > so if I understand correctly, using larger values for the elipse > width/height refine the rendering of the vectorised dot geometry ? The size of the symbols are determined by the values given in the style of the class in the layer. So the magnitude of the values used in the symbol definition only have effect within the symbol definition (makes it possible to use only integers, and makes it easier to do the arithmetics :-) ). The magnitude of the values used in the symbol definition should have no bearing on the way the symbols are rendered by Mapserver. H?vard > > regards > Oliver > >> Dear Oliver Christen, >> >> Using Mapserver 5.6.0 and AGG rendering, you can achieve what >> you want by using a combination of ellipse size and gap size >> in the symbol definition. >> There is something strange in the calculations (a gap of >> about half the ellipse size seems to produce touching symbols), >> so in your case, you could try to use 8 as the diameter of the >> ellipses, and 20 + 4 (half the ellipse size) = 24 as the >> gap: >> >> symbol >> name dots >> type ellipse >> points 8 8 end >> gap 24 >> end >> >> >> H?vard >> >> Oliver Christen wrote: >>> thank you Thomas >>> >>> so if I have a dot of, for example, 8px and I want a space pf 20px >>> between the dots, I need a gap of 20/8 = 2.5 >>> >>> but as far as I can see, Mapserver doesnt like none-integer value for >>> gap. >>> >>> what should I do? :( >>> >>> 2010/1/12 thomas bonfort >> > >>> >>> gap in pixels = symbol->gap * style->size >>> >>> >>> On Tue, Jan 12, 2010 at 16:52, Oliver Christen >>> >> > wrote: >>> >>> GAP 20 is really giving unwanted result: >>> http://dev.camptocamp.com/~ochriste/tilecache9.png >>> >>> though using only one style instead of two seems to solve the >>> oval problem (but why ???) >>> style >>> symbol "dots" >>> size 8 >>> color 204 102 0 >>> outlinecolor 102 51 0 >>> end >>> I dont understand how GAP is supposed working: >>> with GAP 2, I had ~10px between dots, >>> with GAP 3, I had ~18px between dots, >>> with GAP 4, I had ~26px between dots >>> whats the logic ? >>> >>> ----- Original Message ----- >>> *From:* thomas bonfort >>> *To:* Oliver Christen >>> *Cc:* mapserver-users at lists.osgeo.org >>> >>> *Sent:* Tuesday, January 12, 2010 4:36 PM >>> *Subject:* Re: [mapserver-users] symbol circle (ellipse) >>> rendered not round but oval >>> >>> symbol >>> name dots >>> type ellipse >>> points 1 1 end >>> gap 20 >>> end >>> >>> ... >>> >>> style >>> symbol "dots" >>> size 8 >>> color r g b >>> outlinecolor r g b >>> end >>> >>> >>> >>> >>> On Tue, Jan 12, 2010 at 16:31, Oliver Christen >>> >> > wrote: >>> >>> Hi Thomas :) >>> thanks for the answer, but sadely it didnt solve my >>> problem: >>> here are a few tests I did: >>> using GAP 20 gave me really weird result: >>> http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png >>> >>> >>> using PATTERN 1 22 END gave me better result, but the >>> dot are still slightly oval: >>> >>> http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png >>> >>> >>> I wondered if the visual effect may have come from the >>> fact im pilling up two circle one over the other, but >>> even when trying to display only the outer or inner >>> circles, the circle are still slightly off: >>> >>> http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png >>> >>> >>> >>> http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png >>> >>> >>> (both at once >>> >>> http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png >>> >>> ) >>> any other idea? ^_^ >>> >>> ----- Original Message ----- >>> *From:* thomas bonfort >>> >>> *To:* Oliver Christen >>> >>> *Cc:* mapserver-users at lists.osgeo.org >>> >>> *Sent:* Tuesday, January 12, 2010 3:18 PM >>> *Subject:* Re: [mapserver-users] symbol circle >>> (ellipse) rendered not round but oval >>> >>> hi Oliver :) >>> >>> try with GAP 20 instead of STYLE 1 20 END (which is >>> deprecated btw, use PATTERN now) >>> >>> cheers, >>> thomas >>> >>> On Tue, Jan 12, 2010 at 15:04, Oliver Christen >>> >> > wrote: >>> >>> hello >>> >>> I have a weird problem with symbology. >>> Im rendering a line with dots, but the dots are >>> not round but slightly oval, see image >>> http://dev.camptocamp.com/~ochriste/tilecache.png >>> >>> >>> >>> Any idea what could be the cause ? >>> >>> Here is my symbol definition: >>> >>> SYMBOL >>> NAME "linie-gepunkt10" >>> TYPE ELLIPSE >>> POINTS >>> 1 1 >>> END >>> STYLE >>> 1 20 >>> END >>> FILLED TRUE >>> END >>> >>> and my layer's class definition: >>> >>> CLASS >>> EXPRESSION "3" >>> MAXSCALEDENOM 200001 >>> STYLE >>> SYMBOL "linie-gepunkt10" >>> SIZE 10 >>> COLOR 102 51 0 >>> END >>> STYLE >>> SYMBOL "linie-gepunkt10" >>> SIZE 8 >>> COLOR 204 102 0 >>> END >>> END >>> >>> and the map outputformat: >>> >>> OUTPUTFORMAT >>> NAME png >>> DRIVER "AGG/PNG" >>> MIMETYPE "image/png" >>> IMAGEMODE RGBA >>> EXTENSION "png" >>> FORMATOPTION "INTERLACE=OFF" >>> END >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> >>> >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> >>> >>> >> -- >> H?vard Tveite >> Department of Mathematical Sciences and Technology, UMB >> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY >> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ >> > > -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ From oliver.christen at camptocamp.com Thu Jan 14 00:27:48 2010 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Thu, 14 Jan 2010 09:27:48 +0100 Subject: [mapserver-users] symbol circle (ellipse) rendered not round but oval References: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> <5C90B99F1D0C4CA0967B92FBEDBCE59F@maunakea> <8106afb31001130108u3da74aa3i7fb1b727300687d2@mail.gmail.com> <4B4E0057.4020407@umb.no> <830CA97B19EB45F993FB4AAB7AE86131@maunakea> <4B4ED41A.7060702@umb.no> Message-ID: <782354625D0D4096B89D3E2052A4D4B8@maunakea> mmm, then whats the difference between "points 1 1 end" and "points 8 8 end" ? > Oliver Christen wrote: >> Thank you H?vard >> I see you have changed "points 1 1 end" by "points 8 8 end". >> Tell me if im wrong, but these values are only used to render the >> proportions of the elipse but not it's size, is that correct? >> so if I understand correctly, using larger values for the elipse >> width/height refine the rendering of the vectorised dot geometry ? > > The size of the symbols are determined by the values given > in the style of the class in the layer. So the magnitude > of the values used in the symbol definition only have > effect within the symbol definition (makes it possible to > use only integers, and makes it easier to do the > arithmetics :-) ). > The magnitude of the values used in the symbol definition > should have no bearing on the way the symbols are rendered > by Mapserver. > > H?vard > >> >> regards >> Oliver >> >>> Dear Oliver Christen, >>> >>> Using Mapserver 5.6.0 and AGG rendering, you can achieve what >>> you want by using a combination of ellipse size and gap size >>> in the symbol definition. >>> There is something strange in the calculations (a gap of >>> about half the ellipse size seems to produce touching symbols), >>> so in your case, you could try to use 8 as the diameter of the >>> ellipses, and 20 + 4 (half the ellipse size) = 24 as the >>> gap: >>> >>> symbol >>> name dots >>> type ellipse >>> points 8 8 end >>> gap 24 >>> end >>> >>> >>> H?vard >>> >>> Oliver Christen wrote: >>>> thank you Thomas >>>> >>>> so if I have a dot of, for example, 8px and I want a space pf 20px >>>> between the dots, I need a gap of 20/8 = 2.5 >>>> >>>> but as far as I can see, Mapserver doesnt like none-integer value for >>>> gap. >>>> >>>> what should I do? :( >>>> >>>> 2010/1/12 thomas bonfort >>> > >>>> >>>> gap in pixels = symbol->gap * style->size >>>> >>>> >>>> On Tue, Jan 12, 2010 at 16:52, Oliver Christen >>>> >>> > wrote: >>>> >>>> GAP 20 is really giving unwanted result: >>>> http://dev.camptocamp.com/~ochriste/tilecache9.png >>>> >>>> though using only one style instead of two seems to solve the >>>> oval problem (but why ???) >>>> style >>>> symbol "dots" >>>> size 8 >>>> color 204 102 0 >>>> outlinecolor 102 51 0 >>>> end >>>> I dont understand how GAP is supposed working: >>>> with GAP 2, I had ~10px between dots, >>>> with GAP 3, I had ~18px between dots, >>>> with GAP 4, I had ~26px between dots >>>> whats the logic ? >>>> >>>> ----- Original Message ----- >>>> *From:* thomas bonfort >>>> *To:* Oliver Christen >>>> >>>> *Cc:* mapserver-users at lists.osgeo.org >>>> >>>> *Sent:* Tuesday, January 12, 2010 4:36 PM >>>> *Subject:* Re: [mapserver-users] symbol circle (ellipse) >>>> rendered not round but oval >>>> >>>> symbol >>>> name dots >>>> type ellipse >>>> points 1 1 end >>>> gap 20 >>>> end >>>> >>>> ... >>>> >>>> style >>>> symbol "dots" >>>> size 8 >>>> color r g b >>>> outlinecolor r g b >>>> end >>>> >>>> >>>> >>>> >>>> On Tue, Jan 12, 2010 at 16:31, Oliver Christen >>>> >>> > wrote: >>>> >>>> Hi Thomas :) >>>> thanks for the answer, but sadely it didnt solve my >>>> problem: >>>> here are a few tests I did: >>>> using GAP 20 gave me really weird result: >>>> >>>> http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png >>>> >>>> >>>> using PATTERN 1 22 END gave me better result, but the >>>> dot are still slightly oval: >>>> >>>> http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png >>>> >>>> >>>> I wondered if the visual effect may have come from the >>>> fact im pilling up two circle one over the other, but >>>> even when trying to display only the outer or inner >>>> circles, the circle are still slightly off: >>>> >>>> http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png >>>> >>>> >>>> >>>> http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png >>>> >>>> >>>> (both at once >>>> >>>> http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png >>>> >>>> ) >>>> any other idea? ^_^ >>>> >>>> ----- Original Message ----- >>>> *From:* thomas bonfort >>>> >>>> *To:* Oliver Christen >>>> >>>> *Cc:* mapserver-users at lists.osgeo.org >>>> >>>> *Sent:* Tuesday, January 12, 2010 3:18 PM >>>> *Subject:* Re: [mapserver-users] symbol circle >>>> (ellipse) rendered not round but oval >>>> >>>> hi Oliver :) >>>> >>>> try with GAP 20 instead of STYLE 1 20 END (which is >>>> deprecated btw, use PATTERN now) >>>> >>>> cheers, >>>> thomas >>>> >>>> On Tue, Jan 12, 2010 at 15:04, Oliver Christen >>>> >>> > wrote: >>>> >>>> hello >>>> >>>> I have a weird problem with symbology. >>>> Im rendering a line with dots, but the dots are >>>> not round but slightly oval, see image >>>> >>>> http://dev.camptocamp.com/~ochriste/tilecache.png >>>> >>>> >>>> >>>> Any idea what could be the cause ? >>>> >>>> Here is my symbol definition: >>>> >>>> SYMBOL >>>> NAME "linie-gepunkt10" >>>> TYPE ELLIPSE >>>> POINTS >>>> 1 1 >>>> END >>>> STYLE >>>> 1 20 >>>> END >>>> FILLED TRUE >>>> END >>>> >>>> and my layer's class definition: >>>> >>>> CLASS >>>> EXPRESSION "3" >>>> MAXSCALEDENOM 200001 >>>> STYLE >>>> SYMBOL "linie-gepunkt10" >>>> SIZE 10 >>>> COLOR 102 51 0 >>>> END >>>> STYLE >>>> SYMBOL "linie-gepunkt10" >>>> SIZE 8 >>>> COLOR 204 102 0 >>>> END >>>> END >>>> >>>> and the map outputformat: >>>> >>>> OUTPUTFORMAT >>>> NAME png >>>> DRIVER "AGG/PNG" >>>> MIMETYPE "image/png" >>>> IMAGEMODE RGBA >>>> EXTENSION "png" >>>> FORMATOPTION "INTERLACE=OFF" >>>> END >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> >>>> >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>>> >>>> >>>> >>> -- >>> H?vard Tveite >>> Department of Mathematical Sciences and Technology, UMB >>> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY >>> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ >>> >> >> > > -- > H?vard Tveite > Department of Mathematical Sciences and Technology, UMB > Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY > Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ > From beyhan at deprem.gov.tr Thu Jan 14 01:15:23 2010 From: beyhan at deprem.gov.tr (Murat BEYHAN) Date: Thu, 14 Jan 2010 11:15:23 +0200 Subject: [mapserver-users] how can I associate MySql and Gdal In-Reply-To: <20100113130709.M9941@deprem.gov.tr> References: <20100113130709.M9941@deprem.gov.tr> Message-ID: <20100114091441.M3752@deprem.gov.tr> Hi friends, I have installed mandriva 2010 and then installed Mysql mapserver and gdal which are coming with Mandriva one CD. But I could not read data from MySql database by using ogr because of the supported formats. How could I associate MySql with gdal in order to draw map using data stored in MySql Please help me the formats supported by gdal as follows murat ogrinfo --formats Supported Formats: -> "GRASS" (readonly) -> "ESRI Shapefile" (read/write) -> "MapInfo File" (read/write) -> "UK .NTF" (readonly) -> "SDTS" (readonly) -> "TIGER" (read/write) -> "S57" (read/write) -> "DGN" (read/write) -> "VRT" (readonly) -> "REC" (readonly) -> "Memory" (read/write) -> "BNA" (read/write) -> "CSV" (read/write) -> "GML" (read/write) -> "GPX" (read/write) -> "KML" (read/write) -> "GeoJSON" (read/write) -> "GMT" (read/write) -> "SQLite" (read/write) -> "ODBC" (read/write) -> "PGeo" (readonly) -> "OGDI" (readonly) -> "PostgreSQL" (read/write) -> "XPlane" (readonly) -> "AVCBin" (readonly) -> "AVCE00" (readonly) -> "Geoconcept" (read/write) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From havard.tveite at umb.no Thu Jan 14 03:52:17 2010 From: havard.tveite at umb.no (Havard Tveite) Date: Thu, 14 Jan 2010 12:52:17 +0100 Subject: [mapserver-users] symbol circle (ellipse) rendered not round but oval In-Reply-To: <782354625D0D4096B89D3E2052A4D4B8@maunakea> References: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> <5C90B99F1D0C4CA0967B92FBEDBCE59F@maunakea> <8106afb31001130108u3da74aa3i7fb1b727300687d2@mail.gmail.com> <4B4E0057.4020407@umb.no> <830CA97B19EB45F993FB4AAB7AE86131@maunakea> <4B4ED41A.7060702@umb.no> <782354625D0D4096B89D3E2052A4D4B8@maunakea> Message-ID: <4B4F0571.6020804@umb.no> Oliver Christen wrote: > mmm, then whats the difference between "points 1 1 end" and "points 8 8 end" > ? For an ELLIPSE symbol definition without GAP, there is no difference. The bounding box of the symbol will be used when rendering the symbol. The height of the symbol bounding box on the map will be the size given in the STYLE of the CLASS in the LAYER. I have found this practice very convenient when creating complex vector symbols. When you have an ELLIPSE symbol definition with a GAP specified, the relationship between the values used in POINTS and GAP is very important. For the current version of Mapserver and AGG, if you set SIZE in STYLE to 8, and combine that with the symbol definition I suggested (points 8 8, gap 24), I think you would get a reasonable result. H?vard >> Oliver Christen wrote: >>> Thank you H?vard >>> I see you have changed "points 1 1 end" by "points 8 8 end". >>> Tell me if im wrong, but these values are only used to render the >>> proportions of the elipse but not it's size, is that correct? >>> so if I understand correctly, using larger values for the elipse >>> width/height refine the rendering of the vectorised dot geometry ? >> The size of the symbols are determined by the values given >> in the style of the class in the layer. So the magnitude >> of the values used in the symbol definition only have >> effect within the symbol definition (makes it possible to >> use only integers, and makes it easier to do the >> arithmetics :-) ). >> The magnitude of the values used in the symbol definition >> should have no bearing on the way the symbols are rendered >> by Mapserver. >> >> H?vard >> >>> regards >>> Oliver >>> >>>> Dear Oliver Christen, >>>> >>>> Using Mapserver 5.6.0 and AGG rendering, you can achieve what >>>> you want by using a combination of ellipse size and gap size >>>> in the symbol definition. >>>> There is something strange in the calculations (a gap of >>>> about half the ellipse size seems to produce touching symbols), >>>> so in your case, you could try to use 8 as the diameter of the >>>> ellipses, and 20 + 4 (half the ellipse size) = 24 as the >>>> gap: >>>> >>>> symbol >>>> name dots >>>> type ellipse >>>> points 8 8 end >>>> gap 24 >>>> end >>>> >>>> >>>> H?vard >>>> >>>> Oliver Christen wrote: >>>>> thank you Thomas >>>>> >>>>> so if I have a dot of, for example, 8px and I want a space pf 20px >>>>> between the dots, I need a gap of 20/8 = 2.5 >>>>> >>>>> but as far as I can see, Mapserver doesnt like none-integer value for >>>>> gap. >>>>> >>>>> what should I do? :( >>>>> >>>>> 2010/1/12 thomas bonfort >>>> > >>>>> >>>>> gap in pixels = symbol->gap * style->size >>>>> >>>>> >>>>> On Tue, Jan 12, 2010 at 16:52, Oliver Christen >>>>> >>>> > wrote: >>>>> >>>>> GAP 20 is really giving unwanted result: >>>>> http://dev.camptocamp.com/~ochriste/tilecache9.png >>>>> >>>>> though using only one style instead of two seems to solve the >>>>> oval problem (but why ???) >>>>> style >>>>> symbol "dots" >>>>> size 8 >>>>> color 204 102 0 >>>>> outlinecolor 102 51 0 >>>>> end >>>>> I dont understand how GAP is supposed working: >>>>> with GAP 2, I had ~10px between dots, >>>>> with GAP 3, I had ~18px between dots, >>>>> with GAP 4, I had ~26px between dots >>>>> whats the logic ? >>>>> >>>>> ----- Original Message ----- >>>>> *From:* thomas bonfort >>>>> *To:* Oliver Christen >>>>> >>>>> *Cc:* mapserver-users at lists.osgeo.org >>>>> >>>>> *Sent:* Tuesday, January 12, 2010 4:36 PM >>>>> *Subject:* Re: [mapserver-users] symbol circle (ellipse) >>>>> rendered not round but oval >>>>> >>>>> symbol >>>>> name dots >>>>> type ellipse >>>>> points 1 1 end >>>>> gap 20 >>>>> end >>>>> >>>>> ... >>>>> >>>>> style >>>>> symbol "dots" >>>>> size 8 >>>>> color r g b >>>>> outlinecolor r g b >>>>> end >>>>> >>>>> >>>>> >>>>> >>>>> On Tue, Jan 12, 2010 at 16:31, Oliver Christen >>>>> >>>> > wrote: >>>>> >>>>> Hi Thomas :) >>>>> thanks for the answer, but sadely it didnt solve my >>>>> problem: >>>>> here are a few tests I did: >>>>> using GAP 20 gave me really weird result: >>>>> >>>>> http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png >>>>> >>>>> >>>>> using PATTERN 1 22 END gave me better result, but the >>>>> dot are still slightly oval: >>>>> >>>>> http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png >>>>> >>>>> >>>>> I wondered if the visual effect may have come from the >>>>> fact im pilling up two circle one over the other, but >>>>> even when trying to display only the outer or inner >>>>> circles, the circle are still slightly off: >>>>> >>>>> http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png >>>>> >>>>> >>>>> >>>>> http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png >>>>> >>>>> >>>>> (both at once >>>>> >>>>> http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png >>>>> >>>>> ) >>>>> any other idea? ^_^ >>>>> >>>>> ----- Original Message ----- >>>>> *From:* thomas bonfort >>>>> >>>>> *To:* Oliver Christen >>>>> >>>>> *Cc:* mapserver-users at lists.osgeo.org >>>>> >>>>> *Sent:* Tuesday, January 12, 2010 3:18 PM >>>>> *Subject:* Re: [mapserver-users] symbol circle >>>>> (ellipse) rendered not round but oval >>>>> >>>>> hi Oliver :) >>>>> >>>>> try with GAP 20 instead of STYLE 1 20 END (which is >>>>> deprecated btw, use PATTERN now) >>>>> >>>>> cheers, >>>>> thomas >>>>> >>>>> On Tue, Jan 12, 2010 at 15:04, Oliver Christen >>>>> >>>> > wrote: >>>>> >>>>> hello >>>>> >>>>> I have a weird problem with symbology. >>>>> Im rendering a line with dots, but the dots are >>>>> not round but slightly oval, see image >>>>> >>>>> http://dev.camptocamp.com/~ochriste/tilecache.png >>>>> >>>>> >>>>> >>>>> Any idea what could be the cause ? >>>>> >>>>> Here is my symbol definition: >>>>> >>>>> SYMBOL >>>>> NAME "linie-gepunkt10" >>>>> TYPE ELLIPSE >>>>> POINTS >>>>> 1 1 >>>>> END >>>>> STYLE >>>>> 1 20 >>>>> END >>>>> FILLED TRUE >>>>> END >>>>> >>>>> and my layer's class definition: >>>>> >>>>> CLASS >>>>> EXPRESSION "3" >>>>> MAXSCALEDENOM 200001 >>>>> STYLE >>>>> SYMBOL "linie-gepunkt10" >>>>> SIZE 10 >>>>> COLOR 102 51 0 >>>>> END >>>>> STYLE >>>>> SYMBOL "linie-gepunkt10" >>>>> SIZE 8 >>>>> COLOR 204 102 0 >>>>> END >>>>> END >>>>> >>>>> and the map outputformat: >>>>> >>>>> OUTPUTFORMAT >>>>> NAME png >>>>> DRIVER "AGG/PNG" >>>>> MIMETYPE "image/png" >>>>> IMAGEMODE RGBA >>>>> EXTENSION "png" >>>>> FORMATOPTION "INTERLACE=OFF" >>>>> END >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> >>>>> >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>>>> >>>>> >>>>> >>>> -- >>>> H?vard Tveite >>>> Department of Mathematical Sciences and Technology, UMB >>>> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY >>>> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ >>>> >>> >> -- >> H?vard Tveite >> Department of Mathematical Sciences and Technology, UMB >> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY >> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ >> > > -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ From sandeepk.tech at gmail.com Thu Jan 14 04:21:23 2010 From: sandeepk.tech at gmail.com (Sandeep Kumar Chauhan) Date: Thu, 14 Jan 2010 04:21:23 -0800 (PST) Subject: [mapserver-users] 5.6.1 Postgis problem Message-ID: <1263471683507-4392177.post@n2.nabble.com> i have problem in 5.6.1 for shape index and layeobj getFeature in case of postgis but no problem in 5.4.1 i think problem in mappostgis.c file of 5.6.1 -- View this message in context: http://n2.nabble.com/5-6-1-Postgis-problem-tp4392177p4392177.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Thu Jan 14 06:11:13 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 14 Jan 2010 09:11:13 -0500 Subject: [mapserver-users] symbol circle (ellipse) rendered not round but oval In-Reply-To: <830CA97B19EB45F993FB4AAB7AE86131@maunakea> References: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> <5C90B99F1D0C4CA0967B92FBEDBCE59F@maunakea> <8106afb31001130108u3da74aa3i7fb1b727300687d2@mail.gmail.com> <4B4E0057.4020407@umb.no> <830CA97B19EB45F993FB4AAB7AE86131@maunakea> Message-ID: <4B4F2601.1070700@swoodbridge.com> Hi guys, I haven't followed this whole thread but I think it should be better documented so people can understand how to use this. Please write a doc bug and put as much information in the bug about how this works as you have been able to discover. Thanks, -Steve W Oliver Christen wrote: > > Thank you H?vard > I see you have changed "points 1 1 end" by "points 8 8 end". > Tell me if im wrong, but these values are only used to render the > proportions of the elipse but not it's size, is that correct? > so if I understand correctly, using larger values for the elipse > width/height refine the rendering of the vectorised dot geometry ? > > regards > Oliver > >> Dear Oliver Christen, >> >> Using Mapserver 5.6.0 and AGG rendering, you can achieve what >> you want by using a combination of ellipse size and gap size >> in the symbol definition. >> There is something strange in the calculations (a gap of >> about half the ellipse size seems to produce touching symbols), >> so in your case, you could try to use 8 as the diameter of the >> ellipses, and 20 + 4 (half the ellipse size) = 24 as the >> gap: >> >> symbol >> name dots >> type ellipse >> points 8 8 end >> gap 24 >> end >> >> >> H?vard >> >> Oliver Christen wrote: >>> thank you Thomas >>> >>> so if I have a dot of, for example, 8px and I want a space pf 20px >>> between the dots, I need a gap of 20/8 = 2.5 >>> >>> but as far as I can see, Mapserver doesnt like none-integer value for >>> gap. >>> >>> what should I do? :( >>> >>> 2010/1/12 thomas bonfort >> > >>> >>> gap in pixels = symbol->gap * style->size >>> >>> >>> On Tue, Jan 12, 2010 at 16:52, Oliver Christen >>> >> > wrote: >>> >>> GAP 20 is really giving unwanted result: >>> http://dev.camptocamp.com/~ochriste/tilecache9.png >>> >>> though using only one style instead of two seems to solve the >>> oval problem (but why ???) >>> style >>> symbol "dots" >>> size 8 >>> color 204 102 0 >>> outlinecolor 102 51 0 >>> end >>> I dont understand how GAP is supposed working: >>> with GAP 2, I had ~10px between dots, >>> with GAP 3, I had ~18px between dots, >>> with GAP 4, I had ~26px between dots >>> whats the logic ? >>> >>> ----- Original Message ----- >>> *From:* thomas bonfort >>> *To:* Oliver Christen >>> >>> *Cc:* mapserver-users at lists.osgeo.org >>> >>> *Sent:* Tuesday, January 12, 2010 4:36 PM >>> *Subject:* Re: [mapserver-users] symbol circle (ellipse) >>> rendered not round but oval >>> >>> symbol >>> name dots >>> type ellipse >>> points 1 1 end >>> gap 20 >>> end >>> >>> ... >>> >>> style >>> symbol "dots" >>> size 8 >>> color r g b >>> outlinecolor r g b >>> end >>> >>> >>> >>> >>> On Tue, Jan 12, 2010 at 16:31, Oliver Christen >>> >> > wrote: >>> >>> Hi Thomas :) >>> thanks for the answer, but sadely it didnt solve my >>> problem: >>> here are a few tests I did: >>> using GAP 20 gave me really weird result: >>> >>> http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png >>> >>> >>> using PATTERN 1 22 END gave me better result, but the >>> dot are still slightly oval: >>> >>> http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png >>> >>> >>> I wondered if the visual effect may have come from the >>> fact im pilling up two circle one over the other, but >>> even when trying to display only the outer or inner >>> circles, the circle are still slightly off: >>> >>> http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png >>> >>> >>> >>> http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png >>> >>> >>> (both at once >>> >>> http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png >>> >>> ) >>> any other idea? ^_^ >>> >>> ----- Original Message ----- >>> *From:* thomas bonfort >>> >>> *To:* Oliver Christen >>> >>> *Cc:* mapserver-users at lists.osgeo.org >>> >>> *Sent:* Tuesday, January 12, 2010 3:18 PM >>> *Subject:* Re: [mapserver-users] symbol circle >>> (ellipse) rendered not round but oval >>> >>> hi Oliver :) >>> >>> try with GAP 20 instead of STYLE 1 20 END (which is >>> deprecated btw, use PATTERN now) >>> >>> cheers, >>> thomas >>> >>> On Tue, Jan 12, 2010 at 15:04, Oliver Christen >>> >> > wrote: >>> >>> hello >>> >>> I have a weird problem with symbology. >>> Im rendering a line with dots, but the dots are >>> not round but slightly oval, see image >>> >>> http://dev.camptocamp.com/~ochriste/tilecache.png >>> >>> >>> >>> Any idea what could be the cause ? >>> >>> Here is my symbol definition: >>> >>> SYMBOL >>> NAME "linie-gepunkt10" >>> TYPE ELLIPSE >>> POINTS >>> 1 1 >>> END >>> STYLE >>> 1 20 >>> END >>> FILLED TRUE >>> END >>> >>> and my layer's class definition: >>> >>> CLASS >>> EXPRESSION "3" >>> MAXSCALEDENOM 200001 >>> STYLE >>> SYMBOL "linie-gepunkt10" >>> SIZE 10 >>> COLOR 102 51 0 >>> END >>> STYLE >>> SYMBOL "linie-gepunkt10" >>> SIZE 8 >>> COLOR 204 102 0 >>> END >>> END >>> >>> and the map outputformat: >>> >>> OUTPUTFORMAT >>> NAME png >>> DRIVER "AGG/PNG" >>> MIMETYPE "image/png" >>> IMAGEMODE RGBA >>> EXTENSION "png" >>> FORMATOPTION "INTERLACE=OFF" >>> END >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> >>> >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> >>> >>> >> >> -- >> H?vard Tveite >> Department of Mathematical Sciences and Technology, UMB >> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY >> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From oliver.christen at camptocamp.com Thu Jan 14 06:41:39 2010 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Thu, 14 Jan 2010 15:41:39 +0100 Subject: [mapserver-users] symbol circle (ellipse) rendered not round but oval References: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> <5C90B99F1D0C4CA0967B92FBEDBCE59F@maunakea> <8106afb31001130108u3da74aa3i7fb1b727300687d2@mail.gmail.com> <4B4E0057.4020407@umb.no> <830CA97B19EB45F993FB4AAB7AE86131@maunakea> <4B4ED41A.7060702@umb.no> <782354625D0D4096B89D3E2052A4D4B8@maunakea> <4B4F0571.6020804@umb.no> Message-ID: <50D373CCBADB4904B47949DBEDB27292@maunakea> Thank you for the explanation. Im still trying to figure out how to calculate exactly the GAP and ellipse POINT depending on the symbol's size and the distance between the points wanted. empirically I have come with the formula: distance = (GAP * SIZE * 0.75) / POINTS seems weird but at least I get some way to estimate the different values to use for GAP and POINTS > Oliver Christen wrote: >> mmm, then whats the difference between "points 1 1 end" and "points 8 8 >> end" ? > > For an ELLIPSE symbol definition without GAP, there is no > difference. > The bounding box of the symbol will be used when rendering > the symbol. The height of the symbol bounding box on the > map will be the size given in the STYLE of the CLASS in > the LAYER. > I have found this practice very convenient when creating > complex vector symbols. > > When you have an ELLIPSE symbol definition with a GAP > specified, the relationship between the values used in > POINTS and GAP is very important. > > For the current version of Mapserver and AGG, if you set > SIZE in STYLE to 8, and combine that with the symbol > definition I suggested (points 8 8, gap 24), I think you > would get a reasonable result. > > H?vard > >>> Oliver Christen wrote: >>>> Thank you H?vard >>>> I see you have changed "points 1 1 end" by "points 8 8 end". >>>> Tell me if im wrong, but these values are only used to render the >>>> proportions of the elipse but not it's size, is that correct? >>>> so if I understand correctly, using larger values for the elipse >>>> width/height refine the rendering of the vectorised dot geometry ? >>> The size of the symbols are determined by the values given >>> in the style of the class in the layer. So the magnitude >>> of the values used in the symbol definition only have >>> effect within the symbol definition (makes it possible to >>> use only integers, and makes it easier to do the >>> arithmetics :-) ). >>> The magnitude of the values used in the symbol definition >>> should have no bearing on the way the symbols are rendered >>> by Mapserver. >>> >>> H?vard >>> >>>> regards >>>> Oliver >>>> >>>>> Dear Oliver Christen, >>>>> >>>>> Using Mapserver 5.6.0 and AGG rendering, you can achieve what >>>>> you want by using a combination of ellipse size and gap size >>>>> in the symbol definition. >>>>> There is something strange in the calculations (a gap of >>>>> about half the ellipse size seems to produce touching symbols), >>>>> so in your case, you could try to use 8 as the diameter of the >>>>> ellipses, and 20 + 4 (half the ellipse size) = 24 as the >>>>> gap: >>>>> >>>>> symbol >>>>> name dots >>>>> type ellipse >>>>> points 8 8 end >>>>> gap 24 >>>>> end >>>>> >>>>> >>>>> H?vard >>>>> >>>>> Oliver Christen wrote: >>>>>> thank you Thomas >>>>>> >>>>>> so if I have a dot of, for example, 8px and I want a space pf 20px >>>>>> between the dots, I need a gap of 20/8 = 2.5 >>>>>> >>>>>> but as far as I can see, Mapserver doesnt like none-integer value for >>>>>> gap. >>>>>> >>>>>> what should I do? :( >>>>>> >>>>>> 2010/1/12 thomas bonfort >>>>> > >>>>>> >>>>>> gap in pixels = symbol->gap * style->size >>>>>> >>>>>> >>>>>> On Tue, Jan 12, 2010 at 16:52, Oliver Christen >>>>>> >>>>> > wrote: >>>>>> >>>>>> GAP 20 is really giving unwanted result: >>>>>> http://dev.camptocamp.com/~ochriste/tilecache9.png >>>>>> >>>>>> though using only one style instead of two seems to solve >>>>>> the >>>>>> oval problem (but why ???) >>>>>> style >>>>>> symbol "dots" >>>>>> size 8 >>>>>> color 204 102 0 >>>>>> outlinecolor 102 51 0 >>>>>> end >>>>>> I dont understand how GAP is supposed working: >>>>>> with GAP 2, I had ~10px between dots, >>>>>> with GAP 3, I had ~18px between dots, >>>>>> with GAP 4, I had ~26px between dots >>>>>> whats the logic ? >>>>>> >>>>>> ----- Original Message ----- >>>>>> *From:* thomas bonfort >>>>>> *To:* Oliver Christen >>>>>> >>>>>> *Cc:* mapserver-users at lists.osgeo.org >>>>>> >>>>>> *Sent:* Tuesday, January 12, 2010 4:36 PM >>>>>> *Subject:* Re: [mapserver-users] symbol circle (ellipse) >>>>>> rendered not round but oval >>>>>> >>>>>> symbol >>>>>> name dots >>>>>> type ellipse >>>>>> points 1 1 end >>>>>> gap 20 >>>>>> end >>>>>> >>>>>> ... >>>>>> >>>>>> style >>>>>> symbol "dots" >>>>>> size 8 >>>>>> color r g b >>>>>> outlinecolor r g b >>>>>> end >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Tue, Jan 12, 2010 at 16:31, Oliver Christen >>>>>> >>>>> > wrote: >>>>>> >>>>>> Hi Thomas :) >>>>>> thanks for the answer, but sadely it didnt solve my >>>>>> problem: >>>>>> here are a few tests I did: >>>>>> using GAP 20 gave me really weird result: >>>>>> >>>>>> http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png >>>>>> >>>>>> >>>>>> using PATTERN 1 22 END gave me better result, but >>>>>> the >>>>>> dot are still slightly oval: >>>>>> >>>>>> http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png >>>>>> >>>>>> >>>>>> I wondered if the visual effect may have come from >>>>>> the >>>>>> fact im pilling up two circle one over the other, but >>>>>> even when trying to display only the outer or inner >>>>>> circles, the circle are still slightly off: >>>>>> >>>>>> http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png >>>>>> >>>>>> >>>>>> >>>>>> http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png >>>>>> >>>>>> >>>>>> (both at once >>>>>> >>>>>> http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png >>>>>> >>>>>> ) >>>>>> any other idea? ^_^ >>>>>> >>>>>> ----- Original Message ----- >>>>>> *From:* thomas bonfort >>>>>> >>>>>> *To:* Oliver Christen >>>>>> >>>>>> *Cc:* mapserver-users at lists.osgeo.org >>>>>> >>>>>> *Sent:* Tuesday, January 12, 2010 3:18 PM >>>>>> *Subject:* Re: [mapserver-users] symbol circle >>>>>> (ellipse) rendered not round but oval >>>>>> >>>>>> hi Oliver :) >>>>>> >>>>>> try with GAP 20 instead of STYLE 1 20 END (which >>>>>> is >>>>>> deprecated btw, use PATTERN now) >>>>>> >>>>>> cheers, >>>>>> thomas >>>>>> >>>>>> On Tue, Jan 12, 2010 at 15:04, Oliver Christen >>>>>> >>>>> > wrote: >>>>>> >>>>>> hello >>>>>> >>>>>> I have a weird problem with symbology. >>>>>> Im rendering a line with dots, but the dots >>>>>> are >>>>>> not round but slightly oval, see image >>>>>> >>>>>> http://dev.camptocamp.com/~ochriste/tilecache.png >>>>>> >>>>>> >>>>>> >>>>>> Any idea what could be the cause ? >>>>>> >>>>>> Here is my symbol definition: >>>>>> >>>>>> SYMBOL >>>>>> NAME "linie-gepunkt10" >>>>>> TYPE ELLIPSE >>>>>> POINTS >>>>>> 1 1 >>>>>> END >>>>>> STYLE >>>>>> 1 20 >>>>>> END >>>>>> FILLED TRUE >>>>>> END >>>>>> >>>>>> and my layer's class definition: >>>>>> >>>>>> CLASS >>>>>> EXPRESSION "3" >>>>>> MAXSCALEDENOM 200001 >>>>>> STYLE >>>>>> SYMBOL "linie-gepunkt10" >>>>>> SIZE 10 >>>>>> COLOR 102 51 0 >>>>>> END >>>>>> STYLE >>>>>> SYMBOL "linie-gepunkt10" >>>>>> SIZE 8 >>>>>> COLOR 204 102 0 >>>>>> END >>>>>> END >>>>>> >>>>>> and the map outputformat: >>>>>> >>>>>> OUTPUTFORMAT >>>>>> NAME png >>>>>> DRIVER "AGG/PNG" >>>>>> MIMETYPE "image/png" >>>>>> IMAGEMODE RGBA >>>>>> EXTENSION "png" >>>>>> FORMATOPTION "INTERLACE=OFF" >>>>>> END >>>>>> >>>>>> _______________________________________________ >>>>>> mapserver-users mailing list >>>>>> mapserver-users at lists.osgeo.org >>>>>> >>>>>> >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> -- >>>>> H?vard Tveite >>>>> Department of Mathematical Sciences and Technology, UMB >>>>> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY >>>>> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ >>>>> >>>> >>> -- >>> H?vard Tveite >>> Department of Mathematical Sciences and Technology, UMB >>> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY >>> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ >>> >> >> > > -- > H?vard Tveite > Department of Mathematical Sciences and Technology, UMB > Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY > Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ > From karlos036 at yahoo.com Thu Jan 14 06:44:57 2010 From: karlos036 at yahoo.com (karlos036) Date: Thu, 14 Jan 2010 06:44:57 -0800 (PST) Subject: [mapserver-users] how can I associate MySql and Gdal In-Reply-To: <20100113130709.M9941@deprem.gov.tr> References: <20100113130709.M9941@deprem.gov.tr> Message-ID: <1263480297279-4392920.post@n2.nabble.com> Murat, You'll need to get the MapServer source and compile it yourself in order to add MySql support. Look at the 5.4.2 documentation (http://mapserver.org/installation/unix.html) for instructions. In order to compile MapServer, you'll need to have the MySql db, client and dev packages installed. You can use whatever package manager you have to add any missing component. I've did some testing with MySql. I converted all of the world country shapefiles (.shp) to sql import scripts and then imported them into MySql (I have instructions on how to do this archived somewhere). Displaying simple geometries worked OK, but complex shapes such as Argentina or Chile (lots of small vectors define the country outline) were very slow to load even when indexed carefully. I found that PostgesSQL was much faster and better supported if you are planning on storing your shapefiles within a database in order to query and then display them. If you are just storing data points, then MySql works fine. Cheers, Karlos Murat Beyhan wrote: > > Hi friends, > > I have installed mandriva 2010 and then > installed Mysql mapserver and gdal which are coming with Mandriva one CD. > But I could not read data from MySql database by using ogr because of the > supported formats. > How could I associate MySql with gdal in order to draw map using data > stored > in MySql > Please help me > the formats supported by gdal as follows > murat > > ogrinfo --formats > Supported Formats: > -> "GRASS" (readonly) > -> "ESRI Shapefile" (read/write) > -> "MapInfo File" (read/write) > -> "UK .NTF" (readonly) > -> "SDTS" (readonly) > -> "TIGER" (read/write) > -> "S57" (read/write) > -> "DGN" (read/write) > -> "VRT" (readonly) > -> "REC" (readonly) > -> "Memory" (read/write) > -> "BNA" (read/write) > -> "CSV" (read/write) > -> "GML" (read/write) > -> "GPX" (read/write) > -> "KML" (read/write) > -> "GeoJSON" (read/write) > -> "GMT" (read/write) > -> "SQLite" (read/write) > -> "ODBC" (read/write) > -> "PGeo" (readonly) > -> "OGDI" (readonly) > -> "PostgreSQL" (read/write) > -> "XPlane" (readonly) > -> "AVCBin" (readonly) > -> "AVCE00" (readonly) > -> "Geoconcept" (read/write) > > > -- > 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 > > -- View this message in context: http://n2.nabble.com/how-can-I-associate-MySql-and-Gdal-tp4385959p4392920.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Thu Jan 14 06:45:30 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 14 Jan 2010 09:45:30 -0500 Subject: [mapserver-users] 5.6.1 Postgis problem In-Reply-To: <1263471683507-4392177.post@n2.nabble.com> References: <1263471683507-4392177.post@n2.nabble.com> Message-ID: <4B4F2E0A.6070804@swoodbridge.com> Sandeep Kumar Chauhan wrote: > i have problem in 5.6.1 for shape index and layeobj getFeature in case of > postgis but no problem in 5.4.1 > i think problem in mappostgis.c file of 5.6.1 Hi Sandeep, Thanks for the report. It would be very helpful if you could provide more detail on this? What are the symptoms? How can we reproduce this problem? Why do you think it is a problem in mappostgis.c? where do you think the problem is in this file? etc. Thanks, -Steve W From luigi.cardeles at gmail.com Thu Jan 14 07:07:33 2010 From: luigi.cardeles at gmail.com (Luigi Castro Cardeles) Date: Thu, 14 Jan 2010 13:07:33 -0200 Subject: [mapserver-users] how can I associate MySql and Gdal In-Reply-To: <20100114091441.M3752@deprem.gov.tr> References: <20100113130709.M9941@deprem.gov.tr> <20100114091441.M3752@deprem.gov.tr> Message-ID: Hi, you can use http://www.gdal.org/ogr/drv_vrt.html []'s Luigi Castro Cardeles 2010/1/14 Murat BEYHAN > > > > Hi friends, > > I have installed mandriva 2010 and then > installed Mysql mapserver and gdal which are coming with Mandriva one CD. > But I could not read data from MySql database by using ogr because of the > supported formats. > How could I associate MySql with gdal in order to draw map using data > stored > in MySql > Please help me > the formats supported by gdal as follows > murat > > ogrinfo --formats > Supported Formats: > -> "GRASS" (readonly) > -> "ESRI Shapefile" (read/write) > -> "MapInfo File" (read/write) > -> "UK .NTF" (readonly) > -> "SDTS" (readonly) > -> "TIGER" (read/write) > -> "S57" (read/write) > -> "DGN" (read/write) > -> "VRT" (readonly) > -> "REC" (readonly) > -> "Memory" (read/write) > -> "BNA" (read/write) > -> "CSV" (read/write) > -> "GML" (read/write) > -> "GPX" (read/write) > -> "KML" (read/write) > -> "GeoJSON" (read/write) > -> "GMT" (read/write) > -> "SQLite" (read/write) > -> "ODBC" (read/write) > -> "PGeo" (readonly) > -> "OGDI" (readonly) > -> "PostgreSQL" (read/write) > -> "XPlane" (readonly) > -> "AVCBin" (readonly) > -> "AVCE00" (readonly) > -> "Geoconcept" (read/write) > > > > > -- > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From oliver.christen at camptocamp.com Thu Jan 14 07:20:36 2010 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Thu, 14 Jan 2010 16:20:36 +0100 Subject: [mapserver-users] symbol circle (ellipse) rendered not round but oval References: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> <5C90B99F1D0C4CA0967B92FBEDBCE59F@maunakea> <8106afb31001130108u3da74aa3i7fb1b727300687d2@mail.gmail.com> <4B4E0057.4020407@umb.no> <830CA97B19EB45F993FB4AAB7AE86131@maunakea> <4B4F2601.1070700@swoodbridge.com> Message-ID: Hi Steve I followed your suggestion and opened a documentation bug thanks Oliver > Hi guys, > > I haven't followed this whole thread but I think it should be better > documented so people can understand how to use this. Please write a doc > bug and put as much information in the bug about how this works as you > have been able to discover. > > Thanks, > -Steve W > > Oliver Christen wrote: >> >> Thank you H?vard >> I see you have changed "points 1 1 end" by "points 8 8 end". >> Tell me if im wrong, but these values are only used to render the >> proportions of the elipse but not it's size, is that correct? >> so if I understand correctly, using larger values for the elipse >> width/height refine the rendering of the vectorised dot geometry ? >> >> regards >> Oliver >> >>> Dear Oliver Christen, >>> >>> Using Mapserver 5.6.0 and AGG rendering, you can achieve what >>> you want by using a combination of ellipse size and gap size >>> in the symbol definition. >>> There is something strange in the calculations (a gap of >>> about half the ellipse size seems to produce touching symbols), >>> so in your case, you could try to use 8 as the diameter of the >>> ellipses, and 20 + 4 (half the ellipse size) = 24 as the >>> gap: >>> >>> symbol >>> name dots >>> type ellipse >>> points 8 8 end >>> gap 24 >>> end >>> >>> >>> H?vard >>> >>> Oliver Christen wrote: >>>> thank you Thomas >>>> >>>> so if I have a dot of, for example, 8px and I want a space pf 20px >>>> between the dots, I need a gap of 20/8 = 2.5 >>>> >>>> but as far as I can see, Mapserver doesnt like none-integer value for >>>> gap. >>>> >>>> what should I do? :( >>>> >>>> 2010/1/12 thomas bonfort >>> > >>>> >>>> gap in pixels = symbol->gap * style->size >>>> >>>> >>>> On Tue, Jan 12, 2010 at 16:52, Oliver Christen >>>> >>> > wrote: >>>> >>>> GAP 20 is really giving unwanted result: >>>> http://dev.camptocamp.com/~ochriste/tilecache9.png >>>> >>>> though using only one style instead of two seems to solve the >>>> oval problem (but why ???) >>>> style >>>> symbol "dots" >>>> size 8 >>>> color 204 102 0 >>>> outlinecolor 102 51 0 >>>> end >>>> I dont understand how GAP is supposed working: >>>> with GAP 2, I had ~10px between dots, >>>> with GAP 3, I had ~18px between dots, >>>> with GAP 4, I had ~26px between dots >>>> whats the logic ? >>>> >>>> ----- Original Message ----- >>>> *From:* thomas bonfort >>>> *To:* Oliver Christen >>>> >>>> *Cc:* mapserver-users at lists.osgeo.org >>>> >>>> *Sent:* Tuesday, January 12, 2010 4:36 PM >>>> *Subject:* Re: [mapserver-users] symbol circle (ellipse) >>>> rendered not round but oval >>>> >>>> symbol >>>> name dots >>>> type ellipse >>>> points 1 1 end >>>> gap 20 >>>> end >>>> >>>> ... >>>> >>>> style >>>> symbol "dots" >>>> size 8 >>>> color r g b >>>> outlinecolor r g b >>>> end >>>> >>>> >>>> >>>> >>>> On Tue, Jan 12, 2010 at 16:31, Oliver Christen >>>> >>> > wrote: >>>> >>>> Hi Thomas :) >>>> thanks for the answer, but sadely it didnt solve my >>>> problem: >>>> here are a few tests I did: >>>> using GAP 20 gave me really weird result: >>>> >>>> http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png >>>> >>>> >>>> using PATTERN 1 22 END gave me better result, but the >>>> dot are still slightly oval: >>>> >>>> http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png >>>> >>>> >>>> I wondered if the visual effect may have come from the >>>> fact im pilling up two circle one over the other, but >>>> even when trying to display only the outer or inner >>>> circles, the circle are still slightly off: >>>> >>>> http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png >>>> >>>> >>>> >>>> http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png >>>> >>>> >>>> (both at once >>>> >>>> http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png >>>> >>>> ) >>>> any other idea? ^_^ >>>> >>>> ----- Original Message ----- >>>> *From:* thomas bonfort >>>> >>>> *To:* Oliver Christen >>>> >>>> *Cc:* mapserver-users at lists.osgeo.org >>>> >>>> *Sent:* Tuesday, January 12, 2010 3:18 PM >>>> *Subject:* Re: [mapserver-users] symbol circle >>>> (ellipse) rendered not round but oval >>>> >>>> hi Oliver :) >>>> >>>> try with GAP 20 instead of STYLE 1 20 END (which is >>>> deprecated btw, use PATTERN now) >>>> >>>> cheers, >>>> thomas >>>> >>>> On Tue, Jan 12, 2010 at 15:04, Oliver Christen >>>> >>> > wrote: >>>> >>>> hello >>>> >>>> I have a weird problem with symbology. >>>> Im rendering a line with dots, but the dots are >>>> not round but slightly oval, see image >>>> >>>> http://dev.camptocamp.com/~ochriste/tilecache.png >>>> >>>> >>>> >>>> Any idea what could be the cause ? >>>> >>>> Here is my symbol definition: >>>> >>>> SYMBOL >>>> NAME "linie-gepunkt10" >>>> TYPE ELLIPSE >>>> POINTS >>>> 1 1 >>>> END >>>> STYLE >>>> 1 20 >>>> END >>>> FILLED TRUE >>>> END >>>> >>>> and my layer's class definition: >>>> >>>> CLASS >>>> EXPRESSION "3" >>>> MAXSCALEDENOM 200001 >>>> STYLE >>>> SYMBOL "linie-gepunkt10" >>>> SIZE 10 >>>> COLOR 102 51 0 >>>> END >>>> STYLE >>>> SYMBOL "linie-gepunkt10" >>>> SIZE 8 >>>> COLOR 204 102 0 >>>> END >>>> END >>>> >>>> and the map outputformat: >>>> >>>> OUTPUTFORMAT >>>> NAME png >>>> DRIVER "AGG/PNG" >>>> MIMETYPE "image/png" >>>> IMAGEMODE RGBA >>>> EXTENSION "png" >>>> FORMATOPTION "INTERLACE=OFF" >>>> END >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> >>>> >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>>> >>>> >>>> >>> >>> -- >>> H?vard Tveite >>> Department of Mathematical Sciences and Technology, UMB >>> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY >>> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ >>> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From havard.tveite at umb.no Thu Jan 14 08:26:12 2010 From: havard.tveite at umb.no (Havard Tveite) Date: Thu, 14 Jan 2010 17:26:12 +0100 Subject: [mapserver-users] symbol circle (ellipse) rendered not round but oval In-Reply-To: References: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> <5C90B99F1D0C4CA0967B92FBEDBCE59F@maunakea> <8106afb31001130108u3da74aa3i7fb1b727300687d2@mail.gmail.com> <4B4E0057.4020407@umb.no> <830CA97B19EB45F993FB4AAB7AE86131@maunakea> <4B4F2601.1070700@swoodbridge.com> Message-ID: <4B4F45A4.7090502@umb.no> If Thomas B. agrees, I think it would be reasonable to also open a bug on the gap calculation. In my opinion, since the word "gap" is used, the correct way to specify a symbol with ellipses that has the same gap between them as the diameter of the ellipses should be as follows: symbol name dots type ellipse points 1 1 end gap 1 end or an equivalent "scaled" version such as: symbol name dots type ellipse points 23 23 end gap 23 end The actual size of the ellipses (and the width of the gaps) should be determined by the SIZE in CLASS-> STYLE. If SIZE is 10, the ellipses should have a 10 pixel diameter (and should have a 10 pixel gap between them). I have been hesitant to file bugs regarding symbology, since the documentation on symbology is lacking and there is not complete agreement on how some of the things that has to do with symbology should work. There have also been discussions on changing some behaviour and mechanisms for symbology. First we have to agree on how things should work and document it, then we can file bugs if behaviour is not as expected. H?vard Oliver Christen wrote: > Hi Steve > > I followed your suggestion and opened a documentation bug > > thanks > Oliver > >> Hi guys, >> >> I haven't followed this whole thread but I think it should be better >> documented so people can understand how to use this. Please write a doc >> bug and put as much information in the bug about how this works as you >> have been able to discover. >> >> Thanks, >> -Steve W >> >> Oliver Christen wrote: >>> Thank you H?vard >>> I see you have changed "points 1 1 end" by "points 8 8 end". >>> Tell me if im wrong, but these values are only used to render the >>> proportions of the elipse but not it's size, is that correct? >>> so if I understand correctly, using larger values for the elipse >>> width/height refine the rendering of the vectorised dot geometry ? >>> >>> regards >>> Oliver >>> >>>> Dear Oliver Christen, >>>> >>>> Using Mapserver 5.6.0 and AGG rendering, you can achieve what >>>> you want by using a combination of ellipse size and gap size >>>> in the symbol definition. >>>> There is something strange in the calculations (a gap of >>>> about half the ellipse size seems to produce touching symbols), >>>> so in your case, you could try to use 8 as the diameter of the >>>> ellipses, and 20 + 4 (half the ellipse size) = 24 as the >>>> gap: >>>> >>>> symbol >>>> name dots >>>> type ellipse >>>> points 8 8 end >>>> gap 24 >>>> end >>>> >>>> >>>> H?vard >>>> >>>> Oliver Christen wrote: >>>>> thank you Thomas >>>>> >>>>> so if I have a dot of, for example, 8px and I want a space pf 20px >>>>> between the dots, I need a gap of 20/8 = 2.5 >>>>> >>>>> but as far as I can see, Mapserver doesnt like none-integer value for >>>>> gap. >>>>> >>>>> what should I do? :( >>>>> >>>>> 2010/1/12 thomas bonfort >>>> > >>>>> >>>>> gap in pixels = symbol->gap * style->size >>>>> >>>>> >>>>> On Tue, Jan 12, 2010 at 16:52, Oliver Christen >>>>> >>>> > wrote: >>>>> >>>>> GAP 20 is really giving unwanted result: >>>>> http://dev.camptocamp.com/~ochriste/tilecache9.png >>>>> >>>>> though using only one style instead of two seems to solve the >>>>> oval problem (but why ???) >>>>> style >>>>> symbol "dots" >>>>> size 8 >>>>> color 204 102 0 >>>>> outlinecolor 102 51 0 >>>>> end >>>>> I dont understand how GAP is supposed working: >>>>> with GAP 2, I had ~10px between dots, >>>>> with GAP 3, I had ~18px between dots, >>>>> with GAP 4, I had ~26px between dots >>>>> whats the logic ? >>>>> >>>>> ----- Original Message ----- >>>>> *From:* thomas bonfort >>>>> *To:* Oliver Christen >>>>> >>>>> *Cc:* mapserver-users at lists.osgeo.org >>>>> >>>>> *Sent:* Tuesday, January 12, 2010 4:36 PM >>>>> *Subject:* Re: [mapserver-users] symbol circle (ellipse) >>>>> rendered not round but oval >>>>> >>>>> symbol >>>>> name dots >>>>> type ellipse >>>>> points 1 1 end >>>>> gap 20 >>>>> end >>>>> >>>>> ... >>>>> >>>>> style >>>>> symbol "dots" >>>>> size 8 >>>>> color r g b >>>>> outlinecolor r g b >>>>> end >>>>> >>>>> >>>>> >>>>> >>>>> On Tue, Jan 12, 2010 at 16:31, Oliver Christen >>>>> >>>> > wrote: >>>>> >>>>> Hi Thomas :) >>>>> thanks for the answer, but sadely it didnt solve my >>>>> problem: >>>>> here are a few tests I did: >>>>> using GAP 20 gave me really weird result: >>>>> >>>>> http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png >>>>> >>>>> >>>>> using PATTERN 1 22 END gave me better result, but the >>>>> dot are still slightly oval: >>>>> >>>>> http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png >>>>> >>>>> >>>>> I wondered if the visual effect may have come from the >>>>> fact im pilling up two circle one over the other, but >>>>> even when trying to display only the outer or inner >>>>> circles, the circle are still slightly off: >>>>> >>>>> http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png >>>>> >>>>> >>>>> >>>>> http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png >>>>> >>>>> >>>>> (both at once >>>>> >>>>> http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png >>>>> >>>>> ) >>>>> any other idea? ^_^ >>>>> >>>>> ----- Original Message ----- >>>>> *From:* thomas bonfort >>>>> >>>>> *To:* Oliver Christen >>>>> >>>>> *Cc:* mapserver-users at lists.osgeo.org >>>>> >>>>> *Sent:* Tuesday, January 12, 2010 3:18 PM >>>>> *Subject:* Re: [mapserver-users] symbol circle >>>>> (ellipse) rendered not round but oval >>>>> >>>>> hi Oliver :) >>>>> >>>>> try with GAP 20 instead of STYLE 1 20 END (which is >>>>> deprecated btw, use PATTERN now) >>>>> >>>>> cheers, >>>>> thomas >>>>> >>>>> On Tue, Jan 12, 2010 at 15:04, Oliver Christen >>>>> >>>> > wrote: >>>>> >>>>> hello >>>>> >>>>> I have a weird problem with symbology. >>>>> Im rendering a line with dots, but the dots are >>>>> not round but slightly oval, see image >>>>> >>>>> http://dev.camptocamp.com/~ochriste/tilecache.png >>>>> >>>>> >>>>> >>>>> Any idea what could be the cause ? >>>>> >>>>> Here is my symbol definition: >>>>> >>>>> SYMBOL >>>>> NAME "linie-gepunkt10" >>>>> TYPE ELLIPSE >>>>> POINTS >>>>> 1 1 >>>>> END >>>>> STYLE >>>>> 1 20 >>>>> END >>>>> FILLED TRUE >>>>> END >>>>> >>>>> and my layer's class definition: >>>>> >>>>> CLASS >>>>> EXPRESSION "3" >>>>> MAXSCALEDENOM 200001 >>>>> STYLE >>>>> SYMBOL "linie-gepunkt10" >>>>> SIZE 10 >>>>> COLOR 102 51 0 >>>>> END >>>>> STYLE >>>>> SYMBOL "linie-gepunkt10" >>>>> SIZE 8 >>>>> COLOR 204 102 0 >>>>> END >>>>> END >>>>> >>>>> and the map outputformat: >>>>> >>>>> OUTPUTFORMAT >>>>> NAME png >>>>> DRIVER "AGG/PNG" >>>>> MIMETYPE "image/png" >>>>> IMAGEMODE RGBA >>>>> EXTENSION "png" >>>>> FORMATOPTION "INTERLACE=OFF" >>>>> END >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> >>>>> >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>>>> >>>>> >>>>> >>>> -- >>>> H?vard Tveite >>>> Department of Mathematical Sciences and Technology, UMB >>>> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY >>>> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ >>>> >>> _______________________________________________ >>> 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 > -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ From tspradley at snoogems.com Thu Jan 14 08:41:46 2010 From: tspradley at snoogems.com (Ted Spradley) Date: Thu, 14 Jan 2010 08:41:46 -0800 (PST) Subject: [mapserver-users] 5.6.1 - GetFeatureInfo - template processing Message-ID: <1263487306651-4393728.post@n2.nabble.com> Hi everyone, In version 5.4.1 the following GetFeatureInfo request url produced a table described by templates for the layer 'bldg_query' described below. With ver 5.6.1, Mapserver outputs only the template from the mapfile's WEB object (with no query results or image). Do you have any idea of changes to make? To the request format? To the mapfile? Thank you all very much, Ted S. URL: http://url.com/cgi-bin/mapserv?map=/path/to/cad.map &SERVICE=WMS &VERSION=1.1.1 &REQUEST=GetFeatureInfo &SRS=EPSG%3A102740 &WIDTH=800&HEIGHT=800 &BBOX=3102785.400463,13832395.006499,3104115.230452,13833724.836488&LAYERS=building_comp_query &STYLES=&FORMAT=image%2Fpng &QUERY_LAYERS=bldg_query &X=398&Y=390 &INFO_FORMAT=text/html Relevant mapfile snippets: MAP NAME "CAD" SIZE 800 800 EXTENT 2928849.796040 13748390.427723 3269286.273267 13992542.754455 UNITS FEET IMAGECOLOR 255 255 255 PROJECTION "init=epsg:102740" END IMAGETYPE PNG24 SHAPEPATH '/path/to/data/' STATUS ON SYMBOLSET "examples.sym" FONTSET '/usr/share/fonts/fonts.list' CONFIG "MS_ERRORFILE" "/path/to/cad.log" WEB TEMPLATE "mapserver.html" IMAGEPATH "/var/www/vhosts/snoogems.com/subdomains/maps/httpdocs/temp/" IMAGEURL "/temp/" METADATA "wms_title" "CAD Search" "wfs_title" "CAD Search" "wms_srs" "EPSG:102740 EPSG:4326" "wfs_srs" "EPSG:102740 EPSG:4326" "wms_onlineresource" "http://url.com/cgi-bin/mapserv?map=/path/to/cads" "wfs_onlineresource" "http://url.com/cgi-bin/mapserv?map=/path/to/cads" "wms_feature_info_mime_type" "text/html" END END QUERYMAP STATUS ON STYLE HILITE COLOR 255 255 0 END LAYER NAME 'bldg_query' TYPE QUERY STATUS ON DEBUG 3 TEMPLATE bldgGetFeatureInfo.html HEADER bldgGetFeatureInfo_header.html FOOTER bldgGetFeatureInfo_footer.html PROCESSING "CLOSE_CONNECTION=DEFER" DUMP TRUE MAXSCALEDENOM 10000 CONNECTIONTYPE POSTGIS CONNECTION "dbname=cad1 user=tedkspradley password=05gusher host=localhost port=5432" DATA "the_geom from (select b.the_geom AS the_geom, b.gid AS gid, b.hcad_num AS hcad_num FROM parcels b) as foo using unique gid using srid=-1" JOIN NAME "building_components" CONNECTION "dbname=cad1 user=usr password=pw host=localhost port=5432" CONNECTIONTYPE ogr TABLE "building_components" FROM "hcad_num" TO "hcad_acct" TYPE ONE-TO-MANY TEMPLATE bldgGetFeatureInfo_join.html END PROJECTION "init=epsg:102740" END METADATA "wms_title" "Building Components Query Layer" "wfs_title" "Building Components Query Layer" "wms_srs" "epsg:102740 epsg:4326" "gml_include_items" "all" "wms_include_items" "all" "gml_featureid" "ogc_fid" "qstring_validation_pattern" '.' END END # End layer 'bldg_query' ----- Thank you, Ted S MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Linux/Fedora7 -- View this message in context: http://n2.nabble.com/5-6-1-GetFeatureInfo-template-processing-tp4393728p4393728.html Sent from the Mapserver - User mailing list archive at Nabble.com. From tspradley at snoogems.com Thu Jan 14 08:59:29 2010 From: tspradley at snoogems.com (Ted Spradley) Date: Thu, 14 Jan 2010 08:59:29 -0800 (PST) Subject: [mapserver-users] Newbee, hello world problem! It used to work on my old system! In-Reply-To: <1263394005198-4348959.post@n2.nabble.com> References: <1263393115232-4348856.post@n2.nabble.com> <1263394005198-4348959.post@n2.nabble.com> Message-ID: <1263488369314-4393840.post@n2.nabble.com> Hi, Insert the 'magic string' at the beginning of all of your html templates and // Mapserver Template at the beginning of any javascript templates you have. Gazz1982 wrote: > > this error:msLoadMap(): Unknown identifier. First token must be MAP, this > doesn't look like a mapfile. seems to have fixed itself by adding the MAP > tag but now it has a problem with the html file! > > Content-type: text/html isValidTemplate(): Web application error. Missing > magic string, /var/www/htdocs/hello.html doesn't look like a MapServer > template. > ----- Thank you, Ted S MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Linux/Fedora7 -- View this message in context: http://n2.nabble.com/Newbee-hello-world-problem-It-used-to-work-on-my-old-system-tp4348856p4393840.html Sent from the Mapserver - User mailing list archive at Nabble.com. From tspradley at snoogems.com Thu Jan 14 09:05:32 2010 From: tspradley at snoogems.com (Ted Spradley) Date: Thu, 14 Jan 2010 09:05:32 -0800 (PST) Subject: [mapserver-users] make error - version 5.6.0-rc1 - /usr/bin/ld: cannot find -lxslt In-Reply-To: <4B27DA6F.7000408@mapgears.com> References: <1260481491255-4148052.post@n2.nabble.com> <4B2174C4.1050406@swoodbridge.com> <4B218028.9040003@swoodbridge.com> <1260547739529-4152101.post@n2.nabble.com> <4B27DA6F.7000408@mapgears.com> Message-ID: <1263488732108-4393886.post@n2.nabble.com> Daniel Morissette wrote: > > The linker looks for .so files, the *.so.x and *.so.x.y are used only at > runtime, so you need libpam.so, which is usually provided by the -devel > version of the RPM package. > > Daniel > Thanks much Daniel. The package MS needed turns out to be named 'pam-devel' in my fc7 distribution. Cheers! ----- Thank you, Ted S MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Linux/Fedora7 -- View this message in context: http://n2.nabble.com/make-error-version-5-6-0-rc1-usr-bin-ld-cannot-find-lxslt-tp4148052p4393886.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Thu Jan 14 09:25:27 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 14 Jan 2010 12:25:27 -0500 Subject: [mapserver-users] symbol circle (ellipse) rendered not round but oval In-Reply-To: <4B4F45A4.7090502@umb.no> References: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> <5C90B99F1D0C4CA0967B92FBEDBCE59F@maunakea> <8106afb31001130108u3da74aa3i7fb1b727300687d2@mail.gmail.com> <4B4E0057.4020407@umb.no> <830CA97B19EB45F993FB4AAB7AE86131@maunakea> <4B4F2601.1070700@swoodbridge.com> <4B4F45A4.7090502@umb.no> Message-ID: <4B4F5387.4050700@swoodbridge.com> So if I want ten pixel ellipses with a 1, 2, or 3 pixels gap how would you specify that? points 10 10 gap 1 (or 2 or 3)? -Steve W Havard Tveite wrote: > If Thomas B. agrees, I think it would be reasonable to also > open a bug on the gap calculation. > In my opinion, since the word "gap" is used, the correct > way to specify a symbol with ellipses that has the same > gap between them as the diameter of the ellipses should be > as follows: > > symbol > name dots > type ellipse > points 1 1 end > gap 1 > end > > or an equivalent "scaled" version such as: > > symbol > name dots > type ellipse > points 23 23 end > gap 23 > end > > The actual size of the ellipses (and the width of the gaps) > should be determined by the SIZE in CLASS-> STYLE. If > SIZE is 10, the ellipses should have a 10 pixel diameter > (and should have a 10 pixel gap between them). > > I have been hesitant to file bugs regarding symbology, since > the documentation on symbology is lacking and there is not > complete agreement on how some of the things that has to do > with symbology should work. There have also been > discussions on changing some behaviour and mechanisms for > symbology. > First we have to agree on how things should work and document > it, then we can file bugs if behaviour is not as expected. > > H?vard > > Oliver Christen wrote: >> Hi Steve >> >> I followed your suggestion and opened a documentation bug >> >> thanks >> Oliver >> >>> Hi guys, >>> >>> I haven't followed this whole thread but I think it should be better >>> documented so people can understand how to use this. Please write a >>> doc bug and put as much information in the bug about how this works >>> as you have been able to discover. >>> >>> Thanks, >>> -Steve W >>> >>> Oliver Christen wrote: >>>> Thank you H?vard >>>> I see you have changed "points 1 1 end" by "points 8 8 end". >>>> Tell me if im wrong, but these values are only used to render the >>>> proportions of the elipse but not it's size, is that correct? >>>> so if I understand correctly, using larger values for the elipse >>>> width/height refine the rendering of the vectorised dot geometry ? >>>> >>>> regards >>>> Oliver >>>> >>>>> Dear Oliver Christen, >>>>> >>>>> Using Mapserver 5.6.0 and AGG rendering, you can achieve what >>>>> you want by using a combination of ellipse size and gap size >>>>> in the symbol definition. >>>>> There is something strange in the calculations (a gap of >>>>> about half the ellipse size seems to produce touching symbols), >>>>> so in your case, you could try to use 8 as the diameter of the >>>>> ellipses, and 20 + 4 (half the ellipse size) = 24 as the >>>>> gap: >>>>> >>>>> symbol >>>>> name dots >>>>> type ellipse >>>>> points 8 8 end >>>>> gap 24 >>>>> end >>>>> >>>>> >>>>> H?vard >>>>> >>>>> Oliver Christen wrote: >>>>>> thank you Thomas >>>>>> >>>>>> so if I have a dot of, for example, 8px and I want a space pf 20px >>>>>> between the dots, I need a gap of 20/8 = 2.5 >>>>>> >>>>>> but as far as I can see, Mapserver doesnt like none-integer value >>>>>> for gap. >>>>>> >>>>>> what should I do? :( >>>>>> >>>>>> 2010/1/12 thomas bonfort >>>>> > >>>>>> >>>>>> gap in pixels = symbol->gap * style->size >>>>>> >>>>>> >>>>>> On Tue, Jan 12, 2010 at 16:52, Oliver Christen >>>>>> >>>>> > wrote: >>>>>> >>>>>> GAP 20 is really giving unwanted result: >>>>>> http://dev.camptocamp.com/~ochriste/tilecache9.png >>>>>> >>>>>> though using only one style instead of two seems to solve >>>>>> the >>>>>> oval problem (but why ???) >>>>>> style >>>>>> symbol "dots" >>>>>> size 8 >>>>>> color 204 102 0 >>>>>> outlinecolor 102 51 0 >>>>>> end >>>>>> I dont understand how GAP is supposed working: >>>>>> with GAP 2, I had ~10px between dots, >>>>>> with GAP 3, I had ~18px between dots, >>>>>> with GAP 4, I had ~26px between dots >>>>>> whats the logic ? >>>>>> >>>>>> ----- Original Message ----- >>>>>> *From:* thomas bonfort >>>>>> *To:* Oliver Christen >>>>>> >>>>>> *Cc:* mapserver-users at lists.osgeo.org >>>>>> >>>>>> *Sent:* Tuesday, January 12, 2010 4:36 PM >>>>>> *Subject:* Re: [mapserver-users] symbol circle (ellipse) >>>>>> rendered not round but oval >>>>>> >>>>>> symbol >>>>>> name dots >>>>>> type ellipse >>>>>> points 1 1 end >>>>>> gap 20 >>>>>> end >>>>>> >>>>>> ... >>>>>> >>>>>> style >>>>>> symbol "dots" >>>>>> size 8 >>>>>> color r g b >>>>>> outlinecolor r g b >>>>>> end >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Tue, Jan 12, 2010 at 16:31, Oliver Christen >>>>>> >>>>> > wrote: >>>>>> >>>>>> Hi Thomas :) >>>>>> thanks for the answer, but sadely it didnt solve >>>>>> my problem: >>>>>> here are a few tests I did: >>>>>> using GAP 20 gave me really weird result: >>>>>> >>>>>> http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png >>>>>> >>>>>> >>>>>> using PATTERN 1 22 END gave me better result, but >>>>>> the >>>>>> dot are still slightly oval: >>>>>> >>>>>> http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png >>>>>> >>>>>> >>>>>> I wondered if the visual effect may have come >>>>>> from the >>>>>> fact im pilling up two circle one over the other, but >>>>>> even when trying to display only the outer or inner >>>>>> circles, the circle are still slightly off: >>>>>> >>>>>> http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png >>>>>> >>>>>> >>>>>> >>>>>> http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png >>>>>> >>>>>> >>>>>> (both at once >>>>>> >>>>>> http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png >>>>>> >>>>>> ) >>>>>> any other idea? ^_^ >>>>>> >>>>>> ----- Original Message ----- >>>>>> *From:* thomas bonfort >>>>>> >>>>>> *To:* Oliver Christen >>>>>> >>>>>> *Cc:* mapserver-users at lists.osgeo.org >>>>>> >>>>>> *Sent:* Tuesday, January 12, 2010 3:18 PM >>>>>> *Subject:* Re: [mapserver-users] symbol circle >>>>>> (ellipse) rendered not round but oval >>>>>> >>>>>> hi Oliver :) >>>>>> >>>>>> try with GAP 20 instead of STYLE 1 20 END >>>>>> (which is >>>>>> deprecated btw, use PATTERN now) >>>>>> >>>>>> cheers, >>>>>> thomas >>>>>> >>>>>> On Tue, Jan 12, 2010 at 15:04, Oliver Christen >>>>>> >>>>> > wrote: >>>>>> >>>>>> hello >>>>>> >>>>>> I have a weird problem with symbology. >>>>>> Im rendering a line with dots, but the >>>>>> dots are >>>>>> not round but slightly oval, see image >>>>>> >>>>>> http://dev.camptocamp.com/~ochriste/tilecache.png >>>>>> >>>>>> >>>>>> >>>>>> Any idea what could be the cause ? >>>>>> >>>>>> Here is my symbol definition: >>>>>> >>>>>> SYMBOL >>>>>> NAME "linie-gepunkt10" >>>>>> TYPE ELLIPSE >>>>>> POINTS >>>>>> 1 1 >>>>>> END >>>>>> STYLE >>>>>> 1 20 >>>>>> END >>>>>> FILLED TRUE >>>>>> END >>>>>> >>>>>> and my layer's class definition: >>>>>> >>>>>> CLASS >>>>>> EXPRESSION "3" >>>>>> MAXSCALEDENOM 200001 >>>>>> STYLE >>>>>> SYMBOL "linie-gepunkt10" >>>>>> SIZE 10 >>>>>> COLOR 102 51 0 >>>>>> END >>>>>> STYLE >>>>>> SYMBOL "linie-gepunkt10" >>>>>> SIZE 8 >>>>>> COLOR 204 102 0 >>>>>> END >>>>>> END >>>>>> >>>>>> and the map outputformat: >>>>>> >>>>>> OUTPUTFORMAT >>>>>> NAME png >>>>>> DRIVER "AGG/PNG" >>>>>> MIMETYPE "image/png" >>>>>> IMAGEMODE RGBA >>>>>> EXTENSION "png" >>>>>> FORMATOPTION "INTERLACE=OFF" >>>>>> END >>>>>> >>>>>> _______________________________________________ >>>>>> mapserver-users mailing list >>>>>> mapserver-users at lists.osgeo.org >>>>>> >>>>>> >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> -- >>>>> H?vard Tveite >>>>> Department of Mathematical Sciences and Technology, UMB >>>>> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY >>>>> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ >>>>> >>>> _______________________________________________ >>>> 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 havard.tveite at umb.no Thu Jan 14 09:48:58 2010 From: havard.tveite at umb.no (Havard Tveite) Date: Thu, 14 Jan 2010 18:48:58 +0100 Subject: [mapserver-users] symbol circle (ellipse) rendered not round but oval In-Reply-To: <4B4F5387.4050700@swoodbridge.com> References: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> <5C90B99F1D0C4CA0967B92FBEDBCE59F@maunakea> <8106afb31001130108u3da74aa3i7fb1b727300687d2@mail.gmail.com> <4B4E0057.4020407@umb.no> <830CA97B19EB45F993FB4AAB7AE86131@maunakea> <4B4F2601.1070700@swoodbridge.com> <4B4F45A4.7090502@umb.no> <4B4F5387.4050700@swoodbridge.com> Message-ID: <4B4F590A.7010805@umb.no> Stephen Woodbridge wrote: > So if I want ten pixel ellipses with a 1, 2, or 3 pixels gap how would > you specify that? > > points 10 10 gap 1 (or 2 or 3)? Yes, if the rendering behaviour had been according to my preferences, POINTS 10 10 END GAP 1 (or 2 or 3) should do it (if you had specified SIZE 10 in the STYLE). You specify the gap, and not the centre to centre distance between the ellipses. But currently, this is not the behaviour. Currently (with AGG in 5.6.0) you would have to specify: POINTS 10 10 END GAP 6 (or 7 or 8) to get something close (if you specify SIZE 10 in the STYLE). Something seems to be wrong when the GAP is close to half the diameter specified in POINTS - some of the gaps will be as expected, while others are larger (closer to the actual number specified in GAP). H?vard > > -Steve W > > Havard Tveite wrote: >> If Thomas B. agrees, I think it would be reasonable to also >> open a bug on the gap calculation. >> In my opinion, since the word "gap" is used, the correct >> way to specify a symbol with ellipses that has the same >> gap between them as the diameter of the ellipses should be >> as follows: >> >> symbol >> name dots >> type ellipse >> points 1 1 end >> gap 1 >> end >> >> or an equivalent "scaled" version such as: >> >> symbol >> name dots >> type ellipse >> points 23 23 end >> gap 23 >> end >> >> The actual size of the ellipses (and the width of the gaps) >> should be determined by the SIZE in CLASS-> STYLE. If >> SIZE is 10, the ellipses should have a 10 pixel diameter >> (and should have a 10 pixel gap between them). >> >> I have been hesitant to file bugs regarding symbology, since >> the documentation on symbology is lacking and there is not >> complete agreement on how some of the things that has to do >> with symbology should work. There have also been >> discussions on changing some behaviour and mechanisms for >> symbology. >> First we have to agree on how things should work and document >> it, then we can file bugs if behaviour is not as expected. >> >> H?vard >> >> Oliver Christen wrote: >>> Hi Steve >>> >>> I followed your suggestion and opened a documentation bug >>> >>> thanks >>> Oliver >>> >>>> Hi guys, >>>> >>>> I haven't followed this whole thread but I think it should be better >>>> documented so people can understand how to use this. Please write a >>>> doc bug and put as much information in the bug about how this works >>>> as you have been able to discover. >>>> >>>> Thanks, >>>> -Steve W >>>> >>>> Oliver Christen wrote: >>>>> Thank you H?vard >>>>> I see you have changed "points 1 1 end" by "points 8 8 end". >>>>> Tell me if im wrong, but these values are only used to render the >>>>> proportions of the elipse but not it's size, is that correct? >>>>> so if I understand correctly, using larger values for the elipse >>>>> width/height refine the rendering of the vectorised dot geometry ? >>>>> >>>>> regards >>>>> Oliver >>>>> >>>>>> Dear Oliver Christen, >>>>>> >>>>>> Using Mapserver 5.6.0 and AGG rendering, you can achieve what >>>>>> you want by using a combination of ellipse size and gap size >>>>>> in the symbol definition. >>>>>> There is something strange in the calculations (a gap of >>>>>> about half the ellipse size seems to produce touching symbols), >>>>>> so in your case, you could try to use 8 as the diameter of the >>>>>> ellipses, and 20 + 4 (half the ellipse size) = 24 as the >>>>>> gap: >>>>>> >>>>>> symbol >>>>>> name dots >>>>>> type ellipse >>>>>> points 8 8 end >>>>>> gap 24 >>>>>> end >>>>>> >>>>>> >>>>>> H?vard >>>>>> >>>>>> Oliver Christen wrote: >>>>>>> thank you Thomas >>>>>>> >>>>>>> so if I have a dot of, for example, 8px and I want a space pf 20px >>>>>>> between the dots, I need a gap of 20/8 = 2.5 >>>>>>> >>>>>>> but as far as I can see, Mapserver doesnt like none-integer value >>>>>>> for gap. >>>>>>> >>>>>>> what should I do? :( >>>>>>> >>>>>>> 2010/1/12 thomas bonfort >>>>>> > >>>>>>> >>>>>>> gap in pixels = symbol->gap * style->size >>>>>>> >>>>>>> >>>>>>> On Tue, Jan 12, 2010 at 16:52, Oliver Christen >>>>>>> >>>>>> > wrote: >>>>>>> >>>>>>> GAP 20 is really giving unwanted result: >>>>>>> http://dev.camptocamp.com/~ochriste/tilecache9.png >>>>>>> >>>>>>> though using only one style instead of two seems to solve >>>>>>> the >>>>>>> oval problem (but why ???) >>>>>>> style >>>>>>> symbol "dots" >>>>>>> size 8 >>>>>>> color 204 102 0 >>>>>>> outlinecolor 102 51 0 >>>>>>> end >>>>>>> I dont understand how GAP is supposed working: >>>>>>> with GAP 2, I had ~10px between dots, >>>>>>> with GAP 3, I had ~18px between dots, >>>>>>> with GAP 4, I had ~26px between dots >>>>>>> whats the logic ? >>>>>>> >>>>>>> ----- Original Message ----- >>>>>>> *From:* thomas bonfort >>>>>>> *To:* Oliver Christen >>>>>>> >>>>>>> *Cc:* mapserver-users at lists.osgeo.org >>>>>>> >>>>>>> *Sent:* Tuesday, January 12, 2010 4:36 PM >>>>>>> *Subject:* Re: [mapserver-users] symbol circle (ellipse) >>>>>>> rendered not round but oval >>>>>>> >>>>>>> symbol >>>>>>> name dots >>>>>>> type ellipse >>>>>>> points 1 1 end >>>>>>> gap 20 >>>>>>> end >>>>>>> >>>>>>> ... >>>>>>> >>>>>>> style >>>>>>> symbol "dots" >>>>>>> size 8 >>>>>>> color r g b >>>>>>> outlinecolor r g b >>>>>>> end >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Tue, Jan 12, 2010 at 16:31, Oliver Christen >>>>>>> >>>>>> > wrote: >>>>>>> >>>>>>> Hi Thomas :) >>>>>>> thanks for the answer, but sadely it didnt solve >>>>>>> my problem: >>>>>>> here are a few tests I did: >>>>>>> using GAP 20 gave me really weird result: >>>>>>> >>>>>>> http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png >>>>>>> >>>>>>> >>>>>>> using PATTERN 1 22 END gave me better result, but >>>>>>> the >>>>>>> dot are still slightly oval: >>>>>>> >>>>>>> http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png >>>>>>> >>>>>>> >>>>>>> I wondered if the visual effect may have come >>>>>>> from the >>>>>>> fact im pilling up two circle one over the other, but >>>>>>> even when trying to display only the outer or inner >>>>>>> circles, the circle are still slightly off: >>>>>>> >>>>>>> http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png >>>>>>> >>>>>>> >>>>>>> >>>>>>> http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png >>>>>>> >>>>>>> >>>>>>> (both at once >>>>>>> >>>>>>> http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png >>>>>>> >>>>>>> ) >>>>>>> any other idea? ^_^ >>>>>>> >>>>>>> ----- Original Message ----- >>>>>>> *From:* thomas bonfort >>>>>>> >>>>>>> *To:* Oliver Christen >>>>>>> >>>>>>> *Cc:* mapserver-users at lists.osgeo.org >>>>>>> >>>>>>> *Sent:* Tuesday, January 12, 2010 3:18 PM >>>>>>> *Subject:* Re: [mapserver-users] symbol circle >>>>>>> (ellipse) rendered not round but oval >>>>>>> >>>>>>> hi Oliver :) >>>>>>> >>>>>>> try with GAP 20 instead of STYLE 1 20 END >>>>>>> (which is >>>>>>> deprecated btw, use PATTERN now) >>>>>>> >>>>>>> cheers, >>>>>>> thomas >>>>>>> >>>>>>> On Tue, Jan 12, 2010 at 15:04, Oliver Christen >>>>>>> >>>>>> > wrote: >>>>>>> >>>>>>> hello >>>>>>> >>>>>>> I have a weird problem with symbology. >>>>>>> Im rendering a line with dots, but the >>>>>>> dots are >>>>>>> not round but slightly oval, see image >>>>>>> >>>>>>> http://dev.camptocamp.com/~ochriste/tilecache.png >>>>>>> >>>>>>> >>>>>>> >>>>>>> Any idea what could be the cause ? >>>>>>> >>>>>>> Here is my symbol definition: >>>>>>> >>>>>>> SYMBOL >>>>>>> NAME "linie-gepunkt10" >>>>>>> TYPE ELLIPSE >>>>>>> POINTS >>>>>>> 1 1 >>>>>>> END >>>>>>> STYLE >>>>>>> 1 20 >>>>>>> END >>>>>>> FILLED TRUE >>>>>>> END >>>>>>> >>>>>>> and my layer's class definition: >>>>>>> >>>>>>> CLASS >>>>>>> EXPRESSION "3" >>>>>>> MAXSCALEDENOM 200001 >>>>>>> STYLE >>>>>>> SYMBOL "linie-gepunkt10" >>>>>>> SIZE 10 >>>>>>> COLOR 102 51 0 >>>>>>> END >>>>>>> STYLE >>>>>>> SYMBOL "linie-gepunkt10" >>>>>>> SIZE 8 >>>>>>> COLOR 204 102 0 >>>>>>> END >>>>>>> END >>>>>>> >>>>>>> and the map outputformat: >>>>>>> >>>>>>> OUTPUTFORMAT >>>>>>> NAME png >>>>>>> DRIVER "AGG/PNG" >>>>>>> MIMETYPE "image/png" >>>>>>> IMAGEMODE RGBA >>>>>>> EXTENSION "png" >>>>>>> FORMATOPTION "INTERLACE=OFF" >>>>>>> END >>>>>>> >>>>>>> _______________________________________________ >>>>>>> mapserver-users mailing list >>>>>>> mapserver-users at lists.osgeo.org >>>>>>> >>>>>>> >>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> -- >>>>>> H?vard Tveite >>>>>> Department of Mathematical Sciences and Technology, UMB >>>>>> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY >>>>>> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ >>>>>> >>>>> _______________________________________________ >>>>> 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 >>> > > -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ From flsolu at gmail.com Thu Jan 14 10:00:16 2010 From: flsolu at gmail.com (Flavio Souza) Date: Thu, 14 Jan 2010 15:00:16 -0300 Subject: [mapserver-users] MapServer with JBOSS Message-ID: Hello again Anyone knows if is it possible , to use MapServer with JBOSS ? Thanks in advance Fl?vio Souza _______________________________ Fl?vio Souza (021) 7629-4249 From stepan.kafka at centrum.cz Thu Jan 14 10:22:51 2010 From: stepan.kafka at centrum.cz (stepan.kafka at centrum.cz) Date: Thu, 14 Jan 2010 19:22:51 +0100 Subject: [mapserver-users] new query file format Message-ID: <1263493371.786353.17553.nullmailer@mail1005.cent> Dear Steve and all, in version 5.6 the query file format has changed to remember last query rather than selected records list in previous versions. I used list approach to work with selections (add to existing selection XOR etc.), so msQueryByIndex was used frequently in mapscript. It seems that new approach doesn't work properly with combined and added queries. Is there any reason why it is changed now? How the results are stored when I add attribute query to queryByIndex etc. ? Thank you Stepan Kafka Help Service Remote Sensing e-mail: kafka at email.cz From tspradley at snoogems.com Thu Jan 14 11:50:19 2010 From: tspradley at snoogems.com (Ted Spradley) Date: Thu, 14 Jan 2010 11:50:19 -0800 (PST) Subject: [mapserver-users] 5.6.1 - GetFeatureInfo - template processing In-Reply-To: <1263487306651-4393728.post@n2.nabble.com> References: <1263487306651-4393728.post@n2.nabble.com> Message-ID: <1263498619111-4394911.post@n2.nabble.com> Ted Spradley wrote: > > Hi everyone, > > In version 5.4.1 the following GetFeatureInfo request url produced a table > described by templates for the > layer 'bldg_query' described below. With ver 5.6.1, Mapserver outputs > only the template from the > mapfile's WEB object (with no query results or image). > > Do you have any idea of changes to make? To the request format? To the > mapfile? > Well Ted, re-read the migration guide carefully and think about the implications of the following: >From the migration guide for 5.6.1: > ------------------------------------------------- > Change of mime-type for the imagemap outputformat > ------------------------------------------------- > > RFC 36 added support for templated outptformats, but this new feature > was not available for WMS GetFeatureInfo ouptut (see ticket #3024). > In MapServer 5.6 this has been resolved by implementing lookup of output > formats for query templates by mime-type. However this caused a conflict > for the text/html mime-type between the actual text/html query > templates and the preconfigured imagemap outputformat which also used the > text/html mime-type. > > In order to resolve this conflict, the mime-type of the imagemap > outputformat > has been changed to "text/html; driver=imagemap". This is unlikely to > cause > much side-effects to existing applications, but the change is documented > here > just in case. > Sorry guys! I left out part of the map file that I didn't think was relevant but definitely is. I had an OUTPUTFORMAT that I was using for a related, but different part of the application. OUTPUTFORMAT NAME 'selected_parcel' DRIVER 'TEMPLATE' MIMETYPE 'text/html' FORMATOPTION 'FILE=selected_parcel.tmpl' END Changing MIMETYPE 'text/html' to MIMETYPE 'text/html; driver=imagemap' resolved the issue. Now our GetFeatureInfo request queries return in the order given in the WMS LAYERS parameter! Have a good day all! ----- Thank you, Ted S MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Linux/Fedora7 -- View this message in context: http://n2.nabble.com/5-6-1-GetFeatureInfo-template-processing-tp4393728p4394911.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dave.potts at pinan.co.uk Thu Jan 14 11:51:12 2010 From: dave.potts at pinan.co.uk (Dave Potts) Date: Thu, 14 Jan 2010 19:51:12 +0000 Subject: [mapserver-users] MapServer with JBOSS In-Reply-To: References: Message-ID: <4B4F75B0.4020909@pinan.co.uk> Flavio Souza wrote: Yes its possible but there are problem depending on your platform type. Jboss expects everything to be packaged up as a jar file, when these are expanded on a Linux/Unix system, set to mode 644, ie rw for owner and readable for everybody else. Since the map server program is a binary, after jboss has deployed your mapserver application, you must manual turn the execute bit on. The problem is finding out where jboss has place your application. You also have to enabled the cgi setting for the tomcat process, its burried away in one of the many xml files. > Hello again > > Anyone knows if is it possible , to use MapServer with JBOSS ? > > Thanks in advance > > Fl?vio Souza > > > _______________________________ > Fl?vio Souza > (021) 7629-4249 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From woodbri at swoodbridge.com Thu Jan 14 12:23:32 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 14 Jan 2010 15:23:32 -0500 Subject: [mapserver-users] [Fwd: WMSGetFeatureInfo with Mapserver] Message-ID: <4B4F7D44.4080900@swoodbridge.com> Stella, I forwarded this to the lists because there are more people there that might be able to help. If you are not signup to these lists I recommend that you sign up. mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users Users mailing list Users at openlayers.org http://openlayers.org/mailman/listinfo/users -Steve -------- Original Message -------- Subject: WMSGetFeatureInfo with Mapserver Date: Thu, 14 Jan 2010 15:57:34 -0300 From: stela anders To: woodbri at swoodbridge.com Hello! I?m trying to implement tha sample : http://dev.openlayers.org/releases/OpenLayers-2.8/examples/getfeatureinfo-control.html with mapserver... But I kind of lost... Could you send-me any sample how to do that? And is possible to use a BOX instead a POINT to query? Thanks for the help Stella From geomartino at gmail.com Thu Jan 14 13:48:43 2010 From: geomartino at gmail.com (Martin Ouellet) Date: Thu, 14 Jan 2010 16:48:43 -0500 Subject: [mapserver-users] Fwd: Strange behavior for a truetype symbol render.. In-Reply-To: <28d70b140912040534j1bf7f5aq7ec8d92d3c604ee0@mail.gmail.com> References: <28d70b140912040534j1bf7f5aq7ec8d92d3c604ee0@mail.gmail.com> Message-ID: <28d70b141001141348y6d038508u152e77aa56f0d76f@mail.gmail.com> 2 new elements. ->The problem occur only in FireFox (OK in IE dans Chrome) ->The problem is related to the wingding true font (no problem with arial) Did someone experiment similar behavior? MartinO ---------- Forwarded message ---------- From: Martin Ouellet Date: 2009/12/4 Subject: Strange behavior for a truetype symbol render.. To: mapserver-users Hi there, I have two symbol definition in my mapfile: SYMBOL NAME 'baisse' TYPE TRUETYPE FONT "windg3" #CHARACTER "?" CHARACTER "È" END SYMBOL NAME 'hausse' TYPE TRUETYPE FONT "windg3" #CHARACTER "?" CHARACTER "Ç" END While moving the map around (and without making any changes in the mapfile or in js code), sometime Mapserver is drawing the arrow up symbol (hausse), and the other time, the arrow down symbol (baisse). See attachment for this strange display. In both case, the symbol who's not displayed correctly is replaced with a little box in the center of the circle. Here the 2 WMS call behind it (identical but BBOX is different) http:// /cgi-wms/adnInternet?LAYERS=ADN_STATION&TRANSPARENT=true&FORMAT=image%2Fpng&ISBASELAYER=false&VISIBILITY=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=-8357644.0084038,5691908.0497863,-7868447.0274662,6038014.9137997&WIDTH=800&HEIGHT=566 http:// /cgi-wms/adnInternet?LAYERS=ADN_STATION&TRANSPARENT=true&FORMAT=image%2Fpng&ISBASELAYER=false&VISIBILITY=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=-8451202.9310082,5636261.8932047,-7962005.9500706,5982368.7572181&WIDTH=800&HEIGHT=566 Any tought why this happen? MartinO -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: arrow_up2.GIF Type: image/gif Size: 8143 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: arrow_down2.GIF Type: image/gif Size: 8894 bytes Desc: not available URL: From hatedau at yahoo.com Thu Jan 14 15:35:41 2010 From: hatedau at yahoo.com (Lee) Date: Thu, 14 Jan 2010 15:35:41 -0800 (PST) Subject: [mapserver-users] Change mapfile from html form Message-ID: <838801.84966.qm@web112318.mail.gq1.yahoo.com> Greetings, ? In a mapfile I have the following layer in my mapfile: ? LAYER ? NAME 'BOUNDARY' ? TYPE?POLYGON ? FEATURE ? STATUS?OFF ? CLASS ??? NAME 'Search Boundary' ??? OUTLINECOLOR 0 230 255 ? END? # CLASS END??? # Layer ? In Mapserver 4 I was able to create a polygon from a form using the following html tags: ? ? In Mapserver 5 it is not working.? Any suggestions would be greatly appreciated. ? Thanks ? Lee From Steve.Lime at state.mn.us Thu Jan 14 15:44:55 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 14 Jan 2010 17:44:55 -0600 Subject: [mapserver-users] new query file format In-Reply-To: <1263493371.786353.17553.nullmailer@mail1005.cent> References: <1263493371.786353.17553.nullmailer@mail1005.cent> Message-ID: Hi Stepan: The query performance improvements for the database drivers come from referring to features within a result set as we process query results. Previously, we referred to features globally and that is terribly inefficient in some cases, and that's why the old query files stored global feature indexes. Under the new querying scheme this simply won't work without the underlying query result set. The new scheme stores information necessary to redo a query and nothing more. How you might recreate the old approach with MapScript 5.6.1 depends on your data store. With shapefiles, the index values stored in a result cache are suitable for use msQueryByIndex() as is. With a database source you need to work with a primary key and are probably best off working through msQueryByAttribute() instead. Perhaps Paul Ramsey can comment on whether or not the overall row number is somehow retrievable from a query result so that msQueryByIndex() could indeed be used, I don't think it is. In either case you'd need to serialize/unserialize your result list or hash yourself, msSaveQuery()/msLoadQuery() doesn't do it for you. Does this help? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of stepan.kafka at centrum.cz Sent: Thursday, January 14, 2010 12:23 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] new query file format Dear Steve and all, in version 5.6 the query file format has changed to remember last query rather than selected records list in previous versions. I used list approach to work with selections (add to existing selection XOR etc.), so msQueryByIndex was used frequently in mapscript. It seems that new approach doesn't work properly with combined and added queries. Is there any reason why it is changed now? How the results are stored when I add attribute query to queryByIndex etc. ? Thank you Stepan Kafka Help Service Remote Sensing e-mail: kafka at email.cz _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From sandeepk.tech at gmail.com Thu Jan 14 20:19:28 2010 From: sandeepk.tech at gmail.com (Sandeep Kumar Chauhan) Date: Thu, 14 Jan 2010 20:19:28 -0800 (PST) Subject: [mapserver-users] 5.6.1 Postgis problem In-Reply-To: <4B4F2E0A.6070804@swoodbridge.com> References: <1263471683507-4392177.post@n2.nabble.com> <4B4F2E0A.6070804@swoodbridge.com> Message-ID: <1263529168486-4396971.post@n2.nabble.com> Hi Steve, Thanks for reply. What I was trying to say was ... I was using mapscript (csharp) 5.4.1 earlier for my customize application. For performing Identify operation I was using following code... ... ... if (layer.queryByPoint(Map, point, (int)mapscript.MS_SINGLE, tolerance) == ... { resultCacheObj result = layer.getResults(); if (result.numresults > 0) { int shapeInd = result.getResult(0).shapeindex; ... ... ... It was working perfectly fine. Few days back I compiled 5.6.0 on my system. It was not working in expected way in case of postGIS dataset. Value returned every time for ShapeIndex was either 0 or 1, even though I had more than 1000 features in my dataset. I tried to use 5.6.1 as well but was not able to get correct results. I swap mappostgis.c of 5.6.1 with that of 5.4.1, and recompiled everything. I got expected results. Please advice if my compilation is wrong or it is a bug in 5.6.x? I am using postgresql-8.3.7 for compilation. Thanks, -Sandeep _______________________________________________ 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/5-6-1-Postgis-problem-tp4392177p4396971.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Thu Jan 14 20:24:34 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 14 Jan 2010 23:24:34 -0500 Subject: [mapserver-users] 5.6.1 Postgis problem In-Reply-To: <1263529168486-4396971.post@n2.nabble.com> References: <1263471683507-4392177.post@n2.nabble.com> <4B4F2E0A.6070804@swoodbridge.com> <1263529168486-4396971.post@n2.nabble.com> Message-ID: <4B4FEE02.3070401@swoodbridge.com> Ah, that was much more helpful and I have an answer ... There was just another thread about query in mapscript that Steve Lime responded to. In 5.6 (read the migration guide) there have been big changes to the the query code and things work differently now. I don't have all the details on the top of my head, but look in the archives for today. -Steve W Sandeep Kumar Chauhan wrote: > Hi Steve, > > Thanks for reply. What I was trying to say was ... > I was using mapscript (csharp) 5.4.1 earlier for my customize application. > For performing Identify operation I was using following code... > > ... > ... > if (layer.queryByPoint(Map, point, (int)mapscript.MS_SINGLE, tolerance) == > ... > { > resultCacheObj result = layer.getResults(); > if (result.numresults > 0) > { > > int shapeInd = result.getResult(0).shapeindex; > ... > ... > ... > It was working perfectly fine. Few days back I compiled 5.6.0 on my system. > It was not working in expected way in case of postGIS dataset. Value > returned every time for ShapeIndex was either 0 or 1, even though I had more > than 1000 features in my dataset. I tried to use 5.6.1 as well but was not > able to get correct results. > > I swap mappostgis.c of 5.6.1 with that of 5.4.1, and recompiled everything. > I got expected results. > > Please advice if my compilation is wrong or it is a bug in 5.6.x? I am using > postgresql-8.3.7 for compilation. > > > Thanks, > -Sandeep > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From Steve.Lime at state.mn.us Thu Jan 14 21:33:51 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 14 Jan 2010 23:33:51 -0600 Subject: [mapserver-users] Change mapfile from html form In-Reply-To: <838801.84966.qm@web112318.mail.gq1.yahoo.com> References: <838801.84966.qm@web112318.mail.gq1.yahoo.com> Message-ID: Lot's of changes in the syntax when altering a mapfile by URL since the 4.x series. Try: map.layer[BOUNDARY]=POINTS+434844.80 4522838.00 434840.17 4522890.93 434826.42 4522942.25 434803.96 4522990.40 434844.80 4522838.00+END I think that should work. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lee [hatedau at yahoo.com] Sent: Thursday, January 14, 2010 5:35 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Change mapfile from html form Greetings, In a mapfile I have the following layer in my mapfile: LAYER NAME 'BOUNDARY' TYPE POLYGON FEATURE STATUS OFF CLASS NAME 'Search Boundary' OUTLINECOLOR 0 230 255 END # CLASS END # Layer In Mapserver 4 I was able to create a polygon from a form using the following html tags: In Mapserver 5 it is not working. Any suggestions would be greatly appreciated. Thanks Lee _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From oliver.christen at camptocamp.com Thu Jan 14 23:07:09 2010 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Fri, 15 Jan 2010 08:07:09 +0100 Subject: [mapserver-users] symbol circle (ellipse) rendered not round but oval References: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> <5C90B99F1D0C4CA0967B92FBEDBCE59F@maunakea> <8106afb31001130108u3da74aa3i7fb1b727300687d2@mail.gmail.com> <4B4E0057.4020407@umb.no> <830CA97B19EB45F993FB4AAB7AE86131@maunakea> <4B4F2601.1070700@swoodbridge.com> <4B4F45A4.7090502@umb.no> <4B4F5387.4050700@swoodbridge.com> <4B4F590A.7010805@umb.no> Message-ID: <43B2F382C3734D2489E97DAB7BB9FF92@maunakea> mmm, in my opinion it would be clearer if the GAP didnt depend from anything, set the GAP to 10 would make you a spacing of 10px between each symbols border, whatever the values of the symbol POINTS. but that may be a change too important ? Oliver > Stephen Woodbridge wrote: >> So if I want ten pixel ellipses with a 1, 2, or 3 pixels gap how would >> you specify that? >> >> points 10 10 gap 1 (or 2 or 3)? > > Yes, if the rendering behaviour had been according to my > preferences, > POINTS 10 10 END > GAP 1 (or 2 or 3) > should do it (if you had specified SIZE 10 in the STYLE). > You specify the gap, and not the centre to centre distance > between the ellipses. > > But currently, this is not the behaviour. > Currently (with AGG in 5.6.0) you would have to specify: > POINTS 10 10 END > GAP 6 (or 7 or 8) > to get something close (if you specify SIZE 10 in the STYLE). > > Something seems to be wrong when the GAP is close to > half the diameter specified in POINTS - some of the gaps > will be as expected, while others are larger (closer to the > actual number specified in GAP). > > H?vard > >> >> -Steve W >> >> Havard Tveite wrote: >>> If Thomas B. agrees, I think it would be reasonable to also >>> open a bug on the gap calculation. >>> In my opinion, since the word "gap" is used, the correct >>> way to specify a symbol with ellipses that has the same >>> gap between them as the diameter of the ellipses should be >>> as follows: >>> >>> symbol >>> name dots >>> type ellipse >>> points 1 1 end >>> gap 1 >>> end >>> >>> or an equivalent "scaled" version such as: >>> >>> symbol >>> name dots >>> type ellipse >>> points 23 23 end >>> gap 23 >>> end >>> >>> The actual size of the ellipses (and the width of the gaps) >>> should be determined by the SIZE in CLASS-> STYLE. If >>> SIZE is 10, the ellipses should have a 10 pixel diameter >>> (and should have a 10 pixel gap between them). >>> >>> I have been hesitant to file bugs regarding symbology, since >>> the documentation on symbology is lacking and there is not >>> complete agreement on how some of the things that has to do >>> with symbology should work. There have also been >>> discussions on changing some behaviour and mechanisms for >>> symbology. >>> First we have to agree on how things should work and document >>> it, then we can file bugs if behaviour is not as expected. >>> >>> H?vard >>> >>> Oliver Christen wrote: >>>> Hi Steve >>>> >>>> I followed your suggestion and opened a documentation bug >>>> >>>> thanks >>>> Oliver >>>> >>>>> Hi guys, >>>>> >>>>> I haven't followed this whole thread but I think it should be better >>>>> documented so people can understand how to use this. Please write a >>>>> doc bug and put as much information in the bug about how this works as >>>>> you have been able to discover. >>>>> >>>>> Thanks, >>>>> -Steve W >>>>> >>>>> Oliver Christen wrote: >>>>>> Thank you H?vard >>>>>> I see you have changed "points 1 1 end" by "points 8 8 end". >>>>>> Tell me if im wrong, but these values are only used to render the >>>>>> proportions of the elipse but not it's size, is that correct? >>>>>> so if I understand correctly, using larger values for the elipse >>>>>> width/height refine the rendering of the vectorised dot geometry ? >>>>>> >>>>>> regards >>>>>> Oliver >>>>>> >>>>>>> Dear Oliver Christen, >>>>>>> >>>>>>> Using Mapserver 5.6.0 and AGG rendering, you can achieve what >>>>>>> you want by using a combination of ellipse size and gap size >>>>>>> in the symbol definition. >>>>>>> There is something strange in the calculations (a gap of >>>>>>> about half the ellipse size seems to produce touching symbols), >>>>>>> so in your case, you could try to use 8 as the diameter of the >>>>>>> ellipses, and 20 + 4 (half the ellipse size) = 24 as the >>>>>>> gap: >>>>>>> >>>>>>> symbol >>>>>>> name dots >>>>>>> type ellipse >>>>>>> points 8 8 end >>>>>>> gap 24 >>>>>>> end >>>>>>> >>>>>>> >>>>>>> H?vard >>>>>>> >>>>>>> Oliver Christen wrote: >>>>>>>> thank you Thomas >>>>>>>> >>>>>>>> so if I have a dot of, for example, 8px and I want a space pf 20px >>>>>>>> between the dots, I need a gap of 20/8 = 2.5 >>>>>>>> >>>>>>>> but as far as I can see, Mapserver doesnt like none-integer value >>>>>>>> for gap. >>>>>>>> >>>>>>>> what should I do? :( >>>>>>>> >>>>>>>> 2010/1/12 thomas bonfort >>>>>>> > >>>>>>>> >>>>>>>> gap in pixels = symbol->gap * style->size >>>>>>>> >>>>>>>> >>>>>>>> On Tue, Jan 12, 2010 at 16:52, Oliver Christen >>>>>>>> >>>>>>> > wrote: >>>>>>>> >>>>>>>> GAP 20 is really giving unwanted result: >>>>>>>> http://dev.camptocamp.com/~ochriste/tilecache9.png >>>>>>>> >>>>>>>> though using only one style instead of two seems to solve >>>>>>>> the >>>>>>>> oval problem (but why ???) >>>>>>>> style >>>>>>>> symbol "dots" >>>>>>>> size 8 >>>>>>>> color 204 102 0 >>>>>>>> outlinecolor 102 51 0 >>>>>>>> end >>>>>>>> I dont understand how GAP is supposed working: >>>>>>>> with GAP 2, I had ~10px between dots, >>>>>>>> with GAP 3, I had ~18px between dots, >>>>>>>> with GAP 4, I had ~26px between dots >>>>>>>> whats the logic ? >>>>>>>> >>>>>>>> ----- Original Message ----- >>>>>>>> *From:* thomas bonfort >>>>>>>> >>>>>>>> *To:* Oliver Christen >>>>>>>> >>>>>>>> *Cc:* mapserver-users at lists.osgeo.org >>>>>>>> >>>>>>>> *Sent:* Tuesday, January 12, 2010 4:36 PM >>>>>>>> *Subject:* Re: [mapserver-users] symbol circle >>>>>>>> (ellipse) >>>>>>>> rendered not round but oval >>>>>>>> >>>>>>>> symbol >>>>>>>> name dots >>>>>>>> type ellipse >>>>>>>> points 1 1 end >>>>>>>> gap 20 >>>>>>>> end >>>>>>>> >>>>>>>> ... >>>>>>>> >>>>>>>> style >>>>>>>> symbol "dots" >>>>>>>> size 8 >>>>>>>> color r g b >>>>>>>> outlinecolor r g b >>>>>>>> end >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Tue, Jan 12, 2010 at 16:31, Oliver Christen >>>>>>>> >>>>>>> > wrote: >>>>>>>> >>>>>>>> Hi Thomas :) >>>>>>>> thanks for the answer, but sadely it didnt solve >>>>>>>> my problem: >>>>>>>> here are a few tests I did: >>>>>>>> using GAP 20 gave me really weird result: >>>>>>>> >>>>>>>> http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png >>>>>>>> >>>>>>>> >>>>>>>> using PATTERN 1 22 END gave me better result, but >>>>>>>> the >>>>>>>> dot are still slightly oval: >>>>>>>> >>>>>>>> http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png >>>>>>>> >>>>>>>> >>>>>>>> I wondered if the visual effect may have come from >>>>>>>> the >>>>>>>> fact im pilling up two circle one over the other, >>>>>>>> but >>>>>>>> even when trying to display only the outer or inner >>>>>>>> circles, the circle are still slightly off: >>>>>>>> >>>>>>>> http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png >>>>>>>> >>>>>>>> >>>>>>>> (both at once >>>>>>>> >>>>>>>> http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png >>>>>>>> >>>>>>>> ) >>>>>>>> any other idea? ^_^ >>>>>>>> >>>>>>>> ----- Original Message ----- >>>>>>>> *From:* thomas bonfort >>>>>>>> >>>>>>>> *To:* Oliver Christen >>>>>>>> >>>>>>>> *Cc:* mapserver-users at lists.osgeo.org >>>>>>>> >>>>>>>> *Sent:* Tuesday, January 12, 2010 3:18 PM >>>>>>>> *Subject:* Re: [mapserver-users] symbol circle >>>>>>>> (ellipse) rendered not round but oval >>>>>>>> >>>>>>>> hi Oliver :) >>>>>>>> >>>>>>>> try with GAP 20 instead of STYLE 1 20 END >>>>>>>> (which is >>>>>>>> deprecated btw, use PATTERN now) >>>>>>>> >>>>>>>> cheers, >>>>>>>> thomas >>>>>>>> >>>>>>>> On Tue, Jan 12, 2010 at 15:04, Oliver Christen >>>>>>>> >>>>>>> > wrote: >>>>>>>> >>>>>>>> hello >>>>>>>> >>>>>>>> I have a weird problem with symbology. >>>>>>>> Im rendering a line with dots, but the dots >>>>>>>> are >>>>>>>> not round but slightly oval, see image >>>>>>>> >>>>>>>> http://dev.camptocamp.com/~ochriste/tilecache.png >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Any idea what could be the cause ? >>>>>>>> >>>>>>>> Here is my symbol definition: >>>>>>>> >>>>>>>> SYMBOL >>>>>>>> NAME "linie-gepunkt10" >>>>>>>> TYPE ELLIPSE >>>>>>>> POINTS >>>>>>>> 1 1 >>>>>>>> END >>>>>>>> STYLE >>>>>>>> 1 20 >>>>>>>> END >>>>>>>> FILLED TRUE >>>>>>>> END >>>>>>>> >>>>>>>> and my layer's class definition: >>>>>>>> >>>>>>>> CLASS >>>>>>>> EXPRESSION "3" >>>>>>>> MAXSCALEDENOM 200001 >>>>>>>> STYLE >>>>>>>> SYMBOL "linie-gepunkt10" >>>>>>>> SIZE 10 >>>>>>>> COLOR 102 51 0 >>>>>>>> END >>>>>>>> STYLE >>>>>>>> SYMBOL "linie-gepunkt10" >>>>>>>> SIZE 8 >>>>>>>> COLOR 204 102 0 >>>>>>>> END >>>>>>>> END >>>>>>>> >>>>>>>> and the map outputformat: >>>>>>>> >>>>>>>> OUTPUTFORMAT >>>>>>>> NAME png >>>>>>>> DRIVER "AGG/PNG" >>>>>>>> MIMETYPE "image/png" >>>>>>>> IMAGEMODE RGBA >>>>>>>> EXTENSION "png" >>>>>>>> FORMATOPTION "INTERLACE=OFF" >>>>>>>> END >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> mapserver-users mailing list >>>>>>>> mapserver-users at lists.osgeo.org >>>>>>>> >>>>>>>> >>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> -- >>>>>>> H?vard Tveite >>>>>>> Department of Mathematical Sciences and Technology, UMB >>>>>>> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY >>>>>>> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ >>>>>>> >>>>>> _______________________________________________ >>>>>> 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 >>>> >> >> > > -- > H?vard Tveite > Department of Mathematical Sciences and Technology, UMB > Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY > Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ > From havard.tveite at umb.no Fri Jan 15 00:05:15 2010 From: havard.tveite at umb.no (Havard Tveite) Date: Fri, 15 Jan 2010 09:05:15 +0100 Subject: [mapserver-users] symbol circle (ellipse) rendered not round but oval In-Reply-To: <43B2F382C3734D2489E97DAB7BB9FF92@maunakea> References: <19D4ADAACF404A73B990DBDAE4ACDE0E@maunakea> <5C90B99F1D0C4CA0967B92FBEDBCE59F@maunakea> <8106afb31001130108u3da74aa3i7fb1b727300687d2@mail.gmail.com> <4B4E0057.4020407@umb.no> <830CA97B19EB45F993FB4AAB7AE86131@maunakea> <4B4F2601.1070700@swoodbridge.com> <4B4F45A4.7090502@umb.no> <4B4F5387.4050700@swoodbridge.com> <4B4F590A.7010805@umb.no> <43B2F382C3734D2489E97DAB7BB9FF92@maunakea> Message-ID: <4B5021BB.70401@umb.no> I think it is very important that there is a strong relationship between the size of the symbols and the spacing between the symbols. That makes scalable patterned symbols possible. So I am happy with the current (intended) behaviour. What is needed is good documentation with examples. I think that there is work in progress on changing some of the mechanisms for symbology in Mapserver. When this work has been "finalised" I will be more than willing to contribute to the documentation. H?vard Oliver Christen wrote: > mmm, in my opinion it would be clearer if the GAP didnt depend from > anything, set the GAP to 10 would make you a spacing of 10px between each > symbols border, whatever the values of the symbol POINTS. > but that may be a change too important ? > > Oliver > >> Stephen Woodbridge wrote: >>> So if I want ten pixel ellipses with a 1, 2, or 3 pixels gap how would >>> you specify that? >>> >>> points 10 10 gap 1 (or 2 or 3)? >> Yes, if the rendering behaviour had been according to my >> preferences, >> POINTS 10 10 END >> GAP 1 (or 2 or 3) >> should do it (if you had specified SIZE 10 in the STYLE). >> You specify the gap, and not the centre to centre distance >> between the ellipses. >> >> But currently, this is not the behaviour. >> Currently (with AGG in 5.6.0) you would have to specify: >> POINTS 10 10 END >> GAP 6 (or 7 or 8) >> to get something close (if you specify SIZE 10 in the STYLE). >> >> Something seems to be wrong when the GAP is close to >> half the diameter specified in POINTS - some of the gaps >> will be as expected, while others are larger (closer to the >> actual number specified in GAP). >> >> H?vard >> >>> -Steve W >>> >>> Havard Tveite wrote: >>>> If Thomas B. agrees, I think it would be reasonable to also >>>> open a bug on the gap calculation. >>>> In my opinion, since the word "gap" is used, the correct >>>> way to specify a symbol with ellipses that has the same >>>> gap between them as the diameter of the ellipses should be >>>> as follows: >>>> >>>> symbol >>>> name dots >>>> type ellipse >>>> points 1 1 end >>>> gap 1 >>>> end >>>> >>>> or an equivalent "scaled" version such as: >>>> >>>> symbol >>>> name dots >>>> type ellipse >>>> points 23 23 end >>>> gap 23 >>>> end >>>> >>>> The actual size of the ellipses (and the width of the gaps) >>>> should be determined by the SIZE in CLASS-> STYLE. If >>>> SIZE is 10, the ellipses should have a 10 pixel diameter >>>> (and should have a 10 pixel gap between them). >>>> >>>> I have been hesitant to file bugs regarding symbology, since >>>> the documentation on symbology is lacking and there is not >>>> complete agreement on how some of the things that has to do >>>> with symbology should work. There have also been >>>> discussions on changing some behaviour and mechanisms for >>>> symbology. >>>> First we have to agree on how things should work and document >>>> it, then we can file bugs if behaviour is not as expected. >>>> >>>> H?vard >>>> >>>> Oliver Christen wrote: >>>>> Hi Steve >>>>> >>>>> I followed your suggestion and opened a documentation bug >>>>> >>>>> thanks >>>>> Oliver >>>>> >>>>>> Hi guys, >>>>>> >>>>>> I haven't followed this whole thread but I think it should be better >>>>>> documented so people can understand how to use this. Please write a >>>>>> doc bug and put as much information in the bug about how this works as >>>>>> you have been able to discover. >>>>>> >>>>>> Thanks, >>>>>> -Steve W >>>>>> >>>>>> Oliver Christen wrote: >>>>>>> Thank you H?vard >>>>>>> I see you have changed "points 1 1 end" by "points 8 8 end". >>>>>>> Tell me if im wrong, but these values are only used to render the >>>>>>> proportions of the elipse but not it's size, is that correct? >>>>>>> so if I understand correctly, using larger values for the elipse >>>>>>> width/height refine the rendering of the vectorised dot geometry ? >>>>>>> >>>>>>> regards >>>>>>> Oliver >>>>>>> >>>>>>>> Dear Oliver Christen, >>>>>>>> >>>>>>>> Using Mapserver 5.6.0 and AGG rendering, you can achieve what >>>>>>>> you want by using a combination of ellipse size and gap size >>>>>>>> in the symbol definition. >>>>>>>> There is something strange in the calculations (a gap of >>>>>>>> about half the ellipse size seems to produce touching symbols), >>>>>>>> so in your case, you could try to use 8 as the diameter of the >>>>>>>> ellipses, and 20 + 4 (half the ellipse size) = 24 as the >>>>>>>> gap: >>>>>>>> >>>>>>>> symbol >>>>>>>> name dots >>>>>>>> type ellipse >>>>>>>> points 8 8 end >>>>>>>> gap 24 >>>>>>>> end >>>>>>>> >>>>>>>> >>>>>>>> H?vard >>>>>>>> >>>>>>>> Oliver Christen wrote: >>>>>>>>> thank you Thomas >>>>>>>>> >>>>>>>>> so if I have a dot of, for example, 8px and I want a space pf 20px >>>>>>>>> between the dots, I need a gap of 20/8 = 2.5 >>>>>>>>> >>>>>>>>> but as far as I can see, Mapserver doesnt like none-integer value >>>>>>>>> for gap. >>>>>>>>> >>>>>>>>> what should I do? :( >>>>>>>>> >>>>>>>>> 2010/1/12 thomas bonfort >>>>>>>> > >>>>>>>>> >>>>>>>>> gap in pixels = symbol->gap * style->size >>>>>>>>> >>>>>>>>> >>>>>>>>> On Tue, Jan 12, 2010 at 16:52, Oliver Christen >>>>>>>>> >>>>>>>> > wrote: >>>>>>>>> >>>>>>>>> GAP 20 is really giving unwanted result: >>>>>>>>> http://dev.camptocamp.com/~ochriste/tilecache9.png >>>>>>>>> >>>>>>>>> though using only one style instead of two seems to solve >>>>>>>>> the >>>>>>>>> oval problem (but why ???) >>>>>>>>> style >>>>>>>>> symbol "dots" >>>>>>>>> size 8 >>>>>>>>> color 204 102 0 >>>>>>>>> outlinecolor 102 51 0 >>>>>>>>> end >>>>>>>>> I dont understand how GAP is supposed working: >>>>>>>>> with GAP 2, I had ~10px between dots, >>>>>>>>> with GAP 3, I had ~18px between dots, >>>>>>>>> with GAP 4, I had ~26px between dots >>>>>>>>> whats the logic ? >>>>>>>>> >>>>>>>>> ----- Original Message ----- >>>>>>>>> *From:* thomas bonfort >>>>>>>>> >>>>>>>>> *To:* Oliver Christen >>>>>>>>> >>>>>>>>> *Cc:* mapserver-users at lists.osgeo.org >>>>>>>>> >>>>>>>>> *Sent:* Tuesday, January 12, 2010 4:36 PM >>>>>>>>> *Subject:* Re: [mapserver-users] symbol circle >>>>>>>>> (ellipse) >>>>>>>>> rendered not round but oval >>>>>>>>> >>>>>>>>> symbol >>>>>>>>> name dots >>>>>>>>> type ellipse >>>>>>>>> points 1 1 end >>>>>>>>> gap 20 >>>>>>>>> end >>>>>>>>> >>>>>>>>> ... >>>>>>>>> >>>>>>>>> style >>>>>>>>> symbol "dots" >>>>>>>>> size 8 >>>>>>>>> color r g b >>>>>>>>> outlinecolor r g b >>>>>>>>> end >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Tue, Jan 12, 2010 at 16:31, Oliver Christen >>>>>>>>> >>>>>>>> > wrote: >>>>>>>>> >>>>>>>>> Hi Thomas :) >>>>>>>>> thanks for the answer, but sadely it didnt solve >>>>>>>>> my problem: >>>>>>>>> here are a few tests I did: >>>>>>>>> using GAP 20 gave me really weird result: >>>>>>>>> >>>>>>>>> http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png >>>>>>>>> >>>>>>>>> >>>>>>>>> using PATTERN 1 22 END gave me better result, but >>>>>>>>> the >>>>>>>>> dot are still slightly oval: >>>>>>>>> >>>>>>>>> http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png >>>>>>>>> >>>>>>>>> >>>>>>>>> I wondered if the visual effect may have come from >>>>>>>>> the >>>>>>>>> fact im pilling up two circle one over the other, >>>>>>>>> but >>>>>>>>> even when trying to display only the outer or inner >>>>>>>>> circles, the circle are still slightly off: >>>>>>>>> >>>>>>>>> http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png >>>>>>>>> >>>>>>>>> >>>>>>>>> (both at once >>>>>>>>> >>>>>>>>> http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png >>>>>>>>> >>>>>>>>> ) >>>>>>>>> any other idea? ^_^ >>>>>>>>> >>>>>>>>> ----- Original Message ----- >>>>>>>>> *From:* thomas bonfort >>>>>>>>> >>>>>>>>> *To:* Oliver Christen >>>>>>>>> >>>>>>>>> *Cc:* mapserver-users at lists.osgeo.org >>>>>>>>> >>>>>>>>> *Sent:* Tuesday, January 12, 2010 3:18 PM >>>>>>>>> *Subject:* Re: [mapserver-users] symbol circle >>>>>>>>> (ellipse) rendered not round but oval >>>>>>>>> >>>>>>>>> hi Oliver :) >>>>>>>>> >>>>>>>>> try with GAP 20 instead of STYLE 1 20 END >>>>>>>>> (which is >>>>>>>>> deprecated btw, use PATTERN now) >>>>>>>>> >>>>>>>>> cheers, >>>>>>>>> thomas >>>>>>>>> >>>>>>>>> On Tue, Jan 12, 2010 at 15:04, Oliver Christen >>>>>>>>> >>>>>>>> > wrote: >>>>>>>>> >>>>>>>>> hello >>>>>>>>> >>>>>>>>> I have a weird problem with symbology. >>>>>>>>> Im rendering a line with dots, but the dots >>>>>>>>> are >>>>>>>>> not round but slightly oval, see image >>>>>>>>> >>>>>>>>> http://dev.camptocamp.com/~ochriste/tilecache.png >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> Any idea what could be the cause ? >>>>>>>>> >>>>>>>>> Here is my symbol definition: >>>>>>>>> >>>>>>>>> SYMBOL >>>>>>>>> NAME "linie-gepunkt10" >>>>>>>>> TYPE ELLIPSE >>>>>>>>> POINTS >>>>>>>>> 1 1 >>>>>>>>> END >>>>>>>>> STYLE >>>>>>>>> 1 20 >>>>>>>>> END >>>>>>>>> FILLED TRUE >>>>>>>>> END >>>>>>>>> >>>>>>>>> and my layer's class definition: >>>>>>>>> >>>>>>>>> CLASS >>>>>>>>> EXPRESSION "3" >>>>>>>>> MAXSCALEDENOM 200001 >>>>>>>>> STYLE >>>>>>>>> SYMBOL "linie-gepunkt10" >>>>>>>>> SIZE 10 >>>>>>>>> COLOR 102 51 0 >>>>>>>>> END >>>>>>>>> STYLE >>>>>>>>> SYMBOL "linie-gepunkt10" >>>>>>>>> SIZE 8 >>>>>>>>> COLOR 204 102 0 >>>>>>>>> END >>>>>>>>> END >>>>>>>>> >>>>>>>>> and the map outputformat: >>>>>>>>> >>>>>>>>> OUTPUTFORMAT >>>>>>>>> NAME png >>>>>>>>> DRIVER "AGG/PNG" >>>>>>>>> MIMETYPE "image/png" >>>>>>>>> IMAGEMODE RGBA >>>>>>>>> EXTENSION "png" >>>>>>>>> FORMATOPTION "INTERLACE=OFF" >>>>>>>>> END >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> mapserver-users mailing list >>>>>>>>> mapserver-users at lists.osgeo.org >>>>>>>>> >>>>>>>>> >>>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> -- >>>>>>>> H?vard Tveite >>>>>>>> Department of Mathematical Sciences and Technology, UMB >>>>>>>> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY >>>>>>>> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ >>>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 >>>>> >>> >> -- >> H?vard Tveite >> Department of Mathematical Sciences and Technology, UMB >> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY >> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ >> > > -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ From Jukka.Rahkonen at mmmtike.fi Fri Jan 15 01:03:43 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 15 Jan 2010 11:03:43 +0200 Subject: [mapserver-users] symbol circle (ellipse) rendered not roundbut oval In-Reply-To: <4B5021BB.70401@umb.no> References: <43B2F382C3734D2489E97DAB7BB9FF92@maunakea> <4B5021BB.70401@umb.no> Message-ID: Hi, Could there be an alternative to give GAP that is relative to symbol size? Like RELATIVE_GAP=(x*SYMBOLSIZE) where SYMBOLSIZE is the width of a symbol? Should not be too heavy to calculate but would it lead to correct result? -Jukka Rahkonen- > Havard Tveite wrote: > > I think it is very important that there is a strong > relationship between the size of the symbols and the > spacing between the symbols. That makes scalable > patterned symbols possible. So I am happy with the > current (intended) behaviour. > > What is needed is good documentation with examples. I > think that there is work in progress on changing some of > the mechanisms for symbology in Mapserver. When this > work has been "finalised" I will be more than willing > to contribute to the documentation. > > H?vard > > Oliver Christen wrote: > > mmm, in my opinion it would be clearer if the GAP didnt depend from > > anything, set the GAP to 10 would make you a spacing of > 10px between each > > symbols border, whatever the values of the symbol POINTS. > > but that may be a change too important ? > > > > Oliver > > > >> Stephen Woodbridge wrote: > >>> So if I want ten pixel ellipses with a 1, 2, or 3 pixels > gap how would > >>> you specify that? > >>> > >>> points 10 10 gap 1 (or 2 or 3)? > >> Yes, if the rendering behaviour had been according to my > >> preferences, > >> POINTS 10 10 END > >> GAP 1 (or 2 or 3) > >> should do it (if you had specified SIZE 10 in the STYLE). > >> You specify the gap, and not the centre to centre distance > >> between the ellipses. > >> > >> But currently, this is not the behaviour. > >> Currently (with AGG in 5.6.0) you would have to specify: > >> POINTS 10 10 END > >> GAP 6 (or 7 or 8) > >> to get something close (if you specify SIZE 10 in the STYLE). > >> > >> Something seems to be wrong when the GAP is close to > >> half the diameter specified in POINTS - some of the gaps > >> will be as expected, while others are larger (closer to the > >> actual number specified in GAP). > >> > >> H?vard > >> > >>> -Steve W > >>> > >>> Havard Tveite wrote: > >>>> If Thomas B. agrees, I think it would be reasonable to also > >>>> open a bug on the gap calculation. > >>>> In my opinion, since the word "gap" is used, the correct > >>>> way to specify a symbol with ellipses that has the same > >>>> gap between them as the diameter of the ellipses should be > >>>> as follows: > >>>> > >>>> symbol > >>>> name dots > >>>> type ellipse > >>>> points 1 1 end > >>>> gap 1 > >>>> end > >>>> > >>>> or an equivalent "scaled" version such as: > >>>> > >>>> symbol > >>>> name dots > >>>> type ellipse > >>>> points 23 23 end > >>>> gap 23 > >>>> end > >>>> > >>>> The actual size of the ellipses (and the width of the gaps) > >>>> should be determined by the SIZE in CLASS-> STYLE. If > >>>> SIZE is 10, the ellipses should have a 10 pixel diameter > >>>> (and should have a 10 pixel gap between them). > >>>> > >>>> I have been hesitant to file bugs regarding symbology, since > >>>> the documentation on symbology is lacking and there is not > >>>> complete agreement on how some of the things that has to do > >>>> with symbology should work. There have also been > >>>> discussions on changing some behaviour and mechanisms for > >>>> symbology. > >>>> First we have to agree on how things should work and document > >>>> it, then we can file bugs if behaviour is not as expected. > >>>> > >>>> H?vard > >>>> > >>>> Oliver Christen wrote: > >>>>> Hi Steve > >>>>> > >>>>> I followed your suggestion and opened a documentation bug > >>>>> > >>>>> thanks > >>>>> Oliver > >>>>> > >>>>>> Hi guys, > >>>>>> > >>>>>> I haven't followed this whole thread but I think it > should be better > >>>>>> documented so people can understand how to use this. > Please write a > >>>>>> doc bug and put as much information in the bug about > how this works as > >>>>>> you have been able to discover. > >>>>>> > >>>>>> Thanks, > >>>>>> -Steve W > >>>>>> > >>>>>> Oliver Christen wrote: > >>>>>>> Thank you H?vard > >>>>>>> I see you have changed "points 1 1 end" by "points 8 8 end". > >>>>>>> Tell me if im wrong, but these values are only used > to render the > >>>>>>> proportions of the elipse but not it's size, is that correct? > >>>>>>> so if I understand correctly, using larger values for > the elipse > >>>>>>> width/height refine the rendering of the vectorised > dot geometry ? > >>>>>>> > >>>>>>> regards > >>>>>>> Oliver > >>>>>>> > >>>>>>>> Dear Oliver Christen, > >>>>>>>> > >>>>>>>> Using Mapserver 5.6.0 and AGG rendering, you can achieve what > >>>>>>>> you want by using a combination of ellipse size and gap size > >>>>>>>> in the symbol definition. > >>>>>>>> There is something strange in the calculations (a gap of > >>>>>>>> about half the ellipse size seems to produce > touching symbols), > >>>>>>>> so in your case, you could try to use 8 as the > diameter of the > >>>>>>>> ellipses, and 20 + 4 (half the ellipse size) = 24 as the > >>>>>>>> gap: > >>>>>>>> > >>>>>>>> symbol > >>>>>>>> name dots > >>>>>>>> type ellipse > >>>>>>>> points 8 8 end > >>>>>>>> gap 24 > >>>>>>>> end > >>>>>>>> > >>>>>>>> > >>>>>>>> H?vard > >>>>>>>> > >>>>>>>> Oliver Christen wrote: > >>>>>>>>> thank you Thomas > >>>>>>>>> > >>>>>>>>> so if I have a dot of, for example, 8px and I want > a space pf 20px > >>>>>>>>> between the dots, I need a gap of 20/8 = 2.5 > >>>>>>>>> > >>>>>>>>> but as far as I can see, Mapserver doesnt like > none-integer value > >>>>>>>>> for gap. > >>>>>>>>> > >>>>>>>>> what should I do? :( > >>>>>>>>> > >>>>>>>>> 2010/1/12 thomas bonfort >>>>>>>>> > > >>>>>>>>> > >>>>>>>>> gap in pixels = symbol->gap * style->size > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> On Tue, Jan 12, 2010 at 16:52, Oliver Christen > >>>>>>>>> >>>>>>>>> > wrote: > >>>>>>>>> > >>>>>>>>> GAP 20 is really giving unwanted result: > >>>>>>>>> http://dev.camptocamp.com/~ochriste/tilecache9.png > >>>>>>>>> > > >>>>>>>>> though using only one style instead of two > seems to solve > >>>>>>>>> the > >>>>>>>>> oval problem (but why ???) > >>>>>>>>> style > >>>>>>>>> symbol "dots" > >>>>>>>>> size 8 > >>>>>>>>> color 204 102 0 > >>>>>>>>> outlinecolor 102 51 0 > >>>>>>>>> end > >>>>>>>>> I dont understand how GAP is supposed working: > >>>>>>>>> with GAP 2, I had ~10px between dots, > >>>>>>>>> with GAP 3, I had ~18px between dots, > >>>>>>>>> with GAP 4, I had ~26px between dots > >>>>>>>>> whats the logic ? > >>>>>>>>> > >>>>>>>>> ----- Original Message ----- > >>>>>>>>> *From:* thomas bonfort > >>>>>>>>> > >>>>>>>>> *To:* Oliver Christen > >>>>>>>>> > >>>>>>>>> *Cc:* mapserver-users at lists.osgeo.org > >>>>>>>>> > >>>>>>>>> *Sent:* Tuesday, January 12, 2010 4:36 PM > >>>>>>>>> *Subject:* Re: [mapserver-users] symbol circle > >>>>>>>>> (ellipse) > >>>>>>>>> rendered not round but oval > >>>>>>>>> > >>>>>>>>> symbol > >>>>>>>>> name dots > >>>>>>>>> type ellipse > >>>>>>>>> points 1 1 end > >>>>>>>>> gap 20 > >>>>>>>>> end > >>>>>>>>> > >>>>>>>>> ... > >>>>>>>>> > >>>>>>>>> style > >>>>>>>>> symbol "dots" > >>>>>>>>> size 8 > >>>>>>>>> color r g b > >>>>>>>>> outlinecolor r g b > >>>>>>>>> end > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> On Tue, Jan 12, 2010 at 16:31, Oliver Christen > >>>>>>>>> >>>>>>>>> > wrote: > >>>>>>>>> > >>>>>>>>> Hi Thomas :) > >>>>>>>>> thanks for the answer, but sadely > it didnt solve > >>>>>>>>> my problem: > >>>>>>>>> here are a few tests I did: > >>>>>>>>> using GAP 20 gave me really weird result: > >>>>>>>>> > >>>>>>>>> http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png > >>>>>>>>> > >>>>>>>>> > > >>>>>>>>> using PATTERN 1 22 END gave me > better result, but > >>>>>>>>> the > >>>>>>>>> dot are still slightly oval: > >>>>>>>>> > >>>>>>>>> http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png > >>>>>>>>> > >>>>>>>>> > > >>>>>>>>> I wondered if the visual effect > may have come from > >>>>>>>>> the > >>>>>>>>> fact im pilling up two circle one > over the other, > >>>>>>>>> but > >>>>>>>>> even when trying to display only > the outer or inner > >>>>>>>>> circles, the circle are still slightly off: > >>>>>>>>> > >>>>>>>>> > http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png > >>>>>>>>> > >>>>>>>>> > > >>>>>>>>> > >>>>>>>>> > http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png > >>>>>>>>> > >>>>>>>>> > > >>>>>>>>> (both at once > >>>>>>>>> > >>>>>>>>> > http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png > >>>>>>>>> > >>>>>>>>> > ) > >>>>>>>>> any other idea? ^_^ > >>>>>>>>> > >>>>>>>>> ----- Original Message ----- > >>>>>>>>> *From:* thomas bonfort > >>>>>>>>> > >>>>>>>>> *To:* Oliver Christen > >>>>>>>>> > >>>>>>>>> *Cc:* mapserver-users at lists.osgeo.org > >>>>>>>>> > >>>>>>>>> *Sent:* Tuesday, January 12, > 2010 3:18 PM > >>>>>>>>> *Subject:* Re: > [mapserver-users] symbol circle > >>>>>>>>> (ellipse) rendered not round but oval > >>>>>>>>> > >>>>>>>>> hi Oliver :) > >>>>>>>>> > >>>>>>>>> try with GAP 20 instead of > STYLE 1 20 END > >>>>>>>>> (which is > >>>>>>>>> deprecated btw, use PATTERN now) > >>>>>>>>> > >>>>>>>>> cheers, > >>>>>>>>> thomas > >>>>>>>>> > >>>>>>>>> On Tue, Jan 12, 2010 at 15:04, > Oliver Christen > >>>>>>>>> >>>>>>>>> > > wrote: > >>>>>>>>> > >>>>>>>>> hello > >>>>>>>>> > >>>>>>>>> I have a weird problem with > symbology. > >>>>>>>>> Im rendering a line with > dots, but the dots > >>>>>>>>> are > >>>>>>>>> not round but slightly > oval, see image > >>>>>>>>> > >>>>>>>>> http://dev.camptocamp.com/~ochriste/tilecache.png > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> Any idea what could be the cause ? > >>>>>>>>> > >>>>>>>>> Here is my symbol definition: > >>>>>>>>> > >>>>>>>>> SYMBOL > >>>>>>>>> NAME "linie-gepunkt10" > >>>>>>>>> TYPE ELLIPSE > >>>>>>>>> POINTS > >>>>>>>>> 1 1 > >>>>>>>>> END > >>>>>>>>> STYLE > >>>>>>>>> 1 20 > >>>>>>>>> END > >>>>>>>>> FILLED TRUE > >>>>>>>>> END > >>>>>>>>> > >>>>>>>>> and my layer's class definition: > >>>>>>>>> > >>>>>>>>> CLASS > >>>>>>>>> EXPRESSION "3" > >>>>>>>>> MAXSCALEDENOM 200001 > >>>>>>>>> STYLE > >>>>>>>>> SYMBOL "linie-gepunkt10" > >>>>>>>>> SIZE 10 > >>>>>>>>> COLOR 102 51 0 > >>>>>>>>> END > >>>>>>>>> STYLE > >>>>>>>>> SYMBOL "linie-gepunkt10" > >>>>>>>>> SIZE 8 > >>>>>>>>> COLOR 204 102 0 > >>>>>>>>> END > >>>>>>>>> END > >>>>>>>>> > >>>>>>>>> and the map outputformat: > >>>>>>>>> > >>>>>>>>> OUTPUTFORMAT > >>>>>>>>> NAME png > >>>>>>>>> DRIVER "AGG/PNG" > >>>>>>>>> MIMETYPE "image/png" > >>>>>>>>> IMAGEMODE RGBA > >>>>>>>>> EXTENSION "png" > >>>>>>>>> FORMATOPTION "INTERLACE=OFF" > >>>>>>>>> END > >>>>>>>>> > >>>>>>>>> _______________________________________________ > >>>>>>>>> mapserver-users mailing list > >>>>>>>>> mapserver-users at lists.osgeo.org > >>>>>>>>> > > >>>>>>>>> > >>>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>> -- > >>>>>>>> H?vard Tveite > >>>>>>>> Department of Mathematical Sciences and Technology, UMB > >>>>>>>> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY > >>>>>>>> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ > >>>>>>>> > >>>>>>> _______________________________________________ > >>>>>>> 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 > >>>>> > >>> > >> -- > >> H?vard Tveite > >> Department of Mathematical Sciences and Technology, UMB > >> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY > >> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ > >> > > > > > > -- > H?vard Tveite > Department of Mathematical Sciences and Technology, UMB > Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY > Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From boolean10001 at yahoo.com Tue Jan 12 12:21:46 2010 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Tue, 12 Jan 2010 12:21:46 -0800 (PST) Subject: [mapserver-users] 5.6.1 version and labels In-Reply-To: <201001121443.48958.aboudreault@mapgears.com> References: <401172.95681.qm@web38203.mail.mud.yahoo.com> <481450.69288.qm@web38203.mail.mud.yahoo.com> <201001121443.48958.aboudreault@mapgears.com> Message-ID: <10018.20259.qm@web38206.mail.mud.yahoo.com> Thanks Alan, Sorry, too many coffee and many tasks to do simultaneously ... Here they are ... I'm going to try what you suggest me about DEFRESOLUTION ________________________________ From: Alan Boudreault To: mapserver-users at lists.osgeo.org Cc: Carlos Ruiz ; "Lime, Steve D (DNR)" Sent: Tue, January 12, 2010 1:43:48 PM Subject: Re: [mapserver-users] 5.6.1 version and labels Carlos, you haven't attached the images. What's happen if you add the following line into your map definition: DEFRESOLUTION 99 Alan On January 12, 2010 02:26:18 pm Carlos Ruiz wrote: > Thanks Steve, > > Lets see something simple that is changing in the new Mapserver version, > here's the LAYER definition: > > LAYER > > NAME "my name" > TYPE annotation > STATUS ON > TRANSFORM ll > UNITS PIXELS > > FEATURE > POINTS > 135 -10 > END > TEXT "my text" > END > > CLASS > LABEL > FONT "arial" > TYPE TRUETYPE > SIZE 8 > BUFFER 1 > COLOR 0 0 0 > BACKGROUNDCOLOR 255 255 255 > FORCE TRUE > END > END > > END > > And now the MAP definition: > > MAP > > EXTENT 427469.4518 2086656.9173 860880.8507 2523277.2962 > FONTSET "fonts/fonts.txt" > SYMBOLSET "symbols.txt" > SIZE 640 480 > STATUS ON > > OUTPUTFORMAT > NAME jpeg > DRIVER "GD/JPEG" > MIMETYPE "image/jpeg" > IMAGEMODE RGB > EXTENSION "jpg" > FORMATOPTION "QUALITY=80" > END > > QUERYMAP > COLOR 255 255 0 > STYLE NORMAL > END > > RESOLUTION 99 > > UNITS meters > > I've attached how it looks with the 5.4 version (before.jpg) and how it > looks now with the 5.6.1 version (after.jpg). > > Hope this helps you to find this strange behavior > > Thanks in advance ! > > > IC Carlos Ruiz > > ________________________________ > From: "Lime, Steve D (DNR)" > To: Carlos Ruiz ; "mapserver-users at lists.osgeo.org" > Sent: Mon, January 11, 2010 3:55:08 PM > Subject: RE: [mapserver-users] 5.6.1 version and labels > > > What does your layer def look like? What renderer are you using? > Are you setting a specific RESOLUTION? There may be some subtle sizing > changes but I haven?t run across anything significant yet. > > Before and after images are helpful too. > > Steve > > From:mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Carlos Ruiz > Sent: Monday, January 11, 2010 3:43 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] 5.6.1 version and labels > > Hi all, > > I have updated my Mapserver version from 5.4 to 5.6.0 (and later to 5.6.1 > because the queries). There's something odd with the labels because appears > bigger than i had defined. > > Does anybody knows why ? > > Thanks in advance > IC > Carlos Ruiz > -- Alan Boudreault Mapgears http://www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: before.JPG Type: image/jpeg Size: 87147 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: after.JPG Type: image/jpeg Size: 99879 bytes Desc: not available URL: From boolean10001 at yahoo.com Tue Jan 12 12:40:03 2010 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Tue, 12 Jan 2010 12:40:03 -0800 (PST) Subject: [mapserver-users] 5.6.1 version and labels - Images Message-ID: <618454.11006.qm@web38201.mail.mud.yahoo.com> Sorry you all, too much coffee and too much tasks to do simultaneously ... Here are the images for all. IC Carlos Ruiz -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: before.JPG Type: image/jpeg Size: 87147 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: after.JPG Type: image/jpeg Size: 99879 bytes Desc: not available URL: From thomas.bonfort at gmail.com Fri Jan 15 01:19:29 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 15 Jan 2010 10:19:29 +0100 Subject: [mapserver-users] symbol circle (ellipse) rendered not roundbut oval In-Reply-To: References: <43B2F382C3734D2489E97DAB7BB9FF92@maunakea> <4B5021BB.70401@umb.no> Message-ID: yes, it would be nice to have both possibilities: absolute spacing, and size-scaled spacing. would there be a way to do this without having the need to add yet another mapfile keyword? regards, thomas On Fri, Jan 15, 2010 at 10:03, Rahkonen Jukka wrote: > Hi, > > Could there be an alternative to give GAP that is relative to symbol size? > Like > RELATIVE_GAP=(x*SYMBOLSIZE) where SYMBOLSIZE is the width of a symbol? > Should not be too heavy to calculate but would it lead to correct result? > > -Jukka Rahkonen- > > > Havard Tveite wrote: > > > > I think it is very important that there is a strong > > relationship between the size of the symbols and the > > spacing between the symbols. That makes scalable > > patterned symbols possible. So I am happy with the > > current (intended) behaviour. > > > > What is needed is good documentation with examples. I > > think that there is work in progress on changing some of > > the mechanisms for symbology in Mapserver. When this > > work has been "finalised" I will be more than willing > > to contribute to the documentation. > > > > H?vard > > > > Oliver Christen wrote: > > > mmm, in my opinion it would be clearer if the GAP didnt depend from > > > anything, set the GAP to 10 would make you a spacing of > > 10px between each > > > symbols border, whatever the values of the symbol POINTS. > > > but that may be a change too important ? > > > > > > Oliver > > > > > >> Stephen Woodbridge wrote: > > >>> So if I want ten pixel ellipses with a 1, 2, or 3 pixels > > gap how would > > >>> you specify that? > > >>> > > >>> points 10 10 gap 1 (or 2 or 3)? > > >> Yes, if the rendering behaviour had been according to my > > >> preferences, > > >> POINTS 10 10 END > > >> GAP 1 (or 2 or 3) > > >> should do it (if you had specified SIZE 10 in the STYLE). > > >> You specify the gap, and not the centre to centre distance > > >> between the ellipses. > > >> > > >> But currently, this is not the behaviour. > > >> Currently (with AGG in 5.6.0) you would have to specify: > > >> POINTS 10 10 END > > >> GAP 6 (or 7 or 8) > > >> to get something close (if you specify SIZE 10 in the STYLE). > > >> > > >> Something seems to be wrong when the GAP is close to > > >> half the diameter specified in POINTS - some of the gaps > > >> will be as expected, while others are larger (closer to the > > >> actual number specified in GAP). > > >> > > >> H?vard > > >> > > >>> -Steve W > > >>> > > >>> Havard Tveite wrote: > > >>>> If Thomas B. agrees, I think it would be reasonable to also > > >>>> open a bug on the gap calculation. > > >>>> In my opinion, since the word "gap" is used, the correct > > >>>> way to specify a symbol with ellipses that has the same > > >>>> gap between them as the diameter of the ellipses should be > > >>>> as follows: > > >>>> > > >>>> symbol > > >>>> name dots > > >>>> type ellipse > > >>>> points 1 1 end > > >>>> gap 1 > > >>>> end > > >>>> > > >>>> or an equivalent "scaled" version such as: > > >>>> > > >>>> symbol > > >>>> name dots > > >>>> type ellipse > > >>>> points 23 23 end > > >>>> gap 23 > > >>>> end > > >>>> > > >>>> The actual size of the ellipses (and the width of the gaps) > > >>>> should be determined by the SIZE in CLASS-> STYLE. If > > >>>> SIZE is 10, the ellipses should have a 10 pixel diameter > > >>>> (and should have a 10 pixel gap between them). > > >>>> > > >>>> I have been hesitant to file bugs regarding symbology, since > > >>>> the documentation on symbology is lacking and there is not > > >>>> complete agreement on how some of the things that has to do > > >>>> with symbology should work. There have also been > > >>>> discussions on changing some behaviour and mechanisms for > > >>>> symbology. > > >>>> First we have to agree on how things should work and document > > >>>> it, then we can file bugs if behaviour is not as expected. > > >>>> > > >>>> H?vard > > >>>> > > >>>> Oliver Christen wrote: > > >>>>> Hi Steve > > >>>>> > > >>>>> I followed your suggestion and opened a documentation bug > > >>>>> > > >>>>> thanks > > >>>>> Oliver > > >>>>> > > >>>>>> Hi guys, > > >>>>>> > > >>>>>> I haven't followed this whole thread but I think it > > should be better > > >>>>>> documented so people can understand how to use this. > > Please write a > > >>>>>> doc bug and put as much information in the bug about > > how this works as > > >>>>>> you have been able to discover. > > >>>>>> > > >>>>>> Thanks, > > >>>>>> -Steve W > > >>>>>> > > >>>>>> Oliver Christen wrote: > > >>>>>>> Thank you H?vard > > >>>>>>> I see you have changed "points 1 1 end" by "points 8 8 end". > > >>>>>>> Tell me if im wrong, but these values are only used > > to render the > > >>>>>>> proportions of the elipse but not it's size, is that correct? > > >>>>>>> so if I understand correctly, using larger values for > > the elipse > > >>>>>>> width/height refine the rendering of the vectorised > > dot geometry ? > > >>>>>>> > > >>>>>>> regards > > >>>>>>> Oliver > > >>>>>>> > > >>>>>>>> Dear Oliver Christen, > > >>>>>>>> > > >>>>>>>> Using Mapserver 5.6.0 and AGG rendering, you can achieve what > > >>>>>>>> you want by using a combination of ellipse size and gap size > > >>>>>>>> in the symbol definition. > > >>>>>>>> There is something strange in the calculations (a gap of > > >>>>>>>> about half the ellipse size seems to produce > > touching symbols), > > >>>>>>>> so in your case, you could try to use 8 as the > > diameter of the > > >>>>>>>> ellipses, and 20 + 4 (half the ellipse size) = 24 as the > > >>>>>>>> gap: > > >>>>>>>> > > >>>>>>>> symbol > > >>>>>>>> name dots > > >>>>>>>> type ellipse > > >>>>>>>> points 8 8 end > > >>>>>>>> gap 24 > > >>>>>>>> end > > >>>>>>>> > > >>>>>>>> > > >>>>>>>> H?vard > > >>>>>>>> > > >>>>>>>> Oliver Christen wrote: > > >>>>>>>>> thank you Thomas > > >>>>>>>>> > > >>>>>>>>> so if I have a dot of, for example, 8px and I want > > a space pf 20px > > >>>>>>>>> between the dots, I need a gap of 20/8 = 2.5 > > >>>>>>>>> > > >>>>>>>>> but as far as I can see, Mapserver doesnt like > > none-integer value > > >>>>>>>>> for gap. > > >>>>>>>>> > > >>>>>>>>> what should I do? :( > > >>>>>>>>> > > >>>>>>>>> 2010/1/12 thomas bonfort > >>>>>>>>> > > > >>>>>>>>> > > >>>>>>>>> gap in pixels = symbol->gap * style->size > > >>>>>>>>> > > >>>>>>>>> > > >>>>>>>>> On Tue, Jan 12, 2010 at 16:52, Oliver Christen > > >>>>>>>>> > >>>>>>>>> > wrote: > > >>>>>>>>> > > >>>>>>>>> GAP 20 is really giving unwanted result: > > >>>>>>>>> http://dev.camptocamp.com/~ochriste/tilecache9.png > > >>>>>>>>> > > > > >>>>>>>>> though using only one style instead of two > > seems to solve > > >>>>>>>>> the > > >>>>>>>>> oval problem (but why ???) > > >>>>>>>>> style > > >>>>>>>>> symbol "dots" > > >>>>>>>>> size 8 > > >>>>>>>>> color 204 102 0 > > >>>>>>>>> outlinecolor 102 51 0 > > >>>>>>>>> end > > >>>>>>>>> I dont understand how GAP is supposed working: > > >>>>>>>>> with GAP 2, I had ~10px between dots, > > >>>>>>>>> with GAP 3, I had ~18px between dots, > > >>>>>>>>> with GAP 4, I had ~26px between dots > > >>>>>>>>> whats the logic ? > > >>>>>>>>> > > >>>>>>>>> ----- Original Message ----- > > >>>>>>>>> *From:* thomas bonfort > > >>>>>>>>> > > >>>>>>>>> *To:* Oliver Christen > > >>>>>>>>> > > >>>>>>>>> *Cc:* mapserver-users at lists.osgeo.org > > >>>>>>>>> > > >>>>>>>>> *Sent:* Tuesday, January 12, 2010 4:36 PM > > >>>>>>>>> *Subject:* Re: [mapserver-users] symbol circle > > >>>>>>>>> (ellipse) > > >>>>>>>>> rendered not round but oval > > >>>>>>>>> > > >>>>>>>>> symbol > > >>>>>>>>> name dots > > >>>>>>>>> type ellipse > > >>>>>>>>> points 1 1 end > > >>>>>>>>> gap 20 > > >>>>>>>>> end > > >>>>>>>>> > > >>>>>>>>> ... > > >>>>>>>>> > > >>>>>>>>> style > > >>>>>>>>> symbol "dots" > > >>>>>>>>> size 8 > > >>>>>>>>> color r g b > > >>>>>>>>> outlinecolor r g b > > >>>>>>>>> end > > >>>>>>>>> > > >>>>>>>>> > > >>>>>>>>> > > >>>>>>>>> > > >>>>>>>>> On Tue, Jan 12, 2010 at 16:31, Oliver Christen > > >>>>>>>>> > >>>>>>>>> > wrote: > > >>>>>>>>> > > >>>>>>>>> Hi Thomas :) > > >>>>>>>>> thanks for the answer, but sadely > > it didnt solve > > >>>>>>>>> my problem: > > >>>>>>>>> here are a few tests I did: > > >>>>>>>>> using GAP 20 gave me really weird result: > > >>>>>>>>> > > >>>>>>>>> http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png > > >>>>>>>>> > > >>>>>>>>> > > > > >>>>>>>>> using PATTERN 1 22 END gave me > > better result, but > > >>>>>>>>> the > > >>>>>>>>> dot are still slightly oval: > > >>>>>>>>> > > >>>>>>>>> http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png > > >>>>>>>>> > > >>>>>>>>> > > > > >>>>>>>>> I wondered if the visual effect > > may have come from > > >>>>>>>>> the > > >>>>>>>>> fact im pilling up two circle one > > over the other, > > >>>>>>>>> but > > >>>>>>>>> even when trying to display only > > the outer or inner > > >>>>>>>>> circles, the circle are still slightly off: > > >>>>>>>>> > > >>>>>>>>> > > http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png > > >>>>>>>>> > > >>>>>>>>> > > > > >>>>>>>>> > > >>>>>>>>> > > http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png > > >>>>>>>>> > > >>>>>>>>> > > > > >>>>>>>>> (both at once > > >>>>>>>>> > > >>>>>>>>> > > http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png > > >>>>>>>>> > > >>>>>>>>> > > ) > > >>>>>>>>> any other idea? ^_^ > > >>>>>>>>> > > >>>>>>>>> ----- Original Message ----- > > >>>>>>>>> *From:* thomas bonfort > > >>>>>>>>> > > >>>>>>>>> *To:* Oliver Christen > > >>>>>>>>> > > >>>>>>>>> *Cc:* mapserver-users at lists.osgeo.org > > >>>>>>>>> > > >>>>>>>>> *Sent:* Tuesday, January 12, > > 2010 3:18 PM > > >>>>>>>>> *Subject:* Re: > > [mapserver-users] symbol circle > > >>>>>>>>> (ellipse) rendered not round but oval > > >>>>>>>>> > > >>>>>>>>> hi Oliver :) > > >>>>>>>>> > > >>>>>>>>> try with GAP 20 instead of > > STYLE 1 20 END > > >>>>>>>>> (which is > > >>>>>>>>> deprecated btw, use PATTERN now) > > >>>>>>>>> > > >>>>>>>>> cheers, > > >>>>>>>>> thomas > > >>>>>>>>> > > >>>>>>>>> On Tue, Jan 12, 2010 at 15:04, > > Oliver Christen > > >>>>>>>>> > >>>>>>>>> > > > wrote: > > >>>>>>>>> > > >>>>>>>>> hello > > >>>>>>>>> > > >>>>>>>>> I have a weird problem with > > symbology. > > >>>>>>>>> Im rendering a line with > > dots, but the dots > > >>>>>>>>> are > > >>>>>>>>> not round but slightly > > oval, see image > > >>>>>>>>> > > >>>>>>>>> http://dev.camptocamp.com/~ochriste/tilecache.png > > >>>>>>>>> > > >>>>>>>>> > > >>>>>>>>> > > >>>>>>>>> Any idea what could be the cause ? > > >>>>>>>>> > > >>>>>>>>> Here is my symbol definition: > > >>>>>>>>> > > >>>>>>>>> SYMBOL > > >>>>>>>>> NAME "linie-gepunkt10" > > >>>>>>>>> TYPE ELLIPSE > > >>>>>>>>> POINTS > > >>>>>>>>> 1 1 > > >>>>>>>>> END > > >>>>>>>>> STYLE > > >>>>>>>>> 1 20 > > >>>>>>>>> END > > >>>>>>>>> FILLED TRUE > > >>>>>>>>> END > > >>>>>>>>> > > >>>>>>>>> and my layer's class definition: > > >>>>>>>>> > > >>>>>>>>> CLASS > > >>>>>>>>> EXPRESSION "3" > > >>>>>>>>> MAXSCALEDENOM 200001 > > >>>>>>>>> STYLE > > >>>>>>>>> SYMBOL "linie-gepunkt10" > > >>>>>>>>> SIZE 10 > > >>>>>>>>> COLOR 102 51 0 > > >>>>>>>>> END > > >>>>>>>>> STYLE > > >>>>>>>>> SYMBOL "linie-gepunkt10" > > >>>>>>>>> SIZE 8 > > >>>>>>>>> COLOR 204 102 0 > > >>>>>>>>> END > > >>>>>>>>> END > > >>>>>>>>> > > >>>>>>>>> and the map outputformat: > > >>>>>>>>> > > >>>>>>>>> OUTPUTFORMAT > > >>>>>>>>> NAME png > > >>>>>>>>> DRIVER "AGG/PNG" > > >>>>>>>>> MIMETYPE "image/png" > > >>>>>>>>> IMAGEMODE RGBA > > >>>>>>>>> EXTENSION "png" > > >>>>>>>>> FORMATOPTION "INTERLACE=OFF" > > >>>>>>>>> END > > >>>>>>>>> > > >>>>>>>>> _______________________________________________ > > >>>>>>>>> mapserver-users mailing list > > >>>>>>>>> mapserver-users at lists.osgeo.org > > >>>>>>>>> > > > > >>>>>>>>> > > >>>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > >>>>>>>>> > > >>>>>>>>> > > >>>>>>>>> > > >>>>>>>>> > > >>>>>>>>> > > >>>>>>>> -- > > >>>>>>>> H?vard Tveite > > >>>>>>>> Department of Mathematical Sciences and Technology, UMB > > >>>>>>>> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY > > >>>>>>>> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ > > >>>>>>>> > > >>>>>>> _______________________________________________ > > >>>>>>> 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 > > >>>>> > > >>> > > >> -- > > >> H?vard Tveite > > >> Department of Mathematical Sciences and Technology, UMB > > >> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY > > >> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ > > >> > > > > > > > > > > -- > > H?vard Tveite > > Department of Mathematical Sciences and Technology, UMB > > Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY > > Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ > > _______________________________________________ > > 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 wostok at o2.pl Fri Jan 15 05:12:21 2010 From: wostok at o2.pl (wostok) Date: Fri, 15 Jan 2010 05:12:21 -0800 (PST) Subject: [mapserver-users] mapscript - getting layer coordinates Message-ID: <1263561141758-4398577.post@n2.nabble.com> Hello, I am trying to use mapscript to generate some maps from given images - multiple overlaping jpeg files as layers composed into one mapfile. I have a problem with getting geographic coordinates of each layers (for example xmin, ymin, xmax, ymax). I can get coordinates of whole map - probably loaded from field EXTENT from map file, but with layers this doesn't work. Every jpeg file has jgw file with given coords, but I don't want to read it from file, I need to use mapscript's api. Can you help me, please? Thanks in advance wostok -- View this message in context: http://n2.nabble.com/mapscript-getting-layer-coordinates-tp4398577p4398577.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ahmettemiz88 at gmail.com Sun Jan 17 02:34:38 2010 From: ahmettemiz88 at gmail.com (ahmettemiz88 at gmail.com) Date: Sun, 17 Jan 2010 10:34:38 +0000 Subject: [mapserver-users] Problem with queryByAttributes Message-ID: <00163649939fa2e98e047d59c830@google.com> hello I have constructed the queryByAttributes object. But I cannot display the queried map. queryByAttributes returns 0 and NumResults gives 2. It looks normal. But related image doesn't display anything about query concerned. here is the code fragment in java-mapscript. int qByAttr=jeolayer.queryByAttributes(map0,qitem,qstring2,mapscript.MS_MULTIPLE); System.out.println(" ** qByAttr ** "+qByAttr); --> 0 System.out.println(" **jeolayer.getNumResults() ** "+jeolayer.getNumResults()); -->2 //har_img(); imageObj img = null; img = map0.draw(); img.save("/home/orkun/kontrol_jeo.png", map0); --> just for control it doesn't any query related feature. what do I have to do regards Ahmet Temiz -------------- next part -------------- An HTML attachment was scrubbed... URL: From happyforev1 at gmail.com Sun Jan 17 03:44:09 2010 From: happyforev1 at gmail.com (=?UTF-8?B?546L6L+e5rOi?=) Date: Sun, 17 Jan 2010 19:44:09 +0800 Subject: [mapserver-users] PNG24 problem in IE6 Message-ID: <46b388481001170344j1e884f41q592408e1c99d986d@mail.gmail.com> Hi all, I am so anxious about displaying ka-map in IE6 now. Everything is OK in FireFox ?Chrome and IE7. When I searched it in the internet, I got some information that transparent PNG pictures are not supported in IE6. However, when I searched in the ka_map codes especially kaMap.js file, I found there were some ways for working around this problem. In the kaMap.js there is a function to work around this (I think so but not sure): /* * internal function to track images as they finish loading. */ kaMap_imgOnLoad = function(e) { if ((this.ie_hack) && (this.src != this.kaMap.aPixel.src)) { var src = this.src; this.src = this.kaMap.aPixel.src; this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+src+"')"; } this.style.visibility = 'visible'; }; Now, my problem is why it still doesn't work? Can anybody give me some hints to resolve it? Thank you very much. And the configure about outputformat in my mapfile is as follows: IMAGETYPE png24 IMAGECOLOR 80 150 80 OUTPUTFORMAT NAME "png24" DRIVER "GD/PNG" MIMETYPE "image/png24" IMAGEMODE RGB EXTENSION "png" TRANSPARENT FALSE #FORMATOPTION QUALITY=100 #value=0-100 END -- ???? -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at uva.nl Mon Jan 18 03:48:41 2010 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Mon, 18 Jan 2010 12:48:41 +0100 Subject: [mapserver-users] Position of label In-Reply-To: References: <1263493371.786353.17553.nullmailer@mail1005.cent> Message-ID: <4B544A99.1030602@uva.nl> Hi folks, Is there a way to get back the exact position of the labels in a MapServer map? I want to make the labels clickable with Ajax, so a x-y values in image coordinates would be enough. I looked in the Template and Mapscript docs, but couldn't find anything about the (computed) position of labels. Jan From wostok at o2.pl Mon Jan 18 06:02:29 2010 From: wostok at o2.pl (wostok) Date: Mon, 18 Jan 2010 06:02:29 -0800 (PST) Subject: [mapserver-users] mapscript - getting layer coordinates In-Reply-To: <1263561141758-4398577.post@n2.nabble.com> References: <1263561141758-4398577.post@n2.nabble.com> Message-ID: <1263823349393-4413737.post@n2.nabble.com> I have found a solution for my problem - old version of FWTools - 2.2.1, changed to 2.4.6 and all worked fine. wostok -- View this message in context: http://n2.nabble.com/mapscript-getting-layer-coordinates-tp4398577p4413737.html Sent from the Mapserver - User mailing list archive at Nabble.com. From yassefa at dmsolutions.ca Mon Jan 18 06:19:46 2010 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 18 Jan 2010 09:19:46 -0500 Subject: [mapserver-users] Position of label In-Reply-To: <4B544A99.1030602@uva.nl> References: <1263493371.786353.17553.nullmailer@mail1005.cent> <4B544A99.1030602@uva.nl> Message-ID: <4B546E02.7080808@dmsolutions.ca> Jan Hartmann wrote: > Hi folks, > > Is there a way to get back the exact position of the labels in a > MapServer map? I want to make the labels clickable with Ajax, so a x-y > values in image coordinates would be enough. I looked in the Template > and Mapscript docs, but couldn't find anything about the (computed) > position of labels. > > Jan Hi Jan, This should be available pretty soon in trunk using Mapserver Templates (http://trac.osgeo.org/mapserver/ticket/3241), Please add your name in CC on this bug for comments/suggestions. best regards, > _______________________________________________ > 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 randre at gmail.com Mon Jan 18 15:49:25 2010 From: randre at gmail.com (=?UTF-8?B?Um9nZXIgQW5kcsOp?=) Date: Mon, 18 Jan 2010 15:49:25 -0800 Subject: [mapserver-users] Which mapscript function to use? Message-ID: <9c2015091001181549k6cc11d29nccdef08c4fd86951@mail.gmail.com> Hi all, I'm trying to pass a python mapscript image object directly into GDAL, and can't seem to hit on the correct mapscript object to feed it with. - Passing a valid WMS url directly into GDAL works fine, like this. url = " http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/sav0656/basemap.map&layers=Ditches&styles=&service=WMS&width=1056&format=image%2Fpng&request=GetMap&height=1056&srs=EPSG%3A900913&version=1.1.1&bbox=19411336.2028%2C19411336.2028%2C60738697.1524%2C60738697.1524 " gdal.Open(url) - However, none of these mapscript objects can seem to be read in a similar way: mapobject = mapscript.mapObj('basemap.map') imageobject = mapobject.draw() f = StringIO() imageobject.write(f) gdal.Open(f) TypeError: in method 'Open', argument 1 of type 'char const *' - or: mapobject = mapscript.mapObj('basemap.map') imageobject = mapobject.draw() buffer = imageobject.getBytes() gdal.Open(buffer) (Creates a 'NoneType' object without any attributes or methods) So I'm guessing that the image object that's written as the result of the WMS request is somehow different from the objects written by imageObj.write() and imageObj.getBytes(). Any ideas on how to mimic this? Thanks, Roger -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From aclark at com-geo.org Mon Jan 18 20:02:43 2010 From: aclark at com-geo.org (Andrew Clark) Date: Mon, 18 Jan 2010 23:02:43 -0500 Subject: [mapserver-users] COM.Geo 2010: Computing for Geospatial Conference & Exhibition (June 2010 Washington DC) Message-ID: <009501ca98bc$4f0bd6d0$6400a8c0@Mars> COM.Geo 2010: Conference and Exhibition on Computing for Geospatial Research and Application (June 2010, Washington DC) http://www.com-geo.org COM.Geo 2010 is a leading conference and exhibition on computing for geospatial research and application with focuses on the latest computing technologies for multidisciplinary research and development that enables the exploration in geospatial areas. COM.Geo Conference is an exclusive event that connects researchers, developers, scientists, and application users from academia, government, and industry in both computing and geospatial fields. COM.Geo 2010 Highlight is Cloud Computing for Geospatial. COMMITTEE: http://www.com-geo.org/committee.htm NASA, USGS, DOT, Microsoft, Google, Oracle, MIT, Purdue, OGC, etc. PROGRAM: http://www.com-geo.org/program.htm * 3.5 days of Papers, Courses, Invited Sessions, Workshops, and Tech Talks/Posters * 3 days of exhibitor tradeshow and Exhibitor Talks * Multiple networking events (Job Fair, Brainstorm Corner, Banquets/Receptions, Creative Theater, etc.) * Free special programs for attendee family members (Creative Kids Hour, Creative Theater, etc.) SUBMISSION DEADLINES: http://www.com-geo.org/important_dates.htm Invited Sessions Proposal January 31, 2009 Workshops Proposal January 31, 2009 Full and Short Papers February 23, 2010 Courses Proposal February 23, 2010 Tech Talks Abstract March 31, 2010 -------------- next part -------------- An HTML attachment was scrubbed... URL: From punk.kish at gmail.com Mon Jan 18 21:34:21 2010 From: punk.kish at gmail.com (P Kishor) Date: Mon, 18 Jan 2010 23:34:21 -0600 Subject: [mapserver-users] COM.Geo 2010: Computing for Geospatial Conference & Exhibition (June 2010 Washington DC) In-Reply-To: <009501ca98bc$4f0bd6d0$6400a8c0@Mars> References: <009501ca98bc$4f0bd6d0$6400a8c0@Mars> Message-ID: On Mon, Jan 18, 2010 at 10:02 PM, Andrew Clark wrote: > COM.Geo 2010: Conference and Exhibition on Computing for Geospatial Research > and Application (June 2010, Washington DC) > http://www.com-geo.org > Sounds nice, but... > COM.Geo 2010 is a leading conference and exhibition on computing for > geospatial research and application .. How can COM.Geo [sic] be "a leading conference" when the first one is still six months in the future? [1] And the front page copy on the web site has such flowery text that I don't know whether to feel flush with gratefulness or grimace with bitterness at lost opportunity. Let's see -- "computing driven location based applications" have not revolutionized anything with the prominent exception of online mapping for finding directions, cloud computing is still hot air, and the hottest term of the 90s was not .com but sex, and still is so. As always, time will tell. -- Puneet Kishor From oliver.christen at camptocamp.com Tue Jan 19 01:14:05 2010 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Tue, 19 Jan 2010 10:14:05 +0100 Subject: [mapserver-users] symbol at start and end of polyline ? Message-ID: <3B41616A21ED4B1BA6AA62D49F38C05D@maunakea> hello I would like to add a symbol at the start and end of a polyline. I tried using GEOMTRANSFORM with "start" and "end" in a style block in the layer but sadely this will add a symbol to all start and end of every vertex of the polyline, which is not the result wanted :/ is there any way to do that, beside creating a new point layer ? thanks in advance Oliver From thomas.bonfort at gmail.com Tue Jan 19 01:30:10 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 19 Jan 2010 10:30:10 +0100 Subject: [mapserver-users] symbol at start and end of polyline ? In-Reply-To: <3B41616A21ED4B1BA6AA62D49F38C05D@maunakea> References: <3B41616A21ED4B1BA6AA62D49F38C05D@maunakea> Message-ID: hi, class expression ([id]=321) style geomtransform end ... end end class style ... #all the others end end On Tue, Jan 19, 2010 at 10:14, Oliver Christen < oliver.christen at camptocamp.com> wrote: > hello > > I would like to add a symbol at the start and end of a polyline. > > I tried using GEOMTRANSFORM with "start" and "end" in a style block in the > layer but sadely this will add a symbol to all start and end of every vertex > of the polyline, which is not the result wanted :/ > > is there any way to do that, beside creating a new point layer ? > > thanks in advance > Oliver > _______________________________________________ > 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 Tue Jan 19 01:48:13 2010 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Tue, 19 Jan 2010 10:48:13 +0100 Subject: [mapserver-users] symbol at start and end of polyline ? References: <3B41616A21ED4B1BA6AA62D49F38C05D@maunakea> Message-ID: thx Thomas, but im not sure I understand what you are telling me here. do line segments have id ? ----- Original Message ----- From: thomas bonfort To: Oliver Christen Cc: mapserver-users at lists.osgeo.org Sent: Tuesday, January 19, 2010 10:30 AM Subject: Re: [mapserver-users] symbol at start and end of polyline ? hi, class expression ([id]=321) style geomtransform end ... end end class style ... #all the others end end On Tue, Jan 19, 2010 at 10:14, Oliver Christen wrote: hello I would like to add a symbol at the start and end of a polyline. I tried using GEOMTRANSFORM with "start" and "end" in a style block in the layer but sadely this will add a symbol to all start and end of every vertex of the polyline, which is not the result wanted :/ is there any way to do that, beside creating a new point layer ? thanks in advance Oliver _______________________________________________ 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 thomas.bonfort at gmail.com Tue Jan 19 01:50:53 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 19 Jan 2010 10:50:53 +0100 Subject: [mapserver-users] symbol at start and end of polyline ? In-Reply-To: References: <3B41616A21ED4B1BA6AA62D49F38C05D@maunakea> Message-ID: well, if you want only one line segment to have start markers, you must tell mapserver which segment that is. On Tue, Jan 19, 2010 at 10:48, Oliver Christen < oliver.christen at camptocamp.com> wrote: > thx Thomas, but im not sure I understand what you are telling me here. > do line segments have id ? > > ----- Original Message ----- > *From:* thomas bonfort > *To:* Oliver Christen > *Cc:* mapserver-users at lists.osgeo.org > *Sent:* Tuesday, January 19, 2010 10:30 AM > *Subject:* Re: [mapserver-users] symbol at start and end of polyline ? > > hi, > > class > expression ([id]=321) > style > geomtransform end > ... > end > end > class > style > ... #all the others > end > end > > On Tue, Jan 19, 2010 at 10:14, Oliver Christen < > oliver.christen at camptocamp.com> wrote: > >> hello >> >> I would like to add a symbol at the start and end of a polyline. >> >> I tried using GEOMTRANSFORM with "start" and "end" in a style block in the >> layer but sadely this will add a symbol to all start and end of every vertex >> of the polyline, which is not the result wanted :/ >> >> is there any way to do that, beside creating a new point layer ? >> >> thanks in advance >> Oliver >> _______________________________________________ >> 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 Tue Jan 19 02:59:00 2010 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Tue, 19 Jan 2010 11:59:00 +0100 Subject: [mapserver-users] symbol at start and end of polyline ? References: <3B41616A21ED4B1BA6AA62D49F38C05D@maunakea> Message-ID: <4CE3ED2D1C424AD5A006D34D30B61E6E@maunakea> it makes sens, but how do I do that ? do line segment get automaticaly an id ? or how to get (or set) the id of the line segment? ----- Original Message ----- From: thomas bonfort To: Oliver Christen Cc: mapserver-users at lists.osgeo.org Sent: Tuesday, January 19, 2010 10:50 AM Subject: Re: [mapserver-users] symbol at start and end of polyline ? well, if you want only one line segment to have start markers, you must tell mapserver which segment that is. On Tue, Jan 19, 2010 at 10:48, Oliver Christen wrote: thx Thomas, but im not sure I understand what you are telling me here. do line segments have id ? ----- Original Message ----- From: thomas bonfort To: Oliver Christen Cc: mapserver-users at lists.osgeo.org Sent: Tuesday, January 19, 2010 10:30 AM Subject: Re: [mapserver-users] symbol at start and end of polyline ? hi, class expression ([id]=321) style geomtransform end ... end end class style ... #all the others end end On Tue, Jan 19, 2010 at 10:14, Oliver Christen wrote: hello I would like to add a symbol at the start and end of a polyline. I tried using GEOMTRANSFORM with "start" and "end" in a style block in the layer but sadely this will add a symbol to all start and end of every vertex of the polyline, which is not the result wanted :/ is there any way to do that, beside creating a new point layer ? thanks in advance Oliver _______________________________________________ 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 stelaanders at gmail.com Tue Jan 19 03:02:43 2010 From: stelaanders at gmail.com (stela anders) Date: Tue, 19 Jan 2010 08:02:43 -0300 Subject: [mapserver-users] Queryng map with WMS and Openlayers... Message-ID: Hello, I?d like to execute a query(point and area) in my Openlayers map (Mapserver-WMS)... How Can I do that? Thanks Stella -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at uva.nl Tue Jan 19 03:43:04 2010 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Tue, 19 Jan 2010 12:43:04 +0100 Subject: [mapserver-users] COM.Geo 2010: Computing for Geospatial Conference & Exhibition (June 2010 Washington DC) In-Reply-To: References: <009501ca98bc$4f0bd6d0$6400a8c0@Mars> Message-ID: <4B559AC8.3030003@uva.nl> Hi Puneet, Glad to see you are still alive and kicking (hard). Do you still have the same good memories as I do of the real "leading conference" of this decennium? IMHO, time ***has*** already told ... http://mapserver.sara.nl/conferences/2003/mum/photos/group.jpg Cheers, Jan On 19-1-2010 6:34, P Kishor wrote: > On Mon, Jan 18, 2010 at 10:02 PM, Andrew Clark wrote: > >> COM.Geo 2010: Conference and Exhibition on Computing for Geospatial Research >> and Application (June 2010, Washington DC) >> http://www.com-geo.org >> >> > Sounds nice, but... > > >> COM.Geo 2010 is a leading conference and exhibition on computing for >> geospatial research and application .. >> > How can COM.Geo [sic] be "a leading conference" when the first one is > still six months in the future? [1] And the front page copy on the web > site has such flowery text that I don't know whether to feel flush > with gratefulness or grimace with bitterness at lost opportunity. > Let's see -- "computing driven location based applications" have not > revolutionized anything with the prominent exception of online mapping > for finding directions, cloud computing is still hot air, and the > hottest term of the 90s was not .com but sex, and still is so. > > As always, time will tell. > > -- > Puneet Kishor > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From stelaanders at gmail.com Tue Jan 19 04:36:32 2010 From: stelaanders at gmail.com (stela anders) Date: Tue, 19 Jan 2010 09:36:32 -0300 Subject: [mapserver-users] Re: [OpenLayers-Users] [Fwd: WMSGetFeatureInfo with Mapserver] In-Reply-To: <1263504040.4661.344.camel@wardrobe.dhs.org> References: <4B4F7D44.4080900@swoodbridge.com> <1263504040.4661.344.camel@wardrobe.dhs.org> Message-ID: Thanks... 2010/1/14 bwoodall > Howdy, > > Granted it has been awhile since I played with the OL WMS code, but I > think the only way is to use the TOLERANCE and TOLERANCE-UNITS in the > LAYER for mapserver to get the desired 'BBOX' type results. > > http://mapserver.org/mapfile/layer.html?highlight=tolerance > > Hope that helps > > ..Bill, > > On Thu, 2010-01-14 at 15:23 -0500, Stephen Woodbridge wrote: > > Stella, > > > > I forwarded this to the lists because there are more people there that > > might be able to help. If you are not signup to these lists I recommend > > that you sign up. > > > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > Users mailing list > > Users at openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > > -Steve > > > > -------- Original Message -------- > > Subject: WMSGetFeatureInfo with Mapserver > > Date: Thu, 14 Jan 2010 15:57:34 -0300 > > From: stela anders > > To: woodbri at swoodbridge.com > > > > > > > > Hello! > > > > I?m trying to implement tha sample : > > > http://dev.openlayers.org/releases/OpenLayers-2.8/examples/getfeatureinfo-control.html > > > > with mapserver... > > But I kind of lost... > > Could you send-me any sample how to do that? > > And is possible to use a BOX instead a POINT to query? > > > > Thanks for the help > > > > Stella > > _______________________________________________ > > Users mailing list > > Users at openlayers.org > > http://openlayers.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stelaanders at gmail.com Tue Jan 19 04:37:15 2010 From: stelaanders at gmail.com (stela anders) Date: Tue, 19 Jan 2010 09:37:15 -0300 Subject: [mapserver-users] Re: [OpenLayers-Users] [Fwd: WMSGetFeatureInfo with Mapserver] In-Reply-To: References: <4B4F7D44.4080900@swoodbridge.com> <1263504040.4661.344.camel@wardrobe.dhs.org> Message-ID: Thanks, but do you have any sample and how use WMSGetFeatureInfo with Mapserver ? Stella 2010/1/19 stela anders > Thanks... > > > 2010/1/14 bwoodall > > Howdy, >> >> Granted it has been awhile since I played with the OL WMS code, but I >> think the only way is to use the TOLERANCE and TOLERANCE-UNITS in the >> LAYER for mapserver to get the desired 'BBOX' type results. >> >> http://mapserver.org/mapfile/layer.html?highlight=tolerance >> >> Hope that helps >> >> ..Bill, >> >> On Thu, 2010-01-14 at 15:23 -0500, Stephen Woodbridge wrote: >> > Stella, >> > >> > I forwarded this to the lists because there are more people there that >> > might be able to help. If you are not signup to these lists I recommend >> > that you sign up. >> > >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > Users mailing list >> > Users at openlayers.org >> > http://openlayers.org/mailman/listinfo/users >> > >> > -Steve >> > >> > -------- Original Message -------- >> > Subject: WMSGetFeatureInfo with Mapserver >> > Date: Thu, 14 Jan 2010 15:57:34 -0300 >> > From: stela anders >> > To: woodbri at swoodbridge.com >> > >> > >> > >> > Hello! >> > >> > I?m trying to implement tha sample : >> > >> http://dev.openlayers.org/releases/OpenLayers-2.8/examples/getfeatureinfo-control.html >> > >> > with mapserver... >> > But I kind of lost... >> > Could you send-me any sample how to do that? >> > And is possible to use a BOX instead a POINT to query? >> > >> > Thanks for the help >> > >> > Stella >> > _______________________________________________ >> > Users mailing list >> > Users at openlayers.org >> > http://openlayers.org/mailman/listinfo/users >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue Jan 19 05:10:38 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 19 Jan 2010 14:10:38 +0100 Subject: [mapserver-users] symbol at start and end of polyline ? In-Reply-To: <4CE3ED2D1C424AD5A006D34D30B61E6E@maunakea> References: <3B41616A21ED4B1BA6AA62D49F38C05D@maunakea> <4CE3ED2D1C424AD5A006D34D30B61E6E@maunakea> Message-ID: if you're using postgis, you can use a unique key from your table (i.e. gid) if you have a shapefile, you'll have to find an or a combination of attributes in the dbf that's unique to identify that particular feature. -- thomas On Tue, Jan 19, 2010 at 11:59, Oliver Christen < oliver.christen at camptocamp.com> wrote: > it makes sens, but how do I do that ? > do line segment get automaticaly an id ? > or how to get (or set) the id of the line segment? > > ----- Original Message ----- > *From:* thomas bonfort > *To:* Oliver Christen > *Cc:* mapserver-users at lists.osgeo.org > *Sent:* Tuesday, January 19, 2010 10:50 AM > *Subject:* Re: [mapserver-users] symbol at start and end of polyline ? > > well, if you want only one line segment to have start markers, you must > tell mapserver which segment that is. > > On Tue, Jan 19, 2010 at 10:48, Oliver Christen < > oliver.christen at camptocamp.com> wrote: > >> thx Thomas, but im not sure I understand what you are telling me here. >> do line segments have id ? >> >> ----- Original Message ----- >> *From:* thomas bonfort >> *To:* Oliver Christen >> *Cc:* mapserver-users at lists.osgeo.org >> *Sent:* Tuesday, January 19, 2010 10:30 AM >> *Subject:* Re: [mapserver-users] symbol at start and end of polyline ? >> >> hi, >> >> class >> expression ([id]=321) >> style >> geomtransform end >> ... >> end >> end >> class >> style >> ... #all the others >> end >> end >> >> On Tue, Jan 19, 2010 at 10:14, Oliver Christen < >> oliver.christen at camptocamp.com> wrote: >> >>> hello >>> >>> I would like to add a symbol at the start and end of a polyline. >>> >>> I tried using GEOMTRANSFORM with "start" and "end" in a style block in >>> the layer but sadely this will add a symbol to all start and end of every >>> vertex of the polyline, which is not the result wanted :/ >>> >>> is there any way to do that, beside creating a new point layer ? >>> >>> thanks in advance >>> Oliver >>> _______________________________________________ >>> 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 verena.diewald at wheregroup.com Tue Jan 19 05:27:49 2010 From: verena.diewald at wheregroup.com (Verena Diewald) Date: Tue, 19 Jan 2010 14:27:49 +0100 Subject: [mapserver-users] handling multiple styles for WMS layers Message-ID: <4B55B355.1030304@wheregroup.com> Hi list, I have one question concerning style handling in MapServer. Is it possible to define multiple layer styles for my WMS and request the single styles in the styles parameter in the GetMap request? And how are the single styles defined in the layer section of the mapfile? Greetings Verena -- From oliver.christen at camptocamp.com Tue Jan 19 06:12:57 2010 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Tue, 19 Jan 2010 15:12:57 +0100 Subject: [mapserver-users] symbol at start and end of polyline ? References: <3B41616A21ED4B1BA6AA62D49F38C05D@maunakea> <4CE3ED2D1C424AD5A006D34D30B61E6E@maunakea> Message-ID: <74CC49E802754ADF85D4E196A3F704CE@maunakea> At first I thought I had some oddity with the data I used for my testing ( see http://dev.camptocamp.com/~ochriste/line_with_style.png with the star symbol on every vertex of one line feature) but after trying with some other set of data, I only have the star symbol on start and end of the whole line feature ( and, strangely, also on cross-section if the line separate in two at some point ) http://dev.camptocamp.com/~ochriste/line_feature_extremities.png so I thought the problem was solved, but upon zooming on the extrmities of the line feature, im again having strange behavior: http://dev.camptocamp.com/~ochriste/line_feature_extremity_zoomed.png with multiple star symbols. the red star in these two image are from the same line feature. why is there more than 2 stars ? does the geomtransform 'end' only work for line features consisting of only 2 points ? ----- Original Message ----- From: thomas bonfort To: Oliver Christen Cc: mapserver-users at lists.osgeo.org Sent: Tuesday, January 19, 2010 2:10 PM Subject: Re: [mapserver-users] symbol at start and end of polyline ? if you're using postgis, you can use a unique key from your table (i.e. gid) if you have a shapefile, you'll have to find an or a combination of attributes in the dbf that's unique to identify that particular feature. -- thomas On Tue, Jan 19, 2010 at 11:59, Oliver Christen wrote: it makes sens, but how do I do that ? do line segment get automaticaly an id ? or how to get (or set) the id of the line segment? ----- Original Message ----- From: thomas bonfort To: Oliver Christen Cc: mapserver-users at lists.osgeo.org Sent: Tuesday, January 19, 2010 10:50 AM Subject: Re: [mapserver-users] symbol at start and end of polyline ? well, if you want only one line segment to have start markers, you must tell mapserver which segment that is. On Tue, Jan 19, 2010 at 10:48, Oliver Christen wrote: thx Thomas, but im not sure I understand what you are telling me here. do line segments have id ? ----- Original Message ----- From: thomas bonfort To: Oliver Christen Cc: mapserver-users at lists.osgeo.org Sent: Tuesday, January 19, 2010 10:30 AM Subject: Re: [mapserver-users] symbol at start and end of polyline ? hi, class expression ([id]=321) style geomtransform end ... end end class style ... #all the others end end On Tue, Jan 19, 2010 at 10:14, Oliver Christen wrote: hello I would like to add a symbol at the start and end of a polyline. I tried using GEOMTRANSFORM with "start" and "end" in a style block in the layer but sadely this will add a symbol to all start and end of every vertex of the polyline, which is not the result wanted :/ is there any way to do that, beside creating a new point layer ? thanks in advance Oliver _______________________________________________ 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 Steve.Toutant at inspq.qc.ca Tue Jan 19 05:48:05 2010 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 19 Jan 2010 08:48:05 -0500 Subject: [mapserver-users] Re: [OpenLayers-Users] [Fwd: WMSGetFeatureInfo with Mapserver] In-Reply-To: Message-ID: Stela Did you have a look at openlayers example http://openlayers.org/dev/examples/ See Feature Info in popup It will work with a Mapserver WMS. You got to define an OL control You also have to make your layer queryable, in your mapfile define a tolerance and a template. Steve stela anders @openlayers.org Envoy? par : users-bounces at openlayers.org 19/01/2010 07:37 AM A bwoodall cc openlayers user list , mapserver-users Objet Re: [OpenLayers-Users] [Fwd: WMSGetFeatureInfo with Mapserver] Thanks, but do you have any sample and how use WMSGetFeatureInfo with Mapserver ? Stella 2010/1/19 stela anders Thanks... 2010/1/14 bwoodall Howdy, Granted it has been awhile since I played with the OL WMS code, but I think the only way is to use the TOLERANCE and TOLERANCE-UNITS in the LAYER for mapserver to get the desired 'BBOX' type results. http://mapserver.org/mapfile/layer.html?highlight=tolerance Hope that helps ..Bill, On Thu, 2010-01-14 at 15:23 -0500, Stephen Woodbridge wrote: > Stella, > > I forwarded this to the lists because there are more people there that > might be able to help. If you are not signup to these lists I recommend > that you sign up. > > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > Users mailing list > Users at openlayers.org > http://openlayers.org/mailman/listinfo/users > > -Steve > > -------- Original Message -------- > Subject: WMSGetFeatureInfo with Mapserver > Date: Thu, 14 Jan 2010 15:57:34 -0300 > From: stela anders > To: woodbri at swoodbridge.com > > > > Hello! > > I?m trying to implement tha sample : > http://dev.openlayers.org/releases/OpenLayers-2.8/examples/getfeatureinfo-control.html > > with mapserver... > But I kind of lost... > Could you send-me any sample how to do that? > And is possible to use a BOX instead a POINT to query? > > Thanks for the help > > Stella > _______________________________________________ > Users mailing list > Users at openlayers.org > http://openlayers.org/mailman/listinfo/users _______________________________________________ Users mailing list Users at openlayers.org http://openlayers.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephan.holl at intevation.de Tue Jan 19 06:24:35 2010 From: stephan.holl at intevation.de (Stephan Holl) Date: Tue, 19 Jan 2010 15:24:35 +0100 Subject: [mapserver-users] handling multiple styles for WMS layers In-Reply-To: <4B55B355.1030304@wheregroup.com> References: <4B55B355.1030304@wheregroup.com> Message-ID: <20100119152435.3fd3ea92@thoe.hq.intevation.de> Hello Verena, Verena Diewald , [20100119 - 14:27:49] > Hi list, > > I have one question concerning style handling in MapServer. Is it > possible to define multiple layer styles for my WMS and request the > single styles in the styles parameter in the GetMap request? And how > are the single styles defined in the layer section of the mapfile? Have a look at GROUP[1] and CLASSGROUP[2]. This should should give what you want. Best Stephan [1] http://mapserver.org/mapfile/class.html [2] http://mapserver.org/mapfile/layer.html -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | 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: 198 bytes Desc: not available URL: From thomas.bonfort at gmail.com Tue Jan 19 06:48:46 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 19 Jan 2010 15:48:46 +0100 Subject: [mapserver-users] symbol at start and end of polyline ? In-Reply-To: <74CC49E802754ADF85D4E196A3F704CE@maunakea> References: <3B41616A21ED4B1BA6AA62D49F38C05D@maunakea> <4CE3ED2D1C424AD5A006D34D30B61E6E@maunakea> <74CC49E802754ADF85D4E196A3F704CE@maunakea> Message-ID: On Tue, Jan 19, 2010 at 15:12, Oliver Christen < oliver.christen at camptocamp.com> wrote: > At first I thought I had some oddity with the data I used for my testing > ( see http://dev.camptocamp.com/~ochriste/line_with_style.png with > the star symbol on every vertex of one line feature) > > but after trying with some other set of data, I only have the star symbol > on start and end of the whole line feature ( and, strangely, also on > cross-section if the line separate in two at some point ) > where the stars are put depends on the structure of your geometry, as stored in your database or shapefiles > http://dev.camptocamp.com/~ochriste/line_feature_extremities.png > so I thought the problem was solved, but upon zooming on the extrmities of > the line feature, im again having strange behavior: > http://dev.camptocamp.com/~ochriste/line_feature_extremity_zoomed.png > with multiple star symbols. > the red star in these two image are from the same line feature. > are you sure your class expression matches only one geometry ? > > why is there more than 2 stars ? > does the geomtransform 'end' only work for line features consisting of only > 2 points ? > > ----- Original Message ----- > *From:* thomas bonfort > *To:* Oliver Christen > *Cc:* mapserver-users at lists.osgeo.org > *Sent:* Tuesday, January 19, 2010 2:10 PM > *Subject:* Re: [mapserver-users] symbol at start and end of polyline ? > > if you're using postgis, you can use a unique key from your table (i.e. > gid) > if you have a shapefile, you'll have to find an or a combination of > attributes in the dbf that's unique to identify that particular feature. > > -- > thomas > > On Tue, Jan 19, 2010 at 11:59, Oliver Christen < > oliver.christen at camptocamp.com> wrote: > >> it makes sens, but how do I do that ? >> do line segment get automaticaly an id ? >> or how to get (or set) the id of the line segment? >> >> ----- Original Message ----- >> *From:* thomas bonfort >> *To:* Oliver Christen >> *Cc:* mapserver-users at lists.osgeo.org >> *Sent:* Tuesday, January 19, 2010 10:50 AM >> *Subject:* Re: [mapserver-users] symbol at start and end of polyline ? >> >> well, if you want only one line segment to have start markers, you must >> tell mapserver which segment that is. >> >> On Tue, Jan 19, 2010 at 10:48, Oliver Christen < >> oliver.christen at camptocamp.com> wrote: >> >>> thx Thomas, but im not sure I understand what you are telling me here. >>> do line segments have id ? >>> >>> ----- Original Message ----- >>> *From:* thomas bonfort >>> *To:* Oliver Christen >>> *Cc:* mapserver-users at lists.osgeo.org >>> *Sent:* Tuesday, January 19, 2010 10:30 AM >>> *Subject:* Re: [mapserver-users] symbol at start and end of polyline ? >>> >>> hi, >>> >>> class >>> expression ([id]=321) >>> style >>> geomtransform end >>> ... >>> end >>> end >>> class >>> style >>> ... #all the others >>> end >>> end >>> >>> On Tue, Jan 19, 2010 at 10:14, Oliver Christen < >>> oliver.christen at camptocamp.com> wrote: >>> >>>> hello >>>> >>>> I would like to add a symbol at the start and end of a polyline. >>>> >>>> I tried using GEOMTRANSFORM with "start" and "end" in a style block in >>>> the layer but sadely this will add a symbol to all start and end of every >>>> vertex of the polyline, which is not the result wanted :/ >>>> >>>> is there any way to do that, beside creating a new point layer ? >>>> >>>> thanks in advance >>>> Oliver >>>> _______________________________________________ >>>> 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 Steve.Toutant at inspq.qc.ca Tue Jan 19 11:25:39 2010 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 19 Jan 2010 14:25:39 -0500 Subject: [mapserver-users] windows 2008 server Message-ID: Hi, My IT service wants to install windows 2008 server on my server. Does MapServer work on this platform? Is there known issues? thanks in advance Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From dgwalton at gmail.com Tue Jan 19 11:42:30 2010 From: dgwalton at gmail.com (Daniel Walton) Date: Tue, 19 Jan 2010 13:42:30 -0600 Subject: [mapserver-users] windows 2008 server In-Reply-To: References: Message-ID: <8ab83e651001191142k30c82648w2e6d176cc5015a9b@mail.gmail.com> We've installed mapserver (CGI mode only, using IIS7's FastCGI module) onto Windows Server 2008 x64 with no issues. -Dan Walton GIS Fire Tools http://gisfiretools.com On Tue, Jan 19, 2010 at 1:25 PM, wrote: > > Hi, > My IT service wants to install windows 2008 server on my server. > Does MapServer work on this platform? Is there known issues? > > thanks in advance > Steve > > > _______________________________________________ > 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 Tue Jan 19 12:11:48 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 19 Jan 2010 16:11:48 -0400 Subject: [mapserver-users] windows 2008 server In-Reply-To: References: Message-ID: <4B561204.4060209@gatewaygeomatics.com> Steve.Toutant at inspq.qc.ca wrote: > > Hi, > My IT service wants to install windows 2008 server on my server. > Does MapServer work on this platform? Is there known issues? > Steve, I have run MS4W on Windows 2008 Server (32bit) without issues. If you wish to run MapServer in 64bit you would require a custom build. If you hit any walls you can contact my team for support. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From KMorrison at advantrack.com Tue Jan 19 13:16:50 2010 From: KMorrison at advantrack.com (Kent Morrison) Date: Tue, 19 Jan 2010 15:16:50 -0600 Subject: [mapserver-users] Images returning blank Message-ID: <4DCDDD4507E4E847920443D1B98C588D04A5210B31@mail1.advantrack.local> I have mapserver 5.4.2 installed. I have two different shape files, one renders properly the other only returns blank images The debug log for the one that does not work returns: [Tue Jan 19 20:34:59 2010].212000 CGI Request 1 on process 1180 [Tue Jan 19 20:34:59 2010].212000 mapserv(): Web application error. No way to generate map extent. [Tue Jan 19 20:34:59 2010].212000 msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. [Tue Jan 19 20:34:59 2010].212000 msTileSetExtent (-13090872.991896, 6046512.903143) (-13071381.549686, 6066004.345353) [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap() total time: 0.015s [Tue Jan 19 20:34:59 2010].274000 msSaveImage() total time: 0.047s [Tue Jan 19 20:34:59 2010].274000 mapserv request processing time (loadmap not incl.): 0.062s [Tue Jan 19 20:34:59 2010].274000 msFreeMap(): freeing map at 01A5AF00. [Tue Jan 19 20:34:59 2010].274000 freeLayer(): freeing layer at 020E4160. the map file is: MAP IMAGETYPE AGG SIZE 256 256 SHAPEPATH "/MapServerData/ShapeFiles/1" IMAGECOLOR 255 255 255 TRANSPARENT ON FONTSET "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors2.txt" DEBUG 5 PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #Outputformat LAYER NAME SpokaneTrafficFlows DATA TrafficFlow_2007 STATUS ON TYPE LINE DEBUG 5 CLASS NAME "classSpokaneTrafficFlows" STYLE COLOR 127 255 64 OPACITY 50 OUTLINECOLOR 255 128 64 WIDTH 3 END #style END #class END #layer END #Map running shp2img.exe returns: msLoadMap(): Image handling error. Unable to initialize image msCalculateScale(): General error message. invalid image extent .... I get the same results for shp2img on the working shapefile/map file. THE FOLLOWING WORKS: MAP IMAGETYPE AGG SIZE 256 256 SHAPEPATH "/MapServerData/ShapeFiles/1" IMAGECOLOR 255 255 255 TRANSPARENT ON FONTSET "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #Outputformat LAYER NAME TxCounties DATA co48_d00 STATUS ON TYPE Polygon CLASS NAME "classTxCounties" STYLE COLOR 0 255 0 OPACITY 25 OUTLINECOLOR 0 0 0 WIDTH 2 END #style END #class END #layer END #Map Anyone have any idea's why this might not work in the first case? Or what else can I do to debug the problem? Kent -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Jan 19 13:23:05 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 19 Jan 2010 23:23:05 +0200 Subject: [mapserver-users] Images returning blank References: <4DCDDD4507E4E847920443D1B98C588D04A5210B31@mail1.advantrack.local> Message-ID: Hi, I would start by adding EXTENT element at MAP level, see for example http://www.mapserver.org/introduction.html -Jukka Rahkonen- > Kent Morrison wrote: > I have mapserver 5.4.2 installed. > I have two different shape files, one renders properly the other only returns blank images > The debug log for the one that does not work returns: > [Tue Jan 19 20:34:59 2010].212000 CGI Request 1 on process 1180 [Tue Jan 19 20:34:59 2010].212000 mapserv(): Web application error. No way to generate map extent. [Tue Jan 19 20:34:59 2010].212000 msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. [Tue Jan 19 20:34:59 2010].212000 msTileSetExtent (-13090872.991896, 6046512.903143) (-13071381.549686, 6066004.345353) [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap() total time: 0.015s [Tue Jan 19 20:34:59 2010].274000 msSaveImage() total time: 0.047s [Tue Jan 19 20:34:59 2010].274000 mapserv request processing time (loadmap not incl.): 0.062s [Tue Jan 19 20:34:59 2010].274000 msFreeMap(): freeing map at 01A5AF00. [Tue Jan 19 20:34:59 2010].274000 freeLayer(): freeing layer at 020E4160. the map file is: MAP IMAGETYPE AGG SIZE 256 256 SHAPEPATH "/MapServerData/ShapeFiles/1" IMAGECOLOR 255 255 255 TRANSPARENT ON FONTSET "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors2.txt" DEBUG 5 PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #Outputformat LAYER NAME SpokaneTrafficFlows DATA TrafficFlow_2007 STATUS ON TYPE LINE DEBUG 5 CLASS NAME "classSpokaneTrafficFlows" STYLE COLOR 127 255 64 OPACITY 50 OUTLINECOLOR 255 128 64 WIDTH 3 END #style END #class END #layer END #Map running shp2img.exe returns: msLoadMap(): Image handling error. Unable to initialize image msCalculateScale(): General error message. invalid image extent .... I get the same results for shp2img on the working shapefile/map file. THE FOLLOWING WORKS: MAP IMAGETYPE AGG SIZE 256 256 SHAPEPATH "/MapServerData/ShapeFiles/1" IMAGECOLOR 255 255 255 TRANSPARENT ON FONTSET "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #Outputformat LAYER NAME TxCounties DATA co48_d00 STATUS ON TYPE Polygon CLASS NAME "classTxCounties" STYLE COLOR 0 255 0 OPACITY 25 OUTLINECOLOR 0 0 0 WIDTH 2 END #style END #class END #layer END #Map Anyone have any idea's why this might not work in the first case? Or what else can I do to debug the problem? Kent From David.Fawcett at state.mn.us Tue Jan 19 13:27:45 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Tue, 19 Jan 2010 15:27:45 -0600 Subject: [mapserver-users] RE: Images returning blank In-Reply-To: <4DCDDD4507E4E847920443D1B98C588D04A5210B31@mail1.advantrack.local> References: <4DCDDD4507E4E847920443D1B98C588D04A5210B31@mail1.advantrack.local> Message-ID: Based on the errors, it looks like you will need EXTENT to your map file at the MAP level. What do you get when you run ogrinfo against the two shapefiles? Any difference? Are you adding a URL var for the layer name? Try setting LAYER STATUS to DEFAULT for both layers and see if you get an image back. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kent Morrison Sent: Tuesday, January 19, 2010 3:17 PM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] Images returning blank I have mapserver 5.4.2 installed. I have two different shape files, one renders properly the other only returns blank images The debug log for the one that does not work returns: [Tue Jan 19 20:34:59 2010].212000 CGI Request 1 on process 1180 [Tue Jan 19 20:34:59 2010].212000 mapserv(): Web application error. No way to generate map extent. [Tue Jan 19 20:34:59 2010].212000 msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. [Tue Jan 19 20:34:59 2010].212000 msTileSetExtent (-13090872.991896, 6046512.903143) (-13071381.549686, 6066004.345353) [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap() total time: 0.015s [Tue Jan 19 20:34:59 2010].274000 msSaveImage() total time: 0.047s [Tue Jan 19 20:34:59 2010].274000 mapserv request processing time (loadmap not incl.): 0.062s [Tue Jan 19 20:34:59 2010].274000 msFreeMap(): freeing map at 01A5AF00. [Tue Jan 19 20:34:59 2010].274000 freeLayer(): freeing layer at 020E4160. the map file is: MAP IMAGETYPE AGG SIZE 256 256 SHAPEPATH "/MapServerData/ShapeFiles/1" IMAGECOLOR 255 255 255 TRANSPARENT ON FONTSET "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors2.txt" DEBUG 5 PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #Outputformat LAYER NAME SpokaneTrafficFlows DATA TrafficFlow_2007 STATUS ON TYPE LINE DEBUG 5 CLASS NAME "classSpokaneTrafficFlows" STYLE COLOR 127 255 64 OPACITY 50 OUTLINECOLOR 255 128 64 WIDTH 3 END #style END #class END #layer END #Map running shp2img.exe returns: msLoadMap(): Image handling error. Unable to initialize image msCalculateScale(): General error message. invalid image extent .... I get the same results for shp2img on the working shapefile/map file. THE FOLLOWING WORKS: MAP IMAGETYPE AGG SIZE 256 256 SHAPEPATH "/MapServerData/ShapeFiles/1" IMAGECOLOR 255 255 255 TRANSPARENT ON FONTSET "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #Outputformat LAYER NAME TxCounties DATA co48_d00 STATUS ON TYPE Polygon CLASS NAME "classTxCounties" STYLE COLOR 0 255 0 OPACITY 25 OUTLINECOLOR 0 0 0 WIDTH 2 END #style END #class END #layer END #Map Anyone have any idea's why this might not work in the first case? Or what else can I do to debug the problem? Kent -------------- next part -------------- An HTML attachment was scrubbed... URL: From KMorrison at advantrack.com Tue Jan 19 14:14:37 2010 From: KMorrison at advantrack.com (Kent Morrison) Date: Tue, 19 Jan 2010 16:14:37 -0600 Subject: [mapserver-users] RE: Images returning blank In-Reply-To: References: <4DCDDD4507E4E847920443D1B98C588D04A5210B31@mail1.advantrack.local> Message-ID: <4DCDDD4507E4E847920443D1B98C588D04A5210B32@mail1.advantrack.local> I ran ogrinfo.exe on the non-working file. C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\trafficflow_200 7.shp trafficflow_2007 -so INFO: Open of `c:\mapserverdata\shapefiles\1\trafficflow_2007.shp' using driver `ESRI Shapefile' successful. Layer name: trafficflow_2007 Geometry: Line String Feature Count: 4212 Extent: (2460247.751004, 232706.929725) - (2507483.898985, 294550.472704) Layer SRS WKT: (unknown) CounterID: Integer (10.0) Location: String (50.0) StartDate: Date (10.0) ADT_Total: Integer (10.0) AWD_Total: Integer (10.0) XCoord: Real (19.8) YCoord: Real (19.8) StreetID: String (16.0) Shape_len: Real (19.11) I added: EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704 to the map file and changed the Layer Status to Default. [Tue Jan 19 21:43:35 2010].791000 CGI Request 1 on process 2676 [Tue Jan 19 21:43:35 2010].791000 msTileSetExtent (-13073784.538762, 6051371.431753) (-13071348.108486, 6053807.862029) [Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 21:43:35 2010].791000 msDrawMap() total time: 0.000s [Tue Jan 19 21:43:35 2010].822000 msSaveImage() total time: 0.031s [Tue Jan 19 21:43:35 2010].822000 mapserv request processing time (loadmap not incl.): 0.031s [Tue Jan 19 21:43:35 2010].822000 msFreeMap(): freeing map at 01A5AF10. Still a blank image. When I ran ogrinfo.exe on the working shapefile: C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\co48_d00.shp -s o co48_d00 INFO: Open of `c:\mapserverdata\shapefiles\1\co48_d00.shp' using driver `ESRI Shapefile' successful. Layer name: co48_d00 Geometry: Polygon Feature Count: 265 Extent: (-106.645646, 25.837377) - (-93.516407, 36.500704) Layer SRS WKT: (unknown) AREA: Real (20.5) PERIMETER: Real (20.5) CO48_D00_: Real (11.0) CO48_D00_I: Real (11.0) STATE: String (2.0) COUNTY: String (3.0) NAME: String (90.0) LSAD: String (2.0) LSAD_TRANS: String (50.0) The Extents on the working file are in lat/lon. In the non-working file it looks to be in something else. I'm trying to return VE image tiles.. not sure where to go from here to get the first file to work. Thanks ________________________________ From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Tuesday, January 19, 2010 3:28 PM To: Kent Morrison; 'mapserver-users at lists.osgeo.org' Subject: RE: Images returning blank Based on the errors, it looks like you will need EXTENT to your map file at the MAP level. What do you get when you run ogrinfo against the two shapefiles? Any difference? Are you adding a URL var for the layer name? Try setting LAYER STATUS to DEFAULT for both layers and see if you get an image back. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kent Morrison Sent: Tuesday, January 19, 2010 3:17 PM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] Images returning blank I have mapserver 5.4.2 installed. I have two different shape files, one renders properly the other only returns blank images The debug log for the one that does not work returns: [Tue Jan 19 20:34:59 2010].212000 CGI Request 1 on process 1180 [Tue Jan 19 20:34:59 2010].212000 mapserv(): Web application error. No way to generate map extent. [Tue Jan 19 20:34:59 2010].212000 msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. [Tue Jan 19 20:34:59 2010].212000 msTileSetExtent (-13090872.991896, 6046512.903143) (-13071381.549686, 6066004.345353) [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap() total time: 0.015s [Tue Jan 19 20:34:59 2010].274000 msSaveImage() total time: 0.047s [Tue Jan 19 20:34:59 2010].274000 mapserv request processing time (loadmap not incl.): 0.062s [Tue Jan 19 20:34:59 2010].274000 msFreeMap(): freeing map at 01A5AF00. [Tue Jan 19 20:34:59 2010].274000 freeLayer(): freeing layer at 020E4160. the map file is: MAP IMAGETYPE AGG SIZE 256 256 SHAPEPATH "/MapServerData/ShapeFiles/1" IMAGECOLOR 255 255 255 TRANSPARENT ON FONTSET "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors2.txt" DEBUG 5 PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #Outputformat LAYER NAME SpokaneTrafficFlows DATA TrafficFlow_2007 STATUS ON TYPE LINE DEBUG 5 CLASS NAME "classSpokaneTrafficFlows" STYLE COLOR 127 255 64 OPACITY 50 OUTLINECOLOR 255 128 64 WIDTH 3 END #style END #class END #layer END #Map running shp2img.exe returns: msLoadMap(): Image handling error. Unable to initialize image msCalculateScale(): General error message. invalid image extent .... I get the same results for shp2img on the working shapefile/map file. THE FOLLOWING WORKS: MAP IMAGETYPE AGG SIZE 256 256 SHAPEPATH "/MapServerData/ShapeFiles/1" IMAGECOLOR 255 255 255 TRANSPARENT ON FONTSET "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #Outputformat LAYER NAME TxCounties DATA co48_d00 STATUS ON TYPE Polygon CLASS NAME "classTxCounties" STYLE COLOR 0 255 0 OPACITY 25 OUTLINECOLOR 0 0 0 WIDTH 2 END #style END #class END #layer END #Map Anyone have any idea's why this might not work in the first case? Or what else can I do to debug the problem? Kent -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Tue Jan 19 14:21:54 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Tue, 19 Jan 2010 16:21:54 -0600 Subject: [mapserver-users] RE: Images returning blank In-Reply-To: <4DCDDD4507E4E847920443D1B98C588D04A5210B32@mail1.advantrack.local> References: <4DCDDD4507E4E847920443D1B98C588D04A5210B31@mail1.advantrack.local> <4DCDDD4507E4E847920443D1B98C588D04A5210B32@mail1.advantrack.local> Message-ID: I think that this is pretty obviously your problem. Before you can transform between spatial reference systems (SRS), you need to know what the original SRS is. To create VE image tiles, it needs to transform to 'Web Mercator'. It can't do that if you don't correctly identify the SRS of your layer. I believe that your lat/lon layer works because it is inheriting the projection from the MAP. For your 'something else' layer, you will need to define the correct projection for that layer. David. From: Kent Morrison [mailto:KMorrison at advantrack.com] Sent: Tuesday, January 19, 2010 4:15 PM To: Fawcett, David (MPCA); 'mapserver-users at lists.osgeo.org' Subject: RE: Images returning blank The Extents on the working file are in lat/lon. In the non-working file it looks to be in something else. I'm trying to return VE image tiles.. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Jan 19 14:24:42 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 20 Jan 2010 00:24:42 +0200 Subject: [mapserver-users] RE: Images returning blank References: <4DCDDD4507E4E847920443D1B98C588D04A5210B31@mail1.advantrack.local> <4DCDDD4507E4E847920443D1B98C588D04A5210B32@mail1.advantrack.local> Message-ID: Hi, The non-working one is in some other projection than epsg:4326. You will get that layer visible by removing projection also from the MAP level and using the extents from ogrinfo, but in order to show both layers together you should know the correct projection for both datasets. If projection is given at map level it must suit the extents. Epsg:4326 and EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704 do not suit. -Jukka- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Kent Morrison L?hetetty: ke 20.1.2010 0:14 Vastaanottaja: 'Fawcett, David (MPCA)'; 'mapserver-users at lists.osgeo.org' Aihe: [mapserver-users] RE: Images returning blank I ran ogrinfo.exe on the non-working file. C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\trafficflow_200 7.shp trafficflow_2007 -so INFO: Open of `c:\mapserverdata\shapefiles\1\trafficflow_2007.shp' using driver `ESRI Shapefile' successful. Layer name: trafficflow_2007 Geometry: Line String Feature Count: 4212 Extent: (2460247.751004, 232706.929725) - (2507483.898985, 294550.472704) Layer SRS WKT: (unknown) CounterID: Integer (10.0) Location: String (50.0) StartDate: Date (10.0) ADT_Total: Integer (10.0) AWD_Total: Integer (10.0) XCoord: Real (19.8) YCoord: Real (19.8) StreetID: String (16.0) Shape_len: Real (19.11) I added: EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704 to the map file and changed the Layer Status to Default. [Tue Jan 19 21:43:35 2010].791000 CGI Request 1 on process 2676 [Tue Jan 19 21:43:35 2010].791000 msTileSetExtent (-13073784.538762, 6051371.431753) (-13071348.108486, 6053807.862029) [Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 21:43:35 2010].791000 msDrawMap() total time: 0.000s [Tue Jan 19 21:43:35 2010].822000 msSaveImage() total time: 0.031s [Tue Jan 19 21:43:35 2010].822000 mapserv request processing time (loadmap not incl.): 0.031s [Tue Jan 19 21:43:35 2010].822000 msFreeMap(): freeing map at 01A5AF10. Still a blank image. When I ran ogrinfo.exe on the working shapefile: C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\co48_d00.shp -s o co48_d00 INFO: Open of `c:\mapserverdata\shapefiles\1\co48_d00.shp' using driver `ESRI Shapefile' successful. Layer name: co48_d00 Geometry: Polygon Feature Count: 265 Extent: (-106.645646, 25.837377) - (-93.516407, 36.500704) Layer SRS WKT: (unknown) AREA: Real (20.5) PERIMETER: Real (20.5) CO48_D00_: Real (11.0) CO48_D00_I: Real (11.0) STATE: String (2.0) COUNTY: String (3.0) NAME: String (90.0) LSAD: String (2.0) LSAD_TRANS: String (50.0) The Extents on the working file are in lat/lon. In the non-working file it looks to be in something else. I'm trying to return VE image tiles.. not sure where to go from here to get the first file to work. Thanks ________________________________ From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Tuesday, January 19, 2010 3:28 PM To: Kent Morrison; 'mapserver-users at lists.osgeo.org' Subject: RE: Images returning blank Based on the errors, it looks like you will need EXTENT to your map file at the MAP level. What do you get when you run ogrinfo against the two shapefiles? Any difference? Are you adding a URL var for the layer name? Try setting LAYER STATUS to DEFAULT for both layers and see if you get an image back. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kent Morrison Sent: Tuesday, January 19, 2010 3:17 PM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] Images returning blank I have mapserver 5.4.2 installed. I have two different shape files, one renders properly the other only returns blank images The debug log for the one that does not work returns: [Tue Jan 19 20:34:59 2010].212000 CGI Request 1 on process 1180 [Tue Jan 19 20:34:59 2010].212000 mapserv(): Web application error. No way to generate map extent. [Tue Jan 19 20:34:59 2010].212000 msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. [Tue Jan 19 20:34:59 2010].212000 msTileSetExtent (-13090872.991896, 6046512.903143) (-13071381.549686, 6066004.345353) [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap() total time: 0.015s [Tue Jan 19 20:34:59 2010].274000 msSaveImage() total time: 0.047s [Tue Jan 19 20:34:59 2010].274000 mapserv request processing time (loadmap not incl.): 0.062s [Tue Jan 19 20:34:59 2010].274000 msFreeMap(): freeing map at 01A5AF00. [Tue Jan 19 20:34:59 2010].274000 freeLayer(): freeing layer at 020E4160. the map file is: MAP IMAGETYPE AGG SIZE 256 256 SHAPEPATH "/MapServerData/ShapeFiles/1" IMAGECOLOR 255 255 255 TRANSPARENT ON FONTSET "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors2.txt" DEBUG 5 PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #Outputformat LAYER NAME SpokaneTrafficFlows DATA TrafficFlow_2007 STATUS ON TYPE LINE DEBUG 5 CLASS NAME "classSpokaneTrafficFlows" STYLE COLOR 127 255 64 OPACITY 50 OUTLINECOLOR 255 128 64 WIDTH 3 END #style END #class END #layer END #Map running shp2img.exe returns: msLoadMap(): Image handling error. Unable to initialize image msCalculateScale(): General error message. invalid image extent .... I get the same results for shp2img on the working shapefile/map file. THE FOLLOWING WORKS: MAP IMAGETYPE AGG SIZE 256 256 SHAPEPATH "/MapServerData/ShapeFiles/1" IMAGECOLOR 255 255 255 TRANSPARENT ON FONTSET "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #Outputformat LAYER NAME TxCounties DATA co48_d00 STATUS ON TYPE Polygon CLASS NAME "classTxCounties" STYLE COLOR 0 255 0 OPACITY 25 OUTLINECOLOR 0 0 0 WIDTH 2 END #style END #class END #layer END #Map Anyone have any idea's why this might not work in the first case? Or what else can I do to debug the problem? Kent From jmcbride at mortonarb.org Tue Jan 19 15:30:12 2010 From: jmcbride at mortonarb.org (Jeanette McBride) Date: Tue, 19 Jan 2010 17:30:12 -0600 Subject: [mapserver-users] query by point results in IE vs. Firefox Message-ID: <4B55EC23.83DF.000C.0@mortonarb.org> Query by point works fine in IE, but in Firefox it actually returns a point about half an inch (screen units) north of the one selected. (see link below) Any ideas? Thanks! Jenny http://www.plantconservation.us/map.phtml From dshorthouse at eol.org Tue Jan 19 19:57:03 2010 From: dshorthouse at eol.org (Shorthouse, David) Date: Tue, 19 Jan 2010 22:57:03 -0500 Subject: [mapserver-users] PHP MapScript pixel coordinates to map coordinates Message-ID: Folks, This question has no doubt been asked many times, but for the life of me I cannot find a solution. Here's what I'm trying to do: I have a jQuery-based front-end that uses the wonderful jcrop extension (http://deepliquid.com/content/Jcrop.html) that helps coordinate zoom. I'm hoping to use this same front-end to permit cropping of a resultant map image, which means I need to pass the four pixel corner coordinates, convert to map coordinates (projection may be variable), then set the extent such that the resultant map image will have the same dimensions as that described by the user on the front-end. So, how can I convert pixel coordinates to map coordinates? Note that the map projection is not always DD so I cannot merely use proportions as I have seen in some solutions. Surely this is easier than I am making it out to be. Thanks for any advice, David Shorthouse From Liang.Jian at eniro.com Wed Jan 20 00:14:15 2010 From: Liang.Jian at eniro.com (Liang Jian) Date: Wed, 20 Jan 2010 09:14:15 +0100 Subject: [mapserver-users] lanczos in mapserver Message-ID: Hi, Is that possible to use lanczos resample method in mapserver? I can find this option in GDAL but not in mapserver. Thanks! /Liang ________________________________ Confidentiality Notice: This e-mail transmission may contain confidential or legally privileged information that is intended only for the individual or entity named in the e-mail address. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or reliance upon the contents of this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete all copies of this message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.degasperi at r3-gis.com Tue Jan 19 23:29:23 2010 From: daniel.degasperi at r3-gis.com (Daniel Degasperi) Date: Wed, 20 Jan 2010 08:29:23 +0100 Subject: [mapserver-users] PHP MapScript pixel coordinates to map coordinates In-Reply-To: References: Message-ID: <4B56B0D3.4000806@r3-gis.com> Hi David, have you already tried with this conversion: $geo_x = $minx + (($pix_x / $map_width) * ($maxx- $minx)); $geo_y = $maxy - (($pix_y / $map_height) * ($maxy - $miny)); Daniel Am 20.01.2010 04:57, schrieb Shorthouse, David: > Folks, > > This question has no doubt been asked many times, but for the life of > me I cannot find a solution. Here's what I'm trying to do: > > I have a jQuery-based front-end that uses the wonderful jcrop > extension (http://deepliquid.com/content/Jcrop.html) that helps > coordinate zoom. I'm hoping to use this same front-end to permit > cropping of a resultant map image, which means I need to pass the four > pixel corner coordinates, convert to map coordinates (projection may > be variable), then set the extent such that the resultant map image > will have the same dimensions as that described by the user on the > front-end. So, how can I convert pixel coordinates to map coordinates? > Note that the map projection is not always DD so I cannot merely use > proportions as I have seen in some solutions. Surely this is easier > than I am making it out to be. > > Thanks for any advice, > > David Shorthouse > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Daniel Degasperi Software Developer daniel.degasperi at r3-gis.com --------------------------- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com ----------------------------- From sandeepk.tech at gmail.com Wed Jan 20 06:45:56 2010 From: sandeepk.tech at gmail.com (Sandeep Kumar Chauhan) Date: Wed, 20 Jan 2010 06:45:56 -0800 (PST) Subject: [mapserver-users] Re: 5.6.1 Postgis problem In-Reply-To: <4B4FEE02.3070401@swoodbridge.com> References: <1263471683507-4392177.post@n2.nabble.com> <4B4F2E0A.6070804@swoodbridge.com> <1263529168486-4396971.post@n2.nabble.com> <4B4FEE02.3070401@swoodbridge.com> Message-ID: <1263998756968-4426856.post@n2.nabble.com> Hi Steve, Thanks for help, i changed my code according to your suggestion. if (layer.queryByPoint(Map, point, (int)mapscript.MS_SINGLE, tolerance) == ... { resultCacheObj result = layer.getResults(); if (result.numresults > 0) { resultCacheMemberObj rrr = result.getResult(0); shapeObj shape = new shapeObj((int)layer.type); layer.resultsGetShape(shape, rrr.shapeindex, rrr.tileindex); ... ... ... Now it is working fine. Again thanks for help Thanks, -Sandeep -- View this message in context: http://n2.nabble.com/5-6-1-Postgis-problem-tp4392177p4426856.html Sent from the Mapserver - User mailing list archive at Nabble.com. From SSchantz at BfS.de Wed Jan 20 07:32:12 2010 From: SSchantz at BfS.de (Stefan Schantz) Date: Wed, 20 Jan 2010 16:32:12 +0100 Subject: [mapserver-users] VRT / CSV data sources are not displayed in a layer Message-ID: <4B5721FC.60608@BfS.de> Hello List, The following layer uses a CSV-file (together with a VRT-File (Virtual Format) ) as datasource . When I try to visualize the layer, nothing is shown (neither the data nor error messages; shp2img shows also nothing) LAYER NAME "boden" DEBUG on STATUS ON TYPE POINT # DATA "/daten/csv/boden/boden" # Datenquelle Shapefile CONNECTION "/daten/csv/boden.vrt" CONNECTIONTYPE OGR PROJECTION "init=epsg:25832" END METADATA "WMS_TITLE" "test" "WMS_SRS" "EPSG:25832" "WMS_ABSTRACT" "test" "WMS_FEATURE_INFO_MIME_TYPE" 'text/html' END CLASS NAME "test" STYLE SYMBOL "circle" SIZE 15 COLOR 90 90 90 END END END But if I transform the CSV/VRT-file into a Shapefile via ogr2ogr ogr2ogr -s_srs EPSG:25832 -t_srs EPSG:25832 -f "ESRI Shapefile" boden boden.vrt the layer displays the data. What is wrong with my VRT/CSV-datasource in the mapfile? Thanks for any idea. Best regards Stefan From boolean10001 at yahoo.com Wed Jan 20 08:20:10 2010 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Wed, 20 Jan 2010 08:20:10 -0800 (PST) Subject: [mapserver-users] VRT / CSV data sources are not displayed in a layer In-Reply-To: <4B5721FC.60608@BfS.de> References: <4B5721FC.60608@BfS.de> Message-ID: <785497.50057.qm@web38201.mail.mud.yahoo.com> Check that you have your CSV like this: Lat,Lng,House 48.1,0.25,"My house" 49.2,1.1,"My girlfriend's house" 47.5,0.75,"My mother in law's house" And that you have your VTR like this: [FILE] wkbPoint [YOUR SRS] IC Carlos Ruiz ________________________________ From: Stefan Schantz To: mapserver-users at lists.osgeo.org Sent: Wed, January 20, 2010 9:32:12 AM Subject: [mapserver-users] VRT / CSV data sources are not displayed in a layer Hello List, The following layer uses a CSV-file (together with a VRT-File (Virtual Format) ) as datasource . When I try to visualize the layer, nothing is shown (neither the data nor error messages; shp2img shows also nothing) LAYER NAME "boden" DEBUG on STATUS ON TYPE POINT # DATA "/daten/csv/boden/boden" # Datenquelle Shapefile CONNECTION "/daten/csv/boden.vrt" CONNECTIONTYPE OGR PROJECTION "init=epsg:25832" END METADATA "WMS_TITLE" "test" "WMS_SRS" "EPSG:25832" "WMS_ABSTRACT" "test" "WMS_FEATURE_INFO_MIME_TYPE" 'text/html' END CLASS NAME "test" STYLE SYMBOL "circle" SIZE 15 COLOR 90 90 90 END END END But if I transform the CSV/VRT-file into a Shapefile via ogr2ogr ogr2ogr -s_srs EPSG:25832 -t_srs EPSG:25832 -f "ESRI Shapefile" boden boden.vrt the layer displays the data. What is wrong with my VRT/CSV-datasource in the mapfile? Thanks for any idea. Best regards Stefan _______________________________________________ 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 cjauvin at gmail.com Wed Jan 20 08:31:04 2010 From: cjauvin at gmail.com (Christian Jauvin) Date: Wed, 20 Jan 2010 11:31:04 -0500 Subject: [mapserver-users] Announcement: Dracones, a web mapping framework for MapServer Message-ID: Dear MapServer users, I have created Dracones, a Python and JavaScript web mapping framework based on MapServer, which I think could be of interest to the open source web mapping/GIS community. It is available at: http://surveillance.mcgill.ca/dracones This framework began its life as a surveillance application for Montreal Public Health. After a lot of refactoring sessions, I had the idea of abstracting a set of core client/server services, that would become the framework, and to rewrite the original application in terms of those. Thus the set of features offered by Dracones stems from pre-existing application needs, rather than the opposite. In a nutshell, here is what Dracones provides.. On the client side: * A lightweight but powerful map widget (100% JS), with state of the art features like AJAX-based smooth scrolling and visual selection * An extension mechanism to define new UI behaviors (e.g. what happens when clicking on the map, or drawing a selection box around objects) On the server side: * A set of Python classes and functions (written on top of Python-MapScript) that encapsulate the application state, and ease the interaction with its map objects * A well-thought extension mechanism, to define custom requests and queries Dracones also provides a bunch of other application-centric features, like easy map image export and undo/redo. Last but not least, I've been very careful in writing the documentation and tutorials, which I think cover a wide range of issues and possibilities. This work is still in Alpha stage, and I will be of course very interested to hear the community's comments and suggestions. Best regards, Christian Jauvin From KMorrison at advantrack.com Wed Jan 20 08:45:26 2010 From: KMorrison at advantrack.com (Kent Morrison) Date: Wed, 20 Jan 2010 10:45:26 -0600 Subject: [mapserver-users] RE: Images returning blank In-Reply-To: References: <4DCDDD4507E4E847920443D1B98C588D04A5210B31@mail1.advantrack.local> <4DCDDD4507E4E847920443D1B98C588D04A5210B32@mail1.advantrack.local> Message-ID: <4DCDDD4507E4E847920443D1B98C588D04A5210B33@mail1.advantrack.local> Removing the PROJECTION from the trafficflow_2007 map results in the following error: Cannot set new SRS on a map that doesn't have any projection set. Please make sure your mapfile has a PROJECTION defined at the top level. So what I need to do is figure out how to setup the PROJECTION. Which I have no idea on. The .prj file that can with the shp file is: PROJCS["NAD_1983_StatePlane_Texas_South_Central_FIPS_4204_Feet", GEOGCS["GCS_North_American_1983", DATUM["D_North_American_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic"], PARAMETER["False_Easting",1968500.0], PARAMETER["False_Northing",13123333.33333333], PARAMETER["Central_Meridian",-99.0], PARAMETER["Standard_Parallel_1",28.38333333333333], PARAMETER["Standard_Parallel_2",30.28333333333334], PARAMETER["Latitude_Of_Origin",27.83333333333333], UNIT["Foot_US",0.3048006096012192]] So now I am trying to figure out PROJECTIONS... Any suggestions or sites with examples that will help me here would be greatly appreciated. Thanks Kent -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Tuesday, January 19, 2010 4:25 PM To: Kent Morrison; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Images returning blank Hi, The non-working one is in some other projection than epsg:4326. You will get that layer visible by removing projection also from the MAP level and using the extents from ogrinfo, but in order to show both layers together you should know the correct projection for both datasets. If projection is given at map level it must suit the extents. Epsg:4326 and EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704 do not suit. -Jukka- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Kent Morrison L?hetetty: ke 20.1.2010 0:14 Vastaanottaja: 'Fawcett, David (MPCA)'; 'mapserver-users at lists.osgeo.org' Aihe: [mapserver-users] RE: Images returning blank I ran ogrinfo.exe on the non-working file. C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\trafficflow_200 7.shp trafficflow_2007 -so INFO: Open of `c:\mapserverdata\shapefiles\1\trafficflow_2007.shp' using driver `ESRI Shapefile' successful. Layer name: trafficflow_2007 Geometry: Line String Feature Count: 4212 Extent: (2460247.751004, 232706.929725) - (2507483.898985, 294550.472704) Layer SRS WKT: (unknown) CounterID: Integer (10.0) Location: String (50.0) StartDate: Date (10.0) ADT_Total: Integer (10.0) AWD_Total: Integer (10.0) XCoord: Real (19.8) YCoord: Real (19.8) StreetID: String (16.0) Shape_len: Real (19.11) I added: EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704 to the map file and changed the Layer Status to Default. [Tue Jan 19 21:43:35 2010].791000 CGI Request 1 on process 2676 [Tue Jan 19 21:43:35 2010].791000 msTileSetExtent (-13073784.538762, 6051371.431753) (-13071348.108486, 6053807.862029) [Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 21:43:35 2010].791000 msDrawMap() total time: 0.000s [Tue Jan 19 21:43:35 2010].822000 msSaveImage() total time: 0.031s [Tue Jan 19 21:43:35 2010].822000 mapserv request processing time (loadmap not incl.): 0.031s [Tue Jan 19 21:43:35 2010].822000 msFreeMap(): freeing map at 01A5AF10. Still a blank image. When I ran ogrinfo.exe on the working shapefile: C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\co48_d00.shp -s o co48_d00 INFO: Open of `c:\mapserverdata\shapefiles\1\co48_d00.shp' using driver `ESRI Shapefile' successful. Layer name: co48_d00 Geometry: Polygon Feature Count: 265 Extent: (-106.645646, 25.837377) - (-93.516407, 36.500704) Layer SRS WKT: (unknown) AREA: Real (20.5) PERIMETER: Real (20.5) CO48_D00_: Real (11.0) CO48_D00_I: Real (11.0) STATE: String (2.0) COUNTY: String (3.0) NAME: String (90.0) LSAD: String (2.0) LSAD_TRANS: String (50.0) The Extents on the working file are in lat/lon. In the non-working file it looks to be in something else. I'm trying to return VE image tiles.. not sure where to go from here to get the first file to work. Thanks ________________________________ From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Tuesday, January 19, 2010 3:28 PM To: Kent Morrison; 'mapserver-users at lists.osgeo.org' Subject: RE: Images returning blank Based on the errors, it looks like you will need EXTENT to your map file at the MAP level. What do you get when you run ogrinfo against the two shapefiles? Any difference? Are you adding a URL var for the layer name? Try setting LAYER STATUS to DEFAULT for both layers and see if you get an image back. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kent Morrison Sent: Tuesday, January 19, 2010 3:17 PM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] Images returning blank I have mapserver 5.4.2 installed. I have two different shape files, one renders properly the other only returns blank images The debug log for the one that does not work returns: [Tue Jan 19 20:34:59 2010].212000 CGI Request 1 on process 1180 [Tue Jan 19 20:34:59 2010].212000 mapserv(): Web application error. No way to generate map extent. [Tue Jan 19 20:34:59 2010].212000 msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. [Tue Jan 19 20:34:59 2010].212000 msTileSetExtent (-13090872.991896, 6046512.903143) (-13071381.549686, 6066004.345353) [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap() total time: 0.015s [Tue Jan 19 20:34:59 2010].274000 msSaveImage() total time: 0.047s [Tue Jan 19 20:34:59 2010].274000 mapserv request processing time (loadmap not incl.): 0.062s [Tue Jan 19 20:34:59 2010].274000 msFreeMap(): freeing map at 01A5AF00. [Tue Jan 19 20:34:59 2010].274000 freeLayer(): freeing layer at 020E4160. the map file is: MAP IMAGETYPE AGG SIZE 256 256 SHAPEPATH "/MapServerData/ShapeFiles/1" IMAGECOLOR 255 255 255 TRANSPARENT ON FONTSET "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors2.txt" DEBUG 5 PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #Outputformat LAYER NAME SpokaneTrafficFlows DATA TrafficFlow_2007 STATUS ON TYPE LINE DEBUG 5 CLASS NAME "classSpokaneTrafficFlows" STYLE COLOR 127 255 64 OPACITY 50 OUTLINECOLOR 255 128 64 WIDTH 3 END #style END #class END #layer END #Map running shp2img.exe returns: msLoadMap(): Image handling error. Unable to initialize image msCalculateScale(): General error message. invalid image extent .... I get the same results for shp2img on the working shapefile/map file. THE FOLLOWING WORKS: MAP IMAGETYPE AGG SIZE 256 256 SHAPEPATH "/MapServerData/ShapeFiles/1" IMAGECOLOR 255 255 255 TRANSPARENT ON FONTSET "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #Outputformat LAYER NAME TxCounties DATA co48_d00 STATUS ON TYPE Polygon CLASS NAME "classTxCounties" STYLE COLOR 0 255 0 OPACITY 25 OUTLINECOLOR 0 0 0 WIDTH 2 END #style END #class END #layer END #Map Anyone have any idea's why this might not work in the first case? Or what else can I do to debug the problem? Kent From KMorrison at advantrack.com Wed Jan 20 08:52:30 2010 From: KMorrison at advantrack.com (Kent Morrison) Date: Wed, 20 Jan 2010 10:52:30 -0600 Subject: [mapserver-users] RE: Images returning blank In-Reply-To: References: <4DCDDD4507E4E847920443D1B98C588D04A5210B31@mail1.advantrack.local> <4DCDDD4507E4E847920443D1B98C588D04A5210B32@mail1.advantrack.local> Message-ID: <4DCDDD4507E4E847920443D1B98C588D04A5210B34@mail1.advantrack.local> One thing I tried was to use the ogr2ogr tool to convert the files so they use the same projection. I need to create an srs def ... any sites with examples or tutorials suggested? The other alternative is to figure out how to create a PROJECTION element in the map file to match the shp file. which I am also trying to learn. thanks, Kent ________________________________ From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Tuesday, January 19, 2010 4:22 PM To: Kent Morrison; 'mapserver-users at lists.osgeo.org' Subject: RE: Images returning blank I think that this is pretty obviously your problem. Before you can transform between spatial reference systems (SRS), you need to know what the original SRS is. To create VE image tiles, it needs to transform to 'Web Mercator'. It can't do that if you don't correctly identify the SRS of your layer. I believe that your lat/lon layer works because it is inheriting the projection from the MAP. For your 'something else' layer, you will need to define the correct projection for that layer. David. From: Kent Morrison [mailto:KMorrison at advantrack.com] Sent: Tuesday, January 19, 2010 4:15 PM To: Fawcett, David (MPCA); 'mapserver-users at lists.osgeo.org' Subject: RE: Images returning blank The Extents on the working file are in lat/lon. In the non-working file it looks to be in something else. I'm trying to return VE image tiles.. -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Wed Jan 20 09:05:36 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Wed, 20 Jan 2010 11:05:36 -0600 Subject: [mapserver-users] RE: Images returning blank In-Reply-To: <4DCDDD4507E4E847920443D1B98C588D04A5210B33@mail1.advantrack.local> References: <4DCDDD4507E4E847920443D1B98C588D04A5210B31@mail1.advantrack.local> <4DCDDD4507E4E847920443D1B98C588D04A5210B32@mail1.advantrack.local> <4DCDDD4507E4E847920443D1B98C588D04A5210B33@mail1.advantrack.local> Message-ID: If you were just trying to display the data in a simple map, you could go without the projection info and still see something if you only wanted to display that layer. Let's add a PROJECTION obj to your layer: Take a look at http://spatialreference.org/ref/esri/102740/. I am pretty sure that this is the spatial reference system (SRS) that your data is in. MapServer uses SRS definitions in Proj.4 format. Here is a link to this SRS in Proj.4: http://spatialreference.org/ref/esri/102740/proj4/ In your LAYER, add PROJECTION "proj=lcc" "lat_1=28.38333333333333" "lat_2=30.28333333333334" "lat_0=27.83333333333333" "lon_0=-99" "x_0=600000.0000000001" "y_0=4000000" "ellps=GRS80" "datum=NAD83" "to_meter=0.3048006096012192" "no_defs" END Does this work? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kent Morrison Sent: Wednesday, January 20, 2010 10:45 AM To: 'Rahkonen Jukka'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Images returning blank Removing the PROJECTION from the trafficflow_2007 map results in the following error: Cannot set new SRS on a map that doesn't have any projection set. Please make sure your mapfile has a PROJECTION defined at the top level. So what I need to do is figure out how to setup the PROJECTION. Which I have no idea on. The .prj file that can with the shp file is: PROJCS["NAD_1983_StatePlane_Texas_South_Central_FIPS_4204_Feet", GEOGCS["GCS_North_American_1983", DATUM["D_North_American_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic"], PARAMETER["False_Easting",1968500.0], PARAMETER["False_Northing",13123333.33333333], PARAMETER["Central_Meridian",-99.0], PARAMETER["Standard_Parallel_1",28.38333333333333], PARAMETER["Standard_Parallel_2",30.28333333333334], PARAMETER["Latitude_Of_Origin",27.83333333333333], UNIT["Foot_US",0.3048006096012192]] So now I am trying to figure out PROJECTIONS... Any suggestions or sites with examples that will help me here would be greatly appreciated. Thanks Kent -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Tuesday, January 19, 2010 4:25 PM To: Kent Morrison; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Images returning blank Hi, The non-working one is in some other projection than epsg:4326. You will get that layer visible by removing projection also from the MAP level and using the extents from ogrinfo, but in order to show both layers together you should know the correct projection for both datasets. If projection is given at map level it must suit the extents. Epsg:4326 and EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704 do not suit. -Jukka- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Kent Morrison L?hetetty: ke 20.1.2010 0:14 Vastaanottaja: 'Fawcett, David (MPCA)'; 'mapserver-users at lists.osgeo.org' Aihe: [mapserver-users] RE: Images returning blank I ran ogrinfo.exe on the non-working file. C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\trafficflow_200 7.shp trafficflow_2007 -so INFO: Open of `c:\mapserverdata\shapefiles\1\trafficflow_2007.shp' using driver `ESRI Shapefile' successful. Layer name: trafficflow_2007 Geometry: Line String Feature Count: 4212 Extent: (2460247.751004, 232706.929725) - (2507483.898985, 294550.472704) Layer SRS WKT: (unknown) CounterID: Integer (10.0) Location: String (50.0) StartDate: Date (10.0) ADT_Total: Integer (10.0) AWD_Total: Integer (10.0) XCoord: Real (19.8) YCoord: Real (19.8) StreetID: String (16.0) Shape_len: Real (19.11) I added: EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704 to the map file and changed the Layer Status to Default. [Tue Jan 19 21:43:35 2010].791000 CGI Request 1 on process 2676 [Tue Jan 19 21:43:35 2010].791000 msTileSetExtent (-13073784.538762, 6051371.431753) (-13071348.108486, 6053807.862029) [Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 21:43:35 2010].791000 msDrawMap() total time: 0.000s [Tue Jan 19 21:43:35 2010].822000 msSaveImage() total time: 0.031s [Tue Jan 19 21:43:35 2010].822000 mapserv request processing time (loadmap not incl.): 0.031s [Tue Jan 19 21:43:35 2010].822000 msFreeMap(): freeing map at 01A5AF10. Still a blank image. When I ran ogrinfo.exe on the working shapefile: C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\co48_d00.shp -s o co48_d00 INFO: Open of `c:\mapserverdata\shapefiles\1\co48_d00.shp' using driver `ESRI Shapefile' successful. Layer name: co48_d00 Geometry: Polygon Feature Count: 265 Extent: (-106.645646, 25.837377) - (-93.516407, 36.500704) Layer SRS WKT: (unknown) AREA: Real (20.5) PERIMETER: Real (20.5) CO48_D00_: Real (11.0) CO48_D00_I: Real (11.0) STATE: String (2.0) COUNTY: String (3.0) NAME: String (90.0) LSAD: String (2.0) LSAD_TRANS: String (50.0) The Extents on the working file are in lat/lon. In the non-working file it looks to be in something else. I'm trying to return VE image tiles.. not sure where to go from here to get the first file to work. Thanks ________________________________ From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Tuesday, January 19, 2010 3:28 PM To: Kent Morrison; 'mapserver-users at lists.osgeo.org' Subject: RE: Images returning blank Based on the errors, it looks like you will need EXTENT to your map file at the MAP level. What do you get when you run ogrinfo against the two shapefiles? Any difference? Are you adding a URL var for the layer name? Try setting LAYER STATUS to DEFAULT for both layers and see if you get an image back. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kent Morrison Sent: Tuesday, January 19, 2010 3:17 PM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] Images returning blank I have mapserver 5.4.2 installed. I have two different shape files, one renders properly the other only returns blank images The debug log for the one that does not work returns: [Tue Jan 19 20:34:59 2010].212000 CGI Request 1 on process 1180 [Tue Jan 19 20:34:59 2010].212000 mapserv(): Web application error. No way to generate map extent. [Tue Jan 19 20:34:59 2010].212000 msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. [Tue Jan 19 20:34:59 2010].212000 msTileSetExtent (-13090872.991896, 6046512.903143) (-13071381.549686, 6066004.345353) [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap() total time: 0.015s [Tue Jan 19 20:34:59 2010].274000 msSaveImage() total time: 0.047s [Tue Jan 19 20:34:59 2010].274000 mapserv request processing time (loadmap not incl.): 0.062s [Tue Jan 19 20:34:59 2010].274000 msFreeMap(): freeing map at 01A5AF00. [Tue Jan 19 20:34:59 2010].274000 freeLayer(): freeing layer at 020E4160. the map file is: MAP IMAGETYPE AGG SIZE 256 256 SHAPEPATH "/MapServerData/ShapeFiles/1" IMAGECOLOR 255 255 255 TRANSPARENT ON FONTSET "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors2.txt" DEBUG 5 PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #Outputformat LAYER NAME SpokaneTrafficFlows DATA TrafficFlow_2007 STATUS ON TYPE LINE DEBUG 5 CLASS NAME "classSpokaneTrafficFlows" STYLE COLOR 127 255 64 OPACITY 50 OUTLINECOLOR 255 128 64 WIDTH 3 END #style END #class END #layer END #Map running shp2img.exe returns: msLoadMap(): Image handling error. Unable to initialize image msCalculateScale(): General error message. invalid image extent .... I get the same results for shp2img on the working shapefile/map file. THE FOLLOWING WORKS: MAP IMAGETYPE AGG SIZE 256 256 SHAPEPATH "/MapServerData/ShapeFiles/1" IMAGECOLOR 255 255 255 TRANSPARENT ON FONTSET "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #Outputformat LAYER NAME TxCounties DATA co48_d00 STATUS ON TYPE Polygon CLASS NAME "classTxCounties" STYLE COLOR 0 255 0 OPACITY 25 OUTLINECOLOR 0 0 0 WIDTH 2 END #style END #class END #layer END #Map Anyone have any idea's why this might not work in the first case? Or what else can I do to debug the problem? Kent _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From KMorrison at advantrack.com Wed Jan 20 09:38:22 2010 From: KMorrison at advantrack.com (Kent Morrison) Date: Wed, 20 Jan 2010 11:38:22 -0600 Subject: [mapserver-users] RE: Images returning blank In-Reply-To: References: <4DCDDD4507E4E847920443D1B98C588D04A5210B31@mail1.advantrack.local> <4DCDDD4507E4E847920443D1B98C588D04A5210B32@mail1.advantrack.local> <4DCDDD4507E4E847920443D1B98C588D04A5210B33@mail1.advantrack.local> Message-ID: <4DCDDD4507E4E847920443D1B98C588D04A5210B35@mail1.advantrack.local> I am trying to display the data as a map layer that can overly a Vitural Earth map. Some of my shape files that were not working before are now working where others are still not, but at least I now have a clue to what the heck I am doing! I'll look at the links you sent me and try to figure out the other files. Thanks! Kent -----Original Message----- From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Wednesday, January 20, 2010 11:06 AM To: Kent Morrison; 'Rahkonen Jukka'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Images returning blank If you were just trying to display the data in a simple map, you could go without the projection info and still see something if you only wanted to display that layer. Let's add a PROJECTION obj to your layer: Take a look at http://spatialreference.org/ref/esri/102740/. I am pretty sure that this is the spatial reference system (SRS) that your data is in. MapServer uses SRS definitions in Proj.4 format. Here is a link to this SRS in Proj.4: http://spatialreference.org/ref/esri/102740/proj4/ In your LAYER, add PROJECTION "proj=lcc" "lat_1=28.38333333333333" "lat_2=30.28333333333334" "lat_0=27.83333333333333" "lon_0=-99" "x_0=600000.0000000001" "y_0=4000000" "ellps=GRS80" "datum=NAD83" "to_meter=0.3048006096012192" "no_defs" END Does this work? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kent Morrison Sent: Wednesday, January 20, 2010 10:45 AM To: 'Rahkonen Jukka'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Images returning blank Removing the PROJECTION from the trafficflow_2007 map results in the following error: Cannot set new SRS on a map that doesn't have any projection set. Please make sure your mapfile has a PROJECTION defined at the top level. So what I need to do is figure out how to setup the PROJECTION. Which I have no idea on. The .prj file that can with the shp file is: PROJCS["NAD_1983_StatePlane_Texas_South_Central_FIPS_4204_Feet", GEOGCS["GCS_North_American_1983", DATUM["D_North_American_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic"], PARAMETER["False_Easting",1968500.0], PARAMETER["False_Northing",13123333.33333333], PARAMETER["Central_Meridian",-99.0], PARAMETER["Standard_Parallel_1",28.38333333333333], PARAMETER["Standard_Parallel_2",30.28333333333334], PARAMETER["Latitude_Of_Origin",27.83333333333333], UNIT["Foot_US",0.3048006096012192]] So now I am trying to figure out PROJECTIONS... Any suggestions or sites with examples that will help me here would be greatly appreciated. Thanks Kent -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Tuesday, January 19, 2010 4:25 PM To: Kent Morrison; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Images returning blank Hi, The non-working one is in some other projection than epsg:4326. You will get that layer visible by removing projection also from the MAP level and using the extents from ogrinfo, but in order to show both layers together you should know the correct projection for both datasets. If projection is given at map level it must suit the extents. Epsg:4326 and EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704 do not suit. -Jukka- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Kent Morrison L?hetetty: ke 20.1.2010 0:14 Vastaanottaja: 'Fawcett, David (MPCA)'; 'mapserver-users at lists.osgeo.org' Aihe: [mapserver-users] RE: Images returning blank I ran ogrinfo.exe on the non-working file. C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\trafficflow_200 7.shp trafficflow_2007 -so INFO: Open of `c:\mapserverdata\shapefiles\1\trafficflow_2007.shp' using driver `ESRI Shapefile' successful. Layer name: trafficflow_2007 Geometry: Line String Feature Count: 4212 Extent: (2460247.751004, 232706.929725) - (2507483.898985, 294550.472704) Layer SRS WKT: (unknown) CounterID: Integer (10.0) Location: String (50.0) StartDate: Date (10.0) ADT_Total: Integer (10.0) AWD_Total: Integer (10.0) XCoord: Real (19.8) YCoord: Real (19.8) StreetID: String (16.0) Shape_len: Real (19.11) I added: EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704 to the map file and changed the Layer Status to Default. [Tue Jan 19 21:43:35 2010].791000 CGI Request 1 on process 2676 [Tue Jan 19 21:43:35 2010].791000 msTileSetExtent (-13073784.538762, 6051371.431753) (-13071348.108486, 6053807.862029) [Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 21:43:35 2010].791000 msDrawMap() total time: 0.000s [Tue Jan 19 21:43:35 2010].822000 msSaveImage() total time: 0.031s [Tue Jan 19 21:43:35 2010].822000 mapserv request processing time (loadmap not incl.): 0.031s [Tue Jan 19 21:43:35 2010].822000 msFreeMap(): freeing map at 01A5AF10. Still a blank image. When I ran ogrinfo.exe on the working shapefile: C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\co48_d00.shp -s o co48_d00 INFO: Open of `c:\mapserverdata\shapefiles\1\co48_d00.shp' using driver `ESRI Shapefile' successful. Layer name: co48_d00 Geometry: Polygon Feature Count: 265 Extent: (-106.645646, 25.837377) - (-93.516407, 36.500704) Layer SRS WKT: (unknown) AREA: Real (20.5) PERIMETER: Real (20.5) CO48_D00_: Real (11.0) CO48_D00_I: Real (11.0) STATE: String (2.0) COUNTY: String (3.0) NAME: String (90.0) LSAD: String (2.0) LSAD_TRANS: String (50.0) The Extents on the working file are in lat/lon. In the non-working file it looks to be in something else. I'm trying to return VE image tiles.. not sure where to go from here to get the first file to work. Thanks ________________________________ From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Tuesday, January 19, 2010 3:28 PM To: Kent Morrison; 'mapserver-users at lists.osgeo.org' Subject: RE: Images returning blank Based on the errors, it looks like you will need EXTENT to your map file at the MAP level. What do you get when you run ogrinfo against the two shapefiles? Any difference? Are you adding a URL var for the layer name? Try setting LAYER STATUS to DEFAULT for both layers and see if you get an image back. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kent Morrison Sent: Tuesday, January 19, 2010 3:17 PM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] Images returning blank I have mapserver 5.4.2 installed. I have two different shape files, one renders properly the other only returns blank images The debug log for the one that does not work returns: [Tue Jan 19 20:34:59 2010].212000 CGI Request 1 on process 1180 [Tue Jan 19 20:34:59 2010].212000 mapserv(): Web application error. No way to generate map extent. [Tue Jan 19 20:34:59 2010].212000 msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. [Tue Jan 19 20:34:59 2010].212000 msTileSetExtent (-13090872.991896, 6046512.903143) (-13071381.549686, 6066004.345353) [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap() total time: 0.015s [Tue Jan 19 20:34:59 2010].274000 msSaveImage() total time: 0.047s [Tue Jan 19 20:34:59 2010].274000 mapserv request processing time (loadmap not incl.): 0.062s [Tue Jan 19 20:34:59 2010].274000 msFreeMap(): freeing map at 01A5AF00. [Tue Jan 19 20:34:59 2010].274000 freeLayer(): freeing layer at 020E4160. the map file is: MAP IMAGETYPE AGG SIZE 256 256 SHAPEPATH "/MapServerData/ShapeFiles/1" IMAGECOLOR 255 255 255 TRANSPARENT ON FONTSET "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors2.txt" DEBUG 5 PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #Outputformat LAYER NAME SpokaneTrafficFlows DATA TrafficFlow_2007 STATUS ON TYPE LINE DEBUG 5 CLASS NAME "classSpokaneTrafficFlows" STYLE COLOR 127 255 64 OPACITY 50 OUTLINECOLOR 255 128 64 WIDTH 3 END #style END #class END #layer END #Map running shp2img.exe returns: msLoadMap(): Image handling error. Unable to initialize image msCalculateScale(): General error message. invalid image extent .... I get the same results for shp2img on the working shapefile/map file. THE FOLLOWING WORKS: MAP IMAGETYPE AGG SIZE 256 256 SHAPEPATH "/MapServerData/ShapeFiles/1" IMAGECOLOR 255 255 255 TRANSPARENT ON FONTSET "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #Outputformat LAYER NAME TxCounties DATA co48_d00 STATUS ON TYPE Polygon CLASS NAME "classTxCounties" STYLE COLOR 0 255 0 OPACITY 25 OUTLINECOLOR 0 0 0 WIDTH 2 END #style END #class END #layer END #Map Anyone have any idea's why this might not work in the first case? Or what else can I do to debug the problem? Kent _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From marman_8587 at yahoo.com Wed Jan 20 09:38:38 2010 From: marman_8587 at yahoo.com (Muammar (Mario) Manzanares) Date: Wed, 20 Jan 2010 09:38:38 -0800 (PST) Subject: [mapserver-users] Contents of mapserver-users digest In-Reply-To: <20100120164539.D29C0E01CAA@lists.osgeo.org> References: <20100120164539.D29C0E01CAA@lists.osgeo.org> Message-ID: <77525.55811.qm@web35905.mail.mud.yahoo.com> ----- Original Message ---- From: "mapserver-users-request at lists.osgeo.org" To: mapserver-users at lists.osgeo.org Sent: Wed, January 20, 2010 11:45:39 AM Subject: mapserver-users Digest, Vol 24, Issue 61 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. Re: PHP MapScript pixel coordinates to map??? coordinates ? ? ? (Daniel Degasperi) ? 2. Re: 5.6.1 Postgis problem (Sandeep Kumar Chauhan) ? 3. VRT / CSV data sources are not displayed in a??? layer ? ? ? (Stefan Schantz) ? 4. Re: VRT / CSV data sources are not displayed in a??? layer ? ? ? (Carlos Ruiz) ? 5. Announcement: Dracones,??? a web mapping framework for MapServer ? ? ? (Christian Jauvin) ? 6. RE: RE: Images returning blank (Kent Morrison) ---------------------------------------------------------------------- Message: 1 Date: Wed, 20 Jan 2010 08:29:23 +0100 From: Daniel Degasperi Subject: Re: [mapserver-users] PHP MapScript pixel coordinates to map ??? coordinates To: mapserver-users at lists.osgeo.org Message-ID: <4B56B0D3.4000806 at r3-gis.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi David, have you already tried with this conversion: $geo_x = $minx + (($pix_x / $map_width) * ($maxx- $minx)); $geo_y = $maxy - (($pix_y / $map_height) * ($maxy - $miny)); Daniel Am 20.01.2010 04:57, schrieb Shorthouse, David: > Folks, > > This question has no doubt been asked many times, but for the life of > me I cannot find a solution. Here's what I'm trying to do: > > I have a jQuery-based front-end that uses the wonderful jcrop > extension (http://deepliquid.com/content/Jcrop.html) that helps > coordinate zoom. I'm hoping to use this same front-end to permit > cropping of a resultant map image, which means I need to pass the four > pixel corner coordinates, convert to map coordinates (projection may > be variable), then set the extent such that the resultant map image > will have the same dimensions as that described by the user on the > front-end. So, how can I convert pixel coordinates to map coordinates? > Note that the map projection is not always DD so I cannot merely use > proportions as I have seen in some solutions. Surely this is easier > than I am making it out to be. > > Thanks for any advice, > > David Shorthouse > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >? ? -- ? Daniel Degasperi ? Software Developer ? daniel.degasperi at r3-gis.com --------------------------- ? R3 GIS Srl ? Via Johann Kravogl 2 ? I-39010 Merano - Sinigo (BZ) ? Tel. +39 0473 494949 ? Fax. +39 0473 069902 ? Web? http://www.r3-gis.com ----------------------------- ------------------------------ Message: 2 Date: Wed, 20 Jan 2010 06:45:56 -0800 (PST) From: Sandeep Kumar Chauhan Subject: [mapserver-users] Re: 5.6.1 Postgis problem To: mapserver-users at lists.osgeo.org Message-ID: <1263998756968-4426856.post at n2.nabble.com> Content-Type: text/plain; charset=us-ascii Hi Steve, Thanks for help, i changed my code according to your suggestion. if (layer.queryByPoint(Map, point, (int)mapscript.MS_SINGLE, tolerance) == ... { ? ? resultCacheObj result = layer.getResults(); ? ? ? ? ? ? ? ? ? ? if (result.numresults > 0) ? ? ? ? ? ? ? ? ? ? { ? ? ? ? ? ? ? ? ? ? ? ? resultCacheMemberObj rrr = result.getResult(0); ? ? ? ? ? ? ? ? ? ? ? ? shapeObj shape = new shapeObj((int)layer.type); ? ? ? ? ? ? ? ? ? ? ? ? layer.resultsGetShape(shape, rrr.shapeindex, rrr.tileindex); ? ? ? ? ? ? ? ? ? ? ? ? ... ? ? ? ? ? ? ? ? ? ? ? ? ... ? ? ? ? ? ? ? ? ? ? ? ? ... Now it is working fine. Again thanks for help Thanks, ? -Sandeep -- View this message in context: http://n2.nabble.com/5-6-1-Postgis-problem-tp4392177p4426856.html Sent from the Mapserver - User mailing list archive at Nabble.com. ------------------------------ Message: 3 Date: Wed, 20 Jan 2010 16:32:12 +0100 From: Stefan Schantz Subject: [mapserver-users] VRT / CSV data sources are not displayed in ??? a??? layer To: mapserver-users at lists.osgeo.org Message-ID: <4B5721FC.60608 at BfS.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Hello List, The following layer uses a CSV-file (together with a VRT-File (Virtual Format) ) as datasource . When I try to visualize the layer, nothing is shown (neither the data nor error messages; shp2img shows also nothing) LAYER ? ? NAME "boden" ? ? DEBUG on ? ? STATUS ON ? ? TYPE POINT # DATA "/daten/csv/boden/boden" # Datenquelle Shapefile ? ? CONNECTION? "/daten/csv/boden.vrt" ? ? CONNECTIONTYPE OGR ? ? PROJECTION ? ? ? ? "init=epsg:25832" ? ? END ? ? ? ? ? METADATA ? ? ? ? "WMS_TITLE"? ? "test" ? ? ? ? "WMS_SRS"? "EPSG:25832" ? ? "WMS_ABSTRACT"? ? "test" ? ? ? ? "WMS_FEATURE_INFO_MIME_TYPE" 'text/html' ? ? END ? ? ? ? CLASS ? ? ? ? ? NAME "test" ? ? ? ? ? STYLE ? ? ? ? ? ? ? ? SYMBOL "circle" ? ? ? ? ? ? ? ? SIZE 15? ? ? ? ? ? ? ? ? COLOR 90 90 90 ? ? ? ? ? END ? ? ? ? END? ? ? ? ? END But if I transform the CSV/VRT-file into a Shapefile? via ogr2ogr ogr2ogr -s_srs EPSG:25832 -t_srs EPSG:25832 -f "ESRI Shapefile" boden boden.vrt the layer displays the data. What is wrong with my VRT/CSV-datasource in the mapfile? Thanks for any idea. Best regards Stefan ------------------------------ Message: 4 Date: Wed, 20 Jan 2010 08:20:10 -0800 (PST) From: Carlos Ruiz Subject: Re: [mapserver-users] VRT / CSV data sources are not ??? displayed in a??? layer To: Stefan Schantz , mapserver-users at lists.osgeo.org Message-ID: <785497.50057.qm at web38201.mail.mud.yahoo.com> Content-Type: text/plain; charset="us-ascii" Check that you have your CSV like this: Lat,Lng,House 48.1,0.25,"My house" 49.2,1.1,"My girlfriend's house" 47.5,0.75,"My mother in law's house" And that you have your VTR like this: ? ? [FILE] ? ? wkbPoint ? ? [YOUR SRS] ? ? IC Carlos Ruiz ________________________________ From: Stefan Schantz To: mapserver-users at lists.osgeo.org Sent: Wed, January 20, 2010 9:32:12 AM Subject: [mapserver-users] VRT / CSV data sources are not displayed in a layer Hello List, The following layer uses a CSV-file (together with a VRT-File (Virtual Format) ) as datasource . When I try to visualize the layer, nothing is shown (neither the data nor error messages; shp2img shows also nothing) LAYER ? NAME "boden" ? DEBUG on ? STATUS ON ? TYPE POINT # DATA "/daten/csv/boden/boden" # Datenquelle Shapefile ? CONNECTION? "/daten/csv/boden.vrt" ? CONNECTIONTYPE OGR ? PROJECTION ? ? ? "init=epsg:25832" ? END ? ? ? ? METADATA ? ? ? "WMS_TITLE"? ? "test" ? ? ? "WMS_SRS"? "EPSG:25832" ? "WMS_ABSTRACT"? ? "test" ? ? ? "WMS_FEATURE_INFO_MIME_TYPE" 'text/html' ? END ? ? ? CLASS ? ? ? ? ? NAME "test" ? ? ? ? ? STYLE ? ? ? ? ? ? ? SYMBOL "circle" ? ? ? ? ? ? ? SIZE 15? ? ? ? ? ? ? ? ? COLOR 90 90 90 ? ? ? ? ? END ? ? ? END? ? ? ? ? END But if I transform the CSV/VRT-file into a Shapefile? via ogr2ogr ogr2ogr -s_srs EPSG:25832 -t_srs EPSG:25832 -f "ESRI Shapefile" boden boden.vrt the layer displays the data. What is wrong with my VRT/CSV-datasource in the mapfile? Thanks for any idea. Best regards Stefan _______________________________________________ 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: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100120/1a7c10da/attachment-0001.html ------------------------------ Message: 5 Date: Wed, 20 Jan 2010 11:31:04 -0500 From: Christian Jauvin Subject: [mapserver-users] Announcement: Dracones,??? a web mapping ??? framework for MapServer To: mapserver-users at lists.osgeo.org, ms4w-users at lists.maptools.org, ??? community at lists.gispython.org Message-ID: ??? Content-Type: text/plain; charset=ISO-8859-1 Dear MapServer users, I have created Dracones, a Python and JavaScript web mapping framework based on MapServer, which I think could be of interest to the open source web mapping/GIS community. It is available at: http://surveillance.mcgill.ca/dracones This framework began its life as a surveillance application for Montreal Public Health. After a lot of refactoring sessions, I had the idea of abstracting a set of core client/server services, that would become the framework, and to rewrite the original application in terms of those. Thus the set of features offered by Dracones stems from pre-existing application needs, rather than the opposite. In a nutshell, here is what Dracones provides.. On the client side: * A lightweight but powerful map widget (100% JS), with state of the art features like AJAX-based smooth scrolling and visual selection * An extension mechanism to define new UI behaviors (e.g. what happens when clicking on the map, or drawing a selection box around objects) On the server side: * A set of Python classes and functions (written on top of Python-MapScript) that encapsulate the application state, and ease the interaction with its map objects * A well-thought extension mechanism, to define custom requests and queries Dracones also provides a bunch of other application-centric features, like easy map image export and undo/redo. Last but not least, I've been very careful in writing the documentation and tutorials, which I think cover a wide range of issues and possibilities. This work is still in Alpha stage, and I will be of course very interested to hear the community's comments and suggestions. Best regards, Christian Jauvin ------------------------------ Message: 6 Date: Wed, 20 Jan 2010 10:45:26 -0600 From: Kent Morrison Subject: RE: [mapserver-users] RE: Images returning blank To: 'Rahkonen Jukka' , ??? "mapserver-users at lists.osgeo.org" Message-ID: ??? <4DCDDD4507E4E847920443D1B98C588D04A5210B33 at mail1.advantrack.local> Content-Type: text/plain; charset="iso-8859-1" Removing the PROJECTION from the trafficflow_2007 map results in the following error: Cannot set new SRS on a map that doesn't have any projection set. Please make sure your mapfile has a PROJECTION defined at the top level. So what I need to do is figure out how to setup the PROJECTION. Which I have no idea on. The .prj file that can with the shp file is: PROJCS["NAD_1983_StatePlane_Texas_South_Central_FIPS_4204_Feet", ??? GEOGCS["GCS_North_American_1983", ??? ??? DATUM["D_North_American_1983", ??? ??? SPHEROID["GRS_1980",6378137.0,298.257222101]], ??? ??? PRIMEM["Greenwich",0.0], ??? ??? UNIT["Degree",0.0174532925199433]], ??? PROJECTION["Lambert_Conformal_Conic"], ??? PARAMETER["False_Easting",1968500.0], ??? PARAMETER["False_Northing",13123333.33333333], ??? PARAMETER["Central_Meridian",-99.0], ??? PARAMETER["Standard_Parallel_1",28.38333333333333], ??? PARAMETER["Standard_Parallel_2",30.28333333333334], ??? PARAMETER["Latitude_Of_Origin",27.83333333333333], ??? UNIT["Foot_US",0.3048006096012192]] So now I am trying to figure out PROJECTIONS... Any suggestions or sites with examples that will help me here would be greatly appreciated. Thanks Kent -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Tuesday, January 19, 2010 4:25 PM To: Kent Morrison; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Images returning blank Hi, The non-working one is in some other projection than epsg:4326. You will get that layer visible by removing projection also from the MAP level and using the extents from ogrinfo, but in order to show both layers together you should know the correct projection for both datasets. If projection is given at map level it must suit the extents.? Epsg:4326 and EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704 do not suit. -Jukka- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Kent Morrison L?hetetty: ke 20.1.2010 0:14 Vastaanottaja: 'Fawcett, David (MPCA)'; 'mapserver-users at lists.osgeo.org' Aihe: [mapserver-users] RE: Images returning blank I ran ogrinfo.exe on the non-working file. C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\trafficflow_200 7.shp trafficflow_2007 -so INFO: Open of `c:\mapserverdata\shapefiles\1\trafficflow_2007.shp' ? ? ? using driver `ESRI Shapefile' successful. Layer name: trafficflow_2007 Geometry: Line String Feature Count: 4212 Extent: (2460247.751004, 232706.929725) - (2507483.898985, 294550.472704) Layer SRS WKT: (unknown) CounterID: Integer (10.0) Location: String (50.0) StartDate: Date (10.0) ADT_Total: Integer (10.0) AWD_Total: Integer (10.0) XCoord: Real (19.8) YCoord: Real (19.8) StreetID: String (16.0) Shape_len: Real (19.11) I added: EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704 to the map file and changed the Layer Status to Default. [Tue Jan 19 21:43:35 2010].791000 CGI Request 1 on process 2676 [Tue Jan 19 21:43:35 2010].791000 msTileSetExtent (-13073784.538762, 6051371.431753) (-13071348.108486, 6053807.862029) [Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 21:43:35 2010].791000 msDrawMap() total time: 0.000s [Tue Jan 19 21:43:35 2010].822000 msSaveImage() total time: 0.031s [Tue Jan 19 21:43:35 2010].822000 mapserv request processing time (loadmap not incl.): 0.031s [Tue Jan 19 21:43:35 2010].822000 msFreeMap(): freeing map at 01A5AF10. Still a blank image. When I ran ogrinfo.exe on the working shapefile: C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\co48_d00.shp -s o co48_d00 INFO: Open of `c:\mapserverdata\shapefiles\1\co48_d00.shp' ? ? ? using driver `ESRI Shapefile' successful. Layer name: co48_d00 Geometry: Polygon Feature Count: 265 Extent: (-106.645646, 25.837377) - (-93.516407, 36.500704) Layer SRS WKT: (unknown) AREA: Real (20.5) PERIMETER: Real (20.5) CO48_D00_: Real (11.0) CO48_D00_I: Real (11.0) STATE: String (2.0) COUNTY: String (3.0) NAME: String (90.0) LSAD: String (2.0) LSAD_TRANS: String (50.0) The Extents on the working file are in lat/lon. In the non-working file it looks to be in something else. I'm trying to return VE image tiles.. not sure where to go from here to get the first file to work. Thanks ________________________________ From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Tuesday, January 19, 2010 3:28 PM To: Kent Morrison; 'mapserver-users at lists.osgeo.org' Subject: RE: Images returning blank Based on the errors, it looks like you will need EXTENT to your map file at the MAP level. What do you get when you run ogrinfo against the two shapefiles?? Any difference? Are you adding a URL var for the layer name?? Try setting LAYER STATUS to DEFAULT for both layers and see if you get an image back. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kent Morrison Sent: Tuesday, January 19, 2010 3:17 PM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] Images returning blank I have mapserver 5.4.2 installed. I have two different shape files, one renders properly the other only returns blank images The debug log for the one that does not work returns: [Tue Jan 19 20:34:59 2010].212000 CGI Request 1 on process 1180 [Tue Jan 19 20:34:59 2010].212000 mapserv(): Web application error. No way to generate map extent. [Tue Jan 19 20:34:59 2010].212000 msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. [Tue Jan 19 20:34:59 2010].212000 msTileSetExtent (-13090872.991896, 6046512.903143) (-13071381.549686, 6066004.345353) [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap() total time: 0.015s [Tue Jan 19 20:34:59 2010].274000 msSaveImage() total time: 0.047s [Tue Jan 19 20:34:59 2010].274000 mapserv request processing time (loadmap not incl.): 0.062s [Tue Jan 19 20:34:59 2010].274000 msFreeMap(): freeing map at 01A5AF00. [Tue Jan 19 20:34:59 2010].274000 freeLayer(): freeing layer at 020E4160. the map file is: MAP ? ? IMAGETYPE AGG ? ? SIZE 256 256 ? ? SHAPEPATH "/MapServerData/ShapeFiles/1" ? ? IMAGECOLOR 255 255 255 ? ? TRANSPARENT ON ? ? FONTSET "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors2.txt" DEBUG 5 ? ? PROJECTION ? ? ? ? "init=epsg:4326" ? ? END ? ? OUTPUTFORMAT ? ? ? ? NAME 'AGG' ? ? ? ? DRIVER AGG/PNG ? ? ? ? IMAGEMODE RGB ? ? END #Outputformat ? ? LAYER ? ? ? ? NAME SpokaneTrafficFlows ? ? ? ? DATA TrafficFlow_2007 ? ? ? ? STATUS ON ? ? ? ? TYPE LINE ? ? ? ? DEBUG 5 ? ? ? ? CLASS ? ? ? ? ? ? NAME "classSpokaneTrafficFlows" ? ? ? ? ? ? STYLE ? ? ? ? ? ? ? ? COLOR 127 255 64 ? ? ? ? ? ? ? ? OPACITY 50 ? ? ? ? ? ? ? ? OUTLINECOLOR 255 128 64 ? ? ? ? ? ? ? ? WIDTH 3 ? ? ? ? ? ? END #style ? ? ? ? END #class ? ? END #layer END #Map running shp2img.exe returns: msLoadMap(): Image handling error. Unable to initialize image msCalculateScale(): General error message. invalid image extent .... I get the same results for shp2img on the working shapefile/map file. THE FOLLOWING WORKS: MAP ? IMAGETYPE? ? ? AGG ? SIZE? ? ? ? ? 256 256 ? SHAPEPATH? ? ? "/MapServerData/ShapeFiles/1" ? IMAGECOLOR? ? 255 255 255 ? TRANSPARENT? ? ON ? FONTSET? ? ? ? "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" ? PROJECTION ? ? "init=epsg:4326" ? END ? OUTPUTFORMAT ? ? NAME 'AGG' ? ? DRIVER AGG/PNG ? ? IMAGEMODE RGB ? END #Outputformat ? LAYER ? ? NAME? ? ? ? ? TxCounties ? ? DATA? co48_d00 ? ? STATUS? ? ? ON ? ? TYPE? ? ? ? Polygon ? ? CLASS ? ? ? ? NAME? "classTxCounties" ? ? ? ? STYLE ? ? ? ? ? ? COLOR? ? ? ? 0 255 0 ? ? ? ? ? ? OPACITY? ? ? 25 ? ? ? ? ? ? OUTLINECOLOR? 0 0 0 ? ? ? ? ? ? WIDTH? ? ? 2 ? ? ? ? END #style ? ? END #class ? END #layer END #Map Anyone have any idea's why this might not work in the first case? Or what else can I do to debug the problem? Kent ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 24, Issue 61 *********************************************** From SSchantz at BfS.de Wed Jan 20 10:01:40 2010 From: SSchantz at BfS.de (Stefan Schantz) Date: Wed, 20 Jan 2010 19:01:40 +0100 Subject: [mapserver-users] VRT / CSV data sources are not displayed in a layer In-Reply-To: <785497.50057.qm@web38201.mail.mud.yahoo.com> References: <4B5721FC.60608@BfS.de> <785497.50057.qm@web38201.mail.mud.yahoo.com> Message-ID: <4B574504.3040507@BfS.de> Hello Carlos, my CSV-file ans VRT-file looks like your examples: My CSV is x-utm,y-utm,Wert 742226., 5374978., 0.00E+00 743422., 5375072., 0.00E+00 744620., 5375166., 0.00E+00 ... and my VTR is /daten/csv/boden.csv wkbPoint and as I wrote, ogr2ogr could read my vrt/csv data and transform it into a shapefile.. Stefan Carlos Ruiz schrieb: > Check that you have your CSV like this: > > Lat,Lng,House > 48.1,0.25,"My house" > 49.2,1.1,"My girlfriend's house" > 47.5,0.75,"My mother in law's house" > > And that you have your VTR like this: > > > > [FILE] > wkbPoint > [YOUR SRS] > > > > > > IC Carlos Ruiz > > ------------------------------------------------------------------------ > *From:* Stefan Schantz > *To:* mapserver-users at lists.osgeo.org > *Sent:* Wed, January 20, 2010 9:32:12 AM > *Subject:* [mapserver-users] VRT / CSV data sources are not displayed > in a layer > > Hello List, > > The following layer uses a CSV-file (together with a VRT-File (Virtual > Format) ) as datasource . When I try to visualize the layer, nothing > is shown (neither the data nor error messages; shp2img shows also nothing) > > LAYER > NAME "boden" > DEBUG on > STATUS ON > TYPE POINT > # DATA "/daten/csv/boden/boden" # Datenquelle Shapefile > CONNECTION "/daten/csv/boden.vrt" > CONNECTIONTYPE OGR > > PROJECTION > "init=epsg:25832" > END > METADATA > "WMS_TITLE" "test" > "WMS_SRS" "EPSG:25832" > "WMS_ABSTRACT" "test" > "WMS_FEATURE_INFO_MIME_TYPE" 'text/html' > END > > CLASS > NAME "test" > STYLE > SYMBOL "circle" > SIZE 15 COLOR 90 90 90 > END > END END > > > But if I transform the CSV/VRT-file into a Shapefile via ogr2ogr > > ogr2ogr -s_srs EPSG:25832 -t_srs EPSG:25832 -f "ESRI Shapefile" boden > boden.vrt > > > the layer displays the data. > What is wrong with my VRT/CSV-datasource in the mapfile? > > Thanks for any idea. > > Best regards > Stefan > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at state.mn.us Wed Jan 20 11:00:02 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 20 Jan 2010 13:00:02 -0600 Subject: [mapserver-users] query by point results in IE vs. Firefox In-Reply-To: <4B55EC23.83DF.000C.0@mortonarb.org> References: <4B55EC23.83DF.000C.0@mortonarb.org> Message-ID: Anything browser related is most definitely an issue with your client environment/programming and not MapServer itself. Might be best to ask on that mailing list if one exists... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeanette McBride Sent: Tuesday, January 19, 2010 5:30 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] query by point results in IE vs. Firefox Query by point works fine in IE, but in Firefox it actually returns a point about half an inch (screen units) north of the one selected. (see link below) Any ideas? Thanks! Jenny http://www.plantconservation.us/map.phtml _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From KMorrison at advantrack.com Wed Jan 20 11:49:05 2010 From: KMorrison at advantrack.com (Kent Morrison) Date: Wed, 20 Jan 2010 13:49:05 -0600 Subject: [mapserver-users] RE: Images returning blank In-Reply-To: References: <4DCDDD4507E4E847920443D1B98C588D04A5210B31@mail1.advantrack.local> <4DCDDD4507E4E847920443D1B98C588D04A5210B32@mail1.advantrack.local> <4DCDDD4507E4E847920443D1B98C588D04A5210B33@mail1.advantrack.local> Message-ID: <4DCDDD4507E4E847920443D1B98C588D04A5210B36@mail1.advantrack.local> One question I have is: 1. The PROJECTION settings from spatialreference.org for NAD_1983_HARN_StatePlane_Washington_North_FIPS_4601_Feet is PROJECTION "proj=lcc" "lat_1=47.5" "lat_2=49.73333333333333" "lat_0=47.0" "lon_0=-120.83333333333333" "x_0=500000.0000000001" "y_0=0" "ellps=GRS80" "to_meter=0.3048006096012192" "no_defs" END I can see where all the settings come fro mthe .PRJ file except for the x_0 and y_0, where did these come from? I though tit might be the "False_Easting"/"False_Northing" settings but changing x_0 = 1640416.666666667 caused the images to disapear so that's not it. The .PRJ file is: PROJCS["NAD_1983_HARN_StatePlane_Washington_North_FIPS_4601_Feet", GEOGCS["GCS_North_American_1983_HARN", DATUM["D_North_American_1983_HARN", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic"], PARAMETER["False_Easting",1640416.666666667], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",-120.8333333333333], PARAMETER["Standard_Parallel_1",47.5], PARAMETER["Standard_Parallel_2",48.73333333333333], PARAMETER["Latitude_Of_Origin",47.0], UNIT["Foot_US",0.3048006096012192]], VERTCS["NAVD_1988", VDATUM["North_American_Vertical_Datum_1988"], PARAMETER["Vertical_Shift",0.0], PARAMETER["Direction",1.0], UNIT["Foot_US",0.3048006096012192]] I need to be able to create the PROJECTION settings from the .PRJ file. My application needs to allow users to upload shape files on their own. The PROJECTION settings is the last part. -----Original Message----- From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Wednesday, January 20, 2010 11:06 AM To: Kent Morrison; 'Rahkonen Jukka'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Images returning blank If you were just trying to display the data in a simple map, you could go without the projection info and still see something if you only wanted to display that layer. Let's add a PROJECTION obj to your layer: Take a look at http://spatialreference.org/ref/esri/102740/. I am pretty sure that this is the spatial reference system (SRS) that your data is in. MapServer uses SRS definitions in Proj.4 format. Here is a link to this SRS in Proj.4: http://spatialreference.org/ref/esri/102740/proj4/ In your LAYER, add PROJECTION "proj=lcc" "lat_1=28.38333333333333" "lat_2=30.28333333333334" "lat_0=27.83333333333333" "lon_0=-99" "x_0=600000.0000000001" "y_0=4000000" "ellps=GRS80" "datum=NAD83" "to_meter=0.3048006096012192" "no_defs" END Does this work? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kent Morrison Sent: Wednesday, January 20, 2010 10:45 AM To: 'Rahkonen Jukka'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Images returning blank Removing the PROJECTION from the trafficflow_2007 map results in the following error: Cannot set new SRS on a map that doesn't have any projection set. Please make sure your mapfile has a PROJECTION defined at the top level. So what I need to do is figure out how to setup the PROJECTION. Which I have no idea on. The .prj file that can with the shp file is: PROJCS["NAD_1983_StatePlane_Texas_South_Central_FIPS_4204_Feet", GEOGCS["GCS_North_American_1983", DATUM["D_North_American_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic"], PARAMETER["False_Easting",1968500.0], PARAMETER["False_Northing",13123333.33333333], PARAMETER["Central_Meridian",-99.0], PARAMETER["Standard_Parallel_1",28.38333333333333], PARAMETER["Standard_Parallel_2",30.28333333333334], PARAMETER["Latitude_Of_Origin",27.83333333333333], UNIT["Foot_US",0.3048006096012192]] So now I am trying to figure out PROJECTIONS... Any suggestions or sites with examples that will help me here would be greatly appreciated. Thanks Kent -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Tuesday, January 19, 2010 4:25 PM To: Kent Morrison; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Images returning blank Hi, The non-working one is in some other projection than epsg:4326. You will get that layer visible by removing projection also from the MAP level and using the extents from ogrinfo, but in order to show both layers together you should know the correct projection for both datasets. If projection is given at map level it must suit the extents. Epsg:4326 and EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704 do not suit. -Jukka- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Kent Morrison L?hetetty: ke 20.1.2010 0:14 Vastaanottaja: 'Fawcett, David (MPCA)'; 'mapserver-users at lists.osgeo.org' Aihe: [mapserver-users] RE: Images returning blank I ran ogrinfo.exe on the non-working file. C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\trafficflow_200 7.shp trafficflow_2007 -so INFO: Open of `c:\mapserverdata\shapefiles\1\trafficflow_2007.shp' using driver `ESRI Shapefile' successful. Layer name: trafficflow_2007 Geometry: Line String Feature Count: 4212 Extent: (2460247.751004, 232706.929725) - (2507483.898985, 294550.472704) Layer SRS WKT: (unknown) CounterID: Integer (10.0) Location: String (50.0) StartDate: Date (10.0) ADT_Total: Integer (10.0) AWD_Total: Integer (10.0) XCoord: Real (19.8) YCoord: Real (19.8) StreetID: String (16.0) Shape_len: Real (19.11) I added: EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704 to the map file and changed the Layer Status to Default. [Tue Jan 19 21:43:35 2010].791000 CGI Request 1 on process 2676 [Tue Jan 19 21:43:35 2010].791000 msTileSetExtent (-13073784.538762, 6051371.431753) (-13071348.108486, 6053807.862029) [Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 21:43:35 2010].791000 msDrawMap() total time: 0.000s [Tue Jan 19 21:43:35 2010].822000 msSaveImage() total time: 0.031s [Tue Jan 19 21:43:35 2010].822000 mapserv request processing time (loadmap not incl.): 0.031s [Tue Jan 19 21:43:35 2010].822000 msFreeMap(): freeing map at 01A5AF10. Still a blank image. When I ran ogrinfo.exe on the working shapefile: C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\co48_d00.shp -s o co48_d00 INFO: Open of `c:\mapserverdata\shapefiles\1\co48_d00.shp' using driver `ESRI Shapefile' successful. Layer name: co48_d00 Geometry: Polygon Feature Count: 265 Extent: (-106.645646, 25.837377) - (-93.516407, 36.500704) Layer SRS WKT: (unknown) AREA: Real (20.5) PERIMETER: Real (20.5) CO48_D00_: Real (11.0) CO48_D00_I: Real (11.0) STATE: String (2.0) COUNTY: String (3.0) NAME: String (90.0) LSAD: String (2.0) LSAD_TRANS: String (50.0) The Extents on the working file are in lat/lon. In the non-working file it looks to be in something else. I'm trying to return VE image tiles.. not sure where to go from here to get the first file to work. Thanks ________________________________ From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Tuesday, January 19, 2010 3:28 PM To: Kent Morrison; 'mapserver-users at lists.osgeo.org' Subject: RE: Images returning blank Based on the errors, it looks like you will need EXTENT to your map file at the MAP level. What do you get when you run ogrinfo against the two shapefiles? Any difference? Are you adding a URL var for the layer name? Try setting LAYER STATUS to DEFAULT for both layers and see if you get an image back. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kent Morrison Sent: Tuesday, January 19, 2010 3:17 PM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] Images returning blank I have mapserver 5.4.2 installed. I have two different shape files, one renders properly the other only returns blank images The debug log for the one that does not work returns: [Tue Jan 19 20:34:59 2010].212000 CGI Request 1 on process 1180 [Tue Jan 19 20:34:59 2010].212000 mapserv(): Web application error. No way to generate map extent. [Tue Jan 19 20:34:59 2010].212000 msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. [Tue Jan 19 20:34:59 2010].212000 msTileSetExtent (-13090872.991896, 6046512.903143) (-13071381.549686, 6066004.345353) [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap() total time: 0.015s [Tue Jan 19 20:34:59 2010].274000 msSaveImage() total time: 0.047s [Tue Jan 19 20:34:59 2010].274000 mapserv request processing time (loadmap not incl.): 0.062s [Tue Jan 19 20:34:59 2010].274000 msFreeMap(): freeing map at 01A5AF00. [Tue Jan 19 20:34:59 2010].274000 freeLayer(): freeing layer at 020E4160. the map file is: MAP IMAGETYPE AGG SIZE 256 256 SHAPEPATH "/MapServerData/ShapeFiles/1" IMAGECOLOR 255 255 255 TRANSPARENT ON FONTSET "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors2.txt" DEBUG 5 PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #Outputformat LAYER NAME SpokaneTrafficFlows DATA TrafficFlow_2007 STATUS ON TYPE LINE DEBUG 5 CLASS NAME "classSpokaneTrafficFlows" STYLE COLOR 127 255 64 OPACITY 50 OUTLINECOLOR 255 128 64 WIDTH 3 END #style END #class END #layer END #Map running shp2img.exe returns: msLoadMap(): Image handling error. Unable to initialize image msCalculateScale(): General error message. invalid image extent .... I get the same results for shp2img on the working shapefile/map file. THE FOLLOWING WORKS: MAP IMAGETYPE AGG SIZE 256 256 SHAPEPATH "/MapServerData/ShapeFiles/1" IMAGECOLOR 255 255 255 TRANSPARENT ON FONTSET "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #Outputformat LAYER NAME TxCounties DATA co48_d00 STATUS ON TYPE Polygon CLASS NAME "classTxCounties" STYLE COLOR 0 255 0 OPACITY 25 OUTLINECOLOR 0 0 0 WIDTH 2 END #style END #class END #layer END #Map Anyone have any idea's why this might not work in the first case? Or what else can I do to debug the problem? Kent _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From KMorrison at advantrack.com Wed Jan 20 12:44:54 2010 From: KMorrison at advantrack.com (Kent Morrison) Date: Wed, 20 Jan 2010 14:44:54 -0600 Subject: [mapserver-users] RE: Images returning blank In-Reply-To: <4DCDDD4507E4E847920443D1B98C588D04A5210B36@mail1.advantrack.local> References: <4DCDDD4507E4E847920443D1B98C588D04A5210B31@mail1.advantrack.local> <4DCDDD4507E4E847920443D1B98C588D04A5210B32@mail1.advantrack.local> <4DCDDD4507E4E847920443D1B98C588D04A5210B33@mail1.advantrack.local> <4DCDDD4507E4E847920443D1B98C588D04A5210B36@mail1.advantrack.local> Message-ID: <4DCDDD4507E4E847920443D1B98C588D04A5210B37@mail1.advantrack.local> I think I figured out my own answer. X_0 is the False_easting * the unit value... In this case foot_us = 0.3048006096012192 -----Original Message----- From: Kent Morrison Sent: Wednesday, January 20, 2010 1:49 PM To: 'Fawcett, David (MPCA)'; 'Rahkonen Jukka'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Images returning blank One question I have is: 1. The PROJECTION settings from spatialreference.org for NAD_1983_HARN_StatePlane_Washington_North_FIPS_4601_Feet is PROJECTION "proj=lcc" "lat_1=47.5" "lat_2=49.73333333333333" "lat_0=47.0" "lon_0=-120.83333333333333" "x_0=500000.0000000001" "y_0=0" "ellps=GRS80" "to_meter=0.3048006096012192" "no_defs" END I can see where all the settings come fro mthe .PRJ file except for the x_0 and y_0, where did these come from? I though tit might be the "False_Easting"/"False_Northing" settings but changing x_0 = 1640416.666666667 caused the images to disapear so that's not it. The .PRJ file is: PROJCS["NAD_1983_HARN_StatePlane_Washington_North_FIPS_4601_Feet", GEOGCS["GCS_North_American_1983_HARN", DATUM["D_North_American_1983_HARN", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic"], PARAMETER["False_Easting",1640416.666666667], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",-120.8333333333333], PARAMETER["Standard_Parallel_1",47.5], PARAMETER["Standard_Parallel_2",48.73333333333333], PARAMETER["Latitude_Of_Origin",47.0], UNIT["Foot_US",0.3048006096012192]], VERTCS["NAVD_1988", VDATUM["North_American_Vertical_Datum_1988"], PARAMETER["Vertical_Shift",0.0], PARAMETER["Direction",1.0], UNIT["Foot_US",0.3048006096012192]] I need to be able to create the PROJECTION settings from the .PRJ file. My application needs to allow users to upload shape files on their own. The PROJECTION settings is the last part. -----Original Message----- From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Wednesday, January 20, 2010 11:06 AM To: Kent Morrison; 'Rahkonen Jukka'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Images returning blank If you were just trying to display the data in a simple map, you could go without the projection info and still see something if you only wanted to display that layer. Let's add a PROJECTION obj to your layer: Take a look at http://spatialreference.org/ref/esri/102740/. I am pretty sure that this is the spatial reference system (SRS) that your data is in. MapServer uses SRS definitions in Proj.4 format. Here is a link to this SRS in Proj.4: http://spatialreference.org/ref/esri/102740/proj4/ In your LAYER, add PROJECTION "proj=lcc" "lat_1=28.38333333333333" "lat_2=30.28333333333334" "lat_0=27.83333333333333" "lon_0=-99" "x_0=600000.0000000001" "y_0=4000000" "ellps=GRS80" "datum=NAD83" "to_meter=0.3048006096012192" "no_defs" END Does this work? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kent Morrison Sent: Wednesday, January 20, 2010 10:45 AM To: 'Rahkonen Jukka'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Images returning blank Removing the PROJECTION from the trafficflow_2007 map results in the following error: Cannot set new SRS on a map that doesn't have any projection set. Please make sure your mapfile has a PROJECTION defined at the top level. So what I need to do is figure out how to setup the PROJECTION. Which I have no idea on. The .prj file that can with the shp file is: PROJCS["NAD_1983_StatePlane_Texas_South_Central_FIPS_4204_Feet", GEOGCS["GCS_North_American_1983", DATUM["D_North_American_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic"], PARAMETER["False_Easting",1968500.0], PARAMETER["False_Northing",13123333.33333333], PARAMETER["Central_Meridian",-99.0], PARAMETER["Standard_Parallel_1",28.38333333333333], PARAMETER["Standard_Parallel_2",30.28333333333334], PARAMETER["Latitude_Of_Origin",27.83333333333333], UNIT["Foot_US",0.3048006096012192]] So now I am trying to figure out PROJECTIONS... Any suggestions or sites with examples that will help me here would be greatly appreciated. Thanks Kent -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Tuesday, January 19, 2010 4:25 PM To: Kent Morrison; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Images returning blank Hi, The non-working one is in some other projection than epsg:4326. You will get that layer visible by removing projection also from the MAP level and using the extents from ogrinfo, but in order to show both layers together you should know the correct projection for both datasets. If projection is given at map level it must suit the extents. Epsg:4326 and EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704 do not suit. -Jukka- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Kent Morrison L?hetetty: ke 20.1.2010 0:14 Vastaanottaja: 'Fawcett, David (MPCA)'; 'mapserver-users at lists.osgeo.org' Aihe: [mapserver-users] RE: Images returning blank I ran ogrinfo.exe on the non-working file. C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\trafficflow_200 7.shp trafficflow_2007 -so INFO: Open of `c:\mapserverdata\shapefiles\1\trafficflow_2007.shp' using driver `ESRI Shapefile' successful. Layer name: trafficflow_2007 Geometry: Line String Feature Count: 4212 Extent: (2460247.751004, 232706.929725) - (2507483.898985, 294550.472704) Layer SRS WKT: (unknown) CounterID: Integer (10.0) Location: String (50.0) StartDate: Date (10.0) ADT_Total: Integer (10.0) AWD_Total: Integer (10.0) XCoord: Real (19.8) YCoord: Real (19.8) StreetID: String (16.0) Shape_len: Real (19.11) I added: EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704 to the map file and changed the Layer Status to Default. [Tue Jan 19 21:43:35 2010].791000 CGI Request 1 on process 2676 [Tue Jan 19 21:43:35 2010].791000 msTileSetExtent (-13073784.538762, 6051371.431753) (-13071348.108486, 6053807.862029) [Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 21:43:35 2010].791000 msDrawMap() total time: 0.000s [Tue Jan 19 21:43:35 2010].822000 msSaveImage() total time: 0.031s [Tue Jan 19 21:43:35 2010].822000 mapserv request processing time (loadmap not incl.): 0.031s [Tue Jan 19 21:43:35 2010].822000 msFreeMap(): freeing map at 01A5AF10. Still a blank image. When I ran ogrinfo.exe on the working shapefile: C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\co48_d00.shp -s o co48_d00 INFO: Open of `c:\mapserverdata\shapefiles\1\co48_d00.shp' using driver `ESRI Shapefile' successful. Layer name: co48_d00 Geometry: Polygon Feature Count: 265 Extent: (-106.645646, 25.837377) - (-93.516407, 36.500704) Layer SRS WKT: (unknown) AREA: Real (20.5) PERIMETER: Real (20.5) CO48_D00_: Real (11.0) CO48_D00_I: Real (11.0) STATE: String (2.0) COUNTY: String (3.0) NAME: String (90.0) LSAD: String (2.0) LSAD_TRANS: String (50.0) The Extents on the working file are in lat/lon. In the non-working file it looks to be in something else. I'm trying to return VE image tiles.. not sure where to go from here to get the first file to work. Thanks ________________________________ From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Tuesday, January 19, 2010 3:28 PM To: Kent Morrison; 'mapserver-users at lists.osgeo.org' Subject: RE: Images returning blank Based on the errors, it looks like you will need EXTENT to your map file at the MAP level. What do you get when you run ogrinfo against the two shapefiles? Any difference? Are you adding a URL var for the layer name? Try setting LAYER STATUS to DEFAULT for both layers and see if you get an image back. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kent Morrison Sent: Tuesday, January 19, 2010 3:17 PM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] Images returning blank I have mapserver 5.4.2 installed. I have two different shape files, one renders properly the other only returns blank images The debug log for the one that does not work returns: [Tue Jan 19 20:34:59 2010].212000 CGI Request 1 on process 1180 [Tue Jan 19 20:34:59 2010].212000 mapserv(): Web application error. No way to generate map extent. [Tue Jan 19 20:34:59 2010].212000 msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. [Tue Jan 19 20:34:59 2010].212000 msTileSetExtent (-13090872.991896, 6046512.903143) (-13071381.549686, 6066004.345353) [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap() total time: 0.015s [Tue Jan 19 20:34:59 2010].274000 msSaveImage() total time: 0.047s [Tue Jan 19 20:34:59 2010].274000 mapserv request processing time (loadmap not incl.): 0.062s [Tue Jan 19 20:34:59 2010].274000 msFreeMap(): freeing map at 01A5AF00. [Tue Jan 19 20:34:59 2010].274000 freeLayer(): freeing layer at 020E4160. the map file is: MAP IMAGETYPE AGG SIZE 256 256 SHAPEPATH "/MapServerData/ShapeFiles/1" IMAGECOLOR 255 255 255 TRANSPARENT ON FONTSET "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors2.txt" DEBUG 5 PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #Outputformat LAYER NAME SpokaneTrafficFlows DATA TrafficFlow_2007 STATUS ON TYPE LINE DEBUG 5 CLASS NAME "classSpokaneTrafficFlows" STYLE COLOR 127 255 64 OPACITY 50 OUTLINECOLOR 255 128 64 WIDTH 3 END #style END #class END #layer END #Map running shp2img.exe returns: msLoadMap(): Image handling error. Unable to initialize image msCalculateScale(): General error message. invalid image extent .... I get the same results for shp2img on the working shapefile/map file. THE FOLLOWING WORKS: MAP IMAGETYPE AGG SIZE 256 256 SHAPEPATH "/MapServerData/ShapeFiles/1" IMAGECOLOR 255 255 255 TRANSPARENT ON FONTSET "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #Outputformat LAYER NAME TxCounties DATA co48_d00 STATUS ON TYPE Polygon CLASS NAME "classTxCounties" STYLE COLOR 0 255 0 OPACITY 25 OUTLINECOLOR 0 0 0 WIDTH 2 END #style END #class END #layer END #Map Anyone have any idea's why this might not work in the first case? Or what else can I do to debug the problem? Kent _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Wed Jan 20 12:58:12 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 20 Jan 2010 16:58:12 -0400 Subject: [mapserver-users] RE: Images returning blank In-Reply-To: <4DCDDD4507E4E847920443D1B98C588D04A5210B37@mail1.advantrack.local> References: <4DCDDD4507E4E847920443D1B98C588D04A5210B31@mail1.advantrack.local> <4DCDDD4507E4E847920443D1B98C588D04A5210B32@mail1.advantrack.local> <4DCDDD4507E4E847920443D1B98C588D04A5210B33@mail1.advantrack.local> <4DCDDD4507E4E847920443D1B98C588D04A5210B36@mail1.advantrack.local> <4DCDDD4507E4E847920443D1B98C588D04A5210B37@mail1.advantrack.local> Message-ID: <4B576E64.1020107@gatewaygeomatics.com> Kent Morrison wrote: > I think I figured out my own answer. X_0 is the False_easting * the unit value... In this case foot_us = 0.3048006096012192 > A really good page to keep handy which describes the PROJ.4 parameters (which are used by MapServer) is: http://trac.osgeo.org/proj/wiki/GenParms Everyone should bookmark that one for sure. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From kobben at itc.nl Wed Jan 20 13:04:43 2010 From: kobben at itc.nl (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Wed, 20 Jan 2010 22:04:43 +0100 Subject: [mapserver-users] Announcement: Dracones, a web mapping framework for MapServer In-Reply-To: Message-ID: Hi Christian, Thanks for bringing this. It looks like a very promising framework, but while checking out your examples I did notice that the client apparently is not registering a CTRL-click in my setup (Firefox 3.5.7 on MacOSX 10.6), nothing ahpens (SHIFT-drag and doubleclick work). This makes the client side app a bit handicapped... Yours, -- Barend K?bben Senior Lecturer ITC ? University of Twente, Faculty of Geo-Information Science and Earth Observation PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 20-01-10 17:31, "Christian Jauvin" wrote: > Dear MapServer users, > > I have created Dracones, a Python and JavaScript web mapping framework > based on MapServer, which I think could be of interest to the open > source web mapping/GIS community. It is available at: > > http://surveillance.mcgill.ca/dracones > > This framework began its life as a surveillance application for > Montreal Public Health. After a lot of refactoring sessions, I had the > idea of abstracting a set of core client/server services, that would > become the framework, and to rewrite the original application in terms > of those. Thus the set of features offered by Dracones stems from > pre-existing application needs, rather than the opposite. > > In a nutshell, here is what Dracones provides.. > > On the client side: > > * A lightweight but powerful map widget (100% JS), with state of the > art features like AJAX-based smooth scrolling and visual selection > * An extension mechanism to define new UI behaviors (e.g. what happens > when clicking on the map, or drawing a selection box around objects) > > On the server side: > > * A set of Python classes and functions (written on top of > Python-MapScript) that encapsulate the application state, and ease the > interaction with its map objects > * A well-thought extension mechanism, to define custom requests and queries > > Dracones also provides a bunch of other application-centric features, > like easy map image export and undo/redo. Last but not least, I've > been very careful in writing the documentation and tutorials, which I > think cover a wide range of issues and possibilities. > > This work is still in Alpha stage, and I will be of course very > interested to hear the community's comments and suggestions. > > Best regards, > > Christian Jauvin > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente 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 SSchantz at BfS.de Wed Jan 20 23:31:43 2010 From: SSchantz at BfS.de (Stefan Schantz) Date: Thu, 21 Jan 2010 08:31:43 +0100 Subject: [mapserver-users] VRT / CSV data sources are not displayed in a layer In-Reply-To: <191063.97345.qm@web38203.mail.mud.yahoo.com> References: <4B5721FC.60608@BfS.de> <785497.50057.qm@web38201.mail.mud.yahoo.com> <4B574504.3040507@BfS.de> <191063.97345.qm@web38203.mail.mud.yahoo.com> Message-ID: <4B5802DF.1000103@BfS.de> Well, here is the MAP definition, but the same mapfile works with the Shapefile, which I have transformed from the CSV/VRT-files, so I think, that the mapfile shouldn't be the issue. Stefan --------------------------------- MAP NAME "rodos_bgefirst" STATUS ON EXTENT 458690.8459237 1746161.3670216 6216440.5477323 6216440.5477323 UNITS METERS DEBUG 5 CONFIG "MS_ERRORFILE" "/data/tmp/ms_debug.log" SYMBOLSET "../symbols/symbols.sym" FONTSET "../fonts/fonts.list" SHAPEPATH "/daten/rasterkarten/" PROJECTION "init=epsg:3035" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" EXTENSION PNG IMAGEMODE PC256 TRANSPARENT ON END WEB IMAGEPATH "/data/tmp/" IMAGEURL "http://10.162.18.107/tmp/" METADATA "WMS_ACCESSCONSTRAINTS" "none" "WMS_SRS" "EPSG:4326 EPSG:32632 EPSG:25832 EPSG:31466 EPSG:31467 EPSG:31468 EPSG:3035" "WMS_ONLINERESOURCE" "http://10.162.18.107/cgi-bin/mapserv?map=/data/umn/bfs/map/rodos_bgefirst_ssh.map" "WMS_TITLE" "RODOS Prognose Karte interpoliert" "WMS_FEATURE_INFO_MIME_TYPE" "text/html" "WMS_ABSTRACT" "RODOS Prognose Karte" END END INCLUDE "../include/legend_rodos.map" --------------------------------------- Carlos Ruiz schrieb: > Can you show me the MAP definition ? Maybe I can find something there > > IC Carlos Ruiz > > ------------------------------------------------------------------------ > *From:* Stefan Schantz > *To:* Carlos Ruiz > *Cc:* mapserver-users at lists.osgeo.org > *Sent:* Wed, January 20, 2010 12:01:40 PM > *Subject:* Re: [mapserver-users] VRT / CSV data sources are not > displayed in a layer > > Hello Carlos, > my CSV-file ans VRT-file looks like your examples: > > My CSV is > x-utm,y-utm,Wert > 742226., 5374978., 0.00E+00 > 743422., 5375072., 0.00E+00 > 744620., 5375166., 0.00E+00 > ... > > and my VTR is > > > /daten/csv/boden.csv > wkbPoint > > > > > and as I wrote, ogr2ogr could read my vrt/csv data and transform it > into a shapefile.. > > Stefan > > Carlos Ruiz schrieb: > > Check that you have your CSV like this: > > > > Lat,Lng,House > > 48.1,0.25,"My house" > > 49.2,1.1,"My girlfriend's house" > > 47.5,0.75,"My mother in law's house" > > > > And that you have your VTR like this: > > > > > > > > [FILE] > > wkbPoint > > [YOUR SRS] > > > > > > > > IC Carlos Ruiz > > > > ------------------------------------------------------------------------ > > *From:* Stefan Schantz > > > *To:* mapserver-users at lists.osgeo.org > > > *Sent:* Wed, January 20, 2010 9:32:12 AM > > *Subject:* [mapserver-users] VRT / CSV data sources are not > displayed in a layer > > > > Hello List, > > > > The following layer uses a CSV-file (together with a VRT-File > (Virtual Format) ) as datasource . When I try to visualize the layer, > nothing is shown (neither the data nor error messages; shp2img shows > also nothing) > > > > LAYER > > NAME "boden" > > DEBUG on > > STATUS ON > > TYPE POINT > > # DATA "/daten/csv/boden/boden" # Datenquelle Shapefile > > CONNECTION "/daten/csv/boden.vrt" > > CONNECTIONTYPE OGR > > > > PROJECTION > > "init=epsg:25832" > > END > > METADATA > > "WMS_TITLE" "test" > > "WMS_SRS" "EPSG:25832" > > "WMS_ABSTRACT" "test" > > "WMS_FEATURE_INFO_MIME_TYPE" 'text/html' > > END > > > > CLASS > > NAME "test" > > STYLE > > SYMBOL "circle" > > SIZE 15 COLOR 90 90 90 > > END > > END END > > > > > > But if I transform the CSV/VRT-file into a Shapefile via ogr2ogr > > > > ogr2ogr -s_srs EPSG:25832 -t_srs EPSG:25832 -f "ESRI Shapefile" > boden boden.vrt > > > > > > the layer displays the data. > > What is wrong with my VRT/CSV-datasource in the mapfile? > > > > Thanks for any idea. > > > > Best regards > > Stefan > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From marman_8587 at yahoo.com Wed Jan 20 09:54:21 2010 From: marman_8587 at yahoo.com (Muammar (Mario) Manzanares) Date: Wed, 20 Jan 2010 09:54:21 -0800 (PST) Subject: [mapserver-users] Contents of mapserver-users digest In-Reply-To: <20100120174525.EBE05E01D2E@lists.osgeo.org> References: <20100120174525.EBE05E01D2E@lists.osgeo.org> Message-ID: <663842.67707.qm@web35905.mail.mud.yahoo.com> ----- Original Message ---- From: "mapserver-users-request at lists.osgeo.org" To: mapserver-users at lists.osgeo.org Sent: Wed, January 20, 2010 12:45:25 PM Subject: mapserver-users Digest, Vol 24, Issue 63 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. RE: RE: Images returning blank (Fawcett, David (MPCA)) ? 2. RE: RE: Images returning blank (Kent Morrison) ? 3. Contents of mapserver-users digest (Muammar (Mario) Manzanares) ---------------------------------------------------------------------- Message: 1 Date: Wed, 20 Jan 2010 11:05:36 -0600 From: "Fawcett, David (MPCA)" Subject: RE: [mapserver-users] RE: Images returning blank To: Kent Morrison ,??? 'Rahkonen Jukka' ??? ,??? "mapserver-users at lists.osgeo.org" ??? Message-ID: ??? Content-Type: text/plain; charset="iso-8859-1" If you were just trying to display the data in a simple map, you could go without the projection info and still see something if you only wanted to display that layer. Let's add a PROJECTION obj to your layer: Take a look at http://spatialreference.org/ref/esri/102740/.? I am pretty sure that this is the spatial reference system (SRS) that your data is in.? MapServer uses SRS definitions in Proj.4 format.? Here is a link to this SRS in Proj.4:? http://spatialreference.org/ref/esri/102740/proj4/ In your LAYER, add PROJECTION ? "proj=lcc" ? "lat_1=28.38333333333333" ? "lat_2=30.28333333333334" ? "lat_0=27.83333333333333" ? "lon_0=-99" ? "x_0=600000.0000000001" ? "y_0=4000000" ? "ellps=GRS80" ? "datum=NAD83" ? "to_meter=0.3048006096012192" ? "no_defs" END Does this work? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kent Morrison Sent: Wednesday, January 20, 2010 10:45 AM To: 'Rahkonen Jukka'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Images returning blank Removing the PROJECTION from the trafficflow_2007 map results in the following error: Cannot set new SRS on a map that doesn't have any projection set. Please make sure your mapfile has a PROJECTION defined at the top level. So what I need to do is figure out how to setup the PROJECTION. Which I have no idea on. The .prj file that can with the shp file is: PROJCS["NAD_1983_StatePlane_Texas_South_Central_FIPS_4204_Feet", ??? GEOGCS["GCS_North_American_1983", ??? ??? DATUM["D_North_American_1983", ??? ??? SPHEROID["GRS_1980",6378137.0,298.257222101]], ??? ??? PRIMEM["Greenwich",0.0], ??? ??? UNIT["Degree",0.0174532925199433]], ??? PROJECTION["Lambert_Conformal_Conic"], ??? PARAMETER["False_Easting",1968500.0], ??? PARAMETER["False_Northing",13123333.33333333], ??? PARAMETER["Central_Meridian",-99.0], ??? PARAMETER["Standard_Parallel_1",28.38333333333333], ??? PARAMETER["Standard_Parallel_2",30.28333333333334], ??? PARAMETER["Latitude_Of_Origin",27.83333333333333], ??? UNIT["Foot_US",0.3048006096012192]] So now I am trying to figure out PROJECTIONS... Any suggestions or sites with examples that will help me here would be greatly appreciated. Thanks Kent -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Tuesday, January 19, 2010 4:25 PM To: Kent Morrison; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Images returning blank Hi, The non-working one is in some other projection than epsg:4326. You will get that layer visible by removing projection also from the MAP level and using the extents from ogrinfo, but in order to show both layers together you should know the correct projection for both datasets. If projection is given at map level it must suit the extents.? Epsg:4326 and EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704 do not suit. -Jukka- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Kent Morrison L?hetetty: ke 20.1.2010 0:14 Vastaanottaja: 'Fawcett, David (MPCA)'; 'mapserver-users at lists.osgeo.org' Aihe: [mapserver-users] RE: Images returning blank I ran ogrinfo.exe on the non-working file. C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\trafficflow_200 7.shp trafficflow_2007 -so INFO: Open of `c:\mapserverdata\shapefiles\1\trafficflow_2007.shp' ? ? ? using driver `ESRI Shapefile' successful. Layer name: trafficflow_2007 Geometry: Line String Feature Count: 4212 Extent: (2460247.751004, 232706.929725) - (2507483.898985, 294550.472704) Layer SRS WKT: (unknown) CounterID: Integer (10.0) Location: String (50.0) StartDate: Date (10.0) ADT_Total: Integer (10.0) AWD_Total: Integer (10.0) XCoord: Real (19.8) YCoord: Real (19.8) StreetID: String (16.0) Shape_len: Real (19.11) I added: EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704 to the map file and changed the Layer Status to Default. [Tue Jan 19 21:43:35 2010].791000 CGI Request 1 on process 2676 [Tue Jan 19 21:43:35 2010].791000 msTileSetExtent (-13073784.538762, 6051371.431753) (-13071348.108486, 6053807.862029) [Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 21:43:35 2010].791000 msDrawMap() total time: 0.000s [Tue Jan 19 21:43:35 2010].822000 msSaveImage() total time: 0.031s [Tue Jan 19 21:43:35 2010].822000 mapserv request processing time (loadmap not incl.): 0.031s [Tue Jan 19 21:43:35 2010].822000 msFreeMap(): freeing map at 01A5AF10. Still a blank image. When I ran ogrinfo.exe on the working shapefile: C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\co48_d00.shp -s o co48_d00 INFO: Open of `c:\mapserverdata\shapefiles\1\co48_d00.shp' ? ? ? using driver `ESRI Shapefile' successful. Layer name: co48_d00 Geometry: Polygon Feature Count: 265 Extent: (-106.645646, 25.837377) - (-93.516407, 36.500704) Layer SRS WKT: (unknown) AREA: Real (20.5) PERIMETER: Real (20.5) CO48_D00_: Real (11.0) CO48_D00_I: Real (11.0) STATE: String (2.0) COUNTY: String (3.0) NAME: String (90.0) LSAD: String (2.0) LSAD_TRANS: String (50.0) The Extents on the working file are in lat/lon. In the non-working file it looks to be in something else. I'm trying to return VE image tiles.. not sure where to go from here to get the first file to work. Thanks ________________________________ From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Tuesday, January 19, 2010 3:28 PM To: Kent Morrison; 'mapserver-users at lists.osgeo.org' Subject: RE: Images returning blank Based on the errors, it looks like you will need EXTENT to your map file at the MAP level. What do you get when you run ogrinfo against the two shapefiles?? Any difference? Are you adding a URL var for the layer name?? Try setting LAYER STATUS to DEFAULT for both layers and see if you get an image back. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kent Morrison Sent: Tuesday, January 19, 2010 3:17 PM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] Images returning blank I have mapserver 5.4.2 installed. I have two different shape files, one renders properly the other only returns blank images The debug log for the one that does not work returns: [Tue Jan 19 20:34:59 2010].212000 CGI Request 1 on process 1180 [Tue Jan 19 20:34:59 2010].212000 mapserv(): Web application error. No way to generate map extent. [Tue Jan 19 20:34:59 2010].212000 msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. [Tue Jan 19 20:34:59 2010].212000 msTileSetExtent (-13090872.991896, 6046512.903143) (-13071381.549686, 6066004.345353) [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap() total time: 0.015s [Tue Jan 19 20:34:59 2010].274000 msSaveImage() total time: 0.047s [Tue Jan 19 20:34:59 2010].274000 mapserv request processing time (loadmap not incl.): 0.062s [Tue Jan 19 20:34:59 2010].274000 msFreeMap(): freeing map at 01A5AF00. [Tue Jan 19 20:34:59 2010].274000 freeLayer(): freeing layer at 020E4160. the map file is: MAP ? ? IMAGETYPE AGG ? ? SIZE 256 256 ? ? SHAPEPATH "/MapServerData/ShapeFiles/1" ? ? IMAGECOLOR 255 255 255 ? ? TRANSPARENT ON ? ? FONTSET "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors2.txt" DEBUG 5 ? ? PROJECTION ? ? ? ? "init=epsg:4326" ? ? END ? ? OUTPUTFORMAT ? ? ? ? NAME 'AGG' ? ? ? ? DRIVER AGG/PNG ? ? ? ? IMAGEMODE RGB ? ? END #Outputformat ? ? LAYER ? ? ? ? NAME SpokaneTrafficFlows ? ? ? ? DATA TrafficFlow_2007 ? ? ? ? STATUS ON ? ? ? ? TYPE LINE ? ? ? ? DEBUG 5 ? ? ? ? CLASS ? ? ? ? ? ? NAME "classSpokaneTrafficFlows" ? ? ? ? ? ? STYLE ? ? ? ? ? ? ? ? COLOR 127 255 64 ? ? ? ? ? ? ? ? OPACITY 50 ? ? ? ? ? ? ? ? OUTLINECOLOR 255 128 64 ? ? ? ? ? ? ? ? WIDTH 3 ? ? ? ? ? ? END #style ? ? ? ? END #class ? ? END #layer END #Map running shp2img.exe returns: msLoadMap(): Image handling error. Unable to initialize image msCalculateScale(): General error message. invalid image extent .... I get the same results for shp2img on the working shapefile/map file. THE FOLLOWING WORKS: MAP ? IMAGETYPE? ? ? AGG ? SIZE? ? ? ? ? 256 256 ? SHAPEPATH? ? ? "/MapServerData/ShapeFiles/1" ? IMAGECOLOR? ? 255 255 255 ? TRANSPARENT? ? ON ? FONTSET? ? ? ? "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" ? PROJECTION ? ? "init=epsg:4326" ? END ? OUTPUTFORMAT ? ? NAME 'AGG' ? ? DRIVER AGG/PNG ? ? IMAGEMODE RGB ? END #Outputformat ? LAYER ? ? NAME? ? ? ? ? TxCounties ? ? DATA? co48_d00 ? ? STATUS? ? ? ON ? ? TYPE? ? ? ? Polygon ? ? CLASS ? ? ? ? NAME? "classTxCounties" ? ? ? ? STYLE ? ? ? ? ? ? COLOR? ? ? ? 0 255 0 ? ? ? ? ? ? OPACITY? ? ? 25 ? ? ? ? ? ? OUTLINECOLOR? 0 0 0 ? ? ? ? ? ? WIDTH? ? ? 2 ? ? ? ? END #style ? ? END #class ? END #layer END #Map Anyone have any idea's why this might not work in the first case? Or what else can I do to debug the problem? Kent _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------ Message: 2 Date: Wed, 20 Jan 2010 11:38:22 -0600 From: Kent Morrison Subject: RE: [mapserver-users] RE: Images returning blank To: "'Fawcett, David (MPCA)'" , 'Rahkonen ??? Jukka'??? , "mapserver-users at lists.osgeo.org" ??? Message-ID: ??? <4DCDDD4507E4E847920443D1B98C588D04A5210B35 at mail1.advantrack.local> Content-Type: text/plain; charset="iso-8859-1" I am trying to display the data as a map layer that can overly a Vitural Earth map. Some of my shape files that were not working before are now working where others are still not, but at least I now have a clue to what the heck I am doing! I'll look at the links you sent me and try to figure out the other files. Thanks! Kent -----Original Message----- From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Wednesday, January 20, 2010 11:06 AM To: Kent Morrison; 'Rahkonen Jukka'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Images returning blank If you were just trying to display the data in a simple map, you could go without the projection info and still see something if you only wanted to display that layer. Let's add a PROJECTION obj to your layer: Take a look at http://spatialreference.org/ref/esri/102740/.? I am pretty sure that this is the spatial reference system (SRS) that your data is in.? MapServer uses SRS definitions in Proj.4 format.? Here is a link to this SRS in Proj.4:? http://spatialreference.org/ref/esri/102740/proj4/ In your LAYER, add PROJECTION ? "proj=lcc" ? "lat_1=28.38333333333333" ? "lat_2=30.28333333333334" ? "lat_0=27.83333333333333" ? "lon_0=-99" ? "x_0=600000.0000000001" ? "y_0=4000000" ? "ellps=GRS80" ? "datum=NAD83" ? "to_meter=0.3048006096012192" ? "no_defs" END Does this work? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kent Morrison Sent: Wednesday, January 20, 2010 10:45 AM To: 'Rahkonen Jukka'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Images returning blank Removing the PROJECTION from the trafficflow_2007 map results in the following error: Cannot set new SRS on a map that doesn't have any projection set. Please make sure your mapfile has a PROJECTION defined at the top level. So what I need to do is figure out how to setup the PROJECTION. Which I have no idea on. The .prj file that can with the shp file is: PROJCS["NAD_1983_StatePlane_Texas_South_Central_FIPS_4204_Feet", ??? GEOGCS["GCS_North_American_1983", ??? ??? DATUM["D_North_American_1983", ??? ??? SPHEROID["GRS_1980",6378137.0,298.257222101]], ??? ??? PRIMEM["Greenwich",0.0], ??? ??? UNIT["Degree",0.0174532925199433]], ??? PROJECTION["Lambert_Conformal_Conic"], ??? PARAMETER["False_Easting",1968500.0], ??? PARAMETER["False_Northing",13123333.33333333], ??? PARAMETER["Central_Meridian",-99.0], ??? PARAMETER["Standard_Parallel_1",28.38333333333333], ??? PARAMETER["Standard_Parallel_2",30.28333333333334], ??? PARAMETER["Latitude_Of_Origin",27.83333333333333], ??? UNIT["Foot_US",0.3048006096012192]] So now I am trying to figure out PROJECTIONS... Any suggestions or sites with examples that will help me here would be greatly appreciated. Thanks Kent -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Tuesday, January 19, 2010 4:25 PM To: Kent Morrison; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Images returning blank Hi, The non-working one is in some other projection than epsg:4326. You will get that layer visible by removing projection also from the MAP level and using the extents from ogrinfo, but in order to show both layers together you should know the correct projection for both datasets. If projection is given at map level it must suit the extents.? Epsg:4326 and EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704 do not suit. -Jukka- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Kent Morrison L?hetetty: ke 20.1.2010 0:14 Vastaanottaja: 'Fawcett, David (MPCA)'; 'mapserver-users at lists.osgeo.org' Aihe: [mapserver-users] RE: Images returning blank I ran ogrinfo.exe on the non-working file. C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\trafficflow_200 7.shp trafficflow_2007 -so INFO: Open of `c:\mapserverdata\shapefiles\1\trafficflow_2007.shp' ? ? ? using driver `ESRI Shapefile' successful. Layer name: trafficflow_2007 Geometry: Line String Feature Count: 4212 Extent: (2460247.751004, 232706.929725) - (2507483.898985, 294550.472704) Layer SRS WKT: (unknown) CounterID: Integer (10.0) Location: String (50.0) StartDate: Date (10.0) ADT_Total: Integer (10.0) AWD_Total: Integer (10.0) XCoord: Real (19.8) YCoord: Real (19.8) StreetID: String (16.0) Shape_len: Real (19.11) I added: EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704 to the map file and changed the Layer Status to Default. [Tue Jan 19 21:43:35 2010].791000 CGI Request 1 on process 2676 [Tue Jan 19 21:43:35 2010].791000 msTileSetExtent (-13073784.538762, 6051371.431753) (-13071348.108486, 6053807.862029) [Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 21:43:35 2010].791000 msDrawMap() total time: 0.000s [Tue Jan 19 21:43:35 2010].822000 msSaveImage() total time: 0.031s [Tue Jan 19 21:43:35 2010].822000 mapserv request processing time (loadmap not incl.): 0.031s [Tue Jan 19 21:43:35 2010].822000 msFreeMap(): freeing map at 01A5AF10. Still a blank image. When I ran ogrinfo.exe on the working shapefile: C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\co48_d00.shp -s o co48_d00 INFO: Open of `c:\mapserverdata\shapefiles\1\co48_d00.shp' ? ? ? using driver `ESRI Shapefile' successful. Layer name: co48_d00 Geometry: Polygon Feature Count: 265 Extent: (-106.645646, 25.837377) - (-93.516407, 36.500704) Layer SRS WKT: (unknown) AREA: Real (20.5) PERIMETER: Real (20.5) CO48_D00_: Real (11.0) CO48_D00_I: Real (11.0) STATE: String (2.0) COUNTY: String (3.0) NAME: String (90.0) LSAD: String (2.0) LSAD_TRANS: String (50.0) The Extents on the working file are in lat/lon. In the non-working file it looks to be in something else. I'm trying to return VE image tiles.. not sure where to go from here to get the first file to work. Thanks ________________________________ From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Tuesday, January 19, 2010 3:28 PM To: Kent Morrison; 'mapserver-users at lists.osgeo.org' Subject: RE: Images returning blank Based on the errors, it looks like you will need EXTENT to your map file at the MAP level. What do you get when you run ogrinfo against the two shapefiles?? Any difference? Are you adding a URL var for the layer name?? Try setting LAYER STATUS to DEFAULT for both layers and see if you get an image back. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kent Morrison Sent: Tuesday, January 19, 2010 3:17 PM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] Images returning blank I have mapserver 5.4.2 installed. I have two different shape files, one renders properly the other only returns blank images The debug log for the one that does not work returns: [Tue Jan 19 20:34:59 2010].212000 CGI Request 1 on process 1180 [Tue Jan 19 20:34:59 2010].212000 mapserv(): Web application error. No way to generate map extent. [Tue Jan 19 20:34:59 2010].212000 msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. [Tue Jan 19 20:34:59 2010].212000 msTileSetExtent (-13090872.991896, 6046512.903143) (-13071381.549686, 6066004.345353) [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap() total time: 0.015s [Tue Jan 19 20:34:59 2010].274000 msSaveImage() total time: 0.047s [Tue Jan 19 20:34:59 2010].274000 mapserv request processing time (loadmap not incl.): 0.062s [Tue Jan 19 20:34:59 2010].274000 msFreeMap(): freeing map at 01A5AF00. [Tue Jan 19 20:34:59 2010].274000 freeLayer(): freeing layer at 020E4160. the map file is: MAP ? ? IMAGETYPE AGG ? ? SIZE 256 256 ? ? SHAPEPATH "/MapServerData/ShapeFiles/1" ? ? IMAGECOLOR 255 255 255 ? ? TRANSPARENT ON ? ? FONTSET "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors2.txt" DEBUG 5 ? ? PROJECTION ? ? ? ? "init=epsg:4326" ? ? END ? ? OUTPUTFORMAT ? ? ? ? NAME 'AGG' ? ? ? ? DRIVER AGG/PNG ? ? ? ? IMAGEMODE RGB ? ? END #Outputformat ? ? LAYER ? ? ? ? NAME SpokaneTrafficFlows ? ? ? ? DATA TrafficFlow_2007 ? ? ? ? STATUS ON ? ? ? ? TYPE LINE ? ? ? ? DEBUG 5 ? ? ? ? CLASS ? ? ? ? ? ? NAME "classSpokaneTrafficFlows" ? ? ? ? ? ? STYLE ? ? ? ? ? ? ? ? COLOR 127 255 64 ? ? ? ? ? ? ? ? OPACITY 50 ? ? ? ? ? ? ? ? OUTLINECOLOR 255 128 64 ? ? ? ? ? ? ? ? WIDTH 3 ? ? ? ? ? ? END #style ? ? ? ? END #class ? ? END #layer END #Map running shp2img.exe returns: msLoadMap(): Image handling error. Unable to initialize image msCalculateScale(): General error message. invalid image extent .... I get the same results for shp2img on the working shapefile/map file. THE FOLLOWING WORKS: MAP ? IMAGETYPE? ? ? AGG ? SIZE? ? ? ? ? 256 256 ? SHAPEPATH? ? ? "/MapServerData/ShapeFiles/1" ? IMAGECOLOR? ? 255 255 255 ? TRANSPARENT? ? ON ? FONTSET? ? ? ? "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" ? PROJECTION ? ? "init=epsg:4326" ? END ? OUTPUTFORMAT ? ? NAME 'AGG' ? ? DRIVER AGG/PNG ? ? IMAGEMODE RGB ? END #Outputformat ? LAYER ? ? NAME? ? ? ? ? TxCounties ? ? DATA? co48_d00 ? ? STATUS? ? ? ON ? ? TYPE? ? ? ? Polygon ? ? CLASS ? ? ? ? NAME? "classTxCounties" ? ? ? ? STYLE ? ? ? ? ? ? COLOR? ? ? ? 0 255 0 ? ? ? ? ? ? OPACITY? ? ? 25 ? ? ? ? ? ? OUTLINECOLOR? 0 0 0 ? ? ? ? ? ? WIDTH? ? ? 2 ? ? ? ? END #style ? ? END #class ? END #layer END #Map Anyone have any idea's why this might not work in the first case? Or what else can I do to debug the problem? Kent _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------ Message: 3 Date: Wed, 20 Jan 2010 09:38:38 -0800 (PST) From: "Muammar \(Mario\) Manzanares" Subject: [mapserver-users] Contents of mapserver-users digest To: mapserver-users at lists.osgeo.org Message-ID: <77525.55811.qm at web35905.mail.mud.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 ----- Original Message ---- From: "mapserver-users-request at lists.osgeo.org" To: mapserver-users at lists.osgeo.org Sent: Wed, January 20, 2010 11:45:39 AM Subject: mapserver-users Digest, Vol 24, Issue 61 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. Re: PHP MapScript pixel coordinates to map??? coordinates ? ? ? (Daniel Degasperi) ? 2. Re: 5.6.1 Postgis problem (Sandeep Kumar Chauhan) ? 3. VRT / CSV data sources are not displayed in a??? layer ? ? ? (Stefan Schantz) ? 4. Re: VRT / CSV data sources are not displayed in a??? layer ? ? ? (Carlos Ruiz) ? 5. Announcement: Dracones,??? a web mapping framework for MapServer ? ? ? (Christian Jauvin) ? 6. RE: RE: Images returning blank (Kent Morrison) ---------------------------------------------------------------------- Message: 1 Date: Wed, 20 Jan 2010 08:29:23 +0100 From: Daniel Degasperi Subject: Re: [mapserver-users] PHP MapScript pixel coordinates to map ??? coordinates To: mapserver-users at lists.osgeo.org Message-ID: <4B56B0D3.4000806 at r3-gis.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi David, have you already tried with this conversion: $geo_x = $minx + (($pix_x / $map_width) * ($maxx- $minx)); $geo_y = $maxy - (($pix_y / $map_height) * ($maxy - $miny)); Daniel Am 20.01.2010 04:57, schrieb Shorthouse, David: > Folks, > > This question has no doubt been asked many times, but for the life of > me I cannot find a solution. Here's what I'm trying to do: > > I have a jQuery-based front-end that uses the wonderful jcrop > extension (http://deepliquid.com/content/Jcrop.html) that helps > coordinate zoom. I'm hoping to use this same front-end to permit > cropping of a resultant map image, which means I need to pass the four > pixel corner coordinates, convert to map coordinates (projection may > be variable), then set the extent such that the resultant map image > will have the same dimensions as that described by the user on the > front-end. So, how can I convert pixel coordinates to map coordinates? > Note that the map projection is not always DD so I cannot merely use > proportions as I have seen in some solutions. Surely this is easier > than I am making it out to be. > > Thanks for any advice, > > David Shorthouse > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >? ? -- ? Daniel Degasperi ? Software Developer ? daniel.degasperi at r3-gis.com --------------------------- ? R3 GIS Srl ? Via Johann Kravogl 2 ? I-39010 Merano - Sinigo (BZ) ? Tel. +39 0473 494949 ? Fax. +39 0473 069902 ? Web? http://www.r3-gis.com ----------------------------- ------------------------------ Message: 2 Date: Wed, 20 Jan 2010 06:45:56 -0800 (PST) From: Sandeep Kumar Chauhan Subject: [mapserver-users] Re: 5.6.1 Postgis problem To: mapserver-users at lists.osgeo.org Message-ID: <1263998756968-4426856.post at n2.nabble.com> Content-Type: text/plain; charset=us-ascii Hi Steve, Thanks for help, i changed my code according to your suggestion. if (layer.queryByPoint(Map, point, (int)mapscript.MS_SINGLE, tolerance) == ... { ? ? resultCacheObj result = layer.getResults(); ? ? ? ? ? ? ? ? ? ? if (result.numresults > 0) ? ? ? ? ? ? ? ? ? ? { ? ? ? ? ? ? ? ? ? ? ? ? resultCacheMemberObj rrr = result.getResult(0); ? ? ? ? ? ? ? ? ? ? ? ? shapeObj shape = new shapeObj((int)layer.type); ? ? ? ? ? ? ? ? ? ? ? ? layer.resultsGetShape(shape, rrr.shapeindex, rrr.tileindex); ? ? ? ? ? ? ? ? ? ? ? ? ... ? ? ? ? ? ? ? ? ? ? ? ? ... ? ? ? ? ? ? ? ? ? ? ? ? ... Now it is working fine. Again thanks for help Thanks, ? -Sandeep -- View this message in context: http://n2.nabble.com/5-6-1-Postgis-problem-tp4392177p4426856.html Sent from the Mapserver - User mailing list archive at Nabble.com. ------------------------------ Message: 3 Date: Wed, 20 Jan 2010 16:32:12 +0100 From: Stefan Schantz Subject: [mapserver-users] VRT / CSV data sources are not displayed in ??? a??? layer To: mapserver-users at lists.osgeo.org Message-ID: <4B5721FC.60608 at BfS.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Hello List, The following layer uses a CSV-file (together with a VRT-File (Virtual Format) ) as datasource . When I try to visualize the layer, nothing is shown (neither the data nor error messages; shp2img shows also nothing) LAYER ? ? NAME "boden" ? ? DEBUG on ? ? STATUS ON ? ? TYPE POINT # DATA "/daten/csv/boden/boden" # Datenquelle Shapefile ? ? CONNECTION? "/daten/csv/boden.vrt" ? ? CONNECTIONTYPE OGR ? ? PROJECTION ? ? ? ? "init=epsg:25832" ? ? END ? ? ? ? ? METADATA ? ? ? ? "WMS_TITLE"? ? "test" ? ? ? ? "WMS_SRS"? "EPSG:25832" ? ? "WMS_ABSTRACT"? ? "test" ? ? ? ? "WMS_FEATURE_INFO_MIME_TYPE" 'text/html' ? ? END ? ? ? ? CLASS ? ? ? ? ? NAME "test" ? ? ? ? ? STYLE ? ? ? ? ? ? ? ? SYMBOL "circle" ? ? ? ? ? ? ? ? SIZE 15? ? ? ? ? ? ? ? ? COLOR 90 90 90 ? ? ? ? ? END ? ? ? ? END? ? ? ? ? END But if I transform the CSV/VRT-file into a Shapefile? via ogr2ogr ogr2ogr -s_srs EPSG:25832 -t_srs EPSG:25832 -f "ESRI Shapefile" boden boden.vrt the layer displays the data. What is wrong with my VRT/CSV-datasource in the mapfile? Thanks for any idea. Best regards Stefan ------------------------------ Message: 4 Date: Wed, 20 Jan 2010 08:20:10 -0800 (PST) From: Carlos Ruiz Subject: Re: [mapserver-users] VRT / CSV data sources are not ??? displayed in a??? layer To: Stefan Schantz , mapserver-users at lists.osgeo.org Message-ID: <785497.50057.qm at web38201.mail.mud.yahoo.com> Content-Type: text/plain; charset="us-ascii" Check that you have your CSV like this: Lat,Lng,House 48.1,0.25,"My house" 49.2,1.1,"My girlfriend's house" 47.5,0.75,"My mother in law's house" And that you have your VTR like this: ? ? [FILE] ? ? wkbPoint ? ? [YOUR SRS] ? ? IC Carlos Ruiz ________________________________ From: Stefan Schantz To: mapserver-users at lists.osgeo.org Sent: Wed, January 20, 2010 9:32:12 AM Subject: [mapserver-users] VRT / CSV data sources are not displayed in a layer Hello List, The following layer uses a CSV-file (together with a VRT-File (Virtual Format) ) as datasource . When I try to visualize the layer, nothing is shown (neither the data nor error messages; shp2img shows also nothing) LAYER ? NAME "boden" ? DEBUG on ? STATUS ON ? TYPE POINT # DATA "/daten/csv/boden/boden" # Datenquelle Shapefile ? CONNECTION? "/daten/csv/boden.vrt" ? CONNECTIONTYPE OGR ? PROJECTION ? ? ? "init=epsg:25832" ? END ? ? ? ? METADATA ? ? ? "WMS_TITLE"? ? "test" ? ? ? "WMS_SRS"? "EPSG:25832" ? "WMS_ABSTRACT"? ? "test" ? ? ? "WMS_FEATURE_INFO_MIME_TYPE" 'text/html' ? END ? ? ? CLASS ? ? ? ? ? NAME "test" ? ? ? ? ? STYLE ? ? ? ? ? ? ? SYMBOL "circle" ? ? ? ? ? ? ? SIZE 15? ? ? ? ? ? ? ? ? COLOR 90 90 90 ? ? ? ? ? END ? ? ? END? ? ? ? ? END But if I transform the CSV/VRT-file into a Shapefile? via ogr2ogr ogr2ogr -s_srs EPSG:25832 -t_srs EPSG:25832 -f "ESRI Shapefile" boden boden.vrt the layer displays the data. What is wrong with my VRT/CSV-datasource in the mapfile? Thanks for any idea. Best regards Stefan _______________________________________________ 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: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100120/1a7c10da/attachment-0001.html ------------------------------ Message: 5 Date: Wed, 20 Jan 2010 11:31:04 -0500 From: Christian Jauvin Subject: [mapserver-users] Announcement: Dracones,??? a web mapping ??? framework for MapServer To: mapserver-users at lists.osgeo.org, ms4w-users at lists.maptools.org, ??? community at lists.gispython.org Message-ID: ??? Content-Type: text/plain; charset=ISO-8859-1 Dear MapServer users, I have created Dracones, a Python and JavaScript web mapping framework based on MapServer, which I think could be of interest to the open source web mapping/GIS community. It is available at: http://surveillance.mcgill.ca/dracones This framework began its life as a surveillance application for Montreal Public Health. After a lot of refactoring sessions, I had the idea of abstracting a set of core client/server services, that would become the framework, and to rewrite the original application in terms of those. Thus the set of features offered by Dracones stems from pre-existing application needs, rather than the opposite. In a nutshell, here is what Dracones provides.. On the client side: * A lightweight but powerful map widget (100% JS), with state of the art features like AJAX-based smooth scrolling and visual selection * An extension mechanism to define new UI behaviors (e.g. what happens when clicking on the map, or drawing a selection box around objects) On the server side: * A set of Python classes and functions (written on top of Python-MapScript) that encapsulate the application state, and ease the interaction with its map objects * A well-thought extension mechanism, to define custom requests and queries Dracones also provides a bunch of other application-centric features, like easy map image export and undo/redo. Last but not least, I've been very careful in writing the documentation and tutorials, which I think cover a wide range of issues and possibilities. This work is still in Alpha stage, and I will be of course very interested to hear the community's comments and suggestions. Best regards, Christian Jauvin ------------------------------ Message: 6 Date: Wed, 20 Jan 2010 10:45:26 -0600 From: Kent Morrison Subject: RE: [mapserver-users] RE: Images returning blank To: 'Rahkonen Jukka' , ??? "mapserver-users at lists.osgeo.org" Message-ID: ??? <4DCDDD4507E4E847920443D1B98C588D04A5210B33 at mail1.advantrack.local> Content-Type: text/plain; charset="iso-8859-1" Removing the PROJECTION from the trafficflow_2007 map results in the following error: Cannot set new SRS on a map that doesn't have any projection set. Please make sure your mapfile has a PROJECTION defined at the top level. So what I need to do is figure out how to setup the PROJECTION. Which I have no idea on. The .prj file that can with the shp file is: PROJCS["NAD_1983_StatePlane_Texas_South_Central_FIPS_4204_Feet", ??? GEOGCS["GCS_North_American_1983", ??? ??? DATUM["D_North_American_1983", ??? ??? SPHEROID["GRS_1980",6378137.0,298.257222101]], ??? ??? PRIMEM["Greenwich",0.0], ??? ??? UNIT["Degree",0.0174532925199433]], ??? PROJECTION["Lambert_Conformal_Conic"], ??? PARAMETER["False_Easting",1968500.0], ??? PARAMETER["False_Northing",13123333.33333333], ??? PARAMETER["Central_Meridian",-99.0], ??? PARAMETER["Standard_Parallel_1",28.38333333333333], ??? PARAMETER["Standard_Parallel_2",30.28333333333334], ??? PARAMETER["Latitude_Of_Origin",27.83333333333333], ??? UNIT["Foot_US",0.3048006096012192]] So now I am trying to figure out PROJECTIONS... Any suggestions or sites with examples that will help me here would be greatly appreciated. Thanks Kent -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Tuesday, January 19, 2010 4:25 PM To: Kent Morrison; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Images returning blank Hi, The non-working one is in some other projection than epsg:4326. You will get that layer visible by removing projection also from the MAP level and using the extents from ogrinfo, but in order to show both layers together you should know the correct projection for both datasets. If projection is given at map level it must suit the extents.? Epsg:4326 and EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704 do not suit. -Jukka- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Kent Morrison L?hetetty: ke 20.1.2010 0:14 Vastaanottaja: 'Fawcett, David (MPCA)'; 'mapserver-users at lists.osgeo.org' Aihe: [mapserver-users] RE: Images returning blank I ran ogrinfo.exe on the non-working file. C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\trafficflow_200 7.shp trafficflow_2007 -so INFO: Open of `c:\mapserverdata\shapefiles\1\trafficflow_2007.shp' ? ? ? using driver `ESRI Shapefile' successful. Layer name: trafficflow_2007 Geometry: Line String Feature Count: 4212 Extent: (2460247.751004, 232706.929725) - (2507483.898985, 294550.472704) Layer SRS WKT: (unknown) CounterID: Integer (10.0) Location: String (50.0) StartDate: Date (10.0) ADT_Total: Integer (10.0) AWD_Total: Integer (10.0) XCoord: Real (19.8) YCoord: Real (19.8) StreetID: String (16.0) Shape_len: Real (19.11) I added: EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704 to the map file and changed the Layer Status to Default. [Tue Jan 19 21:43:35 2010].791000 CGI Request 1 on process 2676 [Tue Jan 19 21:43:35 2010].791000 msTileSetExtent (-13073784.538762, 6051371.431753) (-13071348.108486, 6053807.862029) [Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 21:43:35 2010].791000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 21:43:35 2010].791000 msDrawMap() total time: 0.000s [Tue Jan 19 21:43:35 2010].822000 msSaveImage() total time: 0.031s [Tue Jan 19 21:43:35 2010].822000 mapserv request processing time (loadmap not incl.): 0.031s [Tue Jan 19 21:43:35 2010].822000 msFreeMap(): freeing map at 01A5AF10. Still a blank image. When I ran ogrinfo.exe on the working shapefile: C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\co48_d00.shp -s o co48_d00 INFO: Open of `c:\mapserverdata\shapefiles\1\co48_d00.shp' ? ? ? using driver `ESRI Shapefile' successful. Layer name: co48_d00 Geometry: Polygon Feature Count: 265 Extent: (-106.645646, 25.837377) - (-93.516407, 36.500704) Layer SRS WKT: (unknown) AREA: Real (20.5) PERIMETER: Real (20.5) CO48_D00_: Real (11.0) CO48_D00_I: Real (11.0) STATE: String (2.0) COUNTY: String (3.0) NAME: String (90.0) LSAD: String (2.0) LSAD_TRANS: String (50.0) The Extents on the working file are in lat/lon. In the non-working file it looks to be in something else. I'm trying to return VE image tiles.. not sure where to go from here to get the first file to work. Thanks ________________________________ From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Tuesday, January 19, 2010 3:28 PM To: Kent Morrison; 'mapserver-users at lists.osgeo.org' Subject: RE: Images returning blank Based on the errors, it looks like you will need EXTENT to your map file at the MAP level. What do you get when you run ogrinfo against the two shapefiles?? Any difference? Are you adding a URL var for the layer name?? Try setting LAYER STATUS to DEFAULT for both layers and see if you get an image back. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kent Morrison Sent: Tuesday, January 19, 2010 3:17 PM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] Images returning blank I have mapserver 5.4.2 installed. I have two different shape files, one renders properly the other only returns blank images The debug log for the one that does not work returns: [Tue Jan 19 20:34:59 2010].212000 CGI Request 1 on process 1180 [Tue Jan 19 20:34:59 2010].212000 mapserv(): Web application error. No way to generate map extent. [Tue Jan 19 20:34:59 2010].212000 msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. [Tue Jan 19 20:34:59 2010].212000 msTileSetExtent (-13090872.991896, 6046512.903143) (-13071381.549686, 6066004.345353) [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 20:34:59 2010].227000 msDrawMap() total time: 0.015s [Tue Jan 19 20:34:59 2010].274000 msSaveImage() total time: 0.047s [Tue Jan 19 20:34:59 2010].274000 mapserv request processing time (loadmap not incl.): 0.062s [Tue Jan 19 20:34:59 2010].274000 msFreeMap(): freeing map at 01A5AF00. [Tue Jan 19 20:34:59 2010].274000 freeLayer(): freeing layer at 020E4160. the map file is: MAP ? ? IMAGETYPE AGG ? ? SIZE 256 256 ? ? SHAPEPATH "/MapServerData/ShapeFiles/1" ? ? IMAGECOLOR 255 255 255 ? ? TRANSPARENT ON ? ? FONTSET "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors2.txt" DEBUG 5 ? ? PROJECTION ? ? ? ? "init=epsg:4326" ? ? END ? ? OUTPUTFORMAT ? ? ? ? NAME 'AGG' ? ? ? ? DRIVER AGG/PNG ? ? ? ? IMAGEMODE RGB ? ? END #Outputformat ? ? LAYER ? ? ? ? NAME SpokaneTrafficFlows ? ? ? ? DATA TrafficFlow_2007 ? ? ? ? STATUS ON ? ? ? ? TYPE LINE ? ? ? ? DEBUG 5 ? ? ? ? CLASS ? ? ? ? ? ? NAME "classSpokaneTrafficFlows" ? ? ? ? ? ? STYLE ? ? ? ? ? ? ? ? COLOR 127 255 64 ? ? ? ? ? ? ? ? OPACITY 50 ? ? ? ? ? ? ? ? OUTLINECOLOR 255 128 64 ? ? ? ? ? ? ? ? WIDTH 3 ? ? ? ? ? ? END #style ? ? ? ? END #class ? ? END #layer END #Map running shp2img.exe returns: msLoadMap(): Image handling error. Unable to initialize image msCalculateScale(): General error message. invalid image extent .... I get the same results for shp2img on the working shapefile/map file. THE FOLLOWING WORKS: MAP ? IMAGETYPE? ? ? AGG ? SIZE? ? ? ? ? 256 256 ? SHAPEPATH? ? ? "/MapServerData/ShapeFiles/1" ? IMAGECOLOR? ? 255 255 255 ? TRANSPARENT? ? ON ? FONTSET? ? ? ? "../../fonts/fonts.list" CONFIG PROJ_LIB "c:\ms4w\proj\nad\" ? PROJECTION ? ? "init=epsg:4326" ? END ? OUTPUTFORMAT ? ? NAME 'AGG' ? ? DRIVER AGG/PNG ? ? IMAGEMODE RGB ? END #Outputformat ? LAYER ? ? NAME? ? ? ? ? TxCounties ? ? DATA? co48_d00 ? ? STATUS? ? ? ON ? ? TYPE? ? ? ? Polygon ? ? CLASS ? ? ? ? NAME? "classTxCounties" ? ? ? ? STYLE ? ? ? ? ? ? COLOR? ? ? ? 0 255 0 ? ? ? ? ? ? OPACITY? ? ? 25 ? ? ? ? ? ? OUTLINECOLOR? 0 0 0 ? ? ? ? ? ? WIDTH? ? ? 2 ? ? ? ? END #style ? ? END #class ? END #layer END #Map Anyone have any idea's why this might not work in the first case? Or what else can I do to debug the problem? Kent ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 24, Issue 61 *********************************************** ? ? ? ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 24, Issue 63 *********************************************** From b.veldkamp at zonnet.nl Thu Jan 21 05:00:23 2010 From: b.veldkamp at zonnet.nl (Berend Veldkamp) Date: Thu, 21 Jan 2010 14:00:23 +0100 Subject: [mapserver-users] Joins with MapScript Message-ID: <57fc60331001210500n4ec6c54nfcbea3c0464da6b0@mail.gmail.com> Hello, Using MapScript C#, is there a way to get to the Join object (does it exist at all)? I can see layerObj.numjoins, but not layerObj.getJoin(i) or something similar. Is there a way to retrieve values from a joined table? Best regards, Berend Veldkamp -------------- next part -------------- An HTML attachment was scrubbed... URL: From flsolu at gmail.com Thu Jan 21 06:57:28 2010 From: flsolu at gmail.com (Flavio Souza) Date: Thu, 21 Jan 2010 11:57:28 -0300 Subject: [mapserver-users] Class gridObj on java mapscript Message-ID: Hello my friends Anybody knows how to use the class gridObj on Java mapscript ? I can?t find the similar in java thanks a lot Fl?vio Souza _______________________________ Fl?vio Souza (021) 7629-4249 From boolean10001 at yahoo.com Thu Jan 21 09:23:26 2010 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Thu, 21 Jan 2010 09:23:26 -0800 (PST) Subject: [mapserver-users] VRT / CSV data sources are not displayed in a layer In-Reply-To: <4B5802DF.1000103@BfS.de> References: <4B5721FC.60608@BfS.de> <785497.50057.qm@web38201.mail.mud.yahoo.com> <4B574504.3040507@BfS.de> <191063.97345.qm@web38203.mail.mud.yahoo.com> <4B5802DF.1000103@BfS.de> Message-ID: <921223.29840.qm@web38203.mail.mud.yahoo.com> Stefan, I asked you about your MAP definition to do some tests. This is what I tried and it works: It seems that you have to consider the following: 1. The name of the CSV file has to be the same as the layer name (layer "boden" and file name "boden.csv"). 2. You have to add the SrcLayer tag into your VRT file like this: boden.csv boden wkbPoint Try it ! Greetings from M?xico IC Carlos Ruiz ________________________________ From: Stefan Schantz To: Carlos Ruiz Cc: mapserver-users at lists.osgeo.org Sent: Thu, January 21, 2010 1:31:43 AM Subject: Re: [mapserver-users] VRT / CSV data sources are not displayed in a layer Well, here is the MAP definition, but the same mapfile works with the Shapefile, which I have transformed from the CSV/VRT-files, so I think, that the mapfile shouldn't be the issue. Stefan --------------------------------- MAP NAME "rodos_bgefirst" STATUS ON EXTENT 458690.8459237 1746161.3670216 6216440.5477323 6216440.5477323 UNITS METERS DEBUG 5 CONFIG "MS_ERRORFILE" "/data/tmp/ms_debug.log" SYMBOLSET "../symbols/symbols.sym" FONTSET "../fonts/fonts.list" SHAPEPATH "/daten/rasterkarten/" PROJECTION "init=epsg:3035" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" EXTENSION PNG IMAGEMODE PC256 TRANSPARENT ON END WEB IMAGEPATH "/data/tmp/" IMAGEURL "http://10.162.18.107/tmp/" METADATA "WMS_ACCESSCONSTRAINTS" "none" "WMS_SRS" "EPSG:4326 EPSG:32632 EPSG:25832 EPSG:31466 EPSG:31467 EPSG:31468 EPSG:3035" "WMS_ONLINERESOURCE" "http://10.162.18.107/cgi-bin/mapserv?map=/data/umn/bfs/map/rodos_bgefirst_ssh.map" "WMS_TITLE" "RODOS Prognose Karte interpoliert" "WMS_FEATURE_INFO_MIME_TYPE" "text/html" "WMS_ABSTRACT" "RODOS Prognose Karte" END END INCLUDE "../include/legend_rodos.map" --------------------------------------- Carlos Ruiz schrieb: > Can you show me the MAP definition ? Maybe I can find something there > > IC Carlos Ruiz > > ------------------------------------------------------------------------ > *From:* Stefan Schantz > *To:* Carlos Ruiz > *Cc:* mapserver-users at lists.osgeo.org > *Sent:* Wed, January 20, 2010 12:01:40 PM > *Subject:* Re: [mapserver-users] VRT / CSV data sources are not displayed in a layer > > Hello Carlos, > my CSV-file ans VRT-file looks like your examples: > > My CSV is > x-utm,y-utm,Wert > 742226., 5374978., 0.00E+00 > 743422., 5375072., 0.00E+00 > 744620., 5375166., 0.00E+00 > ... > > and my VTR is > > > /daten/csv/boden.csv > wkbPoint > > > > > and as I wrote, ogr2ogr could read my vrt/csv data and transform it into a shapefile.. > > Stefan > > Carlos Ruiz schrieb: > > Check that you have your CSV like this: > > > > Lat,Lng,House > > 48.1,0.25,"My house" > > 49.2,1.1,"My girlfriend's house" > > 47.5,0.75,"My mother in law's house" > > > > And that you have your VTR like this: > > > > > > > > [FILE] > > wkbPoint > > [YOUR SRS] > > > > > > > > IC Carlos Ruiz > > > > ------------------------------------------------------------------------ > > *From:* Stefan Schantz > > > *To:* mapserver-users at lists.osgeo.org > > *Sent:* Wed, January 20, 2010 9:32:12 AM > > *Subject:* [mapserver-users] VRT / CSV data sources are not displayed in a layer > > > > Hello List, > > > > The following layer uses a CSV-file (together with a VRT-File (Virtual Format) ) as datasource . When I try to visualize the layer, nothing is shown (neither the data nor error messages; shp2img shows also nothing) > > > > LAYER > > NAME "boden" > > DEBUG on > > STATUS ON > > TYPE POINT > > # DATA "/daten/csv/boden/boden" # Datenquelle Shapefile > > CONNECTION "/daten/csv/boden.vrt" > > CONNECTIONTYPE OGR > > > > PROJECTION > > "init=epsg:25832" > > END > > METADATA > > "WMS_TITLE" "test" > > "WMS_SRS" "EPSG:25832" > > "WMS_ABSTRACT" "test" > > "WMS_FEATURE_INFO_MIME_TYPE" 'text/html' > > END > > > > CLASS > > NAME "test" > > STYLE > > SYMBOL "circle" > > SIZE 15 COLOR 90 90 90 > > END > > END END > > > > > > But if I transform the CSV/VRT-file into a Shapefile via ogr2ogr > > > > ogr2ogr -s_srs EPSG:25832 -t_srs EPSG:25832 -f "ESRI Shapefile" boden boden.vrt > > > > > > the layer displays the data. > > What is wrong with my VRT/CSV-datasource in the mapfile? > > > > Thanks for any idea. > > > > Best regards > > Stefan > > _______________________________________________ > > 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 Thu Jan 21 09:44:40 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 21 Jan 2010 13:44:40 -0400 Subject: [mapserver-users] Re: Mapserver tutorial In-Reply-To: <8f3468041001161825r6183ff3cy9deae989716f34c2@mail.gmail.com> References: <8f3468041001161825r6183ff3cy9deae989716f34c2@mail.gmail.com> Message-ID: <4B589288.8010707@gatewaygeomatics.com> Sajjad Anwar wrote: > Hello Jeff. > > I was reading through the Mapserver.org website and found your tutorial. > The material is very helpful. But the download link is broken. Can you > send me an offline pdf version of it? > Thanks! Hello Sajjad, You should now be able to download the MapServer documentation from the Downloads page, in PDF format (http://www.mapserver.org/download.html#documentation) -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From b.veldkamp at ZONNET.NL Thu Jan 21 10:52:45 2010 From: b.veldkamp at ZONNET.NL (Berend) Date: Thu, 21 Jan 2010 10:52:45 -0800 (PST) Subject: [mapserver-users] Field type Message-ID: <1264099965018-4435623.post@n2.nabble.com> Hi, Is there a way to determine field types of a layer (string, number, ...), using mapscript? Thanks, Berend ----- Berend Veldkamp http://www.grontmij.com http://www.grontmij.com -- View this message in context: http://n2.nabble.com/Field-type-tp4435623p4435623.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Thu Jan 21 13:24:58 2010 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 21 Jan 2010 22:24:58 +0100 Subject: [mapserver-users] Field type In-Reply-To: <1264099965018-4435623.post@n2.nabble.com> References: <1264099965018-4435623.post@n2.nabble.com> Message-ID: Berend, The fields are represented as strings in MapServer so the field types cannot normally be obtained in MapScript. In case of a shapefile layer you could probably create a shapefileObj and use getDBF to obtain a DBInfo object and use DBInfo.getFieldType to retrieve the type of a specific field. However this option is not widely used and you might want to use the GDAL/OGR bindings instead. Best regards, Tamas 2010/1/21 Berend > > Hi, > > Is there a way to determine field types of a layer (string, number, ...), > using mapscript? > > Thanks, Berend > > ----- > Berend Veldkamp > http://www.grontmij.com http://www.grontmij.com > -- > View this message in context: > http://n2.nabble.com/Field-type-tp4435623p4435623.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 szekerest at gmail.com Thu Jan 21 13:37:55 2010 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 21 Jan 2010 22:37:55 +0100 Subject: [mapserver-users] Joins with MapScript In-Reply-To: <57fc60331001210500n4ec6c54nfcbea3c0464da6b0@mail.gmail.com> References: <57fc60331001210500n4ec6c54nfcbea3c0464da6b0@mail.gmail.com> Message-ID: Berend, This functionality is not yet exposed in the MapScript interface, you can specify the JOIN elements in your mapfile though. Best regards, Tamas 2010/1/21 Berend Veldkamp > Hello, > > Using MapScript C#, is there a way to get to the Join object (does it exist > at all)? I can see layerObj.numjoins, but not layerObj.getJoin(i) or > something similar. > Is there a way to retrieve values from a joined table? > > Best regards, > Berend Veldkamp > _______________________________________________ > 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 szekerest at gmail.com Thu Jan 21 14:26:33 2010 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 21 Jan 2010 23:26:33 +0100 Subject: [mapserver-users] Class gridObj on java mapscript In-Reply-To: References: Message-ID: Flavio, I'm not aware of such class exposed in Java MapScript. Best regards, Tamas 2010/1/21 Flavio Souza > Hello my friends > > Anybody knows how to use the class gridObj on Java mapscript ? > I can?t find the similar in java > > thanks a lot > Fl?vio Souza > _______________________________ > Fl?vio Souza > (021) 7629-4249 > _______________________________________________ > 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 warmerdam at pobox.com Thu Jan 21 17:49:50 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 22 Jan 2010 09:49:50 +0800 Subject: [mapserver-users] VRT / CSV data sources are not displayed in a layer In-Reply-To: <4B5721FC.60608@BfS.de> References: <4B5721FC.60608@BfS.de> Message-ID: <931f8ea91001211749m39b71d1ap73f08c35d350b224@mail.gmail.com> Stefan, I would suspect that your .vrt file contains relative rather than absolute paths and that they are relative to a different working directory if used from MapServer. There is an attribute for the that may address this. It might help if you posted the VRT. 2010/1/20 Stefan Schantz : > Hello List, > > The following layer uses a CSV-file (together with a VRT-File (Virtual > Format) ) as datasource . When I try to visualize the layer, nothing is > shown (neither the data nor error messages; shp2img shows also nothing) > > LAYER > ? NAME "boden" > ? DEBUG on > ? STATUS ON > ? TYPE POINT > # DATA "/daten/csv/boden/boden" # Datenquelle Shapefile > ? CONNECTION ? "/daten/csv/boden.vrt" > ? CONNECTIONTYPE OGR > > ? PROJECTION > ? ? ? "init=epsg:25832" > ? END > ? ? ? ? METADATA > ? ? ? "WMS_TITLE" ? ?"test" > ? ? ? "WMS_SRS" ? "EPSG:25832" > ? "WMS_ABSTRACT" ? ?"test" > ? ? ? "WMS_FEATURE_INFO_MIME_TYPE" 'text/html' > ? END > > ? ? ? CLASS > ? ? ? ? ?NAME "test" > ? ? ? ? ?STYLE > ? ? ? ? ? ? ? SYMBOL "circle" > ? ? ? ? ? ? ? SIZE 15 ? ? ? ? ? ? ? ? COLOR 90 90 90 > ? ? ? ? ?END > ? ? ? END ? ? ? ? ? END > > > But if I transform the CSV/VRT-file into a Shapefile ?via ogr2ogr > > ogr2ogr -s_srs EPSG:25832 -t_srs EPSG:25832 -f "ESRI Shapefile" boden > boden.vrt > > > the layer displays the data. > What is wrong with my VRT/CSV-datasource in the mapfile? > > Thanks for any idea. > > Best regards > Stefan > _______________________________________________ > 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 traderboy at yahoo.com Thu Jan 21 18:04:59 2010 From: traderboy at yahoo.com (Joe Franklin) Date: Thu, 21 Jan 2010 18:04:59 -0800 (PST) Subject: [mapserver-users] PHP layer->updateFromString problem setting type and symbol name Message-ID: <582828.59200.qm@web113519.mail.gq1.yahoo.com> I really like the updateFromString functions in Mapserver Mapscript. I've eliminated my .map files, instead storing the layer definitions in a database and drawing them on-demand using PHP. However, I've found a few values ($layer->type and $style->symbolname) that aren't correctly set using Mapserver 5.6.1 (also tried 5.4.2). Here's an example: updateFromString($layerDef); //First problem: returns -1 //echo $oLayer->type; //$oLayer->set("type",MS_LAYER_POINT); //Second problem is that the symbol gif isn't used //unless it is explicitly set again below //$cls = $oLayer->getClass(0); //$style = $cls->getStyle(0); //if($style->symbolname!='')$style->set("symbolname",$style->symbolname); $oMap->selectOutputFormat('gif'); $img = $oMap->draw(); $img->saveImage("output.gif"); ?> From will.swan at ymail.com Thu Jan 21 21:30:18 2010 From: will.swan at ymail.com (Willem Swanepoel) Date: Fri, 22 Jan 2010 13:30:18 +0800 Subject: [mapserver-users] SQL Server 2008 layer C# MapScript query help Message-ID: <38bc31501001212130x6f14d4arcf4af027e09a04f2@mail.gmail.com> Hi, I'm just starting out with MapServer / MapScript C#. I get "Attempted to read or write protected memory" when trying to retrieve the shape of the selection in a SQL Server layer. Code snippet below (adapted from example code): if (layer.queryByPoint(Map, point, mapscript.MS_SINGLE, tolerance) == (int)MS_RETURN_VALUE.MS_SUCCESS) { resultCacheObj result = layer.getResults(); if (result.numresults > 0) { int shapeInd = result.getResult(0).shapeindex; layer.open(); shapeObj shape = layer.getFeature(shapeInd, -1); <<--Attempted to read or write protected memory string txt = ""; for (int i = 0; i < shape.numvalues;i++)// layer.numitems; i++) { txt += ""+ layer.getItem(i) +": "; txt += " " + shape.getValue(i) + "
"; } etc. Additional notes: * the tolerance > 0 * IIS 5 * using latest build (MSVC2008 (Win32) -stable release-1500-gdal-1-6-mapserver-5-6.zip) DLLs (including msplugin_mssql2008.dll) * VS 2008 project * the SQL Server layer geometry is points & draws without problems * code works for other layers in may map Additional issue: When doing a queryByShape on the SQL Server layer and try drawQuery on the map I get "Image handling error. Failed to draw layer..." Am doing something wrong - is this the correct way of going about querying & visualizing? Is what I trying to do possible with SQL Server layers? Any help/pointers appreciated. Thanks Will -------------- next part -------------- An HTML attachment was scrubbed... URL: From SSchantz at BfS.de Thu Jan 21 23:55:09 2010 From: SSchantz at BfS.de (Stefan Schantz) Date: Fri, 22 Jan 2010 08:55:09 +0100 Subject: [mapserver-users] VRT / CSV data sources are not displayed in a layer In-Reply-To: <931f8ea91001211749m39b71d1ap73f08c35d350b224@mail.gmail.com> References: <4B5721FC.60608@BfS.de> <931f8ea91001211749m39b71d1ap73f08c35d350b224@mail.gmail.com> Message-ID: <4B5959DD.8030906@BfS.de> Hello Frank, hello Carlos my CSV-file and my VRT-file looks like this: > > My CSV is > x-utm,y-utm,Wert > 742226., 5374978., 0.00E+00 > 743422., 5375072., 0.00E+00 > 744620., 5375166., 0.00E+00 > ... > > and my VTR is > > > /daten/csv/boden.csv > wkbPoint > > > > As you can see, I use absolute paths for the datasource. I also tried to use a wrong relative path and in this case I got an error from the Mapserver, so I think the mapserver can find the csv-file with the absolute path . Even if I add the source layer tag boden as Carlos told before , the result is negative and I get a blank picture from the Mapserver. Any other idea? Thanks Stefan Frank Warmerdam schrieb: > Stefan, > > I would suspect that your .vrt file contains relative rather > than absolute paths and that they are relative to a > different working directory if used from MapServer. > There is an attribute for the that > may address this. It might help if you posted the > VRT. > > 2010/1/20 Stefan Schantz : > >> Hello List, >> >> The following layer uses a CSV-file (together with a VRT-File (Virtual >> Format) ) as datasource . When I try to visualize the layer, nothing is >> shown (neither the data nor error messages; shp2img shows also nothing) >> >> LAYER >> NAME "boden" >> DEBUG on >> STATUS ON >> TYPE POINT >> # DATA "/daten/csv/boden/boden" # Datenquelle Shapefile >> CONNECTION "/daten/csv/boden.vrt" >> CONNECTIONTYPE OGR >> >> PROJECTION >> "init=epsg:25832" >> END >> METADATA >> "WMS_TITLE" "test" >> "WMS_SRS" "EPSG:25832" >> "WMS_ABSTRACT" "test" >> "WMS_FEATURE_INFO_MIME_TYPE" 'text/html' >> END >> >> CLASS >> NAME "test" >> STYLE >> SYMBOL "circle" >> SIZE 15 COLOR 90 90 90 >> END >> END END >> >> >> But if I transform the CSV/VRT-file into a Shapefile via ogr2ogr >> >> ogr2ogr -s_srs EPSG:25832 -t_srs EPSG:25832 -f "ESRI Shapefile" boden >> boden.vrt >> >> >> the layer displays the data. >> What is wrong with my VRT/CSV-datasource in the mapfile? >> >> Thanks for any idea. >> >> Best regards >> Stefan >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: boden.vrt URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: boden.csv Type: application/vnd.ms-excel Size: 82847 bytes Desc: not available URL: From donatas.malinauskas at lgt.lt Fri Jan 22 00:22:30 2010 From: donatas.malinauskas at lgt.lt (Donatas Malinauskas) Date: Fri, 22 Jan 2010 10:22:30 +0200 Subject: [mapserver-users] PHP mapscript recenter problem Message-ID: <4B596046.2070102@lgt.lt> HGood day, I have some problem. I want to recenter my map exactly to users given georeferenced coordinates. For that purpose I use php mapscript function - zoompoint(ZOOMFACTOR,$myXY, WIDTH, HEIGHT, EXTENT) with ZOOMFACTOR=1. But this function doesn't work correctly. ZoomPoint function centers map to rounded x,y position (then I have myX 235.5px and myY 330.42 it rounds to 235px, 330px) and moves map to incorect center coordinates. What should I do in this situation, please give me some advice, how recenter map with best precision. Thanks, Donatas. From sofia.bryntse at et.slu.se Fri Jan 22 00:55:59 2010 From: sofia.bryntse at et.slu.se (Fia) Date: Fri, 22 Jan 2010 00:55:59 -0800 (PST) Subject: [mapserver-users] Projection error, RT90 in MapServer Message-ID: <1264150559897-4438959.post@n2.nabble.com> Hello, I have a problem showing data in the former Swedish standard reference system RT90 2,5 gon V. The point is projected ~250 meters northwest of where it should be. I have used the projection parameters for MapServer from Spatialreference.org. The underlying map projection is SWEREF 99 TM (the new standard Swedish reference system), with the following projection parameters: PROJECTION 'proj=utm' 'zone=33' 'ellps=GRS80' 'towgs84=0,0,0,0,0,0,0' 'units=m' 'no_defs' END I have then tested to pinpoint an intersection, in both WGS-84 and RT90, but the RT90 point does not end up where it should be. I have double checked that the RT90 coordinates are correct by transforming them to WGS-84. See my attached screenshot. http://n2.nabble.com/file/n4438959/rt90_mapserver_error.jpg For the WGS-84 point I have the following projection parameters: PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' 'units=m' END And the RT90 point has: PROJECTION "proj=tmerc" "lat_0=0" "lon_0=15.80827777777778" "k=1" "x_0=1500000" "y_0=0" "ellps=bessel" "units=m" "no_defs" END I have also tried all the other RT90 projections provided by Spatialreference.org, just to see if any of them would work better, but without luck. Have I made a mistake somewhere, or are there any suggestions of why this error occurs? I'm out of ideas. Regards, Sofia -- View this message in context: http://n2.nabble.com/Projection-error-RT90-in-MapServer-tp4438959p4438959.html Sent from the Mapserver - User mailing list archive at Nabble.com. From alexandre.rodier at carm.es Fri Jan 22 01:32:15 2010 From: alexandre.rodier at carm.es (RODIER BATISSE, ALEXANDRE) Date: Fri, 22 Jan 2010 10:32:15 +0100 Subject: [mapserver-users] required parameters WMS not used in client request: How to resolve? Message-ID: <8DB813E500220E49824A37D46669749D83D4BF@CORREO06.carm.msda> Hi everybody, I am trying to resolve this problem: some wms client, like Arcgis 9.2, does not use some required wms parameters when it makes a request. Example: Arcgis does not use the FORMAT required parameter, from GetMap request, when I do a GetFeatureInfo request. So the question is: How can I configure Apache/Mapserver to parse the inner request and add forgot required parameters when the request is not complete? Must I configure httpd.conf file, add intermediate CGI program or other solution? Thanks a lot. Hola a todos, Estoy intentando resolver el siguiente problema: algunos clients sig, como Arcgis 9.2, no utilizan todos los par?metros requeridos cuando hacen una petici?n wms. Ejemplo: Arcgis no utiliza el par?metro FORMAT, de la petici?n GetMap incrustada, cuando hago una petici?n GetFeatureInfo. La cuesti?n es entonces: ?C?mo puedo configurar apache/mapserver para que se me chequee la petici?n de entrada y a?adir los par?metros necesarios cuando la petici?n no es completa. ?Tengo que actuar a nivel delfichero de configuraci?n de Apache, a?adir una interfaz intermedia de CGI u otra soluci?n? Muchas gracias. --------------------------------------------- Alexandre Rodier Asistencia T?cnica del SIGA Servicio de Informaci?n e Integraci?n Ambiental Direcci?n General de Patrimonio Natural y Biodiversidad Consejer?a de Agricultura y Agua. c/ Arquitecto Emilio Pi?ero, 1 Entresuelo C 30.007 Murcia Tel. 968246272 Correo-e: alexandre.rodier at carm.es http://www.carm.es/medioambiente --------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From kristian_frost7 at hotmail.com Fri Jan 22 01:47:42 2010 From: kristian_frost7 at hotmail.com (Frost89) Date: Fri, 22 Jan 2010 01:47:42 -0800 (PST) Subject: [mapserver-users] Raster layer as a way of branding Message-ID: <1264153662038-4439127.post@n2.nabble.com> Hi I was wondering if it's possible to generate a map with a raster layer/png in the bottom right corner? As a way of branding the map with our company logo. /Kristian -- View this message in context: http://n2.nabble.com/Raster-layer-as-a-way-of-branding-tp4439127p4439127.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bartvde at osgis.nl Fri Jan 22 01:51:56 2010 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Fri, 22 Jan 2010 10:51:56 +0100 (CET) Subject: [mapserver-users] required parameters WMS not used in client request: How to resolve? In-Reply-To: <8DB813E500220E49824A37D46669749D83D4BF@CORREO06.carm.msda> References: <8DB813E500220E49824A37D46669749D83D4BF@CORREO06.carm.msda> Message-ID: <3663.145.50.39.11.1264153916.squirrel@webmail.hostingdiscounter.nl> Hi, which version of Mapserver are you using, since this was fixed a long time ago (Mapserver was made less strict): http://trac.osgeo.org/mapserver/ticket/2517 Best regards, Bart > Hi everybody, > > > > I am trying to resolve this problem: some wms client, like Arcgis 9.2, > does not use some required wms parameters when it makes a request. > Example: Arcgis does not use the FORMAT required parameter, from GetMap > request, when I do a GetFeatureInfo request. > > > > So the question is: How can I configure Apache/Mapserver to parse the > inner request and add forgot required parameters when the request is not > complete? Must I configure httpd.conf file, add intermediate CGI program > or other solution? > > > > Thanks a lot. > > > > > > Hola a todos, > > > > Estoy intentando resolver el siguiente problema: algunos clients sig, como > Arcgis 9.2, no utilizan todos los par?metros requeridos cuando hacen una > petici?n wms. Ejemplo: Arcgis no utiliza el par?metro FORMAT, de la > petici?n GetMap incrustada, cuando hago una petici?n GetFeatureInfo. > > > > La cuesti?n es entonces: ?C?mo puedo configurar apache/mapserver para que > se me chequee la petici?n de entrada y a?adir los par?metros necesarios > cuando la petici?n no es completa. ?Tengo que actuar a nivel delfichero de > configuraci?n de Apache, a?adir una interfaz intermedia de CGI u otra > soluci?n? > > > > > > Muchas gracias. > > > > --------------------------------------------- > > Alexandre Rodier > > Asistencia T?cnica del SIGA > > > > Servicio de Informaci?n e Integraci?n Ambiental > Direcci?n General de Patrimonio Natural y Biodiversidad > Consejer?a de Agricultura y Agua. > c/ Arquitecto Emilio Pi?ero, 1 Entresuelo C > > 30.007 Murcia > > Tel. 968246272 > > Correo-e: alexandre.rodier at carm.es > > http://www.carm.es/medioambiente > > --------------------------------------------- > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From garynobles at yahoo.com Fri Jan 22 02:10:04 2010 From: garynobles at yahoo.com (Gazz1982) Date: Fri, 22 Jan 2010 02:10:04 -0800 (PST) Subject: [mapserver-users] GRASS GIS layers -help! Message-ID: <1264155004190-4439193.post@n2.nabble.com> I am using GRASS GIS with gdal and ogr support: mapserv -v MapServer version 5.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Mapserver works with no problems with shapefiles I tried to link to a GRASS layer using the following layer definition and it returned this error: msDrawMap(): Image handling error. Failed to draw layer named 'ex_area'. msShapefileOpen(): Unable to access file. (/var/www/grassdata/Keinsmerburg2/site_data/ex_area/1_polygon) msShapefileOpen(): Unable to access file. (/var/www/grassdata/Keinsmerburg2/site_data/ex_area/1_polygon) File permissions are set to www-data and are set to create and delete. Any ideas? I would be very grateful Gary LAYER NAME 'ex_area' TYPE POLYGON DUMP true TEMPLATE fooOnlyForWMSGetFeatureInfo EXTENT -30.311890 -1.325000 68.311890 54.325000 DATA '/var/www/grassdata/Keinsmerburg2/site_data/ex_area/1_polygon' METADATA 'ows_title' 'ex_area' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=sterea' 'lat_0=52.15616055555555' 'lon_0=5.38763888888889' 'k=0.9999079' 'x_0=155000' 'y_0=463000' 'ellps=bessel' 'units=m' 'no_defs' END CLASS NAME 'ex_area' STYLE SYMBOL 0 SIZE 7.0 OUTLINECOLOR 0 0 0 COLOR 64 113 156 END END END -- View this message in context: http://n2.nabble.com/GRASS-GIS-layers-help-tp4439193p4439193.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Fri Jan 22 02:16:40 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 22 Jan 2010 12:16:40 +0200 Subject: [mapserver-users] Projection error, RT90 in MapServer In-Reply-To: <1264150559897-4438959.post@n2.nabble.com> References: <1264150559897-4438959.post@n2.nabble.com> Message-ID: Hi, Have you tried adding 'towgs84=0,0,0,0,0,0,0' also to RT90 definitions? -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Fia > L?hetetty: 22. tammikuuta 2010 10:56 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Projection error, RT90 in MapServer > > > Hello, > > I have a problem showing data in the former Swedish standard reference > system RT90 2,5 gon V. The point is projected ~250 meters > northwest of where > it should be. I have used the projection parameters for MapServer from > Spatialreference.org. > > The underlying map projection is SWEREF 99 TM (the new > standard Swedish > reference system), with the following projection parameters: > PROJECTION > 'proj=utm' > 'zone=33' > 'ellps=GRS80' > 'towgs84=0,0,0,0,0,0,0' > 'units=m' > 'no_defs' > END > > I have then tested to pinpoint an intersection, in both > WGS-84 and RT90, but > the RT90 point does not end up where it should be. I have > double checked > that the RT90 coordinates are correct by transforming them to > WGS-84. See my > attached screenshot. > http://n2.nabble.com/file/n4438959/rt90_mapserver_error.jpg > > For the WGS-84 point I have the following projection parameters: > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > 'units=m' > END > > And the RT90 point has: > PROJECTION > "proj=tmerc" > "lat_0=0" > "lon_0=15.80827777777778" > "k=1" > "x_0=1500000" > "y_0=0" > "ellps=bessel" > "units=m" > "no_defs" > END > > I have also tried all the other RT90 projections provided by > Spatialreference.org, just to see if any of them would work > better, but > without luck. > > Have I made a mistake somewhere, or are there any suggestions > of why this > error occurs? I'm out of ideas. > > Regards, > Sofia > -- > View this message in context: > http://n2.nabble.com/Projection-error-RT90-in-MapServer-tp4438 > 959p4438959.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 alexandre.rodier at carm.es Fri Jan 22 02:19:49 2010 From: alexandre.rodier at carm.es (RODIER BATISSE, ALEXANDRE) Date: Fri, 22 Jan 2010 11:19:49 +0100 Subject: [mapserver-users] required parameters WMS not used in client request: How to resolve? In-Reply-To: <3663.145.50.39.11.1264153916.squirrel@webmail.hostingdiscounter.nl> References: <8DB813E500220E49824A37D46669749D83D4BF@CORREO06.carm.msda> <3663.145.50.39.11.1264153916.squirrel@webmail.hostingdiscounter.nl> Message-ID: <8DB813E500220E49824A37D46669749D83D4C6@CORREO06.carm.msda> Hi Bart, We use 5.0.0. So we Hill upgrade it. Thanks. -----Mensaje original----- De: bartvde at osgis.nl [mailto:bartvde at osgis.nl] Enviado el: viernes, 22 de enero de 2010 10:52 Para: RODIER BATISSE, ALEXANDRE CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] required parameters WMS not used in client request: How to resolve? Hi, which version of Mapserver are you using, since this was fixed a long time ago (Mapserver was made less strict): http://trac.osgeo.org/mapserver/ticket/2517 Best regards, Bart > Hi everybody, > > > > I am trying to resolve this problem: some wms client, like Arcgis 9.2, > does not use some required wms parameters when it makes a request. > Example: Arcgis does not use the FORMAT required parameter, from GetMap > request, when I do a GetFeatureInfo request. > > > > So the question is: How can I configure Apache/Mapserver to parse the > inner request and add forgot required parameters when the request is not > complete? Must I configure httpd.conf file, add intermediate CGI program > or other solution? > > > > Thanks a lot. > > > > > > Hola a todos, > > > > Estoy intentando resolver el siguiente problema: algunos clients sig, como > Arcgis 9.2, no utilizan todos los par?metros requeridos cuando hacen una > petici?n wms. Ejemplo: Arcgis no utiliza el par?metro FORMAT, de la > petici?n GetMap incrustada, cuando hago una petici?n GetFeatureInfo. > > > > La cuesti?n es entonces: ?C?mo puedo configurar apache/mapserver para que > se me chequee la petici?n de entrada y a?adir los par?metros necesarios > cuando la petici?n no es completa. ?Tengo que actuar a nivel delfichero de > configuraci?n de Apache, a?adir una interfaz intermedia de CGI u otra > soluci?n? > > > > > > Muchas gracias. > > > > --------------------------------------------- > > Alexandre Rodier > > Asistencia T?cnica del SIGA > > > > Servicio de Informaci?n e Integraci?n Ambiental > Direcci?n General de Patrimonio Natural y Biodiversidad > Consejer?a de Agricultura y Agua. > c/ Arquitecto Emilio Pi?ero, 1 Entresuelo C > > 30.007 Murcia > > Tel. 968246272 > > Correo-e: alexandre.rodier at carm.es > > http://www.carm.es/medioambiente > > --------------------------------------------- > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From kristian_frost7 at hotmail.com Fri Jan 22 02:27:44 2010 From: kristian_frost7 at hotmail.com (Frost89) Date: Fri, 22 Jan 2010 02:27:44 -0800 (PST) Subject: [mapserver-users] Re: PNG24 problem in IE6 In-Reply-To: <46b388481001170344j1e884f41q592408e1c99d986d@mail.gmail.com> References: <46b388481001170344j1e884f41q592408e1c99d986d@mail.gmail.com> Message-ID: <1264156064021-4439253.post@n2.nabble.com> You can try this: http://www.twinhelix.com/css/iepngfix/ http://www.twinhelix.com/css/iepngfix/ . -- View this message in context: http://n2.nabble.com/PNG24-problem-in-IE6-tp4408017p4439253.html Sent from the Mapserver - User mailing list archive at Nabble.com. From SSchantz at BfS.de Fri Jan 22 03:13:53 2010 From: SSchantz at BfS.de (Stefan Schantz) Date: Fri, 22 Jan 2010 12:13:53 +0100 Subject: [mapserver-users] VRT / CSV data sources are not displayed in a layer In-Reply-To: References: <4B5721FC.60608@BfS.de> <931f8ea91001211749m39b71d1ap73f08c35d350b224@mail.gmail.com> <4B5959DD.8030906@BfS.de> Message-ID: <4B598871.4050007@BfS.de> Hi Greg, thank you! The issue was the two blanks ahead the coordinates. After I have removed them, the mapserver visualized the csv-file. Nevertheless, I don't understand, why ogr2ogr could read and transform the csv-file, but this is a different issue... Thanks! Stefan greg.luker at scu.edu.au schrieb: > Hi Stefan, > > I'm not an expert, but I see 2 things that I have found might produce > problems: > > > > x-utm,y-utm,Wert > > Try renaiming your fields without hyphens ie > xutm,yutm,wert > and > encoding="PointFromColumns" x="xutm" y="yutm"/> > > and remove the decimal point and convert to non-scientific number: > > > > 742226., 5374978., 0.00E+00 > > try: > 742226, 5374978,0 > > Does that help any? > > Thanks, > Greg. > > Greg Luker > GIS Lab Manager > Southern Cross University > Australia > 61 2 66203026 > From martijnvanderpauw at gmail.com Fri Jan 22 03:43:52 2010 From: martijnvanderpauw at gmail.com (Martijn van der pauw) Date: Fri, 22 Jan 2010 12:43:52 +0100 Subject: [mapserver-users] mapserver using grib file Message-ID: <65be3691001220343y2e70b85cue2c5a824b82c3af2@mail.gmail.com> Hello, I have searched quite long for good documentation and a working example of a mapserver mapfile that uses a GRIB file. I need it to present meteorological data on the map. I didn't find it. Can somebody help me with that? Martijn -------------- next part -------------- An HTML attachment was scrubbed... URL: From wostok at o2.pl Fri Jan 22 03:48:28 2010 From: wostok at o2.pl (wostok) Date: Fri, 22 Jan 2010 03:48:28 -0800 (PST) Subject: [mapserver-users] mapscript - getting square map image from rectangular piece of space Message-ID: <1264160908186-4439575.post@n2.nabble.com> Hello, I am using mapscript to obtain square map image from rectangular piece of space with method zoomPoint, but returned image isn't transformed. It's cropped not coarcted. I need something like gives wms request with BBOX=-180,-90,180,90 and WIDTH=300&HEIGHT=300. How the parameters to the zoomPoint, zoomRectangle or zoomScale should be passed to coarct map piece? Thanks in advance wostok -- View this message in context: http://n2.nabble.com/mapscript-getting-square-map-image-from-rectangular-piece-of-space-tp4439575p4439575.html Sent from the Mapserver - User mailing list archive at Nabble.com. From b.veldkamp at zonnet.nl Fri Jan 22 04:22:26 2010 From: b.veldkamp at zonnet.nl (Berend Veldkamp) Date: Fri, 22 Jan 2010 13:22:26 +0100 Subject: [mapserver-users] queryByAttributes syntax Message-ID: <57fc60331001220422y87a3498rf3f64dd4206e611e@mail.gmail.com> Hi, Where can I find more information about the queryByAttributes() function? I found http://mapserver.org/mapscript/php/index.html#layerobj-class , but it is not very detailed. By trial and error I found that for a PostGIS layer, I should use this syntax: layer.queryByAttributes(map, null, "myfield='searchValue'", mapscript.MS_MULTIPLE); but for shapefiles, it seems it should be: layer.queryByAttributes(map, "myfield", "searchValue", mapscript.MS_MULTIPLE); I am trying to write some generic code, but that's hard if there is no single way to call this method. Also, I haven't found a way yet to do a partial match on a shapefile (PostGIS supports 'LIKE') Regards, Berend Veldkamp -------------- next part -------------- An HTML attachment was scrubbed... URL: From ibrahimsaricicek at gmail.com Fri Jan 22 05:22:27 2010 From: ibrahimsaricicek at gmail.com (ibrahimsaricicek) Date: Fri, 22 Jan 2010 05:22:27 -0800 (PST) Subject: [mapserver-users] No bound at the line end Message-ID: <1264166547090-4439927.post@n2.nabble.com> Hi all; I use for road segments and for segment borders; STYLE OUTLINECOLOR 25 25 25 WIDTH 3 ANTIALIAS TRUE END STYLE OUTLINECOLOR 255 225 5 WIDTH 2 ANTIALIAS TRUE END Is there a way for not to define border at the line end? There is a Google Street Ex. on the screenshot... Regards IBO... http://n2.nabble.com/file/n4439927/line_end.jpg -- View this message in context: http://n2.nabble.com/No-bound-at-the-line-end-tp4439927p4439927.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aboudreault at mapgears.com Fri Jan 22 06:00:37 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Fri, 22 Jan 2010 09:00:37 -0500 Subject: [mapserver-users] PHP mapscript recenter problem In-Reply-To: <4B596046.2070102@lgt.lt> References: <4B596046.2070102@lgt.lt> Message-ID: <201001220900.37314.aboudreault@mapgears.com> Donatas, The x,y given to the zoomPoint function are in PIXEL, not lonlat. You cannot specify a half pixel. That said, pixel are integers, not double. Alan On January 22, 2010 03:22:30 am Donatas Malinauskas wrote: > HGood day, > > I have some problem. I want to recenter my map exactly to users given > georeferenced coordinates. For that purpose I use php mapscript function > - zoompoint(ZOOMFACTOR,$myXY, WIDTH, HEIGHT, EXTENT) with ZOOMFACTOR=1. > But this function doesn't work correctly. ZoomPoint function centers map > to rounded x,y position (then I have myX 235.5px and myY 330.42 it > rounds to 235px, 330px) and moves map to incorect center coordinates. > What should I do in this situation, please give me some advice, how > recenter map with best precision. > > Thanks, > Donatas. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alan Boudreault Mapgears http://www.mapgears.com From Sofia.Bryntse at et.slu.se Fri Jan 22 06:09:54 2010 From: Sofia.Bryntse at et.slu.se (Sofia Bryntse) Date: Fri, 22 Jan 2010 15:09:54 +0100 Subject: SV: [mapserver-users] Projection error, RT90 in MapServer In-Reply-To: References: <1264150559897-4438959.post@n2.nabble.com>, Message-ID: <174756CAB7FFB043BA2A4FEC7E579F6895C207B037@exmbx3.ad.slu.se> Hi Jukka, Thank you, I tried adding your line to my RT90 projection parameter list now, but it didn't help. The point moved 50 meters or so, but not in the right direction. (See attached screenshot.) Regards, Sofia ________________________________________ Fr?n: Rahkonen Jukka [Jukka.Rahkonen at mmmtike.fi] Skickat: den 22 januari 2010 11:16 Till: Sofia Bryntse; mapserver-users at lists.osgeo.org ?mne: Re: [mapserver-users] Projection error, RT90 in MapServer Hi, Have you tried adding 'towgs84=0,0,0,0,0,0,0' also to RT90 definitions? -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Fia > L?hetetty: 22. tammikuuta 2010 10:56 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Projection error, RT90 in MapServer > > > Hello, > > I have a problem showing data in the former Swedish standard reference > system RT90 2,5 gon V. The point is projected ~250 meters > northwest of where > it should be. I have used the projection parameters for MapServer from > Spatialreference.org. > > The underlying map projection is SWEREF 99 TM (the new > standard Swedish > reference system), with the following projection parameters: > PROJECTION > 'proj=utm' > 'zone=33' > 'ellps=GRS80' > 'towgs84=0,0,0,0,0,0,0' > 'units=m' > 'no_defs' > END > > I have then tested to pinpoint an intersection, in both > WGS-84 and RT90, but > the RT90 point does not end up where it should be. I have > double checked > that the RT90 coordinates are correct by transforming them to > WGS-84. See my > attached screenshot. > http://n2.nabble.com/file/n4438959/rt90_mapserver_error.jpg > > For the WGS-84 point I have the following projection parameters: > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > 'units=m' > END > > And the RT90 point has: > PROJECTION > "proj=tmerc" > "lat_0=0" > "lon_0=15.80827777777778" > "k=1" > "x_0=1500000" > "y_0=0" > "ellps=bessel" > "units=m" > "no_defs" > END > > I have also tried all the other RT90 projections provided by > Spatialreference.org, just to see if any of them would work > better, but > without luck. > > Have I made a mistake somewhere, or are there any suggestions > of why this > error occurs? I'm out of ideas. > > Regards, > Sofia > -- > View this message in context: > http://n2.nabble.com/Projection-error-RT90-in-MapServer-tp4438 > 959p4438959.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 -------------- A non-text attachment was scrubbed... Name: rt90_towgs84.JPG Type: image/jpeg Size: 25291 bytes Desc: rt90_towgs84.JPG URL: From Jukka.Rahkonen at mmmtike.fi Fri Jan 22 07:06:36 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 22 Jan 2010 17:06:36 +0200 Subject: [mapserver-users] Projection error, RT90 in MapServer References: <1264150559897-4438959.post@n2.nabble.com>, <174756CAB7FFB043BA2A4FEC7E579F6895C207B037@exmbx3.ad.slu.se> Message-ID: Hi, How about these parameters? "+proj=tmerc +lat_0=0 +lon_0=15.80827777777778 +k=1 +x_0=1500000 +y_0=0 +ellps=bessel +units=m +towgs84=414.0978567149,41.3381489658,603.0627177516,-0.8550434314,2.1413465,-7.0227209516,0 +no_defs" Taken from http://www.zonefivesoftware.com/SportTracks/Forums/viewtopic.php?t=3543&postdays=0&postorder=asc&start=25 By the way, I suppose the unint in your WGS84 definition are wrong. Maybe you do not need the line at all. > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > 'units=m' > END -Jukka- -----Alkuper?inen viesti----- L?hett?j?: Sofia Bryntse [mailto:Sofia.Bryntse at et.slu.se] L?hetetty: pe 22.1.2010 16:09 Vastaanottaja: Rahkonen Jukka; mapserver-users at lists.osgeo.org Aihe: SV: [mapserver-users] Projection error, RT90 in MapServer Hi Jukka, Thank you, I tried adding your line to my RT90 projection parameter list now, but it didn't help. The point moved 50 meters or so, but not in the right direction. (See attached screenshot.) Regards, Sofia ________________________________________ Fr?n: Rahkonen Jukka [Jukka.Rahkonen at mmmtike.fi] Skickat: den 22 januari 2010 11:16 Till: Sofia Bryntse; mapserver-users at lists.osgeo.org ?mne: Re: [mapserver-users] Projection error, RT90 in MapServer Hi, Have you tried adding 'towgs84=0,0,0,0,0,0,0' also to RT90 definitions? -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Fia > L?hetetty: 22. tammikuuta 2010 10:56 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Projection error, RT90 in MapServer > > > Hello, > > I have a problem showing data in the former Swedish standard reference > system RT90 2,5 gon V. The point is projected ~250 meters > northwest of where > it should be. I have used the projection parameters for MapServer from > Spatialreference.org. > > The underlying map projection is SWEREF 99 TM (the new > standard Swedish > reference system), with the following projection parameters: > PROJECTION > 'proj=utm' > 'zone=33' > 'ellps=GRS80' > 'towgs84=0,0,0,0,0,0,0' > 'units=m' > 'no_defs' > END > > I have then tested to pinpoint an intersection, in both > WGS-84 and RT90, but > the RT90 point does not end up where it should be. I have > double checked > that the RT90 coordinates are correct by transforming them to > WGS-84. See my > attached screenshot. > http://n2.nabble.com/file/n4438959/rt90_mapserver_error.jpg > > For the WGS-84 point I have the following projection parameters: > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > 'units=m' > END > > And the RT90 point has: > PROJECTION > "proj=tmerc" > "lat_0=0" > "lon_0=15.80827777777778" > "k=1" > "x_0=1500000" > "y_0=0" > "ellps=bessel" > "units=m" > "no_defs" > END > > I have also tried all the other RT90 projections provided by > Spatialreference.org, just to see if any of them would work > better, but > without luck. > > Have I made a mistake somewhere, or are there any suggestions > of why this > error occurs? I'm out of ideas. > > Regards, > Sofia > -- > View this message in context: > http://n2.nabble.com/Projection-error-RT90-in-MapServer-tp4438 > 959p4438959.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 David.Fawcett at state.mn.us Fri Jan 22 07:47:39 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Fri, 22 Jan 2010 09:47:39 -0600 Subject: [mapserver-users] Raster layer as a way of branding In-Reply-To: <1264153662038-4439127.post@n2.nabble.com> References: <1264153662038-4439127.post@n2.nabble.com> Message-ID: This example should help: http://mapserver.org/faq.html#how-do-i-add-a-copyright-notice-on-the-corner-of-my-map David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Frost89 Sent: Friday, January 22, 2010 3:48 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Raster layer as a way of branding Hi I was wondering if it's possible to generate a map with a raster layer/png in the bottom right corner? As a way of branding the map with our company logo. /Kristian -- View this message in context: http://n2.nabble.com/Raster-layer-as-a-way-of-branding-tp4439127p4439127.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 dmorissette at mapgears.com Fri Jan 22 08:29:32 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 22 Jan 2010 11:29:32 -0500 Subject: [mapserver-users] PHP layer->updateFromString problem setting type and symbol name In-Reply-To: <582828.59200.qm@web113519.mail.gq1.yahoo.com> References: <582828.59200.qm@web113519.mail.gq1.yahoo.com> Message-ID: <4B59D26C.3080306@mapgears.com> Sounds like a bug to me. Could you please file a ticket in Trac (http://trac.osgeo.org/mapserver/) about this under the "MapScript-PHP" component and one of us will have a look? Daniel Joe Franklin wrote: > I really like the updateFromString functions in Mapserver Mapscript. I've > eliminated my .map files, instead storing the layer definitions in a database and drawing them on-demand using PHP. However, I've found a few values ($layer->type and $style->symbolname) that aren't correctly set using Mapserver 5.6.1 (also tried 5.4.2). Here's an example: > > $mapDef="MAP > NAME 'test' > SIZE 400 400 > EXTENT 0 0 100 100 > END > "; > > $layerDef="LAYER > NAME 'Airports' > STATUS ON > TYPE point > FEATURE POINTS 10 10 50 50 1 50 70 10 END END > CLASS > STYLE > SYMBOL 'airport.gif' > END > END > END"; > > $oMap = ms_newMapObjFromString($mapDef); > $oLayer=ms_newLayerObj($oMap); > $oLayer->updateFromString($layerDef); > //First problem: returns -1 > //echo $oLayer->type; > //$oLayer->set("type",MS_LAYER_POINT); > > //Second problem is that the symbol gif isn't used > //unless it is explicitly set again below > //$cls = $oLayer->getClass(0); > //$style = $cls->getStyle(0); > //if($style->symbolname!='')$style->set("symbolname",$style->symbolname); > $oMap->selectOutputFormat('gif'); > $img = $oMap->draw(); > $img->saveImage("output.gif"); > ?> > > > > _______________________________________________ > 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 dmorissette at mapgears.com Fri Jan 22 08:45:19 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 22 Jan 2010 11:45:19 -0500 Subject: [mapserver-users] GRASS GIS layers -help! In-Reply-To: <1264155004190-4439193.post@n2.nabble.com> References: <1264155004190-4439193.post@n2.nabble.com> Message-ID: <4B59D61F.8090808@mapgears.com> Gary, With POINT/LINE/POLYGON layer types, MapServer tries to open the DATA as shapefiles by default, that's why you get that error message. Assuming your GDAL/OGR is built with GRASS support, then you should use "CONNECTIONTYPE OGR" in your layer definition, and specify the path to the dataset in the CONNECTION parameter. More info on CONNECTIONTYPE OGR is available at: http://mapserver.org/input/vector/ogr.html Daniel Gazz1982 wrote: > I am using GRASS GIS with gdal and ogr support: > > mapserv -v > MapServer version 5.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS > SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Mapserver works with no problems with shapefiles > > I tried to link to a GRASS layer using the following layer definition and it > returned this error: > msDrawMap(): Image handling error. Failed to draw layer named 'ex_area'. > msShapefileOpen(): Unable to access file. > (/var/www/grassdata/Keinsmerburg2/site_data/ex_area/1_polygon) > msShapefileOpen(): Unable to access file. > (/var/www/grassdata/Keinsmerburg2/site_data/ex_area/1_polygon) > > File permissions are set to www-data and are set to create and delete. > > Any ideas? I would be very grateful > Gary > > LAYER > NAME 'ex_area' > TYPE POLYGON > DUMP true > TEMPLATE fooOnlyForWMSGetFeatureInfo > EXTENT -30.311890 -1.325000 68.311890 54.325000 > DATA '/var/www/grassdata/Keinsmerburg2/site_data/ex_area/1_polygon' > METADATA > 'ows_title' 'ex_area' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'proj=sterea' > 'lat_0=52.15616055555555' > 'lon_0=5.38763888888889' > 'k=0.9999079' > 'x_0=155000' > 'y_0=463000' > 'ellps=bessel' > 'units=m' > 'no_defs' > END > CLASS > NAME 'ex_area' > STYLE > SYMBOL 0 > SIZE 7.0 > OUTLINECOLOR 0 0 0 > COLOR 64 113 156 > END > END > END -- Daniel Morissette http://www.mapgears.com/ From Steve.Lime at state.mn.us Fri Jan 22 11:09:07 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 22 Jan 2010 13:09:07 -0600 Subject: [mapserver-users] queryByAttributes syntax In-Reply-To: <57fc60331001220422y87a3498rf3f64dd4206e611e@mail.gmail.com> References: <57fc60331001220422y87a3498rf3f64dd4206e611e@mail.gmail.com> Message-ID: There's a single way to call the method, it's that you don't always have to supply the query item. The method signature is queryByAttributes (map (mapObj, qitem (string), qstring (string), mode (int)); The qstring is given in a format compatible with the underlying driver. For the database drivers it's basically a where-clause. For others you use MapServer expression syntax. Some expression types (e.g. string matches or regex) require the qitem. To do a partial match you could use a regex, for example: layer.queryByAttributes(map, "myfield", "/myregex/", mapscript.MS_MULTIPLE); Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Berend Veldkamp Sent: Friday, January 22, 2010 6:22 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] queryByAttributes syntax Hi, Where can I find more information about the queryByAttributes() function? I found http://mapserver.org/mapscript/php/index.html#layerobj-class , but it is not very detailed. By trial and error I found that for a PostGIS layer, I should use this syntax: layer.queryByAttributes(map, null, "myfield='searchValue'", mapscript.MS_MULTIPLE); but for shapefiles, it seems it should be: layer.queryByAttributes(map, "myfield", "searchValue", mapscript.MS_MULTIPLE); I am trying to write some generic code, but that's hard if there is no single way to call this method. Also, I haven't found a way yet to do a partial match on a shapefile (PostGIS supports 'LIKE') Regards, Berend Veldkamp -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Fri Jan 22 13:11:21 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 22 Jan 2010 23:11:21 +0200 Subject: [mapserver-users] Raster layer as a way of branding References: <1264153662038-4439127.post@n2.nabble.com> Message-ID: Hi, But I understood that the aim is to burn a logo from an image file in png format into output map, not a plain text annotation. Is that possible? -Jukka Rahkonen- Fawcett, David wrote: > This example should help: http://mapserver.org/faq.html#how-do-i-add-a-copyright-notice-on-the-corner-of-my-map > David. > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Frost89 > Sent: Friday, January 22, 2010 3:48 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Raster layer as a way of branding > Hi > I was wondering if it's possible to generate a map with a raster layer/png in the bottom right corner? As a way of branding the map with our company logo. /Kristian -- View this message in context: http://n2.nabble.com/Raster-layer-as-a-way-of-branding-tp4439127p4439127.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 Steve.Lime at state.mn.us Fri Jan 22 13:34:42 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 22 Jan 2010 15:34:42 -0600 Subject: [mapserver-users] Raster layer as a way of branding In-Reply-To: References: <1264153662038-4439127.post@n2.nabble.com> Message-ID: Sure, that's possible too. Just use the image in question as a symbol (e.g. SYMBOL 'mylogo.png') and the same strategy should work. # place a logo in the lower right corner LAYER NAME 'logo' TYPE POINT STATUS DEFAULT TRANSFORM LR FEATURE POINTS -10 10 END END CLASS STYLE SYMBOL 'mylogo.png' END END END Or something close to this... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Friday, January 22, 2010 3:11 PM To: Fawcett, David (MPCA); Frost89; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Raster layer as a way of branding Hi, But I understood that the aim is to burn a logo from an image file in png format into output map, not a plain text annotation. Is that possible? -Jukka Rahkonen- Fawcett, David wrote: > This example should help: http://mapserver.org/faq.html#how-do-i-add-a-copyright-notice-on-the-corner-of-my-map > David. > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Frost89 > Sent: Friday, January 22, 2010 3:48 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Raster layer as a way of branding > Hi > I was wondering if it's possible to generate a map with a raster layer/png in the bottom right corner? As a way of branding the map with our company logo. /Kristian -- View this message in context: http://n2.nabble.com/Raster-layer-as-a-way-of-branding-tp4439127p4439127.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 jmckenna at gatewaygeomatics.com Fri Jan 22 13:47:44 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 22 Jan 2010 17:47:44 -0400 Subject: [mapserver-users] Raster layer as a way of branding In-Reply-To: References: <1264153662038-4439127.post@n2.nabble.com> Message-ID: <4B5A1D00.3010409@gatewaygeomatics.com> Lime, Steve D (DNR) wrote: > Sure, that's possible too. Just use the image in question as a symbol (e.g. SYMBOL 'mylogo.png') and the same > strategy should work. > > # place a logo in the lower right corner > LAYER > NAME 'logo' > TYPE POINT > STATUS DEFAULT > TRANSFORM LR > FEATURE POINTS -10 10 END END > CLASS > STYLE SYMBOL 'mylogo.png' END > END > END > > Or something close to this... > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka > Sent: Friday, January 22, 2010 3:11 PM > To: Fawcett, David (MPCA); Frost89; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Raster layer as a way of branding > > Hi, > > But I understood that the aim is to burn a logo from an image file in png format into output map, not a plain text annotation. Is that possible? > > -Jukka Rahkonen- > > Fawcett, David wrote: > > >> This example should help: http://mapserver.org/faq.html#how-do-i-add-a-copyright-notice-on-the-corner-of-my-map > >> David. > >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Frost89 >> Sent: Friday, January 22, 2010 3:48 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] Raster layer as a way of branding > > >> Hi >> I was wondering if it's possible to generate a map with a raster layer/png > in the bottom right corner? As a way of branding the map with our company > logo. > /Kristian Steve beat me to it, but I would follow the FAQ example and just add in a symbol: LAYER NAME "copyright" STATUS ON TYPE point TRANSFORM ll #set the image origin to be lower left FEATURE POINTS 60 -10 #set the offset from lower left position in pixels END #TEXT "? xyz company 2006" #this is your displaying text END CLASS STYLE SYMBOL '../etc/mylogo.gif' END END UNITS PIXELS #sets the units for the feature object END -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From m.sirin07 at googlemail.com Sat Jan 23 04:53:46 2010 From: m.sirin07 at googlemail.com (Mehmet Sirin) Date: Sat, 23 Jan 2010 13:53:46 +0100 Subject: [mapserver-users] Sql-Filter via URL Message-ID: <55744b1c1001230453h55760cb2q8dd0659cd13e61e0@mail.gmail.com> Hi, I would like to make some user specific sql-queries via url. The Data line in the mapfile looks like: DATA "geom from (select st_setsrid(the_geom,900913) as geom, gid from ways where gid in (3137, 3138, 3139) ) as a using unique gid using srid=900913" "gid" are parts of a street. These parts are chosen by the user in the html-website. After that the sql-query have to be changed in mapfile. But how to do that? regards m.sirin LAYER SYMBOLSCALE 50000 NAME 'street' # Layer-Name, der in OpenLayers aufgerufen wird TYPE LINE STATUS DEFAULT CONNECTIONTYPE postgis # Verbindung zur PostGIS-Datenbank CONNECTION "user=xxx password=xxx dbname=routing host=localhost port=5432" DATA "geom from (select st_setsrid(the_geom,900913) as geom, gid from ways where gid in (3137, 3138, 3139) ) as a using unique gid using srid=900913" CLASSITEM 'gid' DUMP TRUE CLASS STYLE SYMBOL 'circle' SIZE 9 MINSIZE 9 MAXSIZE 15 COLOR 0 0 200 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Sat Jan 23 05:59:17 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 23 Jan 2010 09:59:17 -0400 Subject: [mapserver-users] Sql-Filter via URL In-Reply-To: <55744b1c1001230453h55760cb2q8dd0659cd13e61e0@mail.gmail.com> References: <55744b1c1001230453h55760cb2q8dd0659cd13e61e0@mail.gmail.com> Message-ID: <4B5B00B5.3000508@gatewaygeomatics.com> Mehmet Sirin wrote: > Hi, > > I would like to make some user specific sql-queries via url. > The Data line in the mapfile looks like: > DATA "geom from (select st_setsrid(the_geom,900913) as geom, gid from > ways where gid in (3137, 3138, 3139) ) as a using unique gid using > srid=900913" > > "gid" are parts of a street. These parts are chosen by the user in the > html-website. After that the sql-query have to be changed in mapfile. > But how to do that? > > > > regards > m.sirin > > > LAYER > SYMBOLSCALE 50000 > NAME 'street' # Layer-Name, der in OpenLayers > aufgerufen wird > TYPE LINE > STATUS DEFAULT > > CONNECTIONTYPE postgis # Verbindung zur PostGIS-Datenbank > CONNECTION "user=xxx password=xxx dbname=routing host=localhost > port=5432" > DATA "geom from (select st_setsrid(the_geom,900913) as geom, gid > from ways where gid in (3137, 3138, 3139) ) as a using unique gid using > srid=900913" > > CLASSITEM 'gid' > DUMP TRUE > CLASS > STYLE > SYMBOL 'circle' > SIZE 9 > MINSIZE 9 > MAXSIZE 15 > COLOR 0 0 200 > END > END > END > > I quickly searched the MapServer archives for this (http://n2.nabble.com/MapServer-f1969210.html), and one of the results seem to be applicable (http://n2.nabble.com/Dynamin-SQL-with-mapserver-CGI-td2208281.html - try the FILTER parameter. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From Sofia.Bryntse at et.slu.se Sat Jan 23 12:36:32 2010 From: Sofia.Bryntse at et.slu.se (Sofia Bryntse) Date: Sat, 23 Jan 2010 21:36:32 +0100 Subject: SV: [mapserver-users] Projection error, RT90 in MapServer In-Reply-To: References: <1264150559897-4438959.post@n2.nabble.com>, <174756CAB7FFB043BA2A4FEC7E579F6895C207B037@exmbx3.ad.slu.se>, Message-ID: <174756CAB7FFB043BA2A4FEC7E579F6895C207B03D@exmbx3.ad.slu.se> Hi Jukka, Wonderful! You fixed the problem, thank you very much! This solution saves me hours of work. :) And you are right about the 'units=m' in the wgs84 projection, it works fine without it. Regards, Sofia ________________________________________ Fr?n: Rahkonen Jukka [Jukka.Rahkonen at mmmtike.fi] Skickat: den 22 januari 2010 16:06 Till: Sofia Bryntse; mapserver-users at lists.osgeo.org ?mne: Re: [mapserver-users] Projection error, RT90 in MapServer Hi, How about these parameters? "+proj=tmerc +lat_0=0 +lon_0=15.80827777777778 +k=1 +x_0=1500000 +y_0=0 +ellps=bessel +units=m +towgs84=414.0978567149,41.3381489658,603.0627177516,-0.8550434314,2.1413465,-7.0227209516,0 +no_defs" Taken from http://www.zonefivesoftware.com/SportTracks/Forums/viewtopic.php?t=3543&postdays=0&postorder=asc&start=25 By the way, I suppose the unint in your WGS84 definition are wrong. Maybe you do not need the line at all. > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > 'units=m' > END -Jukka- -----Alkuper?inen viesti----- L?hett?j?: Sofia Bryntse [mailto:Sofia.Bryntse at et.slu.se] L?hetetty: pe 22.1.2010 16:09 Vastaanottaja: Rahkonen Jukka; mapserver-users at lists.osgeo.org Aihe: SV: [mapserver-users] Projection error, RT90 in MapServer Hi Jukka, Thank you, I tried adding your line to my RT90 projection parameter list now, but it didn't help. The point moved 50 meters or so, but not in the right direction. (See attached screenshot.) Regards, Sofia ________________________________________ Fr?n: Rahkonen Jukka [Jukka.Rahkonen at mmmtike.fi] Skickat: den 22 januari 2010 11:16 Till: Sofia Bryntse; mapserver-users at lists.osgeo.org ?mne: Re: [mapserver-users] Projection error, RT90 in MapServer Hi, Have you tried adding 'towgs84=0,0,0,0,0,0,0' also to RT90 definitions? -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Fia > L?hetetty: 22. tammikuuta 2010 10:56 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Projection error, RT90 in MapServer > > > Hello, > > I have a problem showing data in the former Swedish standard reference > system RT90 2,5 gon V. The point is projected ~250 meters > northwest of where > it should be. I have used the projection parameters for MapServer from > Spatialreference.org. > > The underlying map projection is SWEREF 99 TM (the new > standard Swedish > reference system), with the following projection parameters: > PROJECTION > 'proj=utm' > 'zone=33' > 'ellps=GRS80' > 'towgs84=0,0,0,0,0,0,0' > 'units=m' > 'no_defs' > END > > I have then tested to pinpoint an intersection, in both > WGS-84 and RT90, but > the RT90 point does not end up where it should be. I have > double checked > that the RT90 coordinates are correct by transforming them to > WGS-84. See my > attached screenshot. > http://n2.nabble.com/file/n4438959/rt90_mapserver_error.jpg > > For the WGS-84 point I have the following projection parameters: > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > 'units=m' > END > > And the RT90 point has: > PROJECTION > "proj=tmerc" > "lat_0=0" > "lon_0=15.80827777777778" > "k=1" > "x_0=1500000" > "y_0=0" > "ellps=bessel" > "units=m" > "no_defs" > END > > I have also tried all the other RT90 projections provided by > Spatialreference.org, just to see if any of them would work > better, but > without luck. > > Have I made a mistake somewhere, or are there any suggestions > of why this > error occurs? I'm out of ideas. > > Regards, > Sofia > -- > View this message in context: > http://n2.nabble.com/Projection-error-RT90-in-MapServer-tp4438 > 959p4438959.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 -------------- A non-text attachment was scrubbed... Name: rt90_fixed.JPG Type: image/jpeg Size: 19113 bytes Desc: rt90_fixed.JPG URL: From wal3 at mindspring.com Sat Jan 23 15:30:18 2010 From: wal3 at mindspring.com (Worth Lutz) Date: Sat, 23 Jan 2010 18:30:18 -0500 Subject: [mapserver-users] queryByAttributes syntax In-Reply-To: <57fc60331001220422y87a3498rf3f64dd4206e611e@mail.gmail.com> References: <57fc60331001220422y87a3498rf3f64dd4206e611e@mail.gmail.com> Message-ID: <0A6905B29C094094AF2644581A78C462@Worthlaptop> I use the layer.connectiontype to adjust my query calls. Connection Types MS_INLINE, MS_SHAPEFILE, MS_TILED_SHAPEFILE, MS_SDE, MS_OGR, MS_TILED_OGR, MS_POSTGIS, MS_WMS, MS_ORACLESPATIAL, MS_WFS, MS_GRATICULE, MS_MYGIS, MS_RASTER, MS_PLUGIN For example: If layer.connectiontype == MS_SHAPEFILE) { layer.queryByAttributes(map, "myfield", "searchValue", mapscript.MS_MULTIPLE); } else { layer.queryByAttributes(map, null, "myfield='searchValue'", mapscript.MS_MULTIPLE); } _____ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Berend Veldkamp Sent: Friday, January 22, 2010 7:22 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] queryByAttributes syntax Hi, Where can I find more information about the queryByAttributes() function? I found http://mapserver.org/mapscript/php/index.html#layerobj-class , but it is not very detailed. By trial and error I found that for a PostGIS layer, I should use this syntax: layer.queryByAttributes(map, null, "myfield='searchValue'", mapscript.MS_MULTIPLE); but for shapefiles, it seems it should be: layer.queryByAttributes(map, "myfield", "searchValue", mapscript.MS_MULTIPLE); I am trying to write some generic code, but that's hard if there is no single way to call this method. Also, I haven't found a way yet to do a partial match on a shapefile (PostGIS supports 'LIKE') Regards, Berend Veldkamp No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.730 / Virus Database: 271.1.1/2640 - Release Date: 01/23/10 02:33:00 -------------- next part -------------- An HTML attachment was scrubbed... URL: From donatas.malinauskas at lgt.lt Sun Jan 24 23:51:41 2010 From: donatas.malinauskas at lgt.lt (Donatas Malinauskas) Date: Mon, 25 Jan 2010 09:51:41 +0200 Subject: [mapserver-users] PHP mapscript recenter problem In-Reply-To: <201001220900.37314.aboudreault@mapgears.com> References: <4B596046.2070102@lgt.lt> <201001220900.37314.aboudreault@mapgears.com> Message-ID: <4B5D4D8D.9080608@lgt.lt> Hi Alan, Thanks for yours reply! Yes now it's clear pixels are integers... It is too bad that this simply function mismatches to me. Is there other recenter function which works with x,y in lonlat? I didn't see something like that in mapserver/mapscript documentation... Good day, Donatas. Alan Boudreault wrote: > Donatas, > > The x,y given to the zoomPoint function are in PIXEL, not lonlat. You cannot > specify a half pixel. That said, pixel are integers, not double. > > Alan > > On January 22, 2010 03:22:30 am Donatas Malinauskas wrote: > >> HGood day, >> >> I have some problem. I want to recenter my map exactly to users given >> georeferenced coordinates. For that purpose I use php mapscript function >> - zoompoint(ZOOMFACTOR,$myXY, WIDTH, HEIGHT, EXTENT) with ZOOMFACTOR=1. >> But this function doesn't work correctly. ZoomPoint function centers map >> to rounded x,y position (then I have myX 235.5px and myY 330.42 it >> rounds to 235px, 330px) and moves map to incorect center coordinates. >> What should I do in this situation, please give me some advice, how >> recenter map with best precision. >> >> Thanks, >> Donatas. >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > From oliver.christen at camptocamp.com Mon Jan 25 01:26:19 2010 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Mon, 25 Jan 2010 10:26:19 +0100 Subject: [mapserver-users] Mapserver ignore DATA in layer definition Message-ID: <48F199C60E2E4E98AABECC288D151077@maunakea> hi I have a mapserver 5.2.1 on a server which totally ignore the DATA in a postgis layer definition in my mapfile. I can write anything I want, even gibberish, in the DATA without even geting an error. This is my layer : LAYER NAME "plan_points" STATUS ON TYPE POINT CONNECTIONTYPE POSTGIS CONNECTION "dbname=sitn user=plans_intervention password=sitn_plans_intervention host=nesitn2" #DATA 'geom from (select geom,oid,id,fk_obj,code,com,sf,op_saisie,rem,rotation,url_lien,owner from plans_intervention.plan_points) as foo' #DATA "geom from (select * from test.plan_points) as foo using unique id" DATA "dfsdfsdfd" TEMPLATE "ttt" OPACITY 100 CLASSITEM "code" TOLERANCE 20 CLASS STYLE SYMBOL "background1" SIZE 20 COLOR 255 255 255 ANGLE [rotation] END STYLE SYMBOL "VHC1" SIZE 20 COLOR 0 0 255 ANGLE [rotation] END TEXT ([com]) LABEL COLOR 0 0 255 OUTLINECOLOR 255 255 255 FONT "arial" TYPE truetype SIZE 12 ANGLE [rotation] POSITION uc PRIORITY 10 PARTIALS FALSE FORCE true ANTIALIAS true END END END as you can see I have made different try for the DATA, all are ignored, even the DATA "dfsdfsdfd" one. the server is running on Windows Server 2008 any idea why the DATA string is ignored ? this is the full mapserver version info: MapServer Version MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP MapScript Version ($Revision: 7937 $ $Date: 2008-09-30 10:37:46 -0400 (Tue, 30 Sep 2008) $) thanks in advance Oliver From ml at lingner.eu Mon Jan 25 02:45:37 2010 From: ml at lingner.eu (Lars Lingner) Date: Mon, 25 Jan 2010 11:45:37 +0100 Subject: [mapserver-users] Mapserver ignore DATA in layer definition In-Reply-To: <48F199C60E2E4E98AABECC288D151077@maunakea> References: <48F199C60E2E4E98AABECC288D151077@maunakea> Message-ID: <4B5D7651.9010502@lingner.eu> Oliver Christen schrieb: > hi > > I have a mapserver 5.2.1 on a server which totally ignore the DATA in a > postgis layer definition in my mapfile. > > I can write anything I want, even gibberish, in the DATA without even > geting an error. > > This is my layer : > > LAYER > NAME "plan_points" > STATUS ON > TYPE POINT > CONNECTIONTYPE POSTGIS > CONNECTION "dbname=sitn user=plans_intervention > password=sitn_plans_intervention host=nesitn2" > #DATA 'geom from (select > geom,oid,id,fk_obj,code,com,sf,op_saisie,rem,rotation,url_lien,owner > from plans_intervention.plan_points) as foo' > #DATA "geom from (select * from test.plan_points) as foo using unique id" > DATA "dfsdfsdfd" > TEMPLATE "ttt" > OPACITY 100 > CLASSITEM "code" > TOLERANCE 20 > CLASS > STYLE > SYMBOL "background1" > SIZE 20 > COLOR 255 255 255 > ANGLE [rotation] > END > STYLE > SYMBOL "VHC1" > SIZE 20 > COLOR 0 0 255 > ANGLE [rotation] > END > TEXT ([com]) > LABEL > COLOR 0 0 255 > OUTLINECOLOR 255 255 255 > FONT "arial" > TYPE truetype > SIZE 12 > ANGLE [rotation] > POSITION uc > PRIORITY 10 > PARTIALS FALSE > FORCE true > ANTIALIAS true > END > END > END > > > > as you can see I have made different try for the DATA, all are ignored, > even the DATA "dfsdfsdfd" one. > > the server is running on Windows Server 2008 > > any idea why the DATA string is ignored ? My first idea: Are you sure that this mapfile is used? Or do you have two layer with the same name? I just tried to use DATA "kakja" as statement end got an internal server error back. But I tried on current trunk (5.7-dev) Lars From oliver.christen at camptocamp.com Mon Jan 25 02:58:50 2010 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Mon, 25 Jan 2010 11:58:50 +0100 Subject: [mapserver-users] Mapserver ignore DATA in layer definition References: <48F199C60E2E4E98AABECC288D151077@maunakea> <4B5D7651.9010502@lingner.eu> Message-ID: <947062E61362468F98F496F54E10CE1F@maunakea> hi Lars yes I checked that, the layer is effectively used as I get a "layer not found" error as soon as I remove/comment it Oliver > > My first idea: Are you sure that this mapfile is used? Or do you have > two layer with the same name? > > I just tried to use DATA "kakja" as statement end got an internal server > error back. But I tried on current trunk (5.7-dev) > > Lars > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From ml at lingner.eu Mon Jan 25 03:16:14 2010 From: ml at lingner.eu (Lars Lingner) Date: Mon, 25 Jan 2010 12:16:14 +0100 Subject: [mapserver-users] Mapserver ignore DATA in layer definition In-Reply-To: <947062E61362468F98F496F54E10CE1F@maunakea> References: <48F199C60E2E4E98AABECC288D151077@maunakea> <4B5D7651.9010502@lingner.eu> <947062E61362468F98F496F54E10CE1F@maunakea> Message-ID: <4B5D7D7E.4040000@lingner.eu> Oliver Christen schrieb: > hi Lars > > yes I checked that, > the layer is effectively used as I get a "layer not found" error as soon > as I remove/comment it > Ok. I think I would enable debug logs on map and layer level to get more informations. I have no Windows Server here to test. Do you also use IIS then? But if its on windows, I really cant help. First thing what comes to my mind is case sensitive filenames and CR/LF line ends, but this doesn't apply here. Lars From b.veldkamp at zonnet.nl Mon Jan 25 03:56:00 2010 From: b.veldkamp at zonnet.nl (Berend Veldkamp) Date: Mon, 25 Jan 2010 12:56:00 +0100 Subject: [mapserver-users] queryByAttributes syntax In-Reply-To: <0A6905B29C094094AF2644581A78C462@Worthlaptop> References: <57fc60331001220422y87a3498rf3f64dd4206e611e@mail.gmail.com> <0A6905B29C094094AF2644581A78C462@Worthlaptop> Message-ID: <57fc60331001250356i728af7farf18dd0cc41282d5d@mail.gmail.com> Thanks, but that's exactly the kind of thing I'd like to prevent... On 1/24/10, Worth Lutz wrote: > I use the layer.connectiontype to adjust my query calls. > > > > Connection Types > > MS_INLINE, MS_SHAPEFILE, MS_TILED_SHAPEFILE, MS_SDE, MS_OGR, MS_TILED_OGR, > MS_POSTGIS, MS_WMS, MS_ORACLESPATIAL, MS_WFS, MS_GRATICULE, MS_MYGIS, > MS_RASTER, MS_PLUGIN > > > > > > For example: > > > > If layer.connectiontype == MS_SHAPEFILE) { > > layer.queryByAttributes(map, "myfield", "searchValue", > mapscript.MS_MULTIPLE); > > } else { > > layer.queryByAttributes(map, null, "myfield='searchValue'", > mapscript.MS_MULTIPLE); > > } > > > > _____ > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Berend > Veldkamp > Sent: Friday, January 22, 2010 7:22 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] queryByAttributes syntax > > > > Hi, > > Where can I find more information about the queryByAttributes() function? I > found http://mapserver.org/mapscript/php/index.html#layerobj-class , but it > is not very detailed. By trial and error I found that for a PostGIS layer, > I > should use this syntax: > > layer.queryByAttributes(map, null, "myfield='searchValue'", > mapscript.MS_MULTIPLE); > > but for shapefiles, it seems it should be: > > layer.queryByAttributes(map, "myfield", "searchValue", > mapscript.MS_MULTIPLE); > > I am trying to write some generic code, but that's hard if there is no > single way to call this method. Also, I haven't found a way yet to do a > partial match on a shapefile (PostGIS supports 'LIKE') > > Regards, > Berend Veldkamp > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.730 / Virus Database: 271.1.1/2640 - Release Date: 01/23/10 > 02:33:00 > > From b.veldkamp at zonnet.nl Mon Jan 25 03:57:17 2010 From: b.veldkamp at zonnet.nl (Berend Veldkamp) Date: Mon, 25 Jan 2010 12:57:17 +0100 Subject: [mapserver-users] queryByAttributes syntax In-Reply-To: References: <57fc60331001220422y87a3498rf3f64dd4206e611e@mail.gmail.com> Message-ID: <57fc60331001250357s384908a2l74f1337f959f7e98@mail.gmail.com> Thanks, I'll try this. Berend On 1/22/10, Lime, Steve D (DNR) wrote: > There's a single way to call the method, it's that you don't always have to > supply the query item. The method signature is > > queryByAttributes (map (mapObj, qitem (string), qstring (string), mode > (int)); > > The qstring is given in a format compatible with the underlying driver. For > the database drivers it's basically a where-clause. For others > you use MapServer expression syntax. Some expression types (e.g. string > matches or regex) require the qitem. > > To do a partial match you could use a regex, for example: > > layer.queryByAttributes(map, "myfield", "/myregex/", > mapscript.MS_MULTIPLE); > > Steve > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Berend > Veldkamp > Sent: Friday, January 22, 2010 6:22 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] queryByAttributes syntax > > Hi, > > Where can I find more information about the queryByAttributes() function? I > found http://mapserver.org/mapscript/php/index.html#layerobj-class , but it > is not very detailed. By trial and error I found that for a PostGIS layer, I > should use this syntax: > > layer.queryByAttributes(map, null, "myfield='searchValue'", > mapscript.MS_MULTIPLE); > > but for shapefiles, it seems it should be: > > layer.queryByAttributes(map, "myfield", "searchValue", > mapscript.MS_MULTIPLE); > > I am trying to write some generic code, but that's hard if there is no > single way to call this method. Also, I haven't found a way yet to do a > partial match on a shapefile (PostGIS supports 'LIKE') > > Regards, > Berend Veldkamp > From Andreas.Eichner at sid.sachsen.de Mon Jan 25 06:04:37 2010 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Mon, 25 Jan 2010 15:04:37 +0100 Subject: [mapserver-users] Interpretation of OGC filter encoding Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D0D1D1A@KS-EVS1.smi.sachsen.de> Hey guys, while reading the OGC filter encoding specification I was wondering how the part about properties should be interpreted. I thought it would be a good idea to ask other users about their thoughts and may be one or the other hacker has an eye on the list too... The specs states in part 6 Properties that "The element is used to encode the name of any property of an object." and that "a filter expression processor must use the subset of XPath [10] expressions defined in this document" Those expressions are basically relative location paths using abbreviated sytnax and "5. Each step in the path may optionally contain a predicate composed of the predicate delimiters '[' and ']' and a number indicating which child of the context node is to be selected." The example with the Person feature type shows two elements: Smith Fred 35 Male 15 15 Main St. 5 SomeCity SomeProvince X1X 1X1 Canada 416-123-4567 416-890-1234 What would happen if I use a filter like: Person/phone 416-890-* Since the XPath given in the PropertyName addresses more than one element, how should the filter work? Does it select any feature containing at least one phone element with content matching the pattern and therefore being a SQLish filter? Or does it work like the string/number/boolean functions from the XPath spec and convert the first node in document order which would be the concatenation of every descendant text node of the first phone element (in the example exactly one but the mailAddress element's value would be "\n \n Main St.\n 5\n SomeCity\n SomeProvince\n X1X 1X1\n Canada\n \n"). Or should a predicate of "[1]" be implied? I believe the SQLish behaviour is better usable but the XPath one does more conform to the XML-based standards. I checked the specs again and again but couldn't find any hint how that should be handled neither within the "6. Properties" section nor within the sections dealing with the operators. This fuzzy definition of a "Property" becomes a big problem when dealing with SQL data mapped to XML especially if you try to build SQL filters out of the OGC filters... If there are any thoughts, please let me know. Kind regards, Andreas Eichner From aboudreault at mapgears.com Mon Jan 25 06:24:04 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Mon, 25 Jan 2010 09:24:04 -0500 Subject: [mapserver-users] PHP mapscript recenter problem In-Reply-To: <4B5D4D8D.9080608@lgt.lt> References: <4B596046.2070102@lgt.lt> <201001220900.37314.aboudreault@mapgears.com> <4B5D4D8D.9080608@lgt.lt> Message-ID: <201001250924.04760.aboudreault@mapgears.com> Donatas, You'll have to convert the longitude/latitude to pixels. I'm not very familiar with those conversions since I don't play with that often. However, I think the following example can help you to figure out how to do it: http://lists.osgeo.org/pipermail/mapserver-users/2005-June/008214.html Perhaps, someone else on the list could give you a better/smaller example. regards, Alan On January 25, 2010 02:51:41 am Donatas Malinauskas wrote: > Hi Alan, > > Thanks for yours reply! Yes now it's clear pixels are integers... It is > too bad that this simply function mismatches to me. Is there other > recenter function which works with x,y in lonlat? I didn't see something > like that in mapserver/mapscript documentation... > > Good day, > Donatas. > > Alan Boudreault wrote: > > Donatas, > > > > The x,y given to the zoomPoint function are in PIXEL, not lonlat. You > > cannot specify a half pixel. That said, pixel are integers, not double. > > > > Alan > > > > On January 22, 2010 03:22:30 am Donatas Malinauskas wrote: > >> HGood day, > >> > >> I have some problem. I want to recenter my map exactly to users given > >> georeferenced coordinates. For that purpose I use php mapscript function > >> - zoompoint(ZOOMFACTOR,$myXY, WIDTH, HEIGHT, EXTENT) with ZOOMFACTOR=1. > >> But this function doesn't work correctly. ZoomPoint function centers map > >> to rounded x,y position (then I have myX 235.5px and myY 330.42 it > >> rounds to 235px, 330px) and moves map to incorect center coordinates. > >> What should I do in this situation, please give me some advice, how > >> recenter map with best precision. > >> > >> Thanks, > >> Donatas. > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alan Boudreault Mapgears http://www.mapgears.com From valemunoz at gmail.com Mon Jan 25 07:00:52 2010 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Mon, 25 Jan 2010 12:00:52 -0300 Subject: [mapserver-users] resolution Message-ID: <4b56aefe1001250700gbc8816ey1e9f458c05756b82@mail.gmail.com> Hi I need to produce a 300dpi image for printing, i defined a RESOLUTION 300 in the mapfile , but nothing happens , still in 72 dpi ... can you help me please? mapfile MAP NAME neonline_mapa RESOLUTION 300 SIZE 400 400 UNITS dd SHAPEPATH "c:/ms4w/Apache/htdocs/test_mapfile/dataB2/" EXTENT -112.888238 -57.06133625 -7.419488000000001 13.25116375 FONTSET "c:/ms4w/Apache/htdocs/test_map_dis/fonts/fonts.txt" PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END IMAGECOLOR 122 206 232 OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE 'image/png' IMAGEMODE RGB #RGBA transparente EXTENSION "png" FORMATOPTION "TRANSPARENT=ON" FORMATOPTION "INTERLACE=ON" FORMATOPTION "QUANTIZE_COLORS=256" END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END ........ -------------- next part -------------- An HTML attachment was scrubbed... URL: From sindile.bidla at gmail.com Mon Jan 25 07:25:34 2010 From: sindile.bidla at gmail.com (Intengu Technologies) Date: Mon, 25 Jan 2010 17:25:34 +0200 Subject: [mapserver-users] Latest mapserver windows binaries Message-ID: Where can I find the latest Windows Mapserver binaries -- Sindile Bidla From aboudreault at mapgears.com Mon Jan 25 07:34:14 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Mon, 25 Jan 2010 10:34:14 -0500 Subject: [mapserver-users] resolution In-Reply-To: <4b56aefe1001250700gbc8816ey1e9f458c05756b82@mail.gmail.com> References: <4b56aefe1001250700gbc8816ey1e9f458c05756b82@mail.gmail.com> Message-ID: <201001251034.15012.aboudreault@mapgears.com> Hi Set the DEFRESOLUTION to 72 (I assume all your mapfile settings are for a 72dpi image) , change the RESOLUTION to 300. Change your map size if you want a big 300dpi image. It is possible that the image header doesn't contain the DPI information. This can easily be modified with a graphic program like "The GIMP". Alan On January 25, 2010 10:00:52 am Valeria Mu?oz wrote: > Hi > > I need to produce a 300dpi image for printing, i defined a RESOLUTION > 300 in the mapfile , but nothing happens , still in 72 dpi ... can you help > me please? > > mapfile > > MAP > NAME neonline_mapa > RESOLUTION 300 > SIZE 400 400 > UNITS dd > SHAPEPATH "c:/ms4w/Apache/htdocs/test_mapfile/dataB2/" > EXTENT -112.888238 -57.06133625 -7.419488000000001 13.25116375 > FONTSET "c:/ms4w/Apache/htdocs/test_map_dis/fonts/fonts.txt" > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > IMAGECOLOR 122 206 232 > OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE 'image/png' > IMAGEMODE RGB #RGBA transparente > EXTENSION "png" > FORMATOPTION "TRANSPARENT=ON" > FORMATOPTION "INTERLACE=ON" > FORMATOPTION "QUANTIZE_COLORS=256" > END > > # Legend > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > ........ > -- Alan Boudreault Mapgears http://www.mapgears.com From valemunoz at gmail.com Mon Jan 25 07:44:25 2010 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Mon, 25 Jan 2010 12:44:25 -0300 Subject: [mapserver-users] resolution In-Reply-To: <201001251034.15012.aboudreault@mapgears.com> References: <4b56aefe1001250700gbc8816ey1e9f458c05756b82@mail.gmail.com> <201001251034.15012.aboudreault@mapgears.com> Message-ID: <4b56aefe1001250744p3770aac6p85066eef5c908258@mail.gmail.com> Hi Alan i did set defresolution to 72 ,but return to me this error. msLoadMap(): Unknown identifier. Parsing error near (DEFRESOLUTION):(line 7) in what MapSever version can i define DEFRESOLUTION? RG 2010/1/25 Alan Boudreault > Hi > > Set the DEFRESOLUTION to 72 (I assume all your mapfile settings are for a > 72dpi image) , change the RESOLUTION to 300. Change your map size if you > want > a big 300dpi image. > > It is possible that the image header doesn't contain the DPI information. > This > can easily be modified with a graphic program like "The GIMP". > > Alan > > On January 25, 2010 10:00:52 am Valeria Mu?oz wrote: > > Hi > > > > I need to produce a 300dpi image for printing, i defined a RESOLUTION > > 300 in the mapfile , but nothing happens , still in 72 dpi ... can you > help > > me please? > > > > mapfile > > > > MAP > > NAME neonline_mapa > > RESOLUTION 300 > > SIZE 400 400 > > UNITS dd > > SHAPEPATH "c:/ms4w/Apache/htdocs/test_mapfile/dataB2/" > > EXTENT -112.888238 -57.06133625 -7.419488000000001 13.25116375 > > FONTSET "c:/ms4w/Apache/htdocs/test_map_dis/fonts/fonts.txt" > > PROJECTION > > 'proj=longlat' > > 'ellps=WGS84' > > 'datum=WGS84' > > 'no_defs' > > '' > > END > > IMAGECOLOR 122 206 232 > > OUTPUTFORMAT > > NAME png > > DRIVER "AGG/PNG" > > MIMETYPE 'image/png' > > IMAGEMODE RGB #RGBA transparente > > EXTENSION "png" > > FORMATOPTION "TRANSPARENT=ON" > > FORMATOPTION "INTERLACE=ON" > > FORMATOPTION "QUANTIZE_COLORS=256" > > END > > > > # Legend > > LEGEND > > IMAGECOLOR 255 255 255 > > STATUS ON > > KEYSIZE 18 12 > > LABEL > > TYPE BITMAP > > SIZE MEDIUM > > COLOR 0 0 89 > > END > > END > > ........ > > > > -- > Alan Boudreault > Mapgears > http://www.mapgears.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aboudreault at mapgears.com Mon Jan 25 07:55:26 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Mon, 25 Jan 2010 10:55:26 -0500 Subject: [mapserver-users] resolution In-Reply-To: <4b56aefe1001250744p3770aac6p85066eef5c908258@mail.gmail.com> References: <4b56aefe1001250700gbc8816ey1e9f458c05756b82@mail.gmail.com> <201001251034.15012.aboudreault@mapgears.com> <4b56aefe1001250744p3770aac6p85066eef5c908258@mail.gmail.com> Message-ID: <201001251055.26865.aboudreault@mapgears.com> Sorry, I was sure you was trying to use the new feature included in MapServer 5.6. In MS <5.6, you can't really do more that setting the resolution to 300. Alan On January 25, 2010 10:44:25 am Valeria Mu?oz wrote: > Hi Alan > > i did set defresolution to 72 ,but return to me this error. > > msLoadMap(): Unknown identifier. Parsing error near (DEFRESOLUTION):(line > 7) > > > in what MapSever version can i define DEFRESOLUTION? > > RG > > 2010/1/25 Alan Boudreault > > > Hi > > > > Set the DEFRESOLUTION to 72 (I assume all your mapfile settings are for a > > 72dpi image) , change the RESOLUTION to 300. Change your map size if you > > want > > a big 300dpi image. > > > > It is possible that the image header doesn't contain the DPI information. > > This > > can easily be modified with a graphic program like "The GIMP". > > > > Alan > > > > On January 25, 2010 10:00:52 am Valeria Mu?oz wrote: > > > Hi > > > > > > I need to produce a 300dpi image for printing, i defined a > > > RESOLUTION 300 in the mapfile , but nothing happens , still in 72 dpi > > > ... can you > > > > help > > > > > me please? > > > > > > mapfile > > > > > > MAP > > > NAME neonline_mapa > > > RESOLUTION 300 > > > SIZE 400 400 > > > UNITS dd > > > SHAPEPATH "c:/ms4w/Apache/htdocs/test_mapfile/dataB2/" > > > EXTENT -112.888238 -57.06133625 -7.419488000000001 13.25116375 > > > FONTSET "c:/ms4w/Apache/htdocs/test_map_dis/fonts/fonts.txt" > > > PROJECTION > > > 'proj=longlat' > > > 'ellps=WGS84' > > > 'datum=WGS84' > > > 'no_defs' > > > '' > > > END > > > IMAGECOLOR 122 206 232 > > > OUTPUTFORMAT > > > NAME png > > > DRIVER "AGG/PNG" > > > MIMETYPE 'image/png' > > > IMAGEMODE RGB #RGBA transparente > > > EXTENSION "png" > > > FORMATOPTION "TRANSPARENT=ON" > > > FORMATOPTION "INTERLACE=ON" > > > FORMATOPTION "QUANTIZE_COLORS=256" > > > END > > > > > > # Legend > > > LEGEND > > > IMAGECOLOR 255 255 255 > > > STATUS ON > > > KEYSIZE 18 12 > > > LABEL > > > TYPE BITMAP > > > SIZE MEDIUM > > > COLOR 0 0 89 > > > END > > > END > > > ........ > > > > -- > > Alan Boudreault > > Mapgears > > http://www.mapgears.com > -- Alan Boudreault Mapgears http://www.mapgears.com From jmckenna at gatewaygeomatics.com Mon Jan 25 07:59:40 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 25 Jan 2010 11:59:40 -0400 Subject: [mapserver-users] resolution In-Reply-To: <201001251055.26865.aboudreault@mapgears.com> References: <4b56aefe1001250700gbc8816ey1e9f458c05756b82@mail.gmail.com> <201001251034.15012.aboudreault@mapgears.com> <4b56aefe1001250744p3770aac6p85066eef5c908258@mail.gmail.com> <201001251055.26865.aboudreault@mapgears.com> Message-ID: <4B5DBFEC.3040206@gatewaygeomatics.com> Alan Boudreault wrote: > Sorry, I was sure you was trying to use the new feature included in MapServer > 5.6. In MS <5.6, you can't really do more that setting the resolution to 300. > If you are using MS4W 3.0, you can extract the "MapServer version 5.6.0 release Upgrade" package on the MS4W downloads page [1], to install MapServer 5.6.0 If you have questions about performing this upgrade, please use the MS4W email list[2]. [1] http://www.maptools.org/ms4w/index.phtml?page=downloads.html [2] http://lists.maptools.org/mailman/listinfo/ms4w-users -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From valemunoz at gmail.com Mon Jan 25 10:24:18 2010 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Mon, 25 Jan 2010 15:24:18 -0300 Subject: [mapserver-users] resolution In-Reply-To: <4B5DBFEC.3040206@gatewaygeomatics.com> References: <4b56aefe1001250700gbc8816ey1e9f458c05756b82@mail.gmail.com> <201001251034.15012.aboudreault@mapgears.com> <4b56aefe1001250744p3770aac6p85066eef5c908258@mail.gmail.com> <201001251055.26865.aboudreault@mapgears.com> <4B5DBFEC.3040206@gatewaygeomatics.com> Message-ID: <4b56aefe1001251024u2d04c2c3x7ad7b02613e2afa2@mail.gmail.com> ok, i update mapserver version to 5.6, i change my mapfile, but I still in 72 dpi... mapfile MAP NAME neonline_mapa RESOLUTION 300 DEFRESOLUTION 72 SIZE 1667 1667 UNITS dd SHAPEPATH "c:/ms4w/Apache/htdocs/test_mapfile/data2/" EXTENT -112.888238 -57.06133625 -7.419488000000001 13.25116375 FONTSET "c:/ms4w/Apache/htdocs/test_map_dis/fonts/fonts.txt" PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END # Background color for the map canvas -- change as desired IMAGECOLOR 122 206 232 IMAGETYPE pdf OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE 'image/png' IMAGEMODE RGB EXTENSION "png" FORMATOPTION "TRANSPARENT=ON" FORMATOPTION "INTERLACE=ON" FORMATOPTION "QUANTIZE_COLORS=256" END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END ...... 2010/1/25 Jeff McKenna > Alan Boudreault wrote: > >> Sorry, I was sure you was trying to use the new feature included in >> MapServer 5.6. In MS <5.6, you can't really do more that setting the >> resolution to 300. >> >> > If you are using MS4W 3.0, you can extract the "MapServer version 5.6.0 > release Upgrade" package on the MS4W downloads page [1], to install > MapServer 5.6.0 > > If you have questions about performing this upgrade, please use the MS4W > email list[2]. > > [1] http://www.maptools.org/ms4w/index.phtml?page=downloads.html > [2] http://lists.maptools.org/mailman/listinfo/ms4w-users > > -jeff > > > -- > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aboudreault at mapgears.com Mon Jan 25 10:36:02 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Mon, 25 Jan 2010 13:36:02 -0500 Subject: [mapserver-users] resolution In-Reply-To: <4b56aefe1001251024u2d04c2c3x7ad7b02613e2afa2@mail.gmail.com> References: <4b56aefe1001250700gbc8816ey1e9f458c05756b82@mail.gmail.com> <4B5DBFEC.3040206@gatewaygeomatics.com> <4b56aefe1001251024u2d04c2c3x7ad7b02613e2afa2@mail.gmail.com> Message-ID: <201001251336.02144.aboudreault@mapgears.com> What do you mean by "I still in 72 dpi". How do you check your image DPI ? Alan On January 25, 2010 01:24:18 pm Valeria Mu?oz wrote: > ok, i update mapserver version to 5.6, i change my mapfile, but I still in > 72 dpi... > > mapfile > > MAP > NAME neonline_mapa > RESOLUTION 300 > DEFRESOLUTION 72 > SIZE 1667 1667 > > UNITS dd > SHAPEPATH "c:/ms4w/Apache/htdocs/test_mapfile/data2/" > EXTENT -112.888238 -57.06133625 -7.419488000000001 13.25116375 > FONTSET "c:/ms4w/Apache/htdocs/test_map_dis/fonts/fonts.txt" > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > # Background color for the map canvas -- change as desired > IMAGECOLOR 122 206 232 > IMAGETYPE pdf > > OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE 'image/png' > IMAGEMODE RGB > EXTENSION "png" > FORMATOPTION "TRANSPARENT=ON" > FORMATOPTION "INTERLACE=ON" > FORMATOPTION "QUANTIZE_COLORS=256" > END > > # Legend > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > ...... > > 2010/1/25 Jeff McKenna > > > Alan Boudreault wrote: > >> Sorry, I was sure you was trying to use the new feature included in > >> MapServer 5.6. In MS <5.6, you can't really do more that setting the > >> resolution to 300. > > > > If you are using MS4W 3.0, you can extract the "MapServer version 5.6.0 > > release Upgrade" package on the MS4W downloads page [1], to install > > MapServer 5.6.0 > > > > If you have questions about performing this upgrade, please use the MS4W > > email list[2]. > > > > [1] http://www.maptools.org/ms4w/index.phtml?page=downloads.html > > [2] http://lists.maptools.org/mailman/listinfo/ms4w-users > > > > -jeff > > > > > > -- > > 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 > -- Alan Boudreault Mapgears http://www.mapgears.com From stelaanders at gmail.com Mon Jan 25 10:50:13 2010 From: stelaanders at gmail.com (stela anders) Date: Mon, 25 Jan 2010 15:50:13 -0300 Subject: [mapserver-users] WMSGetFeatureInfo problem (No results, using OL) Message-ID: Hello guys... My mapfile: ... PROJECTION "+init=epsg:4326" END WEB IMAGEPATH 'C:\temp\' IMAGEURL '/tmp/' QUERYFORMAT text/html METADATA "wms_title" "WMS Server" "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?" "wms_srs" "EPSG:4326 EPSG:42304 EPSG:42101 EPSG:4269" 'wms_feature_info_mime_type' "text/html" END END QUERYMAP COLOR 255 0 0 SIZE -1 -1 STATUS OFF STYLE hilite END ... LAYER ... METADATA "wms_title" "Test" ##required "wms_include_items" "all" "wms_feature_info_mime_type" "text/html" END TYPE POINT STATUS ON INCLUDE "Connection.map" DATA "the_geom from viwtest USING UNIQUE oid USING SRID=0" PROJECTION "+init=epsg:4326" END TOLERANCE 5 HEADER "header.html" TEMPLATE "template.html" FOOTER "footer.html" ... Templates: Header.html MapServer Template Sample Template.html OID: [oid] Footer.html WMSGetFeatureInfo Javascript (OpenLayer) var infoCtl = new OpenLayers.Control.WMSGetFeatureInfo({ layers: [_test], title: 'Click on the map to get information on layers', queryVisible: true, infoFormat: 'text/html' }); infoCtl.events.register("getfeatureinfo",map,showInfo); function showInfo(evt) { alert(evt.text); } I?m getting that : MapServer Template Sample Content-type: application/vnd.ogc.se_xml Any idea whats happening? Stella -------------- next part -------------- An HTML attachment was scrubbed... URL: From ml at lingner.eu Mon Jan 25 10:55:13 2010 From: ml at lingner.eu (Lars Lingner) Date: Mon, 25 Jan 2010 19:55:13 +0100 Subject: [mapserver-users] Latest mapserver windows binaries In-Reply-To: References: Message-ID: <4B5DE911.1020508@lingner.eu> Intengu Technologies schrieb: > Where can I find the latest Windows Mapserver binaries > MapServer Windows binaries are included in the MS4W package at http://maptools.org/ms4w/ Lars From valemunoz at gmail.com Mon Jan 25 16:09:20 2010 From: valemunoz at gmail.com (Valeria Munoz I) Date: Mon, 25 Jan 2010 21:09:20 -0300 Subject: [mapserver-users] resolution In-Reply-To: <4B5DBFEC.3040206@gatewaygeomatics.com> References: <4b56aefe1001250700gbc8816ey1e9f458c05756b82@mail.gmail.com> <201001251034.15012.aboudreault@mapgears.com> <4b56aefe1001250744p3770aac6p85066eef5c908258@mail.gmail.com> <201001251055.26865.aboudreault@mapgears.com> <4B5DBFEC.3040206@gatewaygeomatics.com> Message-ID: <3503B27E-969B-4442-A9C5-75B413268D69@gmail.com> Thank a lot to every one!! Enviado desde mi iPhone El 25-01-2010, a las 12:59, Jeff McKenna escribi?: > Alan Boudreault wrote: >> Sorry, I was sure you was trying to use the new feature included in >> MapServer 5.6. In MS <5.6, you can't really do more that setting >> the resolution to 300. > > If you are using MS4W 3.0, you can extract the "MapServer version > 5.6.0 release Upgrade" package on the MS4W downloads page [1], to > install MapServer 5.6.0 > > If you have questions about performing this upgrade, please use the > MS4W email list[2]. > > [1] http://www.maptools.org/ms4w/index.phtml?page=downloads.html > [2] http://lists.maptools.org/mailman/listinfo/ms4w-users > > -jeff > > > -- > 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 will.swan at ymail.com Mon Jan 25 23:44:31 2010 From: will.swan at ymail.com (will.swan at ymail.com) Date: Tue, 26 Jan 2010 15:44:31 +0800 Subject: [mapserver-users] drawQuery error on dynamic layer Message-ID: <4B5E9D5F.8060309@ymail.com> Hi, I'm using mapscript c# to add a point shapefile layer dynamically to an existing map. When I do a select by Rect/Shape I get results, but calling map.drawQuery() gives me the ol' "Attempted to read or write protected memory" error. I can retrieve the shape and read the values, so the queryByShape/Rect is working. Is this a known issue or just not supported for dynamic layers? (BTW I get the same when I try it on a SQL Server Layer using the plugin dll). * I'm using dlls from build (MSVC2008 (Win32) -stable release-1500-gdal-1-6-mapserver-5-6.zip). Adding shapefile snippet: layerObj layer = new layerObj(Map); layer.connectiontype = MS_CONNECTION_TYPE.MS_SHAPEFILE; layer.type = MS_LAYER_TYPE.MS_LAYER_POINT; layer.data = tagFilename; layer.status = mapscript.MS_ON; layer.name = LayerName; etc. Any help appreciated. Will -------------- next part -------------- An HTML attachment was scrubbed... URL: From tommasodb at googlemail.com Tue Jan 26 04:31:18 2010 From: tommasodb at googlemail.com (tommaso) Date: Tue, 26 Jan 2010 13:31:18 +0100 Subject: [mapserver-users] mapserver 5.4.2 Reprojection error Message-ID: <1264509078.2098.119.camel@tommaso-laptop> Hallo list, With mapserver 5.4.2 (FGS API 9.5) , if my map is reprojected in EPGS:31467, it is shifted about 100 m to north and 50 m to east (approximately). The same data with the same mapfile and the same URL works fine on mapserver 5.0.2 (FGS API 1.0.0). The data are stored in an Postgis Database with srid 4326. The URL I'm using is: http://localhost:8081/cgi-bin/map?request=getMap&version=1.1.1&srs=EPSG:31467&bgcolor=000000&transparent=true&exception=application/vnd.ogc.se_inimage&layers=messe_background,halls&width=1600&height=1600&bbox=3553126.5489076,5796728.52646645,3556663.71956136,5800882.49936431&format=agg On the linked picture you can see the same map with the same bbox generated by the two version of mapserver. The map on the right is to north-east shifted, the map on the left is ok. http://img695.imageshack.us/img695/9590/cebit.png If the map is not reprojected (EPGS:4326) there are not errors. Did somebody observe the same issue? Thanks, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From martijnvanderpauw at gmail.com Tue Jan 26 04:39:05 2010 From: martijnvanderpauw at gmail.com (windfreak) Date: Tue, 26 Jan 2010 04:39:05 -0800 (PST) Subject: [mapserver-users] Re: mapserver 5.4.2 Reprojection error In-Reply-To: <1264509078.2098.119.camel@tommaso-laptop> References: <1264509078.2098.119.camel@tommaso-laptop> Message-ID: <1264509545138-4460364.post@n2.nabble.com> Hi, Do you have this problem in Google maps? I think you should use a different projection type then. ----- http://www.topspots.org -- View this message in context: http://n2.nabble.com/mapserver-5-4-2-Reprojection-error-tp4460343p4460364.html Sent from the Mapserver - User mailing list archive at Nabble.com. From tommasodb at googlemail.com Tue Jan 26 05:07:12 2010 From: tommasodb at googlemail.com (tommaso) Date: Tue, 26 Jan 2010 14:07:12 +0100 Subject: [mapserver-users] Re: mapserver 5.4.2 Reprojection error In-Reply-To: <1264509545138-4460364.post@n2.nabble.com> References: <1264509078.2098.119.camel@tommaso-laptop> <1264509545138-4460364.post@n2.nabble.com> Message-ID: <1264511232.2098.127.camel@tommaso-laptop> Hi, No, I'm not using Google Map, I'm only using my own data. I tried with EPGS:32632 and got the error on both versions of Mapserver. I noticed the error because I have a overlay on my map not drawn by Mapserver. Could someone try too? perhaps I have a error in my map configuration. greets, tom On Tue, 2010-01-26 at 04:39 -0800, windfreak wrote: > Hi, > > Do you have this problem in Google maps? I think you should use a different > projection type then. > > ----- > http://www.topspots.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From jesper.kempe at gmail.com Tue Jan 26 05:10:19 2010 From: jesper.kempe at gmail.com (kempe) Date: Tue, 26 Jan 2010 05:10:19 -0800 (PST) Subject: [mapserver-users] Re: mapserver grib example In-Reply-To: <1264156300859-4439271.post@n2.nabble.com> References: <1264156300859-4439271.post@n2.nabble.com> Message-ID: <1264511419280-4460506.post@n2.nabble.com> Hi I am also interested in an example like this. Have you found anything? I would like to be able to plot weather fields from for example a NOAA GFS grib file, http://nomad3.ncep.noaa.gov/pub/gfs/rotating/gfs.t00z.pgrbf03 The problem (I think) I have is to get the projection right for the layer I create. -- View this message in context: http://n2.nabble.com/mapserver-grib-example-tp4439271p4460506.html Sent from the Mapserver - User mailing list archive at Nabble.com. From martijnvanderpauw at gmail.com Tue Jan 26 05:11:59 2010 From: martijnvanderpauw at gmail.com (windfreak) Date: Tue, 26 Jan 2010 05:11:59 -0800 (PST) Subject: [mapserver-users] Re: mapserver 5.4.2 Reprojection error In-Reply-To: <1264511232.2098.127.camel@tommaso-laptop> References: <1264509078.2098.119.camel@tommaso-laptop> <1264509545138-4460364.post@n2.nabble.com> <1264511232.2098.127.camel@tommaso-laptop> Message-ID: <1264511519801-4460516.post@n2.nabble.com> Do you have a different URL. This one is pointing to localhost. ----- http://www.topspots.org -- View this message in context: http://n2.nabble.com/mapserver-5-4-2-Reprojection-error-tp4460343p4460516.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Tue Jan 26 05:13:27 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 26 Jan 2010 15:13:27 +0200 Subject: [mapserver-users] mapserver 5.4.2 Reprojection error In-Reply-To: <1264509078.2098.119.camel@tommaso-laptop> References: <1264509078.2098.119.camel@tommaso-laptop> Message-ID: Hi, I am not sure if this helps in your case, but you can try to edit the "epsg" file in the projection library and add +towgs84=0,0,0 in the line that defines the <31467> projection. EPSG:3067 needs this extra parameter for sure and I believe it is the same with your next try with EPGS:32632. Let's hope it cures 31467 as well. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta tommaso L?hetetty: 26. tammikuuta 2010 14:31 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] mapserver 5.4.2 Reprojection error Hallo list, With mapserver 5.4.2 (FGS API 9.5) , if my map is reprojected in EPGS:31467, it is shifted about 100 m to north and 50 m to east (approximately). The same data with the same mapfile and the same URL works fine on mapserver 5.0.2 (FGS API 1.0.0). The data are stored in an Postgis Database with srid 4326. The URL I'm using is: http://localhost:8081/cgi-bin/map?request=getMap&version=1.1.1&srs=EPSG:31467&bgcolor=000000&transparent=true&exception=application/vnd.ogc.se_inimage&layers=messe_background,halls&width=1600&height=1600&bbox=3553126.5489076,5796728.52646645,3556663.71956136,5800882.49936431&format=agg On the linked picture you can see the same map with the same bbox generated by the two version of mapserver. The map on the right is to north-east shifted, the map on the left is ok. http://img695.imageshack.us/img695/9590/cebit.png If the map is not reprojected (EPGS:4326) there are not errors. Did somebody observe the same issue? Thanks, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From martijnvanderpauw at gmail.com Tue Jan 26 05:14:58 2010 From: martijnvanderpauw at gmail.com (windfreak) Date: Tue, 26 Jan 2010 05:14:58 -0800 (PST) Subject: [mapserver-users] Re: mapserver grib example In-Reply-To: <1264511419280-4460506.post@n2.nabble.com> References: <1264156300859-4439271.post@n2.nabble.com> <1264511419280-4460506.post@n2.nabble.com> Message-ID: <1264511698754-4460534.post@n2.nabble.com> I haven't got an example yet. I am still looking and testing. I am crawling through the mapserver sourcecode as well. Please let me know if you get lucky. ----- http://www.topspots.org -- View this message in context: http://n2.nabble.com/mapserver-grib-example-tp4439271p4460534.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Tue Jan 26 05:18:28 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 26 Jan 2010 09:18:28 -0400 Subject: [mapserver-users] Re: mapserver grib example In-Reply-To: <1264511419280-4460506.post@n2.nabble.com> References: <1264156300859-4439271.post@n2.nabble.com> <1264511419280-4460506.post@n2.nabble.com> Message-ID: <4B5EEBA4.704@gatewaygeomatics.com> kempe wrote: > Hi > > I am also interested in an example like this. Have you found anything? > > I would like to be able to plot weather fields from for example a NOAA GFS > grib file, http://nomad3.ncep.noaa.gov/pub/gfs/rotating/gfs.t00z.pgrbf03 > > The problem (I think) I have is to get the projection right for the layer I > create. > > Have you read through the GRIB driver page on the GDAL site[1] thoroughly? If you follow that, as well as the raster howto[2]) you should be fine. You might also want to give this email list more information about your problem (how are you testing, what errors exactly etc.) You can also search the gdal-dev email list for similar questions [3]. [1] http://www.gdal.org/frmt_grib.html [2] http://mapserver.org/input/raster.html [3] http://n2.nabble.com/GDAL-Dev-f2022644.html -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From martijnvanderpauw at gmail.com Tue Jan 26 05:56:06 2010 From: martijnvanderpauw at gmail.com (windfreak) Date: Tue, 26 Jan 2010 05:56:06 -0800 (PST) Subject: [mapserver-users] Re: mapserver grib example In-Reply-To: <4B5EEBA4.704@gatewaygeomatics.com> References: <1264156300859-4439271.post@n2.nabble.com> <1264511419280-4460506.post@n2.nabble.com> <4B5EEBA4.704@gatewaygeomatics.com> Message-ID: <1264514166650-4460725.post@n2.nabble.com> Hi, I already found the pages you note. But, unfortunately it doesn't help me on the Grib - Mapserver integration. I can't find good documentation on that. Right now I keep getting errors like '/maps/test.grb is not an EPPL file' ----- http://www.topspots.org -- View this message in context: http://n2.nabble.com/mapserver-grib-example-tp4439271p4460725.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Tue Jan 26 05:59:46 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 26 Jan 2010 09:59:46 -0400 Subject: [mapserver-users] Re: mapserver grib example In-Reply-To: <1264514166650-4460725.post@n2.nabble.com> References: <1264156300859-4439271.post@n2.nabble.com> <1264511419280-4460506.post@n2.nabble.com> <4B5EEBA4.704@gatewaygeomatics.com> <1264514166650-4460725.post@n2.nabble.com> Message-ID: <4B5EF552.6080601@gatewaygeomatics.com> windfreak wrote: > Hi, > > I already found the pages you note. But, unfortunately it doesn't help me on > the Grib - Mapserver integration. I can't find good documentation on that. > Right now I keep getting errors like '/maps/test.grb is not an EPPL file' > Have you verified that your local MapServer/GDAL build supports that format? You can execute 'gdalinfo --formats' to see a list of the drivers that are supported on your local build. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From martijnvanderpauw at gmail.com Tue Jan 26 06:12:40 2010 From: martijnvanderpauw at gmail.com (windfreak) Date: Tue, 26 Jan 2010 06:12:40 -0800 (PST) Subject: [mapserver-users] Re: mapserver grib example In-Reply-To: <4B5EF552.6080601@gatewaygeomatics.com> References: <1264156300859-4439271.post@n2.nabble.com> <1264511419280-4460506.post@n2.nabble.com> <4B5EEBA4.704@gatewaygeomatics.com> <1264514166650-4460725.post@n2.nabble.com> <4B5EF552.6080601@gatewaygeomatics.com> Message-ID: <65be3691001260612k7467bf0am3a911250f2410a4@mail.gmail.com> Hi Jeff, That's something I try to investigate. I know mapserver is installed with GDAL ( mapserv -v tells me that) but I can't find gdalinfo on our (Linux) system. Another reason I know GDAL should be installed is that I am able to present geoTIFF with our mapserver. Kind regards, Martijn 2010/1/26 Jeff McKenna [via OSGeo.org] < ml-node+4460747-1994709429 at n2.nabble.com > > windfreak wrote: > > Hi, > > > > I already found the pages you note. But, unfortunately it doesn't help me > on > > the Grib - Mapserver integration. I can't find good documentation on > that. > > Right now I keep getting errors like '/maps/test.grb is not an EPPL file' > > > > > Have you verified that your local MapServer/GDAL build supports that > format? You can execute 'gdalinfo --formats' to see a list of the > drivers that are supported on your local build. > > -jeff > > > -- > Jeff McKenna > FOSS4G Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > > _______________________________________________ > mapserver-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ------------------------------ > View message @ > http://n2.nabble.com/mapserver-grib-example-tp4439271p4460747.html > To unsubscribe from Re: mapserver grib example, click here< (link removed) ==>. > > > -- -http://www.topspots.org the best windsurfspots -http://www.weer.nl the site I work at with work ----- http://www.topspots.org -- View this message in context: http://n2.nabble.com/mapserver-grib-example-tp4439271p4460811.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlinden at zeelandnet.nl Tue Jan 26 06:11:07 2010 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Tue, 26 Jan 2010 15:11:07 +0100 Subject: [mapserver-users] Position of label In-Reply-To: <4B544A99.1030602@uva.nl> References: <1263493371.786353.17553.nullmailer@mail1005.cent> <4B544A99.1030602@uva.nl> Message-ID: <4B5EF7FB.9070405@zeelandnet.nl> If your AJAX webmap client of choice happens to be OpenLayers, there are better ways to do this. Assuming you don't want the whole world labeled, you might consider using a WFS layer instead of a WMS layer. Then you can use OpenLayers to create *real* vector layers that can even have effects such as light up or resize *and* make the mouse cursor change when moving over a label or object. Plus it will give you the option to open up pop-up balloons, something you will hardly get done using a raster-layer only. Otherwise, you are in there on your own. Your ajax script would need to translate real coordinates to pixel coordinates, guess label coordinates and stuff.. I would not go there if I where you. "Don't invent wheels, ride great cars" Kind regards, Milo van der Linden Jan Hartmann wrote: > Hi folks, > > Is there a way to get back the exact position of the labels in a > MapServer map? I want to make the labels clickable with Ajax, so a x-y > values in image coordinates would be enough. I looked in the Template > and Mapscript docs, but couldn't find anything about the (computed) > position of labels. > > Jan > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From tommasodb at googlemail.com Tue Jan 26 08:46:35 2010 From: tommasodb at googlemail.com (tommaso) Date: Tue, 26 Jan 2010 17:46:35 +0100 Subject: [mapserver-users] Re: mapserver 5.4.2 Reprojection error In-Reply-To: <1264511519801-4460516.post@n2.nabble.com> References: <1264509078.2098.119.camel@tommaso-laptop> <1264509545138-4460364.post@n2.nabble.com> <1264511232.2098.127.camel@tommaso-laptop> <1264511519801-4460516.post@n2.nabble.com> Message-ID: <1264524395.2098.139.camel@tommaso-laptop> Hallo, > I am not sure if this helps in your case, but you can try to edit the > "epsg" file in the projection library and add +towgs84=0,0,0 in the > line that defines the <31467> projection. EPSG:3067 needs this extra > parameter for sure and I believe it is the same with your next try > with EPGS:32632. Let's hope it cures 31467 as well. > > > > -Jukka Rahkonen- Thanks a lot! this worked with 31467. With 32632 I not yet sure, if it worked. I'll made some more tests. > Do you have a different URL. This one is pointing to localhost. I'm very sorry but our application is not (yet) reachable from internet. Thanks again, tom > Aihe: [mapserver-users] mapserver 5.4.2 Reprojection error > > > > Hallo list, > > > With mapserver 5.4.2 (FGS API 9.5) , if my map is reprojected > in EPGS:31467, it is shifted about 100 m to north and 50 m to > east (approximately). > The same data with the same mapfile and the same URL works > fine on mapserver 5.0.2 (FGS API 1.0.0). > The data are stored in an Postgis Database with srid 4326. > The URL I'm using is: > http://localhost:8081/cgi-bin/map?request=getMap&version=1.1.1&srs=EPSG:31467&bgcolor=000000&transparent=true&exception=application/vnd.ogc.se_inimage&layers=messe_background,halls&width=1600&height=1600&bbox=3553126.5489076,5796728.52646645,3556663.71956136,5800882.49936431&format=agg > > > On the linked picture you can see the same map with the same > bbox generated by the two version of mapserver. The map on the > right is to north-east shifted, the map on the left is ok. > http://img695.imageshack.us/img695/9590/cebit.png > > If the map is not reprojected (EPGS:4326) there are not > errors. > > > Did somebody observe the same issue? > > Thanks, > Tom > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jesper.kempe at gmail.com Tue Jan 26 10:53:14 2010 From: jesper.kempe at gmail.com (kempe) Date: Tue, 26 Jan 2010 10:53:14 -0800 (PST) Subject: [mapserver-users] Re: mapserver grib example In-Reply-To: <4B5EF552.6080601@gatewaygeomatics.com> References: <1264156300859-4439271.post@n2.nabble.com> <1264511419280-4460506.post@n2.nabble.com> <4B5EEBA4.704@gatewaygeomatics.com> <1264514166650-4460725.post@n2.nabble.com> <4B5EF552.6080601@gatewaygeomatics.com> Message-ID: <1264531994824-4462543.post@n2.nabble.com> I did not have the correct version of GDAL in my OSGeo4W Mapserver. Now I installed a Linux version in a virtual machine instead and now I have managed to get a bit further. But now all my GetMap queries result in 500-Internal server error. When I begin to look through log files this is everything I can find in the Apache error_log: Tue Jan 26 19:16:02 2010] [error] [client 10.46.1.100] malformed header from script. Bad header=GribLen == 130404: mapserv In my MAP-file I set DEBUG 5 but all that was shown in the log is: [Tue Jan 26 19:16:01 2010].792879 msDrawRasterLayerLow(gfs.t00z.pgrbf03): entering. [Tue Jan 26 19:16:02 2010].641350 msDrawMap(): Layer 0 (gfs.t00z.pgrbf03), 0.857s [Tue Jan 26 19:16:02 2010].641450 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 26 19:16:02 2010].641468 msDrawMap() total time: 0.865s [Tue Jan 26 19:16:02 2010].818726 msSaveImage() total time: 0.177s [Tue Jan 26 19:16:02 2010].818876 mapserv request processing time (msLoadMap not incl.): 1.044s [Tue Jan 26 19:16:02 2010].818906 msFreeMap(): freeing map at 0x940c738. I did one more test. gdal_translate -b 2 gfs.t00z.pgrbf03 test.tif And then copied the definitions of my grib-layer to a new layer and there use the tif-file as data and then it works. Anyone who has any idea on what might wrong? My setup: Ubuntu 9.10 server mapserv -v MapServer version 5.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE The gribfile I am trying is from Noaa GFS model. I have tested the Mapserver using QGis. My MAP file looks like this: # Map file created from QGIS project file C:/Program Files/Quantum GIS Enceladus/testProj.qgs # Edit this file to customize for your map interface # (Created with PyQgis MapServer Export plugin) MAP NAME "QGIS-MAP" # Map image size SIZE 300 200 UNITS meters CONFIG "MS_ERRORFILE" "/tmp/mapserver.log" DEBUG 5 EXTENT -9.000000 -110.772277 369.000000 109.772277 FONTSET '../etc/fonts.txt' SYMBOLSET '../etc/symbols.sym' PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END # Background color for the map canvas -- change as desired IMAGECOLOR 255 255 255 IMAGEQUALITY 95 IMAGETYPE png OUTPUTFORMAT NAME png DRIVER 'GD/PNG' MIMETYPE 'image/png' IMAGEMODE RGBA EXTENSION 'png' END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. #IMAGEPATH '/tmp/ms_tmp/' # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration #IMAGEURL '/ms_tmp/' IMAGEPATH "/opt/fgs/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" LOG "/tmp/gmap.log" # WMS server settings METADATA 'ows_title' 'QGIS-MAP' 'ows_onlineresource' 'http://10.46.1.101/cgi-bin/mapserv?map=/opt/fgs/apps/gmap-demo-cvs_MS_VERSION_54/htdocs/grib.map' 'ows_srs' 'EPSG:4326' END #Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation TEMPLATE 'templates/grib.html' END LAYER NAME 'gfs.t00z.pgrbf03' TYPE RASTER DUMP true TEMPLATE fooOnlyForWMSGetFeatureInfo EXTENT -9.000000 -110.772277 369.000000 109.772277 DATA '/opt/fgs/apps/gmap-demo-cvs_MS_VERSION_54/data/gfs.t00z.pgrbf03' METADATA 'ows_title' 'gfs.t00z.pgrbf03' END STATUS OFF TRANSPARENCY 10 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END PROCESSING 'BANDS=1' CLASS NAME 'red' EXPRESSION ([pixel] < -3) STYLE COLOR 255 0 0 END END CLASS NAME 'green' EXPRESSION ([pixel] >= -3 and [pixel] < 3) STYLE COLOR 0 255 0 END END CLASS NAME 'blue' EXPRESSION ([pixel] >= 3) STYLE COLOR 0 0 255 END END END LAYER NAME 'gfstif' TYPE RASTER DUMP true TEMPLATE fooOnlyForWMSGetFeatureInfo EXTENT -9.000000 -110.772277 369.000000 109.772277 DATA '/opt/fgs/apps/gmap-demo-cvs_MS_VERSION_54/htdocs/test.tif' METADATA 'ows_title' 'gfstif' END STATUS OFF TRANSPARENCY 10 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END PROCESSING 'BANDS=1' CLASS NAME 'red' EXPRESSION ([pixel] < -3) STYLE COLOR 255 0 0 END END CLASS NAME 'green' EXPRESSION ([pixel] >= -3 and [pixel] < 3) STYLE COLOR 0 255 0 END END CLASS NAME 'blue' EXPRESSION ([pixel] >= 3) STYLE COLOR 0 0 255 END END END END -- View this message in context: http://n2.nabble.com/mapserver-grib-example-tp4439271p4462543.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Tue Jan 26 08:55:43 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 26 Jan 2010 10:55:43 -0600 Subject: [mapserver-users] FOSS4G 2010 Call for Workshops and Tutorials Message-ID: Barcelona, Spain. 15 January 2010. The Free and Open Source Software for Geospatial (FOSS4G) conference is pleased to announce a Call for Workshops and Tutorials for the 2010 conference, being held September 6-9, 2010, in Barcelona, Spain. FOSS4G is the international "gathering of tribes" for open source geospatial communities. Users and developers are encouraged to present their latest projects and software to demonstrate the power of Open Source for system integration through a series of workshop sessions and tutorial presentations. Session participants should expect to see presentations on both geospatial open source and propriety software integration along with pure open source solutions. Workshops ---------------- Workshops are expected to be 3 hour hands-on experiences with participants following along with the instructor, working directly with the application under discussion. All workshop rooms will be equipped with computers to support this vision. A projector will be provided for each computer room for use within a workshop. Instructors will need to discuss pre-installation requirements with the Conference Organising Committee if required. Workshops are expected to require considerable effort to create, with past experience showing that three days of preparation per hour of presentation are required to produce a high quality workshop. Additionally you will be expected to develop material for attendees to take home with them, such as handouts, workbook, CD-ROMs, etc. Due to the effort involved in producing and presenting a workshop, instructors will receive a single complementary registration to the conference for delivering a workshop. All workshop submissions will be considered, but particular interest will be shown in: * Practical Introduction to FOSS4G software * Integrating Open Source * Spatial Data Infrastructure Tutorials ------------ Tutorials are 90 minute sessions during the regular presentations portion of the conference. Tutorial rooms will not be equipped with computers. However, presenters may make use of delegate laptops and the FOSS4G LiveDVD. Preference will be given to hands-on tutorials. Any hands-on aspects to a tutorial will be the responsibility of the presenter and needs to be described in the tutorial description. Presenters making use of the LiveDVD will be expected to contribute to testing pre-releases to ensure material and software is properly installed. To discuss your requirements for LiveDVD, please contact the LiveDVD community: http://wiki.osgeo.org/wiki/Live_GIS_Disc#Contact_Us. All tutorial submissions will be considered, but particular interest will be shown in the following topics: * Practical Introductions * Interoperability * Integration * Performance tuning * SDI services * Mobile/phone applications Application form ----------------------- Follow this link to submit your proposals: http://intranet.pacifico-meetings.com:8081/abscoweb/Inicio.iface?id=14 Please add a 300 word abstract, in plain text format (pasting a text with style markup could make the process fail). The deadline for workshop / tutorial submissions is January 30. FOSS4G 2010 Highlights ------------------------------------ Workshops and Tutorials: Workshops and Tutorials allow presenters to lead attendees through applications, integration solutions, or other topics in an interactive environment. Half-day workshops (3 hours) will be held in computer rooms on September 6 (afternoon session) and 7 (morning session). Tutorials (90 minutes) will be held in standard presentation rooms, run concurrently with presentations on 7-9 September. Presentations: The meat of the conference are it's presentations. Drawing on a huge community of local, regional and international experts we will discuss some of the most current and poignant topics in the industry today. Academic Track: The academic sessions, with paper publications and poster presentations, aims at bringing together researchers, developers, users and practitioners carrying out research and development in the geospatial and the free and open source fields and willing to share original and recent research developments and experiences. The academic track will act as an inventory of current research topics, with the main objective of promoting cooperative research between OSGeo developers and the academia. FOSS4G Live DVD: LiveDVDs, based on the Xubuntu operating system and including Geospatial Open Source Software, will be given to all delegates. Users can boot a Live DVD on their computer and trial the software without installing or effecting the existing system. http://wiki.osgeo.org/wiki/Live_GIS_Disc Installfest: The Installfest will give delegates the opportunity to meet in a common area and install a wide variety of FOSS software on their laptops, netbooks or any other system they care to bring in. Community members will assist with any troubles and provide help and insight into the software. Birds of a Feather: Rooms have been set aside for semi-organised meetings between like minded groups. Some prominent community initiatives started in prior FOSS4G Birds of a Feather sessions. Code Sprint: The day after the conference is reserved for the Hackers' Code Sprint. Hackers will be locked in a basement with lots of bandwidth, plugs and coffee. :) Upcoming milestones ------------------------------- 15 Jan 2010, Call for Workshops/Tutorials opens 30 Jan 2010, Call for Workshops/Tutorials closes 1 Feb 2010, Call for Abstracts opens 16 Feb 2010, Notification of acceptance for workshops/tutorials 22 Feb 2010, Registration for workshop and tutorials opens 1 May 2010, Abstract submission deadline 1 Jun 2010, Presenters notified of acceptance for talks 15 Jun 2010, Author/Early registration deadline Aug 2010, Completed program available 6-7 Sep 2010, FOSS4G Workshops 7-9 Sep 2010, FOSS4G Presentations and Tutorials 10 Sep 2010, FOSS4G Code Sprint Please visit our site to subscribe and find more information about this conference: http://2010.foss4g.org Or contact Conference Chair for details about this announcement: Lorenzo Becchi E-mail: lbecchi at osgeo.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From stelaanders at gmail.com Tue Jan 26 11:33:29 2010 From: stelaanders at gmail.com (stela anders) Date: Tue, 26 Jan 2010 16:33:29 -0300 Subject: [mapserver-users] Re: WMSGetFeatureInfo problem (No results, using OL) In-Reply-To: References: Message-ID: Any idea whats happening? I lost all day trying to fix that, but got nothing :( Stella 2010/1/25 stela anders > Hello guys... > > My mapfile: > > ... > PROJECTION > "+init=epsg:4326" > END > > WEB > IMAGEPATH 'C:\temp\' > IMAGEURL '/tmp/' > QUERYFORMAT text/html > > METADATA > "wms_title" "WMS Server" > "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?" > "wms_srs" "EPSG:4326 EPSG:42304 EPSG:42101 EPSG:4269" > 'wms_feature_info_mime_type' "text/html" > END > END > > QUERYMAP > COLOR 255 0 0 > SIZE -1 -1 > STATUS OFF > STYLE hilite > END > ... > > LAYER > ... > METADATA > "wms_title" "Test" ##required > "wms_include_items" "all" > "wms_feature_info_mime_type" "text/html" > END > TYPE POINT > STATUS ON > INCLUDE "Connection.map" > DATA "the_geom from viwtest USING UNIQUE oid USING SRID=0" > PROJECTION > "+init=epsg:4326" > END > > TOLERANCE 5 > HEADER "header.html" > TEMPLATE "template.html" > FOOTER "footer.html" > ... > > Templates: > Header.html > > > > MapServer Template Sample > > > Template.html > > > OID: [oid] > > > Footer.html > > > WMSGetFeatureInfo Javascript (OpenLayer) > > var infoCtl = new OpenLayers.Control.WMSGetFeatureInfo({ > layers: [_test], > title: 'Click on the map to get information on layers', > > queryVisible: true, > infoFormat: 'text/html' > }); > > infoCtl.events.register("getfeatureinfo",map,showInfo); > > function showInfo(evt) { > alert(evt.text); > } > > > I?m getting that : > > > > MapServer Template Sample > Content-type: application/vnd.ogc.se_xml > > > http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> > > > > > > > Any idea whats happening? > > Stella > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Tue Jan 26 11:37:29 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Tue, 26 Jan 2010 13:37:29 -0600 Subject: [mapserver-users] Re: WMSGetFeatureInfo problem (No results, using OL) In-Reply-To: References: Message-ID: Stella, What does the getFeatureInfo call look like? Use Firebug to find the URL used to make the request and post it here.' David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of stela anders Sent: Tuesday, January 26, 2010 1:33 PM To: MapserverList OSGEO Subject: [mapserver-users] Re: WMSGetFeatureInfo problem (No results, using OL) Any idea whats happening? I lost all day trying to fix that, but got nothing :( Stella 2010/1/25 stela anders > Hello guys... My mapfile: ... PROJECTION "+init=epsg:4326" END WEB IMAGEPATH 'C:\temp\' IMAGEURL '/tmp/' QUERYFORMAT text/html METADATA "wms_title" "WMS Server" "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?" "wms_srs" "EPSG:4326 EPSG:42304 EPSG:42101 EPSG:4269" 'wms_feature_info_mime_type' "text/html" END END QUERYMAP COLOR 255 0 0 SIZE -1 -1 STATUS OFF STYLE hilite END ... LAYER ... METADATA "wms_title" "Test" ##required "wms_include_items" "all" "wms_feature_info_mime_type" "text/html" END TYPE POINT STATUS ON INCLUDE "Connection.map" DATA "the_geom from viwtest USING UNIQUE oid USING SRID=0" PROJECTION "+init=epsg:4326" END TOLERANCE 5 HEADER "header.html" TEMPLATE "template.html" FOOTER "footer.html" ... Templates: Header.html MapServer Template Sample Template.html OID: [oid] Footer.html WMSGetFeatureInfo Javascript (OpenLayer) var infoCtl = new OpenLayers.Control.WMSGetFeatureInfo({ layers: [_test], title: 'Click on the map to get information on layers', queryVisible: true, infoFormat: 'text/html' }); infoCtl.events.register("getfeatureinfo",map,showInfo); function showInfo(evt) { alert(evt.text); } I?m getting that : MapServer Template Sample Content-type: application/vnd.ogc.se_xml Any idea whats happening? Stella -------------- next part -------------- An HTML attachment was scrubbed... URL: From tspradley at snoogems.com Tue Jan 26 15:51:05 2010 From: tspradley at snoogems.com (Ted Spradley) Date: Tue, 26 Jan 2010 15:51:05 -0800 (PST) Subject: [mapserver-users] Repeating annotation, using LABEL_NO_CLIP=1 with Open Layers Message-ID: <1264549865879-4464229.post@n2.nabble.com> Hi everyone, I recently added a copyright notice via an annotation layer. When the mapfile is accessed as a WMS via OpenLayers, the annotation repeats on every tile. I am using the directive: PROCESSING 'LABEL_NO_CLIP=1' Setting the OL WMS call to Untiled did cause the annotation to disappear altogether. Any thoughts? Thank you! Ted S. /* The layer */ LAYER NAME "copyright" STATUS ON TYPE annotation PROCESSING 'LABEL_NO_CLIP=1' TRANSFORM ll #set the image origin to be lower left FEATURE POINTS 100 -20 #set the offset from lower left position in pixels END TEXT "copyright text" #this is your displaying text END CLASS LABEL #defines the font, colors etc. of the text FONT "ARIAL" TYPE TRUETYPE SIZE 8 BUFFER 1 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 END END UNITS PIXELS #sets the units for the feature object END ----- Thank you, Ted S MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Linux/Fedora7 -- View this message in context: http://n2.nabble.com/Repeating-annotation-using-LABEL-NO-CLIP-1-with-Open-Layers-tp4464229p4464229.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bob.b at gritechnologies.com Tue Jan 26 17:19:37 2010 From: bob.b at gritechnologies.com (Bob Basques) Date: Tue, 26 Jan 2010 19:19:37 -0600 Subject: [mapserver-users] Repeating annotation, using LABEL_NO_CLIP=1 with Open Layers In-Reply-To: <1264549865879-4464229.post@n2.nabble.com> References: <1264549865879-4464229.post@n2.nabble.com> Message-ID: <4B5F94A9.2040605@gritechnologies.com> It probably still there, only out of frame if you are using OpenLayers, which I believe grabs a tile larger than the current view for panning by the user. Other than adding another layer or restricting the tiles retrieved to the same size as the current view port, I don't know of a way of getting a copyright into view. There may be some OpenLayers settings that aloow for a center tile that is as large as the current view with tiles arouand the edges, but this may be a performance hit. bobb On 1/26/2010 5:51 PM, Ted Spradley wrote: > Hi everyone, > > I recently added a copyright notice via an annotation layer. When the > mapfile is accessed as a WMS > via OpenLayers, the annotation repeats on every tile. I am using the > directive: > PROCESSING 'LABEL_NO_CLIP=1' > > Setting the OL WMS call to Untiled did cause the annotation to disappear > altogether. Any thoughts? > > Thank you! > Ted S. > > /* The layer */ > > LAYER > NAME "copyright" > STATUS ON > TYPE annotation > PROCESSING 'LABEL_NO_CLIP=1' > TRANSFORM ll #set the image origin to be lower left > FEATURE > POINTS > 100 -20 #set the offset from lower left position in pixels > END > TEXT "copyright text" #this is your displaying text > END > CLASS > LABEL #defines the font, colors etc. of the text > FONT "ARIAL" > TYPE TRUETYPE > SIZE 8 > BUFFER 1 > COLOR 0 0 0 > BACKGROUNDCOLOR 255 255 255 > END > END > UNITS PIXELS #sets the units for the feature object > END > > > > ----- > Thank you, > Ted S > > MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS > INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > Linux/Fedora7 > From cart2it at gmail.com Tue Jan 26 23:07:19 2010 From: cart2it at gmail.com (Alexander Bonatti) Date: Wed, 27 Jan 2010 08:07:19 +0100 Subject: [mapserver-users] PHP SOAP extension depreciated in ms4w 3.0 beta7 ? Message-ID: Checking php extensions in this package (ms4w 3.0 beta7), i miss php_soap.dll. Why has been removed? (since previous versions of ms4w have PHP compiled with this ext) Thanks in advance. -- Alexander Bonatti Environment engineer and GIS-IT consultant -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Jan 27 00:09:01 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 27 Jan 2010 10:09:01 +0200 Subject: [mapserver-users] Re: WMSGetFeatureInfo problem (No results, using OL) In-Reply-To: References: Message-ID: Hi, Did you try to find the problem first? You seem to run your own Mapserver. Then you can see from the Apache access log the requests that your client is actually sending. MS4W installation the log file is by default at ms4w\apache\logs\access.log Add DEBUG 5 into LAYER definitions in your mapfile. Copy and paste some failing GetFeatureInfo request from access log and resent it with web browser. See what comes back, and have a look at the Mapserver errorfile which collects the DEBUG data. It might be better to send GetFeatureInfo requests first against polygon layer because then it is easier to hit a feature by mouse click. By hand editing the request you will have a full control in what happens. When you know that the system works with browser you can trust that Mapserver side is OK and you can continue to OpenLayers or other clients. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta stela anders L?hetetty: 26. tammikuuta 2010 21:33 Vastaanottaja: MapserverList OSGEO Aihe: [mapserver-users] Re: WMSGetFeatureInfo problem (No results,using OL) Any idea whats happening? I lost all day trying to fix that, but got nothing :( Stella 2010/1/25 stela anders Hello guys... My mapfile: ... PROJECTION "+init=epsg:4326" END WEB IMAGEPATH 'C:\temp\' IMAGEURL '/tmp/' QUERYFORMAT text/html METADATA "wms_title" "WMS Server" "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?" "wms_srs" "EPSG:4326 EPSG:42304 EPSG:42101 EPSG:4269" 'wms_feature_info_mime_type' "text/html" END END QUERYMAP COLOR 255 0 0 SIZE -1 -1 STATUS OFF STYLE hilite END ... LAYER ... METADATA "wms_title" "Test" ##required "wms_include_items" "all" "wms_feature_info_mime_type" "text/html" END TYPE POINT STATUS ON INCLUDE "Connection.map" DATA "the_geom from viwtest USING UNIQUE oid USING SRID=0" PROJECTION "+init=epsg:4326" END TOLERANCE 5 HEADER "header.html" TEMPLATE "template.html" FOOTER "footer.html" ... Templates: Header.html MapServer Template Sample Template.html OID: [oid] Footer.html WMSGetFeatureInfo Javascript (OpenLayer) var infoCtl = new OpenLayers.Control.WMSGetFeatureInfo({ layers: [_test], title: 'Click on the map to get information on layers', queryVisible: true, infoFormat: 'text/html' }); infoCtl.events.register("getfeatureinfo",map,showInfo); function showInfo(evt) { alert(evt.text); } I?m getting that : MapServer Template Sample Content-type: application/vnd.ogc.se_xml Any idea whats happening? Stella -------------- next part -------------- An HTML attachment was scrubbed... URL: From beyhan at deprem.gov.tr Wed Jan 27 03:01:55 2010 From: beyhan at deprem.gov.tr (Murat Beyhan) Date: Wed, 27 Jan 2010 13:01:55 +0200 Subject: [mapserver-users] Fatal error: Call to undefined function (dl) In-Reply-To: References: Message-ID: <1264590115.29992.27.camel@sakura.deprem.gov.tr> Hi Friends, I have installed apache 2.2.14 and php 5.3.1 then I have installed mapserver 5.6.1 with phpMapScript module. I have try to open a phpmapscript file on the server, which was worked fine for php4, but the following message occured Fatal error: Call to undefined function dl() in /usr/local/httpd/htdocs/zone/zone30.php on line 3 line 3 in my php file is as follows dl('php_mapscript.so'); so I have enabled first dl on the php.ini file than still this problem couldn't solved and I read php manuals and dl function was deprecated so I removed that line but this time I faced the following error Fatal error: Call to undefined function ms_GetVersion() in IT seems php_mapscript module could not install properly... When I try to use phpinfo_mapscript.phtml also same problem occured. in httpd.conf file php loaded and other php pages works fine except than php mapscript LoadModule php5_module modules/libphp5.so so I have created a directory under php directory named extensions where I installed than I put php_mapscript.so into there. Than I write the path into php.ini file as follows extension_dir = "/usr/local/httpd/php/extensions" but still could not open phpmapscript files on the server. Could you help me please Murat -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From dejan.gambin at pula.hr Wed Jan 27 04:38:56 2010 From: dejan.gambin at pula.hr (Dejan Gambin) Date: Wed, 27 Jan 2010 13:38:56 +0100 Subject: [mapserver-users] Creating world files from raster images referenced in dwg In-Reply-To: <4B29D8A6.4010501@gslab.com> References: 4A51D932.5157.008F.0@dnr.state.mn.us <4B29D8A6.4010501@gslab.com> Message-ID: <33FC6810-E5E9-48F3-8188-65D4DE3862E8@pula.hr> Hi, I suppose this is not the right place to ask, but maybe someone can give me a hint: I have a dwg file with a bunch of raster images referenced. In the background, these images are tiff files but they have no georeference information. I know there are many utlities/programs that can export/create georeferenced images (world files) from AutoCad (Raster Design for example). But is there any way I can do it without having to install AutoCad? thanks very much for any possible hint regards, dejan From jmckenna at gatewaygeomatics.com Wed Jan 27 05:02:42 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 27 Jan 2010 09:02:42 -0400 Subject: [mapserver-users] PHP SOAP extension depreciated in ms4w 3.0 beta7 ? In-Reply-To: References: Message-ID: <4B603972.6060401@gatewaygeomatics.com> Alexander Bonatti wrote: > Checking php extensions in this package (ms4w 3.0 beta7), i miss > php_soap.dll. > Why has been removed? (since previous versions of ms4w have PHP > compiled with this ext) > > Hello Alex, You should always use the MS4W email list for questions regarding MS4W (subscribe at http://lists.maptools.org/mailman/listinfo/ms4w-users)...otherwise the emails might be missed. (beta9 was announced last night on that list, for example) Since MS4W 3.0 (and PHP 5.3.x) there were many changes, forcing us to compile PHP and all of its extensions manually, instead of using a ready-made archive. It is possible that some extensions are missing; please report any problems using the MS4W issue tracker - I have created the ticket, which you can add yourself to its CC list and follow the progress (http://bugzilla.maptools.org/show_bug.cgi?id=2154). If you need any custom extension or changes to MS4W, faster than the release, you can always contact the Gateway Geomatics team for a custom build. Thanks. -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From nikos at maich.gr Wed Jan 27 05:03:20 2010 From: nikos at maich.gr (nikos at maich.gr) Date: Wed, 27 Jan 2010 15:03:20 +0200 (EET) Subject: [mapserver-users] De-coupling legend from class name In-Reply-To: <20100127081020.47F6EE0154A@lists.osgeo.org> References: <20100127081020.47F6EE0154A@lists.osgeo.org> Message-ID: <2421.193.218.36.79.1264597400.squirrel@193.218.36.79> Hello, It's been a while since I've been using MS and I have the following q or observation. AFAIU, MS only supports run-time substitution for the following parameters ? LAYER: DATA (must validate against DATAPATTERN) ? LAYER: TILEINDEX ? LAYER: CONNECTION ? LAYER: FILTER ? CLASS EXPRESSION Layer color is not in this list. So, in order to permit a user to change the layer colors of his map I am using the map_object_property type syntax passed to the cgi as, for example when using a select for picking colors TOWNS; TOWNS; TOWNS; TOWNS; > > TOWNS; > >