From mmcinnis59 at msn.com Thu Aug 1 11:06:13 2013 From: mmcinnis59 at msn.com (Michael McInnis) Date: Thu, 1 Aug 2013 11:06:13 -0700 Subject: [mapserver-users] Can't draw points from shapefile Message-ID: I have not been able to draw basic points from a shapefile. I can draw lines and polygons. Does anyone see a problem with the hwypoints layer? What is the minimal layer definition to display shapefile points? Thanks PS - shapefile points draw in QGIS. MAP DEBUG 5 CONFIG "MS_ERRORFILE" "/media/D_Drive/www/gis/logs/error_file.log" EXTENT -180 -90 180 90 IMAGECOLOR 153 179 204 IMAGETYPE PNG24 SHAPEPATH data/ FONTSET data/fonts/fonts.list UNITS MILES SIZE 1000 1000 # Added PROJECTION #"+proj=mill +units=m" "+proj=longlat +ellps=WGS84" END OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" END WEB #IMAGEPATH "/home/www/gis/tmp/" IMAGEPATH "/media/D_Drive/www/gis/tmp/" IMAGEURL "gis/tmp/" END # good LAYER DATA "world_noUSA" NAME "world" TYPE POLYGON STATUS ON LABELITEM "NAME" CLASS STYLE COLOR 217 223 195 OUTLINECOLOR 181 190 148 END LABEL FONT "arial" PARTIALS false #TYPE truetype SIZE 8 MINFEATURESIZE 20 MINDISTANCE 1000 COLOR 123 130 140 END END PROJECTION "+proj=longlat +ellps=WGS84" END END # good LAYER DATA "hwypoints" NAME "hwypoints" TYPE POINT STATUS ON LABELITEM "HWYNUMBER" CLASS STYLE #COLOR 255 1 1 #OUTLINECOLOR 181 190 148 END LABEL FONT "arial" # PARTIALS false # #TYPE truetype SIZE 8 # MINFEATURESIZE 20 # MINDISTANCE 1000 COLOR 123 130 140 END END PROJECTION "+proj=longlat +ellps=WGS84" END END # good LAYER NAME "us_interstate" DATA "US-Interstate-Low" TYPE LINE STATUS ON CLASS #MINSCALEDENOM 300000 STYLE COLOR 190 87 99 SIZE 1 #SYMBOL "line" ANTIALIAS TRUE END END CLASS #MINSCALEDENOM 30000 #MAXSCALEDENOM 300000 STYLE COLOR 190 87 99 SIZE 2 #SYMBOL "line" ANTIALIAS TRUE END END CLASS #MINSCALEDENOM 2000 #MAXSCALEDENOM 30000 STYLE COLOR 150 47 59 SIZE 4 #SYMBOL "line" ANTIALIAS TRUE END END PROJECTION "+proj=longlat +ellps=WGS84" END END END Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Sat Aug 3 08:23:55 2013 From: bfraser at geoanalytic.com (Brent Fraser) Date: Sat, 03 Aug 2013 09:23:55 -0600 Subject: [mapserver-users] Can't draw points from shapefile In-Reply-To: References: Message-ID: <51FD208B.1010503@geoanalytic.com> Michael, A minor point: Change UNITS DD in the map portion (UNITS, EXTENT, and PROJECTION are all related). But the basic problem is a lack of a SYMBOL object in the STYLE object of the points layer. I didn't think it was necessary (it wasn't in some previous versions?). Back in the day, I thought the default was SYMBOL 0 which was defined as a filled circle therefore no explicit definition or reference required in the map file. It looks like this is no longer the case. So the solution is to add a symbol definition to the map file (between the WEB and LAYER objects): #Circle symbol SYMBOL NAME 'CIRCLE' TYPE ellipse FILLED true POINTS 1 1 END END and add a reference to it in the LAYER's STYLE object: STYLE SYMBOL 'CIRCLE' COLOR 255 1 1 END Best Regards, Brent Fraser On 8/1/2013 12:06 PM, Michael McInnis wrote: > I have not been able to draw basic points from a shapefile. I can draw > lines and polygons. > Does anyone see a problem with the hwypoints layer? > What is the minimal layer definition to display shapefile points? > > Thanks > > PS - shapefile points draw in QGIS. > > MAP > DEBUG 5 > CONFIG "MS_ERRORFILE" "/media/D_Drive/www/gis/logs/error_file.log" > EXTENT -180 -90 180 90 > IMAGECOLOR 153 179 204 > IMAGETYPE PNG24 > SHAPEPATH data/ > FONTSET data/fonts/fonts.list > UNITS MILES > SIZE 1000 1000 # Added > > PROJECTION > #"+proj=mill +units=m" > "+proj=longlat +ellps=WGS84" > END > > OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > END > > WEB > #IMAGEPATH "/home/www/gis/tmp/" > IMAGEPATH "/media/D_Drive/www/gis/tmp/" > IMAGEURL "gis/tmp/" > END > > > # good > LAYER > DATA "world_noUSA" > NAME "world" > TYPE POLYGON > STATUS ON > LABELITEM "NAME" > CLASS > STYLE > COLOR 217 223 195 > OUTLINECOLOR 181 190 148 > END > LABEL > FONT "arial" > PARTIALS false > #TYPE truetype > SIZE 8 > MINFEATURESIZE 20 > MINDISTANCE 1000 > COLOR 123 130 140 > END > END > PROJECTION > "+proj=longlat +ellps=WGS84" > END > END > > # good > LAYER > DATA "hwypoints" > NAME "hwypoints" > TYPE POINT > STATUS ON > LABELITEM "HWYNUMBER" > CLASS > STYLE > #COLOR 255 1 1 > #OUTLINECOLOR 181 190 148 > END > LABEL > FONT "arial" > # PARTIALS false > # #TYPE truetype > SIZE 8 > # MINFEATURESIZE 20 > # MINDISTANCE 1000 > COLOR 123 130 140 > END > END > PROJECTION > "+proj=longlat +ellps=WGS84" > END > END > > # good > LAYER > NAME "us_interstate" > DATA "US-Interstate-Low" > TYPE LINE > STATUS ON > CLASS > #MINSCALEDENOM 300000 > STYLE > COLOR 190 87 99 > SIZE 1 > #SYMBOL "line" > ANTIALIAS TRUE > END > END > CLASS > #MINSCALEDENOM 30000 > #MAXSCALEDENOM 300000 > STYLE > COLOR 190 87 99 > SIZE 2 > #SYMBOL "line" > ANTIALIAS TRUE > END > END > CLASS > #MINSCALEDENOM 2000 > #MAXSCALEDENOM 30000 > STYLE > COLOR 150 47 59 > SIZE 4 > #SYMBOL "line" > ANTIALIAS TRUE > END > END > PROJECTION > "+proj=longlat +ellps=WGS84" > END > END > END > > Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701 > > > _______________________________________________ > 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 mmcinnis59 at msn.com Sat Aug 3 08:59:51 2013 From: mmcinnis59 at msn.com (Michael McInnis) Date: Sat, 3 Aug 2013 08:59:51 -0700 Subject: [mapserver-users] Can't draw points from shapefile In-Reply-To: <51FD208B.1010503@geoanalytic.com> References: , <51FD208B.1010503@geoanalytic.com> Message-ID: Thank you for your valuable response. I've struggled through 25 layers in an existing .map file, some defined as index shape file coverages andnow I think I have them all properly configured. Most of the problems were deprecated syntax, bad pathsin index shape files or scale related omissions I've learned to overcome with mapserver Url parameters. Thanks to all the helpful tips I've received on this challenge. Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701 Date: Sat, 3 Aug 2013 09:23:55 -0600 From: bfraser at geoanalytic.com To: mmcinnis59 at msn.com CC: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Can't draw points from shapefile Michael, A minor point: Change UNITS DD in the map portion (UNITS, EXTENT, and PROJECTION are all related). But the basic problem is a lack of a SYMBOL object in the STYLE object of the points layer. I didn't think it was necessary (it wasn't in some previous versions?). Back in the day, I thought the default was SYMBOL 0 which was defined as a filled circle therefore no explicit definition or reference required in the map file. It looks like this is no longer the case. So the solution is to add a symbol definition to the map file (between the WEB and LAYER objects): #Circle symbol SYMBOL NAME 'CIRCLE' TYPE ellipse FILLED true POINTS 1 1 END END and add a reference to it in the LAYER's STYLE object: STYLE SYMBOL 'CIRCLE' COLOR 255 1 1 END Best Regards, Brent Fraser On 8/1/2013 12:06 PM, Michael McInnis wrote: I have not been able to draw basic points from a shapefile. I can draw lines and polygons. Does anyone see a problem with the hwypoints layer? What is the minimal layer definition to display shapefile points? Thanks PS - shapefile points draw in QGIS. MAP DEBUG 5 CONFIG "MS_ERRORFILE" "/media/D_Drive/www/gis/logs/error_file.log" EXTENT -180 -90 180 90 IMAGECOLOR 153 179 204 IMAGETYPE PNG24 SHAPEPATH data/ FONTSET data/fonts/fonts.list UNITS MILES SIZE 1000 1000 # Added PROJECTION #"+proj=mill +units=m" "+proj=longlat +ellps=WGS84" END OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" END WEB #IMAGEPATH "/home/www/gis/tmp/" IMAGEPATH "/media/D_Drive/www/gis/tmp/" IMAGEURL "gis/tmp/" END # good LAYER DATA "world_noUSA" NAME "world" TYPE POLYGON STATUS ON LABELITEM "NAME" CLASS STYLE COLOR 217 223 195 OUTLINECOLOR 181 190 148 END LABEL FONT "arial" PARTIALS false #TYPE truetype SIZE 8 MINFEATURESIZE 20 MINDISTANCE 1000 COLOR 123 130 140 END END PROJECTION "+proj=longlat +ellps=WGS84" END END # good LAYER DATA "hwypoints" NAME "hwypoints" TYPE POINT STATUS ON LABELITEM "HWYNUMBER" CLASS STYLE #COLOR 255 1 1 #OUTLINECOLOR 181 190 148 END LABEL FONT "arial" # PARTIALS false # #TYPE truetype SIZE 8 # MINFEATURESIZE 20 # MINDISTANCE 1000 COLOR 123 130 140 END END PROJECTION "+proj=longlat +ellps=WGS84" END END # good LAYER NAME "us_interstate" DATA "US-Interstate-Low" TYPE LINE STATUS ON CLASS #MINSCALEDENOM 300000 STYLE COLOR 190 87 99 SIZE 1 #SYMBOL "line" ANTIALIAS TRUE END END CLASS #MINSCALEDENOM 30000 #MAXSCALEDENOM 300000 STYLE COLOR 190 87 99 SIZE 2 #SYMBOL "line" ANTIALIAS TRUE END END CLASS #MINSCALEDENOM 2000 #MAXSCALEDENOM 30000 STYLE COLOR 150 47 59 SIZE 4 #SYMBOL "line" ANTIALIAS TRUE END END PROJECTION "+proj=longlat +ellps=WGS84" END END END Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701 _______________________________________________ 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 it at geoinformaticlanka.com Sun Aug 4 23:59:36 2013 From: it at geoinformaticlanka.com (it) Date: Mon, 5 Aug 2013 12:29:36 +0530 Subject: [mapserver-users] ms4w problem Message-ID: <000701ce91a9$58b39df0$0a1ad9d0$@com> Hi, I've recently upgraded ms4w 3.0.6 which has upgraded version of Apache, the older version mapserver 2.3.1 Apache has quite no of vulnerabilities. As a result the vector files are not loaded, can anyone know what has actually happened, where can I look on to overcome this issue. Please help me. Thank you, Logendra -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Mon Aug 5 02:46:32 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 5 Aug 2013 09:46:32 +0000 Subject: [mapserver-users] ms4w problem Message-ID: <84446DEF76453C439E9E97E438E13A63C1EDD9@suutari.haapa.mmm.fi> Hi, Please help us by showing us the relevant part of your mapfile and by adding DEBUG 5 into your layer definitions and sending the error message from the log to us too. But after reading this http://www.mapserver.org/optimization/debugging.html and this http://mapserver.org/utilities/shp2img.html you will probably be able to solve you troubles by yourself. -Jukka Rahkonen- it wrote: Hi, I've recently upgraded ms4w 3.0.6 which has upgraded version of Apache, the older version mapserver 2.3.1 Apache has quite no of vulnerabilities. As a result the vector files are not loaded, can anyone know what has actually happened, where can I look on to overcome this issue. Please help me. Thank you, Logendra -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at fuchsschwanzdomain.de Mon Aug 5 07:52:22 2013 From: lists at fuchsschwanzdomain.de (Sven Geggus) Date: Mon, 5 Aug 2013 14:52:22 +0000 (UTC) Subject: [mapserver-users] Using fallback fonts? Message-ID: Hello, in Mapnik it is possible to use an alternate font if a character is not available on the standard font: With Openstreetmap Data it is often the case, that a given character is only available in unifont but not in "DejaVu Sans Book" (the default). If I correctly understand the documentation of FONTSET correctly this is impossible to do this in mapserver. Am I right in this assumption? Sven -- Das allgemeine Pers?nlichkeitsrecht (Art. 2 Abs.1 i.V.m. Art.1 Abs. 1GG) umfasst das Grundrecht auf Gew?hrleistung der Vertraulichkeit und Integrit?t informationstechnischer Systeme. (BVerfG, 1BvR 370/07) /me is giggls at ircnet, http://sven.gegg.us/ on the Web From thomas.bonfort at gmail.com Mon Aug 5 08:01:26 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 5 Aug 2013 17:01:26 +0200 Subject: [mapserver-users] Using fallback fonts? In-Reply-To: References: Message-ID: it's possible in mapserver since version 6.2 : http://mapserver.org/development/rfc/ms-rfc-80.html . Note that there's a hardcoded limit of 4 fallbacks font (1 main font + 4 fallbacks). In mapserver 7.0 this limit will be lifted, and it will also be possible to prioritize which font to use for a specific script ("script" is more or less equivalent to "language") -- thomas On 5 August 2013 16:52, Sven Geggus wrote: > Hello, > > in Mapnik it is possible to use an alternate font if a character is not > available on the standard font: > > > > > > > With Openstreetmap Data it is often the case, that a given character is only > available in unifont but not in "DejaVu Sans Book" (the default). > > If I correctly understand the documentation of FONTSET correctly this is > impossible to do this in mapserver. > > Am I right in this assumption? > > Sven > > -- > Das allgemeine Pers?nlichkeitsrecht (Art. 2 Abs.1 i.V.m. Art.1 Abs. 1GG) > umfasst das Grundrecht auf Gew?hrleistung der Vertraulichkeit und Integrit?t > informationstechnischer Systeme. (BVerfG, 1BvR 370/07) > /me is giggls at ircnet, http://sven.gegg.us/ on the Web > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From lists at fuchsschwanzdomain.de Mon Aug 5 08:09:23 2013 From: lists at fuchsschwanzdomain.de (Sven Geggus) Date: Mon, 5 Aug 2013 15:09:23 +0000 (UTC) Subject: [mapserver-users] Using fallback fonts? References: Message-ID: thomas bonfort wrote: > it's possible in mapserver since version 6.2 : > http://mapserver.org/development/rfc/ms-rfc-80.html . Note that > there's a hardcoded limit of 4 fallbacks font (1 main font + 4 > fallbacks). In mapserver 7.0 this limit will be lifted, and it will > also be possible to prioritize which font to use for a specific script > ("script" is more or less equivalent to "language") Ah, nice! I'll try this ASAP. Speaking about "script" defaults, will it be possible to change the fonts-size based on those as well? Reason is, that non-latin fonts will often need different sizes to make them readable on a map. Sven -- "In the land of the brave and the free, we defend our freedom with the GNU GPL" (Richard M. Stallman on www.gnu.org) /me is giggls at ircnet, http://sven.gegg.us/ on the Web From thomas.bonfort at gmail.com Mon Aug 5 08:24:53 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 5 Aug 2013 17:24:53 +0200 Subject: [mapserver-users] Using fallback fonts? In-Reply-To: References: Message-ID: It's not planned, but you can get in touch if that is something you would be able to fund. The per-script selection however allows you to rarely/never have to fallback onto unifont at all, which in my experience is the font with sizing issues. -- thomas On 5 August 2013 17:09, Sven Geggus wrote: > thomas bonfort wrote: > >> it's possible in mapserver since version 6.2 : >> http://mapserver.org/development/rfc/ms-rfc-80.html . Note that >> there's a hardcoded limit of 4 fallbacks font (1 main font + 4 >> fallbacks). In mapserver 7.0 this limit will be lifted, and it will >> also be possible to prioritize which font to use for a specific script >> ("script" is more or less equivalent to "language") > > Ah, nice! I'll try this ASAP. > > Speaking about "script" defaults, will it be possible to change the > fonts-size based on those as well? > > Reason is, that non-latin fonts will often need different sizes to make them > readable on a map. > > Sven > > -- > "In the land of the brave and the free, we defend our freedom > with the GNU GPL" (Richard M. Stallman on www.gnu.org) > > /me is giggls at ircnet, http://sven.gegg.us/ on the Web > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From mmcinnis59 at msn.com Mon Aug 5 11:05:49 2013 From: mmcinnis59 at msn.com (Michael McInnis) Date: Mon, 5 Aug 2013 11:05:49 -0700 Subject: [mapserver-users] Still can't draw points Message-ID: Dear mapserver-users, This is a follow on question to my post friday. I made some changes suggested by Brent Fraser but still haven't had a graphical success. I think something very basic is wrong with my set up for points.Here is my new attempt, which still fails. I looked in the error log and it seems to be treating the SYMBOL 'square' as a shapefile and says "unable to open file". Thanks MAP DEBUG 5 CONFIG "MS_ERRORFILE" "/media/D_Drive/www/gis/logs/error_file.log" EXTENT -180 -90 180 90 #IMAGECOLOR 153 179 204 IMAGETYPE PNG24 SHAPEPATH data/ FONTSET data/fonts/fonts.list UNITS DD SIZE 1000 500 # Added PROJECTION "+proj=longlat +ellps=WGS84" END OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" END WEB IMAGEPATH "/media/D_Drive/www/gis/tmp/" IMAGEURL "gis/tmp/" END LAYER NAME "city" TYPE POINT STATUS DEFAULT DATA "CityALL" CLASS STYLE SYMBOL "square" SIZE 10 COLOR 255 1 1 OUTLINECOLOR 0 0 0 END END END END Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Mon Aug 5 12:12:21 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 5 Aug 2013 19:12:21 +0000 Subject: [mapserver-users] Still can't draw points In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A63C1F09C@suutari.haapa.mmm.fi> Hi, You have still not defined the symbol "square" that you want to used for drawing. Here comes a quick and not polished example that I have modified from your mapfile. It shows points for me with OpenJUMP with my data "roskis.shp". MAP DEBUG 5 CONFIG "MS_ERRORFILE" "c:\ms4w\tmp\points_error.txt" CONFIG "PROJ_LIB" "C:/ms4w/proj/nad" EXTENT -180 -90 180 90 #IMAGECOLOR 153 179 204 IMAGETYPE PNG24 SHAPEPATH "c:\ms4w\tmp" #FONTSET data/fonts/fonts.list UNITS DD SIZE 1000 500 # Added PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" END WEB METADATA "ows_enable_request" "*" "wms_bbox_extended" "true" "wms_srs" "EPSG:4326" "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=c:\ms4w\apps\points.map" "wms_title" "Draw points example" END END SYMBOL NAME 'CIRCLE' TYPE ellipse FILLED true POINTS 1 1 END END LAYER NAME "city" TYPE POINT STATUS DEFAULT DATA "c:\data\osm\waste_baskets.shp" METADATA "wms_srs" "EPSG:4326" END CLASS STYLE SYMBOL "CIRCLE" SIZE 10 COLOR 255 1 1 OUTLINECOLOR 0 0 0 END END END END -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] k?ytt?j?n Michael McInnis [mmcinnis59 at msn.com] puolesta L?hetetty: 5. elokuuta 2013 21:05 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Still can't draw points Dear mapserver-users, This is a follow on question to my post friday. I made some changes suggested by Brent Fraser but still haven't had a graphical success. I think something very basic is wrong with my set up for points. Here is my new attempt, which still fails. I looked in the error log and it seems to be treating the SYMBOL 'square' as a shapefile and says "unable to open file". Thanks MAP DEBUG 5 CONFIG "MS_ERRORFILE" "/media/D_Drive/www/gis/logs/error_file.log" EXTENT -180 -90 180 90 #IMAGECOLOR 153 179 204 IMAGETYPE PNG24 SHAPEPATH data/ FONTSET data/fonts/fonts.list UNITS DD SIZE 1000 500 # Added PROJECTION "+proj=longlat +ellps=WGS84" END OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" END WEB IMAGEPATH "/media/D_Drive/www/gis/tmp/" IMAGEURL "gis/tmp/" END LAYER NAME "city" TYPE POINT STATUS DEFAULT DATA "CityALL" CLASS STYLE SYMBOL "square" SIZE 10 COLOR 255 1 1 OUTLINECOLOR 0 0 0 END END END END Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701 From mmcinnis59 at msn.com Mon Aug 5 12:21:06 2013 From: mmcinnis59 at msn.com (Michael McInnis) Date: Mon, 5 Aug 2013 12:21:06 -0700 Subject: [mapserver-users] Still can't draw points In-Reply-To: <84446DEF76453C439E9E97E438E13A63C1F09C@suutari.haapa.mmm.fi> References: , <84446DEF76453C439E9E97E438E13A63C1F09C@suutari.haapa.mmm.fi> Message-ID: YES! I find it odd that points are the only type that require a separately defined symbol in order to see a graphical product.I was able to draw polygons and lines without this extra step. But thanks so much for pointing this out, now I can draw all my data! Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701 > From: jukka.rahkonen at mmmtike.fi > To: mmcinnis59 at msn.com; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Still can't draw points > Date: Mon, 5 Aug 2013 19:12:21 +0000 > > Hi, > > You have still not defined the symbol "square" that you want to used for drawing. > Here comes a quick and not polished example that I have modified from your mapfile. It shows points for me with OpenJUMP with my data "roskis.shp". > > > > MAP > DEBUG 5 > CONFIG "MS_ERRORFILE" "c:\ms4w\tmp\points_error.txt" > CONFIG "PROJ_LIB" "C:/ms4w/proj/nad" > EXTENT -180 -90 180 90 > #IMAGECOLOR 153 179 204 > IMAGETYPE PNG24 > SHAPEPATH "c:\ms4w\tmp" > #FONTSET data/fonts/fonts.list > UNITS DD > SIZE 1000 500 # Added > > PROJECTION > "init=epsg:4326" > END > > OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > END > > WEB > METADATA > "ows_enable_request" "*" > "wms_bbox_extended" "true" > "wms_srs" "EPSG:4326" > "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=c:\ms4w\apps\points.map" > "wms_title" "Draw points example" > END > END > SYMBOL > NAME 'CIRCLE' > TYPE ellipse > FILLED true > POINTS > 1 1 > END > END > > LAYER > NAME "city" > TYPE POINT > STATUS DEFAULT > DATA "c:\data\osm\waste_baskets.shp" > METADATA > "wms_srs" "EPSG:4326" > END > CLASS > STYLE > SYMBOL "CIRCLE" > SIZE 10 > COLOR 255 1 1 > OUTLINECOLOR 0 0 0 > END > END > END > END > > -Jukka Rahkonen- > > ________________________________ > L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] k?ytt?j?n Michael McInnis [mmcinnis59 at msn.com] puolesta > L?hetetty: 5. elokuuta 2013 21:05 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Still can't draw points > > > > Dear mapserver-users, > > > This is a follow on question to my post friday. I made some changes suggested by Brent Fraser > > but still haven't had a graphical success. I think something very basic is wrong with my set up for points. > > Here is my new attempt, which still fails. I looked in the error log and it > seems to be treating the SYMBOL 'square' as a shapefile and says "unable to > open file". > > Thanks > > MAP > DEBUG 5 > CONFIG "MS_ERRORFILE" "/media/D_Drive/www/gis/logs/error_file.log" > EXTENT -180 -90 180 90 > #IMAGECOLOR 153 179 204 > IMAGETYPE PNG24 > SHAPEPATH data/ > FONTSET data/fonts/fonts.list > UNITS DD > SIZE 1000 500 # Added > > PROJECTION > "+proj=longlat +ellps=WGS84" > END > > OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > END > > WEB > IMAGEPATH "/media/D_Drive/www/gis/tmp/" > IMAGEURL "gis/tmp/" > END > > LAYER > NAME "city" > TYPE POINT > STATUS DEFAULT > DATA "CityALL" > CLASS > STYLE > SYMBOL "square" > SIZE 10 > COLOR 255 1 1 > OUTLINECOLOR 0 0 0 > END > END > END > END > > Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michel.Dastous at bentley.com Tue Aug 6 12:44:53 2013 From: Michel.Dastous at bentley.com (Michel.Dastous at bentley.com) Date: Tue, 6 Aug 2013 19:44:53 +0000 Subject: [mapserver-users] Curve support Message-ID: Hi All, I have a very simple question but unfortunately I could not find any "official" answer in the Mapserver documentation: Does Mapserver support arc, curve and B-Spline publishing in the current version (6.2.1), especially for Oracle and MSSQL data sources. I'm able to publish Oracle type 2002 containing arcs but when published over WFS in GML format, all arcs are converted into line segments. Is there any parameters in the map file to control how many points are used to approximate a curve? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From James.Evans at hill.af.mil Wed Aug 7 13:35:00 2013 From: James.Evans at hill.af.mil (James_in_Utah) Date: Wed, 7 Aug 2013 13:35:00 -0700 (PDT) Subject: [mapserver-users] Best way to do a batch reprojection (on windows) Message-ID: <1375907699966-5071365.post@n6.nabble.com> Hi, I have the NAIP imagery for CONUS, and it's rather large. About 4.2TBs, of JP2 files. It's projected in 10 UTM zones across the country. If I'm going to offer a single layer with Mapserver, I think I have to reproject all of the files into a single projection, say WGS84. I'm trying to figure out a good way to do that. GlobalMapper seems to have this function. I loaded up all the data from Alabama, and told it to convert the projection. It's been working at it for about 8 hours and I see no sign of progress. I tried creating a batch file to call GdalWarp, but for some reason that's getting an error. Here's the line from my batch: for %%f in (*.jp2) do gdalwarp -t_srs EPSG:4326 %%f c:\out\%%f The error is saying 4326 can't be found in the GSC.CSV, even though it is plainly in there. Even if I get this working, this wiill still be very tedious. The data is divide up by states, and under the state directory, there are dozens of subdirectories. I would need some sort of script to walk through the directories. If anyone has a suggestion on how to efficiently reproject this large amount of data it would be greatly appreciated! Thanks, James -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Best-way-to-do-a-batch-reprojection-on-windows-tp5071365.html Sent from the Mapserver - User mailing list archive at Nabble.com. From andy at squeakycode.net Wed Aug 7 13:45:06 2013 From: andy at squeakycode.net (andy) Date: Wed, 07 Aug 2013 15:45:06 -0500 Subject: [mapserver-users] Best way to do a batch reprojection (on windows) In-Reply-To: <1375907699966-5071365.post@n6.nabble.com> References: <1375907699966-5071365.post@n6.nabble.com> Message-ID: <5202B1D2.7000402@squeakycode.net> On 8/7/2013 3:35 PM, James_in_Utah wrote: > Hi, > I have the NAIP imagery for CONUS, and it's rather large. About 4.2TBs, of > JP2 files. It's projected in 10 UTM zones across the country. If I'm going > to offer a single layer with Mapserver, I think I have to reproject all of > the files into a single projection, say WGS84. I'm trying to figure out a > good way to do that. GlobalMapper seems to have this function. I loaded up > all the data from Alabama, and told it to convert the projection. It's been > working at it for about 8 hours and I see no sign of progress. I tried > creating a batch file to call GdalWarp, but for some reason that's getting > an error. Here's the line from my batch: > > for %%f in (*.jp2) do gdalwarp -t_srs EPSG:4326 %%f c:\out\%%f > > The error is saying 4326 can't be found in the GSC.CSV, even though it is > plainly in there. Even if I get this working, this wiill still be very > tedious. The data is divide up by states, and under the state directory, > there are dozens of subdirectories. I would need some sort of script to > walk through the directories. > > If anyone has a suggestion on how to efficiently reproject this large amount > of data it would be greatly appreciated! > Thanks, > James > I use GlobalMapper. Never had 4TB though. I usually convert to .ecw, which I'd guess would be smaller than jpeg. Its not fast, and it has refresh problems, but it works fine. I've had jobs run 12 hours or so, I think 30GB'ish is about the most I've done. Also, if you use the map catalog thing, it'll use less memory, and might be quicker. (File -> create new map catalog). The catalog will let it selective load chunks of data when its needed. This is useful when you have lots and lots of little files. -Andy From doug_newcomb at fws.gov Wed Aug 7 14:09:05 2013 From: doug_newcomb at fws.gov (Newcomb, Doug) Date: Wed, 7 Aug 2013 17:09:05 -0400 Subject: [mapserver-users] Best way to do a batch reprojection (on windows) In-Reply-To: <1375907699966-5071365.post@n6.nabble.com> References: <1375907699966-5071365.post@n6.nabble.com> Message-ID: James, Put the epsg code in quotes for the -t_srs option. -t_srs "epsg:4326" Doug On Wed, Aug 7, 2013 at 4:35 PM, James_in_Utah wrote: > Hi, > I have the NAIP imagery for CONUS, and it's rather large. About 4.2TBs, of > JP2 files. It's projected in 10 UTM zones across the country. If I'm > going > to offer a single layer with Mapserver, I think I have to reproject all of > the files into a single projection, say WGS84. I'm trying to figure out a > good way to do that. GlobalMapper seems to have this function. I loaded > up > all the data from Alabama, and told it to convert the projection. It's > been > working at it for about 8 hours and I see no sign of progress. I tried > creating a batch file to call GdalWarp, but for some reason that's getting > an error. Here's the line from my batch: > > for %%f in (*.jp2) do gdalwarp -t_srs EPSG:4326 %%f c:\out\%%f > > The error is saying 4326 can't be found in the GSC.CSV, even though it is > plainly in there. Even if I get this working, this wiill still be very > tedious. The data is divide up by states, and under the state directory, > there are dozens of subdirectories. I would need some sort of script to > walk through the directories. > > If anyone has a suggestion on how to efficiently reproject this large > amount > of data it would be greatly appreciated! > Thanks, > James > > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Best-way-to-do-a-batch-reprojection-on-windows-tp5071365.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 > -- Doug Newcomb USFWS Raleigh, NC 919-856-4520 ext. 14 doug_newcomb at fws.gov --------------------------------------------------------------------------------------------------------- The opinions I express are my own and are not representative of the official policy of the U.S.Fish and Wildlife Service or Dept. of the Interior. Life is too short for undocumented, proprietary data formats. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mwkorver at gmail.com Wed Aug 7 14:47:50 2013 From: mwkorver at gmail.com (Mark Korver) Date: Wed, 7 Aug 2013 14:47:50 -0700 Subject: [mapserver-users] Best way to do a batch reprojection (on windows) In-Reply-To: <1375907699966-5071365.post@n6.nabble.com> References: <1375907699966-5071365.post@n6.nabble.com> Message-ID: Strictly speaking you don't have to re-project all of the data. Mapserver can resample rasters on the fly into new projections. You can build a map file that references your different UTM zones as layers and serves up one WMS response as a jpeg image etc. However, this could be very slow depending on how much source data Mapserver needs to look at to do the resample and projection. The fact that it is jp2 is nice from a less storage perspective, but will slow this process down. I think we would need to know more about what your application requirements are to help you on this. For example if you are just serving this data up to a few people for an internal app you might not be worth the trouble of re-projecting the data. If you are serving to many, and are not doing cached tiled requests, you may want to output to tiled jpeg compressed tifs, then create a few subsample layers, then finally serve those up. On Wed, Aug 7, 2013 at 1:35 PM, James_in_Utah wrote: > Hi, > I have the NAIP imagery for CONUS, and it's rather large. About 4.2TBs, of > JP2 files. It's projected in 10 UTM zones across the country. If I'm > going > to offer a single layer with Mapserver, I think I have to reproject all of > the files into a single projection, say WGS84. I'm trying to figure out a > good way to do that. GlobalMapper seems to have this function. I loaded > up > all the data from Alabama, and told it to convert the projection. It's > been > working at it for about 8 hours and I see no sign of progress. I tried > creating a batch file to call GdalWarp, but for some reason that's getting > an error. Here's the line from my batch: > > for %%f in (*.jp2) do gdalwarp -t_srs EPSG:4326 %%f c:\out\%%f > > The error is saying 4326 can't be found in the GSC.CSV, even though it is > plainly in there. Even if I get this working, this wiill still be very > tedious. The data is divide up by states, and under the state directory, > there are dozens of subdirectories. I would need some sort of script to > walk through the directories. > > If anyone has a suggestion on how to efficiently reproject this large > amount > of data it would be greatly appreciated! > Thanks, > James > > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Best-way-to-do-a-batch-reprojection-on-windows-tp5071365.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 punk.kish at gmail.com Wed Aug 7 14:50:39 2013 From: punk.kish at gmail.com (Mr. Puneet Kishor) Date: Wed, 7 Aug 2013 14:50:39 -0700 Subject: [mapserver-users] Best way to do a batch reprojection (on windows) In-Reply-To: References: <1375907699966-5071365.post@n6.nabble.com> Message-ID: <2BE17F6B-F879-4834-A1CB-99533805EC96@gmail.com> On Aug 7, 2013, at 2:47 PM, Mark Korver wrote: > If you are serving to > many, and are not doing cached tiled requests, On a tangential note, tiling is so trivially easy that you should always be tiling. TileCache takes about 10 mins to set up, and is worth every one of those 10 mins. -- Puneet Kishor From Robert.Sanson at asurequality.com Wed Aug 7 14:09:11 2013 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Thu, 08 Aug 2013 09:09:11 +1200 Subject: [mapserver-users] Best way to do a batch reprojection (on windows) In-Reply-To: <5202B1D2.7000402@squeakycode.net> References: <1375907699966-5071365.post@n6.nabble.com> <5202B1D2.7000402@squeakycode.net> Message-ID: <5203603702000037000290B7@lx-gwgate1.asurequality.com> Hi If you are talking about coterminous USA, then you might be better to use something like Albers Equal-Area Conic Projection rather than WGS84 which is not strictly a projection at all. Regards, Robert >>> andy 8/08/2013 8:45 a.m. >>> On 8/7/2013 3:35 PM, James_in_Utah wrote: > Hi, > I have the NAIP imagery for CONUS, and it's rather large. About 4.2TBs, of > JP2 files. It's projected in 10 UTM zones across the country. If I'm going > to offer a single layer with Mapserver, I think I have to reproject all of > the files into a single projection, say WGS84. I'm trying to figure out a > good way to do that. GlobalMapper seems to have this function. I loaded up > all the data from Alabama, and told it to convert the projection. It's been > working at it for about 8 hours and I see no sign of progress. I tried > creating a batch file to call GdalWarp, but for some reason that's getting > an error. Here's the line from my batch: > > for %%f in (*.jp2) do gdalwarp -t_srs EPSG:4326 %%f c:\out\%%f > > The error is saying 4326 can't be found in the GSC.CSV, even though it is > plainly in there. Even if I get this working, this wiill still be very > tedious. The data is divide up by states, and under the state directory, > there are dozens of subdirectories. I would need some sort of script to > walk through the directories. > > If anyone has a suggestion on how to efficiently reproject this large amount > of data it would be greatly appreciated! > Thanks, > James > I use GlobalMapper. Never had 4TB though. I usually convert to .ecw, which I'd guess would be smaller than jpeg. Its not fast, and it has refresh problems, but it works fine. I've had jobs run 12 hours or so, I think 30GB'ish is about the most I've done. Also, if you use the map catalog thing, it'll use less memory, and might be quicker. (File -> create new map catalog). The catalog will let it selective load chunks of data when its needed. This is useful when you have lots and lots of little files. -Andy _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com From James.Evans at hill.af.mil Wed Aug 7 15:20:23 2013 From: James.Evans at hill.af.mil (Evans, James R Civ USAF ACC 84 RADES/SCZE) Date: Wed, 7 Aug 2013 16:20:23 -0600 Subject: [mapserver-users] Best way to do a batch reprojection (onwindows) In-Reply-To: <5202B1D2.7000402@squeakycode.net> References: <1375907699966-5071365.post@n6.nabble.com> <5202B1D2.7000402@squeakycode.net> Message-ID: <35C8F653C6AB9E44B3BC7E4D89634A6D0613FC4F@VFUTMLAO03.Enterprise.afmc.ds.af.mil> Thanks for the responses. I kicked off a batch Convert in Global Mapper, converting the 3482 files in the Alabama directory. At least this way I get some visual feedback. It says it will be done on Friday and 1330. It's currently Wednesday at 1615. That's not bad. The data is on three USB drives, and we have 3 licenses for GM, so I should be able to get all the data projected in a week or two once I work out a good procedure. James -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of andy Sent: Wednesday, August 07, 2013 2:45 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Best way to do a batch reprojection (onwindows) On 8/7/2013 3:35 PM, James_in_Utah wrote: > Hi, > I have the NAIP imagery for CONUS, and it's rather large. About 4.2TBs, of > JP2 files. It's projected in 10 UTM zones across the country. If I'm going > to offer a single layer with Mapserver, I think I have to reproject all of > the files into a single projection, say WGS84. I'm trying to figure out a > good way to do that. GlobalMapper seems to have this function. I loaded up > all the data from Alabama, and told it to convert the projection. It's been > working at it for about 8 hours and I see no sign of progress. I tried > creating a batch file to call GdalWarp, but for some reason that's getting > an error. Here's the line from my batch: > > for %%f in (*.jp2) do gdalwarp -t_srs EPSG:4326 %%f c:\out\%%f > > The error is saying 4326 can't be found in the GSC.CSV, even though it is > plainly in there. Even if I get this working, this wiill still be very > tedious. The data is divide up by states, and under the state directory, > there are dozens of subdirectories. I would need some sort of script to > walk through the directories. > > If anyone has a suggestion on how to efficiently reproject this large amount > of data it would be greatly appreciated! > Thanks, > James > I use GlobalMapper. Never had 4TB though. I usually convert to .ecw, which I'd guess would be smaller than jpeg. Its not fast, and it has refresh problems, but it works fine. I've had jobs run 12 hours or so, I think 30GB'ish is about the most I've done. Also, if you use the map catalog thing, it'll use less memory, and might be quicker. (File -> create new map catalog). The catalog will let it selective load chunks of data when its needed. This is useful when you have lots and lots of little files. -Andy _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 6912 bytes Desc: not available URL: From carlos.otero23 at gmail.com Wed Aug 7 16:12:20 2013 From: carlos.otero23 at gmail.com (Carlos Isaac Otero Michilot) Date: Wed, 7 Aug 2013 18:12:20 -0500 Subject: [mapserver-users] Fwd: confirm b8dc1607cc0cb601c5a4f9763f3a015f2a57a6d0 In-Reply-To: References: Message-ID: Hello Dear friends I've been working with mapserver since 2005, but I've always had problems when compiling newer versions of mapserver and this is one of these cases with the 6.2.1 version. H einstalado and all dependencies compiled mapserver with the following script, including support for svg symbols. ./configure \ --with-proj=/usr/local \ --with-geos=/usr/local/bin/geos-config \ --with-ogr=/usr/local/bin/gdal-config \ --with-gdal=/usr/local/bin/gdal-config \ --with-zlib=/usr/lib/ \ --with-pkg-config=/usr/bin/pkg-config \ --with-mysql=/usr/bin/mysql_config \ --with-postgis=/usr/local/pgsql/bin/pg_config \ --with-curl-config=/usr/bin/curl-config \ --with-apache-module \ --with-apxs=/usr/local/apache2/bin/apxs \ --with-fastcgi \ --with-php=/usr/local/apache2/php/bin/php-config \ --with-wfs \ --with-wfsclient \ --with-exempi \ --with-fribidi-config=/usr/local/lib/pkgconfig/fribidi.pc \ --with-wmsclient \ --enable-debug \ --with-curl-config=/usr/bin/curl-config \ --with-threads \ --with-wcs \ --with-kml=yes \ --with-cairo=/usr/local/lib/pkgconfig/cairo.pc \ --with-sos \ --with-gd=/usr/bin/gdlib-config \ --with-freetype \ --with-jpeg \ --with-xml2-config=/usr/bin/xml2-config \ --with-xml-mapfile=yes \ --enable-proj-fastpath \ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ MapServer is now configured for i686-pc-linux-gnu -------------- Compiler Info ------------- C compiler: gcc -g -Wall -Wdeclaration-after-statement C++ compiler: g++ -g -Wall Debug: -g Generic NINT: -------------- Renderer Settings --------- OpenGL support: zlib support: png support: -DUSE_PNG gif support: -DUSE_GIF jpeg support: -DUSE_JPEG freetype support: -DUSE_FREETYPE iconv support: -DUSE_ICONV AGG support: internal GD support: -DUSE_GD -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_GIF Cairo (SVG,PDF) support: -DUSE_CAIRO Cairo SVG symbol support: -DUSE_SVG_CAIRO KML support: -DUSE_KML -------------- Support Libraries --------- Proj.4 support: -DUSE_PROJ Proj Fastpaths: -DUSE_PROJ_FASTPATHS Libxml2 support: -DUSE_LIBXML2 FriBidi support: -DUSE_FRIBIDI -DUSE_FRIBIDI2 Curl support: -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH FastCGI support: -DUSE_FASTCGI Exempi support: -DUSE_EXEMPI Threading support: -DUSE_THREAD GEOS support: -DUSE_GEOS XML Mapfile support: -DUSE_XMLMAPFILE XSLT support: -DUSE_XSLT EXSLT support: -DUSE_EXSLT -------------- Data Format Drivers ------- PostGIS support: -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION 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_WFS_LYR WCS Server: -DUSE_WCS_SVR SOS Server: -DUSE_SOS_SVR -------------- MapScript ----------------- PHP MapScript: yes Python MapScript: no $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ But it throws the following error: USE_EXSLT -DUSE_XSLT -DUSE_XMLMAPFILE -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH -DUSE_KML -DUSE_EXEMPI -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_MYSQL -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DHAVE_SYNC_FETCH_AND_ADD -DUSE_THREAD -DUSE_PROJ -DUSE_GD -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_GIF -DUSE_ICONV -DUSE_JPEG -DUSE_GIF -DUSE_PNG -DUSE_FREETYPE -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR -DDISABLE_CVSID -I/usr/include/freetype2 -Irenderers/agg/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -I/usr/local/include -I/usr/include/exempi-2.0/exempi -I/usr/include/libxml2 -I/usr/local/include/fribidi -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/apr-1 -I/usr/local/apache2/include mapcairo.c -o mapcairo.lo libtool: compile: gcc -c -g -Wall -Wdeclaration-after-statement -DUSE_PROJ_FASTPATHS -DMOD_WMS_ENABLED -DUSE_FASTCGI -DUSE_SVG_CAIRO -DUSE_CAIRO -DUSE_FRIBIDI -DUSE_FRIBIDI2 -DUSE_EXSLT -DUSE_XSLT -DUSE_XMLMAPFILE -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH -DUSE_KML -DUSE_EXEMPI -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_MYSQL -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DHAVE_SYNC_FETCH_AND_ADD -DUSE_THREAD -DUSE_PROJ -DUSE_GD -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_GIF -DUSE_ICONV -DUSE_JPEG -DUSE_GIF -DUSE_PNG -DUSE_FREETYPE -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR -DDISABLE_CVSID -I/usr/include/freetype2 -Irenderers/agg/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -I/usr/local/include -I/usr/include/exempi-2.0/exempi -I/usr/include/libxml2 -I/usr/local/include/fribidi -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/apr-1 -I/usr/local/apache2/include mapcairo.c -fPIC -DPIC -o .libs/mapcairo.o mapcairo.c:367: error: expected specifier-qualifier-list before 'svg_cairo_t' mapcairo.c: In function 'renderSVGSymbolCairo': mapcairo.c:398: error: 'svg_cairo_status_t' undeclared (first use in this function) mapcairo.c:398: error: (Each undeclared identifier is reported only once mapcairo.c:398: error: for each function it appears in.) mapcairo.c:398: error: expected ';' before 'status' mapcairo.c:399: error: 'status' undeclared (first use in this function) mapcairo.c:399: warning: implicit declaration of function 'svg_cairo_render' mapcairo.c:399: error: 'struct svg_symbol_cache' has no member named 'svgc' mapcairo.c:400: error: 'SVG_CAIRO_STATUS_SUCCESS' undeclared (first use in this function) mapcairo.c: In function 'freeSVGCache': mapcairo.c:1041: error: 'struct svg_symbol_cache' has no member named 'svgc' mapcairo.c:1043: warning: implicit declaration of function 'svg_cairo_destroy' mapcairo.c:1043: error: 'struct svg_symbol_cache' has no member named 'svgc' mapcairo.c: In function 'msPreloadSVGSymbol': mapcairo.c:1102: error: 'symbolObj' has no member named 'renderer_free_func' mapcairo.c:1106: error: 'struct svg_symbol_cache' has no member named 'svgc' mapcairo.c:1113: warning: implicit declaration of function 'svg_cairo_create' mapcairo.c:1113: error: 'struct svg_symbol_cache' has no member named 'svgc' mapcairo.c:1118: warning: implicit declaration of function 'svg_cairo_parse' mapcairo.c:1118: error: 'struct svg_symbol_cache' has no member named 'svgc' mapcairo.c:1123: warning: implicit declaration of function 'svg_cairo_get_size' mapcairo.c:1123: error: 'struct svg_symbol_cache' has no member named 'svgc' mapcairo.c: In function 'msRenderRasterizedSVGSymbol': mapcairo.c:1176: error: 'struct svg_symbol_cache' has no member named 'scale' mapcairo.c:1176: error: 'struct svg_symbol_cache' has no member named 'rotation' mapcairo.c:1213: error: 'struct svg_symbol_cache' has no member named 'svgc' mapcairo.c:1213: error: 'SVG_CAIRO_STATUS_SUCCESS' undeclared (first use in this function) mapcairo.c:1224: error: 'struct svg_symbol_cache' has no member named 'scale' mapcairo.c:1225: error: 'struct svg_symbol_cache' has no member named 'rotation' make: *** [mapcairo.lo] Error 1 [root at sigservertemp mapserver-6.2.1]# Someone can help me with this problem, I certainly have libsvg-cairo compiled as indicated in the installation manual mapserver site -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Wed Aug 7 21:38:04 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 8 Aug 2013 04:38:04 +0000 Subject: [mapserver-users] Best way to do a batch reprojection (on windows) In-Reply-To: <1375907699966-5071365.post@n6.nabble.com> References: <1375907699966-5071365.post@n6.nabble.com> Message-ID: <84446DEF76453C439E9E97E438E13A63C1F7C2@suutari.haapa.mmm.fi> Hi, Stop what you do, it is not the right thing anymore. It should not be necessary to reproject the images into a common projection any more. This page describes how Mapserver is planned to be made to support tileindex with mixed projections http://mapserver.org/development/rfc/ms-rfc-100.html and this one proves that it has been implemented https://github.com/mapserver/mapserver/pull/4697. I am not sure but the development builds in http://gisinternals.com/sdk/ may include this new feature. Before this warping to a common coordinate system has been the way to go and gdalwarp is for sure good tool for that. I have using it with average resampling for aerial images. However, there is one nasty problem with warping images one by one into a common projection and it is caused by the rotation that results from warping. Each rotated image will have nodata collards in the corner areas and Mapserver must make them transparent when it is serving the final layer. It in simple, but only with uncompressed images because effective compression methods are lossy and after compression the nodata areas do not have just one pixel value like 0,0,0 but they have also close values like 0,1,0 and 0,0,1 etc. and those pixels will not be transparent. So I would suggest you to stop what you do and start evaluting tileindex with mixed projections. Warping images in-a-fly with Mapserver is fast and you do not need to be afraid of that. Your WMS users won't be happy with EPSG:4326 or any other single projection for the whole USA anyway so there would not be any difference, they will ask reprojected images in any case. You can start with the JPEG2000 images as they are but if you want more speed later you can convert them without reprojecting inte tiled GeoTIFFs with jpeg compression. Nodata problem will not occur in this case because images are not rotated. -Jukka Rahkonen- ________________________________________ James_in_Utah wrote: > Hi, > I have the NAIP imagery for CONUS, and it's rather large. About 4.2TBs, of JP2 files. It's projected in 10 UTM zones across the country. If I'm going to offer a single layer with Mapserver, I think I have to reproject all of the files into a single projection, say WGS84. I'm trying to figure out a good way to do that. GlobalMapper seems to have this function. I loaded up all the data from Alabama, and told it to convert the projection. It's been working at it for about 8 hours and I see no sign of progress. I tried creating a batch file to call GdalWarp, but for some reason that's getting an error. Here's the line from my batch: > for %%f in (*.jp2) do gdalwarp -t_srs EPSG:4326 %%f c:\out\%%f > The error is saying 4326 can't be found in the GSC.CSV, even though it is plainly in there. Even if I get this working, this wiill still be very tedious. The data is divide up by states, and under the state directory, there are dozens of subdirectories. I would need some sort of script to walk through the directories. > If anyone has a suggestion on how to efficiently reproject this large amount of data it would be greatly appreciated! > Thanks, > James -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Best-way-to-do-a-batch-reprojection-on-windows-tp5071365.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 mandschulz at googlemail.com Thu Aug 8 03:16:41 2013 From: mandschulz at googlemail.com (Michael Schulz) Date: Thu, 8 Aug 2013 12:16:41 +0200 Subject: [mapserver-users] basemaps: country capitals Message-ID: Hi mapserver basemappers, what is currently the suggested or best way to display country capitals using imposm/basemaps? I saw the display_capitals switch in the places mapfile, but the imposm mapping doesn't include a capital type. I saw the ticket from Thomas about capitals in the imposm issue tracker, but I'm not sure about the follow-up of this: wontfix because there is a better solution? I'd be happy about your suggestions. Cheers, Michael -- ----------------------------------------------------------- Michael Schulz Via Cime Bianche 10 IT-21023 Besozzo (VA) -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Thu Aug 8 09:16:09 2013 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Thu, 8 Aug 2013 16:16:09 +0000 Subject: [mapserver-users] limits on ITEMNQUERY Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA31E620A@swmail01.r8nssis.local> Hello, I would like to limit the number of results that are returned with a query. When I added LIMIT=10 on an ITEMNQUERY request mapserver still returned many results back. Questions: 1) Is LIMIT is the correct keyword to limit the number of results from ITEMNQUERY? 2) Can LIMIT be part of the request from a user, or does the limit need to bet set in the mapfile? Thank You Mark Volz, GISP GIS Specialist From Steve.Lime at state.mn.us Thu Aug 8 09:32:49 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 8 Aug 2013 16:32:49 +0000 Subject: [mapserver-users] limits on ITEMNQUERY In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA31E620A@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA31E620A@swmail01.r8nssis.local> Message-ID: Depending on version there are a couple of ways to do this. - set MAXFEATURES in the mapfile - use the limit attribute when presenting results using new-style templates (e.g [feature limit="10]) tag Neither of these can be controlled by the client. WFS allows this though. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: Thursday, August 08, 2013 11:16 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] limits on ITEMNQUERY Hello, I would like to limit the number of results that are returned with a query. When I added LIMIT=10 on an ITEMNQUERY request mapserver still returned many results back. Questions: 1) Is LIMIT is the correct keyword to limit the number of results from ITEMNQUERY? 2) Can LIMIT be part of the request from a user, or does the limit need to bet set in the mapfile? Thank You Mark Volz, GISP GIS Specialist _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From James.Evans at hill.af.mil Thu Aug 8 09:40:24 2013 From: James.Evans at hill.af.mil (Evans, James R Civ USAF ACC 84 RADES/SCZE) Date: Thu, 8 Aug 2013 10:40:24 -0600 Subject: [mapserver-users] Best way to do a batch reprojection (on windows) In-Reply-To: <84446DEF76453C439E9E97E438E13A63C1F7C2@suutari.haapa.mmm.fi> References: <1375907699966-5071365.post@n6.nabble.com> <84446DEF76453C439E9E97E438E13A63C1F7C2@suutari.haapa.mmm.fi> Message-ID: <35C8F653C6AB9E44B3BC7E4D89634A6D0613FE2F@VFUTMLAO03.Enterprise.afmc.ds.af.mil> I'm using the latest released version of MS4W, not even the latest debug builds, so that probably won't work for me. I'll see what the result is for this first conversion. It would be nice to be able to have one contiguous layer without having to do the reprojection. Thanks, James -----Original Message----- From: Rahkonen Jukka [mailto:jukka.rahkonen at mmmtike.fi] Sent: Wednesday, August 07, 2013 10:38 PM To: Evans, James R Civ USAF ACC 84 RADES/SCZE; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Best way to do a batch reprojection (on windows) Hi, Stop what you do, it is not the right thing anymore. It should not be necessary to reproject the images into a common projection any more. This page describes how Mapserver is planned to be made to support tileindex with mixed projections http://mapserver.org/development/rfc/ms-rfc-100.html and this one proves that it has been implemented https://github.com/mapserver/mapserver/pull/4697. I am not sure but the development builds in http://gisinternals.com/sdk/ may include this new feature. Before this warping to a common coordinate system has been the way to go and gdalwarp is for sure good tool for that. I have using it with average resampling for aerial images. However, there is one nasty problem with warping images one by one into a common projection and it is caused by the rotation that results from warping. Each rotated image will have nodata collards in the corner areas and Mapserver must make them transparent when it is serving the final layer. It in simple, but only with uncompressed images because effective compression methods are lossy and after compression the nodata areas do not have just one pixel value like 0,0,0 but they have also close values like 0,1,0 and 0,0,1 etc. and those pixels will not be transparent. So I would suggest you to stop what you do and start evaluting tileindex with mixed projections. Warping images in-a-fly with Mapserver is fast and you do not need to be afraid of that. Your WMS users won't be happy with EPSG:4326 or any other single projection for the whole USA anyway so there would not be any difference, they will ask reprojected images in any case. You can start with the JPEG2000 images as they are but if you want more speed later you can convert them without reprojecting inte tiled GeoTIFFs with jpeg compression. Nodata problem will not occur in this case because images are not rotated. -Jukka Rahkonen- ________________________________________ James_in_Utah wrote: > Hi, > I have the NAIP imagery for CONUS, and it's rather large. About 4.2TBs, of JP2 files. It's projected in 10 UTM zones across the country. If I'm going to offer a single layer with Mapserver, I think I have to reproject all of the files into a single projection, say WGS84. I'm trying to figure out a good way to do that. GlobalMapper seems to have this function. I loaded up all the data from Alabama, and told it to convert the projection. It's been working at it for about 8 hours and I see no sign of progress. I tried creating a batch file to call GdalWarp, but for some reason that's getting an error. Here's the line from my batch: > for %%f in (*.jp2) do gdalwarp -t_srs EPSG:4326 %%f c:\out\%%f > The error is saying 4326 can't be found in the GSC.CSV, even though it is plainly in there. Even if I get this working, this wiill still be very tedious. The data is divide up by states, and under the state directory, there are dozens of subdirectories. I would need some sort of script to walk through the directories. > If anyone has a suggestion on how to efficiently reproject this large amount of data it would be greatly appreciated! > Thanks, > James -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Best-way-to-do-a-batch-reprojection-on-w indows-tp5071365.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: smime.p7s Type: application/pkcs7-signature Size: 6912 bytes Desc: not available URL: From mmcinnis59 at msn.com Thu Aug 8 11:16:53 2013 From: mmcinnis59 at msn.com (Michael McInnis) Date: Thu, 8 Aug 2013 11:16:53 -0700 Subject: [mapserver-users] drawing multiple layers from postgis Message-ID: Hopefully, this is an easy one. I'm trying to build a scale sensitive .map file using points from postgis. I can successfully draw the shapefile states with a single points layer from postgis.However, if I add an additional points layer and attempt to draw it the layer comes up blank.If I remove the leading postgis points layer from the .map file the new points layer will now display.IE I can only draw the first occurrence of a postgis layer in the map file. How do you define multiple postgis layers so that you can pick and choose layers for display? LAYER NAME states DATA STATES STATUS ON TYPE Polygon CLASS OUTLINECOLOR 255 255 255 COLOR 155 155 155 END # Class END # Layer LAYER CONNECTIONTYPE POSTGIS NAME business_rd2 CONNECTION "host=localhost dbname=Business user=postgres password=wacadmin port=5432" PROCESSING "CLOSE_CONNECTION=DEFER" DATA "geom From business_rd2 as rd2 using unique id using srid=4326" #MINSCALE 100000 STATUS ON TYPE POINT CLASS SYMBOL 'circle' SIZE 2 COLOR 255 0 0 END END # Class END # Layer LAYER CONNECTIONTYPE POSTGIS NAME business_rd1 CONNECTION "host=localhost dbname=Business user=postgres password=wacadmin port=5432" PROCESSING "CLOSE_CONNECTION=DEFER" DATA "geom From business_rd1 as rd1 using unique id using srid=4326" #MINSCALE 100000 STATUS ON TYPE POINT CLASS SYMBOL 'circle' SIZE 2 COLOR 255 0 0 END END # Class END # Layer Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jfuch at indec.mecon.gov.ar Thu Aug 8 12:48:20 2013 From: jfuch at indec.mecon.gov.ar (Fuchs Juan Carlos) Date: Thu, 8 Aug 2013 16:48:20 -0300 Subject: [mapserver-users] getfeatureinfo from cascaded WMS layer, Message-ID: <51058F0BEB7C1E44816252D9F76AABC674D766@indec2.mecon.ar> Hi folks, getfeatureinfo from cascaded WMS layer, won't work. The origin layer is publish in GeoServer (sorry) With WMS published and query allowed On the other side we have MAapserver with a cascaded layer service http://200.51.91.237/cgi-bin/mapserv?map=/home/wms/codgeo_cascada.map It displays well, but getfeatureinfo don?t work All I get is a "Search returns no results" In a neutral browser like Gaia. Here is my *.map file (Cascaded service via Mapserver) MAP # Abrir mapa DEBUG ON NAME CODGEO STATUS ON SIZE 604 604 EXTENT 1688948.00 3785439.00 5996706.00 7725558.00 #revisar UNITS METERS FONTSET "/mserv/web/mapas/fonts.inc" IMAGECOLOR 255 255 255 IMAGETYPE PNG OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END #OUTPUTFORMAT # NAME jpeg # DRIVER "GD/JPEG" # MIMETYPE "image/jpeg" # IMAGEMODE RGB # EXTENSION "jpg" #END # web interface definition WEB # the template for browsing mode TEMPLATE "/example/main.html" IMAGEPATH "/mserv/web/produccion/www/temp/" IMAGEURL "/tmp/" LOG "/tmp/mapserverlog.txt" # DUMP TRUE METADATA "wms_title" "INDEC - CodGeo 2010" "ows_title" "INDEC - CodGeo 2010" # necesario para getfeatureinfo ? "wms_onlineresource" "http://200.51.91.237/cgi-bin/mapserv?map=/home/wms/codgeo_cascada.map" "wms_getfeatureinfo" "http://200.51.91.237/cgi-bin/mapserv?map=/home/wms/codgeo_cascada.map" # necesario para getfeatureinfo ? "wfs_onlineresource" "No HAY" "wms_srs" "AUTO epsg:22183 epsg:22184 epsg:22185 epsg:22186 epsg:22187 EPSG:4326 epsg:22182 epsg:22172 epsg:22173 epsg:41001 epsg:22192 epsg:22193 epsg:22194 epsg:22195 epsg:22196 epsg:22197" # "wms_feature_info_mime_type" "text/plain" # ERA "text/html plain/text" "wms_getfeatureinfo_format" "application/vnd.ogc.gml" # necesario para getfeatureinfo ? "wms_abstract" "Este servicio publica los c?digos utilizados en el operativo censal Censo Nacional de Poblaci?n, Hogares y Viviendas (CNPHyV) 2010." "wms_contactelectronicmailaddress" "jfuch at indec.mecon.gov.ar" "wms_contactperson" "Juan Carlos Fuchs" "wms_contactorganization" "INDEC - Proyecto SIG" "wms_contactposition" "Asesor T?cnico Proyecto SIG" "wms_enable_request" "*" # necesario para getfeatureinfo ? "gml_enable_request" "*" # necesario para getfeatureinfo ? "ows_enable_request" "*" # necesario para getfeatureinfo ? END QUERYFORMAT text/plain # necesario para getfeatureinfo ? LEGENDFORMAT text/html # necesario para getfeatureinfo ? BROWSEFORMAT text/html # necesario para getfeatureinfo ? END PROJECTION "init=epsg:22183" END #******************************************** #****CONEXION A wms del Server Virtual******* #******************************************** # PROVINCIAS LAYER NAME "indec:t_pais_x_provincia_color" TYPE RASTER STATUS ON CONNECTION "http://172.26.66.41:8080/geoserver/indec/wms" CONNECTIONTYPE WMS # DUMP TRUE TOLERANCE 3 TOLERANCEUNITS PIXELS TEMPLATE "/example/main.html" PROJECTION "init=epsg:22183" END METADATA #"wms_title" "Provincias CodGeo WMS" "wms_title" "Provincias Argentinas 2010" "wms_srs" "epsg:22183" "wms_name" "indec:t_pais_x_provincia_color" #Lista de Layers que mostrar, separados x comas "wms_server_version" "1.0.0" "wms_format" "image/png" "wms_metadataurl_format" "application/vnd.iso.19139+xml" "wms_metadataurl_type" "TC211" "wms_metadataurl_href" "http://200.51.91.237/metadata/ARG-INDEC-CNPHyV2010-DPT-WMS-2013_08_02.xml" "gml_include_items" "all" "wms_include_items" "all" "ows_include_items" "all" # necesario para getfeatureinfo ? "wms_info_format" "application/vnd.ogc.gml" # necesario para getfeatureinfo ? "wms_enable_request" "*" # necesario para getfeatureinfo ? "gml_enable_request" "*" # necesario para getfeatureinfo ? "ows_enable_request" "*" # necesario para getfeatureinfo ? END END #********************************************* #****FIN CONEXION A wms del Server Virtual**** #********************************************* END I`m out of answers, any help will be welcome Thanks in advance JC -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Thu Aug 8 13:36:24 2013 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Thu, 8 Aug 2013 20:36:24 +0000 Subject: [mapserver-users] securing mapserver layers Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA31E6389@swmail01.r8nssis.local> Hello I would like to set up mapserver so that some map files are open to anyone, some open to only internal users, and other maps are only open to users that enter in a user name and password. Is there a way to set up mapserver / Apache so that I can secure the mapserver services for different types of users? For example: Public Users, or any users http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=public_map Internal Users http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=internal_map External users with the correct username and password http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=password_protected_map Thank You p.s. I asked a similar question in the past, but I am having trouble finding that question and response. So I appologize for asking the same question again Mark Volz, GISP GIS Specialist From andy at squeakycode.net Thu Aug 8 14:00:14 2013 From: andy at squeakycode.net (andy) Date: Thu, 08 Aug 2013 16:00:14 -0500 Subject: [mapserver-users] securing mapserver layers In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA31E6389@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA31E6389@swmail01.r8nssis.local> Message-ID: <520406DE.2000906@squeakycode.net> On 8/8/2013 3:36 PM, Mark Volz wrote: > Hello > > I would like to set up mapserver so that some map files are open to anyone, some open to only internal users, and other maps are only open to users that enter in a user name and password. Is there a way to set up mapserver / Apache so that I can secure the mapserver services for different types of users? > > For example: > Public Users, or any users > http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=public_map > Internal Users > http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=internal_map > External users with the correct username and password > http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=password_protected_map > > Thank You > > > p.s. I asked a similar question in the past, but I am having trouble finding that question and response. So I appologize for asking the same question again > > > Mark Volz, GISP > GIS Specialist > How'd you feel about switching to perl/php and using mapscript? PS: how'd your slow live box/dev box problem go? get that fixed up? -Andy From bob.basques at ci.stpaul.mn.us Thu Aug 8 14:45:49 2013 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Thu, 8 Aug 2013 21:45:49 +0000 Subject: [mapserver-users] securing mapserver layers In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA31E6389@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA31E6389@swmail01.r8nssis.local> Message-ID: Mark, Early on we set up some Apache rules to handle this, but it's based on a naming mechanism in the MAP files. If you look at our public facing MAPfile links, each mapfile name looks something like: _public.map The "_public" chunk is read by Apache as something that is available externally. We actually came up with five different classes of file types originally, but this is really the only one that we use and it's intended to allow the Mapfile/data custodians a method of making their data available outside if they want to. They just need to add that chunk of text to their Mapfile and apache lets outside access see them.i've been meaning to set up a whole demo suite of our configuration for a while (few years) now, but just never got around to it. We have other similar APACHE mod for other things as well that I think others would be interested in. We have a couple of newer projects that might dictate that we set up some demo product that might morph into some sort of demo eventually. Bobb -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: Thursday, August 08, 2013 3:36 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] securing mapserver layers Hello I would like to set up mapserver so that some map files are open to anyone, some open to only internal users, and other maps are only open to users that enter in a user name and password. Is there a way to set up mapserver / Apache so that I can secure the mapserver services for different types of users? For example: Public Users, or any users http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=public_map Internal Users http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=internal_map External users with the correct username and password http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=password_protected_map Thank You p.s. I asked a similar question in the past, but I am having trouble finding that question and response. So I appologize for asking the same question again Mark Volz, GISP GIS Specialist _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From raffaele.morelli at gmail.com Fri Aug 9 03:18:00 2013 From: raffaele.morelli at gmail.com (Raffaele Morelli) Date: Fri, 9 Aug 2013 12:18:00 +0200 Subject: [mapserver-users] securing mapserver layers In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA31E6389@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA31E6389@swmail01.r8nssis.local> Message-ID: 2013/8/8 Mark Volz > Hello > > I would like to set up mapserver so that some map files are open to > anyone, some open to only internal users, and other maps are only open to > users that enter in a user name and password. Is there a way to set up > mapserver / Apache so that I can secure the mapserver services for > different types of users? > > For example: > Public Users, or any users > http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=public_map > Internal Users > http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=internal_map > External users with the correct username and password > > http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=password_protected_map > > Thank You > > > p.s. I asked a similar question in the past, but I am having trouble > finding that question and response. So I appologize for asking the same > question again > > > Mark Volz, GISP > GIS Specialist > You can use apache mod_aut* modules to setup a username/password protected area. If you are planning to use mapserver as WMS server, you should consider to use allow/deny on a file type level (and/or directives) according to ip addresses. If you are running a front end like pmapper or a openlayers based one you can quickly grant access using both methods. /r -------------- next part -------------- An HTML attachment was scrubbed... URL: From raffaele.morelli at gmail.com Fri Aug 9 03:24:01 2013 From: raffaele.morelli at gmail.com (Raffaele Morelli) Date: Fri, 9 Aug 2013 12:24:01 +0200 Subject: [mapserver-users] securing mapserver layers In-Reply-To: References: <36CA828A36E29F45B7CF0A1766E5DFA31E6389@swmail01.r8nssis.local> Message-ID: 2013/8/8 Basques, Bob (CI-StPaul) > Mark, > > Early on we set up some Apache rules to handle this, but it's based on a > naming mechanism in the MAP files. > > If you look at our public facing MAPfile links, each mapfile name looks > something like: _public.map > > The "_public" chunk is read by Apache as something that is available > externally. We actually came up with five different classes of file types > originally, but this is really the only one that we use and it's intended > to allow the Mapfile/data custodians a method of making their data > available outside if they want to. They just need to add that chunk of > text to their Mapfile and apache lets outside access see them.i've been > meaning to set up a whole demo suite of our configuration for a while (few > years) now, but just never got around to it. We have other similar APACHE > mod for other things as well that I think others would be interested in. > > We have a couple of newer projects that might dictate that we set up some > demo product that might morph into some sort of demo eventually. > > Bobb Apache environment variables can do this but it's more related to hide the mapfile path on the file system. eg. a request for "YOUR_ALIAS" is turned into the real path from the webserver, /your/real/path/to/the/mapfile.map This is accomplished by symbolic links (YOUR_ALIAS) to mapserver executable in the cgi dir http://mapserver.org/ogc/wms_server.html#changing-the-online-resource-url /r -------------- next part -------------- An HTML attachment was scrubbed... URL: From fdesjarlais1 at gmail.com Fri Aug 9 08:25:37 2013 From: fdesjarlais1 at gmail.com (Francois Desjarlais) Date: Fri, 9 Aug 2013 11:25:37 -0400 Subject: [mapserver-users] MapServer UTFGrid driver Message-ID: Hi all, My name is Francois and I am a computer engineering student. This summer, as part of the Google Summer of Code program, I worked on a UTFGrid driver for MapServer. It is now functional and available. I also made a patch for OpenLayers so that it supports UTFGrid with a WMS service for UTFGrid driver. Recently, I modified the MapServer's docs to add this new output format. All these can be found on my git. Any feedback about the driver is appreciated. You can find all the doc and a working example at msgsoc.mapgears.com My git : github.com/fdesj If you have any questiona about this new feature just ask . Regards, Francois -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmcinnis59 at msn.com Fri Aug 9 08:40:28 2013 From: mmcinnis59 at msn.com (Michael McInnis) Date: Fri, 9 Aug 2013 08:40:28 -0700 Subject: [mapserver-users] drawing multiple layers from postgis In-Reply-To: References: , , Message-ID: I'm pretty sure that END is correctly ending the Symbol Clause. The odd thing about this is I can draw all four layers if I call them separately but when I try to call them through php only numbers 1 and 3 work. All layers were generated the same way inpostgresql/postgis (see sql below). I'm going to regenerate layers 2 and 4 just in case but I think it's a problem with php/ms_script. // All these work http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business1.map&layers=business_rd1%20states&mode=map http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business2.map&layers=business_rd2%20states&mode=map http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business3.map&layers=business_rd3%20states&mode=map http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business4.map&layers=business_rd4%20states&mode=map // Half of these work http://mapserver0/business.php?num=1 works http://mapserver0/business.php?num=2 not http://mapserver0/business.php?num=3 works http://mapserver0/business.php?num=4 not // All these work http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business1.map&layers=business_rd1%20states&mode=map http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business2.map&layers=business_rd2%20states&mode=map http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business3.map&layers=business_rd3%20states&mode=map http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business4.map&layers=business_rd4%20states&mode=map // Half of these work http://mapserver0/business.php?num=1 works http://mapserver0/business.php?num=2 not http://mapserver0/business.php?num=3 works http://mapserver0/business.php?num=4 not // Create rounded lat lon table Select count(*), round(cast(ST_X(geom) as numeric),2) as lon, round(cast(ST_Y(geom) as numeric),2) as lat Into business_rd2 From business_loc Group By round(cast(ST_X(geom) as numeric),2), round(cast(ST_Y(geom) as numeric),2) Order By count Desc // Add Geometry Alter Table business_rd2 Add Column geom geometry(POINT,4326); Update business_rd2 Set geom = ST_SetSRID(ST_MakePoint(lon,lat),4326); Create Index indx_business_rd2_geom On business_rd2 Using GIST(geom); // Now add a primary key named id to enable mapserver drawing Alter Table business_rd2 Add Column id BIGSERIAL Primary Key; > Date: Fri, 9 Aug 2013 12:23:52 +0200 > Subject: Re: [mapserver-users] drawing multiple layers from postgis > From: thomas.bonfort at gmail.com > To: mmcinnis59 at msn.com > > On 8 August 2013 20:16, Michael McInnis wrote: > > Hopefully, this is an easy one. > > > > I'm trying to build a scale sensitive .map file using points from postgis. > > > > I can successfully draw the shapefile states with a single points layer from > > postgis. > > However, if I add an additional points layer and attempt to draw it the > > layer comes up blank. > > If I remove the leading postgis points layer from the .map file the new > > points layer will now display. > > IE I can only draw the first occurrence of a postgis layer in the map file. > > > > How do you define multiple postgis layers so that you can pick and choose > > layers for display? > > > > LAYER > > NAME states > > DATA STATES > > STATUS ON > > TYPE Polygon > > > > CLASS > > OUTLINECOLOR 255 255 255 > > COLOR 155 155 155 > > END # Class > > END # Layer > > > > LAYER > > CONNECTIONTYPE POSTGIS > > NAME business_rd2 > > CONNECTION "host=localhost dbname=Business user=postgres > > password=xxxx port=5432" > > PROCESSING "CLOSE_CONNECTION=DEFER" > > DATA "geom From business_rd2 as rd2 using unique id using srid=4326" > > #MINSCALE 100000 > > STATUS ON > > TYPE POINT > > CLASS > > SYMBOL 'circle' > > SIZE 2 > > COLOR 255 0 0 > > END > this END is bogus > > > END # Class > > END # Layer > > > > LAYER > > CONNECTIONTYPE POSTGIS > > NAME business_rd1 > > CONNECTION "host=localhost dbname=Business user=postgres > > password=xxxx port=5432" > > PROCESSING "CLOSE_CONNECTION=DEFER" > > DATA "geom From business_rd1 as rd1 using unique id using srid=4326" > > #MINSCALE 100000 > > STATUS ON > > TYPE POINT > > CLASS > > SYMBOL 'circle' > > SIZE 2 > > COLOR 255 0 0 > > END > this one to > > > END # Class > > END # Layer > > > > > > _______________________________________________ > > 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 Fri Aug 9 08:44:02 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 9 Aug 2013 17:44:02 +0200 Subject: [mapserver-users] drawing multiple layers from postgis In-Reply-To: References: Message-ID: https://github.com/mapserver/mapserver/issues/2922 On 9 August 2013 17:40, Michael McInnis wrote: > > I'm pretty sure that END is correctly ending the Symbol Clause. > > The odd thing about this is I can draw all four layers if I call them > separately but when I try to > call them through php only numbers 1 and 3 work. All layers were generated > the same way in > postgresql/postgis (see sql below). > > I'm going to regenerate layers 2 and 4 just in case but I think it's a > problem with php/ms_script. > > // All these work > > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business1.map&layers=business_rd1%20states&mode=map > > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business2.map&layers=business_rd2%20states&mode=map > > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business3.map&layers=business_rd3%20states&mode=map > > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business4.map&layers=business_rd4%20states&mode=map > > > > // Half of these work > > http://mapserver0/business.php?num=1 works > > http://mapserver0/business.php?num=2 not > > http://mapserver0/business.php?num=3 works > > http://mapserver0/business.php?num=4 not > > > > // All these work > > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business1.map&layers=business_rd1%20states&mode=map > > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business2.map&layers=business_rd2%20states&mode=map > > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business3.map&layers=business_rd3%20states&mode=map > > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business4.map&layers=business_rd4%20states&mode=map > > > > // Half of these work > > http://mapserver0/business.php?num=1 works > > http://mapserver0/business.php?num=2 not > > http://mapserver0/business.php?num=3 works > > http://mapserver0/business.php?num=4 not > > > // Create rounded lat lon table > > Select count(*), round(cast(ST_X(geom) as numeric),2) as lon, > > round(cast(ST_Y(geom) as numeric),2) as lat > > Into business_rd2 > > From business_loc > > Group By round(cast(ST_X(geom) as numeric),2), round(cast(ST_Y(geom) as > numeric),2) > > Order By count Desc > > > > // Add Geometry > > Alter Table business_rd2 Add Column geom geometry(POINT,4326); > > Update business_rd2 Set geom = ST_SetSRID(ST_MakePoint(lon,lat),4326); > > Create Index indx_business_rd2_geom On business_rd2 Using GIST(geom); > > > > // Now add a primary key named id to enable mapserver drawing > > Alter Table business_rd2 Add Column id BIGSERIAL Primary Key; > > > >> Date: Fri, 9 Aug 2013 12:23:52 +0200 >> Subject: Re: [mapserver-users] drawing multiple layers from postgis >> From: thomas.bonfort at gmail.com >> To: mmcinnis59 at msn.com >> >> On 8 August 2013 20:16, Michael McInnis wrote: >> > Hopefully, this is an easy one. >> > >> > I'm trying to build a scale sensitive .map file using points from >> > postgis. >> > >> > I can successfully draw the shapefile states with a single points layer >> > from >> > postgis. >> > However, if I add an additional points layer and attempt to draw it the >> > layer comes up blank. >> > If I remove the leading postgis points layer from the .map file the new >> > points layer will now display. >> > IE I can only draw the first occurrence of a postgis layer in the map >> > file. >> > >> > How do you define multiple postgis layers so that you can pick and >> > choose >> > layers for display? >> > >> > LAYER >> > NAME states >> > DATA STATES >> > STATUS ON >> > TYPE Polygon >> > >> > CLASS >> > OUTLINECOLOR 255 255 255 >> > COLOR 155 155 155 >> > END # Class >> > END # Layer >> > >> > LAYER >> > CONNECTIONTYPE POSTGIS >> > NAME business_rd2 >> > CONNECTION "host=localhost dbname=Business user=postgres >> > password=xxxx port=5432" >> > PROCESSING "CLOSE_CONNECTION=DEFER" >> > DATA "geom From business_rd2 as rd2 using unique id using srid=4326" >> > #MINSCALE 100000 >> > STATUS ON >> > TYPE POINT >> > CLASS >> > SYMBOL 'circle' >> > SIZE 2 >> > COLOR 255 0 0 >> > END >> this END is bogus >> >> > END # Class >> > END # Layer >> > >> > LAYER >> > CONNECTIONTYPE POSTGIS >> > NAME business_rd1 >> > CONNECTION "host=localhost dbname=Business user=postgres >> > password=xxxx port=5432" >> > PROCESSING "CLOSE_CONNECTION=DEFER" >> > DATA "geom From business_rd1 as rd1 using unique id using srid=4326" >> > #MINSCALE 100000 >> > STATUS ON >> > TYPE POINT >> > CLASS >> > SYMBOL 'circle' >> > SIZE 2 >> > COLOR 255 0 0 >> > END >> this one to >> >> > END # Class >> > END # Layer >> > >> > >> > _______________________________________________ >> > 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 mmcinnis59 at msn.com Fri Aug 9 08:55:13 2013 From: mmcinnis59 at msn.com (Michael McInnis) Date: Fri, 9 Aug 2013 08:55:13 -0700 Subject: [mapserver-users] drawing multiple layers from postgis In-Reply-To: References: , , , , Message-ID: Thomas, Here is my complete map file when all the postgis layers are combined. Like I said, I can call all of these layersif I put just one layer in a .map file but can't get it to work with more than one. Thanks! MAP DEBUG 5 CONFIG "MS_ERRORFILE" "/media/D_Drive/www/gis/logs/error_file.log" EXTENT -126 25 -64 50 #EXTENT -123 47 -122 48 IMAGECOLOR 153 179 204 IMAGETYPE PNG24 SHAPEPATH data/ FONTSET data/fonts/fonts.list SIZE 1000 500 #SIZE 800 800 #SCALEDENOM 50000 UNITS DD PROJECTION "+proj=longlat +ellps=WGS84" END OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" END WEB IMAGEPATH "/media/D_Drive/www/gis/tmp/" IMAGEURL "gis/tmp/" END SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END LAYER NAME states DATA STATES STATUS ON TYPE Polygon CLASS OUTLINECOLOR 255 255 255 COLOR 155 155 155 END # Class END # Layer LAYER NAME business_rd1 CONNECTIONTYPE POSTGIS CONNECTION "host=localhost dbname=Business user=postgres password=xxxx port=5432" DATA "geom From business_rd1 as rd1 using unique id using srid=4326" PROCESSING "CLOSE_CONNECTION=DEFER" #MINSCALE 10000000 STATUS ON TYPE POINT CLASS SYMBOL 'circle' SIZE 2 COLOR 255 0 0 END END # Class END # Layer LAYER NAME business_rd2 CONNECTIONTYPE POSTGIS CONNECTION "host=localhost dbname=Business user=postgres password=xxxxx port=5432" DATA "geom From business_rd2 as rd2 using unique id using srid=4326" PROCESSING "CLOSE_CONNECTION=DEFER" #MINSCALE 1000000 STATUS ON TYPE POINT CLASS SYMBOL 'circle' SIZE 2 COLOR 0 255 0 END END # Class END # Layer LAYER NAME business_rd3 CONNECTIONTYPE POSTGIS CONNECTION "host=localhost dbname=Business user=postgres password=xxxx port=5432" DATA "geom From business_rd3 as rd3 using unique id using srid=4326" PROCESSING "CLOSE_CONNECTION=DEFER" #MINSCALE 100000 STATUS ON TYPE POINT CLASS SYMBOL 'circle' SIZE 2 COLOR 0 0 255 END END # Class END # Layer LAYER NAME business_rd4 CONNECTIONTYPE POSTGIS CONNECTION "host=localhost dbname=Business user=postgres password=xxxxx port=5432" DATA "geom From business_rd4 as rd4 using unique id using srid=4326" PROCESSING "CLOSE_CONNECTION=DEFER" #MINSCALE 10000 STATUS ON TYPE POINT CLASS SYMBOL 'circle' SIZE 2 COLOR 255 0 255 END END # Class END # LayerEND # Map File Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701 > Date: Fri, 9 Aug 2013 17:44:02 +0200 > Subject: Re: [mapserver-users] drawing multiple layers from postgis > From: thomas.bonfort at gmail.com > To: mmcinnis59 at msn.com > CC: mapserver-users at lists.osgeo.org > > https://github.com/mapserver/mapserver/issues/2922 > > On 9 August 2013 17:40, Michael McInnis wrote: > > > > I'm pretty sure that END is correctly ending the Symbol Clause. > > > > The odd thing about this is I can draw all four layers if I call them > > separately but when I try to > > call them through php only numbers 1 and 3 work. All layers were generated > > the same way in > > postgresql/postgis (see sql below). > > > > I'm going to regenerate layers 2 and 4 just in case but I think it's a > > problem with php/ms_script. > > > > // All these work > > > > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business1.map&layers=business_rd1%20states&mode=map > > > > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business2.map&layers=business_rd2%20states&mode=map > > > > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business3.map&layers=business_rd3%20states&mode=map > > > > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business4.map&layers=business_rd4%20states&mode=map > > > > > > > > // Half of these work > > > > http://mapserver0/business.php?num=1 works > > > > http://mapserver0/business.php?num=2 not > > > > http://mapserver0/business.php?num=3 works > > > > http://mapserver0/business.php?num=4 not > > > > > > > > // All these work > > > > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business1.map&layers=business_rd1%20states&mode=map > > > > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business2.map&layers=business_rd2%20states&mode=map > > > > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business3.map&layers=business_rd3%20states&mode=map > > > > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business4.map&layers=business_rd4%20states&mode=map > > > > > > > > // Half of these work > > > > http://mapserver0/business.php?num=1 works > > > > http://mapserver0/business.php?num=2 not > > > > http://mapserver0/business.php?num=3 works > > > > http://mapserver0/business.php?num=4 not > > > > > > // Create rounded lat lon table > > > > Select count(*), round(cast(ST_X(geom) as numeric),2) as lon, > > > > round(cast(ST_Y(geom) as numeric),2) as lat > > > > Into business_rd2 > > > > From business_loc > > > > Group By round(cast(ST_X(geom) as numeric),2), round(cast(ST_Y(geom) as > > numeric),2) > > > > Order By count Desc > > > > > > > > // Add Geometry > > > > Alter Table business_rd2 Add Column geom geometry(POINT,4326); > > > > Update business_rd2 Set geom = ST_SetSRID(ST_MakePoint(lon,lat),4326); > > > > Create Index indx_business_rd2_geom On business_rd2 Using GIST(geom); > > > > > > > > // Now add a primary key named id to enable mapserver drawing > > > > Alter Table business_rd2 Add Column id BIGSERIAL Primary Key; > > > > > > > >> Date: Fri, 9 Aug 2013 12:23:52 +0200 > >> Subject: Re: [mapserver-users] drawing multiple layers from postgis > >> From: thomas.bonfort at gmail.com > >> To: mmcinnis59 at msn.com > >> > >> On 8 August 2013 20:16, Michael McInnis wrote: > >> > Hopefully, this is an easy one. > >> > > >> > I'm trying to build a scale sensitive .map file using points from > >> > postgis. > >> > > >> > I can successfully draw the shapefile states with a single points layer > >> > from > >> > postgis. > >> > However, if I add an additional points layer and attempt to draw it the > >> > layer comes up blank. > >> > If I remove the leading postgis points layer from the .map file the new > >> > points layer will now display. > >> > IE I can only draw the first occurrence of a postgis layer in the map > >> > file. > >> > > >> > How do you define multiple postgis layers so that you can pick and > >> > choose > >> > layers for display? > >> > > >> > LAYER > >> > NAME states > >> > DATA STATES > >> > STATUS ON > >> > TYPE Polygon > >> > > >> > CLASS > >> > OUTLINECOLOR 255 255 255 > >> > COLOR 155 155 155 > >> > END # Class > >> > END # Layer > >> > > >> > LAYER > >> > CONNECTIONTYPE POSTGIS > >> > NAME business_rd2 > >> > CONNECTION "host=localhost dbname=Business user=postgres > >> > password=xxxx port=5432" > >> > PROCESSING "CLOSE_CONNECTION=DEFER" > >> > DATA "geom From business_rd2 as rd2 using unique id using srid=4326" > >> > #MINSCALE 100000 > >> > STATUS ON > >> > TYPE POINT > >> > CLASS > >> > SYMBOL 'circle' > >> > SIZE 2 > >> > COLOR 255 0 0 > >> > END > >> this END is bogus > >> > >> > END # Class > >> > END # Layer > >> > > >> > LAYER > >> > CONNECTIONTYPE POSTGIS > >> > NAME business_rd1 > >> > CONNECTION "host=localhost dbname=Business user=postgres > >> > password=xxxx port=5432" > >> > PROCESSING "CLOSE_CONNECTION=DEFER" > >> > DATA "geom From business_rd1 as rd1 using unique id using srid=4326" > >> > #MINSCALE 100000 > >> > STATUS ON > >> > TYPE POINT > >> > CLASS > >> > SYMBOL 'circle' > >> > SIZE 2 > >> > COLOR 255 0 0 > >> > END > >> this one to > >> > >> > END # Class > >> > END # Layer > >> > > >> > > >> > _______________________________________________ > >> > 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 thomas.bonfort at gmail.com Fri Aug 9 08:57:32 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 9 Aug 2013 17:57:32 +0200 Subject: [mapserver-users] drawing multiple layers from postgis In-Reply-To: References: Message-ID: third time's a charm :) LAYER NAME business_rd1 CONNECTIONTYPE POSTGIS CONNECTION "host=localhost dbname=Business user=postgres password=xxxx port=5432" DATA "geom From business_rd1 as rd1 using unique id using srid=4326" PROCESSING "CLOSE_CONNECTION=DEFER" #MINSCALE 10000000 STATUS ON TYPE POINT CLASS STYLE SYMBOL 'circle' SIZE 2 COLOR 255 0 0 END #Style END # Class END # Layer symbol takes an END when you're defining a symbol , not when referencing it in a style. On 9 August 2013 17:55, Michael McInnis wrote: > Thomas, > > Here is my complete map file when all the postgis layers are combined. Like > I said, I can call all of these layers > if I put just one layer in a .map file but can't get it to work with more > than one. > > Thanks! > > MAP > DEBUG 5 > CONFIG "MS_ERRORFILE" "/media/D_Drive/www/gis/logs/error_file.log" > EXTENT -126 25 -64 50 > #EXTENT -123 47 -122 48 > IMAGECOLOR 153 179 204 > IMAGETYPE PNG24 > SHAPEPATH data/ > FONTSET data/fonts/fonts.list > SIZE 1000 500 > #SIZE 800 800 > #SCALEDENOM 50000 > UNITS DD > PROJECTION > "+proj=longlat +ellps=WGS84" > END > OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > END > WEB > IMAGEPATH "/media/D_Drive/www/gis/tmp/" > IMAGEURL "gis/tmp/" > END > > SYMBOL > NAME "circle" > TYPE ELLIPSE > FILLED TRUE > POINTS 1 1 END > END > > LAYER > NAME states > DATA STATES > STATUS ON > TYPE Polygon > > CLASS > OUTLINECOLOR 255 255 255 > COLOR 155 155 155 > END # Class > END # Layer > > LAYER > NAME business_rd1 > CONNECTIONTYPE POSTGIS > CONNECTION "host=localhost dbname=Business user=postgres > password=xxxx port=5432" > DATA "geom From business_rd1 as rd1 using unique id using srid=4326" > PROCESSING "CLOSE_CONNECTION=DEFER" > #MINSCALE 10000000 > STATUS ON > TYPE POINT > CLASS > SYMBOL 'circle' > SIZE 2 > COLOR 255 0 0 > END > END # Class > END # Layer > > LAYER > NAME business_rd2 > CONNECTIONTYPE POSTGIS > CONNECTION "host=localhost dbname=Business user=postgres > password=xxxxx port=5432" > DATA "geom From business_rd2 as rd2 using unique id using srid=4326" > PROCESSING "CLOSE_CONNECTION=DEFER" > #MINSCALE 1000000 > STATUS ON > TYPE POINT > CLASS > SYMBOL 'circle' > SIZE 2 > COLOR 0 255 0 > END > END # Class > END # Layer > > LAYER > NAME business_rd3 > CONNECTIONTYPE POSTGIS > CONNECTION "host=localhost dbname=Business user=postgres > password=xxxx port=5432" > DATA "geom From business_rd3 as rd3 using unique id using srid=4326" > PROCESSING "CLOSE_CONNECTION=DEFER" > #MINSCALE 100000 > STATUS ON > TYPE POINT > CLASS > SYMBOL 'circle' > SIZE 2 > COLOR 0 0 255 > END > END # Class > END # Layer > > LAYER > NAME business_rd4 > CONNECTIONTYPE POSTGIS > CONNECTION "host=localhost dbname=Business user=postgres > password=xxxxx port=5432" > DATA "geom From business_rd4 as rd4 using unique id using srid=4326" > PROCESSING "CLOSE_CONNECTION=DEFER" > #MINSCALE 10000 > STATUS ON > TYPE POINT > CLASS > SYMBOL 'circle' > SIZE 2 > COLOR 255 0 255 > END > END # Class > END # Layer > END # Map File > > > Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701 > >> Date: Fri, 9 Aug 2013 17:44:02 +0200 > >> Subject: Re: [mapserver-users] drawing multiple layers from postgis >> From: thomas.bonfort at gmail.com >> To: mmcinnis59 at msn.com >> CC: mapserver-users at lists.osgeo.org > >> >> https://github.com/mapserver/mapserver/issues/2922 >> >> On 9 August 2013 17:40, Michael McInnis wrote: >> > >> > I'm pretty sure that END is correctly ending the Symbol Clause. >> > >> > The odd thing about this is I can draw all four layers if I call them >> > separately but when I try to >> > call them through php only numbers 1 and 3 work. All layers were >> > generated >> > the same way in >> > postgresql/postgis (see sql below). >> > >> > I'm going to regenerate layers 2 and 4 just in case but I think it's a >> > problem with php/ms_script. >> > >> > // All these work >> > >> > >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business1.map&layers=business_rd1%20states&mode=map >> > >> > >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business2.map&layers=business_rd2%20states&mode=map >> > >> > >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business3.map&layers=business_rd3%20states&mode=map >> > >> > >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business4.map&layers=business_rd4%20states&mode=map >> > >> > >> > >> > // Half of these work >> > >> > http://mapserver0/business.php?num=1 works >> > >> > http://mapserver0/business.php?num=2 not >> > >> > http://mapserver0/business.php?num=3 works >> > >> > http://mapserver0/business.php?num=4 not >> > >> > >> > >> > // All these work >> > >> > >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business1.map&layers=business_rd1%20states&mode=map >> > >> > >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business2.map&layers=business_rd2%20states&mode=map >> > >> > >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business3.map&layers=business_rd3%20states&mode=map >> > >> > >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business4.map&layers=business_rd4%20states&mode=map >> > >> > >> > >> > // Half of these work >> > >> > http://mapserver0/business.php?num=1 works >> > >> > http://mapserver0/business.php?num=2 not >> > >> > http://mapserver0/business.php?num=3 works >> > >> > http://mapserver0/business.php?num=4 not >> > >> > >> > // Create rounded lat lon table >> > >> > Select count(*), round(cast(ST_X(geom) as numeric),2) as lon, >> > >> > round(cast(ST_Y(geom) as numeric),2) as lat >> > >> > Into business_rd2 >> > >> > From business_loc >> > >> > Group By round(cast(ST_X(geom) as numeric),2), round(cast(ST_Y(geom) as >> > numeric),2) >> > >> > Order By count Desc >> > >> > >> > >> > // Add Geometry >> > >> > Alter Table business_rd2 Add Column geom geometry(POINT,4326); >> > >> > Update business_rd2 Set geom = ST_SetSRID(ST_MakePoint(lon,lat),4326); >> > >> > Create Index indx_business_rd2_geom On business_rd2 Using GIST(geom); >> > >> > >> > >> > // Now add a primary key named id to enable mapserver drawing >> > >> > Alter Table business_rd2 Add Column id BIGSERIAL Primary Key; >> > >> > >> > >> >> Date: Fri, 9 Aug 2013 12:23:52 +0200 >> >> Subject: Re: [mapserver-users] drawing multiple layers from postgis >> >> From: thomas.bonfort at gmail.com >> >> To: mmcinnis59 at msn.com >> >> >> >> On 8 August 2013 20:16, Michael McInnis wrote: >> >> > Hopefully, this is an easy one. >> >> > >> >> > I'm trying to build a scale sensitive .map file using points from >> >> > postgis. >> >> > >> >> > I can successfully draw the shapefile states with a single points >> >> > layer >> >> > from >> >> > postgis. >> >> > However, if I add an additional points layer and attempt to draw it >> >> > the >> >> > layer comes up blank. >> >> > If I remove the leading postgis points layer from the .map file the >> >> > new >> >> > points layer will now display. >> >> > IE I can only draw the first occurrence of a postgis layer in the map >> >> > file. >> >> > >> >> > How do you define multiple postgis layers so that you can pick and >> >> > choose >> >> > layers for display? >> >> > >> >> > LAYER >> >> > NAME states >> >> > DATA STATES >> >> > STATUS ON >> >> > TYPE Polygon >> >> > >> >> > CLASS >> >> > OUTLINECOLOR 255 255 255 >> >> > COLOR 155 155 155 >> >> > END # Class >> >> > END # Layer >> >> > >> >> > LAYER >> >> > CONNECTIONTYPE POSTGIS >> >> > NAME business_rd2 >> >> > CONNECTION "host=localhost dbname=Business user=postgres >> >> > password=xxxx port=5432" >> >> > PROCESSING "CLOSE_CONNECTION=DEFER" >> >> > DATA "geom From business_rd2 as rd2 using unique id using srid=4326" >> >> > #MINSCALE 100000 >> >> > STATUS ON >> >> > TYPE POINT >> >> > CLASS >> >> > SYMBOL 'circle' >> >> > SIZE 2 >> >> > COLOR 255 0 0 >> >> > END >> >> this END is bogus >> >> >> >> > END # Class >> >> > END # Layer >> >> > >> >> > LAYER >> >> > CONNECTIONTYPE POSTGIS >> >> > NAME business_rd1 >> >> > CONNECTION "host=localhost dbname=Business user=postgres >> >> > password=xxxx port=5432" >> >> > PROCESSING "CLOSE_CONNECTION=DEFER" >> >> > DATA "geom From business_rd1 as rd1 using unique id using srid=4326" >> >> > #MINSCALE 100000 >> >> > STATUS ON >> >> > TYPE POINT >> >> > CLASS >> >> > SYMBOL 'circle' >> >> > SIZE 2 >> >> > COLOR 255 0 0 >> >> > END >> >> this one to >> >> >> >> > END # Class >> >> > END # Layer >> >> > >> >> > >> >> > _______________________________________________ >> >> > mapserver-users mailing list >> >> > mapserver-users at lists.osgeo.org >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From bob.basques at ci.stpaul.mn.us Fri Aug 9 09:02:31 2013 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Fri, 9 Aug 2013 16:02:31 +0000 Subject: [mapserver-users] drawing multiple layers from postgis In-Reply-To: References: Message-ID: Thomas, Oh man!! That's a subtle piece of info, any reason the END can't be left in there as a default somehow or at least ignored inside of the STYLE block, I can see this coming back to bite folks over time with the two different formats for SYMBOL/(and sometime END) combos. Bobb -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas bonfort Sent: Friday, August 09, 2013 10:58 AM To: Michael McInnis Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] drawing multiple layers from postgis third time's a charm :) LAYER NAME business_rd1 CONNECTIONTYPE POSTGIS CONNECTION "host=localhost dbname=Business user=postgres password=xxxx port=5432" DATA "geom From business_rd1 as rd1 using unique id using srid=4326" PROCESSING "CLOSE_CONNECTION=DEFER" #MINSCALE 10000000 STATUS ON TYPE POINT CLASS STYLE SYMBOL 'circle' SIZE 2 COLOR 255 0 0 END #Style END # Class END # Layer symbol takes an END when you're defining a symbol , not when referencing it in a style. On 9 August 2013 17:55, Michael McInnis wrote: > Thomas, > > Here is my complete map file when all the postgis layers are combined. > Like I said, I can call all of these layers if I put just one layer in > a .map file but can't get it to work with more than one. > > Thanks! > > MAP > DEBUG 5 > CONFIG "MS_ERRORFILE" "/media/D_Drive/www/gis/logs/error_file.log" > EXTENT -126 25 -64 50 > #EXTENT -123 47 -122 48 > IMAGECOLOR 153 179 204 > IMAGETYPE PNG24 > SHAPEPATH data/ > FONTSET data/fonts/fonts.list > SIZE 1000 500 > #SIZE 800 800 > #SCALEDENOM 50000 > UNITS DD > PROJECTION > "+proj=longlat +ellps=WGS84" > END > OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > END > WEB > IMAGEPATH "/media/D_Drive/www/gis/tmp/" > IMAGEURL "gis/tmp/" > END > > SYMBOL > NAME "circle" > TYPE ELLIPSE > FILLED TRUE > POINTS 1 1 END > END > > LAYER > NAME states > DATA STATES > STATUS ON > TYPE Polygon > > CLASS > OUTLINECOLOR 255 255 255 > COLOR 155 155 155 > END # Class > END # Layer > > LAYER > NAME business_rd1 > CONNECTIONTYPE POSTGIS > CONNECTION "host=localhost dbname=Business user=postgres > password=xxxx port=5432" > DATA "geom From business_rd1 as rd1 using unique id using srid=4326" > PROCESSING "CLOSE_CONNECTION=DEFER" > #MINSCALE 10000000 > STATUS ON > TYPE POINT > CLASS > SYMBOL 'circle' > SIZE 2 > COLOR 255 0 0 > END > END # Class > END # Layer > > LAYER > NAME business_rd2 > CONNECTIONTYPE POSTGIS > CONNECTION "host=localhost dbname=Business user=postgres > password=xxxxx port=5432" > DATA "geom From business_rd2 as rd2 using unique id using srid=4326" > PROCESSING "CLOSE_CONNECTION=DEFER" > #MINSCALE 1000000 > STATUS ON > TYPE POINT > CLASS > SYMBOL 'circle' > SIZE 2 > COLOR 0 255 0 > END > END # Class > END # Layer > > LAYER > NAME business_rd3 > CONNECTIONTYPE POSTGIS > CONNECTION "host=localhost dbname=Business user=postgres > password=xxxx port=5432" > DATA "geom From business_rd3 as rd3 using unique id using srid=4326" > PROCESSING "CLOSE_CONNECTION=DEFER" > #MINSCALE 100000 > STATUS ON > TYPE POINT > CLASS > SYMBOL 'circle' > SIZE 2 > COLOR 0 0 255 > END > END # Class > END # Layer > > LAYER > NAME business_rd4 > CONNECTIONTYPE POSTGIS > CONNECTION "host=localhost dbname=Business user=postgres > password=xxxxx port=5432" > DATA "geom From business_rd4 as rd4 using unique id using srid=4326" > PROCESSING "CLOSE_CONNECTION=DEFER" > #MINSCALE 10000 > STATUS ON > TYPE POINT > CLASS > SYMBOL 'circle' > SIZE 2 > COLOR 255 0 255 > END > END # Class > END # Layer > END # Map File > > > Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701 > >> Date: Fri, 9 Aug 2013 17:44:02 +0200 > >> Subject: Re: [mapserver-users] drawing multiple layers from postgis >> From: thomas.bonfort at gmail.com >> To: mmcinnis59 at msn.com >> CC: mapserver-users at lists.osgeo.org > >> >> https://github.com/mapserver/mapserver/issues/2922 >> >> On 9 August 2013 17:40, Michael McInnis wrote: >> > >> > I'm pretty sure that END is correctly ending the Symbol Clause. >> > >> > The odd thing about this is I can draw all four layers if I call >> > them separately but when I try to call them through php only >> > numbers 1 and 3 work. All layers were generated the same way in >> > postgresql/postgis (see sql below). >> > >> > I'm going to regenerate layers 2 and 4 just in case but I think >> > it's a problem with php/ms_script. >> > >> > // All these work >> > >> > >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/busines >> > s1.map&layers=business_rd1%20states&mode=map >> > >> > >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/busines >> > s2.map&layers=business_rd2%20states&mode=map >> > >> > >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/busines >> > s3.map&layers=business_rd3%20states&mode=map >> > >> > >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/busines >> > s4.map&layers=business_rd4%20states&mode=map >> > >> > >> > >> > // Half of these work >> > >> > http://mapserver0/business.php?num=1 works >> > >> > http://mapserver0/business.php?num=2 not >> > >> > http://mapserver0/business.php?num=3 works >> > >> > http://mapserver0/business.php?num=4 not >> > >> > >> > >> > // All these work >> > >> > >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/busines >> > s1.map&layers=business_rd1%20states&mode=map >> > >> > >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/busines >> > s2.map&layers=business_rd2%20states&mode=map >> > >> > >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/busines >> > s3.map&layers=business_rd3%20states&mode=map >> > >> > >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/busines >> > s4.map&layers=business_rd4%20states&mode=map >> > >> > >> > >> > // Half of these work >> > >> > http://mapserver0/business.php?num=1 works >> > >> > http://mapserver0/business.php?num=2 not >> > >> > http://mapserver0/business.php?num=3 works >> > >> > http://mapserver0/business.php?num=4 not >> > >> > >> > // Create rounded lat lon table >> > >> > Select count(*), round(cast(ST_X(geom) as numeric),2) as lon, >> > >> > round(cast(ST_Y(geom) as numeric),2) as lat >> > >> > Into business_rd2 >> > >> > From business_loc >> > >> > Group By round(cast(ST_X(geom) as numeric),2), >> > round(cast(ST_Y(geom) as >> > numeric),2) >> > >> > Order By count Desc >> > >> > >> > >> > // Add Geometry >> > >> > Alter Table business_rd2 Add Column geom geometry(POINT,4326); >> > >> > Update business_rd2 Set geom = >> > ST_SetSRID(ST_MakePoint(lon,lat),4326); >> > >> > Create Index indx_business_rd2_geom On business_rd2 Using >> > GIST(geom); >> > >> > >> > >> > // Now add a primary key named id to enable mapserver drawing >> > >> > Alter Table business_rd2 Add Column id BIGSERIAL Primary Key; >> > >> > >> > >> >> Date: Fri, 9 Aug 2013 12:23:52 +0200 >> >> Subject: Re: [mapserver-users] drawing multiple layers from >> >> postgis >> >> From: thomas.bonfort at gmail.com >> >> To: mmcinnis59 at msn.com >> >> >> >> On 8 August 2013 20:16, Michael McInnis wrote: >> >> > Hopefully, this is an easy one. >> >> > >> >> > I'm trying to build a scale sensitive .map file using points >> >> > from postgis. >> >> > >> >> > I can successfully draw the shapefile states with a single >> >> > points layer from postgis. >> >> > However, if I add an additional points layer and attempt to draw >> >> > it the layer comes up blank. >> >> > If I remove the leading postgis points layer from the .map file >> >> > the new points layer will now display. >> >> > IE I can only draw the first occurrence of a postgis layer in >> >> > the map file. >> >> > >> >> > How do you define multiple postgis layers so that you can pick >> >> > and choose layers for display? >> >> > >> >> > LAYER >> >> > NAME states >> >> > DATA STATES >> >> > STATUS ON >> >> > TYPE Polygon >> >> > >> >> > CLASS >> >> > OUTLINECOLOR 255 255 255 >> >> > COLOR 155 155 155 >> >> > END # Class >> >> > END # Layer >> >> > >> >> > LAYER >> >> > CONNECTIONTYPE POSTGIS >> >> > NAME business_rd2 >> >> > CONNECTION "host=localhost dbname=Business user=postgres >> >> > password=xxxx port=5432" >> >> > PROCESSING "CLOSE_CONNECTION=DEFER" >> >> > DATA "geom From business_rd2 as rd2 using unique id using srid=4326" >> >> > #MINSCALE 100000 >> >> > STATUS ON >> >> > TYPE POINT >> >> > CLASS >> >> > SYMBOL 'circle' >> >> > SIZE 2 >> >> > COLOR 255 0 0 >> >> > END >> >> this END is bogus >> >> >> >> > END # Class >> >> > END # Layer >> >> > >> >> > LAYER >> >> > CONNECTIONTYPE POSTGIS >> >> > NAME business_rd1 >> >> > CONNECTION "host=localhost dbname=Business user=postgres >> >> > password=xxxx port=5432" >> >> > PROCESSING "CLOSE_CONNECTION=DEFER" >> >> > DATA "geom From business_rd1 as rd1 using unique id using srid=4326" >> >> > #MINSCALE 100000 >> >> > STATUS ON >> >> > TYPE POINT >> >> > CLASS >> >> > SYMBOL 'circle' >> >> > SIZE 2 >> >> > COLOR 255 0 0 >> >> > END >> >> this one to >> >> >> >> > END # Class >> >> > END # Layer >> >> > >> >> > >> >> > _______________________________________________ >> >> > 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 mmcinnis59 at msn.com Fri Aug 9 09:15:17 2013 From: mmcinnis59 at msn.com (Michael McInnis) Date: Fri, 9 Aug 2013 09:15:17 -0700 Subject: [mapserver-users] drawing multiple layers from postgis In-Reply-To: References: , , , , , , , Message-ID: Nice work Thomas! That's got it. http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business.map&layers=business_rd4%20states&mode=map Now I can call any of the 4 from one .map file. Now I just need to figure out how to call a specific layer via a .php file. Thanks a lot, very subtle change there Adding STYLE in front of SYMBOL. Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701 > From: bob.basques at ci.stpaul.mn.us > CC: mapserver-users at lists.osgeo.org > Date: Fri, 9 Aug 2013 16:02:31 +0000 > Subject: Re: [mapserver-users] drawing multiple layers from postgis > > Thomas, > > Oh man!! That's a subtle piece of info, any reason the END can't be left in there as a default somehow or at least ignored inside of the STYLE block, I can see this coming back to bite folks over time with the two different formats for SYMBOL/(and sometime END) combos. > > > > Bobb > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas bonfort > Sent: Friday, August 09, 2013 10:58 AM > To: Michael McInnis > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] drawing multiple layers from postgis > > third time's a charm :) > > LAYER > NAME business_rd1 > CONNECTIONTYPE POSTGIS > CONNECTION "host=localhost dbname=Business user=postgres password=xxxx port=5432" > DATA "geom From business_rd1 as rd1 using unique id using srid=4326" > PROCESSING "CLOSE_CONNECTION=DEFER" > #MINSCALE 10000000 > STATUS ON > TYPE POINT > CLASS > STYLE > SYMBOL 'circle' > SIZE 2 > COLOR 255 0 0 > END #Style > END # Class > END # Layer > > symbol takes an END when you're defining a symbol , not when referencing it in a style. > > On 9 August 2013 17:55, Michael McInnis wrote: > > Thomas, > > > > Here is my complete map file when all the postgis layers are combined. > > Like I said, I can call all of these layers if I put just one layer in > > a .map file but can't get it to work with more than one. > > > > Thanks! > > > > MAP > > DEBUG 5 > > CONFIG "MS_ERRORFILE" "/media/D_Drive/www/gis/logs/error_file.log" > > EXTENT -126 25 -64 50 > > #EXTENT -123 47 -122 48 > > IMAGECOLOR 153 179 204 > > IMAGETYPE PNG24 > > SHAPEPATH data/ > > FONTSET data/fonts/fonts.list > > SIZE 1000 500 > > #SIZE 800 800 > > #SCALEDENOM 50000 > > UNITS DD > > PROJECTION > > "+proj=longlat +ellps=WGS84" > > END > > OUTPUTFORMAT > > NAME png > > DRIVER "AGG/PNG" > > MIMETYPE "image/png" > > IMAGEMODE RGBA > > EXTENSION "png" > > END > > WEB > > IMAGEPATH "/media/D_Drive/www/gis/tmp/" > > IMAGEURL "gis/tmp/" > > END > > > > SYMBOL > > NAME "circle" > > TYPE ELLIPSE > > FILLED TRUE > > POINTS 1 1 END > > END > > > > LAYER > > NAME states > > DATA STATES > > STATUS ON > > TYPE Polygon > > > > CLASS > > OUTLINECOLOR 255 255 255 > > COLOR 155 155 155 > > END # Class > > END # Layer > > > > LAYER > > NAME business_rd1 > > CONNECTIONTYPE POSTGIS > > CONNECTION "host=localhost dbname=Business user=postgres > > password=xxxx port=5432" > > DATA "geom From business_rd1 as rd1 using unique id using srid=4326" > > PROCESSING "CLOSE_CONNECTION=DEFER" > > #MINSCALE 10000000 > > STATUS ON > > TYPE POINT > > CLASS > > SYMBOL 'circle' > > SIZE 2 > > COLOR 255 0 0 > > END > > END # Class > > END # Layer > > > > LAYER > > NAME business_rd2 > > CONNECTIONTYPE POSTGIS > > CONNECTION "host=localhost dbname=Business user=postgres > > password=xxxxx port=5432" > > DATA "geom From business_rd2 as rd2 using unique id using srid=4326" > > PROCESSING "CLOSE_CONNECTION=DEFER" > > #MINSCALE 1000000 > > STATUS ON > > TYPE POINT > > CLASS > > SYMBOL 'circle' > > SIZE 2 > > COLOR 0 255 0 > > END > > END # Class > > END # Layer > > > > LAYER > > NAME business_rd3 > > CONNECTIONTYPE POSTGIS > > CONNECTION "host=localhost dbname=Business user=postgres > > password=xxxx port=5432" > > DATA "geom From business_rd3 as rd3 using unique id using srid=4326" > > PROCESSING "CLOSE_CONNECTION=DEFER" > > #MINSCALE 100000 > > STATUS ON > > TYPE POINT > > CLASS > > SYMBOL 'circle' > > SIZE 2 > > COLOR 0 0 255 > > END > > END # Class > > END # Layer > > > > LAYER > > NAME business_rd4 > > CONNECTIONTYPE POSTGIS > > CONNECTION "host=localhost dbname=Business user=postgres > > password=xxxxx port=5432" > > DATA "geom From business_rd4 as rd4 using unique id using srid=4326" > > PROCESSING "CLOSE_CONNECTION=DEFER" > > #MINSCALE 10000 > > STATUS ON > > TYPE POINT > > CLASS > > SYMBOL 'circle' > > SIZE 2 > > COLOR 255 0 255 > > END > > END # Class > > END # Layer > > END # Map File > > > > > > Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701 > > > >> Date: Fri, 9 Aug 2013 17:44:02 +0200 > > > >> Subject: Re: [mapserver-users] drawing multiple layers from postgis > >> From: thomas.bonfort at gmail.com > >> To: mmcinnis59 at msn.com > >> CC: mapserver-users at lists.osgeo.org > > > >> > >> https://github.com/mapserver/mapserver/issues/2922 > >> > >> On 9 August 2013 17:40, Michael McInnis wrote: > >> > > >> > I'm pretty sure that END is correctly ending the Symbol Clause. > >> > > >> > The odd thing about this is I can draw all four layers if I call > >> > them separately but when I try to call them through php only > >> > numbers 1 and 3 work. All layers were generated the same way in > >> > postgresql/postgis (see sql below). > >> > > >> > I'm going to regenerate layers 2 and 4 just in case but I think > >> > it's a problem with php/ms_script. > >> > > >> > // All these work > >> > > >> > > >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/busines > >> > s1.map&layers=business_rd1%20states&mode=map > >> > > >> > > >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/busines > >> > s2.map&layers=business_rd2%20states&mode=map > >> > > >> > > >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/busines > >> > s3.map&layers=business_rd3%20states&mode=map > >> > > >> > > >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/busines > >> > s4.map&layers=business_rd4%20states&mode=map > >> > > >> > > >> > > >> > // Half of these work > >> > > >> > http://mapserver0/business.php?num=1 works > >> > > >> > http://mapserver0/business.php?num=2 not > >> > > >> > http://mapserver0/business.php?num=3 works > >> > > >> > http://mapserver0/business.php?num=4 not > >> > > >> > > >> > > >> > // All these work > >> > > >> > > >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/busines > >> > s1.map&layers=business_rd1%20states&mode=map > >> > > >> > > >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/busines > >> > s2.map&layers=business_rd2%20states&mode=map > >> > > >> > > >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/busines > >> > s3.map&layers=business_rd3%20states&mode=map > >> > > >> > > >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/busines > >> > s4.map&layers=business_rd4%20states&mode=map > >> > > >> > > >> > > >> > // Half of these work > >> > > >> > http://mapserver0/business.php?num=1 works > >> > > >> > http://mapserver0/business.php?num=2 not > >> > > >> > http://mapserver0/business.php?num=3 works > >> > > >> > http://mapserver0/business.php?num=4 not > >> > > >> > > >> > // Create rounded lat lon table > >> > > >> > Select count(*), round(cast(ST_X(geom) as numeric),2) as lon, > >> > > >> > round(cast(ST_Y(geom) as numeric),2) as lat > >> > > >> > Into business_rd2 > >> > > >> > From business_loc > >> > > >> > Group By round(cast(ST_X(geom) as numeric),2), > >> > round(cast(ST_Y(geom) as > >> > numeric),2) > >> > > >> > Order By count Desc > >> > > >> > > >> > > >> > // Add Geometry > >> > > >> > Alter Table business_rd2 Add Column geom geometry(POINT,4326); > >> > > >> > Update business_rd2 Set geom = > >> > ST_SetSRID(ST_MakePoint(lon,lat),4326); > >> > > >> > Create Index indx_business_rd2_geom On business_rd2 Using > >> > GIST(geom); > >> > > >> > > >> > > >> > // Now add a primary key named id to enable mapserver drawing > >> > > >> > Alter Table business_rd2 Add Column id BIGSERIAL Primary Key; > >> > > >> > > >> > > >> >> Date: Fri, 9 Aug 2013 12:23:52 +0200 > >> >> Subject: Re: [mapserver-users] drawing multiple layers from > >> >> postgis > >> >> From: thomas.bonfort at gmail.com > >> >> To: mmcinnis59 at msn.com > >> >> > >> >> On 8 August 2013 20:16, Michael McInnis wrote: > >> >> > Hopefully, this is an easy one. > >> >> > > >> >> > I'm trying to build a scale sensitive .map file using points > >> >> > from postgis. > >> >> > > >> >> > I can successfully draw the shapefile states with a single > >> >> > points layer from postgis. > >> >> > However, if I add an additional points layer and attempt to draw > >> >> > it the layer comes up blank. > >> >> > If I remove the leading postgis points layer from the .map file > >> >> > the new points layer will now display. > >> >> > IE I can only draw the first occurrence of a postgis layer in > >> >> > the map file. > >> >> > > >> >> > How do you define multiple postgis layers so that you can pick > >> >> > and choose layers for display? > >> >> > > >> >> > LAYER > >> >> > NAME states > >> >> > DATA STATES > >> >> > STATUS ON > >> >> > TYPE Polygon > >> >> > > >> >> > CLASS > >> >> > OUTLINECOLOR 255 255 255 > >> >> > COLOR 155 155 155 > >> >> > END # Class > >> >> > END # Layer > >> >> > > >> >> > LAYER > >> >> > CONNECTIONTYPE POSTGIS > >> >> > NAME business_rd2 > >> >> > CONNECTION "host=localhost dbname=Business user=postgres > >> >> > password=xxxx port=5432" > >> >> > PROCESSING "CLOSE_CONNECTION=DEFER" > >> >> > DATA "geom From business_rd2 as rd2 using unique id using srid=4326" > >> >> > #MINSCALE 100000 > >> >> > STATUS ON > >> >> > TYPE POINT > >> >> > CLASS > >> >> > SYMBOL 'circle' > >> >> > SIZE 2 > >> >> > COLOR 255 0 0 > >> >> > END > >> >> this END is bogus > >> >> > >> >> > END # Class > >> >> > END # Layer > >> >> > > >> >> > LAYER > >> >> > CONNECTIONTYPE POSTGIS > >> >> > NAME business_rd1 > >> >> > CONNECTION "host=localhost dbname=Business user=postgres > >> >> > password=xxxx port=5432" > >> >> > PROCESSING "CLOSE_CONNECTION=DEFER" > >> >> > DATA "geom From business_rd1 as rd1 using unique id using srid=4326" > >> >> > #MINSCALE 100000 > >> >> > STATUS ON > >> >> > TYPE POINT > >> >> > CLASS > >> >> > SYMBOL 'circle' > >> >> > SIZE 2 > >> >> > COLOR 255 0 0 > >> >> > END > >> >> this one to > >> >> > >> >> > END # Class > >> >> > END # Layer > >> >> > > >> >> > > >> >> > _______________________________________________ > >> >> > mapserver-users mailing list > >> >> > mapserver-users at lists.osgeo.org > >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> > > >> > > >> > _______________________________________________ > >> > mapserver-users mailing list > >> > mapserver-users at lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Fri Aug 9 09:16:49 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 9 Aug 2013 18:16:49 +0200 Subject: [mapserver-users] drawing multiple layers from postgis In-Reply-To: References: Message-ID: You could also have removed the END I pointed out in my first answer. The mapfile parser has a lot of legacy :) On 9 August 2013 18:15, Michael McInnis wrote: > Nice work Thomas! That's got it. > > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/business.map&layers=business_rd4%20states&mode=map > > Now I can call any of the 4 from one .map file. > > Now I just need to figure out how to call a specific layer via a .php file. > > Thanks a lot, very subtle change there Adding STYLE in front of SYMBOL. > > > Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701 > >> From: bob.basques at ci.stpaul.mn.us >> CC: mapserver-users at lists.osgeo.org >> Date: Fri, 9 Aug 2013 16:02:31 +0000 > >> Subject: Re: [mapserver-users] drawing multiple layers from postgis >> >> Thomas, >> >> Oh man!! That's a subtle piece of info, any reason the END can't be left >> in there as a default somehow or at least ignored inside of the STYLE block, >> I can see this coming back to bite folks over time with the two different >> formats for SYMBOL/(and sometime END) combos. >> >> >> >> Bobb >> >> >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas bonfort >> Sent: Friday, August 09, 2013 10:58 AM >> To: Michael McInnis >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] drawing multiple layers from postgis >> >> third time's a charm :) >> >> LAYER >> NAME business_rd1 >> CONNECTIONTYPE POSTGIS >> CONNECTION "host=localhost dbname=Business user=postgres password=xxxx >> port=5432" >> DATA "geom From business_rd1 as rd1 using unique id using srid=4326" >> PROCESSING "CLOSE_CONNECTION=DEFER" >> #MINSCALE 10000000 >> STATUS ON >> TYPE POINT >> CLASS >> STYLE >> SYMBOL 'circle' >> SIZE 2 >> COLOR 255 0 0 >> END #Style >> END # Class >> END # Layer >> >> symbol takes an END when you're defining a symbol , not when referencing >> it in a style. >> >> On 9 August 2013 17:55, Michael McInnis wrote: >> > Thomas, >> > >> > Here is my complete map file when all the postgis layers are combined. >> > Like I said, I can call all of these layers if I put just one layer in >> > a .map file but can't get it to work with more than one. >> > >> > Thanks! >> > >> > MAP >> > DEBUG 5 >> > CONFIG "MS_ERRORFILE" "/media/D_Drive/www/gis/logs/error_file.log" >> > EXTENT -126 25 -64 50 >> > #EXTENT -123 47 -122 48 >> > IMAGECOLOR 153 179 204 >> > IMAGETYPE PNG24 >> > SHAPEPATH data/ >> > FONTSET data/fonts/fonts.list >> > SIZE 1000 500 >> > #SIZE 800 800 >> > #SCALEDENOM 50000 >> > UNITS DD >> > PROJECTION >> > "+proj=longlat +ellps=WGS84" >> > END >> > OUTPUTFORMAT >> > NAME png >> > DRIVER "AGG/PNG" >> > MIMETYPE "image/png" >> > IMAGEMODE RGBA >> > EXTENSION "png" >> > END >> > WEB >> > IMAGEPATH "/media/D_Drive/www/gis/tmp/" >> > IMAGEURL "gis/tmp/" >> > END >> > >> > SYMBOL >> > NAME "circle" >> > TYPE ELLIPSE >> > FILLED TRUE >> > POINTS 1 1 END >> > END >> > >> > LAYER >> > NAME states >> > DATA STATES >> > STATUS ON >> > TYPE Polygon >> > >> > CLASS >> > OUTLINECOLOR 255 255 255 >> > COLOR 155 155 155 >> > END # Class >> > END # Layer >> > >> > LAYER >> > NAME business_rd1 >> > CONNECTIONTYPE POSTGIS >> > CONNECTION "host=localhost dbname=Business user=postgres >> > password=xxxx port=5432" >> > DATA "geom From business_rd1 as rd1 using unique id using srid=4326" >> > PROCESSING "CLOSE_CONNECTION=DEFER" >> > #MINSCALE 10000000 >> > STATUS ON >> > TYPE POINT >> > CLASS >> > SYMBOL 'circle' >> > SIZE 2 >> > COLOR 255 0 0 >> > END >> > END # Class >> > END # Layer >> > >> > LAYER >> > NAME business_rd2 >> > CONNECTIONTYPE POSTGIS >> > CONNECTION "host=localhost dbname=Business user=postgres >> > password=xxxxx port=5432" >> > DATA "geom From business_rd2 as rd2 using unique id using srid=4326" >> > PROCESSING "CLOSE_CONNECTION=DEFER" >> > #MINSCALE 1000000 >> > STATUS ON >> > TYPE POINT >> > CLASS >> > SYMBOL 'circle' >> > SIZE 2 >> > COLOR 0 255 0 >> > END >> > END # Class >> > END # Layer >> > >> > LAYER >> > NAME business_rd3 >> > CONNECTIONTYPE POSTGIS >> > CONNECTION "host=localhost dbname=Business user=postgres >> > password=xxxx port=5432" >> > DATA "geom From business_rd3 as rd3 using unique id using srid=4326" >> > PROCESSING "CLOSE_CONNECTION=DEFER" >> > #MINSCALE 100000 >> > STATUS ON >> > TYPE POINT >> > CLASS >> > SYMBOL 'circle' >> > SIZE 2 >> > COLOR 0 0 255 >> > END >> > END # Class >> > END # Layer >> > >> > LAYER >> > NAME business_rd4 >> > CONNECTIONTYPE POSTGIS >> > CONNECTION "host=localhost dbname=Business user=postgres >> > password=xxxxx port=5432" >> > DATA "geom From business_rd4 as rd4 using unique id using srid=4326" >> > PROCESSING "CLOSE_CONNECTION=DEFER" >> > #MINSCALE 10000 >> > STATUS ON >> > TYPE POINT >> > CLASS >> > SYMBOL 'circle' >> > SIZE 2 >> > COLOR 255 0 255 >> > END >> > END # Class >> > END # Layer >> > END # Map File >> > >> > >> > Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701 >> > >> >> Date: Fri, 9 Aug 2013 17:44:02 +0200 >> > >> >> Subject: Re: [mapserver-users] drawing multiple layers from postgis >> >> From: thomas.bonfort at gmail.com >> >> To: mmcinnis59 at msn.com >> >> CC: mapserver-users at lists.osgeo.org >> > >> >> >> >> https://github.com/mapserver/mapserver/issues/2922 >> >> >> >> On 9 August 2013 17:40, Michael McInnis wrote: >> >> > >> >> > I'm pretty sure that END is correctly ending the Symbol Clause. >> >> > >> >> > The odd thing about this is I can draw all four layers if I call >> >> > them separately but when I try to call them through php only >> >> > numbers 1 and 3 work. All layers were generated the same way in >> >> > postgresql/postgis (see sql below). >> >> > >> >> > I'm going to regenerate layers 2 and 4 just in case but I think >> >> > it's a problem with php/ms_script. >> >> > >> >> > // All these work >> >> > >> >> > >> >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/busines >> >> > s1.map&layers=business_rd1%20states&mode=map >> >> > >> >> > >> >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/busines >> >> > s2.map&layers=business_rd2%20states&mode=map >> >> > >> >> > >> >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/busines >> >> > s3.map&layers=business_rd3%20states&mode=map >> >> > >> >> > >> >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/busines >> >> > s4.map&layers=business_rd4%20states&mode=map >> >> > >> >> > >> >> > >> >> > // Half of these work >> >> > >> >> > http://mapserver0/business.php?num=1 works >> >> > >> >> > http://mapserver0/business.php?num=2 not >> >> > >> >> > http://mapserver0/business.php?num=3 works >> >> > >> >> > http://mapserver0/business.php?num=4 not >> >> > >> >> > >> >> > >> >> > // All these work >> >> > >> >> > >> >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/busines >> >> > s1.map&layers=business_rd1%20states&mode=map >> >> > >> >> > >> >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/busines >> >> > s2.map&layers=business_rd2%20states&mode=map >> >> > >> >> > >> >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/busines >> >> > s3.map&layers=business_rd3%20states&mode=map >> >> > >> >> > >> >> > http://localhost/cgi-bin/mapserv?map=/media/D_Drive/www/gis/busines >> >> > s4.map&layers=business_rd4%20states&mode=map >> >> > >> >> > >> >> > >> >> > // Half of these work >> >> > >> >> > http://mapserver0/business.php?num=1 works >> >> > >> >> > http://mapserver0/business.php?num=2 not >> >> > >> >> > http://mapserver0/business.php?num=3 works >> >> > >> >> > http://mapserver0/business.php?num=4 not >> >> > >> >> > >> >> > // Create rounded lat lon table >> >> > >> >> > Select count(*), round(cast(ST_X(geom) as numeric),2) as lon, >> >> > >> >> > round(cast(ST_Y(geom) as numeric),2) as lat >> >> > >> >> > Into business_rd2 >> >> > >> >> > From business_loc >> >> > >> >> > Group By round(cast(ST_X(geom) as numeric),2), >> >> > round(cast(ST_Y(geom) as >> >> > numeric),2) >> >> > >> >> > Order By count Desc >> >> > >> >> > >> >> > >> >> > // Add Geometry >> >> > >> >> > Alter Table business_rd2 Add Column geom geometry(POINT,4326); >> >> > >> >> > Update business_rd2 Set geom = >> >> > ST_SetSRID(ST_MakePoint(lon,lat),4326); >> >> > >> >> > Create Index indx_business_rd2_geom On business_rd2 Using >> >> > GIST(geom); >> >> > >> >> > >> >> > >> >> > // Now add a primary key named id to enable mapserver drawing >> >> > >> >> > Alter Table business_rd2 Add Column id BIGSERIAL Primary Key; >> >> > >> >> > >> >> > >> >> >> Date: Fri, 9 Aug 2013 12:23:52 +0200 >> >> >> Subject: Re: [mapserver-users] drawing multiple layers from >> >> >> postgis >> >> >> From: thomas.bonfort at gmail.com >> >> >> To: mmcinnis59 at msn.com >> >> >> >> >> >> On 8 August 2013 20:16, Michael McInnis wrote: >> >> >> > Hopefully, this is an easy one. >> >> >> > >> >> >> > I'm trying to build a scale sensitive .map file using points >> >> >> > from postgis. >> >> >> > >> >> >> > I can successfully draw the shapefile states with a single >> >> >> > points layer from postgis. >> >> >> > However, if I add an additional points layer and attempt to draw >> >> >> > it the layer comes up blank. >> >> >> > If I remove the leading postgis points layer from the .map file >> >> >> > the new points layer will now display. >> >> >> > IE I can only draw the first occurrence of a postgis layer in >> >> >> > the map file. >> >> >> > >> >> >> > How do you define multiple postgis layers so that you can pick >> >> >> > and choose layers for display? >> >> >> > >> >> >> > LAYER >> >> >> > NAME states >> >> >> > DATA STATES >> >> >> > STATUS ON >> >> >> > TYPE Polygon >> >> >> > >> >> >> > CLASS >> >> >> > OUTLINECOLOR 255 255 255 >> >> >> > COLOR 155 155 155 >> >> >> > END # Class >> >> >> > END # Layer >> >> >> > >> >> >> > LAYER >> >> >> > CONNECTIONTYPE POSTGIS >> >> >> > NAME business_rd2 >> >> >> > CONNECTION "host=localhost dbname=Business user=postgres >> >> >> > password=xxxx port=5432" >> >> >> > PROCESSING "CLOSE_CONNECTION=DEFER" >> >> >> > DATA "geom From business_rd2 as rd2 using unique id using >> >> >> > srid=4326" >> >> >> > #MINSCALE 100000 >> >> >> > STATUS ON >> >> >> > TYPE POINT >> >> >> > CLASS >> >> >> > SYMBOL 'circle' >> >> >> > SIZE 2 >> >> >> > COLOR 255 0 0 >> >> >> > END >> >> >> this END is bogus >> >> >> >> >> >> > END # Class >> >> >> > END # Layer >> >> >> > >> >> >> > LAYER >> >> >> > CONNECTIONTYPE POSTGIS >> >> >> > NAME business_rd1 >> >> >> > CONNECTION "host=localhost dbname=Business user=postgres >> >> >> > password=xxxx port=5432" >> >> >> > PROCESSING "CLOSE_CONNECTION=DEFER" >> >> >> > DATA "geom From business_rd1 as rd1 using unique id using >> >> >> > srid=4326" >> >> >> > #MINSCALE 100000 >> >> >> > STATUS ON >> >> >> > TYPE POINT >> >> >> > CLASS >> >> >> > SYMBOL 'circle' >> >> >> > SIZE 2 >> >> >> > COLOR 255 0 0 >> >> >> > END >> >> >> this one to >> >> >> >> >> >> > END # Class >> >> >> > END # Layer >> >> >> > >> >> >> > >> >> >> > _______________________________________________ >> >> >> > mapserver-users mailing list >> >> >> > mapserver-users at lists.osgeo.org >> >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > >> >> > >> >> > _______________________________________________ >> >> > mapserver-users mailing list >> >> > mapserver-users at lists.osgeo.org >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jmarlin at saucontech.com Fri Aug 9 10:03:12 2013 From: jmarlin at saucontech.com (Joseph Marlin) Date: Fri, 9 Aug 2013 13:03:12 -0400 (EDT) Subject: [mapserver-users] The Case of the Disappearing Roads In-Reply-To: <1800699314.85522091.1376067214306.JavaMail.root@saucontech.com> Message-ID: <884682348.85530494.1376067792554.JavaMail.root@saucontech.com> The Case of the Disappearing Roads We create shapefiles with SQL querying world data that's been loaded into a PostgreSQL database. A python script requests tiles from mapserver at different zoom levels, and we generate the entire map like that. Now, at the sixth zoom level, level 3 roads (medium size roads) should be rendered. However, they are actually rendered only in a small section of the world, a box bounded by Toronto in the northwest, Cleveland in the southwest, and the Atlantic in the east. Elsewhere, level 3 roads are not rendered at all. As you can see in this image: http://i.imgur.com/6McvGOJ.png, the small gray roads, level 3 roads, (and highway shields, for that matter) that are visible on the top half suddenly stop being rendered by mapserver. In all the following more zoomed in levels, no roadways smaller than level 2 are rendered at all anywhere, as you can see here: http://i.imgur.com/8MTcPoi.png. I've verified that the shapefiles contain the data on the smaller roads as I have viewed them just fine with QGIS, as you can see here: http://i.imgur.com/S3W3Iy8.png I'm so confused as to what could possibly make roads disappear midway through a level. If it was a problem with my mapfile, why would they show up in part of Northeast US, but not anywhere else? Where do I even start looking to solve this? Thanks so much! Additional info: SRS: EPSG:900913 Zoom levels: 19567.8792375, 9783.93961875, 4891.969809375, 2445.9849046875, 1222.99245234375, 611.496226171875, 305.7481130859375, 152.87405654296876, 76.43702827148438, 38.21851413574219, 19.109257067871095, 9.554628533935547, 4.777314266967774, 2.388657133483887, 1.1943285667419434, 0.5971642833709717, 0.29858214168548586 Bounding box: -20037508.3427892,-20037508.3427892, 20037508.3427892,20037508.3427892 From andy at squeakycode.net Fri Aug 9 10:21:40 2013 From: andy at squeakycode.net (andy) Date: Fri, 09 Aug 2013 12:21:40 -0500 Subject: [mapserver-users] The Case of the Disappearing Roads In-Reply-To: <884682348.85530494.1376067792554.JavaMail.root@saucontech.com> References: <884682348.85530494.1376067792554.JavaMail.root@saucontech.com> Message-ID: <52052524.3070206@squeakycode.net> On 8/9/2013 12:03 PM, Joseph Marlin wrote: > The Case of the Disappearing Roads > > We create shapefiles with SQL querying world data that's been loaded into a PostgreSQL database. A python script requests tiles from mapserver at different zoom levels, and we generate the entire map like that. > > Now, at the sixth zoom level, level 3 roads (medium size roads) should be rendered. However, they are actually rendered only in a small section of the world, a box bounded by Toronto in the northwest, Cleveland in the southwest, and the Atlantic in the east. Elsewhere, level 3 roads are not rendered at all. > > As you can see in this image: http://i.imgur.com/6McvGOJ.png, the small gray roads, level 3 roads, (and highway shields, for that matter) that are visible on the top half suddenly stop being rendered by mapserver. > > In all the following more zoomed in levels, no roadways smaller than level 2 are rendered at all anywhere, as you can see here: http://i.imgur.com/8MTcPoi.png. I've verified that the shapefiles contain the data on the smaller roads as I have viewed them just fine with QGIS, as you can see here: http://i.imgur.com/S3W3Iy8.png > > I'm so confused as to what could possibly make roads disappear midway through a level. If it was a problem with my mapfile, why would they show up in part of Northeast US, but not anywhere else? Where do I even start looking to solve this? > > Thanks so much! > > Additional info: > SRS: EPSG:900913 > Zoom levels: 19567.8792375, 9783.93961875, 4891.969809375, 2445.9849046875, 1222.99245234375, 611.496226171875, 305.7481130859375, 152.87405654296876, 76.43702827148438, 38.21851413574219, 19.109257067871095, 9.554628533935547, 4.777314266967774, 2.388657133483887, 1.1943285667419434, 0.5971642833709717, 0.29858214168548586 > Bounding box: -20037508.3427892,-20037508.3427892, 20037508.3427892,20037508.3427892 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > I've seen that problem when the data is invalid. Try something like: select count(*) from roads where not ST_IsValid(the_geom); You should get zero. -Andy From thomas.bonfort at gmail.com Fri Aug 9 10:54:41 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 9 Aug 2013 19:54:41 +0200 Subject: [mapserver-users] The Case of the Disappearing Roads In-Reply-To: <884682348.85530494.1376067792554.JavaMail.root@saucontech.com> References: <1800699314.85522091.1376067214306.JavaMail.root@saucontech.com> <884682348.85530494.1376067792554.JavaMail.root@saucontech.com> Message-ID: Joseph, are the images you are posting a direct result of a getmap request (i.e. with width=1007&height=454), or are they a screenshot of a javascript client that is doing tiled requests to mapserver? If those are tiled requests, are your layer/class minscale/maxscale settings set to the exact values of your requested resolutions (i.e. their might be some rounding errors in that case that make a scale-dependant class appear or disappear based on floating point rounding errors). -- thomas On 9 August 2013 19:03, Joseph Marlin wrote: > The Case of the Disappearing Roads > > We create shapefiles with SQL querying world data that's been loaded into a PostgreSQL database. A python script requests tiles from mapserver at different zoom levels, and we generate the entire map like that. > > Now, at the sixth zoom level, level 3 roads (medium size roads) should be rendered. However, they are actually rendered only in a small section of the world, a box bounded by Toronto in the northwest, Cleveland in the southwest, and the Atlantic in the east. Elsewhere, level 3 roads are not rendered at all. > > As you can see in this image: http://i.imgur.com/6McvGOJ.png, the small gray roads, level 3 roads, (and highway shields, for that matter) that are visible on the top half suddenly stop being rendered by mapserver. > > In all the following more zoomed in levels, no roadways smaller than level 2 are rendered at all anywhere, as you can see here: http://i.imgur.com/8MTcPoi.png. I've verified that the shapefiles contain the data on the smaller roads as I have viewed them just fine with QGIS, as you can see here: http://i.imgur.com/S3W3Iy8.png > > I'm so confused as to what could possibly make roads disappear midway through a level. If it was a problem with my mapfile, why would they show up in part of Northeast US, but not anywhere else? Where do I even start looking to solve this? > > Thanks so much! > > Additional info: > SRS: EPSG:900913 > Zoom levels: 19567.8792375, 9783.93961875, 4891.969809375, 2445.9849046875, 1222.99245234375, 611.496226171875, 305.7481130859375, 152.87405654296876, 76.43702827148438, 38.21851413574219, 19.109257067871095, 9.554628533935547, 4.777314266967774, 2.388657133483887, 1.1943285667419434, 0.5971642833709717, 0.29858214168548586 > Bounding box: -20037508.3427892,-20037508.3427892, 20037508.3427892,20037508.3427892 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmarlin at saucontech.com Fri Aug 9 11:04:05 2013 From: jmarlin at saucontech.com (Joseph Marlin) Date: Fri, 9 Aug 2013 14:04:05 -0400 (EDT) Subject: [mapserver-users] The Case of the Disappearing Roads In-Reply-To: References: <1800699314.85522091.1376067214306.JavaMail.root@saucontech.com> <884682348.85530494.1376067792554.JavaMail.root@saucontech.com> Message-ID: <372042631.85597283.1376071445555.JavaMail.root@saucontech.com> Thanks Thomas for the idea. I think I understand what you're asking. We pre-render all our tiles though, so while the screenshots are indeed showing a javascript viewer, that viewer is simply loading the prerendered images, retrieved from tilecache. And I have made sure that it isn't TileCache storing old tiles. ----- Original Message ----- From: "thomas bonfort" To: "Joseph Marlin" Cc: "MapserverList OSGEO" Sent: Friday, August 9, 2013 1:54:41 PM Subject: Re: [mapserver-users] The Case of the Disappearing Roads Joseph, are the images you are posting a direct result of a getmap request (i.e. with width=1007&height=454), or are they a screenshot of a javascript client that is doing tiled requests to mapserver? If those are tiled requests, are your layer/class minscale/maxscale settings set to the exact values of your requested resolutions (i.e. their might be some rounding errors in that case that make a scale-dependant class appear or disappear based on floating point rounding errors). -- thomas On 9 August 2013 19:03, Joseph Marlin wrote: > The Case of the Disappearing Roads > > We create shapefiles with SQL querying world data that's been loaded into a PostgreSQL database. A python script requests tiles from mapserver at different zoom levels, and we generate the entire map like that. > > Now, at the sixth zoom level, level 3 roads (medium size roads) should be rendered. However, they are actually rendered only in a small section of the world, a box bounded by Toronto in the northwest, Cleveland in the southwest, and the Atlantic in the east. Elsewhere, level 3 roads are not rendered at all. > > As you can see in this image: http://i.imgur.com/6McvGOJ.png, the small gray roads, level 3 roads, (and highway shields, for that matter) that are visible on the top half suddenly stop being rendered by mapserver. > > In all the following more zoomed in levels, no roadways smaller than level 2 are rendered at all anywhere, as you can see here: http://i.imgur.com/8MTcPoi.png. I've verified that the shapefiles contain the data on the smaller roads as I have viewed them just fine with QGIS, as you can see here: http://i.imgur.com/S3W3Iy8.png > > I'm so confused as to what could possibly make roads disappear midway through a level. If it was a problem with my mapfile, why would they show up in part of Northeast US, but not anywhere else? Where do I even start looking to solve this? > > Thanks so much! > > Additional info: > SRS: EPSG:900913 > Zoom levels: 19567.8792375, 9783.93961875, 4891.969809375, 2445.9849046875, 1222.99245234375, 611.496226171875, 305.7481130859375, 152.87405654296876, 76.43702827148438, 38.21851413574219, 19.109257067871095, 9.554628533935547, 4.777314266967774, 2.388657133483887, 1.1943285667419434, 0.5971642833709717, 0.29858214168548586 > Bounding box: -20037508.3427892,-20037508.3427892, 20037508.3427892,20037508.3427892 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmarlin at saucontech.com Fri Aug 9 11:13:33 2013 From: jmarlin at saucontech.com (Joseph Marlin) Date: Fri, 9 Aug 2013 14:13:33 -0400 (EDT) Subject: [mapserver-users] The Case of the Disappearing Roads In-Reply-To: References: <1800699314.85522091.1376067214306.JavaMail.root@saucontech.com> <884682348.85530494.1376067792554.JavaMail.root@saucontech.com> Message-ID: <1529886735.85614474.1376072013233.JavaMail.root@saucontech.com> select count(*) from wkt_link where not ST_IsValid(link); Ran that and correctly got 0. Which sort of makes sense since they display in QGIS just fine. ----- Original Message ----- From: "andy" To: "Joseph Marlin" Cc: "MapserverList OSGEO" Sent: Fri Aug 9 10:21:40 PDT 2013 Subject: Re: [mapserver-users] The Case of the Disappearing Roads I've seen that problem when the data is invalid. Try something like: select count(*) from roads where not ST_IsValid(the_geom); You should get zero. -Andy From thomas.bonfort at gmail.com Sat Aug 10 00:18:03 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sat, 10 Aug 2013 09:18:03 +0200 Subject: [mapserver-users] The Case of the Disappearing Roads In-Reply-To: <372042631.85597283.1376071445555.JavaMail.root@saucontech.com> References: <1800699314.85522091.1376067214306.JavaMail.root@saucontech.com> <884682348.85530494.1376067792554.JavaMail.root@saucontech.com> <372042631.85597283.1376071445555.JavaMail.root@saucontech.com> Message-ID: Another thing to check: are you using a tileindex to reference your shapefiles, and if so, is the tileindex up-to-date (i.e. does it reference all your shapefiles). -- thomas On 9 August 2013 20:04, Joseph Marlin wrote: > Thanks Thomas for the idea. I think I understand what you're asking. We pre-render all our tiles though, so while the screenshots are indeed showing a javascript viewer, that viewer is simply loading the prerendered images, retrieved from tilecache. And I have made sure that it isn't TileCache storing old tiles. > > ----- Original Message ----- > From: "thomas bonfort" > To: "Joseph Marlin" > Cc: "MapserverList OSGEO" > Sent: Friday, August 9, 2013 1:54:41 PM > Subject: Re: [mapserver-users] The Case of the Disappearing Roads > > Joseph, > are the images you are posting a direct result of a getmap request > (i.e. with width=1007&height=454), or are they a screenshot of a > javascript client that is doing tiled requests to mapserver? > If those are tiled requests, are your layer/class minscale/maxscale > settings set to the exact values of your requested resolutions (i.e. > their might be some rounding errors in that case that make a > scale-dependant class appear or disappear based on floating point > rounding errors). > > -- > thomas > > On 9 August 2013 19:03, Joseph Marlin wrote: >> The Case of the Disappearing Roads >> >> We create shapefiles with SQL querying world data that's been loaded into a PostgreSQL database. A python script requests tiles from mapserver at different zoom levels, and we generate the entire map like that. >> >> Now, at the sixth zoom level, level 3 roads (medium size roads) should be rendered. However, they are actually rendered only in a small section of the world, a box bounded by Toronto in the northwest, Cleveland in the southwest, and the Atlantic in the east. Elsewhere, level 3 roads are not rendered at all. >> >> As you can see in this image: http://i.imgur.com/6McvGOJ.png, the small gray roads, level 3 roads, (and highway shields, for that matter) that are visible on the top half suddenly stop being rendered by mapserver. >> >> In all the following more zoomed in levels, no roadways smaller than level 2 are rendered at all anywhere, as you can see here: http://i.imgur.com/8MTcPoi.png. I've verified that the shapefiles contain the data on the smaller roads as I have viewed them just fine with QGIS, as you can see here: http://i.imgur.com/S3W3Iy8.png >> >> I'm so confused as to what could possibly make roads disappear midway through a level. If it was a problem with my mapfile, why would they show up in part of Northeast US, but not anywhere else? Where do I even start looking to solve this? >> >> Thanks so much! >> >> Additional info: >> SRS: EPSG:900913 >> Zoom levels: 19567.8792375, 9783.93961875, 4891.969809375, 2445.9849046875, 1222.99245234375, 611.496226171875, 305.7481130859375, 152.87405654296876, 76.43702827148438, 38.21851413574219, 19.109257067871095, 9.554628533935547, 4.777314266967774, 2.388657133483887, 1.1943285667419434, 0.5971642833709717, 0.29858214168548586 >> Bounding box: -20037508.3427892,-20037508.3427892, 20037508.3427892,20037508.3427892 >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From ahmettemiz88 at gmail.com Sat Aug 10 23:37:54 2013 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Sun, 11 Aug 2013 09:37:54 +0300 Subject: [mapserver-users] two raster layers's intersection Message-ID: hello My data is stored in Postgis. I need to display only two raster layers's intersection. how can I do that ? regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Planlama ve Zarar Azaltma Dairesi Ba?kanl??? ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From raffaele.morelli at gmail.com Sun Aug 11 00:29:23 2013 From: raffaele.morelli at gmail.com (Raffaele Morelli) Date: Sun, 11 Aug 2013 09:29:23 +0200 Subject: [mapserver-users] two raster layers's intersection In-Reply-To: References: Message-ID: 2013/8/11 Ahmet Temiz > > hello > > > My data is stored in Postgis. > > I need to display only two raster layers's intersection. > > how can I do that ? > > regards > Create a postgis view by using http://postgis.refractions.net/docs/RT_ST_Intersection.html Display the layer in mapserver /r -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Sun Aug 11 01:30:58 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Sun, 11 Aug 2013 10:30:58 +0200 Subject: [mapserver-users] vector Symbol and anchorpoint Message-ID: Hi, I'm having trouble try.ing use the anchorpoint with a vector symbol. Is this working with vectors ? This is what I'm try to do: SYMBOL NAME "test" TYPE vector FILLED TRUE POINTS 0.5 1.0 0.5 0.75 0.0 0.75 1.0 0.75 END ANCHORPOINT 0.0 0.0 END The anchorpoint seem always set to the 0.5 0.5 position. I'm use the trunk version of mapserver. -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Sun Aug 11 01:43:35 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sun, 11 Aug 2013 10:43:35 +0200 Subject: [mapserver-users] vector Symbol and anchorpoint In-Reply-To: References: Message-ID: try defining the points of your vector symbol such that min(x)=min(y)=0 On 11 August 2013 10:30, Andrea Peri wrote: > Hi, > > I'm having trouble try.ing use the anchorpoint with a vector symbol. > > Is this working with vectors ? > > This is what I'm try to do: > > SYMBOL > NAME "test" > TYPE vector > FILLED TRUE > POINTS > 0.5 1.0 > 0.5 0.75 > 0.0 0.75 > 1.0 0.75 > END > ANCHORPOINT 0.0 0.0 > END > > The anchorpoint seem always set to the 0.5 0.5 position. > > I'm use the trunk version of mapserver. > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From aperi2007 at gmail.com Sun Aug 11 04:07:05 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Sun, 11 Aug 2013 13:07:05 +0200 Subject: [mapserver-users] vector Symbol and anchorpoint In-Reply-To: References: Message-ID: Hi, thx for response. I try to set this symbol: SYMBOL NAME "test" TYPE vector FILLED TRUE POINTS 0.0 0.0 1.0 0.0 0.5 0.0 0.5 0.5 END ANCHORPOINT 0.0 0.0 END But mapserver seem move the line by 0.5. I show in the attached image (img1) the problem. The filled green is the real polygon. Instead the red is the symbol I try to define with "test". As you can see the red line is not in the exact outline but 0.5 moved. I notice also that if I define this other kind of symbol: SYMBOL NAME "chiodo" TYPE vector FILLED TRUE POINTS 0.0 0.0 1.0 0.0 0.5 0.0 # 0.5 0.5 END ANCHORPOINT 0.0 0.0 END Where I comment the perpendicul segment, the result is a red line exactly on the outline. I show this in the img2 attacched. So mapserver seem move the symbol when there is a perpendicular segment. Is this a bug or I don't understand how work the symbols ? Thx, Andrea. 2013/8/11 thomas bonfort > try defining the points of your vector symbol such that min(x)=min(y)=0 > > On 11 August 2013 10:30, Andrea Peri wrote: > > Hi, > > > > I'm having trouble try.ing use the anchorpoint with a vector symbol. > > > > Is this working with vectors ? > > > > This is what I'm try to do: > > > > SYMBOL > > NAME "test" > > TYPE vector > > FILLED TRUE > > POINTS > > 0.5 1.0 > > 0.5 0.75 > > 0.0 0.75 > > 1.0 0.75 > > END > > ANCHORPOINT 0.0 0.0 > > END > > > > The anchorpoint seem always set to the 0.5 0.5 position. > > > > I'm use the trunk version of mapserver. > > > > > > > > -- > > ----------------- > > Andrea Peri > > . . . . . . . . . > > qwerty ????? > > ----------------- > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: img1.gif Type: image/gif Size: 7269 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: img2.gif Type: image/gif Size: 5425 bytes Desc: not available URL: From thomas.bonfort at gmail.com Sun Aug 11 05:15:16 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sun, 11 Aug 2013 14:15:16 +0200 Subject: [mapserver-users] vector Symbol and anchorpoint In-Reply-To: References: Message-ID: As you're not showing what you would like to obtain, nor the mapfile you are using to generate those images it is difficult to be of much help. I have added a test in https://github.com/mapserver/msautotest/commit/89d59a49586dc3192dfd2f67bd1a751f0900e36f that mimics what I guess you would like to obtain, and for me shows that anchorpoint seems to be working as expected. -- thomas On 11 August 2013 13:07, Andrea Peri wrote: > Hi, > thx for response. > > I try to set this symbol: > > > SYMBOL > NAME "test" > TYPE vector > FILLED TRUE > POINTS > 0.0 0.0 > 1.0 0.0 > 0.5 0.0 > 0.5 0.5 > > END > ANCHORPOINT 0.0 0.0 > END > > But mapserver seem move the line by 0.5. > > I show in the attached image (img1) the problem. > The filled green is the real polygon. > Instead the red is the symbol I try to define with "test". > As you can see the red line is not in the exact outline but 0.5 moved. > > I notice also that if I define this other kind of symbol: > > SYMBOL > NAME "chiodo" > > TYPE vector > FILLED TRUE > POINTS > 0.0 0.0 > 1.0 0.0 > 0.5 0.0 > # 0.5 0.5 > > END > ANCHORPOINT 0.0 0.0 > END > > Where I comment the perpendicul segment, > the result is a red line exactly on the outline. > I show this in the img2 attacched. > > So mapserver seem move the symbol when there is a perpendicular segment. > > Is this a bug or I don't understand how work the symbols ? > > Thx, > > Andrea. > > > > 2013/8/11 thomas bonfort >> >> try defining the points of your vector symbol such that min(x)=min(y)=0 >> >> On 11 August 2013 10:30, Andrea Peri wrote: >> > Hi, >> > >> > I'm having trouble try.ing use the anchorpoint with a vector symbol. >> > >> > Is this working with vectors ? >> > >> > This is what I'm try to do: >> > >> > SYMBOL >> > NAME "test" >> > TYPE vector >> > FILLED TRUE >> > POINTS >> > 0.5 1.0 >> > 0.5 0.75 >> > 0.0 0.75 >> > 1.0 0.75 >> > END >> > ANCHORPOINT 0.0 0.0 >> > END >> > >> > The anchorpoint seem always set to the 0.5 0.5 position. >> > >> > I'm use the trunk version of mapserver. >> > >> > >> > >> > -- >> > ----------------- >> > Andrea Peri >> > . . . . . . . . . >> > qwerty ????? >> > ----------------- >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- From aperi2007 at gmail.com Sun Aug 11 05:37:24 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Sun, 11 Aug 2013 14:37:24 +0200 Subject: [mapserver-users] vector Symbol and anchorpoint In-Reply-To: References: Message-ID: Hi, Sorry, I forgot to explain my need. I need to define an outline of polygon with an perpendicular segment forward the internal of polygon. It goal is to allow to use only the outline (no internal fill) and also help the user to distinguish the internal and the external part of a polygon when the scale is bigger and the polygon is not all in the screen. The problem is that the symbol don't start exactly from the outpline but a little before.as it was moved. Andrea. 2013/8/11 thomas bonfort > As you're not showing what you would like to obtain, nor the mapfile > you are using to generate those images it is difficult to be of much > help. I have added a test in > > https://github.com/mapserver/msautotest/commit/89d59a49586dc3192dfd2f67bd1a751f0900e36f > that mimics what I guess you would like to obtain, and for me shows > that anchorpoint seems to be working as expected. > > -- > thomas > > On 11 August 2013 13:07, Andrea Peri wrote: > > Hi, > > thx for response. > > > > I try to set this symbol: > > > > > > SYMBOL > > NAME "test" > > TYPE vector > > FILLED TRUE > > POINTS > > 0.0 0.0 > > 1.0 0.0 > > 0.5 0.0 > > 0.5 0.5 > > > > END > > ANCHORPOINT 0.0 0.0 > > END > > > > But mapserver seem move the line by 0.5. > > > > I show in the attached image (img1) the problem. > > The filled green is the real polygon. > > Instead the red is the symbol I try to define with "test". > > As you can see the red line is not in the exact outline but 0.5 moved. > > > > I notice also that if I define this other kind of symbol: > > > > SYMBOL > > NAME "chiodo" > > > > TYPE vector > > FILLED TRUE > > POINTS > > 0.0 0.0 > > 1.0 0.0 > > 0.5 0.0 > > # 0.5 0.5 > > > > END > > ANCHORPOINT 0.0 0.0 > > END > > > > Where I comment the perpendicul segment, > > the result is a red line exactly on the outline. > > I show this in the img2 attacched. > > > > So mapserver seem move the symbol when there is a perpendicular segment. > > > > Is this a bug or I don't understand how work the symbols ? > > > > Thx, > > > > Andrea. > > > > > > > > 2013/8/11 thomas bonfort > >> > >> try defining the points of your vector symbol such that min(x)=min(y)=0 > >> > >> On 11 August 2013 10:30, Andrea Peri wrote: > >> > Hi, > >> > > >> > I'm having trouble try.ing use the anchorpoint with a vector symbol. > >> > > >> > Is this working with vectors ? > >> > > >> > This is what I'm try to do: > >> > > >> > SYMBOL > >> > NAME "test" > >> > TYPE vector > >> > FILLED TRUE > >> > POINTS > >> > 0.5 1.0 > >> > 0.5 0.75 > >> > 0.0 0.75 > >> > 1.0 0.75 > >> > END > >> > ANCHORPOINT 0.0 0.0 > >> > END > >> > > >> > The anchorpoint seem always set to the 0.5 0.5 position. > >> > > >> > I'm use the trunk version of mapserver. > >> > > >> > > >> > > >> > -- > >> > ----------------- > >> > Andrea Peri > >> > . . . . . . . . . > >> > qwerty ????? > >> > ----------------- > >> > > >> > _______________________________________________ > >> > mapserver-users mailing list > >> > mapserver-users at lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > > > > > > > > > > -- > > ----------------- > > Andrea Peri > > . . . . . . . . . > > qwerty ????? > > ----------------- > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Sun Aug 11 05:56:11 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sun, 11 Aug 2013 14:56:11 +0200 Subject: [mapserver-users] vector Symbol and anchorpoint In-Reply-To: References: Message-ID: Andrea, the example I gave you does exactly that. https://github.com/mapserver/msautotest/blob/master/renderers/line_anchorpoint.map#L20 , just remove the first style's COLOR if you don't want a fill. -- thomas On 11 August 2013 14:37, Andrea Peri wrote: > Hi, > > Sorry, I forgot to explain my need. > > I need to define an outline of polygon with an perpendicular segment forward > the internal of polygon. > It goal is to allow to use only the outline (no internal fill) and also help > the user to distinguish the internal and the external part of a polygon when > the scale is bigger and the polygon is not all in the screen. > > The problem is that the symbol don't start exactly from the outpline but a > little before.as it was moved. > > Andrea. > > > > > 2013/8/11 thomas bonfort >> >> As you're not showing what you would like to obtain, nor the mapfile >> you are using to generate those images it is difficult to be of much >> help. I have added a test in >> >> https://github.com/mapserver/msautotest/commit/89d59a49586dc3192dfd2f67bd1a751f0900e36f >> that mimics what I guess you would like to obtain, and for me shows >> that anchorpoint seems to be working as expected. >> >> -- >> thomas >> >> On 11 August 2013 13:07, Andrea Peri wrote: >> > Hi, >> > thx for response. >> > >> > I try to set this symbol: >> > >> > >> > SYMBOL >> > NAME "test" >> > TYPE vector >> > FILLED TRUE >> > POINTS >> > 0.0 0.0 >> > 1.0 0.0 >> > 0.5 0.0 >> > 0.5 0.5 >> > >> > END >> > ANCHORPOINT 0.0 0.0 >> > END >> > >> > But mapserver seem move the line by 0.5. >> > >> > I show in the attached image (img1) the problem. >> > The filled green is the real polygon. >> > Instead the red is the symbol I try to define with "test". >> > As you can see the red line is not in the exact outline but 0.5 moved. >> > >> > I notice also that if I define this other kind of symbol: >> > >> > SYMBOL >> > NAME "chiodo" >> > >> > TYPE vector >> > FILLED TRUE >> > POINTS >> > 0.0 0.0 >> > 1.0 0.0 >> > 0.5 0.0 >> > # 0.5 0.5 >> > >> > END >> > ANCHORPOINT 0.0 0.0 >> > END >> > >> > Where I comment the perpendicul segment, >> > the result is a red line exactly on the outline. >> > I show this in the img2 attacched. >> > >> > So mapserver seem move the symbol when there is a perpendicular segment. >> > >> > Is this a bug or I don't understand how work the symbols ? >> > >> > Thx, >> > >> > Andrea. >> > >> > >> > >> > 2013/8/11 thomas bonfort >> >> >> >> try defining the points of your vector symbol such that min(x)=min(y)=0 >> >> >> >> On 11 August 2013 10:30, Andrea Peri wrote: >> >> > Hi, >> >> > >> >> > I'm having trouble try.ing use the anchorpoint with a vector symbol. >> >> > >> >> > Is this working with vectors ? >> >> > >> >> > This is what I'm try to do: >> >> > >> >> > SYMBOL >> >> > NAME "test" >> >> > TYPE vector >> >> > FILLED TRUE >> >> > POINTS >> >> > 0.5 1.0 >> >> > 0.5 0.75 >> >> > 0.0 0.75 >> >> > 1.0 0.75 >> >> > END >> >> > ANCHORPOINT 0.0 0.0 >> >> > END >> >> > >> >> > The anchorpoint seem always set to the 0.5 0.5 position. >> >> > >> >> > I'm use the trunk version of mapserver. >> >> > >> >> > >> >> > >> >> > -- >> >> > ----------------- >> >> > Andrea Peri >> >> > . . . . . . . . . >> >> > qwerty ????? >> >> > ----------------- >> >> > >> >> > _______________________________________________ >> >> > mapserver-users mailing list >> >> > mapserver-users at lists.osgeo.org >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > >> > >> > >> > >> > >> > -- >> > ----------------- >> > Andrea Peri >> > . . . . . . . . . >> > qwerty ????? >> > ----------------- > > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- From aperi2007 at gmail.com Sun Aug 11 05:59:40 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Sun, 11 Aug 2013 14:59:40 +0200 Subject: [mapserver-users] vector Symbol and anchorpoint In-Reply-To: References: Message-ID: Hi Thomas. It work very well. I tried to define a symbol with two segment: one perpendicolar to the other. Instead more simple was to create an only one segment perpendicular to the outline. Many thx, Andrea. 2013/8/11 thomas bonfort > Andrea, the example I gave you does exactly that. > > https://github.com/mapserver/msautotest/blob/master/renderers/line_anchorpoint.map#L20 > , just remove the first style's COLOR if you don't want a fill. > > -- > thomas > > On 11 August 2013 14:37, Andrea Peri wrote: > > Hi, > > > > Sorry, I forgot to explain my need. > > > > I need to define an outline of polygon with an perpendicular segment > forward > > the internal of polygon. > > It goal is to allow to use only the outline (no internal fill) and also > help > > the user to distinguish the internal and the external part of a polygon > when > > the scale is bigger and the polygon is not all in the screen. > > > > The problem is that the symbol don't start exactly from the outpline but > a > > little before.as it was moved. > > > > Andrea. > > > > > > > > > > 2013/8/11 thomas bonfort > >> > >> As you're not showing what you would like to obtain, nor the mapfile > >> you are using to generate those images it is difficult to be of much > >> help. I have added a test in > >> > >> > https://github.com/mapserver/msautotest/commit/89d59a49586dc3192dfd2f67bd1a751f0900e36f > >> that mimics what I guess you would like to obtain, and for me shows > >> that anchorpoint seems to be working as expected. > >> > >> -- > >> thomas > >> > >> On 11 August 2013 13:07, Andrea Peri wrote: > >> > Hi, > >> > thx for response. > >> > > >> > I try to set this symbol: > >> > > >> > > >> > SYMBOL > >> > NAME "test" > >> > TYPE vector > >> > FILLED TRUE > >> > POINTS > >> > 0.0 0.0 > >> > 1.0 0.0 > >> > 0.5 0.0 > >> > 0.5 0.5 > >> > > >> > END > >> > ANCHORPOINT 0.0 0.0 > >> > END > >> > > >> > But mapserver seem move the line by 0.5. > >> > > >> > I show in the attached image (img1) the problem. > >> > The filled green is the real polygon. > >> > Instead the red is the symbol I try to define with "test". > >> > As you can see the red line is not in the exact outline but 0.5 moved. > >> > > >> > I notice also that if I define this other kind of symbol: > >> > > >> > SYMBOL > >> > NAME "chiodo" > >> > > >> > TYPE vector > >> > FILLED TRUE > >> > POINTS > >> > 0.0 0.0 > >> > 1.0 0.0 > >> > 0.5 0.0 > >> > # 0.5 0.5 > >> > > >> > END > >> > ANCHORPOINT 0.0 0.0 > >> > END > >> > > >> > Where I comment the perpendicul segment, > >> > the result is a red line exactly on the outline. > >> > I show this in the img2 attacched. > >> > > >> > So mapserver seem move the symbol when there is a perpendicular > segment. > >> > > >> > Is this a bug or I don't understand how work the symbols ? > >> > > >> > Thx, > >> > > >> > Andrea. > >> > > >> > > >> > > >> > 2013/8/11 thomas bonfort > >> >> > >> >> try defining the points of your vector symbol such that > min(x)=min(y)=0 > >> >> > >> >> On 11 August 2013 10:30, Andrea Peri wrote: > >> >> > Hi, > >> >> > > >> >> > I'm having trouble try.ing use the anchorpoint with a vector > symbol. > >> >> > > >> >> > Is this working with vectors ? > >> >> > > >> >> > This is what I'm try to do: > >> >> > > >> >> > SYMBOL > >> >> > NAME "test" > >> >> > TYPE vector > >> >> > FILLED TRUE > >> >> > POINTS > >> >> > 0.5 1.0 > >> >> > 0.5 0.75 > >> >> > 0.0 0.75 > >> >> > 1.0 0.75 > >> >> > END > >> >> > ANCHORPOINT 0.0 0.0 > >> >> > END > >> >> > > >> >> > The anchorpoint seem always set to the 0.5 0.5 position. > >> >> > > >> >> > I'm use the trunk version of mapserver. > >> >> > > >> >> > > >> >> > > >> >> > -- > >> >> > ----------------- > >> >> > Andrea Peri > >> >> > . . . . . . . . . > >> >> > qwerty ????? > >> >> > ----------------- > >> >> > > >> >> > _______________________________________________ > >> >> > mapserver-users mailing list > >> >> > mapserver-users at lists.osgeo.org > >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> > > >> > > >> > > >> > > >> > > >> > -- > >> > ----------------- > >> > Andrea Peri > >> > . . . . . . . . . > >> > qwerty ????? > >> > ----------------- > > > > > > > > > > -- > > ----------------- > > Andrea Peri > > . . . . . . . . . > > qwerty ????? > > ----------------- > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Sun Aug 11 23:30:30 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Mon, 12 Aug 2013 08:30:30 +0200 Subject: [mapserver-users] How retrieving the used Reference System Detecting in a template Message-ID: Hi, I'm writing a template for html getfeatureinfo response, and I need to write the coordinate clicked and their reference system. For the clicked coordinate there is no problemto get them. But I'm having some trouble to retrieve the reference system. Infact if the user call the wms using version 1.3.0 the sintax to retrieve the used reference system is [crs] instead if the user call the wms using a 1.1.1 version sintax the reference system is retrievable using the [srs] There is a common variable to get the reference system of request ? Thx -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Mon Aug 12 01:06:17 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Mon, 12 Aug 2013 10:06:17 +0200 Subject: [mapserver-users] What reference system used for maplong and maplat Message-ID: Hi, the expression [maplong] and [maplat] what reference system use ? I guess "epsg:4326" but I not sure. Thx -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From gislars+list at googlemail.com Mon Aug 12 01:39:15 2013 From: gislars+list at googlemail.com (Lars Lingner) Date: Mon, 12 Aug 2013 10:39:15 +0200 Subject: [mapserver-users] securing mapserver layers In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA31E6389@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA31E6389@swmail01.r8nssis.local> Message-ID: <52089F33.1000700@googlemail.com> Hello, i'm having a similar use case at the moment. For the authorizaion and authentication I'm using MapProxy [1]. Basically it is a proxy your users will query. The proxy itself uses MapServer as source. Your can restrict whole WMS, layers or even regions, defined by bbox/shapefile. It is running well with MapServer and I was able to set it up by using the online documentation. Lars [1] http://mapproxy.org/docs/nightly/auth.html From ian.walberg at airborne.aero Mon Aug 12 09:01:37 2013 From: ian.walberg at airborne.aero (Ian Walberg) Date: Mon, 12 Aug 2013 16:01:37 +0000 Subject: [mapserver-users] Scalebar transparency Message-ID: <301B8AEA64C24846BE688A7CFD223FC0092833@DAGN09c-e6.exg6.exghost.com> We use php mapscript and have always struggled to understand how to get the scale bar transparent. What seemed to be the case was if we set the png output type to transparent and the scale bar to transparent we got a transparent background ok. The image in this case will be a 32 bit RGBA png so larger than ideal but it did work. However if we set the output type to jpg we could not get a transparent scalebar via php mapsrcipt. Using a map file and the cgi mapserv we can get a transparent scale bar background for both png's and jpeg's. The current documentation says that the transparent setting in the scalebar object is depreciated and the output format setting should be used. So we are confused. Should it be possible via php mapscript to get a jpg format output and a scalebar with a transparent background? We assume yes as this is possible with a map file. Thanks From mmcinnis59 at msn.com Mon Aug 12 11:02:20 2013 From: mmcinnis59 at msn.com (Michael McInnis) Date: Mon, 12 Aug 2013 11:02:20 -0700 Subject: [mapserver-users] draw map at a precise scale Message-ID: I've been searching for a way to draw my map at a specific map location and a specific scale. IE -90, 38 (Decimal Degree) at 1:100,000 scale I've seen the zoomscale() and zoompoint() functions but they appear to be pixel coordinate driven and require extents which you wouldn't know, that's the point. I can write the math to do the extent calculation manually but figure this is such a basic functionality it mustalready exist in mapserver? Anyone done this before? Thanks Michael McInnis -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahmettemiz88 at gmail.com Mon Aug 12 11:44:35 2013 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Mon, 12 Aug 2013 21:44:35 +0300 Subject: [mapserver-users] problem in DATA expression Message-ID: Hello I need to have queried raster data I want to integrate this query (sql) to DATA clause sql="select rc from ( select ST_Clip(r.rast,ST_SetSRID(g.geom,4326)) AS rc from slp4_GEO AS r , sformasyon22 AS g where ST_Intersects(ST_SetSRID(g.geom,4326) ,r.rast ) " here is my DATA expression DATA 'PG: dbname=tr2 host=localhost port=5432 user=orkun password=222222 schema=public table=slp4_GEO mode=2' I will appreciate if you answer regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Planlama ve Zarar Azaltma Dairesi Ba?kanl??? ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmarlin at saucontech.com Mon Aug 12 12:14:13 2013 From: jmarlin at saucontech.com (Joseph Marlin) Date: Mon, 12 Aug 2013 15:14:13 -0400 (EDT) Subject: [mapserver-users] The Case of the Disappearing Roads In-Reply-To: References: <1800699314.85522091.1376067214306.JavaMail.root@saucontech.com> <884682348.85530494.1376067792554.JavaMail.root@saucontech.com> <372042631.85597283.1376071445555.JavaMail.root@saucontech.com> Message-ID: <387429147.89686503.1376334853881.JavaMail.root@saucontech.com> I am indeed using tile indices. I didn't think there would be any problem with that step, but just to be sure I went ahead and checked. They all looked ok, but I noticed that all the features that use tile indexes were the exact features that aren't showing up- small roadways, highway shields, etc. This was highly suspicious, and so I did a lot of digging. I recreated all the index shape files, this time using an old version of the tile4ms and shptree utilities that I had fortunately saved when I generated the map in 2011, and found that tileindex shapefiles were no much larger, and the map was rendered correctly! So, all I can say for sure is that the current version of tile4ms and shptree definitely did not work. This issue has been reported at least twice before it seems, http://trac.osgeo.org/mapserver/ticket/4259 http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg17207.html And I guess it is worth noting that this problem is still present in the latest version (MapServer version 6.2.1 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV INPUT=JPEG INPUT=SHAPEFILE). Thanks so so much for your help! Let me know if you need further info. Joseph ----- Original Message ----- From: "thomas bonfort" To: "Joseph Marlin" Cc: "MapserverList OSGEO" Sent: Saturday, August 10, 2013 3:18:03 AM Subject: Re: [mapserver-users] The Case of the Disappearing Roads Another thing to check: are you using a tileindex to reference your shapefiles, and if so, is the tileindex up-to-date (i.e. does it reference all your shapefiles). -- thomas On 9 August 2013 20:04, Joseph Marlin wrote: > Thanks Thomas for the idea. I think I understand what you're asking. We pre-render all our tiles though, so while the screenshots are indeed showing a javascript viewer, that viewer is simply loading the prerendered images, retrieved from tilecache. And I have made sure that it isn't TileCache storing old tiles. > > ----- Original Message ----- > From: "thomas bonfort" > To: "Joseph Marlin" > Cc: "MapserverList OSGEO" > Sent: Friday, August 9, 2013 1:54:41 PM > Subject: Re: [mapserver-users] The Case of the Disappearing Roads > > Joseph, > are the images you are posting a direct result of a getmap request > (i.e. with width=1007&height=454), or are they a screenshot of a > javascript client that is doing tiled requests to mapserver? > If those are tiled requests, are your layer/class minscale/maxscale > settings set to the exact values of your requested resolutions (i.e. > their might be some rounding errors in that case that make a > scale-dependant class appear or disappear based on floating point > rounding errors). > > -- > thomas > > On 9 August 2013 19:03, Joseph Marlin wrote: >> The Case of the Disappearing Roads >> >> We create shapefiles with SQL querying world data that's been loaded into a PostgreSQL database. A python script requests tiles from mapserver at different zoom levels, and we generate the entire map like that. >> >> Now, at the sixth zoom level, level 3 roads (medium size roads) should be rendered. However, they are actually rendered only in a small section of the world, a box bounded by Toronto in the northwest, Cleveland in the southwest, and the Atlantic in the east. Elsewhere, level 3 roads are not rendered at all. >> >> As you can see in this image: http://i.imgur.com/6McvGOJ.png, the small gray roads, level 3 roads, (and highway shields, for that matter) that are visible on the top half suddenly stop being rendered by mapserver. >> >> In all the following more zoomed in levels, no roadways smaller than level 2 are rendered at all anywhere, as you can see here: http://i.imgur.com/8MTcPoi.png. I've verified that the shapefiles contain the data on the smaller roads as I have viewed them just fine with QGIS, as you can see here: http://i.imgur.com/S3W3Iy8.png >> >> I'm so confused as to what could possibly make roads disappear midway through a level. If it was a problem with my mapfile, why would they show up in part of Northeast US, but not anywhere else? Where do I even start looking to solve this? >> >> Thanks so much! >> >> Additional info: >> SRS: EPSG:900913 >> Zoom levels: 19567.8792375, 9783.93961875, 4891.969809375, 2445.9849046875, 1222.99245234375, 611.496226171875, 305.7481130859375, 152.87405654296876, 76.43702827148438, 38.21851413574219, 19.109257067871095, 9.554628533935547, 4.777314266967774, 2.388657133483887, 1.1943285667419434, 0.5971642833709717, 0.29858214168548586 >> Bounding box: -20037508.3427892,-20037508.3427892, 20037508.3427892,20037508.3427892 >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Mon Aug 12 12:22:04 2013 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 12 Aug 2013 16:22:04 -0300 Subject: [mapserver-users] The Case of the Disappearing Roads In-Reply-To: <387429147.89686503.1376334853881.JavaMail.root@saucontech.com> References: <1800699314.85522091.1376067214306.JavaMail.root@saucontech.com> <884682348.85530494.1376067792554.JavaMail.root@saucontech.com> <372042631.85597283.1376071445555.JavaMail.root@saucontech.com> <387429147.89686503.1376334853881.JavaMail.root@saucontech.com> Message-ID: <520935DC.6040504@gatewaygeomatics.com> For good karma (think of it as a way to thank Thomas and others for tackling these questions) since you have a problem dataset handy, you could create a tiny one or two features sample, with one layer, and package all that in an archive with a README.txt and champion this change through the tickets you mentioned. Thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2013-08-12 4:14 PM, Joseph Marlin wrote: > I am indeed using tile indices. I didn't think there would be any problem with that step, but just to be sure I went ahead and checked. They all looked ok, but I noticed that all the features that use tile indexes were the exact features that aren't showing up- small roadways, highway shields, etc. This was highly suspicious, and so I did a lot of digging. > > I recreated all the index shape files, this time using an old version of the tile4ms and shptree utilities that I had fortunately saved when I generated the map in 2011, and found that tileindex shapefiles were no much larger, and the map was rendered correctly! > > So, all I can say for sure is that the current version of tile4ms and shptree definitely did not work. This issue has been reported at least twice before it seems, > http://trac.osgeo.org/mapserver/ticket/4259 > http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg17207.html > > And I guess it is worth noting that this problem is still present in the latest version (MapServer version 6.2.1 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV INPUT=JPEG INPUT=SHAPEFILE). > > Thanks so so much for your help! Let me know if you need further info. > Joseph > > > > ----- Original Message ----- > From: "thomas bonfort" > To: "Joseph Marlin" > Cc: "MapserverList OSGEO" > Sent: Saturday, August 10, 2013 3:18:03 AM > Subject: Re: [mapserver-users] The Case of the Disappearing Roads > > Another thing to check: are you using a tileindex to reference your > shapefiles, and if so, is the tileindex up-to-date (i.e. does it > reference all your shapefiles). > > -- > thomas > > On 9 August 2013 20:04, Joseph Marlin wrote: >> Thanks Thomas for the idea. I think I understand what you're asking. We pre-render all our tiles though, so while the screenshots are indeed showing a javascript viewer, that viewer is simply loading the prerendered images, retrieved from tilecache. And I have made sure that it isn't TileCache storing old tiles. >> >> ----- Original Message ----- >> From: "thomas bonfort" >> To: "Joseph Marlin" >> Cc: "MapserverList OSGEO" >> Sent: Friday, August 9, 2013 1:54:41 PM >> Subject: Re: [mapserver-users] The Case of the Disappearing Roads >> >> Joseph, >> are the images you are posting a direct result of a getmap request >> (i.e. with width=1007&height=454), or are they a screenshot of a >> javascript client that is doing tiled requests to mapserver? >> If those are tiled requests, are your layer/class minscale/maxscale >> settings set to the exact values of your requested resolutions (i.e. >> their might be some rounding errors in that case that make a >> scale-dependant class appear or disappear based on floating point >> rounding errors). >> >> -- >> thomas >> >> On 9 August 2013 19:03, Joseph Marlin wrote: >>> The Case of the Disappearing Roads >>> >>> We create shapefiles with SQL querying world data that's been loaded into a PostgreSQL database. A python script requests tiles from mapserver at different zoom levels, and we generate the entire map like that. >>> >>> Now, at the sixth zoom level, level 3 roads (medium size roads) should be rendered. However, they are actually rendered only in a small section of the world, a box bounded by Toronto in the northwest, Cleveland in the southwest, and the Atlantic in the east. Elsewhere, level 3 roads are not rendered at all. >>> >>> As you can see in this image: http://i.imgur.com/6McvGOJ.png, the small gray roads, level 3 roads, (and highway shields, for that matter) that are visible on the top half suddenly stop being rendered by mapserver. >>> >>> In all the following more zoomed in levels, no roadways smaller than level 2 are rendered at all anywhere, as you can see here: http://i.imgur.com/8MTcPoi.png. I've verified that the shapefiles contain the data on the smaller roads as I have viewed them just fine with QGIS, as you can see here: http://i.imgur.com/S3W3Iy8.png >>> >>> I'm so confused as to what could possibly make roads disappear midway through a level. If it was a problem with my mapfile, why would they show up in part of Northeast US, but not anywhere else? Where do I even start looking to solve this? >>> >>> Thanks so much! >>> >>> Additional info: >>> SRS: EPSG:900913 >>> Zoom levels: 19567.8792375, 9783.93961875, 4891.969809375, 2445.9849046875, 1222.99245234375, 611.496226171875, 305.7481130859375, 152.87405654296876, 76.43702827148438, 38.21851413574219, 19.109257067871095, 9.554628533935547, 4.777314266967774, 2.388657133483887, 1.1943285667419434, 0.5971642833709717, 0.29858214168548586 >>> Bounding box: -20037508.3427892,-20037508.3427892, 20037508.3427892,20037508.3427892 >>> _______________________________________________ >>> 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 jfuch at indec.mecon.gov.ar Mon Aug 12 13:02:48 2013 From: jfuch at indec.mecon.gov.ar (Fuchs Juan Carlos) Date: Mon, 12 Aug 2013 17:02:48 -0300 Subject: [mapserver-users] RV: help needed!! getfeatureinfo from cascaded WMS layer won't wo rk Message-ID: <51058F0BEB7C1E44816252D9F76AABC674D76F@indec2.mecon.ar> Short version Mailserver bounces my mails :-( ... Hi folks, getfeatureinfo from cascaded WMS layer, won't work. The origin layer is publish in GeoServer (sorry) With WMS published and query allowed On the other side we have MAapserver with a cascaded layer service http://200.51.91.237/cgi-bin/mapserv?map=/home/wms/codgeo_cascada.map It displays well, but getfeatureinfo don?t work All I get is a "Search returns no results" In a neutral browser like Gaia. Will send map file if requested (Cascaded service via Mapserver) So far, I understood that a WMS serviced in LAN, could be cascaded to WAN, using Mapserver. Do I get something wrong ?? TiA JC -------------- next part -------------- An HTML attachment was scrubbed... URL: From James.Evans at hill.af.mil Mon Aug 12 15:47:08 2013 From: James.Evans at hill.af.mil (Evans, James R Civ USAF ACC 84 RADES/SCZE) Date: Mon, 12 Aug 2013 16:47:08 -0600 Subject: [mapserver-users] Best way to do a batch reprojection (on windows) References: <1375907699966-5071365.post@n6.nabble.com> <84446DEF76453C439E9E97E438E13A63C1F7C2@suutari.haapa.mmm.fi> Message-ID: <35C8F653C6AB9E44B3BC7E4D89634A6D061784B8@VFUTMLAO03.Enterprise.afmc.ds.af.mil> Well, the reprojection from NAD83 UTM Zone 16 to WGS84 didn't go so well. The edges don't exactly line up so I have a one pixel gap at the upper left hand corner, and a big gap at the lower right hand corner. So, would I have better luck reprojecting to some other projection, or should I just leave the data the way it is and hope that some future version of Mapserver (MS4W) will support multiple projections in the same layer? Thanks, James -----Original Message----- From: Evans, James R Civ USAF ACC 84 RADES/SCZE Sent: Thursday, August 08, 2013 10:40 AM To: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Best way to do a batch reprojection (on windows) I'm using the latest released version of MS4W, not even the latest debug builds, so that probably won't work for me. I'll see what the result is for this first conversion. It would be nice to be able to have one contiguous layer without having to do the reprojection. Thanks, James -----Original Message----- From: Rahkonen Jukka [mailto:jukka.rahkonen at mmmtike.fi] Sent: Wednesday, August 07, 2013 10:38 PM To: Evans, James R Civ USAF ACC 84 RADES/SCZE; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Best way to do a batch reprojection (on windows) Hi, Stop what you do, it is not the right thing anymore. It should not be necessary to reproject the images into a common projection any more. This page describes how Mapserver is planned to be made to support tileindex with mixed projections http://mapserver.org/development/rfc/ms-rfc-100.html and this one proves that it has been implemented https://github.com/mapserver/mapserver/pull/4697. I am not sure but the development builds in http://gisinternals.com/sdk/ may include this new feature. Before this warping to a common coordinate system has been the way to go and gdalwarp is for sure good tool for that. I have using it with average resampling for aerial images. However, there is one nasty problem with warping images one by one into a common projection and it is caused by the rotation that results from warping. Each rotated image will have nodata collards in the corner areas and Mapserver must make them transparent when it is serving the final layer. It in simple, but only with uncompressed images because effective compression methods are lossy and after compression the nodata areas do not have just one pixel value like 0,0,0 but they have also close values like 0,1,0 and 0,0,1 etc. and those pixels will not be transparent. So I would suggest you to stop what you do and start evaluting tileindex with mixed projections. Warping images in-a-fly with Mapserver is fast and you do not need to be afraid of that. Your WMS users won't be happy with EPSG:4326 or any other single projection for the whole USA anyway so there would not be any difference, they will ask reprojected images in any case. You can start with the JPEG2000 images as they are but if you want more speed later you can convert them without reprojecting inte tiled GeoTIFFs with jpeg compression. Nodata problem will not occur in this case because images are not rotated. -Jukka Rahkonen- ________________________________________ James_in_Utah wrote: > Hi, > I have the NAIP imagery for CONUS, and it's rather large. About 4.2TBs, of JP2 files. It's projected in 10 UTM zones across the country. If I'm going to offer a single layer with Mapserver, I think I have to reproject all of the files into a single projection, say WGS84. I'm trying to figure out a good way to do that. GlobalMapper seems to have this function. I loaded up all the data from Alabama, and told it to convert the projection. It's been working at it for about 8 hours and I see no sign of progress. I tried creating a batch file to call GdalWarp, but for some reason that's getting an error. Here's the line from my batch: > for %%f in (*.jp2) do gdalwarp -t_srs EPSG:4326 %%f c:\out\%%f > The error is saying 4326 can't be found in the GSC.CSV, even though it is plainly in there. Even if I get this working, this wiill still be very tedious. The data is divide up by states, and under the state directory, there are dozens of subdirectories. I would need some sort of script to walk through the directories. > If anyone has a suggestion on how to efficiently reproject this large amount of data it would be greatly appreciated! > Thanks, > James -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Best-way-to-do-a-batch-reprojection-on-w indows-tp5071365.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: smime.p7s Type: application/pkcs7-signature Size: 6912 bytes Desc: not available URL: From ahmettemiz88 at gmail.com Mon Aug 12 23:56:10 2013 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Tue, 13 Aug 2013 09:56:10 +0300 Subject: [mapserver-users] where clause doesn't work in DATA Message-ID: Could you tell me what the wrong is about where clause DATA 'PG: dbname=tr2 host=localhost user=orkun password=222222 port=5432 schema=public table="slp4_geo AS r, sformasyon22 AS g" where="ST_Intersects(r.rast, ST_SetSRID(g.geom,4326) ) AND g.yas LIKE \'%KUVATERNER%\' " mode=2' regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Planlama ve Zarar Azaltma Dairesi Ba?kanl??? ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Tue Aug 13 00:00:36 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 13 Aug 2013 07:00:36 +0000 Subject: [mapserver-users] The Case of the Disappearing Roads In-Reply-To: <387429147.89686503.1376334853881.JavaMail.root@saucontech.com> References: <1800699314.85522091.1376067214306.JavaMail.root@saucontech.com> <884682348.85530494.1376067792554.JavaMail.root@saucontech.com> <372042631.85597283.1376071445555.JavaMail.root@saucontech.com> <387429147.89686503.1376334853881.JavaMail.root@saucontech.com> Message-ID: <84446DEF76453C439E9E97E438E13A63022DB58B@suutari.haapa.mmm.fi> Hi, Have you tried to use ogrtindex http://www.gdal.org/ogrtindex.html instead of tile4ms? Try also if there is any difference if you read the tileindex through ogr or with the native Mapserver method. I have found some differencies with these options. For example I found this note from my mapfiles (but Even Rouault could not reproduce my SDO_BODY error). #CONNECTIONTYPE OGR #with this SDO_BODY does not work on Linux build (CentOS) TILEINDEX "/ms4w/apps/ogrtindextest.shp,0" -Jukka Rahkonen- Joseph Marlin wrote: > I am indeed using tile indices. I didn't think there would be any problem with that > step, but just to be sure I went ahead and checked. They all looked ok, but I > noticed that all the features that use tile indexes were the exact features that > aren't showing up- small roadways, highway shields, etc. This was highly > suspicious, and so I did a lot of digging. > > I recreated all the index shape files, this time using an old version of the tile4ms > and shptree utilities that I had fortunately saved when I generated the map in > 2011, and found that tileindex shapefiles were no much larger, and the map was > rendered correctly! > > So, all I can say for sure is that the current version of tile4ms and shptree > definitely did not work. This issue has been reported at least twice before it > seems, > http://trac.osgeo.org/mapserver/ticket/4259 > http://www.mail-archive.com/mapserver- > users at lists.osgeo.org/msg17207.html > > And I guess it is worth noting that this problem is still present in the latest > version (MapServer version 6.2.1 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=AGG > SUPPORTS=FREETYPE SUPPORTS=ICONV INPUT=JPEG INPUT=SHAPEFILE). > > Thanks so so much for your help! Let me know if you need further info. > Joseph > > > > ----- Original Message ----- > From: "thomas bonfort" > To: "Joseph Marlin" > Cc: "MapserverList OSGEO" > Sent: Saturday, August 10, 2013 3:18:03 AM > Subject: Re: [mapserver-users] The Case of the Disappearing Roads > > Another thing to check: are you using a tileindex to reference your shapefiles, > and if so, is the tileindex up-to-date (i.e. does it reference all your shapefiles). > > -- > thomas > > On 9 August 2013 20:04, Joseph Marlin wrote: > > Thanks Thomas for the idea. I think I understand what you're asking. We pre- > render all our tiles though, so while the screenshots are indeed showing a > javascript viewer, that viewer is simply loading the prerendered images, > retrieved from tilecache. And I have made sure that it isn't TileCache storing old > tiles. > > > > ----- Original Message ----- > > From: "thomas bonfort" > > To: "Joseph Marlin" > > Cc: "MapserverList OSGEO" > > Sent: Friday, August 9, 2013 1:54:41 PM > > Subject: Re: [mapserver-users] The Case of the Disappearing Roads > > > > Joseph, > > are the images you are posting a direct result of a getmap request > > (i.e. with width=1007&height=454), or are they a screenshot of a > > javascript client that is doing tiled requests to mapserver? > > If those are tiled requests, are your layer/class minscale/maxscale > > settings set to the exact values of your requested resolutions (i.e. > > their might be some rounding errors in that case that make a > > scale-dependant class appear or disappear based on floating point > > rounding errors). > > > > -- > > thomas > > > > On 9 August 2013 19:03, Joseph Marlin wrote: > >> The Case of the Disappearing Roads > >> > >> We create shapefiles with SQL querying world data that's been loaded into a > PostgreSQL database. A python script requests tiles from mapserver at different > zoom levels, and we generate the entire map like that. > >> > >> Now, at the sixth zoom level, level 3 roads (medium size roads) should be > rendered. However, they are actually rendered only in a small section of the > world, a box bounded by Toronto in the northwest, Cleveland in the southwest, > and the Atlantic in the east. Elsewhere, level 3 roads are not rendered at all. > >> > >> As you can see in this image: http://i.imgur.com/6McvGOJ.png, the small > gray roads, level 3 roads, (and highway shields, for that matter) that are visible > on the top half suddenly stop being rendered by mapserver. > >> > >> In all the following more zoomed in levels, no roadways smaller than > >> level 2 are rendered at all anywhere, as you can see here: > >> http://i.imgur.com/8MTcPoi.png. I've verified that the shapefiles > >> contain the data on the smaller roads as I have viewed them just fine > >> with QGIS, as you can see here: http://i.imgur.com/S3W3Iy8.png > >> > >> I'm so confused as to what could possibly make roads disappear midway > through a level. If it was a problem with my mapfile, why would they show up in > part of Northeast US, but not anywhere else? Where do I even start looking to > solve this? > >> > >> Thanks so much! > >> > >> Additional info: > >> SRS: EPSG:900913 > >> Zoom levels: 19567.8792375, 9783.93961875, 4891.969809375, > >> 2445.9849046875, 1222.99245234375, 611.496226171875, > >> 305.7481130859375, 152.87405654296876, 76.43702827148438, > >> 38.21851413574219, 19.109257067871095, 9.554628533935547, > >> 4.777314266967774, 2.388657133483887, 1.1943285667419434, > >> 0.5971642833709717, 0.29858214168548586 Bounding box: > >> -20037508.3427892,-20037508.3427892, > >> 20037508.3427892,20037508.3427892 > >> _______________________________________________ > >> 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 thomas.bonfort at gmail.com Tue Aug 13 01:49:25 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 13 Aug 2013 10:49:25 +0200 Subject: [mapserver-users] The Case of the Disappearing Roads In-Reply-To: <520935DC.6040504@gatewaygeomatics.com> References: <1800699314.85522091.1376067214306.JavaMail.root@saucontech.com> <884682348.85530494.1376067792554.JavaMail.root@saucontech.com> <372042631.85597283.1376071445555.JavaMail.root@saucontech.com> <387429147.89686503.1376334853881.JavaMail.root@saucontech.com> <520935DC.6040504@gatewaygeomatics.com> Message-ID: Joseph, This does indead sound like a bug in tile4ms, and a quick test locally showed I was also unable to create a valid tileindex with tile4ms. That said, given the (absence of) activity around tile4ms (be it in code maintenance or user feedback), I would highly recommend to do as Jukka pointed out, that is to use the orgtindex command. regards, thomas On 12 August 2013 21:22, Jeff McKenna wrote: > For good karma (think of it as a way to thank Thomas and others for > tackling these questions) since you have a problem dataset handy, you > could create a tiny one or two features sample, with one layer, and > package all that in an archive with a README.txt and champion this > change through the tickets you mentioned. > > Thanks! > > -jeff > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > On 2013-08-12 4:14 PM, Joseph Marlin wrote: >> I am indeed using tile indices. I didn't think there would be any problem with that step, but just to be sure I went ahead and checked. They all looked ok, but I noticed that all the features that use tile indexes were the exact features that aren't showing up- small roadways, highway shields, etc. This was highly suspicious, and so I did a lot of digging. >> >> I recreated all the index shape files, this time using an old version of the tile4ms and shptree utilities that I had fortunately saved when I generated the map in 2011, and found that tileindex shapefiles were no much larger, and the map was rendered correctly! >> >> So, all I can say for sure is that the current version of tile4ms and shptree definitely did not work. This issue has been reported at least twice before it seems, >> http://trac.osgeo.org/mapserver/ticket/4259 >> http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg17207.html >> >> And I guess it is worth noting that this problem is still present in the latest version (MapServer version 6.2.1 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV INPUT=JPEG INPUT=SHAPEFILE). >> >> Thanks so so much for your help! Let me know if you need further info. >> Joseph >> >> >> >> ----- Original Message ----- >> From: "thomas bonfort" >> To: "Joseph Marlin" >> Cc: "MapserverList OSGEO" >> Sent: Saturday, August 10, 2013 3:18:03 AM >> Subject: Re: [mapserver-users] The Case of the Disappearing Roads >> >> Another thing to check: are you using a tileindex to reference your >> shapefiles, and if so, is the tileindex up-to-date (i.e. does it >> reference all your shapefiles). >> >> -- >> thomas >> >> On 9 August 2013 20:04, Joseph Marlin wrote: >>> Thanks Thomas for the idea. I think I understand what you're asking. We pre-render all our tiles though, so while the screenshots are indeed showing a javascript viewer, that viewer is simply loading the prerendered images, retrieved from tilecache. And I have made sure that it isn't TileCache storing old tiles. >>> >>> ----- Original Message ----- >>> From: "thomas bonfort" >>> To: "Joseph Marlin" >>> Cc: "MapserverList OSGEO" >>> Sent: Friday, August 9, 2013 1:54:41 PM >>> Subject: Re: [mapserver-users] The Case of the Disappearing Roads >>> >>> Joseph, >>> are the images you are posting a direct result of a getmap request >>> (i.e. with width=1007&height=454), or are they a screenshot of a >>> javascript client that is doing tiled requests to mapserver? >>> If those are tiled requests, are your layer/class minscale/maxscale >>> settings set to the exact values of your requested resolutions (i.e. >>> their might be some rounding errors in that case that make a >>> scale-dependant class appear or disappear based on floating point >>> rounding errors). >>> >>> -- >>> thomas >>> >>> On 9 August 2013 19:03, Joseph Marlin wrote: >>>> The Case of the Disappearing Roads >>>> >>>> We create shapefiles with SQL querying world data that's been loaded into a PostgreSQL database. A python script requests tiles from mapserver at different zoom levels, and we generate the entire map like that. >>>> >>>> Now, at the sixth zoom level, level 3 roads (medium size roads) should be rendered. However, they are actually rendered only in a small section of the world, a box bounded by Toronto in the northwest, Cleveland in the southwest, and the Atlantic in the east. Elsewhere, level 3 roads are not rendered at all. >>>> >>>> As you can see in this image: http://i.imgur.com/6McvGOJ.png, the small gray roads, level 3 roads, (and highway shields, for that matter) that are visible on the top half suddenly stop being rendered by mapserver. >>>> >>>> In all the following more zoomed in levels, no roadways smaller than level 2 are rendered at all anywhere, as you can see here: http://i.imgur.com/8MTcPoi.png. I've verified that the shapefiles contain the data on the smaller roads as I have viewed them just fine with QGIS, as you can see here: http://i.imgur.com/S3W3Iy8.png >>>> >>>> I'm so confused as to what could possibly make roads disappear midway through a level. If it was a problem with my mapfile, why would they show up in part of Northeast US, but not anywhere else? Where do I even start looking to solve this? >>>> >>>> Thanks so much! >>>> >>>> Additional info: >>>> SRS: EPSG:900913 >>>> Zoom levels: 19567.8792375, 9783.93961875, 4891.969809375, 2445.9849046875, 1222.99245234375, 611.496226171875, 305.7481130859375, 152.87405654296876, 76.43702827148438, 38.21851413574219, 19.109257067871095, 9.554628533935547, 4.777314266967774, 2.388657133483887, 1.1943285667419434, 0.5971642833709717, 0.29858214168548586 >>>> Bounding box: -20037508.3427892,-20037508.3427892, 20037508.3427892,20037508.3427892 >>>> _______________________________________________ >>>> 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 thomas.bonfort at gmail.com Tue Aug 13 02:27:50 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 13 Aug 2013 11:27:50 +0200 Subject: [mapserver-users] The Case of the Disappearing Roads In-Reply-To: References: <1800699314.85522091.1376067214306.JavaMail.root@saucontech.com> <884682348.85530494.1376067792554.JavaMail.root@saucontech.com> <372042631.85597283.1376071445555.JavaMail.root@saucontech.com> <387429147.89686503.1376334853881.JavaMail.root@saucontech.com> <520935DC.6040504@gatewaygeomatics.com> Message-ID: I just had a look, and committed a fix that works for me in https://github.com/mapserver/mapserver/issues/4259 (will be in 6.2.2 and 6.4.0) -- thomas On 13 August 2013 10:49, thomas bonfort wrote: > Joseph, > This does indead sound like a bug in tile4ms, and a quick test locally > showed I was also unable to create a valid tileindex with tile4ms. > That said, given the (absence of) activity around tile4ms (be it in > code maintenance or user feedback), I would highly recommend to do as > Jukka pointed out, that is to use the orgtindex command. > > regards, > thomas > > On 12 August 2013 21:22, Jeff McKenna wrote: >> For good karma (think of it as a way to thank Thomas and others for >> tackling these questions) since you have a problem dataset handy, you >> could create a tiny one or two features sample, with one layer, and >> package all that in an archive with a README.txt and champion this >> change through the tickets you mentioned. >> >> Thanks! >> >> -jeff >> >> >> -- >> Jeff McKenna >> MapServer Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> >> On 2013-08-12 4:14 PM, Joseph Marlin wrote: >>> I am indeed using tile indices. I didn't think there would be any problem with that step, but just to be sure I went ahead and checked. They all looked ok, but I noticed that all the features that use tile indexes were the exact features that aren't showing up- small roadways, highway shields, etc. This was highly suspicious, and so I did a lot of digging. >>> >>> I recreated all the index shape files, this time using an old version of the tile4ms and shptree utilities that I had fortunately saved when I generated the map in 2011, and found that tileindex shapefiles were no much larger, and the map was rendered correctly! >>> >>> So, all I can say for sure is that the current version of tile4ms and shptree definitely did not work. This issue has been reported at least twice before it seems, >>> http://trac.osgeo.org/mapserver/ticket/4259 >>> http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg17207.html >>> >>> And I guess it is worth noting that this problem is still present in the latest version (MapServer version 6.2.1 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV INPUT=JPEG INPUT=SHAPEFILE). >>> >>> Thanks so so much for your help! Let me know if you need further info. >>> Joseph >>> >>> >>> >>> ----- Original Message ----- >>> From: "thomas bonfort" >>> To: "Joseph Marlin" >>> Cc: "MapserverList OSGEO" >>> Sent: Saturday, August 10, 2013 3:18:03 AM >>> Subject: Re: [mapserver-users] The Case of the Disappearing Roads >>> >>> Another thing to check: are you using a tileindex to reference your >>> shapefiles, and if so, is the tileindex up-to-date (i.e. does it >>> reference all your shapefiles). >>> >>> -- >>> thomas >>> >>> On 9 August 2013 20:04, Joseph Marlin wrote: >>>> Thanks Thomas for the idea. I think I understand what you're asking. We pre-render all our tiles though, so while the screenshots are indeed showing a javascript viewer, that viewer is simply loading the prerendered images, retrieved from tilecache. And I have made sure that it isn't TileCache storing old tiles. >>>> >>>> ----- Original Message ----- >>>> From: "thomas bonfort" >>>> To: "Joseph Marlin" >>>> Cc: "MapserverList OSGEO" >>>> Sent: Friday, August 9, 2013 1:54:41 PM >>>> Subject: Re: [mapserver-users] The Case of the Disappearing Roads >>>> >>>> Joseph, >>>> are the images you are posting a direct result of a getmap request >>>> (i.e. with width=1007&height=454), or are they a screenshot of a >>>> javascript client that is doing tiled requests to mapserver? >>>> If those are tiled requests, are your layer/class minscale/maxscale >>>> settings set to the exact values of your requested resolutions (i.e. >>>> their might be some rounding errors in that case that make a >>>> scale-dependant class appear or disappear based on floating point >>>> rounding errors). >>>> >>>> -- >>>> thomas >>>> >>>> On 9 August 2013 19:03, Joseph Marlin wrote: >>>>> The Case of the Disappearing Roads >>>>> >>>>> We create shapefiles with SQL querying world data that's been loaded into a PostgreSQL database. A python script requests tiles from mapserver at different zoom levels, and we generate the entire map like that. >>>>> >>>>> Now, at the sixth zoom level, level 3 roads (medium size roads) should be rendered. However, they are actually rendered only in a small section of the world, a box bounded by Toronto in the northwest, Cleveland in the southwest, and the Atlantic in the east. Elsewhere, level 3 roads are not rendered at all. >>>>> >>>>> As you can see in this image: http://i.imgur.com/6McvGOJ.png, the small gray roads, level 3 roads, (and highway shields, for that matter) that are visible on the top half suddenly stop being rendered by mapserver. >>>>> >>>>> In all the following more zoomed in levels, no roadways smaller than level 2 are rendered at all anywhere, as you can see here: http://i.imgur.com/8MTcPoi.png. I've verified that the shapefiles contain the data on the smaller roads as I have viewed them just fine with QGIS, as you can see here: http://i.imgur.com/S3W3Iy8.png >>>>> >>>>> I'm so confused as to what could possibly make roads disappear midway through a level. If it was a problem with my mapfile, why would they show up in part of Northeast US, but not anywhere else? Where do I even start looking to solve this? >>>>> >>>>> Thanks so much! >>>>> >>>>> Additional info: >>>>> SRS: EPSG:900913 >>>>> Zoom levels: 19567.8792375, 9783.93961875, 4891.969809375, 2445.9849046875, 1222.99245234375, 611.496226171875, 305.7481130859375, 152.87405654296876, 76.43702827148438, 38.21851413574219, 19.109257067871095, 9.554628533935547, 4.777314266967774, 2.388657133483887, 1.1943285667419434, 0.5971642833709717, 0.29858214168548586 >>>>> Bounding box: -20037508.3427892,-20037508.3427892, 20037508.3427892,20037508.3427892 >>>>> _______________________________________________ >>>>> 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 jukka.rahkonen at mmmtike.fi Tue Aug 13 03:11:10 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 13 Aug 2013 10:11:10 +0000 Subject: [mapserver-users] Best way to do a batch reprojection (on windows) Message-ID: <84446DEF76453C439E9E97E438E13A63022DC6CF@suutari.haapa.mmm.fi> Hi, I would say that the multi-projection tileindex is the way to go. You can experiment by downloading first Mapserver dev version from http://gisinternals.com/sdk/PackageList.aspx?file=release-1600-gdal-mapserver.zip. Then you can a) make a backup copy of your C:\ms4w\Apache\cgi-bin directory b) copy all the dll files from \DGAL_dev\bin into C:\ms4w\Apache\cgi-bin c) copy mapserv.exe from \GDAL_dev\bin\ms\apps into C:\ms4w\Apache\cgi-bin Now you *may* have a MS4W version which supports multi-projection tileindexes. For sure this installation is not production safe and Mapserver with mixed binaries may not work at all. Better option would be to contact Gateway Geomatics http://www.gatewaygeomatics.com/ and ask them to make a custom MS4W build for you but then I suppose you must be prepared to use some money for making things happen fast. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] Puolesta Evans, James R Civ USAF ACC 84 > RADES/SCZE > L?hetetty: 13. elokuuta 2013 1:47 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Best way to do a batch reprojection (on windows) > > Well, the reprojection from NAD83 UTM Zone 16 to WGS84 didn't go so well. > The edges don't exactly line up so I have a one pixel gap at the upper left hand > corner, and a big gap at the lower right hand corner. So, would I have better > luck reprojecting to some other projection, or should I just leave the data the > way it is and hope that some future version of Mapserver (MS4W) will support > multiple projections in the same layer? > Thanks, > James > > > -----Original Message----- > From: Evans, James R Civ USAF ACC 84 RADES/SCZE > Sent: Thursday, August 08, 2013 10:40 AM > To: mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Best way to do a batch reprojection (on > windows) > > I'm using the latest released version of MS4W, not even the latest debug builds, > so that probably won't work for me. I'll see what the result is for this first > conversion. It would be nice to be able to have one contiguous layer without > having to do the reprojection. > Thanks, > James > > > -----Original Message----- > From: Rahkonen Jukka [mailto:jukka.rahkonen at mmmtike.fi] > Sent: Wednesday, August 07, 2013 10:38 PM > To: Evans, James R Civ USAF ACC 84 RADES/SCZE; mapserver- > users at lists.osgeo.org > Subject: Re: [mapserver-users] Best way to do a batch reprojection (on > windows) > > Hi, > > Stop what you do, it is not the right thing anymore. It should not be necessary to > reproject the images into a common projection any more. This page describes > how Mapserver is planned to be made to support tileindex with mixed > projections http://mapserver.org/development/rfc/ms-rfc-100.html and this > one proves that it has been implemented > https://github.com/mapserver/mapserver/pull/4697. I am not sure but the > development builds in http://gisinternals.com/sdk/ may include this new > feature. > > Before this warping to a common coordinate system has been the way to go > and gdalwarp is for sure good tool for that. I have using it with average > resampling for aerial images. However, there is one nasty problem with warping > images one by one into a common projection and it is caused by the rotation > that results from warping. Each rotated image will have nodata collards in the > corner areas and Mapserver must make them transparent when it is serving the > final layer. It in simple, but only with uncompressed images because effective > compression methods are lossy and after compression the nodata areas do not > have just one pixel value like 0,0,0 but they have also close values like 0,1,0 and > 0,0,1 etc. and those pixels will not be transparent. > > So I would suggest you to stop what you do and start evaluting tileindex with > mixed projections. Warping images in-a-fly with Mapserver is fast and you do > not need to be afraid of that. Your WMS users won't be happy with > EPSG:4326 or any other single projection for the whole USA anyway so there > would not be any difference, they will ask reprojected images in any case. > > You can start with the JPEG2000 images as they are but if you want more speed > later you can convert them without reprojecting inte tiled GeoTIFFs with jpeg > compression. Nodata problem will not occur in this case because images are not > rotated. > > -Jukka Rahkonen- > > ________________________________________ > James_in_Utah wrote: > > > Hi, > > I have the NAIP imagery for CONUS, and it's rather large. About > > 4.2TBs, > of > JP2 files. It's projected in 10 UTM zones across the country. If I'm going to offer > a single layer with Mapserver, I think I have to reproject all of the files into a > single projection, say WGS84. I'm trying to figure out a good way to do that. > GlobalMapper seems to have this function. I loaded up all the data from > Alabama, and told it to convert the projection. It's been working at it for about > 8 hours and I see no sign of progress. I tried creating a batch file to call > GdalWarp, but for some reason that's getting an error. Here's the line from my > batch: > > > for %%f in (*.jp2) do gdalwarp -t_srs EPSG:4326 %%f c:\out\%%f > > > The error is saying 4326 can't be found in the GSC.CSV, even though it > > is > plainly in there. Even if I get this working, this wiill still be very tedious. The data > is divide up by states, and under the state directory, there are dozens of > subdirectories. I would need some sort of script to walk through the directories. > > > If anyone has a suggestion on how to efficiently reproject this large > amount > of data it would be greatly appreciated! > > > Thanks, > > > James > > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Best-way-to-do-a-batch-reprojection- > on-w > indows-tp5071365.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 aperi2007 at gmail.com Tue Aug 13 05:40:43 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 13 Aug 2013 14:40:43 +0200 Subject: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ? Message-ID: Hi, Try.ing to set a label on a MULTILINESTRING dataset. I set a label with Follow capability. ANGLE FOLLOW But I'm having this error: msOGRFileNextShape(): OGR error. IllegalArgumentException: BufferBuilder::bufferLineSingleSided only accept linestrings Is the Follow compatible with a MultiLinestring dataset or need only simple linestrings ? Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Tue Aug 13 08:42:16 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 13 Aug 2013 17:42:16 +0200 Subject: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ? In-Reply-To: References: Message-ID: Hi, I tested trasforming the multilinestring dataset in a linestring dataset but the error is still here. msDrawMap(): Image handling error. Failed to draw layer named 'rt_topogr.50k.etichette.topon_idro_50k'. msOGRFileNextShape(): OGR error. IllegalArgumentException: BufferBuilder::bufferLineSingleSided only accept linestrings So it is not really due to a multilinestring vs linestring question. The quest carry on. 2013/8/13 Andrea Peri > Hi, > > Try.ing to set a label on a MULTILINESTRING dataset. > > I set a label with Follow capability. > > ANGLE FOLLOW > > But I'm having this error: > > msOGRFileNextShape(): OGR error. IllegalArgumentException: > BufferBuilder::bufferLineSingleSided only accept linestrings > > Is the Follow compatible with a MultiLinestring dataset or need only > simple linestrings ? > > Thx, > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue Aug 13 08:48:59 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 13 Aug 2013 17:48:59 +0200 Subject: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ? In-Reply-To: References: Message-ID: there's something strange in your error message... the singleSidedBuffer stuff is in GEOS, and should have nothing to do in msOGRFileNextShape. post your whole mapfile layer. On 13 August 2013 17:42, Andrea Peri wrote: > Hi, > > I tested trasforming the multilinestring dataset in a linestring dataset but > the error is still here. > > msDrawMap(): Image handling error. Failed to draw layer named > 'rt_topogr.50k.etichette.topon_idro_50k'. > > msOGRFileNextShape(): OGR error. IllegalArgumentException: > BufferBuilder::bufferLineSingleSided only accept linestrings > > So it is not really due to a multilinestring vs linestring question. > > The quest carry on. > > > > 2013/8/13 Andrea Peri >> >> Hi, >> >> Try.ing to set a label on a MULTILINESTRING dataset. >> >> I set a label with Follow capability. >> >> ANGLE FOLLOW >> >> But I'm having this error: >> >> msOGRFileNextShape(): OGR error. IllegalArgumentException: >> BufferBuilder::bufferLineSingleSided only accept linestrings >> >> Is the Follow compatible with a MultiLinestring dataset or need only >> simple linestrings ? >> >> Thx, >> >> -- >> ----------------- >> Andrea Peri >> . . . . . . . . . >> qwerty ????? >> ----------------- > > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From aperi2007 at gmail.com Tue Aug 13 09:08:28 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 13 Aug 2013 18:08:28 +0200 Subject: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ? In-Reply-To: References: Message-ID: I'm using spatialite 4.1.1, so use ogr to access the db. LAYER NAME "rt_topogr.50k.etichette.topon_idro_50k" STATUS OFF EXTENT 1554750.74 4678325.52 1771722.76 4924791.90 TYPE LINE CONNECTIONTYPE OGR CONNECTION "/path-to-spatialite/zz_topografica.sqlite" DATA "select PK_UID_2, TOPO_OK, GEOMETRY from topon_idro_50k" PROJECTION "+init=epsg:3003 +towgs84=0,0,0,0,0,0,0" END METADATA "wms_title" "topon_idro_50k" "wms_extent" "1554750.74 4678325.52 1771722.76 4924791.90" END LABELCACHE ON MAXSCALEDENOM 60100 MINSCALEDENOM 1 CLASS NAME '' MAXSCALEDENOM 60100 MINSCALEDENOM 1 LABEL TEXT '[TOPO_OK]' COLOR 0 85 255 OUTLINECOLOR 212 255 255 OUTLINEWIDTH 1 MAXSCALEDENOM 60100 MINSCALEDENOM 40100 FONT "LiberationSans-Regular" TYPE truetype SIZE 7 ANGLE FOLLOW OFFSET 15 99 POSITION auto PRIORITY 10 MAXOVERLAPANGLE 180.0 BUFFER 1 FORCE OFF PARTIALS FALSE MINDISTANCE 200 END LABEL TEXT '[TOPO_OK]' COLOR 0 85 255 OUTLINECOLOR 212 255 255 OUTLINEWIDTH 1 MAXSCALEDENOM 40100 MINSCALEDENOM 1 FONT "LiberationSans-Regular" TYPE truetype SIZE 9 ANGLE FOLLOW OFFSET 15 99 POSITION auto PRIORITY 10 MAXOVERLAPANGLE 180.0 BUFFER 1 FORCE OFF PARTIALS FALSE MINDISTANCE 200 END END END 2013/8/13 thomas bonfort > there's something strange in your error message... the > singleSidedBuffer stuff is in GEOS, and should have nothing to do in > msOGRFileNextShape. post your whole mapfile layer. > > On 13 August 2013 17:42, Andrea Peri wrote: > > Hi, > > > > I tested trasforming the multilinestring dataset in a linestring dataset > but > > the error is still here. > > > > msDrawMap(): Image handling error. Failed to draw layer named > > 'rt_topogr.50k.etichette.topon_idro_50k'. > > > > msOGRFileNextShape(): OGR error. IllegalArgumentException: > > BufferBuilder::bufferLineSingleSided only accept linestrings > > > > So it is not really due to a multilinestring vs linestring question. > > > > The quest carry on. > > > > > > > > 2013/8/13 Andrea Peri > >> > >> Hi, > >> > >> Try.ing to set a label on a MULTILINESTRING dataset. > >> > >> I set a label with Follow capability. > >> > >> ANGLE FOLLOW > >> > >> But I'm having this error: > >> > >> msOGRFileNextShape(): OGR error. IllegalArgumentException: > >> BufferBuilder::bufferLineSingleSided only accept linestrings > >> > >> Is the Follow compatible with a MultiLinestring dataset or need only > >> simple linestrings ? > >> > >> Thx, > >> > >> -- > >> ----------------- > >> Andrea Peri > >> . . . . . . . . . > >> qwerty ????? > >> ----------------- > > > > > > > > > > -- > > ----------------- > > Andrea Peri > > . . . . . . . . . > > qwerty ????? > > ----------------- > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Tue Aug 13 09:16:44 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 13 Aug 2013 16:16:44 +0000 Subject: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ? In-Reply-To: References: , Message-ID: <84446DEF76453C439E9E97E438E13A63022DD970@suutari.haapa.mmm.fi> Hi, What if there happens to be empty/null geometries in your source data? I guess you can add "AND geometry in not NULL" and perhaps even "AND IsValid(geometry)=1" to your DATA line. -Jukka Rahkonen- ________________________________ Andrea Peri wrote: > I'm using spatialite 4.1.1, > so use ogr to access the db. LAYER NAME "rt_topogr.50k.etichette.topon_idro_50k" STATUS OFF EXTENT 1554750.74 4678325.52 1771722.76 4924791.90 TYPE LINE CONNECTIONTYPE OGR CONNECTION "/path-to-spatialite/zz_topografica.sqlite" DATA "select PK_UID_2, TOPO_OK, GEOMETRY from topon_idro_50k" PROJECTION "+init=epsg:3003 +towgs84=0,0,0,0,0,0,0" END METADATA "wms_title" "topon_idro_50k" "wms_extent" "1554750.74 4678325.52 1771722.76 4924791.90" END LABELCACHE ON MAXSCALEDENOM 60100 MINSCALEDENOM 1 CLASS NAME '' MAXSCALEDENOM 60100 MINSCALEDENOM 1 LABEL TEXT '[TOPO_OK]' COLOR 0 85 255 OUTLINECOLOR 212 255 255 OUTLINEWIDTH 1 MAXSCALEDENOM 60100 MINSCALEDENOM 40100 FONT "LiberationSans-Regular" TYPE truetype SIZE 7 ANGLE FOLLOW OFFSET 15 99 POSITION auto PRIORITY 10 MAXOVERLAPANGLE 180.0 BUFFER 1 FORCE OFF PARTIALS FALSE MINDISTANCE 200 END LABEL TEXT '[TOPO_OK]' COLOR 0 85 255 OUTLINECOLOR 212 255 255 OUTLINEWIDTH 1 MAXSCALEDENOM 40100 MINSCALEDENOM 1 FONT "LiberationSans-Regular" TYPE truetype SIZE 9 ANGLE FOLLOW OFFSET 15 99 POSITION auto PRIORITY 10 MAXOVERLAPANGLE 180.0 BUFFER 1 FORCE OFF PARTIALS FALSE MINDISTANCE 200 END END END 2013/8/13 thomas bonfort > there's something strange in your error message... the singleSidedBuffer stuff is in GEOS, and should have nothing to do in msOGRFileNextShape. post your whole mapfile layer. On 13 August 2013 17:42, Andrea Peri > wrote: > Hi, > > I tested trasforming the multilinestring dataset in a linestring dataset but > the error is still here. > > msDrawMap(): Image handling error. Failed to draw layer named > 'rt_topogr.50k.etichette.topon_idro_50k'. > > msOGRFileNextShape(): OGR error. IllegalArgumentException: > BufferBuilder::bufferLineSingleSided only accept linestrings > > So it is not really due to a multilinestring vs linestring question. > > The quest carry on. > > > > 2013/8/13 Andrea Peri > >> >> Hi, >> >> Try.ing to set a label on a MULTILINESTRING dataset. >> >> I set a label with Follow capability. >> >> ANGLE FOLLOW >> >> But I'm having this error: >> >> msOGRFileNextShape(): OGR error. IllegalArgumentException: >> BufferBuilder::bufferLineSingleSided only accept linestrings >> >> Is the Follow compatible with a MultiLinestring dataset or need only >> simple linestrings ? >> >> Thx, >> >> -- >> ----------------- >> Andrea Peri >> . . . . . . . . . >> qwerty ????? >> ----------------- > > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From thomas.bonfort at gmail.com Tue Aug 13 09:17:39 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 13 Aug 2013 18:17:39 +0200 Subject: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ? In-Reply-To: References: Message-ID: why the double label? they seem to be the same, but in any case multiple labels are not supported for FOLLOW. On 13 August 2013 18:08, Andrea Peri wrote: > I'm using spatialite 4.1.1, > so use ogr to access the db. > > LAYER > NAME "rt_topogr.50k.etichette.topon_idro_50k" > STATUS OFF > EXTENT 1554750.74 4678325.52 1771722.76 4924791.90 > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION "/path-to-spatialite/zz_topografica.sqlite" > DATA "select PK_UID_2, TOPO_OK, GEOMETRY from topon_idro_50k" > PROJECTION > "+init=epsg:3003 +towgs84=0,0,0,0,0,0,0" > END > METADATA > "wms_title" "topon_idro_50k" > "wms_extent" "1554750.74 4678325.52 1771722.76 4924791.90" > END > LABELCACHE ON > MAXSCALEDENOM 60100 > MINSCALEDENOM 1 > CLASS > NAME '' > MAXSCALEDENOM 60100 > MINSCALEDENOM 1 > LABEL > TEXT '[TOPO_OK]' > COLOR 0 85 255 > OUTLINECOLOR 212 255 255 > OUTLINEWIDTH 1 > MAXSCALEDENOM 60100 > MINSCALEDENOM 40100 > FONT "LiberationSans-Regular" > TYPE truetype > SIZE 7 > ANGLE FOLLOW > OFFSET 15 99 > POSITION auto > PRIORITY 10 > MAXOVERLAPANGLE 180.0 > BUFFER 1 > FORCE OFF > PARTIALS FALSE > MINDISTANCE 200 > END > LABEL > TEXT '[TOPO_OK]' > COLOR 0 85 255 > OUTLINECOLOR 212 255 255 > OUTLINEWIDTH 1 > MAXSCALEDENOM 40100 > MINSCALEDENOM 1 > FONT "LiberationSans-Regular" > TYPE truetype > SIZE 9 > ANGLE FOLLOW > OFFSET 15 99 > POSITION auto > PRIORITY 10 > MAXOVERLAPANGLE 180.0 > BUFFER 1 > FORCE OFF > PARTIALS FALSE > MINDISTANCE 200 > END > END > END > > > > > 2013/8/13 thomas bonfort >> >> there's something strange in your error message... the >> singleSidedBuffer stuff is in GEOS, and should have nothing to do in >> msOGRFileNextShape. post your whole mapfile layer. >> >> On 13 August 2013 17:42, Andrea Peri wrote: >> > Hi, >> > >> > I tested trasforming the multilinestring dataset in a linestring dataset >> > but >> > the error is still here. >> > >> > msDrawMap(): Image handling error. Failed to draw layer named >> > 'rt_topogr.50k.etichette.topon_idro_50k'. >> > >> > msOGRFileNextShape(): OGR error. IllegalArgumentException: >> > BufferBuilder::bufferLineSingleSided only accept linestrings >> > >> > So it is not really due to a multilinestring vs linestring question. >> > >> > The quest carry on. >> > >> > >> > >> > 2013/8/13 Andrea Peri >> >> >> >> Hi, >> >> >> >> Try.ing to set a label on a MULTILINESTRING dataset. >> >> >> >> I set a label with Follow capability. >> >> >> >> ANGLE FOLLOW >> >> >> >> But I'm having this error: >> >> >> >> msOGRFileNextShape(): OGR error. IllegalArgumentException: >> >> BufferBuilder::bufferLineSingleSided only accept linestrings >> >> >> >> Is the Follow compatible with a MultiLinestring dataset or need only >> >> simple linestrings ? >> >> >> >> Thx, >> >> >> >> -- >> >> ----------------- >> >> Andrea Peri >> >> . . . . . . . . . >> >> qwerty ????? >> >> ----------------- >> > >> > >> > >> > >> > -- >> > ----------------- >> > Andrea Peri >> > . . . . . . . . . >> > qwerty ????? >> > ----------------- >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- From aperi2007 at gmail.com Tue Aug 13 09:22:03 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 13 Aug 2013 18:22:03 +0200 Subject: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ? In-Reply-To: <84446DEF76453C439E9E97E438E13A63022DD970@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63022DD970@suutari.haapa.mmm.fi> Message-ID: Hi Jukka, I check for this critical questions: unfortunately none of all them is in the dataset. No invalid geometry, neither null geometry, neither Empty geometry. :( Andrea. 2013/8/13 Rahkonen Jukka > Hi, > > What if there happens to be empty/null geometries in your source data? I > guess you can add "AND geometry in not NULL" and perhaps even "AND > IsValid(geometry)=1" to your DATA line. > > -Jukka Rahkonen- > > ________________________________ > Andrea Peri wrote: > > > I'm using spatialite 4.1.1, > > so use ogr to access the db. > > LAYER > NAME "rt_topogr.50k.etichette.topon_idro_50k" > STATUS OFF > EXTENT 1554750.74 4678325.52 1771722.76 4924791.90 > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION "/path-to-spatialite/zz_topografica.sqlite" > DATA "select PK_UID_2, TOPO_OK, GEOMETRY from topon_idro_50k" > PROJECTION > "+init=epsg:3003 +towgs84=0,0,0,0,0,0,0" > END > METADATA > "wms_title" "topon_idro_50k" > "wms_extent" "1554750.74 4678325.52 1771722.76 4924791.90" > END > LABELCACHE ON > MAXSCALEDENOM 60100 > MINSCALEDENOM 1 > CLASS > NAME '' > MAXSCALEDENOM 60100 > MINSCALEDENOM 1 > LABEL > TEXT '[TOPO_OK]' > COLOR 0 85 255 > OUTLINECOLOR 212 255 255 > OUTLINEWIDTH 1 > MAXSCALEDENOM 60100 > MINSCALEDENOM 40100 > FONT "LiberationSans-Regular" > TYPE truetype > SIZE 7 > ANGLE FOLLOW > OFFSET 15 99 > POSITION auto > PRIORITY 10 > MAXOVERLAPANGLE 180.0 > BUFFER 1 > FORCE OFF > PARTIALS FALSE > MINDISTANCE 200 > END > LABEL > TEXT '[TOPO_OK]' > COLOR 0 85 255 > OUTLINECOLOR 212 255 255 > OUTLINEWIDTH 1 > MAXSCALEDENOM 40100 > MINSCALEDENOM 1 > FONT "LiberationSans-Regular" > TYPE truetype > SIZE 9 > ANGLE FOLLOW > OFFSET 15 99 > POSITION auto > PRIORITY 10 > MAXOVERLAPANGLE 180.0 > BUFFER 1 > FORCE OFF > PARTIALS FALSE > MINDISTANCE 200 > END > END > END > > > > > 2013/8/13 thomas bonfort thomas.bonfort at gmail.com>> > there's something strange in your error message... the > singleSidedBuffer stuff is in GEOS, and should have nothing to do in > msOGRFileNextShape. post your whole mapfile layer. > > On 13 August 2013 17:42, Andrea Peri aperi2007 at gmail.com>> wrote: > > Hi, > > > > I tested trasforming the multilinestring dataset in a linestring dataset > but > > the error is still here. > > > > msDrawMap(): Image handling error. Failed to draw layer named > > 'rt_topogr.50k.etichette.topon_idro_50k'. > > > > msOGRFileNextShape(): OGR error. IllegalArgumentException: > > BufferBuilder::bufferLineSingleSided only accept linestrings > > > > So it is not really due to a multilinestring vs linestring question. > > > > The quest carry on. > > > > > > > > 2013/8/13 Andrea Peri > > >> > >> Hi, > >> > >> Try.ing to set a label on a MULTILINESTRING dataset. > >> > >> I set a label with Follow capability. > >> > >> ANGLE FOLLOW > >> > >> But I'm having this error: > >> > >> msOGRFileNextShape(): OGR error. IllegalArgumentException: > >> BufferBuilder::bufferLineSingleSided only accept linestrings > >> > >> Is the Follow compatible with a MultiLinestring dataset or need only > >> simple linestrings ? > >> > >> Thx, > >> > >> -- > >> ----------------- > >> Andrea Peri > >> . . . . . . . . . > >> qwerty ????? > >> ----------------- > > > > > > > > > > -- > > ----------------- > > Andrea Peri > > . . . . . . . . . > > qwerty ????? > > ----------------- > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Tue Aug 13 09:26:04 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 13 Aug 2013 18:26:04 +0200 Subject: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ? In-Reply-To: References: Message-ID: The two label are at different max/min scaledenominator. The goal is to have little label size at low scales and bigger font size at bigger scales. However only one lable is active at one scale level. Is this incompatible with "follow" ? 2013/8/13 thomas bonfort > why the double label? they seem to be the same, but in any case > multiple labels are not supported for FOLLOW. > > On 13 August 2013 18:08, Andrea Peri wrote: > > I'm using spatialite 4.1.1, > > so use ogr to access the db. > > > > LAYER > > NAME "rt_topogr.50k.etichette.topon_idro_50k" > > STATUS OFF > > EXTENT 1554750.74 4678325.52 1771722.76 4924791.90 > > TYPE LINE > > CONNECTIONTYPE OGR > > CONNECTION "/path-to-spatialite/zz_topografica.sqlite" > > DATA "select PK_UID_2, TOPO_OK, GEOMETRY from topon_idro_50k" > > PROJECTION > > "+init=epsg:3003 +towgs84=0,0,0,0,0,0,0" > > END > > METADATA > > "wms_title" "topon_idro_50k" > > "wms_extent" "1554750.74 4678325.52 1771722.76 4924791.90" > > END > > LABELCACHE ON > > MAXSCALEDENOM 60100 > > MINSCALEDENOM 1 > > CLASS > > NAME '' > > MAXSCALEDENOM 60100 > > MINSCALEDENOM 1 > > LABEL > > TEXT '[TOPO_OK]' > > COLOR 0 85 255 > > OUTLINECOLOR 212 255 255 > > OUTLINEWIDTH 1 > > MAXSCALEDENOM 60100 > > MINSCALEDENOM 40100 > > FONT "LiberationSans-Regular" > > TYPE truetype > > SIZE 7 > > ANGLE FOLLOW > > OFFSET 15 99 > > POSITION auto > > PRIORITY 10 > > MAXOVERLAPANGLE 180.0 > > BUFFER 1 > > FORCE OFF > > PARTIALS FALSE > > MINDISTANCE 200 > > END > > LABEL > > TEXT '[TOPO_OK]' > > COLOR 0 85 255 > > OUTLINECOLOR 212 255 255 > > OUTLINEWIDTH 1 > > MAXSCALEDENOM 40100 > > MINSCALEDENOM 1 > > FONT "LiberationSans-Regular" > > TYPE truetype > > SIZE 9 > > ANGLE FOLLOW > > OFFSET 15 99 > > POSITION auto > > PRIORITY 10 > > MAXOVERLAPANGLE 180.0 > > BUFFER 1 > > FORCE OFF > > PARTIALS FALSE > > MINDISTANCE 200 > > END > > END > > END > > > > > > > > > > 2013/8/13 thomas bonfort > >> > >> there's something strange in your error message... the > >> singleSidedBuffer stuff is in GEOS, and should have nothing to do in > >> msOGRFileNextShape. post your whole mapfile layer. > >> > >> On 13 August 2013 17:42, Andrea Peri wrote: > >> > Hi, > >> > > >> > I tested trasforming the multilinestring dataset in a linestring > dataset > >> > but > >> > the error is still here. > >> > > >> > msDrawMap(): Image handling error. Failed to draw layer named > >> > 'rt_topogr.50k.etichette.topon_idro_50k'. > >> > > >> > msOGRFileNextShape(): OGR error. IllegalArgumentException: > >> > BufferBuilder::bufferLineSingleSided only accept linestrings > >> > > >> > So it is not really due to a multilinestring vs linestring question. > >> > > >> > The quest carry on. > >> > > >> > > >> > > >> > 2013/8/13 Andrea Peri > >> >> > >> >> Hi, > >> >> > >> >> Try.ing to set a label on a MULTILINESTRING dataset. > >> >> > >> >> I set a label with Follow capability. > >> >> > >> >> ANGLE FOLLOW > >> >> > >> >> But I'm having this error: > >> >> > >> >> msOGRFileNextShape(): OGR error. IllegalArgumentException: > >> >> BufferBuilder::bufferLineSingleSided only accept linestrings > >> >> > >> >> Is the Follow compatible with a MultiLinestring dataset or need only > >> >> simple linestrings ? > >> >> > >> >> Thx, > >> >> > >> >> -- > >> >> ----------------- > >> >> Andrea Peri > >> >> . . . . . . . . . > >> >> qwerty ????? > >> >> ----------------- > >> > > >> > > >> > > >> > > >> > -- > >> > ----------------- > >> > Andrea Peri > >> > . . . . . . . . . > >> > qwerty ????? > >> > ----------------- > >> > > >> > _______________________________________________ > >> > mapserver-users mailing list > >> > mapserver-users at lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > > > > > > > > > > -- > > ----------------- > > Andrea Peri > > . . . . . . . . . > > qwerty ????? > > ----------------- > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue Aug 13 09:28:32 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 13 Aug 2013 18:28:32 +0200 Subject: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ? In-Reply-To: References: Message-ID: yes, that's incompatible. use multiple scale-dependant classes for now On 13 August 2013 18:26, Andrea Peri wrote: > The two label are at different max/min scaledenominator. > The goal is to have little label size at low scales and bigger font size at > bigger scales. > > However only one lable is active at one scale level. > > Is this incompatible with "follow" ? > > > > 2013/8/13 thomas bonfort >> >> why the double label? they seem to be the same, but in any case >> multiple labels are not supported for FOLLOW. >> >> On 13 August 2013 18:08, Andrea Peri wrote: >> > I'm using spatialite 4.1.1, >> > so use ogr to access the db. >> > >> > LAYER >> > NAME "rt_topogr.50k.etichette.topon_idro_50k" >> > STATUS OFF >> > EXTENT 1554750.74 4678325.52 1771722.76 4924791.90 >> > TYPE LINE >> > CONNECTIONTYPE OGR >> > CONNECTION "/path-to-spatialite/zz_topografica.sqlite" >> > DATA "select PK_UID_2, TOPO_OK, GEOMETRY from topon_idro_50k" >> > PROJECTION >> > "+init=epsg:3003 +towgs84=0,0,0,0,0,0,0" >> > END >> > METADATA >> > "wms_title" "topon_idro_50k" >> > "wms_extent" "1554750.74 4678325.52 1771722.76 4924791.90" >> > END >> > LABELCACHE ON >> > MAXSCALEDENOM 60100 >> > MINSCALEDENOM 1 >> > CLASS >> > NAME '' >> > MAXSCALEDENOM 60100 >> > MINSCALEDENOM 1 >> > LABEL >> > TEXT '[TOPO_OK]' >> > COLOR 0 85 255 >> > OUTLINECOLOR 212 255 255 >> > OUTLINEWIDTH 1 >> > MAXSCALEDENOM 60100 >> > MINSCALEDENOM 40100 >> > FONT "LiberationSans-Regular" >> > TYPE truetype >> > SIZE 7 >> > ANGLE FOLLOW >> > OFFSET 15 99 >> > POSITION auto >> > PRIORITY 10 >> > MAXOVERLAPANGLE 180.0 >> > BUFFER 1 >> > FORCE OFF >> > PARTIALS FALSE >> > MINDISTANCE 200 >> > END >> > LABEL >> > TEXT '[TOPO_OK]' >> > COLOR 0 85 255 >> > OUTLINECOLOR 212 255 255 >> > OUTLINEWIDTH 1 >> > MAXSCALEDENOM 40100 >> > MINSCALEDENOM 1 >> > FONT "LiberationSans-Regular" >> > TYPE truetype >> > SIZE 9 >> > ANGLE FOLLOW >> > OFFSET 15 99 >> > POSITION auto >> > PRIORITY 10 >> > MAXOVERLAPANGLE 180.0 >> > BUFFER 1 >> > FORCE OFF >> > PARTIALS FALSE >> > MINDISTANCE 200 >> > END >> > END >> > END >> > >> > >> > >> > >> > 2013/8/13 thomas bonfort >> >> >> >> there's something strange in your error message... the >> >> singleSidedBuffer stuff is in GEOS, and should have nothing to do in >> >> msOGRFileNextShape. post your whole mapfile layer. >> >> >> >> On 13 August 2013 17:42, Andrea Peri wrote: >> >> > Hi, >> >> > >> >> > I tested trasforming the multilinestring dataset in a linestring >> >> > dataset >> >> > but >> >> > the error is still here. >> >> > >> >> > msDrawMap(): Image handling error. Failed to draw layer named >> >> > 'rt_topogr.50k.etichette.topon_idro_50k'. >> >> > >> >> > msOGRFileNextShape(): OGR error. IllegalArgumentException: >> >> > BufferBuilder::bufferLineSingleSided only accept linestrings >> >> > >> >> > So it is not really due to a multilinestring vs linestring question. >> >> > >> >> > The quest carry on. >> >> > >> >> > >> >> > >> >> > 2013/8/13 Andrea Peri >> >> >> >> >> >> Hi, >> >> >> >> >> >> Try.ing to set a label on a MULTILINESTRING dataset. >> >> >> >> >> >> I set a label with Follow capability. >> >> >> >> >> >> ANGLE FOLLOW >> >> >> >> >> >> But I'm having this error: >> >> >> >> >> >> msOGRFileNextShape(): OGR error. IllegalArgumentException: >> >> >> BufferBuilder::bufferLineSingleSided only accept linestrings >> >> >> >> >> >> Is the Follow compatible with a MultiLinestring dataset or need only >> >> >> simple linestrings ? >> >> >> >> >> >> Thx, >> >> >> >> >> >> -- >> >> >> ----------------- >> >> >> Andrea Peri >> >> >> . . . . . . . . . >> >> >> qwerty ????? >> >> >> ----------------- >> >> > >> >> > >> >> > >> >> > >> >> > -- >> >> > ----------------- >> >> > Andrea Peri >> >> > . . . . . . . . . >> >> > qwerty ????? >> >> > ----------------- >> >> > >> >> > _______________________________________________ >> >> > mapserver-users mailing list >> >> > mapserver-users at lists.osgeo.org >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > >> > >> > >> > >> > >> > -- >> > ----------------- >> > Andrea Peri >> > . . . . . . . . . >> > qwerty ????? >> > ----------------- > > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- From aperi2007 at gmail.com Tue Aug 13 09:31:54 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 13 Aug 2013 18:31:54 +0200 Subject: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ? In-Reply-To: References: Message-ID: ok, thx. I change to multiple scale. However I do a rapid check removing a label component, but the problem is still here. Now I rewrite a more exact mapfile using two classes. Andrea. 2013/8/13 thomas bonfort > yes, that's incompatible. use multiple scale-dependant classes for now > > On 13 August 2013 18:26, Andrea Peri wrote: > > The two label are at different max/min scaledenominator. > > The goal is to have little label size at low scales and bigger font size > at > > bigger scales. > > > > However only one lable is active at one scale level. > > > > Is this incompatible with "follow" ? > > > > > > > > 2013/8/13 thomas bonfort > >> > >> why the double label? they seem to be the same, but in any case > >> multiple labels are not supported for FOLLOW. > >> > >> On 13 August 2013 18:08, Andrea Peri wrote: > >> > I'm using spatialite 4.1.1, > >> > so use ogr to access the db. > >> > > >> > LAYER > >> > NAME "rt_topogr.50k.etichette.topon_idro_50k" > >> > STATUS OFF > >> > EXTENT 1554750.74 4678325.52 1771722.76 4924791.90 > >> > TYPE LINE > >> > CONNECTIONTYPE OGR > >> > CONNECTION "/path-to-spatialite/zz_topografica.sqlite" > >> > DATA "select PK_UID_2, TOPO_OK, GEOMETRY from topon_idro_50k" > >> > PROJECTION > >> > "+init=epsg:3003 +towgs84=0,0,0,0,0,0,0" > >> > END > >> > METADATA > >> > "wms_title" "topon_idro_50k" > >> > "wms_extent" "1554750.74 4678325.52 1771722.76 4924791.90" > >> > END > >> > LABELCACHE ON > >> > MAXSCALEDENOM 60100 > >> > MINSCALEDENOM 1 > >> > CLASS > >> > NAME '' > >> > MAXSCALEDENOM 60100 > >> > MINSCALEDENOM 1 > >> > LABEL > >> > TEXT '[TOPO_OK]' > >> > COLOR 0 85 255 > >> > OUTLINECOLOR 212 255 255 > >> > OUTLINEWIDTH 1 > >> > MAXSCALEDENOM 60100 > >> > MINSCALEDENOM 40100 > >> > FONT "LiberationSans-Regular" > >> > TYPE truetype > >> > SIZE 7 > >> > ANGLE FOLLOW > >> > OFFSET 15 99 > >> > POSITION auto > >> > PRIORITY 10 > >> > MAXOVERLAPANGLE 180.0 > >> > BUFFER 1 > >> > FORCE OFF > >> > PARTIALS FALSE > >> > MINDISTANCE 200 > >> > END > >> > LABEL > >> > TEXT '[TOPO_OK]' > >> > COLOR 0 85 255 > >> > OUTLINECOLOR 212 255 255 > >> > OUTLINEWIDTH 1 > >> > MAXSCALEDENOM 40100 > >> > MINSCALEDENOM 1 > >> > FONT "LiberationSans-Regular" > >> > TYPE truetype > >> > SIZE 9 > >> > ANGLE FOLLOW > >> > OFFSET 15 99 > >> > POSITION auto > >> > PRIORITY 10 > >> > MAXOVERLAPANGLE 180.0 > >> > BUFFER 1 > >> > FORCE OFF > >> > PARTIALS FALSE > >> > MINDISTANCE 200 > >> > END > >> > END > >> > END > >> > > >> > > >> > > >> > > >> > 2013/8/13 thomas bonfort > >> >> > >> >> there's something strange in your error message... the > >> >> singleSidedBuffer stuff is in GEOS, and should have nothing to do in > >> >> msOGRFileNextShape. post your whole mapfile layer. > >> >> > >> >> On 13 August 2013 17:42, Andrea Peri wrote: > >> >> > Hi, > >> >> > > >> >> > I tested trasforming the multilinestring dataset in a linestring > >> >> > dataset > >> >> > but > >> >> > the error is still here. > >> >> > > >> >> > msDrawMap(): Image handling error. Failed to draw layer named > >> >> > 'rt_topogr.50k.etichette.topon_idro_50k'. > >> >> > > >> >> > msOGRFileNextShape(): OGR error. IllegalArgumentException: > >> >> > BufferBuilder::bufferLineSingleSided only accept linestrings > >> >> > > >> >> > So it is not really due to a multilinestring vs linestring > question. > >> >> > > >> >> > The quest carry on. > >> >> > > >> >> > > >> >> > > >> >> > 2013/8/13 Andrea Peri > >> >> >> > >> >> >> Hi, > >> >> >> > >> >> >> Try.ing to set a label on a MULTILINESTRING dataset. > >> >> >> > >> >> >> I set a label with Follow capability. > >> >> >> > >> >> >> ANGLE FOLLOW > >> >> >> > >> >> >> But I'm having this error: > >> >> >> > >> >> >> msOGRFileNextShape(): OGR error. IllegalArgumentException: > >> >> >> BufferBuilder::bufferLineSingleSided only accept linestrings > >> >> >> > >> >> >> Is the Follow compatible with a MultiLinestring dataset or need > only > >> >> >> simple linestrings ? > >> >> >> > >> >> >> Thx, > >> >> >> > >> >> >> -- > >> >> >> ----------------- > >> >> >> Andrea Peri > >> >> >> . . . . . . . . . > >> >> >> qwerty ????? > >> >> >> ----------------- > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > -- > >> >> > ----------------- > >> >> > Andrea Peri > >> >> > . . . . . . . . . > >> >> > qwerty ????? > >> >> > ----------------- > >> >> > > >> >> > _______________________________________________ > >> >> > mapserver-users mailing list > >> >> > mapserver-users at lists.osgeo.org > >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> > > >> > > >> > > >> > > >> > > >> > -- > >> > ----------------- > >> > Andrea Peri > >> > . . . . . . . . . > >> > qwerty ????? > >> > ----------------- > > > > > > > > > > -- > > ----------------- > > Andrea Peri > > . . . . . . . . . > > qwerty ????? > > ----------------- > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Aug 13 09:48:40 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 13 Aug 2013 16:48:40 +0000 Subject: [mapserver-users] draw map at a precise scale In-Reply-To: References: Message-ID: Via the CGI you can use a combination of mapxy, mode=map, and scale parameters. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Michael McInnis Sent: Monday, August 12, 2013 1:02 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] draw map at a precise scale I've been searching for a way to draw my map at a specific map location and a specific scale. IE -90, 38 (Decimal Degree) at 1:100,000 scale I've seen the zoomscale() and zoompoint() functions but they appear to be pixel coordinate driven and require extents which you wouldn't know, that's the point. I can write the math to do the extent calculation manually but figure this is such a basic functionality it must already exist in mapserver? Anyone done this before? Thanks Michael McInnis -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Tue Aug 13 14:31:32 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 13 Aug 2013 23:31:32 +0200 Subject: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ? In-Reply-To: References: Message-ID: Hi, Perhaps I found the explanation. The "angle follow" with OGR is using the BufferBuilder::bufferLineSingleSided That function seem don't work with a MultiLinestring . It necessary need a simple linestring. The question is that sometime the simple linestirng when is clipped from the visible bbox of the map to render, is transformed in a MultiLinestring. As showed in attached image. So a linestring geometry clipped by the visible bbox will become a multilinestring geometry and the bufferLineSingleSided will give error to put a "follow angle". Andrea. 2013/8/13 Andrea Peri > ok, thx. > I change to multiple scale. > > However I do a rapid check removing a label component, but the problem is > still here. > > Now I rewrite a more exact mapfile using two classes. > > Andrea. > > > > > 2013/8/13 thomas bonfort > >> yes, that's incompatible. use multiple scale-dependant classes for now >> >> On 13 August 2013 18:26, Andrea Peri wrote: >> > The two label are at different max/min scaledenominator. >> > The goal is to have little label size at low scales and bigger font >> size at >> > bigger scales. >> > >> > However only one lable is active at one scale level. >> > >> > Is this incompatible with "follow" ? >> > >> > >> > >> > 2013/8/13 thomas bonfort >> >> >> >> why the double label? they seem to be the same, but in any case >> >> multiple labels are not supported for FOLLOW. >> >> >> >> On 13 August 2013 18:08, Andrea Peri wrote: >> >> > I'm using spatialite 4.1.1, >> >> > so use ogr to access the db. >> >> > >> >> > LAYER >> >> > NAME "rt_topogr.50k.etichette.topon_idro_50k" >> >> > STATUS OFF >> >> > EXTENT 1554750.74 4678325.52 1771722.76 4924791.90 >> >> > TYPE LINE >> >> > CONNECTIONTYPE OGR >> >> > CONNECTION "/path-to-spatialite/zz_topografica.sqlite" >> >> > DATA "select PK_UID_2, TOPO_OK, GEOMETRY from topon_idro_50k" >> >> > PROJECTION >> >> > "+init=epsg:3003 +towgs84=0,0,0,0,0,0,0" >> >> > END >> >> > METADATA >> >> > "wms_title" "topon_idro_50k" >> >> > "wms_extent" "1554750.74 4678325.52 1771722.76 4924791.90" >> >> > END >> >> > LABELCACHE ON >> >> > MAXSCALEDENOM 60100 >> >> > MINSCALEDENOM 1 >> >> > CLASS >> >> > NAME '' >> >> > MAXSCALEDENOM 60100 >> >> > MINSCALEDENOM 1 >> >> > LABEL >> >> > TEXT '[TOPO_OK]' >> >> > COLOR 0 85 255 >> >> > OUTLINECOLOR 212 255 255 >> >> > OUTLINEWIDTH 1 >> >> > MAXSCALEDENOM 60100 >> >> > MINSCALEDENOM 40100 >> >> > FONT "LiberationSans-Regular" >> >> > TYPE truetype >> >> > SIZE 7 >> >> > ANGLE FOLLOW >> >> > OFFSET 15 99 >> >> > POSITION auto >> >> > PRIORITY 10 >> >> > MAXOVERLAPANGLE 180.0 >> >> > BUFFER 1 >> >> > FORCE OFF >> >> > PARTIALS FALSE >> >> > MINDISTANCE 200 >> >> > END >> >> > LABEL >> >> > TEXT '[TOPO_OK]' >> >> > COLOR 0 85 255 >> >> > OUTLINECOLOR 212 255 255 >> >> > OUTLINEWIDTH 1 >> >> > MAXSCALEDENOM 40100 >> >> > MINSCALEDENOM 1 >> >> > FONT "LiberationSans-Regular" >> >> > TYPE truetype >> >> > SIZE 9 >> >> > ANGLE FOLLOW >> >> > OFFSET 15 99 >> >> > POSITION auto >> >> > PRIORITY 10 >> >> > MAXOVERLAPANGLE 180.0 >> >> > BUFFER 1 >> >> > FORCE OFF >> >> > PARTIALS FALSE >> >> > MINDISTANCE 200 >> >> > END >> >> > END >> >> > END >> >> > >> >> > >> >> > >> >> > >> >> > 2013/8/13 thomas bonfort >> >> >> >> >> >> there's something strange in your error message... the >> >> >> singleSidedBuffer stuff is in GEOS, and should have nothing to do in >> >> >> msOGRFileNextShape. post your whole mapfile layer. >> >> >> >> >> >> On 13 August 2013 17:42, Andrea Peri wrote: >> >> >> > Hi, >> >> >> > >> >> >> > I tested trasforming the multilinestring dataset in a linestring >> >> >> > dataset >> >> >> > but >> >> >> > the error is still here. >> >> >> > >> >> >> > msDrawMap(): Image handling error. Failed to draw layer named >> >> >> > 'rt_topogr.50k.etichette.topon_idro_50k'. >> >> >> > >> >> >> > msOGRFileNextShape(): OGR error. IllegalArgumentException: >> >> >> > BufferBuilder::bufferLineSingleSided only accept linestrings >> >> >> > >> >> >> > So it is not really due to a multilinestring vs linestring >> question. >> >> >> > >> >> >> > The quest carry on. >> >> >> > >> >> >> > >> >> >> > >> >> >> > 2013/8/13 Andrea Peri >> >> >> >> >> >> >> >> Hi, >> >> >> >> >> >> >> >> Try.ing to set a label on a MULTILINESTRING dataset. >> >> >> >> >> >> >> >> I set a label with Follow capability. >> >> >> >> >> >> >> >> ANGLE FOLLOW >> >> >> >> >> >> >> >> But I'm having this error: >> >> >> >> >> >> >> >> msOGRFileNextShape(): OGR error. IllegalArgumentException: >> >> >> >> BufferBuilder::bufferLineSingleSided only accept linestrings >> >> >> >> >> >> >> >> Is the Follow compatible with a MultiLinestring dataset or need >> only >> >> >> >> simple linestrings ? >> >> >> >> >> >> >> >> Thx, >> >> >> >> >> >> >> >> -- >> >> >> >> ----------------- >> >> >> >> Andrea Peri >> >> >> >> . . . . . . . . . >> >> >> >> qwerty ????? >> >> >> >> ----------------- >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> >> > -- >> >> >> > ----------------- >> >> >> > Andrea Peri >> >> >> > . . . . . . . . . >> >> >> > qwerty ????? >> >> >> > ----------------- >> >> >> > >> >> >> > _______________________________________________ >> >> >> > mapserver-users mailing list >> >> >> > mapserver-users at lists.osgeo.org >> >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > -- >> >> > ----------------- >> >> > Andrea Peri >> >> > . . . . . . . . . >> >> > qwerty ????? >> >> > ----------------- >> > >> > >> > >> > >> > -- >> > ----------------- >> > Andrea Peri >> > . . . . . . . . . >> > qwerty ????? >> > ----------------- >> > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: img1.gif Type: image/gif Size: 1983 bytes Desc: not available URL: From luis.a.de.sousa at gmail.com Wed Aug 14 00:26:52 2013 From: luis.a.de.sousa at gmail.com (=?ISO-8859-1?Q?Lu=EDs_de_Sousa?=) Date: Wed, 14 Aug 2013 09:26:52 +0200 Subject: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04 Message-ID: Dear all, I just installed ScribeUI on Ubuntu 12.04. When I try to access it there's a timeout: --2013-08-13 21:48:07-- (try:20) http://localhost/ScribeUI Connecting to localhost (localhost)|127.0.0.1|:80... connected. HTTP request sent, awaiting response... Read error (Connection timed out) in headers. In the apache log I have a segmentation fault registered every second since I installed ScribeUI, like: [Tue Aug 13 16:46:18 2013] [notice] child pid 5556 exit signal Segmentation fault (11) Is there any log file specific to ScribeUI? Otherwise, is there any other way to get some debug messages to understand what's going wrong? Thank you, Lu?s -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Wed Aug 14 00:37:05 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 14 Aug 2013 09:37:05 +0200 Subject: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ? In-Reply-To: References: Message-ID: Hi, My theory is not true. I was able to create a featureset that like my image that will work when the visible box clip it creating a multilinestring.. sorry for noise, My quest still go on. Regards, 2013/8/13 Andrea Peri > Hi, > Perhaps I found the explanation. > > The "angle follow" with OGR is using the > BufferBuilder::bufferLineSingleSided > That function seem don't work with a MultiLinestring . It necessary need a > simple linestring. > > The question is that sometime the simple linestirng when is clipped from > the visible bbox of the map to render, is transformed in a MultiLinestring. > As showed in attached image. > > So a linestring geometry clipped by the visible bbox will become a > multilinestring geometry and the bufferLineSingleSided will give error to > put a "follow angle". > > Andrea. > > 2013/8/13 Andrea Peri > >> ok, thx. >> I change to multiple scale. >> >> However I do a rapid check removing a label component, but the problem is >> still here. >> >> Now I rewrite a more exact mapfile using two classes. >> >> Andrea. >> >> >> >> >> 2013/8/13 thomas bonfort >> >>> yes, that's incompatible. use multiple scale-dependant classes for now >>> >>> On 13 August 2013 18:26, Andrea Peri wrote: >>> > The two label are at different max/min scaledenominator. >>> > The goal is to have little label size at low scales and bigger font >>> size at >>> > bigger scales. >>> > >>> > However only one lable is active at one scale level. >>> > >>> > Is this incompatible with "follow" ? >>> > >>> > >>> > >>> > 2013/8/13 thomas bonfort >>> >> >>> >> why the double label? they seem to be the same, but in any case >>> >> multiple labels are not supported for FOLLOW. >>> >> >>> >> On 13 August 2013 18:08, Andrea Peri wrote: >>> >> > I'm using spatialite 4.1.1, >>> >> > so use ogr to access the db. >>> >> > >>> >> > LAYER >>> >> > NAME "rt_topogr.50k.etichette.topon_idro_50k" >>> >> > STATUS OFF >>> >> > EXTENT 1554750.74 4678325.52 1771722.76 4924791.90 >>> >> > TYPE LINE >>> >> > CONNECTIONTYPE OGR >>> >> > CONNECTION "/path-to-spatialite/zz_topografica.sqlite" >>> >> > DATA "select PK_UID_2, TOPO_OK, GEOMETRY from topon_idro_50k" >>> >> > PROJECTION >>> >> > "+init=epsg:3003 +towgs84=0,0,0,0,0,0,0" >>> >> > END >>> >> > METADATA >>> >> > "wms_title" "topon_idro_50k" >>> >> > "wms_extent" "1554750.74 4678325.52 1771722.76 4924791.90" >>> >> > END >>> >> > LABELCACHE ON >>> >> > MAXSCALEDENOM 60100 >>> >> > MINSCALEDENOM 1 >>> >> > CLASS >>> >> > NAME '' >>> >> > MAXSCALEDENOM 60100 >>> >> > MINSCALEDENOM 1 >>> >> > LABEL >>> >> > TEXT '[TOPO_OK]' >>> >> > COLOR 0 85 255 >>> >> > OUTLINECOLOR 212 255 255 >>> >> > OUTLINEWIDTH 1 >>> >> > MAXSCALEDENOM 60100 >>> >> > MINSCALEDENOM 40100 >>> >> > FONT "LiberationSans-Regular" >>> >> > TYPE truetype >>> >> > SIZE 7 >>> >> > ANGLE FOLLOW >>> >> > OFFSET 15 99 >>> >> > POSITION auto >>> >> > PRIORITY 10 >>> >> > MAXOVERLAPANGLE 180.0 >>> >> > BUFFER 1 >>> >> > FORCE OFF >>> >> > PARTIALS FALSE >>> >> > MINDISTANCE 200 >>> >> > END >>> >> > LABEL >>> >> > TEXT '[TOPO_OK]' >>> >> > COLOR 0 85 255 >>> >> > OUTLINECOLOR 212 255 255 >>> >> > OUTLINEWIDTH 1 >>> >> > MAXSCALEDENOM 40100 >>> >> > MINSCALEDENOM 1 >>> >> > FONT "LiberationSans-Regular" >>> >> > TYPE truetype >>> >> > SIZE 9 >>> >> > ANGLE FOLLOW >>> >> > OFFSET 15 99 >>> >> > POSITION auto >>> >> > PRIORITY 10 >>> >> > MAXOVERLAPANGLE 180.0 >>> >> > BUFFER 1 >>> >> > FORCE OFF >>> >> > PARTIALS FALSE >>> >> > MINDISTANCE 200 >>> >> > END >>> >> > END >>> >> > END >>> >> > >>> >> > >>> >> > >>> >> > >>> >> > 2013/8/13 thomas bonfort >>> >> >> >>> >> >> there's something strange in your error message... the >>> >> >> singleSidedBuffer stuff is in GEOS, and should have nothing to do >>> in >>> >> >> msOGRFileNextShape. post your whole mapfile layer. >>> >> >> >>> >> >> On 13 August 2013 17:42, Andrea Peri wrote: >>> >> >> > Hi, >>> >> >> > >>> >> >> > I tested trasforming the multilinestring dataset in a linestring >>> >> >> > dataset >>> >> >> > but >>> >> >> > the error is still here. >>> >> >> > >>> >> >> > msDrawMap(): Image handling error. Failed to draw layer named >>> >> >> > 'rt_topogr.50k.etichette.topon_idro_50k'. >>> >> >> > >>> >> >> > msOGRFileNextShape(): OGR error. IllegalArgumentException: >>> >> >> > BufferBuilder::bufferLineSingleSided only accept linestrings >>> >> >> > >>> >> >> > So it is not really due to a multilinestring vs linestring >>> question. >>> >> >> > >>> >> >> > The quest carry on. >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > 2013/8/13 Andrea Peri >>> >> >> >> >>> >> >> >> Hi, >>> >> >> >> >>> >> >> >> Try.ing to set a label on a MULTILINESTRING dataset. >>> >> >> >> >>> >> >> >> I set a label with Follow capability. >>> >> >> >> >>> >> >> >> ANGLE FOLLOW >>> >> >> >> >>> >> >> >> But I'm having this error: >>> >> >> >> >>> >> >> >> msOGRFileNextShape(): OGR error. IllegalArgumentException: >>> >> >> >> BufferBuilder::bufferLineSingleSided only accept linestrings >>> >> >> >> >>> >> >> >> Is the Follow compatible with a MultiLinestring dataset or need >>> only >>> >> >> >> simple linestrings ? >>> >> >> >> >>> >> >> >> Thx, >>> >> >> >> >>> >> >> >> -- >>> >> >> >> ----------------- >>> >> >> >> Andrea Peri >>> >> >> >> . . . . . . . . . >>> >> >> >> qwerty ????? >>> >> >> >> ----------------- >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > -- >>> >> >> > ----------------- >>> >> >> > Andrea Peri >>> >> >> > . . . . . . . . . >>> >> >> > qwerty ????? >>> >> >> > ----------------- >>> >> >> > >>> >> >> > _______________________________________________ >>> >> >> > mapserver-users mailing list >>> >> >> > mapserver-users at lists.osgeo.org >>> >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> > >>> >> > >>> >> > >>> >> > >>> >> > >>> >> > -- >>> >> > ----------------- >>> >> > Andrea Peri >>> >> > . . . . . . . . . >>> >> > qwerty ????? >>> >> > ----------------- >>> > >>> > >>> > >>> > >>> > -- >>> > ----------------- >>> > Andrea Peri >>> > . . . . . . . . . >>> > qwerty ????? >>> > ----------------- >>> >> >> >> >> -- >> ----------------- >> Andrea Peri >> . . . . . . . . . >> qwerty ????? >> ----------------- >> > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Aug 14 00:40:06 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 14 Aug 2013 09:40:06 +0200 Subject: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ? In-Reply-To: References: Message-ID: Andrea, can you confirm if you are having the error when you remove the label offset ? On 14 August 2013 09:37, Andrea Peri wrote: > Hi, > > My theory is not true. > > I was able to create a featureset that like my image that will work when > the visible box clip it creating a multilinestring.. > > sorry for noise, > > My quest still go on. > > Regards, > > > > > 2013/8/13 Andrea Peri >> >> Hi, >> Perhaps I found the explanation. >> >> The "angle follow" with OGR is using the >> BufferBuilder::bufferLineSingleSided >> That function seem don't work with a MultiLinestring . It necessary need a >> simple linestring. >> >> The question is that sometime the simple linestirng when is clipped from >> the visible bbox of the map to render, is transformed in a MultiLinestring. >> As showed in attached image. >> >> So a linestring geometry clipped by the visible bbox will become a >> multilinestring geometry and the bufferLineSingleSided will give error to >> put a "follow angle". >> >> Andrea. >> >> 2013/8/13 Andrea Peri >>> >>> ok, thx. >>> I change to multiple scale. >>> >>> However I do a rapid check removing a label component, but the problem is >>> still here. >>> >>> Now I rewrite a more exact mapfile using two classes. >>> >>> Andrea. >>> >>> >>> >>> >>> 2013/8/13 thomas bonfort >>>> >>>> yes, that's incompatible. use multiple scale-dependant classes for now >>>> >>>> On 13 August 2013 18:26, Andrea Peri wrote: >>>> > The two label are at different max/min scaledenominator. >>>> > The goal is to have little label size at low scales and bigger font >>>> > size at >>>> > bigger scales. >>>> > >>>> > However only one lable is active at one scale level. >>>> > >>>> > Is this incompatible with "follow" ? >>>> > >>>> > >>>> > >>>> > 2013/8/13 thomas bonfort >>>> >> >>>> >> why the double label? they seem to be the same, but in any case >>>> >> multiple labels are not supported for FOLLOW. >>>> >> >>>> >> On 13 August 2013 18:08, Andrea Peri wrote: >>>> >> > I'm using spatialite 4.1.1, >>>> >> > so use ogr to access the db. >>>> >> > >>>> >> > LAYER >>>> >> > NAME "rt_topogr.50k.etichette.topon_idro_50k" >>>> >> > STATUS OFF >>>> >> > EXTENT 1554750.74 4678325.52 1771722.76 4924791.90 >>>> >> > TYPE LINE >>>> >> > CONNECTIONTYPE OGR >>>> >> > CONNECTION "/path-to-spatialite/zz_topografica.sqlite" >>>> >> > DATA "select PK_UID_2, TOPO_OK, GEOMETRY from topon_idro_50k" >>>> >> > PROJECTION >>>> >> > "+init=epsg:3003 +towgs84=0,0,0,0,0,0,0" >>>> >> > END >>>> >> > METADATA >>>> >> > "wms_title" "topon_idro_50k" >>>> >> > "wms_extent" "1554750.74 4678325.52 1771722.76 4924791.90" >>>> >> > END >>>> >> > LABELCACHE ON >>>> >> > MAXSCALEDENOM 60100 >>>> >> > MINSCALEDENOM 1 >>>> >> > CLASS >>>> >> > NAME '' >>>> >> > MAXSCALEDENOM 60100 >>>> >> > MINSCALEDENOM 1 >>>> >> > LABEL >>>> >> > TEXT '[TOPO_OK]' >>>> >> > COLOR 0 85 255 >>>> >> > OUTLINECOLOR 212 255 255 >>>> >> > OUTLINEWIDTH 1 >>>> >> > MAXSCALEDENOM 60100 >>>> >> > MINSCALEDENOM 40100 >>>> >> > FONT "LiberationSans-Regular" >>>> >> > TYPE truetype >>>> >> > SIZE 7 >>>> >> > ANGLE FOLLOW >>>> >> > OFFSET 15 99 >>>> >> > POSITION auto >>>> >> > PRIORITY 10 >>>> >> > MAXOVERLAPANGLE 180.0 >>>> >> > BUFFER 1 >>>> >> > FORCE OFF >>>> >> > PARTIALS FALSE >>>> >> > MINDISTANCE 200 >>>> >> > END >>>> >> > LABEL >>>> >> > TEXT '[TOPO_OK]' >>>> >> > COLOR 0 85 255 >>>> >> > OUTLINECOLOR 212 255 255 >>>> >> > OUTLINEWIDTH 1 >>>> >> > MAXSCALEDENOM 40100 >>>> >> > MINSCALEDENOM 1 >>>> >> > FONT "LiberationSans-Regular" >>>> >> > TYPE truetype >>>> >> > SIZE 9 >>>> >> > ANGLE FOLLOW >>>> >> > OFFSET 15 99 >>>> >> > POSITION auto >>>> >> > PRIORITY 10 >>>> >> > MAXOVERLAPANGLE 180.0 >>>> >> > BUFFER 1 >>>> >> > FORCE OFF >>>> >> > PARTIALS FALSE >>>> >> > MINDISTANCE 200 >>>> >> > END >>>> >> > END >>>> >> > END >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > 2013/8/13 thomas bonfort >>>> >> >> >>>> >> >> there's something strange in your error message... the >>>> >> >> singleSidedBuffer stuff is in GEOS, and should have nothing to do >>>> >> >> in >>>> >> >> msOGRFileNextShape. post your whole mapfile layer. >>>> >> >> >>>> >> >> On 13 August 2013 17:42, Andrea Peri wrote: >>>> >> >> > Hi, >>>> >> >> > >>>> >> >> > I tested trasforming the multilinestring dataset in a linestring >>>> >> >> > dataset >>>> >> >> > but >>>> >> >> > the error is still here. >>>> >> >> > >>>> >> >> > msDrawMap(): Image handling error. Failed to draw layer named >>>> >> >> > 'rt_topogr.50k.etichette.topon_idro_50k'. >>>> >> >> > >>>> >> >> > msOGRFileNextShape(): OGR error. IllegalArgumentException: >>>> >> >> > BufferBuilder::bufferLineSingleSided only accept linestrings >>>> >> >> > >>>> >> >> > So it is not really due to a multilinestring vs linestring >>>> >> >> > question. >>>> >> >> > >>>> >> >> > The quest carry on. >>>> >> >> > >>>> >> >> > >>>> >> >> > >>>> >> >> > 2013/8/13 Andrea Peri >>>> >> >> >> >>>> >> >> >> Hi, >>>> >> >> >> >>>> >> >> >> Try.ing to set a label on a MULTILINESTRING dataset. >>>> >> >> >> >>>> >> >> >> I set a label with Follow capability. >>>> >> >> >> >>>> >> >> >> ANGLE FOLLOW >>>> >> >> >> >>>> >> >> >> But I'm having this error: >>>> >> >> >> >>>> >> >> >> msOGRFileNextShape(): OGR error. IllegalArgumentException: >>>> >> >> >> BufferBuilder::bufferLineSingleSided only accept linestrings >>>> >> >> >> >>>> >> >> >> Is the Follow compatible with a MultiLinestring dataset or need >>>> >> >> >> only >>>> >> >> >> simple linestrings ? >>>> >> >> >> >>>> >> >> >> Thx, >>>> >> >> >> >>>> >> >> >> -- >>>> >> >> >> ----------------- >>>> >> >> >> Andrea Peri >>>> >> >> >> . . . . . . . . . >>>> >> >> >> qwerty ????? >>>> >> >> >> ----------------- >>>> >> >> > >>>> >> >> > >>>> >> >> > >>>> >> >> > >>>> >> >> > -- >>>> >> >> > ----------------- >>>> >> >> > Andrea Peri >>>> >> >> > . . . . . . . . . >>>> >> >> > qwerty ????? >>>> >> >> > ----------------- >>>> >> >> > >>>> >> >> > _______________________________________________ >>>> >> >> > mapserver-users mailing list >>>> >> >> > mapserver-users at lists.osgeo.org >>>> >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > -- >>>> >> > ----------------- >>>> >> > Andrea Peri >>>> >> > . . . . . . . . . >>>> >> > qwerty ????? >>>> >> > ----------------- >>>> > >>>> > >>>> > >>>> > >>>> > -- >>>> > ----------------- >>>> > Andrea Peri >>>> > . . . . . . . . . >>>> > qwerty ????? >>>> > ----------------- >>> >>> >>> >>> >>> -- >>> ----------------- >>> Andrea Peri >>> . . . . . . . . . >>> qwerty ????? >>> ----------------- >> >> >> >> >> -- >> ----------------- >> Andrea Peri >> . . . . . . . . . >> qwerty ????? >> ----------------- > > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- From aperi2007 at gmail.com Wed Aug 14 01:08:29 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 14 Aug 2013 10:08:29 +0200 Subject: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ? In-Reply-To: References: Message-ID: Yes. Is the OFFSET ! Yes Thomas when I remove the offset the angle follow will work without error. I have other informations: he error trigger on spatialite but don't in a simpe FEATURE text definet dataset. Infact with this dataset: LAYER NAME "line" TYPE LINE STATUS DEFAULT EXTENT 1662112.76 4858445.22 1666743.13 4860849.91 FEATURE WKT "LINESTRING(1662112.755029 4859495.405004, 1662172.424828 4859710.216279, 1662357.401204 4859984.697353, 1662411.104022 4860175.640708, 1662345.467244 4860318.848225, 1662172.424828 4860473.989701, 1662178.391808 4860670.900037, 1662321.599324 4860796.206614, 1662619.948317 4860849.909432, 1662888.462411 4860837.975473, 1663174.877444 4860611.230238, 1663222.613283 4860384.485003, 1663145.042545 4860247.244467, 1662977.967109 4860056.301111, 1662769.122814 4859841.489836, 1662709.453015 4859680.38138, 1662810.891673 4859435.735206, 1663091.339726 4859250.75883, 1663371.78778 4859137.386213, 1663813.344289 4859143.353192, 1663992.353685 4859256.72581, 1664093.792343 4859513.305944, 1664028.155564 4859829.555876, 1663765.60845 4860038.400171, 1663664.169793 4860193.541648, 1663652.235833 4860390.451983, 1663771.57543 4860545.593459, 1664081.858383 4860599.296278, 1664410.042275 4860581.395339, 1664779.995027 4860402.385943, 1664988.839322 4860133.871849, 1665078.34402 4859919.060574, 1665114.145899 4859644.579501, 1665114.145899 4859423.801246, 1665132.046838 4859214.956951, 1664947.070463 4859077.716414, 1664947.070463 4858862.905139, 1665263.320395 4858725.664602, 1665615.372207 4858731.631582, 1665764.546703 4858916.607958, 1665830.183482 4859214.956951, 1665824.216502 4859567.008762, 1665728.744824 4859925.027554, 1665639.240126 4860223.376547, 1665633.273147 4860503.8246, 1665716.810865 4860670.900037, 1665961.457039 4860760.404734, 1666253.839052 4860760.404734, 1666492.518246 4860617.197218, 1666659.593682 4860408.352923, 1666743.1314 4860098.06997, 1666713.296501 4859811.654937, 1666635.725763 4859638.612521, 1666474.617307 4859519.272924, 1666295.607911 4859465.570105, 1666229.971132 4859435.735206, 1665979.357978 4859262.69279, 1666009.192878 4859065.782454, 1666301.574891 4858886.773058, 1666546.221065 4858862.905139, 1666623.791803 4858707.763663, 1666576.055964 4858516.820307, 1666176.268314 4858445.216549)" END #FEATURE LABELCACHE on CLASS STYLE COLOR 200 200 200 OUTLINECOLOR 0 255 0 END LABEL TEXT 'BLAH BLAH' COLOR 0 85 255 OUTLINECOLOR 212 255 255 OUTLINEWIDTH 1 FONT "LiberationSans-Regular" #FONT "Calibri" TYPE truetype SIZE 9 ANGLE FOLLOW OFFSET 15 99 POSITION auto PRIORITY 10 MAXOVERLAPANGLE 180.0 BUFFER 1 FORCE OFF PARTIALS FALSE MINDISTANCE 200 END END #CLASS END The error don't happen. Instead if I transfer this exact dataset in a spatialite (4.1.1) and apply an angle follow with an offset the error trigger immediatly when the box clip will create a multilinestring. However removing the OFFSET setting the error don't trigger. please notice I'm using spatialite 4.1.1 and gdal 1.10. Regards, Andrea. 2013/8/14 thomas bonfort > Andrea, can you confirm if you are having the error when you remove > the label offset ? > > On 14 August 2013 09:37, Andrea Peri wrote: > > Hi, > > > > My theory is not true. > > > > I was able to create a featureset that like my image that will work when > > the visible box clip it creating a multilinestring.. > > > > sorry for noise, > > > > My quest still go on. > > > > Regards, > > > > > > > > > > 2013/8/13 Andrea Peri > >> > >> Hi, > >> Perhaps I found the explanation. > >> > >> The "angle follow" with OGR is using the > >> BufferBuilder::bufferLineSingleSided > >> That function seem don't work with a MultiLinestring . It necessary > need a > >> simple linestring. > >> > >> The question is that sometime the simple linestirng when is clipped from > >> the visible bbox of the map to render, is transformed in a > MultiLinestring. > >> As showed in attached image. > >> > >> So a linestring geometry clipped by the visible bbox will become a > >> multilinestring geometry and the bufferLineSingleSided will give error > to > >> put a "follow angle". > >> > >> Andrea. > >> > >> 2013/8/13 Andrea Peri > >>> > >>> ok, thx. > >>> I change to multiple scale. > >>> > >>> However I do a rapid check removing a label component, but the problem > is > >>> still here. > >>> > >>> Now I rewrite a more exact mapfile using two classes. > >>> > >>> Andrea. > >>> > >>> > >>> > >>> > >>> 2013/8/13 thomas bonfort > >>>> > >>>> yes, that's incompatible. use multiple scale-dependant classes for now > >>>> > >>>> On 13 August 2013 18:26, Andrea Peri wrote: > >>>> > The two label are at different max/min scaledenominator. > >>>> > The goal is to have little label size at low scales and bigger font > >>>> > size at > >>>> > bigger scales. > >>>> > > >>>> > However only one lable is active at one scale level. > >>>> > > >>>> > Is this incompatible with "follow" ? > >>>> > > >>>> > > >>>> > > >>>> > 2013/8/13 thomas bonfort > >>>> >> > >>>> >> why the double label? they seem to be the same, but in any case > >>>> >> multiple labels are not supported for FOLLOW. > >>>> >> > >>>> >> On 13 August 2013 18:08, Andrea Peri wrote: > >>>> >> > I'm using spatialite 4.1.1, > >>>> >> > so use ogr to access the db. > >>>> >> > > >>>> >> > LAYER > >>>> >> > NAME "rt_topogr.50k.etichette.topon_idro_50k" > >>>> >> > STATUS OFF > >>>> >> > EXTENT 1554750.74 4678325.52 1771722.76 4924791.90 > >>>> >> > TYPE LINE > >>>> >> > CONNECTIONTYPE OGR > >>>> >> > CONNECTION "/path-to-spatialite/zz_topografica.sqlite" > >>>> >> > DATA "select PK_UID_2, TOPO_OK, GEOMETRY from topon_idro_50k" > >>>> >> > PROJECTION > >>>> >> > "+init=epsg:3003 +towgs84=0,0,0,0,0,0,0" > >>>> >> > END > >>>> >> > METADATA > >>>> >> > "wms_title" "topon_idro_50k" > >>>> >> > "wms_extent" "1554750.74 4678325.52 1771722.76 4924791.90" > >>>> >> > END > >>>> >> > LABELCACHE ON > >>>> >> > MAXSCALEDENOM 60100 > >>>> >> > MINSCALEDENOM 1 > >>>> >> > CLASS > >>>> >> > NAME '' > >>>> >> > MAXSCALEDENOM 60100 > >>>> >> > MINSCALEDENOM 1 > >>>> >> > LABEL > >>>> >> > TEXT '[TOPO_OK]' > >>>> >> > COLOR 0 85 255 > >>>> >> > OUTLINECOLOR 212 255 255 > >>>> >> > OUTLINEWIDTH 1 > >>>> >> > MAXSCALEDENOM 60100 > >>>> >> > MINSCALEDENOM 40100 > >>>> >> > FONT "LiberationSans-Regular" > >>>> >> > TYPE truetype > >>>> >> > SIZE 7 > >>>> >> > ANGLE FOLLOW > >>>> >> > OFFSET 15 99 > >>>> >> > POSITION auto > >>>> >> > PRIORITY 10 > >>>> >> > MAXOVERLAPANGLE 180.0 > >>>> >> > BUFFER 1 > >>>> >> > FORCE OFF > >>>> >> > PARTIALS FALSE > >>>> >> > MINDISTANCE 200 > >>>> >> > END > >>>> >> > LABEL > >>>> >> > TEXT '[TOPO_OK]' > >>>> >> > COLOR 0 85 255 > >>>> >> > OUTLINECOLOR 212 255 255 > >>>> >> > OUTLINEWIDTH 1 > >>>> >> > MAXSCALEDENOM 40100 > >>>> >> > MINSCALEDENOM 1 > >>>> >> > FONT "LiberationSans-Regular" > >>>> >> > TYPE truetype > >>>> >> > SIZE 9 > >>>> >> > ANGLE FOLLOW > >>>> >> > OFFSET 15 99 > >>>> >> > POSITION auto > >>>> >> > PRIORITY 10 > >>>> >> > MAXOVERLAPANGLE 180.0 > >>>> >> > BUFFER 1 > >>>> >> > FORCE OFF > >>>> >> > PARTIALS FALSE > >>>> >> > MINDISTANCE 200 > >>>> >> > END > >>>> >> > END > >>>> >> > END > >>>> >> > > >>>> >> > > >>>> >> > > >>>> >> > > >>>> >> > 2013/8/13 thomas bonfort > >>>> >> >> > >>>> >> >> there's something strange in your error message... the > >>>> >> >> singleSidedBuffer stuff is in GEOS, and should have nothing to > do > >>>> >> >> in > >>>> >> >> msOGRFileNextShape. post your whole mapfile layer. > >>>> >> >> > >>>> >> >> On 13 August 2013 17:42, Andrea Peri > wrote: > >>>> >> >> > Hi, > >>>> >> >> > > >>>> >> >> > I tested trasforming the multilinestring dataset in a > linestring > >>>> >> >> > dataset > >>>> >> >> > but > >>>> >> >> > the error is still here. > >>>> >> >> > > >>>> >> >> > msDrawMap(): Image handling error. Failed to draw layer named > >>>> >> >> > 'rt_topogr.50k.etichette.topon_idro_50k'. > >>>> >> >> > > >>>> >> >> > msOGRFileNextShape(): OGR error. IllegalArgumentException: > >>>> >> >> > BufferBuilder::bufferLineSingleSided only accept linestrings > >>>> >> >> > > >>>> >> >> > So it is not really due to a multilinestring vs linestring > >>>> >> >> > question. > >>>> >> >> > > >>>> >> >> > The quest carry on. > >>>> >> >> > > >>>> >> >> > > >>>> >> >> > > >>>> >> >> > 2013/8/13 Andrea Peri > >>>> >> >> >> > >>>> >> >> >> Hi, > >>>> >> >> >> > >>>> >> >> >> Try.ing to set a label on a MULTILINESTRING dataset. > >>>> >> >> >> > >>>> >> >> >> I set a label with Follow capability. > >>>> >> >> >> > >>>> >> >> >> ANGLE FOLLOW > >>>> >> >> >> > >>>> >> >> >> But I'm having this error: > >>>> >> >> >> > >>>> >> >> >> msOGRFileNextShape(): OGR error. IllegalArgumentException: > >>>> >> >> >> BufferBuilder::bufferLineSingleSided only accept linestrings > >>>> >> >> >> > >>>> >> >> >> Is the Follow compatible with a MultiLinestring dataset or > need > >>>> >> >> >> only > >>>> >> >> >> simple linestrings ? > >>>> >> >> >> > >>>> >> >> >> Thx, > >>>> >> >> >> > >>>> >> >> >> -- > >>>> >> >> >> ----------------- > >>>> >> >> >> Andrea Peri > >>>> >> >> >> . . . . . . . . . > >>>> >> >> >> qwerty ????? > >>>> >> >> >> ----------------- > >>>> >> >> > > >>>> >> >> > > >>>> >> >> > > >>>> >> >> > > >>>> >> >> > -- > >>>> >> >> > ----------------- > >>>> >> >> > Andrea Peri > >>>> >> >> > . . . . . . . . . > >>>> >> >> > qwerty ????? > >>>> >> >> > ----------------- > >>>> >> >> > > >>>> >> >> > _______________________________________________ > >>>> >> >> > mapserver-users mailing list > >>>> >> >> > mapserver-users at lists.osgeo.org > >>>> >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >>>> >> >> > > >>>> >> > > >>>> >> > > >>>> >> > > >>>> >> > > >>>> >> > -- > >>>> >> > ----------------- > >>>> >> > Andrea Peri > >>>> >> > . . . . . . . . . > >>>> >> > qwerty ????? > >>>> >> > ----------------- > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > -- > >>>> > ----------------- > >>>> > Andrea Peri > >>>> > . . . . . . . . . > >>>> > qwerty ????? > >>>> > ----------------- > >>> > >>> > >>> > >>> > >>> -- > >>> ----------------- > >>> Andrea Peri > >>> . . . . . . . . . > >>> qwerty ????? > >>> ----------------- > >> > >> > >> > >> > >> -- > >> ----------------- > >> Andrea Peri > >> . . . . . . . . . > >> qwerty ????? > >> ----------------- > > > > > > > > > > -- > > ----------------- > > Andrea Peri > > . . . . . . . . . > > qwerty ????? > > ----------------- > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Wed Aug 14 01:47:04 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 14 Aug 2013 10:47:04 +0200 Subject: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ? In-Reply-To: References: Message-ID: Hi, I do other tests. Using instead of a spatialite, a shapefile. And accessing it using ogr or using ogr driver. I see the error trigger when use spatialite or shapefile accessed using the OGR driver. Instead it don't trigger when use a directly defined Feature or the mapserver direct shapefile driver. Regards, Andrea. 2013/8/14 Andrea Peri > Yes. > > Is the OFFSET ! > > Yes Thomas when I remove the offset the angle follow will work without > error. > > I have other informations: > > he error trigger on spatialite but don't in a simpe FEATURE text definet > dataset. > Infact with this dataset: > > LAYER > NAME "line" > TYPE LINE > STATUS DEFAULT > EXTENT 1662112.76 4858445.22 1666743.13 4860849.91 > FEATURE > WKT "LINESTRING(1662112.755029 4859495.405004, 1662172.424828 > 4859710.216279, 1662357.401204 4859984.697353, 1662411.104022 > 4860175.640708, 1662345.467244 4860318.848225, 1662172.424828 > 4860473.989701, 1662178.391808 4860670.900037, 1662321.599324 > 4860796.206614, 1662619.948317 4860849.909432, 1662888.462411 > 4860837.975473, 1663174.877444 4860611.230238, 1663222.613283 > 4860384.485003, 1663145.042545 4860247.244467, 1662977.967109 > 4860056.301111, 1662769.122814 4859841.489836, 1662709.453015 > 4859680.38138, 1662810.891673 4859435.735206, 1663091.339726 4859250.75883, > 1663371.78778 4859137.386213, 1663813.344289 4859143.353192, 1663992.353685 > 4859256.72581, 1664093.792343 4859513.305944, 1664028.155564 > 4859829.555876, 1663765.60845 4860038.400171, 1663664.169793 > 4860193.541648, 1663652.235833 4860390.451983, 1663771.57543 > 4860545.593459, 1664081.858383 4860599.296278, 1664410.042275 > 4860581.395339, 1664779.995027 4860402.385943, 1664988.839322 > 4860133.871849, 1665078.34402 4859919.060574, 1665114.145899 > 4859644.579501, 1665114.145899 4859423.801246, 1665132.046838 > 4859214.956951, 1664947.070463 4859077.716414, 1664947.070463 > 4858862.905139, 1665263.320395 4858725.664602, 1665615.372207 > 4858731.631582, 1665764.546703 4858916.607958, 1665830.183482 > 4859214.956951, 1665824.216502 4859567.008762, 1665728.744824 > 4859925.027554, 1665639.240126 4860223.376547, 1665633.273147 4860503.8246, > 1665716.810865 4860670.900037, 1665961.457039 4860760.404734, > 1666253.839052 4860760.404734, 1666492.518246 4860617.197218, > 1666659.593682 4860408.352923, 1666743.1314 4860098.06997, 1666713.296501 > 4859811.654937, 1666635.725763 4859638.612521, 1666474.617307 > 4859519.272924, 1666295.607911 4859465.570105, 1666229.971132 > 4859435.735206, 1665979.357978 4859262.69279, 1666009.192878 > 4859065.782454, 1666301.574891 4858886.773058, 1666546.221065 > 4858862.905139, 1666623.791803 4858707.763663, 1666576.055964 > 4858516.820307, 1666176.268314 4858445.216549)" > END #FEATURE > LABELCACHE on > CLASS > STYLE > COLOR 200 200 200 > OUTLINECOLOR 0 255 0 > END > LABEL > TEXT 'BLAH BLAH' > > COLOR 0 85 255 > OUTLINECOLOR 212 255 255 > OUTLINEWIDTH 1 > FONT "LiberationSans-Regular" > #FONT "Calibri" > > TYPE truetype > SIZE 9 > ANGLE FOLLOW > OFFSET 15 99 > POSITION auto > PRIORITY 10 > MAXOVERLAPANGLE 180.0 > BUFFER 1 > FORCE OFF > PARTIALS FALSE > MINDISTANCE 200 > END > END #CLASS > END > > > The error don't happen. > > Instead if I transfer this exact dataset in a spatialite (4.1.1) and apply > an > angle follow > with an offset > > the error trigger immediatly when the > box clip will create a multilinestring. > > However removing the > OFFSET setting the error don't trigger. > > please notice I'm using spatialite 4.1.1 and gdal 1.10. > > Regards, > > Andrea. > > > > 2013/8/14 thomas bonfort > >> Andrea, can you confirm if you are having the error when you remove >> the label offset ? >> >> On 14 August 2013 09:37, Andrea Peri wrote: >> > Hi, >> > >> > My theory is not true. >> > >> > I was able to create a featureset that like my image that will work >> when >> > the visible box clip it creating a multilinestring.. >> > >> > sorry for noise, >> > >> > My quest still go on. >> > >> > Regards, >> > >> > >> > >> > >> > 2013/8/13 Andrea Peri >> >> >> >> Hi, >> >> Perhaps I found the explanation. >> >> >> >> The "angle follow" with OGR is using the >> >> BufferBuilder::bufferLineSingleSided >> >> That function seem don't work with a MultiLinestring . It necessary >> need a >> >> simple linestring. >> >> >> >> The question is that sometime the simple linestirng when is clipped >> from >> >> the visible bbox of the map to render, is transformed in a >> MultiLinestring. >> >> As showed in attached image. >> >> >> >> So a linestring geometry clipped by the visible bbox will become a >> >> multilinestring geometry and the bufferLineSingleSided will give error >> to >> >> put a "follow angle". >> >> >> >> Andrea. >> >> >> >> 2013/8/13 Andrea Peri >> >>> >> >>> ok, thx. >> >>> I change to multiple scale. >> >>> >> >>> However I do a rapid check removing a label component, but the >> problem is >> >>> still here. >> >>> >> >>> Now I rewrite a more exact mapfile using two classes. >> >>> >> >>> Andrea. >> >>> >> >>> >> >>> >> >>> >> >>> 2013/8/13 thomas bonfort >> >>>> >> >>>> yes, that's incompatible. use multiple scale-dependant classes for >> now >> >>>> >> >>>> On 13 August 2013 18:26, Andrea Peri wrote: >> >>>> > The two label are at different max/min scaledenominator. >> >>>> > The goal is to have little label size at low scales and bigger font >> >>>> > size at >> >>>> > bigger scales. >> >>>> > >> >>>> > However only one lable is active at one scale level. >> >>>> > >> >>>> > Is this incompatible with "follow" ? >> >>>> > >> >>>> > >> >>>> > >> >>>> > 2013/8/13 thomas bonfort >> >>>> >> >> >>>> >> why the double label? they seem to be the same, but in any case >> >>>> >> multiple labels are not supported for FOLLOW. >> >>>> >> >> >>>> >> On 13 August 2013 18:08, Andrea Peri wrote: >> >>>> >> > I'm using spatialite 4.1.1, >> >>>> >> > so use ogr to access the db. >> >>>> >> > >> >>>> >> > LAYER >> >>>> >> > NAME "rt_topogr.50k.etichette.topon_idro_50k" >> >>>> >> > STATUS OFF >> >>>> >> > EXTENT 1554750.74 4678325.52 1771722.76 4924791.90 >> >>>> >> > TYPE LINE >> >>>> >> > CONNECTIONTYPE OGR >> >>>> >> > CONNECTION "/path-to-spatialite/zz_topografica.sqlite" >> >>>> >> > DATA "select PK_UID_2, TOPO_OK, GEOMETRY from >> topon_idro_50k" >> >>>> >> > PROJECTION >> >>>> >> > "+init=epsg:3003 +towgs84=0,0,0,0,0,0,0" >> >>>> >> > END >> >>>> >> > METADATA >> >>>> >> > "wms_title" "topon_idro_50k" >> >>>> >> > "wms_extent" "1554750.74 4678325.52 1771722.76 4924791.90" >> >>>> >> > END >> >>>> >> > LABELCACHE ON >> >>>> >> > MAXSCALEDENOM 60100 >> >>>> >> > MINSCALEDENOM 1 >> >>>> >> > CLASS >> >>>> >> > NAME '' >> >>>> >> > MAXSCALEDENOM 60100 >> >>>> >> > MINSCALEDENOM 1 >> >>>> >> > LABEL >> >>>> >> > TEXT '[TOPO_OK]' >> >>>> >> > COLOR 0 85 255 >> >>>> >> > OUTLINECOLOR 212 255 255 >> >>>> >> > OUTLINEWIDTH 1 >> >>>> >> > MAXSCALEDENOM 60100 >> >>>> >> > MINSCALEDENOM 40100 >> >>>> >> > FONT "LiberationSans-Regular" >> >>>> >> > TYPE truetype >> >>>> >> > SIZE 7 >> >>>> >> > ANGLE FOLLOW >> >>>> >> > OFFSET 15 99 >> >>>> >> > POSITION auto >> >>>> >> > PRIORITY 10 >> >>>> >> > MAXOVERLAPANGLE 180.0 >> >>>> >> > BUFFER 1 >> >>>> >> > FORCE OFF >> >>>> >> > PARTIALS FALSE >> >>>> >> > MINDISTANCE 200 >> >>>> >> > END >> >>>> >> > LABEL >> >>>> >> > TEXT '[TOPO_OK]' >> >>>> >> > COLOR 0 85 255 >> >>>> >> > OUTLINECOLOR 212 255 255 >> >>>> >> > OUTLINEWIDTH 1 >> >>>> >> > MAXSCALEDENOM 40100 >> >>>> >> > MINSCALEDENOM 1 >> >>>> >> > FONT "LiberationSans-Regular" >> >>>> >> > TYPE truetype >> >>>> >> > SIZE 9 >> >>>> >> > ANGLE FOLLOW >> >>>> >> > OFFSET 15 99 >> >>>> >> > POSITION auto >> >>>> >> > PRIORITY 10 >> >>>> >> > MAXOVERLAPANGLE 180.0 >> >>>> >> > BUFFER 1 >> >>>> >> > FORCE OFF >> >>>> >> > PARTIALS FALSE >> >>>> >> > MINDISTANCE 200 >> >>>> >> > END >> >>>> >> > END >> >>>> >> > END >> >>>> >> > >> >>>> >> > >> >>>> >> > >> >>>> >> > >> >>>> >> > 2013/8/13 thomas bonfort >> >>>> >> >> >> >>>> >> >> there's something strange in your error message... the >> >>>> >> >> singleSidedBuffer stuff is in GEOS, and should have nothing to >> do >> >>>> >> >> in >> >>>> >> >> msOGRFileNextShape. post your whole mapfile layer. >> >>>> >> >> >> >>>> >> >> On 13 August 2013 17:42, Andrea Peri >> wrote: >> >>>> >> >> > Hi, >> >>>> >> >> > >> >>>> >> >> > I tested trasforming the multilinestring dataset in a >> linestring >> >>>> >> >> > dataset >> >>>> >> >> > but >> >>>> >> >> > the error is still here. >> >>>> >> >> > >> >>>> >> >> > msDrawMap(): Image handling error. Failed to draw layer named >> >>>> >> >> > 'rt_topogr.50k.etichette.topon_idro_50k'. >> >>>> >> >> > >> >>>> >> >> > msOGRFileNextShape(): OGR error. IllegalArgumentException: >> >>>> >> >> > BufferBuilder::bufferLineSingleSided only accept linestrings >> >>>> >> >> > >> >>>> >> >> > So it is not really due to a multilinestring vs linestring >> >>>> >> >> > question. >> >>>> >> >> > >> >>>> >> >> > The quest carry on. >> >>>> >> >> > >> >>>> >> >> > >> >>>> >> >> > >> >>>> >> >> > 2013/8/13 Andrea Peri >> >>>> >> >> >> >> >>>> >> >> >> Hi, >> >>>> >> >> >> >> >>>> >> >> >> Try.ing to set a label on a MULTILINESTRING dataset. >> >>>> >> >> >> >> >>>> >> >> >> I set a label with Follow capability. >> >>>> >> >> >> >> >>>> >> >> >> ANGLE FOLLOW >> >>>> >> >> >> >> >>>> >> >> >> But I'm having this error: >> >>>> >> >> >> >> >>>> >> >> >> msOGRFileNextShape(): OGR error. IllegalArgumentException: >> >>>> >> >> >> BufferBuilder::bufferLineSingleSided only accept linestrings >> >>>> >> >> >> >> >>>> >> >> >> Is the Follow compatible with a MultiLinestring dataset or >> need >> >>>> >> >> >> only >> >>>> >> >> >> simple linestrings ? >> >>>> >> >> >> >> >>>> >> >> >> Thx, >> >>>> >> >> >> >> >>>> >> >> >> -- >> >>>> >> >> >> ----------------- >> >>>> >> >> >> Andrea Peri >> >>>> >> >> >> . . . . . . . . . >> >>>> >> >> >> qwerty ????? >> >>>> >> >> >> ----------------- >> >>>> >> >> > >> >>>> >> >> > >> >>>> >> >> > >> >>>> >> >> > >> >>>> >> >> > -- >> >>>> >> >> > ----------------- >> >>>> >> >> > Andrea Peri >> >>>> >> >> > . . . . . . . . . >> >>>> >> >> > qwerty ????? >> >>>> >> >> > ----------------- >> >>>> >> >> > >> >>>> >> >> > _______________________________________________ >> >>>> >> >> > mapserver-users mailing list >> >>>> >> >> > mapserver-users at lists.osgeo.org >> >>>> >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >>>> >> >> > >> >>>> >> > >> >>>> >> > >> >>>> >> > >> >>>> >> > >> >>>> >> > -- >> >>>> >> > ----------------- >> >>>> >> > Andrea Peri >> >>>> >> > . . . . . . . . . >> >>>> >> > qwerty ????? >> >>>> >> > ----------------- >> >>>> > >> >>>> > >> >>>> > >> >>>> > >> >>>> > -- >> >>>> > ----------------- >> >>>> > Andrea Peri >> >>>> > . . . . . . . . . >> >>>> > qwerty ????? >> >>>> > ----------------- >> >>> >> >>> >> >>> >> >>> >> >>> -- >> >>> ----------------- >> >>> Andrea Peri >> >>> . . . . . . . . . >> >>> qwerty ????? >> >>> ----------------- >> >> >> >> >> >> >> >> >> >> -- >> >> ----------------- >> >> Andrea Peri >> >> . . . . . . . . . >> >> qwerty ????? >> >> ----------------- >> > >> > >> > >> > >> > -- >> > ----------------- >> > Andrea Peri >> > . . . . . . . . . >> > qwerty ????? >> > ----------------- >> > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Aug 14 01:49:47 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 14 Aug 2013 10:49:47 +0200 Subject: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ? In-Reply-To: References: Message-ID: what happens if you use an inline wkt feature of type MULTILINESTRING ? On 14 August 2013 10:47, Andrea Peri wrote: > Hi, > > I do other tests. > > Using instead of a spatialite, a shapefile. > And accessing it using ogr or using ogr driver. > > I see the error trigger when use spatialite or shapefile accessed using the > OGR driver. > > Instead it don't trigger when use a directly defined Feature or the > mapserver direct shapefile driver. > > Regards, > > Andrea. > > > > 2013/8/14 Andrea Peri >> >> Yes. >> >> Is the OFFSET ! >> >> Yes Thomas when I remove the offset the angle follow will work without >> error. >> >> I have other informations: >> >> he error trigger on spatialite but don't in a simpe FEATURE text definet >> dataset. >> Infact with this dataset: >> >> LAYER >> NAME "line" >> TYPE LINE >> STATUS DEFAULT >> EXTENT 1662112.76 4858445.22 1666743.13 4860849.91 >> FEATURE >> WKT "LINESTRING(1662112.755029 4859495.405004, 1662172.424828 >> 4859710.216279, 1662357.401204 4859984.697353, 1662411.104022 >> 4860175.640708, 1662345.467244 4860318.848225, 1662172.424828 >> 4860473.989701, 1662178.391808 4860670.900037, 1662321.599324 >> 4860796.206614, 1662619.948317 4860849.909432, 1662888.462411 >> 4860837.975473, 1663174.877444 4860611.230238, 1663222.613283 >> 4860384.485003, 1663145.042545 4860247.244467, 1662977.967109 >> 4860056.301111, 1662769.122814 4859841.489836, 1662709.453015 4859680.38138, >> 1662810.891673 4859435.735206, 1663091.339726 4859250.75883, 1663371.78778 >> 4859137.386213, 1663813.344289 4859143.353192, 1663992.353685 4859256.72581, >> 1664093.792343 4859513.305944, 1664028.155564 4859829.555876, 1663765.60845 >> 4860038.400171, 1663664.169793 4860193.541648, 1663652.235833 >> 4860390.451983, 1663771.57543 4860545.593459, 1664081.858383 4860599.296278, >> 1664410.042275 4860581.395339, 1664779.995027 4860402.385943, 1664988.839322 >> 4860133.871849, 1665078.34402 4859919.060574, 1665114.145899 4859644.579501, >> 1665114.145899 4859423.801246, 1665132.046838 4859214.956951, 1664947.070463 >> 4859077.716414, 1664947.070463 4858862.905139, 1665263.320395 >> 4858725.664602, 1665615.372207 4858731.631582, 1665764.546703 >> 4858916.607958, 1665830.183482 4859214.956951, 1665824.216502 >> 4859567.008762, 1665728.744824 4859925.027554, 1665639.240126 >> 4860223.376547, 1665633.273147 4860503.8246, 1665716.810865 4860670.900037, >> 1665961.457039 4860760.404734, 1666253.839052 4860760.404734, 1666492.518246 >> 4860617.197218, 1666659.593682 4860408.352923, 1666743.1314 4860098.06997, >> 1666713.296501 4859811.654937, 1666635.725763 4859638.612521, 1666474.617307 >> 4859519.272924, 1666295.607911 4859465.570105, 1666229.971132 >> 4859435.735206, 1665979.357978 4859262.69279, 1666009.192878 4859065.782454, >> 1666301.574891 4858886.773058, 1666546.221065 4858862.905139, 1666623.791803 >> 4858707.763663, 1666576.055964 4858516.820307, 1666176.268314 >> 4858445.216549)" >> END #FEATURE >> LABELCACHE on >> CLASS >> STYLE >> COLOR 200 200 200 >> OUTLINECOLOR 0 255 0 >> END >> LABEL >> TEXT 'BLAH BLAH' >> >> COLOR 0 85 255 >> OUTLINECOLOR 212 255 255 >> OUTLINEWIDTH 1 >> FONT "LiberationSans-Regular" >> #FONT "Calibri" >> >> TYPE truetype >> SIZE 9 >> ANGLE FOLLOW >> OFFSET 15 99 >> POSITION auto >> PRIORITY 10 >> MAXOVERLAPANGLE 180.0 >> BUFFER 1 >> FORCE OFF >> PARTIALS FALSE >> MINDISTANCE 200 >> END >> END #CLASS >> END >> >> >> The error don't happen. >> >> Instead if I transfer this exact dataset in a spatialite (4.1.1) and apply >> an >> angle follow >> with an offset >> >> the error trigger immediatly when the >> box clip will create a multilinestring. >> >> However removing the >> OFFSET setting the error don't trigger. >> >> please notice I'm using spatialite 4.1.1 and gdal 1.10. >> >> Regards, >> >> Andrea. >> >> >> >> 2013/8/14 thomas bonfort >>> >>> Andrea, can you confirm if you are having the error when you remove >>> the label offset ? >>> >>> On 14 August 2013 09:37, Andrea Peri wrote: >>> > Hi, >>> > >>> > My theory is not true. >>> > >>> > I was able to create a featureset that like my image that will work >>> > when >>> > the visible box clip it creating a multilinestring.. >>> > >>> > sorry for noise, >>> > >>> > My quest still go on. >>> > >>> > Regards, >>> > >>> > >>> > >>> > >>> > 2013/8/13 Andrea Peri >>> >> >>> >> Hi, >>> >> Perhaps I found the explanation. >>> >> >>> >> The "angle follow" with OGR is using the >>> >> BufferBuilder::bufferLineSingleSided >>> >> That function seem don't work with a MultiLinestring . It necessary >>> >> need a >>> >> simple linestring. >>> >> >>> >> The question is that sometime the simple linestirng when is clipped >>> >> from >>> >> the visible bbox of the map to render, is transformed in a >>> >> MultiLinestring. >>> >> As showed in attached image. >>> >> >>> >> So a linestring geometry clipped by the visible bbox will become a >>> >> multilinestring geometry and the bufferLineSingleSided will give error >>> >> to >>> >> put a "follow angle". >>> >> >>> >> Andrea. >>> >> >>> >> 2013/8/13 Andrea Peri >>> >>> >>> >>> ok, thx. >>> >>> I change to multiple scale. >>> >>> >>> >>> However I do a rapid check removing a label component, but the >>> >>> problem is >>> >>> still here. >>> >>> >>> >>> Now I rewrite a more exact mapfile using two classes. >>> >>> >>> >>> Andrea. >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> 2013/8/13 thomas bonfort >>> >>>> >>> >>>> yes, that's incompatible. use multiple scale-dependant classes for >>> >>>> now >>> >>>> >>> >>>> On 13 August 2013 18:26, Andrea Peri wrote: >>> >>>> > The two label are at different max/min scaledenominator. >>> >>>> > The goal is to have little label size at low scales and bigger >>> >>>> > font >>> >>>> > size at >>> >>>> > bigger scales. >>> >>>> > >>> >>>> > However only one lable is active at one scale level. >>> >>>> > >>> >>>> > Is this incompatible with "follow" ? >>> >>>> > >>> >>>> > >>> >>>> > >>> >>>> > 2013/8/13 thomas bonfort >>> >>>> >> >>> >>>> >> why the double label? they seem to be the same, but in any case >>> >>>> >> multiple labels are not supported for FOLLOW. >>> >>>> >> >>> >>>> >> On 13 August 2013 18:08, Andrea Peri wrote: >>> >>>> >> > I'm using spatialite 4.1.1, >>> >>>> >> > so use ogr to access the db. >>> >>>> >> > >>> >>>> >> > LAYER >>> >>>> >> > NAME "rt_topogr.50k.etichette.topon_idro_50k" >>> >>>> >> > STATUS OFF >>> >>>> >> > EXTENT 1554750.74 4678325.52 1771722.76 4924791.90 >>> >>>> >> > TYPE LINE >>> >>>> >> > CONNECTIONTYPE OGR >>> >>>> >> > CONNECTION "/path-to-spatialite/zz_topografica.sqlite" >>> >>>> >> > DATA "select PK_UID_2, TOPO_OK, GEOMETRY from >>> >>>> >> > topon_idro_50k" >>> >>>> >> > PROJECTION >>> >>>> >> > "+init=epsg:3003 +towgs84=0,0,0,0,0,0,0" >>> >>>> >> > END >>> >>>> >> > METADATA >>> >>>> >> > "wms_title" "topon_idro_50k" >>> >>>> >> > "wms_extent" "1554750.74 4678325.52 1771722.76 >>> >>>> >> > 4924791.90" >>> >>>> >> > END >>> >>>> >> > LABELCACHE ON >>> >>>> >> > MAXSCALEDENOM 60100 >>> >>>> >> > MINSCALEDENOM 1 >>> >>>> >> > CLASS >>> >>>> >> > NAME '' >>> >>>> >> > MAXSCALEDENOM 60100 >>> >>>> >> > MINSCALEDENOM 1 >>> >>>> >> > LABEL >>> >>>> >> > TEXT '[TOPO_OK]' >>> >>>> >> > COLOR 0 85 255 >>> >>>> >> > OUTLINECOLOR 212 255 255 >>> >>>> >> > OUTLINEWIDTH 1 >>> >>>> >> > MAXSCALEDENOM 60100 >>> >>>> >> > MINSCALEDENOM 40100 >>> >>>> >> > FONT "LiberationSans-Regular" >>> >>>> >> > TYPE truetype >>> >>>> >> > SIZE 7 >>> >>>> >> > ANGLE FOLLOW >>> >>>> >> > OFFSET 15 99 >>> >>>> >> > POSITION auto >>> >>>> >> > PRIORITY 10 >>> >>>> >> > MAXOVERLAPANGLE 180.0 >>> >>>> >> > BUFFER 1 >>> >>>> >> > FORCE OFF >>> >>>> >> > PARTIALS FALSE >>> >>>> >> > MINDISTANCE 200 >>> >>>> >> > END >>> >>>> >> > LABEL >>> >>>> >> > TEXT '[TOPO_OK]' >>> >>>> >> > COLOR 0 85 255 >>> >>>> >> > OUTLINECOLOR 212 255 255 >>> >>>> >> > OUTLINEWIDTH 1 >>> >>>> >> > MAXSCALEDENOM 40100 >>> >>>> >> > MINSCALEDENOM 1 >>> >>>> >> > FONT "LiberationSans-Regular" >>> >>>> >> > TYPE truetype >>> >>>> >> > SIZE 9 >>> >>>> >> > ANGLE FOLLOW >>> >>>> >> > OFFSET 15 99 >>> >>>> >> > POSITION auto >>> >>>> >> > PRIORITY 10 >>> >>>> >> > MAXOVERLAPANGLE 180.0 >>> >>>> >> > BUFFER 1 >>> >>>> >> > FORCE OFF >>> >>>> >> > PARTIALS FALSE >>> >>>> >> > MINDISTANCE 200 >>> >>>> >> > END >>> >>>> >> > END >>> >>>> >> > END >>> >>>> >> > >>> >>>> >> > >>> >>>> >> > >>> >>>> >> > >>> >>>> >> > 2013/8/13 thomas bonfort >>> >>>> >> >> >>> >>>> >> >> there's something strange in your error message... the >>> >>>> >> >> singleSidedBuffer stuff is in GEOS, and should have nothing to >>> >>>> >> >> do >>> >>>> >> >> in >>> >>>> >> >> msOGRFileNextShape. post your whole mapfile layer. >>> >>>> >> >> >>> >>>> >> >> On 13 August 2013 17:42, Andrea Peri >>> >>>> >> >> wrote: >>> >>>> >> >> > Hi, >>> >>>> >> >> > >>> >>>> >> >> > I tested trasforming the multilinestring dataset in a >>> >>>> >> >> > linestring >>> >>>> >> >> > dataset >>> >>>> >> >> > but >>> >>>> >> >> > the error is still here. >>> >>>> >> >> > >>> >>>> >> >> > msDrawMap(): Image handling error. Failed to draw layer >>> >>>> >> >> > named >>> >>>> >> >> > 'rt_topogr.50k.etichette.topon_idro_50k'. >>> >>>> >> >> > >>> >>>> >> >> > msOGRFileNextShape(): OGR error. IllegalArgumentException: >>> >>>> >> >> > BufferBuilder::bufferLineSingleSided only accept linestrings >>> >>>> >> >> > >>> >>>> >> >> > So it is not really due to a multilinestring vs linestring >>> >>>> >> >> > question. >>> >>>> >> >> > >>> >>>> >> >> > The quest carry on. >>> >>>> >> >> > >>> >>>> >> >> > >>> >>>> >> >> > >>> >>>> >> >> > 2013/8/13 Andrea Peri >>> >>>> >> >> >> >>> >>>> >> >> >> Hi, >>> >>>> >> >> >> >>> >>>> >> >> >> Try.ing to set a label on a MULTILINESTRING dataset. >>> >>>> >> >> >> >>> >>>> >> >> >> I set a label with Follow capability. >>> >>>> >> >> >> >>> >>>> >> >> >> ANGLE FOLLOW >>> >>>> >> >> >> >>> >>>> >> >> >> But I'm having this error: >>> >>>> >> >> >> >>> >>>> >> >> >> msOGRFileNextShape(): OGR error. IllegalArgumentException: >>> >>>> >> >> >> BufferBuilder::bufferLineSingleSided only accept >>> >>>> >> >> >> linestrings >>> >>>> >> >> >> >>> >>>> >> >> >> Is the Follow compatible with a MultiLinestring dataset or >>> >>>> >> >> >> need >>> >>>> >> >> >> only >>> >>>> >> >> >> simple linestrings ? >>> >>>> >> >> >> >>> >>>> >> >> >> Thx, >>> >>>> >> >> >> >>> >>>> >> >> >> -- >>> >>>> >> >> >> ----------------- >>> >>>> >> >> >> Andrea Peri >>> >>>> >> >> >> . . . . . . . . . >>> >>>> >> >> >> qwerty ????? >>> >>>> >> >> >> ----------------- >>> >>>> >> >> > >>> >>>> >> >> > >>> >>>> >> >> > >>> >>>> >> >> > >>> >>>> >> >> > -- >>> >>>> >> >> > ----------------- >>> >>>> >> >> > Andrea Peri >>> >>>> >> >> > . . . . . . . . . >>> >>>> >> >> > qwerty ????? >>> >>>> >> >> > ----------------- >>> >>>> >> >> > >>> >>>> >> >> > _______________________________________________ >>> >>>> >> >> > mapserver-users mailing list >>> >>>> >> >> > mapserver-users at lists.osgeo.org >>> >>>> >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>>> >> >> > >>> >>>> >> > >>> >>>> >> > >>> >>>> >> > >>> >>>> >> > >>> >>>> >> > -- >>> >>>> >> > ----------------- >>> >>>> >> > Andrea Peri >>> >>>> >> > . . . . . . . . . >>> >>>> >> > qwerty ????? >>> >>>> >> > ----------------- >>> >>>> > >>> >>>> > >>> >>>> > >>> >>>> > >>> >>>> > -- >>> >>>> > ----------------- >>> >>>> > Andrea Peri >>> >>>> > . . . . . . . . . >>> >>>> > qwerty ????? >>> >>>> > ----------------- >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> -- >>> >>> ----------------- >>> >>> Andrea Peri >>> >>> . . . . . . . . . >>> >>> qwerty ????? >>> >>> ----------------- >>> >> >>> >> >>> >> >>> >> >>> >> -- >>> >> ----------------- >>> >> Andrea Peri >>> >> . . . . . . . . . >>> >> qwerty ????? >>> >> ----------------- >>> > >>> > >>> > >>> > >>> > -- >>> > ----------------- >>> > Andrea Peri >>> > . . . . . . . . . >>> > qwerty ????? >>> > ----------------- >> >> >> >> >> -- >> ----------------- >> Andrea Peri >> . . . . . . . . . >> qwerty ????? >> ----------------- > > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- From thomas.bonfort at gmail.com Wed Aug 14 02:20:54 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 14 Aug 2013 11:20:54 +0200 Subject: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ? In-Reply-To: References: Message-ID: Andrea, - what GEOS version do you have installed ? - please open a ticket for this. If you want me to look into it, please prepare a self-contained test case (including a spatialite db and mapfile) and mail it to me or link to it from the ticket. -- thomas On 14 August 2013 11:17, Andrea Peri wrote: > It work without trigger any error. > > This is the layer I use: > > LAYER > NAME "multiline" > TYPE LINE > STATUS OFF > EXTENT 1660351.00 4458445.22 1866743.13 4960849.91 > FEATURE > WKT "MULTILINESTRING((1662120.546188 4858603.677291, 1662738.746295 > 4858875.082216, 1663854.522097 4858618.755342, 1664779.309249 4858638.85941, > 1665116.052396 4858342.3244, 1665136.156465 4858035.737355),(1660351.388159 > 4859814.947419, 1661959.71364 4857844.748704, 1663678.611497 4857724.124293, > 1663869.600148 4858136.257698, 1664392.30593 4858085.997526, 1664703.918992 > 4857452.719368, 1668141.714707 4857613.551916),(1662112.755029 > 4859495.405004, 1662172.424828 4859710.216279, 1662357.401204 > 4859984.697353, 1662411.104022 4860175.640708, 1662345.467244 > 4860318.848225, 1662172.424828 4860473.989701, 1662178.391808 > 4860670.900037, 1662321.599324 4860796.206614, 1662619.948317 > 4860849.909432, 1662888.462411 4860837.975473, 1663174.877444 > 4860611.230238, 1663222.613283 4860384.485003, 1663145.042545 > 4860247.244467, 1662977.967109 4860056.301111, 1662769.122814 > 4859841.489836, 1662709.453015 4859680.38138, 1662810.891673 4859435.735206, > 1663091.339726 4859250.75883, 1663371.78778 4859137.386213, 1663813.344289 > 4859143.353192, 1663992.353685 4859256.72581, 1664093.792343 4859513.305944, > 1664028.155564 4859829.555876, 1663765.60845 4860038.400171, 1663664.169793 > 4860193.541648, 1663652.235833 4860390.451983, 1663771.57543 4860545.593459, > 1664081.858383 4860599.296278, 1664410.042275 4860581.395339, 1664779.995027 > 4860402.385943, 1664988.839322 4860133.871849, 1665078.34402 4859919.060574, > 1665114.145899 4859644.579501, 1665114.145899 4859423.801246, 1665132.046838 > 4859214.956951, 1664947.070463 4859077.716414, 1664947.070463 > 4858862.905139, 1665263.320395 4858725.664602, 1665615.372207 > 4858731.631582, 1665764.546703 4858916.607958, 1665830.183482 > 4859214.956951, 1665824.216502 4859567.008762, 1665728.744824 > 4859925.027554, 1665639.240126 4860223.376547, 1665633.273147 4860503.8246, > 1665716.810865 4860670.900037, 1665961.457039 4860760.404734, 1666253.839052 > 4860760.404734, 1666492.518246 4860617.197218, 1666659.593682 > 4860408.352923, 1666743.1314 4860098.06997, 1666713.296501 4859811.654937, > 1666635.725763 4859638.612521, 1666474.617307 4859519.272924, 1666295.607911 > 4859465.570105, 1666229.971132 4859435.735206, 1665979.357978 4859262.69279, > 1666009.192878 4859065.782454, 1666301.574891 4858886.773058, 1666546.221065 > 4858862.905139, 1666623.791803 4858707.763663, 1666576.055964 > 4858516.820307, 1666176.268314 4858445.216549))" > > END #FEATURE > LABELCACHE on > CLASS > STYLE > COLOR 200 200 200 > OUTLINECOLOR 0 255 0 > END > LABEL > TEXT 'BLAH BLAH' > COLOR 0 85 255 > OUTLINECOLOR 212 255 255 > OUTLINEWIDTH 1 > FONT "LiberationSans-Regular" > TYPE truetype > SIZE 9 > ANGLE FOLLOW > OFFSET 15 99 > POSITION auto > PRIORITY 10 > MAXOVERLAPANGLE 180.0 > BUFFER 1 > FORCE OFF > PARTIALS FALSE > MINDISTANCE 200 > END > END #CLASS > END > > > > > > 2013/8/14 thomas bonfort >> >> what happens if you use an inline wkt feature of type MULTILINESTRING ? >> >> On 14 August 2013 10:47, Andrea Peri wrote: >> > Hi, >> > >> > I do other tests. >> > >> > Using instead of a spatialite, a shapefile. >> > And accessing it using ogr or using ogr driver. >> > >> > I see the error trigger when use spatialite or shapefile accessed using >> > the >> > OGR driver. >> > >> > Instead it don't trigger when use a directly defined Feature or the >> > mapserver direct shapefile driver. >> > >> > Regards, >> > >> > Andrea. >> > >> > >> > >> > 2013/8/14 Andrea Peri >> >> >> >> Yes. >> >> >> >> Is the OFFSET ! >> >> >> >> Yes Thomas when I remove the offset the angle follow will work without >> >> error. >> >> >> >> I have other informations: >> >> >> >> he error trigger on spatialite but don't in a simpe FEATURE text >> >> definet >> >> dataset. >> >> Infact with this dataset: >> >> >> >> LAYER >> >> NAME "line" >> >> TYPE LINE >> >> STATUS DEFAULT >> >> EXTENT 1662112.76 4858445.22 1666743.13 4860849.91 >> >> FEATURE >> >> WKT "LINESTRING(1662112.755029 4859495.405004, 1662172.424828 >> >> 4859710.216279, 1662357.401204 4859984.697353, 1662411.104022 >> >> 4860175.640708, 1662345.467244 4860318.848225, 1662172.424828 >> >> 4860473.989701, 1662178.391808 4860670.900037, 1662321.599324 >> >> 4860796.206614, 1662619.948317 4860849.909432, 1662888.462411 >> >> 4860837.975473, 1663174.877444 4860611.230238, 1663222.613283 >> >> 4860384.485003, 1663145.042545 4860247.244467, 1662977.967109 >> >> 4860056.301111, 1662769.122814 4859841.489836, 1662709.453015 >> >> 4859680.38138, >> >> 1662810.891673 4859435.735206, 1663091.339726 4859250.75883, >> >> 1663371.78778 >> >> 4859137.386213, 1663813.344289 4859143.353192, 1663992.353685 >> >> 4859256.72581, >> >> 1664093.792343 4859513.305944, 1664028.155564 4859829.555876, >> >> 1663765.60845 >> >> 4860038.400171, 1663664.169793 4860193.541648, 1663652.235833 >> >> 4860390.451983, 1663771.57543 4860545.593459, 1664081.858383 >> >> 4860599.296278, >> >> 1664410.042275 4860581.395339, 1664779.995027 4860402.385943, >> >> 1664988.839322 >> >> 4860133.871849, 1665078.34402 4859919.060574, 1665114.145899 >> >> 4859644.579501, >> >> 1665114.145899 4859423.801246, 1665132.046838 4859214.956951, >> >> 1664947.070463 >> >> 4859077.716414, 1664947.070463 4858862.905139, 1665263.320395 >> >> 4858725.664602, 1665615.372207 4858731.631582, 1665764.546703 >> >> 4858916.607958, 1665830.183482 4859214.956951, 1665824.216502 >> >> 4859567.008762, 1665728.744824 4859925.027554, 1665639.240126 >> >> 4860223.376547, 1665633.273147 4860503.8246, 1665716.810865 >> >> 4860670.900037, >> >> 1665961.457039 4860760.404734, 1666253.839052 4860760.404734, >> >> 1666492.518246 >> >> 4860617.197218, 1666659.593682 4860408.352923, 1666743.1314 >> >> 4860098.06997, >> >> 1666713.296501 4859811.654937, 1666635.725763 4859638.612521, >> >> 1666474.617307 >> >> 4859519.272924, 1666295.607911 4859465.570105, 1666229.971132 >> >> 4859435.735206, 1665979.357978 4859262.69279, 1666009.192878 >> >> 4859065.782454, >> >> 1666301.574891 4858886.773058, 1666546.221065 4858862.905139, >> >> 1666623.791803 >> >> 4858707.763663, 1666576.055964 4858516.820307, 1666176.268314 >> >> 4858445.216549)" >> >> END #FEATURE >> >> LABELCACHE on >> >> CLASS >> >> STYLE >> >> COLOR 200 200 200 >> >> OUTLINECOLOR 0 255 0 >> >> END >> >> LABEL >> >> TEXT 'BLAH BLAH' >> >> >> >> COLOR 0 85 255 >> >> OUTLINECOLOR 212 255 255 >> >> OUTLINEWIDTH 1 >> >> FONT "LiberationSans-Regular" >> >> #FONT "Calibri" >> >> >> >> TYPE truetype >> >> SIZE 9 >> >> ANGLE FOLLOW >> >> OFFSET 15 99 >> >> POSITION auto >> >> PRIORITY 10 >> >> MAXOVERLAPANGLE 180.0 >> >> BUFFER 1 >> >> FORCE OFF >> >> PARTIALS FALSE >> >> MINDISTANCE 200 >> >> END >> >> END #CLASS >> >> END >> >> >> >> >> >> The error don't happen. >> >> >> >> Instead if I transfer this exact dataset in a spatialite (4.1.1) and >> >> apply >> >> an >> >> angle follow >> >> with an offset >> >> >> >> the error trigger immediatly when the >> >> box clip will create a multilinestring. >> >> >> >> However removing the >> >> OFFSET setting the error don't trigger. >> >> >> >> please notice I'm using spatialite 4.1.1 and gdal 1.10. >> >> >> >> Regards, >> >> >> >> Andrea. >> >> >> >> >> >> >> >> 2013/8/14 thomas bonfort >> >>> >> >>> Andrea, can you confirm if you are having the error when you remove >> >>> the label offset ? >> >>> >> >>> On 14 August 2013 09:37, Andrea Peri wrote: >> >>> > Hi, >> >>> > >> >>> > My theory is not true. >> >>> > >> >>> > I was able to create a featureset that like my image that will work >> >>> > when >> >>> > the visible box clip it creating a multilinestring.. >> >>> > >> >>> > sorry for noise, >> >>> > >> >>> > My quest still go on. >> >>> > >> >>> > Regards, >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > 2013/8/13 Andrea Peri >> >>> >> >> >>> >> Hi, >> >>> >> Perhaps I found the explanation. >> >>> >> >> >>> >> The "angle follow" with OGR is using the >> >>> >> BufferBuilder::bufferLineSingleSided >> >>> >> That function seem don't work with a MultiLinestring . It necessary >> >>> >> need a >> >>> >> simple linestring. >> >>> >> >> >>> >> The question is that sometime the simple linestirng when is clipped >> >>> >> from >> >>> >> the visible bbox of the map to render, is transformed in a >> >>> >> MultiLinestring. >> >>> >> As showed in attached image. >> >>> >> >> >>> >> So a linestring geometry clipped by the visible bbox will become a >> >>> >> multilinestring geometry and the bufferLineSingleSided will give >> >>> >> error >> >>> >> to >> >>> >> put a "follow angle". >> >>> >> >> >>> >> Andrea. >> >>> >> >> >>> >> 2013/8/13 Andrea Peri >> >>> >>> >> >>> >>> ok, thx. >> >>> >>> I change to multiple scale. >> >>> >>> >> >>> >>> However I do a rapid check removing a label component, but the >> >>> >>> problem is >> >>> >>> still here. >> >>> >>> >> >>> >>> Now I rewrite a more exact mapfile using two classes. >> >>> >>> >> >>> >>> Andrea. >> >>> >>> >> >>> >>> >> >>> >>> >> >>> >>> >> >>> >>> 2013/8/13 thomas bonfort >> >>> >>>> >> >>> >>>> yes, that's incompatible. use multiple scale-dependant classes >> >>> >>>> for >> >>> >>>> now >> >>> >>>> >> >>> >>>> On 13 August 2013 18:26, Andrea Peri wrote: >> >>> >>>> > The two label are at different max/min scaledenominator. >> >>> >>>> > The goal is to have little label size at low scales and bigger >> >>> >>>> > font >> >>> >>>> > size at >> >>> >>>> > bigger scales. >> >>> >>>> > >> >>> >>>> > However only one lable is active at one scale level. >> >>> >>>> > >> >>> >>>> > Is this incompatible with "follow" ? >> >>> >>>> > >> >>> >>>> > >> >>> >>>> > >> >>> >>>> > 2013/8/13 thomas bonfort >> >>> >>>> >> >> >>> >>>> >> why the double label? they seem to be the same, but in any >> >>> >>>> >> case >> >>> >>>> >> multiple labels are not supported for FOLLOW. >> >>> >>>> >> >> >>> >>>> >> On 13 August 2013 18:08, Andrea Peri >> >>> >>>> >> wrote: >> >>> >>>> >> > I'm using spatialite 4.1.1, >> >>> >>>> >> > so use ogr to access the db. >> >>> >>>> >> > >> >>> >>>> >> > LAYER >> >>> >>>> >> > NAME "rt_topogr.50k.etichette.topon_idro_50k" >> >>> >>>> >> > STATUS OFF >> >>> >>>> >> > EXTENT 1554750.74 4678325.52 1771722.76 4924791.90 >> >>> >>>> >> > TYPE LINE >> >>> >>>> >> > CONNECTIONTYPE OGR >> >>> >>>> >> > CONNECTION "/path-to-spatialite/zz_topografica.sqlite" >> >>> >>>> >> > DATA "select PK_UID_2, TOPO_OK, GEOMETRY from >> >>> >>>> >> > topon_idro_50k" >> >>> >>>> >> > PROJECTION >> >>> >>>> >> > "+init=epsg:3003 +towgs84=0,0,0,0,0,0,0" >> >>> >>>> >> > END >> >>> >>>> >> > METADATA >> >>> >>>> >> > "wms_title" "topon_idro_50k" >> >>> >>>> >> > "wms_extent" "1554750.74 4678325.52 1771722.76 >> >>> >>>> >> > 4924791.90" >> >>> >>>> >> > END >> >>> >>>> >> > LABELCACHE ON >> >>> >>>> >> > MAXSCALEDENOM 60100 >> >>> >>>> >> > MINSCALEDENOM 1 >> >>> >>>> >> > CLASS >> >>> >>>> >> > NAME '' >> >>> >>>> >> > MAXSCALEDENOM 60100 >> >>> >>>> >> > MINSCALEDENOM 1 >> >>> >>>> >> > LABEL >> >>> >>>> >> > TEXT '[TOPO_OK]' >> >>> >>>> >> > COLOR 0 85 255 >> >>> >>>> >> > OUTLINECOLOR 212 255 255 >> >>> >>>> >> > OUTLINEWIDTH 1 >> >>> >>>> >> > MAXSCALEDENOM 60100 >> >>> >>>> >> > MINSCALEDENOM 40100 >> >>> >>>> >> > FONT "LiberationSans-Regular" >> >>> >>>> >> > TYPE truetype >> >>> >>>> >> > SIZE 7 >> >>> >>>> >> > ANGLE FOLLOW >> >>> >>>> >> > OFFSET 15 99 >> >>> >>>> >> > POSITION auto >> >>> >>>> >> > PRIORITY 10 >> >>> >>>> >> > MAXOVERLAPANGLE 180.0 >> >>> >>>> >> > BUFFER 1 >> >>> >>>> >> > FORCE OFF >> >>> >>>> >> > PARTIALS FALSE >> >>> >>>> >> > MINDISTANCE 200 >> >>> >>>> >> > END >> >>> >>>> >> > LABEL >> >>> >>>> >> > TEXT '[TOPO_OK]' >> >>> >>>> >> > COLOR 0 85 255 >> >>> >>>> >> > OUTLINECOLOR 212 255 255 >> >>> >>>> >> > OUTLINEWIDTH 1 >> >>> >>>> >> > MAXSCALEDENOM 40100 >> >>> >>>> >> > MINSCALEDENOM 1 >> >>> >>>> >> > FONT "LiberationSans-Regular" >> >>> >>>> >> > TYPE truetype >> >>> >>>> >> > SIZE 9 >> >>> >>>> >> > ANGLE FOLLOW >> >>> >>>> >> > OFFSET 15 99 >> >>> >>>> >> > POSITION auto >> >>> >>>> >> > PRIORITY 10 >> >>> >>>> >> > MAXOVERLAPANGLE 180.0 >> >>> >>>> >> > BUFFER 1 >> >>> >>>> >> > FORCE OFF >> >>> >>>> >> > PARTIALS FALSE >> >>> >>>> >> > MINDISTANCE 200 >> >>> >>>> >> > END >> >>> >>>> >> > END >> >>> >>>> >> > END >> >>> >>>> >> > >> >>> >>>> >> > >> >>> >>>> >> > >> >>> >>>> >> > >> >>> >>>> >> > 2013/8/13 thomas bonfort >> >>> >>>> >> >> >> >>> >>>> >> >> there's something strange in your error message... the >> >>> >>>> >> >> singleSidedBuffer stuff is in GEOS, and should have nothing >> >>> >>>> >> >> to >> >>> >>>> >> >> do >> >>> >>>> >> >> in >> >>> >>>> >> >> msOGRFileNextShape. post your whole mapfile layer. >> >>> >>>> >> >> >> >>> >>>> >> >> On 13 August 2013 17:42, Andrea Peri >> >>> >>>> >> >> wrote: >> >>> >>>> >> >> > Hi, >> >>> >>>> >> >> > >> >>> >>>> >> >> > I tested trasforming the multilinestring dataset in a >> >>> >>>> >> >> > linestring >> >>> >>>> >> >> > dataset >> >>> >>>> >> >> > but >> >>> >>>> >> >> > the error is still here. >> >>> >>>> >> >> > >> >>> >>>> >> >> > msDrawMap(): Image handling error. Failed to draw layer >> >>> >>>> >> >> > named >> >>> >>>> >> >> > 'rt_topogr.50k.etichette.topon_idro_50k'. >> >>> >>>> >> >> > >> >>> >>>> >> >> > msOGRFileNextShape(): OGR error. >> >>> >>>> >> >> > IllegalArgumentException: >> >>> >>>> >> >> > BufferBuilder::bufferLineSingleSided only accept >> >>> >>>> >> >> > linestrings >> >>> >>>> >> >> > >> >>> >>>> >> >> > So it is not really due to a multilinestring vs >> >>> >>>> >> >> > linestring >> >>> >>>> >> >> > question. >> >>> >>>> >> >> > >> >>> >>>> >> >> > The quest carry on. >> >>> >>>> >> >> > >> >>> >>>> >> >> > >> >>> >>>> >> >> > >> >>> >>>> >> >> > 2013/8/13 Andrea Peri >> >>> >>>> >> >> >> >> >>> >>>> >> >> >> Hi, >> >>> >>>> >> >> >> >> >>> >>>> >> >> >> Try.ing to set a label on a MULTILINESTRING dataset. >> >>> >>>> >> >> >> >> >>> >>>> >> >> >> I set a label with Follow capability. >> >>> >>>> >> >> >> >> >>> >>>> >> >> >> ANGLE FOLLOW >> >>> >>>> >> >> >> >> >>> >>>> >> >> >> But I'm having this error: >> >>> >>>> >> >> >> >> >>> >>>> >> >> >> msOGRFileNextShape(): OGR error. >> >>> >>>> >> >> >> IllegalArgumentException: >> >>> >>>> >> >> >> BufferBuilder::bufferLineSingleSided only accept >> >>> >>>> >> >> >> linestrings >> >>> >>>> >> >> >> >> >>> >>>> >> >> >> Is the Follow compatible with a MultiLinestring dataset >> >>> >>>> >> >> >> or >> >>> >>>> >> >> >> need >> >>> >>>> >> >> >> only >> >>> >>>> >> >> >> simple linestrings ? >> >>> >>>> >> >> >> >> >>> >>>> >> >> >> Thx, >> >>> >>>> >> >> >> >> >>> >>>> >> >> >> -- >> >>> >>>> >> >> >> ----------------- >> >>> >>>> >> >> >> Andrea Peri >> >>> >>>> >> >> >> . . . . . . . . . >> >>> >>>> >> >> >> qwerty ????? >> >>> >>>> >> >> >> ----------------- >> >>> >>>> >> >> > >> >>> >>>> >> >> > >> >>> >>>> >> >> > >> >>> >>>> >> >> > >> >>> >>>> >> >> > -- >> >>> >>>> >> >> > ----------------- >> >>> >>>> >> >> > Andrea Peri >> >>> >>>> >> >> > . . . . . . . . . >> >>> >>>> >> >> > qwerty ????? >> >>> >>>> >> >> > ----------------- >> >>> >>>> >> >> > >> >>> >>>> >> >> > _______________________________________________ >> >>> >>>> >> >> > mapserver-users mailing list >> >>> >>>> >> >> > mapserver-users at lists.osgeo.org >> >>> >>>> >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >>> >>>> >> >> > >> >>> >>>> >> > >> >>> >>>> >> > >> >>> >>>> >> > >> >>> >>>> >> > >> >>> >>>> >> > -- >> >>> >>>> >> > ----------------- >> >>> >>>> >> > Andrea Peri >> >>> >>>> >> > . . . . . . . . . >> >>> >>>> >> > qwerty ????? >> >>> >>>> >> > ----------------- >> >>> >>>> > >> >>> >>>> > >> >>> >>>> > >> >>> >>>> > >> >>> >>>> > -- >> >>> >>>> > ----------------- >> >>> >>>> > Andrea Peri >> >>> >>>> > . . . . . . . . . >> >>> >>>> > qwerty ????? >> >>> >>>> > ----------------- >> >>> >>> >> >>> >>> >> >>> >>> >> >>> >>> >> >>> >>> -- >> >>> >>> ----------------- >> >>> >>> Andrea Peri >> >>> >>> . . . . . . . . . >> >>> >>> qwerty ????? >> >>> >>> ----------------- >> >>> >> >> >>> >> >> >>> >> >> >>> >> >> >>> >> -- >> >>> >> ----------------- >> >>> >> Andrea Peri >> >>> >> . . . . . . . . . >> >>> >> qwerty ????? >> >>> >> ----------------- >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > -- >> >>> > ----------------- >> >>> > Andrea Peri >> >>> > . . . . . . . . . >> >>> > qwerty ????? >> >>> > ----------------- >> >> >> >> >> >> >> >> >> >> -- >> >> ----------------- >> >> Andrea Peri >> >> . . . . . . . . . >> >> qwerty ????? >> >> ----------------- >> > >> > >> > >> > >> > -- >> > ----------------- >> > Andrea Peri >> > . . . . . . . . . >> > qwerty ????? >> > ----------------- > > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- From aperi2007 at gmail.com Wed Aug 14 02:21:07 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 14 Aug 2013 11:21:07 +0200 Subject: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ? In-Reply-To: References: Message-ID: (sorry, my previous response was cancelled , so I resend after remove the unuseful parts) It work without any error. This is the layer I try to use: LAYER NAME "multiline" TYPE LINE STATUS OFF EXTENT 1660351.00 4458445.22 1866743.13 4960849.91 FEATURE WKT "MULTILINESTRING((1662120.546188 4858603.677291, 1662738.746295 4858875.082216, 1663854.522097 4858618.755342, 1664779.309249 4858638.85941, 1665116.052396 4858342.3244, 1665136.156465 4858035.737355),(1660351.388159 4859814.947419, 1661959.71364 4857844.748704, 1663678.611497 4857724.124293, 1663869.600148 4858136.257698, 1664392.30593 4858085.997526, 1664703.918992 4857452.719368, 1668141.714707 4857613.551916),(1662112.755029 4859495.405004, 1662172.424828 4859710.216279, 1662357.401204 4859984.697353, 1662411.104022 4860175.640708, 1662345.467244 4860318.848225, 1662172.424828 4860473.989701, 1662178.391808 4860670.900037, 1662321.599324 4860796.206614, 1662619.948317 4860849.909432, 1662888.462411 4860837.975473, 1663174.877444 4860611.230238, 1663222.613283 4860384.485003, 1663145.042545 4860247.244467, 1662977.967109 4860056.301111, 1662769.122814 4859841.489836, 1662709.453015 4859680.38138, 1662810.891673 4859435.735206, 1663091.339726 4859250.75883, 1663371.78778 4859137.386213, 1663813.344289 4859143.353192, 1663992.353685 4859256.72581, 1664093.792343 4859513.305944, 1664028.155564 4859829.555876, 1663765.60845 4860038.400171, 1663664.169793 4860193.541648, 1663652.235833 4860390.451983, 1663771.57543 4860545.593459, 1664081.858383 4860599.296278, 1664410.042275 4860581.395339, 1664779.995027 4860402.385943, 1664988.839322 4860133.871849, 1665078.34402 4859919.060574, 1665114.145899 4859644.579501, 1665114.145899 4859423.801246, 1665132.046838 4859214.956951, 1664947.070463 4859077.716414, 1664947.070463 4858862.905139, 1665263.320395 4858725.664602, 1665615.372207 4858731.631582, 1665764.546703 4858916.607958, 1665830.183482 4859214.956951, 1665824.216502 4859567.008762, 1665728.744824 4859925.027554, 1665639.240126 4860223.376547, 1665633.273147 4860503.8246, 1665716.810865 4860670.900037, 1665961.457039 4860760.404734, 1666253.839052 4860760.404734, 1666492.518246 4860617.197218, 1666659.593682 4860408.352923, 1666743.1314 4860098.06997, 1666713.296501 4859811.654937, 1666635.725763 4859638.612521, 1666474.617307 4859519.272924, 1666295.607911 4859465.570105, 1666229.971132 4859435.735206, 1665979.357978 4859262.69279, 1666009.192878 4859065.782454, 1666301.574891 4858886.773058, 1666546.221065 4858862.905139, 1666623.791803 4858707.763663, 1666576.055964 4858516.820307, 1666176.268314 4858445.216549))" END #FEATURE LABELCACHE on CLASS STYLE COLOR 200 200 200 OUTLINECOLOR 0 255 0 END LABEL TEXT 'BLAH BLAH' COLOR 0 85 255 OUTLINECOLOR 212 255 255 OUTLINEWIDTH 1 FONT "LiberationSans-Regular" #FONT "Calibri" TYPE truetype SIZE 9 ANGLE FOLLOW OFFSET 15 99 POSITION auto PRIORITY 10 MAXOVERLAPANGLE 180.0 BUFFER 1 FORCE OFF PARTIALS FALSE MINDISTANCE 200 END END #CLASS END 2013/8/14 thomas bonfort > what happens if you use an inline wkt feature of type MULTILINESTRING ? > > On 14 August 2013 10:47, Andrea Peri wrote: > > Hi, > > > > I do other tests. > > > > Using instead of a spatialite, a shapefile. > > And accessing it using ogr or using ogr driver. > > > > I see the error trigger when use spatialite or shapefile accessed using > the > > OGR driver. > > > > Instead it don't trigger when use a directly defined Feature or the > > mapserver direct shapefile driver. > > > > Regards, > > > > Andrea. > > > ----------------- > > Andrea Peri > > . . . . . . . . . > > qwerty ????? > > ----------------- > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Wed Aug 14 06:46:46 2013 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Wed, 14 Aug 2013 13:46:46 +0000 Subject: [mapserver-users] mapserver-users Digest, Vol 67, Issue 11 In-Reply-To: References: Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA31E6A8D@swmail01.r8nssis.local> Andy, Sorry about the late reply. I am not opposed to perl/php. I just want something easy, and I would prefer not having to set up Mapserver and GeoServer. Concerning the slow server: The person running the site added more RAM, so the system is not agonizingly slow. In addition it sounds like they are going to get a new machine next year. They said that they are okay with the performance so I am going to let it go and just hope the new server will help. Mark Volz, GISP GIS Specialist > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of mapserver-users- > request at lists.osgeo.org > Sent: Friday, August 09, 2013 10:41 AM > To: mapserver-users at lists.osgeo.org > Subject: mapserver-users Digest, Vol 67, Issue 11 > > 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. securing mapserver layers (Mark Volz) > 2. Re: securing mapserver layers (andy) > 3. Re: securing mapserver layers (Basques, Bob (CI-StPaul)) > 4. Re: securing mapserver layers (Raffaele Morelli) > 5. Re: securing mapserver layers (Raffaele Morelli) > 6. MapServer UTFGrid driver (Francois Desjarlais) > 7. Re: drawing multiple layers from postgis (Michael McInnis) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 8 Aug 2013 20:36:24 +0000 > From: Mark Volz > To: "mapserver-users at lists.osgeo.org" > > Subject: [mapserver-users] securing mapserver layers > Message-ID: > <36CA828A36E29F45B7CF0A1766E5DFA31E6389 at swmail01.r8nssis.loc > al> > Content-Type: text/plain; charset="us-ascii" > > Hello > > I would like to set up mapserver so that some map files are open to anyone, > some open to only internal users, and other maps are only open to users that > enter in a user name and password. Is there a way to set up mapserver / > Apache so that I can secure the mapserver services for different types of > users? > > For example: > Public Users, or any users > http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=public_map > > Internal Users > http://geomoose.lyonco.org/cgi- > bin/mapserv.exe?map=internal_map > External users with the correct username and password > http://geomoose.lyonco.org/cgi- > bin/mapserv.exe?map=password_protected_map > > Thank You > > > p.s. I asked a similar question in the past, but I am having trouble finding that > question and response. So I appologize for asking the same question again > > > Mark Volz, GISP > GIS Specialist > > > > > ------------------------------ > > Message: 2 > Date: Thu, 08 Aug 2013 16:00:14 -0500 > From: andy > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] securing mapserver layers > Message-ID: <520406DE.2000906 at squeakycode.net> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 8/8/2013 3:36 PM, Mark Volz wrote: > > Hello > > > > I would like to set up mapserver so that some map files are open to > anyone, some open to only internal users, and other maps are only open to > users that enter in a user name and password. Is there a way to set up > mapserver / Apache so that I can secure the mapserver services for different > types of users? > > > > For example: > > Public Users, or any users > > http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=public_map > > > Internal Users > > http://geomoose.lyonco.org/cgi- > bin/mapserv.exe?map=internal_map > > External users with the correct username and password > > > > http://geomoose.lyonco.org/cgi- > bin/mapserv.exe?map=password_protected_ > > map > > > > Thank You > > > > > > p.s. I asked a similar question in the past, but I am having trouble > > finding that question and response. So I appologize for asking the > > same question again > > > > > > Mark Volz, GISP > > GIS Specialist > > > > > How'd you feel about switching to perl/php and using mapscript? > > PS: how'd your slow live box/dev box problem go? get that fixed up? > > -Andy > > > > ------------------------------ > > Message: 3 > Date: Thu, 8 Aug 2013 21:45:49 +0000 > From: "Basques, Bob (CI-StPaul)" > To: Mark Volz , > "mapserver-users at lists.osgeo.org" users at lists.osgeo.org> > Subject: Re: [mapserver-users] securing mapserver layers > Message-ID: > 003.055d.mgd.msft.net> > > Content-Type: text/plain; charset="us-ascii" > > Mark, > > Early on we set up some Apache rules to handle this, but it's based on a > naming mechanism in the MAP files. > > If you look at our public facing MAPfile links, each mapfile name looks > something like: _public.map > > The "_public" chunk is read by Apache as something that is available > externally. We actually came up with five different classes of file types > originally, but this is really the only one that we use and it's intended to allow > the Mapfile/data custodians a method of making their data available outside > if they want to. They just need to add that chunk of text to their Mapfile and > apache lets outside access see them.i've been meaning to set up a whole > demo suite of our configuration for a while (few years) now, but just never > got around to it. We have other similar APACHE mod for other things as well > that I think others would be interested in. > > We have a couple of newer projects that might dictate that we set up some > demo product that might morph into some sort of demo eventually. > > Bobb > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Mark Volz > Sent: Thursday, August 08, 2013 3:36 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] securing mapserver layers > > Hello > > I would like to set up mapserver so that some map files are open to anyone, > some open to only internal users, and other maps are only open to users that > enter in a user name and password. Is there a way to set up mapserver / > Apache so that I can secure the mapserver services for different types of > users? > > For example: > Public Users, or any users > http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=public_map > > Internal Users > http://geomoose.lyonco.org/cgi- > bin/mapserv.exe?map=internal_map > External users with the correct username and password > http://geomoose.lyonco.org/cgi- > bin/mapserv.exe?map=password_protected_map > > Thank You > > > p.s. I asked a similar question in the past, but I am having trouble finding that > question and response. So I appologize for asking the same question again > > > Mark Volz, GISP > GIS Specialist > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > ------------------------------ > > Message: 4 > Date: Fri, 9 Aug 2013 12:18:00 +0200 > From: Raffaele Morelli > To: "mapserver-users at lists.osgeo.org" > > Subject: Re: [mapserver-users] securing mapserver layers > Message-ID: > il.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > 2013/8/8 Mark Volz > > > Hello > > > > I would like to set up mapserver so that some map files are open to > > anyone, some open to only internal users, and other maps are only open > > to users that enter in a user name and password. Is there a way to > > set up mapserver / Apache so that I can secure the mapserver services > > for different types of users? > > > > For example: > > Public Users, or any users > > http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=public_map > > Internal Users > > > > http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=internal_map > > External users with the correct username and password > > > > http://geomoose.lyonco.org/cgi- > bin/mapserv.exe?map=password_protected_ > > map > > > > Thank You > > > > > > p.s. I asked a similar question in the past, but I am having trouble > > finding that question and response. So I appologize for asking the > > same question again > > > > > > Mark Volz, GISP > > GIS Specialist > > > > You can use apache mod_aut* modules to setup a username/password > protected area. > If you are planning to use mapserver as WMS server, you should consider to > use allow/deny on a file type level (and/or directives) > according to ip addresses. > > If you are running a front end like pmapper or a openlayers based one you > can quickly grant access using both methods. > > /r > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: users/attachments/20130809/cdcd04e4/attachment-0001.html> > > ------------------------------ > > Message: 5 > Date: Fri, 9 Aug 2013 12:24:01 +0200 > From: Raffaele Morelli > To: Mark Volz , > "mapserver-users at lists.osgeo.org" users at lists.osgeo.org> > Subject: Re: [mapserver-users] securing mapserver layers > Message-ID: > mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > 2013/8/8 Basques, Bob (CI-StPaul) > > > Mark, > > > > Early on we set up some Apache rules to handle this, but it's based on > > a naming mechanism in the MAP files. > > > > If you look at our public facing MAPfile links, each mapfile name > > looks something like: _public.map > > > > The "_public" chunk is read by Apache as something that is available > > externally. We actually came up with five different classes of file > > types originally, but this is really the only one that we use and it's > > intended to allow the Mapfile/data custodians a method of making their > > data available outside if they want to. They just need to add that > > chunk of text to their Mapfile and apache lets outside access see > > them.i've been meaning to set up a whole demo suite of our > > configuration for a while (few > > years) now, but just never got around to it. We have other similar > > APACHE mod for other things as well that I think others would be > interested in. > > > > We have a couple of newer projects that might dictate that we set up > > some demo product that might morph into some sort of demo eventually. > > > > Bobb > > > Apache environment variables can do this but it's more related to hide the > mapfile path on the file system. > eg. a request for "YOUR_ALIAS" is turned into the real path from the > webserver, /your/real/path/to/the/mapfile.map > > This is accomplished by symbolic links (YOUR_ALIAS) to mapserver > executable in the cgi dir > > http://mapserver.org/ogc/wms_server.html#changing-the-online-resource- > url > > /r > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: users/attachments/20130809/65ac70e4/attachment-0001.html> > > ------------------------------ > > Message: 6 > Date: Fri, 9 Aug 2013 11:25:37 -0400 > From: Francois Desjarlais > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] MapServer UTFGrid driver > Message-ID: > mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Hi all, > > My name is Francois and I am a computer engineering student. This summer, > as part of the Google Summer of Code program, I worked on a UTFGrid > driver for MapServer. It is now functional and available. I also made a patch > for OpenLayers so that it supports UTFGrid with a WMS service for UTFGrid > driver. Recently, I modified the MapServer's docs to add this new output > format. All these can be found on my git. > > Any feedback about the driver is appreciated. > You can find all the doc and a working example at msgsoc.mapgears.com My > git : github.com/fdesj > > If you have any questiona about this new feature just ask . > > Regards, > Francois > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: users/attachments/20130809/f57f5f8e/attachment-0001.html> > > ------------------------------ > > Message: 7 > Date: Fri, 9 Aug 2013 08:40:28 -0700 > From: Michael McInnis > To: "mapserver-users at lists.osgeo.org" > > Subject: Re: [mapserver-users] drawing multiple layers from postgis > Message-ID: > Content-Type: text/plain; charset="iso-8859-1" > > > > > > I'm pretty sure that END is correctly ending the Symbol Clause. > The odd thing about this is I can draw all four layers if I call them separately > but when I try to call them through php only numbers 1 and 3 work. All layers > were generated the same way inpostgresql/postgis (see sql below). > I'm going to regenerate layers 2 and 4 just in case but I think it's a problem > with php/ms_script. > // All these > work > > http://localhost/cgi- > bin/mapserv?map=/media/D_Drive/www/gis/business1.map&layers=busin > ess_rd1%20states&mode=map > > http://localhost/cgi- > bin/mapserv?map=/media/D_Drive/www/gis/business2.map&layers=busin > ess_rd2%20states&mode=map > > http://localhost/cgi- > bin/mapserv?map=/media/D_Drive/www/gis/business3.map&layers=busin > ess_rd3%20states&mode=map > > http://localhost/cgi- > bin/mapserv?map=/media/D_Drive/www/gis/business4.map&layers=busin > ess_rd4%20states&mode=map > > > > // Half of > these work > > http://mapserver0/business.php?num=1 works > > http://mapserver0/business.php?num=2 not > > http://mapserver0/business.php?num=3 works > > http://mapserver0/business.php?num=4 not > > // All these > work > > http://localhost/cgi- > bin/mapserv?map=/media/D_Drive/www/gis/business1.map&layers=busin > ess_rd1%20states&mode=map > > http://localhost/cgi- > bin/mapserv?map=/media/D_Drive/www/gis/business2.map&layers=busin > ess_rd2%20states&mode=map > > http://localhost/cgi- > bin/mapserv?map=/media/D_Drive/www/gis/business3.map&layers=busin > ess_rd3%20states&mode=map > > http://localhost/cgi- > bin/mapserv?map=/media/D_Drive/www/gis/business4.map&layers=busin > ess_rd4%20states&mode=map > > > > // Half of > these work > > http://mapserver0/business.php?num=1 works > > http://mapserver0/business.php?num=2 not > > http://mapserver0/business.php?num=3 works > > http://mapserver0/business.php?num=4 not > // Create rounded > lat lon table > > Select count(*), round(cast(ST_X(geom) as numeric),2) as lon, > > round(cast(ST_Y(geom) as numeric),2) as lat > > Into > business_rd2 > > From > business_loc > > Group By round(cast(ST_X(geom) as numeric),2), round(cast(ST_Y(geom) as > numeric),2) > > Order By count Desc > > > > // Add Geometry > > Alter Table business_rd2 Add > Column geom geometry(POINT,4326); > > Update > business_rd2 Set geom = > ST_SetSRID(ST_MakePoint(lon,lat),4326); > > Create Index indx_business_rd2_geom On > business_rd2 Using GIST(geom); > > > > // Now add a > primary key named id to enable mapserver drawing > > Alter Table > business_rd2 Add Column > id BIGSERIAL Primary Key; > > > Date: Fri, 9 Aug 2013 12:23:52 +0200 > > Subject: Re: [mapserver-users] drawing multiple layers from postgis > > From: thomas.bonfort at gmail.com > > To: mmcinnis59 at msn.com > > > > On 8 August 2013 20:16, Michael McInnis wrote: > > > Hopefully, this is an easy one. > > > > > > I'm trying to build a scale sensitive .map file using points from postgis. > > > > > > I can successfully draw the shapefile states with a single points > > > layer from postgis. > > > However, if I add an additional points layer and attempt to draw it > > > the layer comes up blank. > > > If I remove the leading postgis points layer from the .map file the > > > new points layer will now display. > > > IE I can only draw the first occurrence of a postgis layer in the map file. > > > > > > How do you define multiple postgis layers so that you can pick and > > > choose layers for display? > > > > > > LAYER > > > NAME states > > > DATA STATES > > > STATUS ON > > > TYPE Polygon > > > > > > CLASS > > > OUTLINECOLOR 255 255 255 > > > COLOR 155 155 155 > > > END # Class > > > END # Layer > > > > > > LAYER > > > CONNECTIONTYPE POSTGIS > > > NAME business_rd2 > > > CONNECTION "host=localhost dbname=Business user=postgres > > > password=xxxx port=5432" > > > PROCESSING "CLOSE_CONNECTION=DEFER" > > > DATA "geom From business_rd2 as rd2 using unique id using > srid=4326" > > > #MINSCALE 100000 > > > STATUS ON > > > TYPE POINT > > > CLASS > > > SYMBOL 'circle' > > > SIZE 2 > > > COLOR 255 0 0 > > > END > > this END is bogus > > > > > END # Class > > > END # Layer > > > > > > LAYER > > > CONNECTIONTYPE POSTGIS > > > NAME business_rd1 > > > CONNECTION "host=localhost dbname=Business user=postgres > > > password=xxxx port=5432" > > > PROCESSING "CLOSE_CONNECTION=DEFER" > > > DATA "geom From business_rd1 as rd1 using unique id using > srid=4326" > > > #MINSCALE 100000 > > > STATUS ON > > > TYPE POINT > > > CLASS > > > SYMBOL 'circle' > > > SIZE 2 > > > COLOR 255 0 0 > > > END > > this one to > > > > > END # Class > > > END # Layer > > > > > > > > > _______________________________________________ > > > 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: users/attachments/20130809/adeae762/attachment.html> > > ------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > End of mapserver-users Digest, Vol 67, Issue 11 > *********************************************** From jlapointe at mapgears.com Wed Aug 14 06:52:24 2013 From: jlapointe at mapgears.com (Jessica Lapointe) Date: Wed, 14 Aug 2013 09:52:24 -0400 Subject: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04 In-Reply-To: References: Message-ID: Hi Luis, I don't have an answer for you right now, but could you take a look at your access log to see what request is causing the fault at every second ? That might give us some clue of where the problem is. Thank you, Jessica On Wed, Aug 14, 2013 at 3:26 AM, Lu?s de Sousa wrote: > Dear all, > > I just installed ScribeUI on Ubuntu 12.04. When I try to access it there's > a timeout: > > --2013-08-13 21:48:07-- (try:20) http://localhost/ScribeUI > Connecting to localhost (localhost)|127.0.0.1|:80... connected. > HTTP request sent, awaiting response... Read error (Connection timed out) > in headers. > > In the apache log I have a segmentation fault registered every second > since I installed ScribeUI, like: > > [Tue Aug 13 16:46:18 2013] [notice] child pid 5556 exit signal > Segmentation fault (11) > > Is there any log file specific to ScribeUI? Otherwise, is there any other > way to get some debug messages to understand what's going wrong? > > Thank you, > > Lu?s > > > > > _______________________________________________ > 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 aperi2007 at gmail.com Wed Aug 14 06:52:52 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 14 Aug 2013 15:52:52 +0200 Subject: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ? In-Reply-To: References: Message-ID: I create a ticket, and a package for sample. https://github.com/mapserver/mapserver/issues/4733 Thx, Andrea. 2013/8/14 thomas bonfort > Andrea, > - what GEOS version do you have installed ? > - please open a ticket for this. If you want me to look into it, > please prepare a self-contained test case (including a spatialite db > and mapfile) and mail it to me or link to it from the ticket. > > -- > thomas > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Aug 14 07:28:18 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 14 Aug 2013 16:28:18 +0200 Subject: [mapserver-users] MapServer 6.4.0-beta1 release - Please test! Message-ID: The MapServer Team is pleased to announce the release of MapServer 6.4.0-beta1. This is the first beta on our way to a final 6.4 release, that we are targeting for mid-September before FOSS4G. This new release introduces a number of new functionalities and a major change to the build system, using cmake instead of the previous autoconf. The INSTALL.CMAKE file (https://github.com/mapserver/mapserver/blob/rel-6-4-0-beta1/INSTALL.CMAKE) should get you started, please bring up any issues you may have if those instructions need expanding. Here is a quick list of RFCs documenting some of the new features or important changes in 6.4. - RFC100: Add support for raster tile index with tiles of mixed SRS (TILESRS keyword) - RFC94: Shape Smoothing - RFC95 : add EXPRESSION {value1,value2,...} support to parser (#4648) - RFC92: Migration from autotools to cmake (#4617) - RFC88: Saving MapServer Objects to Strings (#4563) - RFC90: Enable/Disable Layers in OGC Web Services by IP Lists - RFC85,89 Added Simplify,SimplityPT and Generalize geomtransform, implementation of geomtransform at the layer level - RFC86: Scale-dependant token replacements (#4538) - Fix symbol scaling for vector symbols with no height (#4497,#3511) - Implementation of layer masking for WCS coverages (#4469) - Implementation of offsets on follow labels (#4399) (RFCs are available online at http://mapserver.org/development/rfc/) The complete changelog is available at http://mapserver.org/development/changelog/changelog-6-4.html We have started working on a 6.2 -> 6.4 migration guide. This document contains important notes on backwards incompatibilities or other changes required when upgrading to 6.4. http://www.mapserver.org/trunk/MIGRATION_GUIDE.html The source for this release can be downloaded at: http://mapserver.org/download.html or http://download.osgeo.org/mapserver/mapserver-6.4.0-beta1.tar.gz The binary distributions listed in the download page should be updated with binaries for the new 6.4.0-beta1 release in the next day or so. Once again we need your help to ensure a high quality product, so please help out by testing your applications with this new code base. Thanks! - The MapServer Team From luis.a.de.sousa at gmail.com Wed Aug 14 08:19:00 2013 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Wed, 14 Aug 2013 08:19:00 -0700 (PDT) Subject: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04 In-Reply-To: References: Message-ID: <1376493540168-5072538.post@n6.nabble.com> Hi Jessica, thank you for the reply. Those segmentation fault messages were being issued even when no requests were made. The only way to stop it was to remove the ScribeUI config file from sites-enabled. I believe there is something going wrong with the cgi. Beyond diving into the code, is there any other easy way of debugging? Lu?s -- View this message in context: http://osgeo-org.1560.x6.nabble.com/ScribeUI-Possible-segmentation-fault-on-Ubuntu-12-04-tp5072423p5072538.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Wed Aug 14 08:52:27 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 14 Aug 2013 17:52:27 +0200 Subject: [mapserver-users] MapServer 6.4.0-beta1 release - Please test! In-Reply-To: References: Message-ID: I forgot to add two important features present in 6.4: - RFC 101: Add Support for Content Dependant Legend Rendering - Enable librsvg as an alternative to libsvg-cairo for SVG symbol rendering (note that librsvg is GPL, distributors of a librsvg enabled mapserver will need to comply with the GPL) regards, thomas On 14 August 2013 16:28, thomas bonfort wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.4.0-beta1. This is the first beta on our way to a final 6.4 release, > that we are targeting for mid-September before FOSS4G. > > This new release introduces a number of new functionalities and a > major change to the build system, using cmake instead of the previous > autoconf. The INSTALL.CMAKE file > (https://github.com/mapserver/mapserver/blob/rel-6-4-0-beta1/INSTALL.CMAKE) > should get you started, please bring up any issues you may have if > those instructions need expanding. > > Here is a quick list of RFCs documenting some of the new features or > important changes in 6.4. > > - RFC100: Add support for raster tile index with tiles of mixed SRS > (TILESRS keyword) > - RFC94: Shape Smoothing > - RFC95 : add EXPRESSION {value1,value2,...} support to parser (#4648) > - RFC92: Migration from autotools to cmake (#4617) > - RFC88: Saving MapServer Objects to Strings (#4563) > - RFC90: Enable/Disable Layers in OGC Web Services by IP Lists > - RFC85,89 Added Simplify,SimplityPT and Generalize geomtransform, > implementation of geomtransform at the layer level > - RFC86: Scale-dependant token replacements (#4538) > - Fix symbol scaling for vector symbols with no height (#4497,#3511) > - Implementation of layer masking for WCS coverages (#4469) > - Implementation of offsets on follow labels (#4399) > > (RFCs are available online at http://mapserver.org/development/rfc/) > > The complete changelog is available at > http://mapserver.org/development/changelog/changelog-6-4.html > > We have started working on a 6.2 -> 6.4 migration guide. This document > contains important notes on backwards incompatibilities or other > changes required when upgrading to 6.4. > > http://www.mapserver.org/trunk/MIGRATION_GUIDE.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.4.0-beta1.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new 6.4.0-beta1 release in the next day or so. > > Once again we need your help to ensure a high quality product, so > please help out by testing your applications with this new code base. > > Thanks! - The MapServer Team From jlapointe at mapgears.com Wed Aug 14 09:21:34 2013 From: jlapointe at mapgears.com (Jessica Lapointe) Date: Wed, 14 Aug 2013 12:21:34 -0400 Subject: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04 In-Reply-To: <1376493540168-5072538.post@n6.nabble.com> References: <1376493540168-5072538.post@n6.nabble.com> Message-ID: Hi Luis, ScribeUI uses the flask framework, and this url might help: http://flask.pocoo.org/docs/deploying/mod_wsgi/ In particular, this part: "If you encounter segfaulting child processes after the first apache reload you can safely ignore them. Just restart the server." Did you try restarting apache ? About the logs, when python fails, it outputs to the apache2 error logs. That leads me to think no python is actually executed and we have an error earlier than that. The apache config only define a few alias, those are quite passive and should not crash apache. I think this is unlikely to change anything, but you could try putting the config in your virtual host, I appended an example at the end of this email. Thanks, Jessica ServerAdmin webmaster at localhost WSGIScriptAlias /ScribeUI /opt/apps/ScribeUI/application/runserver.py AddType text/html .py Order deny,allow Allow from all Alias /ScribeUI/download/ "/opt/apps/ScribeUI/application/www/" AllowOverride None Options Indexes FollowSymLinks Multiviews Order allow,deny Allow from all On Wed, Aug 14, 2013 at 11:19 AM, Lu?s de Sousa wrote: > Hi Jessica, thank you for the reply. > > Those segmentation fault messages were being issued even when no requests > were made. The only way to stop it was to remove the ScribeUI config file > from sites-enabled. I believe there is something going wrong with the cgi. > > Beyond diving into the code, is there any other easy way of debugging? > > Lu?s > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/ScribeUI-Possible-segmentation-fault-on-Ubuntu-12-04-tp5072423p5072538.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 Robert.Burgholzer at deq.virginia.gov Thu Aug 15 07:51:59 2013 From: Robert.Burgholzer at deq.virginia.gov (Burgholzer, Robert (DEQ)) Date: Thu, 15 Aug 2013 14:51:59 +0000 Subject: [mapserver-users] find_srid of a complex join DATA statement in postgresql layer Message-ID: <77F5F8FA4B407F43BFCFD3FC347896914CBEED@COVMSGCES-MBX01> I have a join query that is used to fuel a DATA statement, and it works on the command line, and inside of mapserver as it is grabbing the data, but when it goes to rendering the final geometry it fails because it cannot seem to determine what table name to look for in the find_srid statement: find_srid('','(select','poly_geom') . Am I running up against some complexity limitation of mapserver, or making some mistake in my DATA query? DATA "poly_geom FROM (select foo.poly_geom, foo.elemname,foo.elementid, foo.dataval as dataval_%runid1%, bar.dataval as dataval_%runid2%, round(((bar.dataval - foo.dataval) / foo.dataval)::numeric,4) as delta_pct from (select a.poly_geom, b.elementid, a.scenarioid, a.elemname, a.custom1, a.custom2, b.runid, b.dataname, b.dataval, b.datatext from scen_model_element as a left outer join scen_model_run_data as b on ( a.elementid = b.elementid) left outer join scen_model_element as c on (c.scenarioid = %pscen% and c.custom1 in ('cova_ws_subnodal', 'cova_ws_container') and contains(c.poly_geom,a.point_geom) ) where a.scenarioid = %nscen% and b.runid = %runid1% and b.dataname = '%dataname1%' ) AS foo, (select d.poly_geom, e.elementid, d.scenarioid, d.elemname, d.custom1, d.custom2, e.runid, e.dataname, e.dataval, e.datatext from scen_model_element as d left outer join scen_model_run_data as e on ( d.elementid = e.elementid) left outer join scen_model_element as f on (f.scenarioid = %pscen% and f.custom1 in ('cova_ws_subnodal', 'cova_ws_container') and contains(f.poly_geom,d.point_geom) ) where d.scenarioid = %nscen% and e.runid = %runid2% and e.dataname = '%dataname2%' ) AS bar where foo.elementid = bar.elementid ) AS foobar USING UNIQUE elementid" Robert Burgholzer Surface Water Modeler Virginia DEQ Office of Surface and Ground Water Supply 804-869-3066 -------------- next part -------------- An HTML attachment was scrubbed... URL: From luis.a.de.sousa at gmail.com Fri Aug 16 05:26:34 2013 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Fri, 16 Aug 2013 05:26:34 -0700 (PDT) Subject: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04 In-Reply-To: References: <1376493540168-5072538.post@n6.nabble.com> Message-ID: <1376655994777-5072841.post@n6.nabble.com> Hi again Jessica, After a second restart the server seems to be back to normal and I can now load the main ScribeUI page. That was a good tip, thanks. Unfortunately ScribeUI is trying to load a heap of assets from localhost/static, which does not exist at this stage. Should I map an alias from there to /opt/ScribeUI/application/static? Thanks. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/ScribeUI-Possible-segmentation-fault-on-Ubuntu-12-04-tp5072423p5072841.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jlapointe at mapgears.com Fri Aug 16 07:20:26 2013 From: jlapointe at mapgears.com (Jessica Lapointe) Date: Fri, 16 Aug 2013 10:20:26 -0400 Subject: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04 In-Reply-To: <1376655994777-5072841.post@n6.nabble.com> References: <1376493540168-5072538.post@n6.nabble.com> <1376655994777-5072841.post@n6.nabble.com> Message-ID: Hi Luis, There shouldn't be a need for a new alias. What does your runserver.wsgi and config.py files look like ? Do you access the app from localhost/ScribeUI or another url ? Thanks, Jessica On Fri, Aug 16, 2013 at 8:26 AM, Lu?s de Sousa wrote: > Hi again Jessica, > > After a second restart the server seems to be back to normal and I can now > load the main ScribeUI page. That was a good tip, thanks. > > Unfortunately ScribeUI is trying to load a heap of assets from > localhost/static, which does not exist at this stage. Should I map an alias > from there to /opt/ScribeUI/application/static? > > Thanks. > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/ScribeUI-Possible-segmentation-fault-on-Ubuntu-12-04-tp5072423p5072841.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 gaohawk at gmail.com Sat Aug 17 19:59:42 2013 From: gaohawk at gmail.com (Shawn Gao) Date: Sun, 18 Aug 2013 10:59:42 +0800 Subject: [mapserver-users] Create imageObject failed in python binding. Message-ID: Hi, All, Official document on mapserver site said use following way to create an imageObject instance in python. look at this link new imageObj( int width, int height [, outputFormatObj format=NULL [, string filename=NULL ] ] ) : imageObj So I create imageObject in Python by this, mapscript.imageObj(100,100,"GD/PNG", ' http://mapserver.org/_static/banner.png') But get error, "Segmentation fault (core dumped)". Then I check the test case of python binding. The test case for imageObject is in imagetest.py. I try it firstly. Then many cases failed, include the case for create imageObject instance. I found the create method in test script is in other way. def testConstructorUrlStream(self): """imageObj with a URL stream works""" url = urllib.urlopen('http://mapserver.org/_static/banner.png') imgobj = mapscript.imageObj(url, 'GD/JPEG') assert imgobj.thisown == 1 assert imgobj.height == 68 assert imgobj.width == 439 imgobj.save('testConstructorUrlStream.jpg') What's the correct way to create an imageObject from url or file? Thanks, Shawn -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at gmail.com Mon Aug 19 00:45:43 2013 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Mon, 19 Aug 2013 09:45:43 +0200 Subject: [mapserver-users] Create imageObject failed in python binding. In-Reply-To: References: Message-ID: Shawn, I have briefly checked the python mapscript sources and I am afraid the you might have hit a bug. Python mapscript has a special, more pythonic imageObj constructor which seems to depend heavily on GD code and that possibily explains the error you are experiencing. Would you mind opening an issue at: https://github.com/mapserver/mapserver/issues/new Please state the mapserver version and, if built from sources, the options used. It would greatly speed up the resolution process if you could build mapserver/mapscript from the git sources. BR, Umberto On Sun, Aug 18, 2013 at 4:59 AM, Shawn Gao wrote: > Hi, All, > > Official document on mapserver site said use following way to create an > imageObject instance in python. look at this link > > new imageObj( int width, int height [, outputFormatObj format=NULL > [, string filename=NULL ] ] ) : imageObj > > So I create imageObject in Python by this, > > mapscript.imageObj(100,100,"GD/PNG", ' > http://mapserver.org/_static/banner.png') > > But get error, "Segmentation fault (core dumped)". > > Then I check the test case of python binding. The test case for > imageObject is in imagetest.py. I try it firstly. Then many cases failed, > include the case for create imageObject instance. I found the create method > in test script is in other way. > > def testConstructorUrlStream(self): > """imageObj with a URL stream works""" > url = urllib.urlopen('http://mapserver.org/_static/banner.png') > imgobj = mapscript.imageObj(url, 'GD/JPEG') > assert imgobj.thisown == 1 > assert imgobj.height == 68 > assert imgobj.width == 439 > imgobj.save('testConstructorUrlStream.jpg') > > > What's the correct way to create an imageObject from url or file? > > Thanks, > Shawn > > _______________________________________________ > 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 luis.a.de.sousa at gmail.com Mon Aug 19 06:52:21 2013 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Mon, 19 Aug 2013 06:52:21 -0700 (PDT) Subject: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04 In-Reply-To: References: <1376493540168-5072538.post@n6.nabble.com> <1376655994777-5072841.post@n6.nabble.com> Message-ID: <1376920341048-5073155.post@n6.nabble.com> Hi Jessica, you'll find below the contents of the files you ask plus the Apache config. Here's an example of an address ScirbeUI is trying to access that doesn't exist: http://localhost/static/css/reset.css I believe it should be: http://localhost/ScribeUI/static/css/reset.css But I can't see where this particular path could be configured. Thanks for helping, Lu?s #------------------------------------------------------------------------------ # config.py #Replace 0.0.0.0 with your server's ip or hostname #Examples: "127.0.0.1", "my.host.com" ip = "0.0.0.0" #------------------------------------------------------------------------------ # runserver.wsgi from runserver.py import app as application import sys #Replace with the path to the root of your scribeui installation #Example: /opt/ScribeUI/application/runserver.py sys.path.insert(0,'/opt/ScribeUI/application/runserver.py') WSGIScriptAlias /ScribeUI /opt/ScribeUI/application/runserver.py #------------------------------------------------------------------------------ # ScribeUI.conf #ScribeUI WSGIScriptAlias /ScribeUI /opt/ScribeUI/application/runserver.py AddType text/html .py Order deny,allow Allow from all Alias /ScribeUI/download/ "/opt/ScribeUI/application/www/" AllowOverride None Options Indexes FollowSymLinks Multiviews Order allow,deny Allow from all -- View this message in context: http://osgeo-org.1560.x6.nabble.com/ScribeUI-Possible-segmentation-fault-on-Ubuntu-12-04-tp5072423p5073155.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jlapointe at mapgears.com Mon Aug 19 07:16:42 2013 From: jlapointe at mapgears.com (Jessica Lapointe) Date: Mon, 19 Aug 2013 10:16:42 -0400 Subject: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04 In-Reply-To: <1376920341048-5073155.post@n6.nabble.com> References: <1376493540168-5072538.post@n6.nabble.com> <1376655994777-5072841.post@n6.nabble.com> <1376920341048-5073155.post@n6.nabble.com> Message-ID: Hi Luis, You are right that the url should be localhost/ScribeUI/static. In your config.py file, this ip = "0.0.0.0" should be the domain you access the app with, in your case, it should be ip = "localhost" After changing this the easiest way to see your changes instantly will be to restart apache, because otherwise mod_wsgi will not necessarily acknowledge your changes immediately. Thank you, Jessica On Mon, Aug 19, 2013 at 9:52 AM, Lu?s de Sousa wrote: > Hi Jessica, you'll find below the contents of the files you ask plus the > Apache config. > > Here's an example of an address ScirbeUI is trying to access that doesn't > exist: > > http://localhost/static/css/reset.css > > I believe it should be: > > http://localhost/ScribeUI/static/css/reset.css > > But I can't see where this particular path could be configured. > > Thanks for helping, > > Lu?s > > > #------------------------------------------------------------------------------ > # config.py > > #Replace 0.0.0.0 with your server's ip or hostname > #Examples: "127.0.0.1", "my.host.com" > ip = "0.0.0.0" > > > #------------------------------------------------------------------------------ > # runserver.wsgi > > from runserver.py import app as application > > import sys > > #Replace with the path to the root of your scribeui > installation > #Example: /opt/ScribeUI/application/runserver.py > > sys.path.insert(0,'/opt/ScribeUI/application/runserver.py') > > WSGIScriptAlias /ScribeUI /opt/ScribeUI/application/runserver.py > > > #------------------------------------------------------------------------------ > # ScribeUI.conf > > #ScribeUI > > WSGIScriptAlias /ScribeUI /opt/ScribeUI/application/runserver.py > AddType text/html .py > > Order deny,allow > Allow from all > > > Alias /ScribeUI/download/ "/opt/ScribeUI/application/www/" > > AllowOverride None > Options Indexes FollowSymLinks Multiviews > Order allow,deny > Allow from all > > > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/ScribeUI-Possible-segmentation-fault-on-Ubuntu-12-04-tp5072423p5073155.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 luis.a.de.sousa at gmail.com Tue Aug 20 00:40:12 2013 From: luis.a.de.sousa at gmail.com (=?ISO-8859-1?Q?Lu=EDs_de_Sousa?=) Date: Tue, 20 Aug 2013 09:40:12 +0200 Subject: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04 In-Reply-To: References: <1376493540168-5072538.post@n6.nabble.com> <1376655994777-5072841.post@n6.nabble.com> <1376920341048-5073155.post@n6.nabble.com> Message-ID: On 19 August 2013 16:16, Jessica Lapointe wrote: > Hi Luis, > > You are right that the url should be localhost/ScribeUI/static. > In your config.py file, this ip = "0.0.0.0" should be the domain you > access the app with, in your case, it should be ip = "localhost" > Hi again Jessica, I tried with "localhost" and "localhost/ScribeUI", but in both cases it tries to load the css and js files from "localhost/static". Thanks, Lu?s -------------- next part -------------- An HTML attachment was scrubbed... URL: From freimuth69 at gmail.com Tue Aug 20 16:26:04 2013 From: freimuth69 at gmail.com (Peter Freimuth) Date: Tue, 20 Aug 2013 17:26:04 -0600 Subject: [mapserver-users] cgi variable substituition in DATA statement Message-ID: <5213FB0C.5030101@gmail.com> Hi, i am trying to get the dynamic variable substitution work on Mapserver 6.3dev but somehow it does'nt work as it worked before and as documented. When i execute http://10.10.4.18/cgi-bin/LI_USA-MT.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,-115.666914&CRS=EPSG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE&STARTDATE=2011-01-01&ENDDATE=2013-09-01 or http://10.10.4.18/cgi-bin/LI_USA-MT.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,-115.666914&CRS=EPSG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE I get an error in msDrawMap(): Image handling error. Failed to draw layer named 'data_view'. msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: invalid input syntax for type date: "%STARTDATE%" LINE 8: ... (((acquisition_date >= date_trunc('day',date '%STARTDAT... ^ So the substitution does not happen or the default is not applied. Any hint on what i am doing wrong would be great. See below the components from the mapfile: MAP ..... # # Start of web interface definition # DATAPATTERN '^[a-zA-Z0-9\-\_\,]+$' WEB IMAGEPATH "/mnt/mapserver/mapserver_wms/geocloud_config/image_path" METADATA ..... 'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' 'default_PRODUCTID' '1234567' 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' 'default_CONTRACT_IDS' '0000' 'STARTDATE_validation_pattern' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' 'default_STARTDATE' '2011-01-01' 'ENDDATE_validation_pattern' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' 'default_END_DATE' '2013-09-01' END VALIDATION 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' 'CONTRACTIDS' '^[a-zA-Z0-9\-\_\,]+$' 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' 'ENDDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' END END ..... LAYER # this is the tileindex that aggregates the single image products together and makes them accessible for the RASTER LAYER "data_view" and "data_raw" for rendering NAME "data_idx" STATUS ON DEBUG 5 UNITS dd TYPE POLYGON EXTENT -116.364631680367 44.1932837062986 -103.698350095065 49.1892799088128 PROCESSING "CLOSE_CONNECTION=DEFER" CONNECTIONTYPE POSTGIS CONNECTION "user=***** password=***** dbname=***** host='*****' port=5432" DATA "wkb_geom FROM (SELECT t1.* FROM (SELECT re3aip.cat_id as archived_in_archiving_identifier, ico.image_id, ico.acquisition_date, re3aip.tile_id, ico.product_provider_image_identifier, re3aip.ohs_order_id, re3aip.imagetake_cat_id, ico.epsg_code, re3aip.ohs_contract_id, ico.service_name, ico.footprint_poly::geometry as wkb_geom, ico.image_location, ico.vrt_location FROM ows.imagepool_catalogue_ows ico JOIN ows.re_l3a_imagepool re3aip ON (re3aip.image_id=ico.image_id) WHERE ico.service_name in ('LI_USA-MT') AND (((acquisition_date >= date_trunc('day',date '%STARTDATE%') AND acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 day'))) AND re3aip.ohs_contract_id in ('%CONTRACTID%') ) t1 LEFT OUTER JOIN (SELECT ico.image_id, ico.acquisition_date, re3aip.tile_id FROM ows.imagepool_catalogue_ows ico JOIN ows.re_l3a_imagepool re3aip ON (re3aip.image_id=ico.image_id) WHERE ico.service_name in ('LI_USA-MT') AND (((acquisition_date >= date_trunc('day',date '%STARTDATE%') AND acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 day'))) AND re3aip.ohs_contract_id in ('%CONTRACTID%') ) t2 ON t1.tile_id = t2.tile_id AND ((t1.acquisition_date < t2.acquisition_date) OR (t1.acquisition_date = t2.acquisition_date AND t1.image_id < t2.image_id)) WHERE t2.tile_id is NULL ORDER BY t1.ohs_contract_id, t1.tile_id ) foo USING UNIQUE image_id USING SRID=4326" #FILTER ( '[product_provider_image_identifier]'='%PRODUCTID%') PROJECTION "init=epsg:4326" END METADATA "ows_title" "Data Index" "ows_extent" "-116.364631680367 44.1932837062986 -103.698350095065 49.1892799088128" #'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' #'default_PRODUCTID' '1234567' 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' 'default_CONTRACTIDS' '0000' 'STARTDATE_validation_pattern' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' 'default_STARTDATE' '2011-01-01' 'ENDDATE_validation_pattern' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' 'default_ENDDATE' '2013-09-01' #disable explicitly everything that shall not be supported for this Layer "wms_enable_request" "!GetCapabilities !GetMap !GetLegendgraphic" "wcs_enable_request" "!GetCapabilities !GetCoverage !DescribeCoverage" "wfs_enable_request" "!GetCapabilities !GetFeature !DescribeFeatureType" END VALIDATION 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' 'CONTRACT_IDS' '^[a-zA-Z0-9\-\_\,]+$' 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' 'END_DATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' END END .... END From thomas.bonfort at gmail.com Tue Aug 20 16:35:40 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 21 Aug 2013 01:35:40 +0200 Subject: [mapserver-users] cgi variable substituition in DATA statement In-Reply-To: <5213FB0C.5030101@gmail.com> References: <5213FB0C.5030101@gmail.com> Message-ID: try setting your VALIDATIONs to '.*' to see if your problem lies in your regex or elsewhere. For 6.3/4 You can also remove your xxx_validation_pattern metadata entries, and should move the default_xxx ones into the VALIDATION block. -- thomas On 21 August 2013 01:26, Peter Freimuth wrote: > Hi, > i am trying to get the dynamic variable substitution work on Mapserver > 6.3dev but somehow it does'nt work as it worked before and as documented. > When i execute > http://10.10.4.18/cgi-bin/LI_USA-MT.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,-115.666914&CRS=EPSG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE&STARTDATE=2011-01-01&ENDDATE=2013-09-01 > > or > > http://10.10.4.18/cgi-bin/LI_USA-MT.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,-115.666914&CRS=EPSG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE > > I get an error in > msDrawMap(): Image handling error. Failed to draw layer named 'data_view'. > msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: > invalid input syntax for type date: "%STARTDATE%" > LINE 8: ... (((acquisition_date >= date_trunc('day',date '%STARTDAT... > ^ > So the substitution does not happen or the default is not applied. > Any hint on what i am doing wrong would be great. > > See below the components from the mapfile: > > MAP > ..... > # > # Start of web interface definition > # > DATAPATTERN '^[a-zA-Z0-9\-\_\,]+$' > > WEB > IMAGEPATH "/mnt/mapserver/mapserver_wms/geocloud_config/image_path" > METADATA > ..... > 'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' > 'default_PRODUCTID' '1234567' > 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' > 'default_CONTRACT_IDS' '0000' > 'STARTDATE_validation_pattern' > '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > 'default_STARTDATE' '2011-01-01' > 'ENDDATE_validation_pattern' > '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > 'default_END_DATE' '2013-09-01' > END > VALIDATION > 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' > 'CONTRACTIDS' '^[a-zA-Z0-9\-\_\,]+$' > 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > 'ENDDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > END > END > ..... > LAYER > # this is the tileindex that aggregates the single image products > together and makes them accessible for the RASTER LAYER "data_view" and > "data_raw" for rendering > NAME "data_idx" > STATUS ON > DEBUG 5 > UNITS dd > TYPE POLYGON > EXTENT -116.364631680367 44.1932837062986 -103.698350095065 > 49.1892799088128 > PROCESSING "CLOSE_CONNECTION=DEFER" > CONNECTIONTYPE POSTGIS > CONNECTION "user=***** password=***** dbname=***** host='*****' > port=5432" > DATA "wkb_geom FROM (SELECT t1.* FROM (SELECT re3aip.cat_id as > archived_in_archiving_identifier, ico.image_id, ico.acquisition_date, > re3aip.tile_id, > ico.product_provider_image_identifier, re3aip.ohs_order_id, > re3aip.imagetake_cat_id, ico.epsg_code, > re3aip.ohs_contract_id, ico.service_name, > ico.footprint_poly::geometry as wkb_geom, ico.image_location, > ico.vrt_location > FROM ows.imagepool_catalogue_ows ico > JOIN ows.re_l3a_imagepool re3aip ON (re3aip.image_id=ico.image_id) > WHERE ico.service_name in ('LI_USA-MT') AND > (((acquisition_date >= date_trunc('day',date '%STARTDATE%') AND > acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 day'))) > AND > re3aip.ohs_contract_id in ('%CONTRACTID%') > ) t1 > LEFT OUTER JOIN > (SELECT ico.image_id, ico.acquisition_date, re3aip.tile_id > FROM ows.imagepool_catalogue_ows ico > JOIN ows.re_l3a_imagepool re3aip ON (re3aip.image_id=ico.image_id) > WHERE ico.service_name in ('LI_USA-MT') AND > (((acquisition_date >= date_trunc('day',date > '%STARTDATE%') AND > acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 day'))) > AND > re3aip.ohs_contract_id in ('%CONTRACTID%') > ) t2 > ON > t1.tile_id = t2.tile_id AND > ((t1.acquisition_date < t2.acquisition_date) OR > (t1.acquisition_date = t2.acquisition_date AND t1.image_id < t2.image_id)) > WHERE t2.tile_id is NULL > ORDER BY t1.ohs_contract_id, t1.tile_id > ) foo USING UNIQUE image_id USING > SRID=4326" > #FILTER ( '[product_provider_image_identifier]'='%PRODUCTID%') > PROJECTION > "init=epsg:4326" > END > METADATA > "ows_title" "Data Index" > "ows_extent" "-116.364631680367 44.1932837062986 > -103.698350095065 49.1892799088128" > #'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' > #'default_PRODUCTID' '1234567' > 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' > 'default_CONTRACTIDS' '0000' > 'STARTDATE_validation_pattern' > '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > 'default_STARTDATE' '2011-01-01' > 'ENDDATE_validation_pattern' > '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > 'default_ENDDATE' '2013-09-01' > #disable explicitly everything that shall not be supported for > this Layer > "wms_enable_request" "!GetCapabilities !GetMap > !GetLegendgraphic" > "wcs_enable_request" "!GetCapabilities !GetCoverage > !DescribeCoverage" > "wfs_enable_request" "!GetCapabilities !GetFeature > !DescribeFeatureType" > END > VALIDATION > 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' > 'CONTRACT_IDS' '^[a-zA-Z0-9\-\_\,]+$' > 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > 'END_DATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > END > END > .... > END > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From steve.toutant at inspq.qc.ca Wed Aug 21 03:09:06 2013 From: steve.toutant at inspq.qc.ca (steve.toutant at inspq.qc.ca) Date: Wed, 21 Aug 2013 10:09:06 +0000 Subject: [mapserver-users] Message could not be delivered Message-ID: The original message was received at Wed, 21 Aug 2013 10:09:06 +0000 from inspq.qc.ca [28.255.162.8] ----- The following addresses had permanent fatal errors ----- mapserver-users at lists.osgeo.org -------------- next part -------------- A non-text attachment was scrubbed... Name: transcript.scr Type: application/octet-stream Size: 28864 bytes Desc: not available URL: From MarkVolz at co.lyon.mn.us Wed Aug 21 06:04:19 2013 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Wed, 21 Aug 2013 13:04:19 +0000 Subject: [mapserver-users] MapServer query template questions - shpmidx, shpmidy Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA31E73B4@swmail01.r8nssis.local> Hello, 1) I was not entirely clear as to if shpmidx, shpmidy, and other MapServer query functions return coordinates in the source projection or map projection. Which is correct? 2) Is there an (easy) way to get the coordinates represented in latitude and longitude similar to how map geometry will return both [mapx] and [maplon]? 3) I assume that we can control the number of decimal places returned similar to [item name="AcresDeed" precision=2] is that correct? Thanks Mark Volz, GISP GIS Specialist From jlapointe at mapgears.com Wed Aug 21 07:14:43 2013 From: jlapointe at mapgears.com (Jessica Lapointe) Date: Wed, 21 Aug 2013 10:14:43 -0400 Subject: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04 In-Reply-To: References: <1376493540168-5072538.post@n6.nabble.com> <1376655994777-5072841.post@n6.nabble.com> <1376920341048-5073155.post@n6.nabble.com> Message-ID: Hi Luis, I was finally able to reproduce your problem. For now, you should access your scribeUI application using : http://localhost/ScribeUI/ The trailing slash at the end is very important. I am currently looking for a way to adjust the configuration so that both url work. What happens here is that since the alias scribeui refers to a python file, apache will not treat it as a directory unless the trailing slash is present. I'll keep you updated and will edit the installation instructions for the app once I find a fix for this. Thanks a lot, Jessica On Tue, Aug 20, 2013 at 3:40 AM, Lu?s de Sousa wrote: > On 19 August 2013 16:16, Jessica Lapointe wrote: >> >> Hi Luis, >> >> You are right that the url should be localhost/ScribeUI/static. >> In your config.py file, this ip = "0.0.0.0" should be the domain you >> access the app with, in your case, it should be ip = "localhost" > > > Hi again Jessica, > > I tried with "localhost" and "localhost/ScribeUI", but in both cases it > tries to load the css and js files from "localhost/static". > > Thanks, > > Lu?s From arwesley at web.de Wed Aug 21 07:28:38 2013 From: arwesley at web.de (Arthur Wesley) Date: Wed, 21 Aug 2013 16:28:38 +0200 Subject: [mapserver-users] WMS Time / Raster - Performance Question Message-ID: <000601ce9e7a$ba40a300$2ec1e900$@web.de> Hey MapserverCommunity, at first thanks for your great work. We are using mapserver to publish a big amount of historic raster images (tiff) for different timestamp. Together with a postgis timeindex this works basically great, so thanks again :) Unfortunately we are now facing some performance issues. Probably due to our big amount of Gtiffs (uncompressed 1,9 TB). To boost performance, we already did some upgrade on the tiff file scale (intern tiling/overviews). But on higher scales I didn't find a good solution yet. Normally I would compute a VRT on higher scales and add some overviews to it. But because of the time dimension of our data, I didn't found an approach to get this working yet. So now I am thinking about different approaches to boost the performance of our WMS-Time layer (at the end over one layer we want to publish 6000 gtiffs scattered on 100 timestamps). It would be nice if some folks of you could give us some advice or simply share some knowledge and experiences about this kind of issue with us. One approach over which I was thinking is the using of mapcache. I heard that mapcache ( http://mapserver.org/development/rfc/ms-rfc-96.html) is trying to support the time dimension. But it's not clear for me right know, how to set up the time support? Is it possible to configure a time layer in the mapcache.xml and simply do than a seeding (mapcache_seed) of a wms-time layer? Another approach over which I was thinking is the using of a wrapper script. I could preprocess single layers for all 100 timestamps and compute than VRTs and overviews. After that I could simply redirect the GetMap-Request on the basis of the timestamp to the correct layers. But I am not sure if this approach is a smart way and probably I would run in other problems in the future. Are there any other good approaches? Kind regards, JM -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Aug 21 07:33:46 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 21 Aug 2013 14:33:46 +0000 Subject: [mapserver-users] MapServer query template questions - shpmidx, shpmidy In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA31E73B4@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA31E73B4@swmail01.r8nssis.local> Message-ID: 1) layer source projection, 2) yes, use shpxy tag w/projection argument. You must define the layer projection, 3) yes ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Mark Volz [MarkVolz at co.lyon.mn.us] Sent: Wednesday, August 21, 2013 8:04 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapServer query template questions - shpmidx, shpmidy Hello, 1) I was not entirely clear as to if shpmidx, shpmidy, and other MapServer query functions return coordinates in the source projection or map projection. Which is correct? 2) Is there an (easy) way to get the coordinates represented in latitude and longitude similar to how map geometry will return both [mapx] and [maplon]? 3) I assume that we can control the number of decimal places returned similar to [item name="AcresDeed" precision=2] is that correct? Thanks Mark Volz, GISP GIS Specialist _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Wed Aug 21 08:27:23 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 21 Aug 2013 17:27:23 +0200 Subject: [mapserver-users] MapServer 6.4 beta2 released Message-ID: The MapServer Team is pleased to announce the release of MapServer 6.4.0 beta2. This is the second beta on our way to a final 6.4 release, and contains several fixes that we encourage you to test. Due to a conflict between MapServer's and OGR's usage of the GEOS library, we now require that at least version 3.1.0 of GEOS be used if needed. We currently have no blocking issues, so depending on this feedback phase our next release might hopefully be a RC. The changelog since beta1 can be consulted here: http://mapserver.org/development/changelog/changelog-6-4.html#changelog-6-4-beta2 The source for this release can be downloaded at: http://mapserver.org/download.html or http://download.osgeo.org/mapserver/mapserver-6.4.0-beta2.tar.gz The binary distributions listed in the download page should be updated with binaries for the new 6.4.0-beta2 release in the next couple of days. Once again we need your help to ensure a high quality product, so please help out by testing your applications with this new code base. Thanks! - The MapServer Team From freimuth69 at gmail.com Wed Aug 21 10:43:47 2013 From: freimuth69 at gmail.com (Peter Freimuth) Date: Wed, 21 Aug 2013 11:43:47 -0600 Subject: [mapserver-users] cgi variable substituition in DATA statement In-Reply-To: References: <5213FB0C.5030101@gmail.com> Message-ID: <5214FC53.6070409@gmail.com> Hi Thomas, thanks for the hints. I compiled 6.4beta2 this morning and applied the proposed changes but the behaviour keeps the same. The substitution is just not done. I changed the VALIDATION block on map and layer level to below and also using now DATAPATTERN '.*' on map level. VALIDATION #'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' #'CONTRACTIDS' '^[a-zA-Z0-9\-\_\,]+$' #'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' #'ENDDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' 'PRODUCTID' '.*' 'CONTRACTIDS' '.*' 'STARTDATE' '.*' 'ENDDATE' '.*' 'default_PRODUCTID' '1234567' 'default_CONTRACTIDS' 'GDNAMLI-USA-MT' 'default_STARTDATE' '2011-01-01' 'default_ENDDATE' '2013-09-01' END It seems that the mechanismn is not working at all and i cannot find anything in the logs even with debug level 5. Any further idea? Thanks, Peter On 20/08/2013 5:35 PM, thomas bonfort wrote: > try setting your VALIDATIONs to '.*' to see if your problem lies in > your regex or elsewhere. For 6.3/4 You can also remove your > xxx_validation_pattern metadata entries, and should move the > default_xxx ones into the VALIDATION block. > > -- > thomas > > On 21 August 2013 01:26, Peter Freimuth wrote: >> Hi, >> i am trying to get the dynamic variable substitution work on Mapserver >> 6.3dev but somehow it does'nt work as it worked before and as documented. >> When i execute >> http://10.10.4.18/cgi-bin/LI_USA-MT.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,-115.666914&CRS=EPSG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE&STARTDATE=2011-01-01&ENDDATE=2013-09-01 >> >> or >> >> http://10.10.4.18/cgi-bin/LI_USA-MT.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,-115.666914&CRS=EPSG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE >> >> I get an error in >> msDrawMap(): Image handling error. Failed to draw layer named 'data_view'. >> msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: >> invalid input syntax for type date: "%STARTDATE%" >> LINE 8: ... (((acquisition_date >= date_trunc('day',date '%STARTDAT... >> ^ >> So the substitution does not happen or the default is not applied. >> Any hint on what i am doing wrong would be great. >> >> See below the components from the mapfile: >> >> MAP >> ..... >> # >> # Start of web interface definition >> # >> DATAPATTERN '^[a-zA-Z0-9\-\_\,]+$' >> >> WEB >> IMAGEPATH "/mnt/mapserver/mapserver_wms/geocloud_config/image_path" >> METADATA >> ..... >> 'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >> 'default_PRODUCTID' '1234567' >> 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >> 'default_CONTRACT_IDS' '0000' >> 'STARTDATE_validation_pattern' >> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'default_STARTDATE' '2011-01-01' >> 'ENDDATE_validation_pattern' >> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'default_END_DATE' '2013-09-01' >> END >> VALIDATION >> 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' >> 'CONTRACTIDS' '^[a-zA-Z0-9\-\_\,]+$' >> 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'ENDDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> END >> END >> ..... >> LAYER >> # this is the tileindex that aggregates the single image products >> together and makes them accessible for the RASTER LAYER "data_view" and >> "data_raw" for rendering >> NAME "data_idx" >> STATUS ON >> DEBUG 5 >> UNITS dd >> TYPE POLYGON >> EXTENT -116.364631680367 44.1932837062986 -103.698350095065 >> 49.1892799088128 >> PROCESSING "CLOSE_CONNECTION=DEFER" >> CONNECTIONTYPE POSTGIS >> CONNECTION "user=***** password=***** dbname=***** host='*****' >> port=5432" >> DATA "wkb_geom FROM (SELECT t1.* FROM (SELECT re3aip.cat_id as >> archived_in_archiving_identifier, ico.image_id, ico.acquisition_date, >> re3aip.tile_id, >> ico.product_provider_image_identifier, re3aip.ohs_order_id, >> re3aip.imagetake_cat_id, ico.epsg_code, >> re3aip.ohs_contract_id, ico.service_name, >> ico.footprint_poly::geometry as wkb_geom, ico.image_location, >> ico.vrt_location >> FROM ows.imagepool_catalogue_ows ico >> JOIN ows.re_l3a_imagepool re3aip ON (re3aip.image_id=ico.image_id) >> WHERE ico.service_name in ('LI_USA-MT') AND >> (((acquisition_date >= date_trunc('day',date '%STARTDATE%') AND >> acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 day'))) >> AND >> re3aip.ohs_contract_id in ('%CONTRACTID%') >> ) t1 >> LEFT OUTER JOIN >> (SELECT ico.image_id, ico.acquisition_date, re3aip.tile_id >> FROM ows.imagepool_catalogue_ows ico >> JOIN ows.re_l3a_imagepool re3aip ON (re3aip.image_id=ico.image_id) >> WHERE ico.service_name in ('LI_USA-MT') AND >> (((acquisition_date >= date_trunc('day',date >> '%STARTDATE%') AND >> acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 day'))) >> AND >> re3aip.ohs_contract_id in ('%CONTRACTID%') >> ) t2 >> ON >> t1.tile_id = t2.tile_id AND >> ((t1.acquisition_date < t2.acquisition_date) OR >> (t1.acquisition_date = t2.acquisition_date AND t1.image_id < t2.image_id)) >> WHERE t2.tile_id is NULL >> ORDER BY t1.ohs_contract_id, t1.tile_id >> ) foo USING UNIQUE image_id USING >> SRID=4326" >> #FILTER ( '[product_provider_image_identifier]'='%PRODUCTID%') >> PROJECTION >> "init=epsg:4326" >> END >> METADATA >> "ows_title" "Data Index" >> "ows_extent" "-116.364631680367 44.1932837062986 >> -103.698350095065 49.1892799088128" >> #'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >> #'default_PRODUCTID' '1234567' >> 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >> 'default_CONTRACTIDS' '0000' >> 'STARTDATE_validation_pattern' >> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'default_STARTDATE' '2011-01-01' >> 'ENDDATE_validation_pattern' >> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'default_ENDDATE' '2013-09-01' >> #disable explicitly everything that shall not be supported for >> this Layer >> "wms_enable_request" "!GetCapabilities !GetMap >> !GetLegendgraphic" >> "wcs_enable_request" "!GetCapabilities !GetCoverage >> !DescribeCoverage" >> "wfs_enable_request" "!GetCapabilities !GetFeature >> !DescribeFeatureType" >> END >> VALIDATION >> 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' >> 'CONTRACT_IDS' '^[a-zA-Z0-9\-\_\,]+$' >> 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'END_DATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> END >> END >> .... >> END >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From mmcinnis59 at msn.com Wed Aug 21 10:48:31 2013 From: mmcinnis59 at msn.com (Michael McInnis) Date: Wed, 21 Aug 2013 10:48:31 -0700 Subject: [mapserver-users] Draw PHP labels Message-ID: Dear mapservers! My map fails to draw when I attempt to add labels from my labelitem "icao". Any attempt at using the label objects causes failure. I think I need to create a label object somehow before I use set() but can't find any examples on line. // The following occurs near the bottom of my php code snippet and is commented to allow a successful draw. $oAirportsClass->label->set("size", 10); Can someone point me to a working example of drawing labels for a layer? Thanks // Layer 3 airports-------------------------------------------------------- // Point Symbol $nSymbolId = ms_newSymbolObj($oMap, "circle"); $oSymbol = $oMap->getsymbolobjectbyid($nSymbolId); $oSymbol->set("type", MS_SYMBOL_ELLIPSE); $oSymbol->set("filled", MS_TRUE); $aPoints[0] = 1; $aPoints[1] = 1; $oSymbol->setpoints($aPoints); // Layer $oLayerAirports = ms_newLayerObj($oMap); $oLayerAirports->setConnectionType(MS_POSTGIS); $oLayerAirports->set("name", "airports"); $oLayerAirports->set("type", MS_LAYER_POINT); $oLayerAirports->set("status", MS_DEFAULT); $oLayerAirports->set("labelitem", "icao"); //$oLayerAirports->set("classitem", "MyAirports"); $oLayerAirports->set("connection", "host=xxx port=xxxx dbname=xxxx user=xxxx password=xxxx"); $oLayerAirports->set("data", "geom From (select a.icao, geom From airports a left join airportdata e on a.icao = e.icao where e.icao Is Not Null) as subquery using unique icao using srid=4326"); // Class with Labels $oAirportsClass = ms_newClassObj($oLayerAirports); $oAirportsClass->set("name","MyAirports"); // Style $airportsStyle = ms_newStyleObj($oAirportsClass); $airportsStyle->color->setRGB(255, 22, 22); $airportsStyle->set("symbolname", "circle"); $airportsStyle->set("size", "3"); //$oAirportsClass->label->set("size", 10); //$oAirportsClass->label->color->setRGB(0,0,0); Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlapointe at mapgears.com Wed Aug 21 12:45:29 2013 From: jlapointe at mapgears.com (Jessica Lapointe) Date: Wed, 21 Aug 2013 15:45:29 -0400 Subject: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04 In-Reply-To: References: <1376493540168-5072538.post@n6.nabble.com> <1376655994777-5072841.post@n6.nabble.com> <1376920341048-5073155.post@n6.nabble.com> Message-ID: Hi Luis, I pushed a new version of the app that should fix the problem. You will get the update by doing git checkout v0.1.2 You won't need to do any changes to your config files, just checking out the version will do the trick. Thank you, Jessica On Wed, Aug 21, 2013 at 10:14 AM, Jessica Lapointe wrote: > Hi Luis, > > I was finally able to reproduce your problem. For now, you should > access your scribeUI application using : http://localhost/ScribeUI/ > The trailing slash at the end is very important. I am currently > looking for a way to adjust the configuration so that both url work. > What happens here is that since the alias scribeui refers to a python > file, apache will not treat it as a directory unless the trailing > slash is present. > > I'll keep you updated and will edit the installation instructions for > the app once I find a fix for this. > > Thanks a lot, > Jessica > > On Tue, Aug 20, 2013 at 3:40 AM, Lu?s de Sousa > wrote: >> On 19 August 2013 16:16, Jessica Lapointe wrote: >>> >>> Hi Luis, >>> >>> You are right that the url should be localhost/ScribeUI/static. >>> In your config.py file, this ip = "0.0.0.0" should be the domain you >>> access the app with, in your case, it should be ip = "localhost" >> >> >> Hi again Jessica, >> >> I tried with "localhost" and "localhost/ScribeUI", but in both cases it >> tries to load the css and js files from "localhost/static". >> >> Thanks, >> >> Lu?s From jukka.rahkonen at mmmtike.fi Wed Aug 21 14:03:11 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 21 Aug 2013 21:03:11 +0000 Subject: [mapserver-users] cgi variable substituition in DATA statement In-Reply-To: <5214FC53.6070409@gmail.com> References: <5213FB0C.5030101@gmail.com> , <5214FC53.6070409@gmail.com> Message-ID: <84446DEF76453C439E9E97E438E13A63022E0F08@suutari.haapa.mmm.fi> Hi, Blind guess, but perhaps quetes inside the SQL of you DATA leads to unexpected result AND (((acquisition_date >= date_trunc('day',date '%STARTDATE%') Make a try to write this as ________________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän Peter Freimuth [freimuth69 at gmail.com] puolesta L?hetetty: 21. elokuuta 2013 20:43 Vastaanottaja: thomas bonfort; mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] cgi variable substituition in DATA statement Hi Thomas, thanks for the hints. I compiled 6.4beta2 this morning and applied the proposed changes but the behaviour keeps the same. The substitution is just not done. I changed the VALIDATION block on map and layer level to below and also using now DATAPATTERN '.*' on map level. VALIDATION #'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' #'CONTRACTIDS' '^[a-zA-Z0-9\-\_\,]+$' #'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' #'ENDDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' 'PRODUCTID' '.*' 'CONTRACTIDS' '.*' 'STARTDATE' '.*' 'ENDDATE' '.*' 'default_PRODUCTID' '1234567' 'default_CONTRACTIDS' 'GDNAMLI-USA-MT' 'default_STARTDATE' '2011-01-01' 'default_ENDDATE' '2013-09-01' END It seems that the mechanismn is not working at all and i cannot find anything in the logs even with debug level 5. Any further idea? Thanks, Peter On 20/08/2013 5:35 PM, thomas bonfort wrote: > try setting your VALIDATIONs to '.*' to see if your problem lies in > your regex or elsewhere. For 6.3/4 You can also remove your > xxx_validation_pattern metadata entries, and should move the > default_xxx ones into the VALIDATION block. > > -- > thomas > > On 21 August 2013 01:26, Peter Freimuth wrote: >> Hi, >> i am trying to get the dynamic variable substitution work on Mapserver >> 6.3dev but somehow it does'nt work as it worked before and as documented. >> When i execute >> http://10.10.4.18/cgi-bin/LI_USA-MT.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,-115.666914&CRS=EPSG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE&STARTDATE=2011-01-01&ENDDATE=2013-09-01 >> >> or >> >> http://10.10.4.18/cgi-bin/LI_USA-MT.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,-115.666914&CRS=EPSG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE >> >> I get an error in >> msDrawMap(): Image handling error. Failed to draw layer named 'data_view'. >> msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: >> invalid input syntax for type date: "%STARTDATE%" >> LINE 8: ... (((acquisition_date >= date_trunc('day',date '%STARTDAT... >> ^ >> So the substitution does not happen or the default is not applied. >> Any hint on what i am doing wrong would be great. >> >> See below the components from the mapfile: >> >> MAP >> ..... >> # >> # Start of web interface definition >> # >> DATAPATTERN '^[a-zA-Z0-9\-\_\,]+$' >> >> WEB >> IMAGEPATH "/mnt/mapserver/mapserver_wms/geocloud_config/image_path" >> METADATA >> ..... >> 'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >> 'default_PRODUCTID' '1234567' >> 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >> 'default_CONTRACT_IDS' '0000' >> 'STARTDATE_validation_pattern' >> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'default_STARTDATE' '2011-01-01' >> 'ENDDATE_validation_pattern' >> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'default_END_DATE' '2013-09-01' >> END >> VALIDATION >> 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' >> 'CONTRACTIDS' '^[a-zA-Z0-9\-\_\,]+$' >> 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'ENDDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> END >> END >> ..... >> LAYER >> # this is the tileindex that aggregates the single image products >> together and makes them accessible for the RASTER LAYER "data_view" and >> "data_raw" for rendering >> NAME "data_idx" >> STATUS ON >> DEBUG 5 >> UNITS dd >> TYPE POLYGON >> EXTENT -116.364631680367 44.1932837062986 -103.698350095065 >> 49.1892799088128 >> PROCESSING "CLOSE_CONNECTION=DEFER" >> CONNECTIONTYPE POSTGIS >> CONNECTION "user=***** password=***** dbname=***** host='*****' >> port=5432" >> DATA "wkb_geom FROM (SELECT t1.* FROM (SELECT re3aip.cat_id as >> archived_in_archiving_identifier, ico.image_id, ico.acquisition_date, >> re3aip.tile_id, >> ico.product_provider_image_identifier, re3aip.ohs_order_id, >> re3aip.imagetake_cat_id, ico.epsg_code, >> re3aip.ohs_contract_id, ico.service_name, >> ico.footprint_poly::geometry as wkb_geom, ico.image_location, >> ico.vrt_location >> FROM ows.imagepool_catalogue_ows ico >> JOIN ows.re_l3a_imagepool re3aip ON (re3aip.image_id=ico.image_id) >> WHERE ico.service_name in ('LI_USA-MT') AND >> (((acquisition_date >= date_trunc('day',date '%STARTDATE%') AND >> acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 day'))) >> AND >> re3aip.ohs_contract_id in ('%CONTRACTID%') >> ) t1 >> LEFT OUTER JOIN >> (SELECT ico.image_id, ico.acquisition_date, re3aip.tile_id >> FROM ows.imagepool_catalogue_ows ico >> JOIN ows.re_l3a_imagepool re3aip ON (re3aip.image_id=ico.image_id) >> WHERE ico.service_name in ('LI_USA-MT') AND >> (((acquisition_date >= date_trunc('day',date >> '%STARTDATE%') AND >> acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 day'))) >> AND >> re3aip.ohs_contract_id in ('%CONTRACTID%') >> ) t2 >> ON >> t1.tile_id = t2.tile_id AND >> ((t1.acquisition_date < t2.acquisition_date) OR >> (t1.acquisition_date = t2.acquisition_date AND t1.image_id < t2.image_id)) >> WHERE t2.tile_id is NULL >> ORDER BY t1.ohs_contract_id, t1.tile_id >> ) foo USING UNIQUE image_id USING >> SRID=4326" >> #FILTER ( '[product_provider_image_identifier]'='%PRODUCTID%') >> PROJECTION >> "init=epsg:4326" >> END >> METADATA >> "ows_title" "Data Index" >> "ows_extent" "-116.364631680367 44.1932837062986 >> -103.698350095065 49.1892799088128" >> #'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >> #'default_PRODUCTID' '1234567' >> 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >> 'default_CONTRACTIDS' '0000' >> 'STARTDATE_validation_pattern' >> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'default_STARTDATE' '2011-01-01' >> 'ENDDATE_validation_pattern' >> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'default_ENDDATE' '2013-09-01' >> #disable explicitly everything that shall not be supported for >> this Layer >> "wms_enable_request" "!GetCapabilities !GetMap >> !GetLegendgraphic" >> "wcs_enable_request" "!GetCapabilities !GetCoverage >> !DescribeCoverage" >> "wfs_enable_request" "!GetCapabilities !GetFeature >> !DescribeFeatureType" >> END >> VALIDATION >> 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' >> 'CONTRACT_IDS' '^[a-zA-Z0-9\-\_\,]+$' >> 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'END_DATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> END >> END >> .... >> END >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jukka.rahkonen at mmmtike.fi Wed Aug 21 14:21:55 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 21 Aug 2013 21:21:55 +0000 Subject: [mapserver-users] cgi variable substituition in DATA statement In-Reply-To: <84446DEF76453C439E9E97E438E13A63022E0F08@suutari.haapa.mmm.fi> References: <5213FB0C.5030101@gmail.com> , <5214FC53.6070409@gmail.com>, <84446DEF76453C439E9E97E438E13A63022E0F08@suutari.haapa.mmm.fi> Message-ID: <84446DEF76453C439E9E97E438E13A63022E0F18@suutari.haapa.mmm.fi> Sorry, I hit enter by accident. Meaning was to suggest to try what happens if you use AND (((acquisition_date >= date_trunc('day',date %STARTDATE%) in the DATA line and include single quotes in the STARTDATE string. Perhaps SQL interpreter thinks now that %STARTDATE% between single quotes should be taken literally with the per cents signs. -Jukka Rahkonen- ________________________________________ Rahkonen Jukka wrote: Hi, Blind guess, but perhaps quetes inside the SQL of you DATA leads to unexpected result AND (((acquisition_date >= date_trunc('day',date '%STARTDATE%') Make a try to write this as ________________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän Peter Freimuth [freimuth69 at gmail.com] puolesta L?hetetty: 21. elokuuta 2013 20:43 Vastaanottaja: thomas bonfort; mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] cgi variable substituition in DATA statement Hi Thomas, thanks for the hints. I compiled 6.4beta2 this morning and applied the proposed changes but the behaviour keeps the same. The substitution is just not done. I changed the VALIDATION block on map and layer level to below and also using now DATAPATTERN '.*' on map level. VALIDATION #'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' #'CONTRACTIDS' '^[a-zA-Z0-9\-\_\,]+$' #'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' #'ENDDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' 'PRODUCTID' '.*' 'CONTRACTIDS' '.*' 'STARTDATE' '.*' 'ENDDATE' '.*' 'default_PRODUCTID' '1234567' 'default_CONTRACTIDS' 'GDNAMLI-USA-MT' 'default_STARTDATE' '2011-01-01' 'default_ENDDATE' '2013-09-01' END It seems that the mechanismn is not working at all and i cannot find anything in the logs even with debug level 5. Any further idea? Thanks, Peter On 20/08/2013 5:35 PM, thomas bonfort wrote: > try setting your VALIDATIONs to '.*' to see if your problem lies in > your regex or elsewhere. For 6.3/4 You can also remove your > xxx_validation_pattern metadata entries, and should move the > default_xxx ones into the VALIDATION block. > > -- > thomas > > On 21 August 2013 01:26, Peter Freimuth wrote: >> Hi, >> i am trying to get the dynamic variable substitution work on Mapserver >> 6.3dev but somehow it does'nt work as it worked before and as documented. >> When i execute >> http://10.10.4.18/cgi-bin/LI_USA-MT.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,-115.666914&CRS=EPSG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE&STARTDATE=2011-01-01&ENDDATE=2013-09-01 >> >> or >> >> http://10.10.4.18/cgi-bin/LI_USA-MT.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,-115.666914&CRS=EPSG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE >> >> I get an error in >> msDrawMap(): Image handling error. Failed to draw layer named 'data_view'. >> msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: >> invalid input syntax for type date: "%STARTDATE%" >> LINE 8: ... (((acquisition_date >= date_trunc('day',date '%STARTDAT... >> ^ >> So the substitution does not happen or the default is not applied. >> Any hint on what i am doing wrong would be great. >> >> See below the components from the mapfile: >> >> MAP >> ..... >> # >> # Start of web interface definition >> # >> DATAPATTERN '^[a-zA-Z0-9\-\_\,]+$' >> >> WEB >> IMAGEPATH "/mnt/mapserver/mapserver_wms/geocloud_config/image_path" >> METADATA >> ..... >> 'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >> 'default_PRODUCTID' '1234567' >> 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >> 'default_CONTRACT_IDS' '0000' >> 'STARTDATE_validation_pattern' >> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'default_STARTDATE' '2011-01-01' >> 'ENDDATE_validation_pattern' >> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'default_END_DATE' '2013-09-01' >> END >> VALIDATION >> 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' >> 'CONTRACTIDS' '^[a-zA-Z0-9\-\_\,]+$' >> 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'ENDDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> END >> END >> ..... >> LAYER >> # this is the tileindex that aggregates the single image products >> together and makes them accessible for the RASTER LAYER "data_view" and >> "data_raw" for rendering >> NAME "data_idx" >> STATUS ON >> DEBUG 5 >> UNITS dd >> TYPE POLYGON >> EXTENT -116.364631680367 44.1932837062986 -103.698350095065 >> 49.1892799088128 >> PROCESSING "CLOSE_CONNECTION=DEFER" >> CONNECTIONTYPE POSTGIS >> CONNECTION "user=***** password=***** dbname=***** host='*****' >> port=5432" >> DATA "wkb_geom FROM (SELECT t1.* FROM (SELECT re3aip.cat_id as >> archived_in_archiving_identifier, ico.image_id, ico.acquisition_date, >> re3aip.tile_id, >> ico.product_provider_image_identifier, re3aip.ohs_order_id, >> re3aip.imagetake_cat_id, ico.epsg_code, >> re3aip.ohs_contract_id, ico.service_name, >> ico.footprint_poly::geometry as wkb_geom, ico.image_location, >> ico.vrt_location >> FROM ows.imagepool_catalogue_ows ico >> JOIN ows.re_l3a_imagepool re3aip ON (re3aip.image_id=ico.image_id) >> WHERE ico.service_name in ('LI_USA-MT') AND >> (((acquisition_date >= date_trunc('day',date '%STARTDATE%') AND >> acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 day'))) >> AND >> re3aip.ohs_contract_id in ('%CONTRACTID%') >> ) t1 >> LEFT OUTER JOIN >> (SELECT ico.image_id, ico.acquisition_date, re3aip.tile_id >> FROM ows.imagepool_catalogue_ows ico >> JOIN ows.re_l3a_imagepool re3aip ON (re3aip.image_id=ico.image_id) >> WHERE ico.service_name in ('LI_USA-MT') AND >> (((acquisition_date >= date_trunc('day',date >> '%STARTDATE%') AND >> acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 day'))) >> AND >> re3aip.ohs_contract_id in ('%CONTRACTID%') >> ) t2 >> ON >> t1.tile_id = t2.tile_id AND >> ((t1.acquisition_date < t2.acquisition_date) OR >> (t1.acquisition_date = t2.acquisition_date AND t1.image_id < t2.image_id)) >> WHERE t2.tile_id is NULL >> ORDER BY t1.ohs_contract_id, t1.tile_id >> ) foo USING UNIQUE image_id USING >> SRID=4326" >> #FILTER ( '[product_provider_image_identifier]'='%PRODUCTID%') >> PROJECTION >> "init=epsg:4326" >> END >> METADATA >> "ows_title" "Data Index" >> "ows_extent" "-116.364631680367 44.1932837062986 >> -103.698350095065 49.1892799088128" >> #'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >> #'default_PRODUCTID' '1234567' >> 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >> 'default_CONTRACTIDS' '0000' >> 'STARTDATE_validation_pattern' >> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'default_STARTDATE' '2011-01-01' >> 'ENDDATE_validation_pattern' >> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'default_ENDDATE' '2013-09-01' >> #disable explicitly everything that shall not be supported for >> this Layer >> "wms_enable_request" "!GetCapabilities !GetMap >> !GetLegendgraphic" >> "wcs_enable_request" "!GetCapabilities !GetCoverage >> !DescribeCoverage" >> "wfs_enable_request" "!GetCapabilities !GetFeature >> !DescribeFeatureType" >> END >> VALIDATION >> 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' >> 'CONTRACT_IDS' '^[a-zA-Z0-9\-\_\,]+$' >> 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'END_DATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> END >> END >> .... >> END >> _______________________________________________ >> 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 yves.jacolin at camptocamp.com Thu Aug 22 00:33:58 2013 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Thu, 22 Aug 2013 09:33:58 +0200 Subject: [mapserver-users] Cluster with shapefile doesn't show all colums in GetFeatureInfo Message-ID: <12298975.pxZlXpbK2m@tatras> Hello, I would like to confirm a bug using cluster feature with shapefile data source. When a GetFeatureInfo request is made, we only get attribute which are used in CLASS object. Here is my mapfile: LAYER # d?but de la couche NAME "test" DATA test TEMPLATE "ttt.html" STATUS ON TYPE POINT EXTENT -173678 1652366 1470310 2709215 PROJECTION "init=epsg:27572" END METADATA "wms_title" "test" "wms_srs" "EPSG:2154" "wms_include_items" "FAMILLE_IC,PRECISION,SEVESO,EPSG,NOM_ETBT,CODE_POSTA" "wms_getfeatureinfo_formatlist" "application/vnd.ogc.gml" END CLUSTER MAXDISTANCE 0.2 REGION 'ellipse' END PROCESSING "CLUSTER_GET_ALL_SHAPES=ON" LABELITEM "Cluster:FeatureCount" CLASSITEM "Cluster:FeatureCount" CLASS NAME "test1" EXPRESSION ("[Cluster:FeatureCount]" != "1" AND [PRECISION]=0) STYLE SYMBOL 'centroide' SIZE 35 END LABEL FONT "arial" TYPE TRUETYPE POSITION CC SIZE 12 COLOR 0 0 0 OUTLINECOLOR 250 250 250 END END [...] END In this example only PRECISION attribute will be displayed in the GetFeatureInfo request. As github is down currently I can't check issues, sorry if it already known. Does someone could confirm this? I am using MapServer version 6.2.1. Thanks, Yves -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 79 26 57 98 Tel (Suisse) : 021 619 10 43 (new) Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com From yves.jacolin at camptocamp.com Thu Aug 22 00:48:43 2013 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Thu, 22 Aug 2013 09:48:43 +0200 Subject: [mapserver-users] Cluster with shapefile doesn't show all colums in GetFeatureInfo In-Reply-To: <12298975.pxZlXpbK2m@tatras> References: <12298975.pxZlXpbK2m@tatras> Message-ID: <18123428.tSHy9Z4E4c@tatras> Hello, My mapfile is not correct, as we can't get attributes in cluster object from several feature but this problem occurs also for feature which are not clustered. For example, this class has the same "problem", but it seems logical to me. CLASS NAME "test2" EXPRESSION ('[FAMILLE_IC]' eq 'IN' AND [PRECISION]=0 AND '[SEVESO]' eq 'AS') STYLE SYMBOL "usine" SIZE 40 OFFSET 0 -14 END END Regards, Y. Le jeudi 22 ao?t 2013 09:33:58 Yves Jacolin a ?crit : > Hello, > > I would like to confirm a bug using cluster feature with shapefile data > source. When a GetFeatureInfo request is made, we only get attribute which > are used in CLASS object. Here is my mapfile: > > LAYER # d?but de la couche > NAME "test" > DATA test > TEMPLATE "ttt.html" > STATUS ON > TYPE POINT > EXTENT -173678 1652366 1470310 2709215 > PROJECTION > "init=epsg:27572" > END > METADATA > "wms_title" "test" > "wms_srs" "EPSG:2154" > "wms_include_items" > "FAMILLE_IC,PRECISION,SEVESO,EPSG,NOM_ETBT,CODE_POSTA" > "wms_getfeatureinfo_formatlist" "application/vnd.ogc.gml" > END > > CLUSTER > MAXDISTANCE 0.2 > REGION 'ellipse' > END > > PROCESSING "CLUSTER_GET_ALL_SHAPES=ON" > LABELITEM "Cluster:FeatureCount" > CLASSITEM "Cluster:FeatureCount" > > CLASS > NAME "test1" > EXPRESSION ("[Cluster:FeatureCount]" != "1" AND [PRECISION]=0) > STYLE > SYMBOL 'centroide' > SIZE 35 > END > LABEL > FONT "arial" > TYPE TRUETYPE > POSITION CC > SIZE 12 > COLOR 0 0 0 > OUTLINECOLOR 250 250 250 > END > END > [...] > END > > In this example only PRECISION attribute will be displayed in the > GetFeatureInfo request. > > As github is down currently I can't check issues, sorry if it already known. > Does someone could confirm this? > > I am using MapServer version 6.2.1. > > Thanks, > > Yves -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 79 26 57 98 Tel (Suisse) : 021 619 10 43 (new) Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com From thomas.bonfort at gmail.com Thu Aug 22 01:19:19 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 22 Aug 2013 10:19:19 +0200 Subject: [mapserver-users] cgi variable substituition in DATA statement In-Reply-To: <84446DEF76453C439E9E97E438E13A63022E0F08@suutari.haapa.mmm.fi> References: <5213FB0C.5030101@gmail.com> <5214FC53.6070409@gmail.com> <84446DEF76453C439E9E97E438E13A63022E0F08@suutari.haapa.mmm.fi> Message-ID: That unfortunately will not change anything, the token replacement is done blindly, i.e. without taking into account quotes at all. -- thomas On 21 August 2013 23:03, Rahkonen Jukka wrote: > Hi, > > Blind guess, but perhaps quetes inside the SQL of you DATA leads to unexpected result > > AND (((acquisition_date >= date_trunc('day',date '%STARTDATE%') > > Make a try to write this as > > ________________________________________ > L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän Peter Freimuth [freimuth69 at gmail.com] puolesta > L?hetetty: 21. elokuuta 2013 20:43 > Vastaanottaja: thomas bonfort; mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] cgi variable substituition in DATA statement > > Hi Thomas, > thanks for the hints. I compiled 6.4beta2 this morning and applied the > proposed changes but the behaviour keeps the same. > The substitution is just not done. > I changed the VALIDATION block on map and layer level to below and also > using now DATAPATTERN '.*' on map level. > VALIDATION > #'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' > #'CONTRACTIDS' '^[a-zA-Z0-9\-\_\,]+$' > #'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > #'ENDDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > 'PRODUCTID' '.*' > 'CONTRACTIDS' '.*' > 'STARTDATE' '.*' > 'ENDDATE' '.*' > 'default_PRODUCTID' '1234567' > 'default_CONTRACTIDS' 'GDNAMLI-USA-MT' > 'default_STARTDATE' '2011-01-01' > 'default_ENDDATE' '2013-09-01' > END > It seems that the mechanismn is not working at all and i cannot find > anything in the logs even with debug level 5. > Any further idea? > Thanks, > Peter > > On 20/08/2013 5:35 PM, thomas bonfort wrote: >> try setting your VALIDATIONs to '.*' to see if your problem lies in >> your regex or elsewhere. For 6.3/4 You can also remove your >> xxx_validation_pattern metadata entries, and should move the >> default_xxx ones into the VALIDATION block. >> >> -- >> thomas >> >> On 21 August 2013 01:26, Peter Freimuth wrote: >>> Hi, >>> i am trying to get the dynamic variable substitution work on Mapserver >>> 6.3dev but somehow it does'nt work as it worked before and as documented. >>> When i execute >>> http://10.10.4.18/cgi-bin/LI_USA-MT.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,-115.666914&CRS=EPSG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE&STARTDATE=2011-01-01&ENDDATE=2013-09-01 >>> >>> or >>> >>> http://10.10.4.18/cgi-bin/LI_USA-MT.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,-115.666914&CRS=EPSG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE >>> >>> I get an error in >>> msDrawMap(): Image handling error. Failed to draw layer named 'data_view'. >>> msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: >>> invalid input syntax for type date: "%STARTDATE%" >>> LINE 8: ... (((acquisition_date >= date_trunc('day',date '%STARTDAT... >>> ^ >>> So the substitution does not happen or the default is not applied. >>> Any hint on what i am doing wrong would be great. >>> >>> See below the components from the mapfile: >>> >>> MAP >>> ..... >>> # >>> # Start of web interface definition >>> # >>> DATAPATTERN '^[a-zA-Z0-9\-\_\,]+$' >>> >>> WEB >>> IMAGEPATH "/mnt/mapserver/mapserver_wms/geocloud_config/image_path" >>> METADATA >>> ..... >>> 'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >>> 'default_PRODUCTID' '1234567' >>> 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >>> 'default_CONTRACT_IDS' '0000' >>> 'STARTDATE_validation_pattern' >>> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>> 'default_STARTDATE' '2011-01-01' >>> 'ENDDATE_validation_pattern' >>> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>> 'default_END_DATE' '2013-09-01' >>> END >>> VALIDATION >>> 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' >>> 'CONTRACTIDS' '^[a-zA-Z0-9\-\_\,]+$' >>> 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>> 'ENDDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>> END >>> END >>> ..... >>> LAYER >>> # this is the tileindex that aggregates the single image products >>> together and makes them accessible for the RASTER LAYER "data_view" and >>> "data_raw" for rendering >>> NAME "data_idx" >>> STATUS ON >>> DEBUG 5 >>> UNITS dd >>> TYPE POLYGON >>> EXTENT -116.364631680367 44.1932837062986 -103.698350095065 >>> 49.1892799088128 >>> PROCESSING "CLOSE_CONNECTION=DEFER" >>> CONNECTIONTYPE POSTGIS >>> CONNECTION "user=***** password=***** dbname=***** host='*****' >>> port=5432" >>> DATA "wkb_geom FROM (SELECT t1.* FROM (SELECT re3aip.cat_id as >>> archived_in_archiving_identifier, ico.image_id, ico.acquisition_date, >>> re3aip.tile_id, >>> ico.product_provider_image_identifier, re3aip.ohs_order_id, >>> re3aip.imagetake_cat_id, ico.epsg_code, >>> re3aip.ohs_contract_id, ico.service_name, >>> ico.footprint_poly::geometry as wkb_geom, ico.image_location, >>> ico.vrt_location >>> FROM ows.imagepool_catalogue_ows ico >>> JOIN ows.re_l3a_imagepool re3aip ON (re3aip.image_id=ico.image_id) >>> WHERE ico.service_name in ('LI_USA-MT') AND >>> (((acquisition_date >= date_trunc('day',date '%STARTDATE%') AND >>> acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 day'))) >>> AND >>> re3aip.ohs_contract_id in ('%CONTRACTID%') >>> ) t1 >>> LEFT OUTER JOIN >>> (SELECT ico.image_id, ico.acquisition_date, re3aip.tile_id >>> FROM ows.imagepool_catalogue_ows ico >>> JOIN ows.re_l3a_imagepool re3aip ON (re3aip.image_id=ico.image_id) >>> WHERE ico.service_name in ('LI_USA-MT') AND >>> (((acquisition_date >= date_trunc('day',date >>> '%STARTDATE%') AND >>> acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 day'))) >>> AND >>> re3aip.ohs_contract_id in ('%CONTRACTID%') >>> ) t2 >>> ON >>> t1.tile_id = t2.tile_id AND >>> ((t1.acquisition_date < t2.acquisition_date) OR >>> (t1.acquisition_date = t2.acquisition_date AND t1.image_id < t2.image_id)) >>> WHERE t2.tile_id is NULL >>> ORDER BY t1.ohs_contract_id, t1.tile_id >>> ) foo USING UNIQUE image_id USING >>> SRID=4326" >>> #FILTER ( '[product_provider_image_identifier]'='%PRODUCTID%') >>> PROJECTION >>> "init=epsg:4326" >>> END >>> METADATA >>> "ows_title" "Data Index" >>> "ows_extent" "-116.364631680367 44.1932837062986 >>> -103.698350095065 49.1892799088128" >>> #'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >>> #'default_PRODUCTID' '1234567' >>> 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >>> 'default_CONTRACTIDS' '0000' >>> 'STARTDATE_validation_pattern' >>> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>> 'default_STARTDATE' '2011-01-01' >>> 'ENDDATE_validation_pattern' >>> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>> 'default_ENDDATE' '2013-09-01' >>> #disable explicitly everything that shall not be supported for >>> this Layer >>> "wms_enable_request" "!GetCapabilities !GetMap >>> !GetLegendgraphic" >>> "wcs_enable_request" "!GetCapabilities !GetCoverage >>> !DescribeCoverage" >>> "wfs_enable_request" "!GetCapabilities !GetFeature >>> !DescribeFeatureType" >>> END >>> VALIDATION >>> 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' >>> 'CONTRACT_IDS' '^[a-zA-Z0-9\-\_\,]+$' >>> 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>> 'END_DATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>> END >>> END >>> .... >>> END >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jukka.rahkonen at mmmtike.fi Thu Aug 22 01:45:41 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 22 Aug 2013 08:45:41 +0000 Subject: [mapserver-users] cgi variable substituition in DATA statement Message-ID: <84446DEF76453C439E9E97E438E13A63022E10E1@suutari.haapa.mmm.fi> Hi, Pity, it would have been so easy. Now I fear that nothing else than hard work will help and you must systematically re-build your masterpiece SQL step by step. Start from something very simple and make it to work, add more stuff into the query and retry. Begin for example with something as simple as DATA "wkb_geom FROM (SELECT ico.footprint_poly::geometry as wkb_geom, ico.service_name FROM ows.imagepool_catalogue_ows ico WHERE ico.service_name=%STARTDATE%)" I am pretty sure that at least you will find the exact place where your query comes more clever than Mapserver. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: thomas bonfort [mailto:thomas.bonfort at gmail.com] > L?hetetty: 22. elokuuta 2013 11:19 > Vastaanottaja: Rahkonen Jukka > Kopio: Peter Freimuth; mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] cgi variable substituition in DATA statement > > That unfortunately will not change anything, the token replacement is done > blindly, i.e. without taking into account quotes at all. > > -- > thomas > > On 21 August 2013 23:03, Rahkonen Jukka > wrote: > > Hi, > > > > Blind guess, but perhaps quetes inside the SQL of you DATA leads to > > unexpected result > > > > AND (((acquisition_date >= date_trunc('day',date '%STARTDATE%') > > > > Make a try to write this as > > > > ________________________________________ > > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > > [mapserver-users-bounces at lists.osgeo.org] käyttäjän > > Peter Freimuth [freimuth69 at gmail.com] puolesta > > L?hetetty: 21. elokuuta 2013 20:43 > > Vastaanottaja: thomas bonfort; mapserver-users at lists.osgeo.org > > Aihe: Re: [mapserver-users] cgi variable substituition in DATA > > statement > > > > Hi Thomas, > > thanks for the hints. I compiled 6.4beta2 this morning and applied the > > proposed changes but the behaviour keeps the same. > > The substitution is just not done. > > I changed the VALIDATION block on map and layer level to below and > > also using now DATAPATTERN '.*' on map level. > > VALIDATION > > #'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' > > #'CONTRACTIDS' '^[a-zA-Z0-9\-\_\,]+$' > > #'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > > #'ENDDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > > 'PRODUCTID' '.*' > > 'CONTRACTIDS' '.*' > > 'STARTDATE' '.*' > > 'ENDDATE' '.*' > > 'default_PRODUCTID' '1234567' > > 'default_CONTRACTIDS' 'GDNAMLI-USA-MT' > > 'default_STARTDATE' '2011-01-01' > > 'default_ENDDATE' '2013-09-01' > > END > > It seems that the mechanismn is not working at all and i cannot find > > anything in the logs even with debug level 5. > > Any further idea? > > Thanks, > > Peter > > > > On 20/08/2013 5:35 PM, thomas bonfort wrote: > >> try setting your VALIDATIONs to '.*' to see if your problem lies in > >> your regex or elsewhere. For 6.3/4 You can also remove your > >> xxx_validation_pattern metadata entries, and should move the > >> default_xxx ones into the VALIDATION block. > >> > >> -- > >> thomas > >> > >> On 21 August 2013 01:26, Peter Freimuth wrote: > >>> Hi, > >>> i am trying to get the dynamic variable substitution work on > >>> Mapserver 6.3dev but somehow it does'nt work as it worked before and as > documented. > >>> When i execute > >>> http://10.10.4.18/cgi-bin/LI_USA- > MT.cgi?SERVICE=WMS&VERSION=1.3.0&RE > >>> QUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,- > 115.666914&CRS=EP > >>> > SG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=i > mage/ > >>> png&DPI=96&TRANSPARENT=TRUE&STARTDATE=2011-01- > 01&ENDDATE=2013-09-01 > >>> > >>> or > >>> > >>> http://10.10.4.18/cgi-bin/LI_USA- > MT.cgi?SERVICE=WMS&VERSION=1.3.0&RE > >>> QUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,- > 115.666914&CRS=EP > >>> > SG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=i > mage/ > >>> png&DPI=96&TRANSPARENT=TRUE > >>> > >>> I get an error in > >>> msDrawMap(): Image handling error. Failed to draw layer named > 'data_view'. > >>> msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: > >>> invalid input syntax for type date: "%STARTDATE%" > >>> LINE 8: ... (((acquisition_date >= date_trunc('day',date '%STARTDAT... > >>> ^ So > >>> the substitution does not happen or the default is not applied. > >>> Any hint on what i am doing wrong would be great. > >>> > >>> See below the components from the mapfile: > >>> > >>> MAP > >>> ..... > >>> # > >>> # Start of web interface definition > >>> # > >>> DATAPATTERN '^[a-zA-Z0-9\-\_\,]+$' > >>> > >>> WEB > >>> IMAGEPATH > "/mnt/mapserver/mapserver_wms/geocloud_config/image_path" > >>> METADATA > >>> ..... > >>> 'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' > >>> 'default_PRODUCTID' '1234567' > >>> 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' > >>> 'default_CONTRACT_IDS' '0000' > >>> 'STARTDATE_validation_pattern' > >>> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > >>> 'default_STARTDATE' '2011-01-01' > >>> 'ENDDATE_validation_pattern' > >>> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > >>> 'default_END_DATE' '2013-09-01' > >>> END > >>> VALIDATION > >>> 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' > >>> 'CONTRACTIDS' '^[a-zA-Z0-9\-\_\,]+$' > >>> 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > >>> 'ENDDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > >>> END > >>> END > >>> ..... > >>> LAYER > >>> # this is the tileindex that aggregates the single image > >>> products together and makes them accessible for the RASTER LAYER > >>> "data_view" and "data_raw" for rendering > >>> NAME "data_idx" > >>> STATUS ON > >>> DEBUG 5 > >>> UNITS dd > >>> TYPE POLYGON > >>> EXTENT -116.364631680367 44.1932837062986 -103.698350095065 > >>> 49.1892799088128 > >>> PROCESSING "CLOSE_CONNECTION=DEFER" > >>> CONNECTIONTYPE POSTGIS > >>> CONNECTION "user=***** password=***** dbname=***** > host='*****' > >>> port=5432" > >>> DATA "wkb_geom FROM (SELECT t1.* FROM (SELECT re3aip.cat_id > >>> as archived_in_archiving_identifier, ico.image_id, > >>> ico.acquisition_date, re3aip.tile_id, > >>> ico.product_provider_image_identifier, re3aip.ohs_order_id, > >>> re3aip.imagetake_cat_id, ico.epsg_code, re3aip.ohs_contract_id, > >>> ico.service_name, ico.footprint_poly::geometry as wkb_geom, > >>> ico.image_location, ico.vrt_location FROM > >>> ows.imagepool_catalogue_ows ico JOIN ows.re_l3a_imagepool re3aip ON > >>> (re3aip.image_id=ico.image_id) WHERE ico.service_name in > >>> ('LI_USA-MT') AND (((acquisition_date >= date_trunc('day',date > >>> '%STARTDATE%') AND acquisition_date < date_trunc('day',date > >>> '%ENDDATE%') + interval '1 day'))) AND re3aip.ohs_contract_id in > >>> ('%CONTRACTID%') > >>> ) t1 > >>> LEFT OUTER JOIN > >>> (SELECT ico.image_id, ico.acquisition_date, re3aip.tile_id FROM > >>> ows.imagepool_catalogue_ows ico JOIN ows.re_l3a_imagepool re3aip ON > >>> (re3aip.image_id=ico.image_id) WHERE ico.service_name in > >>> ('LI_USA-MT') AND > >>> (((acquisition_date >= > >>> date_trunc('day',date > >>> '%STARTDATE%') AND > >>> acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 > >>> day'))) AND re3aip.ohs_contract_id in ('%CONTRACTID%') > >>> ) t2 > >>> > >>> ON t1.tile_id = t2.tile_id AND ((t1.acquisition_date < > >>> t2.acquisition_date) OR (t1.acquisition_date = t2.acquisition_date > >>> AND t1.image_id < t2.image_id)) WHERE t2.tile_id is NULL ORDER BY > >>> t1.ohs_contract_id, t1.tile_id > >>> ) foo USING UNIQUE image_id > >>> USING SRID=4326" > >>> #FILTER ( '[product_provider_image_identifier]'='%PRODUCTID%') > >>> PROJECTION > >>> "init=epsg:4326" > >>> END > >>> METADATA > >>> "ows_title" "Data Index" > >>> "ows_extent" "-116.364631680367 44.1932837062986 > >>> -103.698350095065 49.1892799088128" > >>> #'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' > >>> #'default_PRODUCTID' '1234567' > >>> 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' > >>> 'default_CONTRACTIDS' '0000' > >>> 'STARTDATE_validation_pattern' > >>> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > >>> 'default_STARTDATE' '2011-01-01' > >>> 'ENDDATE_validation_pattern' > >>> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > >>> 'default_ENDDATE' '2013-09-01' > >>> #disable explicitly everything that shall not be > >>> supported for this Layer > >>> "wms_enable_request" "!GetCapabilities !GetMap > >>> !GetLegendgraphic" > >>> "wcs_enable_request" "!GetCapabilities !GetCoverage > >>> !DescribeCoverage" > >>> "wfs_enable_request" "!GetCapabilities !GetFeature > >>> !DescribeFeatureType" > >>> END > >>> VALIDATION > >>> 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' > >>> 'CONTRACT_IDS' '^[a-zA-Z0-9\-\_\,]+$' > >>> 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > >>> 'END_DATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > >>> END > >>> END > >>> .... > >>> END > >>> _______________________________________________ > >>> 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 luis.a.de.sousa at gmail.com Thu Aug 22 02:28:07 2013 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Thu, 22 Aug 2013 02:28:07 -0700 (PDT) Subject: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04 In-Reply-To: References: <1376493540168-5072538.post@n6.nabble.com> <1376655994777-5072841.post@n6.nabble.com> <1376920341048-5073155.post@n6.nabble.com> Message-ID: <1377163687006-5073759.post@n6.nabble.com> Hi Jessica, thank you for the swift fix. I confirm that it now works without the end slash. For future reference here is how to checkout a tag from GitHub: git pull git checkout tags/v0.1.2 Btw, the interface is far more complex than I expected, a manual will be handy at some point. Regards, Lu?s -- View this message in context: http://osgeo-org.1560.x6.nabble.com/ScribeUI-Possible-segmentation-fault-on-Ubuntu-12-04-tp5072423p5073759.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Bob.Bistrais at maine.gov Thu Aug 22 06:53:46 2013 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Thu, 22 Aug 2013 13:53:46 +0000 Subject: [mapserver-users] Trouble selecting on line layer Message-ID: I am having some trouble getting the select service to work with a line layer, Mapserver 6.0.2/MapScript 6.1. I put the debug on the mapfile but the only error I sometimes get is "no results". I adjusted the search tolerance to a generous 30m. Now I get a popup which says error calling the server, unable to load php/select.php status:500. This service works fine with a polygon layer, but for this project I need it to work with a line layer. Any ideas? Shall I attach any code? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Thu Aug 22 07:12:43 2013 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Thu, 22 Aug 2013 14:12:43 +0000 Subject: [mapserver-users] Trouble selecting on line layer Message-ID: Problem solved- Didn't have the select_record template set in the line layer. It had nothing to do with the fact it was line features. From: Bistrais, Bob Sent: Thursday, August 22, 2013 9:54 AM To: mapserver-users at lists.osgeo.org Subject: Trouble selecting on line layer I am having some trouble getting the select service to work with a line layer, Mapserver 6.0.2/MapScript 6.1. I put the debug on the mapfile but the only error I sometimes get is "no results". I adjusted the search tolerance to a generous 30m. Now I get a popup which says error calling the server, unable to load php/select.php status:500. This service works fine with a polygon layer, but for this project I need it to work with a line layer. Any ideas? Shall I attach any code? -------------- next part -------------- An HTML attachment was scrubbed... URL: From freimuth69 at gmail.com Thu Aug 22 19:41:19 2013 From: freimuth69 at gmail.com (Peter Freimuth) Date: Thu, 22 Aug 2013 20:41:19 -0600 Subject: [mapserver-users] cgi variable substituition in DATA statement In-Reply-To: References: <5213FB0C.5030101@gmail.com> Message-ID: Hi, i will do so on Monday. Is it possible that the fact that we use a tiny map script wrapper to avoid the map file in the url have something to do with it. By the way i tried the leaving away of the single ' ' already but it just fails again because the parameter name doesn't get replaced. Thanks for all of your hints. Just to complete the circumstances. The map file uses the include mechanism to get the layer definitions and the layer which needs the substitutions is only referenced by a raster layer as an tile index. Don't know if this have something to do with it. If i use static values everything is working fine. Kind regards, -- Peter Freimuth On 2013-08-22, at 3:17 AM, thomas bonfort wrote: > Peter, > can you email me your full mapfile, with the snippets you provided I > can't see anything wrong and would therefore need to see any > side-effects from the rest of the mapfile, and/or run it through a > debugger to see where it's failing. > > -- > thomas > > On 21 August 2013 01:26, Peter Freimuth wrote: >> Hi, >> i am trying to get the dynamic variable substitution work on Mapserver >> 6.3dev but somehow it does'nt work as it worked before and as documented. >> When i execute >> http://10.10.4.18/cgi-bin/LI_USA-MT.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,-115.666914&CRS=EPSG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE&STARTDATE=2011-01-01&ENDDATE=2013-09-01 >> >> or >> >> http://10.10.4.18/cgi-bin/LI_USA-MT.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,-115.666914&CRS=EPSG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE >> >> I get an error in >> msDrawMap(): Image handling error. Failed to draw layer named 'data_view'. >> msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: >> invalid input syntax for type date: "%STARTDATE%" >> LINE 8: ... (((acquisition_date >= date_trunc('day',date '%STARTDAT... >> ^ >> So the substitution does not happen or the default is not applied. >> Any hint on what i am doing wrong would be great. >> >> See below the components from the mapfile: >> >> MAP >> ..... >> # >> # Start of web interface definition >> # >> DATAPATTERN '^[a-zA-Z0-9\-\_\,]+$' >> >> WEB >> IMAGEPATH "/mnt/mapserver/mapserver_wms/geocloud_config/image_path" >> METADATA >> ..... >> 'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >> 'default_PRODUCTID' '1234567' >> 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >> 'default_CONTRACT_IDS' '0000' >> 'STARTDATE_validation_pattern' >> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'default_STARTDATE' '2011-01-01' >> 'ENDDATE_validation_pattern' >> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'default_END_DATE' '2013-09-01' >> END >> VALIDATION >> 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' >> 'CONTRACTIDS' '^[a-zA-Z0-9\-\_\,]+$' >> 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'ENDDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> END >> END >> ..... >> LAYER >> # this is the tileindex that aggregates the single image products >> together and makes them accessible for the RASTER LAYER "data_view" and >> "data_raw" for rendering >> NAME "data_idx" >> STATUS ON >> DEBUG 5 >> UNITS dd >> TYPE POLYGON >> EXTENT -116.364631680367 44.1932837062986 -103.698350095065 >> 49.1892799088128 >> PROCESSING "CLOSE_CONNECTION=DEFER" >> CONNECTIONTYPE POSTGIS >> CONNECTION "user=***** password=***** dbname=***** host='*****' >> port=5432" >> DATA "wkb_geom FROM (SELECT t1.* FROM (SELECT re3aip.cat_id as >> archived_in_archiving_identifier, ico.image_id, ico.acquisition_date, >> re3aip.tile_id, >> ico.product_provider_image_identifier, re3aip.ohs_order_id, >> re3aip.imagetake_cat_id, ico.epsg_code, >> re3aip.ohs_contract_id, ico.service_name, >> ico.footprint_poly::geometry as wkb_geom, ico.image_location, >> ico.vrt_location >> FROM ows.imagepool_catalogue_ows ico >> JOIN ows.re_l3a_imagepool re3aip ON (re3aip.image_id=ico.image_id) >> WHERE ico.service_name in ('LI_USA-MT') AND >> (((acquisition_date >= date_trunc('day',date '%STARTDATE%') AND >> acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 day'))) >> AND >> re3aip.ohs_contract_id in ('%CONTRACTID%') >> ) t1 >> LEFT OUTER JOIN >> (SELECT ico.image_id, ico.acquisition_date, re3aip.tile_id >> FROM ows.imagepool_catalogue_ows ico >> JOIN ows.re_l3a_imagepool re3aip ON (re3aip.image_id=ico.image_id) >> WHERE ico.service_name in ('LI_USA-MT') AND >> (((acquisition_date >= date_trunc('day',date >> '%STARTDATE%') AND >> acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 day'))) >> AND >> re3aip.ohs_contract_id in ('%CONTRACTID%') >> ) t2 >> ON >> t1.tile_id = t2.tile_id AND >> ((t1.acquisition_date < t2.acquisition_date) OR >> (t1.acquisition_date = t2.acquisition_date AND t1.image_id < t2.image_id)) >> WHERE t2.tile_id is NULL >> ORDER BY t1.ohs_contract_id, t1.tile_id >> ) foo USING UNIQUE image_id USING >> SRID=4326" >> #FILTER ( '[product_provider_image_identifier]'='%PRODUCTID%') >> PROJECTION >> "init=epsg:4326" >> END >> METADATA >> "ows_title" "Data Index" >> "ows_extent" "-116.364631680367 44.1932837062986 >> -103.698350095065 49.1892799088128" >> #'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >> #'default_PRODUCTID' '1234567' >> 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >> 'default_CONTRACTIDS' '0000' >> 'STARTDATE_validation_pattern' >> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'default_STARTDATE' '2011-01-01' >> 'ENDDATE_validation_pattern' >> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'default_ENDDATE' '2013-09-01' >> #disable explicitly everything that shall not be supported for >> this Layer >> "wms_enable_request" "!GetCapabilities !GetMap >> !GetLegendgraphic" >> "wcs_enable_request" "!GetCapabilities !GetCoverage >> !DescribeCoverage" >> "wfs_enable_request" "!GetCapabilities !GetFeature >> !DescribeFeatureType" >> END >> VALIDATION >> 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' >> 'CONTRACT_IDS' '^[a-zA-Z0-9\-\_\,]+$' >> 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'END_DATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> END >> END >> .... >> END >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Thu Aug 22 23:32:32 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 23 Aug 2013 08:32:32 +0200 Subject: [mapserver-users] cgi variable substituition in DATA statement In-Reply-To: References: <5213FB0C.5030101@gmail.com> Message-ID: yes, that's it. the substitutions only work for the mapserver CGI, not mapscripts. if you're using mapscript, you can manipulate your mapfile directly. -- thomas On 23 August 2013 04:41, Peter Freimuth wrote: > Hi, > i will do so on Monday. Is it possible that the fact that we use a tiny map > script wrapper to avoid the map file in the url have something to do with > it. > By the way i tried the leaving away of the single ' ' already but it just > fails again because the parameter name doesn't get replaced. Thanks for all > of your hints. > Just to complete the circumstances. The map file uses the include mechanism > to get the layer definitions and the layer which needs the substitutions is > only referenced by a raster layer as an tile index. Don't know if this have > something to do with it. If i use static values everything is working fine. > > Kind regards, > -- > Peter Freimuth > > > On 2013-08-22, at 3:17 AM, thomas bonfort wrote: > > Peter, > can you email me your full mapfile, with the snippets you provided I > can't see anything wrong and would therefore need to see any > side-effects from the rest of the mapfile, and/or run it through a > debugger to see where it's failing. > > -- > thomas > > On 21 August 2013 01:26, Peter Freimuth wrote: > > Hi, > i am trying to get the dynamic variable substitution work on Mapserver > 6.3dev but somehow it does'nt work as it worked before and as documented. > When i execute > http://10.10.4.18/cgi-bin/LI_USA-MT.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,-115.666914&CRS=EPSG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE&STARTDATE=2011-01-01&ENDDATE=2013-09-01 > > or > > http://10.10.4.18/cgi-bin/LI_USA-MT.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,-115.666914&CRS=EPSG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE > > I get an error in > msDrawMap(): Image handling error. Failed to draw layer named 'data_view'. > msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: > invalid input syntax for type date: "%STARTDATE%" > LINE 8: ... (((acquisition_date >= date_trunc('day',date '%STARTDAT... > ^ > So the substitution does not happen or the default is not applied. > Any hint on what i am doing wrong would be great. > > See below the components from the mapfile: > > MAP > ..... > # > # Start of web interface definition > # > DATAPATTERN '^[a-zA-Z0-9\-\_\,]+$' > > WEB > IMAGEPATH "/mnt/mapserver/mapserver_wms/geocloud_config/image_path" > METADATA > ..... > 'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' > 'default_PRODUCTID' '1234567' > 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' > 'default_CONTRACT_IDS' '0000' > 'STARTDATE_validation_pattern' > '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > 'default_STARTDATE' '2011-01-01' > 'ENDDATE_validation_pattern' > '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > 'default_END_DATE' '2013-09-01' > END > VALIDATION > 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' > 'CONTRACTIDS' '^[a-zA-Z0-9\-\_\,]+$' > 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > 'ENDDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > END > END > ..... > LAYER > # this is the tileindex that aggregates the single image products > together and makes them accessible for the RASTER LAYER "data_view" and > "data_raw" for rendering > NAME "data_idx" > STATUS ON > DEBUG 5 > UNITS dd > TYPE POLYGON > EXTENT -116.364631680367 44.1932837062986 -103.698350095065 > 49.1892799088128 > PROCESSING "CLOSE_CONNECTION=DEFER" > CONNECTIONTYPE POSTGIS > CONNECTION "user=***** password=***** dbname=***** host='*****' > port=5432" > DATA "wkb_geom FROM (SELECT t1.* FROM (SELECT re3aip.cat_id as > archived_in_archiving_identifier, ico.image_id, ico.acquisition_date, > re3aip.tile_id, > ico.product_provider_image_identifier, re3aip.ohs_order_id, > re3aip.imagetake_cat_id, ico.epsg_code, > re3aip.ohs_contract_id, ico.service_name, > ico.footprint_poly::geometry as wkb_geom, ico.image_location, > ico.vrt_location > FROM ows.imagepool_catalogue_ows ico > JOIN ows.re_l3a_imagepool re3aip ON (re3aip.image_id=ico.image_id) > WHERE ico.service_name in ('LI_USA-MT') AND > (((acquisition_date >= date_trunc('day',date '%STARTDATE%') AND > acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 day'))) > AND > re3aip.ohs_contract_id in ('%CONTRACTID%') > ) t1 > LEFT OUTER JOIN > (SELECT ico.image_id, ico.acquisition_date, re3aip.tile_id > FROM ows.imagepool_catalogue_ows ico > JOIN ows.re_l3a_imagepool re3aip ON (re3aip.image_id=ico.image_id) > WHERE ico.service_name in ('LI_USA-MT') AND > (((acquisition_date >= date_trunc('day',date > '%STARTDATE%') AND > acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 day'))) > AND > re3aip.ohs_contract_id in ('%CONTRACTID%') > ) t2 > ON > t1.tile_id = t2.tile_id AND > ((t1.acquisition_date < t2.acquisition_date) OR > (t1.acquisition_date = t2.acquisition_date AND t1.image_id < t2.image_id)) > WHERE t2.tile_id is NULL > ORDER BY t1.ohs_contract_id, t1.tile_id > ) foo USING UNIQUE image_id USING > SRID=4326" > #FILTER ( '[product_provider_image_identifier]'='%PRODUCTID%') > PROJECTION > "init=epsg:4326" > END > METADATA > "ows_title" "Data Index" > "ows_extent" "-116.364631680367 44.1932837062986 > -103.698350095065 49.1892799088128" > #'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' > #'default_PRODUCTID' '1234567' > 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' > 'default_CONTRACTIDS' '0000' > 'STARTDATE_validation_pattern' > '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > 'default_STARTDATE' '2011-01-01' > 'ENDDATE_validation_pattern' > '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > 'default_ENDDATE' '2013-09-01' > #disable explicitly everything that shall not be supported for > this Layer > "wms_enable_request" "!GetCapabilities !GetMap > !GetLegendgraphic" > "wcs_enable_request" "!GetCapabilities !GetCoverage > !DescribeCoverage" > "wfs_enable_request" "!GetCapabilities !GetFeature > !DescribeFeatureType" > END > VALIDATION > 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' > 'CONTRACT_IDS' '^[a-zA-Z0-9\-\_\,]+$' > 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > 'END_DATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' > END > END > .... > END > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From akrherz at iastate.edu Fri Aug 23 06:39:42 2013 From: akrherz at iastate.edu (Daryl Herzmann) Date: Fri, 23 Aug 2013 08:39:42 -0500 Subject: [mapserver-users] Draw PHP labels In-Reply-To: References: Message-ID: Hello, Instead of: $oAirportsClass->label->set("size", 10); do: $oAirportsClass->getLabel(0)->set("size", 10); http://mapserver.org/mapscript/php/phpmapscript.html#classobj daryl On Wed, Aug 21, 2013 at 12:48 PM, Michael McInnis wrote: > Dear mapservers! > > My map fails to draw when I attempt to add labels from my labelitem "icao". > > Any attempt at using the label objects causes failure. I think I need to > create a label object > somehow before I use set() but can't find any examples on line. > > // The following occurs near the bottom of my php code snippet and is > commented to allow a successful draw. > > $oAirportsClass->label->set("size", 10); > > > > Can someone point me to a working example of drawing labels for a layer? > > Thanks > > > > > // Layer 3 airports-------------------------------------------------------- > > // Point Symbol > $nSymbolId = ms_newSymbolObj($oMap, "circle"); > $oSymbol = $oMap->getsymbolobjectbyid($nSymbolId); > $oSymbol->set("type", MS_SYMBOL_ELLIPSE); > $oSymbol->set("filled", MS_TRUE); > $aPoints[0] = 1; > $aPoints[1] = 1; > $oSymbol->setpoints($aPoints); > > // Layer > $oLayerAirports = ms_newLayerObj($oMap); > $oLayerAirports->setConnectionType(MS_POSTGIS); > $oLayerAirports->set("name", "airports"); > $oLayerAirports->set("type", MS_LAYER_POINT); > $oLayerAirports->set("status", MS_DEFAULT); > $oLayerAirports->set("labelitem", "icao"); > //$oLayerAirports->set("classitem", "MyAirports"); > $oLayerAirports->set("connection", "host=xxx port=xxxx dbname=xxxx user=xxxx password=xxxx"); > $oLayerAirports->set("data", "geom From (select a.icao, geom From airports a left join airportdata e on a.icao = e.icao where e.icao Is Not Null) as subquery using unique icao using srid=4326"); > > // Class with Labels > $oAirportsClass = ms_newClassObj($oLayerAirports); > $oAirportsClass->set("name","MyAirports"); > > // Style > $airportsStyle = ms_newStyleObj($oAirportsClass); > $airportsStyle->color->setRGB(255, 22, 22); > $airportsStyle->set("symbolname", "circle"); > $airportsStyle->set("size", "3"); > > //$oAirportsClass->label->set("size", 10); > //$oAirportsClass->label->color->setRGB(0,0,0); > > > > Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701 > > _______________________________________________ > 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 vinodkrverma at live.com Mon Aug 26 05:15:57 2013 From: vinodkrverma at live.com (vinodverma) Date: Mon, 26 Aug 2013 05:15:57 -0700 (PDT) Subject: [mapserver-users] EPSG:900913 Problem In-Reply-To: <1373349899788-5064881.post@n6.nabble.com> References: <1373281653997-5064677.post@n6.nabble.com> <76296258.ImVD3MUMsq@tatras> <1373349899788-5064881.post@n6.nabble.com> Message-ID: <1377519357192-5074312.post@n6.nabble.com> Hi All After giving so much time i had solved this problem. Actually we have to made changes in the osm-google.map which we can find in folder "basemaps", there we need to add projection 900913 as given below. WEB METADATA "ows_enable_request" "*" "wms_srs" "EPSG:4326 EPSG:3857 EPSG:900913 EPSG:2154 EPSG:310642901 EPSG:4171 EPSG:310024802 EPSG:310915814 EPSG:310486805 EPSG:310702807 EPSG:310700806 EPSG:310547809 EPSG:310706808 EPSG:310642810 EPSG:310642801 EPSG:310642812 EPSG:310032811 EPSG:310642813 EPSG:2986" "labelcache_map_edge_buffer" "-10" "wms_title" "osm france" END IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END DEBUG 1 CONFIG "MS_ERRORFILE" "stderr" CONFIG "PROJ_LIB" "/home/osm-demo/basemaps" PROJECTION "init=epsg: 900913 " END -- View this message in context: http://osgeo-org.1560.x6.nabble.com/EPSG-900913-Problem-tp5064677p5074312.html Sent from the Mapserver - User mailing list archive at Nabble.com. From freimuth69 at gmail.com Mon Aug 26 09:41:53 2013 From: freimuth69 at gmail.com (Peter Freimuth) Date: Mon, 26 Aug 2013 10:41:53 -0600 Subject: [mapserver-users] cgi variable substituition in DATA statement In-Reply-To: References: <5213FB0C.5030101@gmail.com> Message-ID: <521B8551.3090905@gmail.com> Hi Thomas, this is the wrapper script which is used: Somewhere in the documentation it says that this should do the same than using the standard cgi way so i expected it would also handle the variable substitution in the same way. import mapscript req = mapscript.OWSRequest() req.loadParams() map = mapscript.mapObj(r'/***/OwsDataStreamingTest/LI_USA-MT.map') map.OWSDispatch(req) exit() So if i switch to: #!/bin/sh MAPSERV="/usr/lib/cgi-bin/mapserv" MS_MAPFILE="/***/OwsDataSteamingTest/LI_USA-MT.map" exec ${MAPSERV} everything works fine. But if i try to run this as fcgi to make use of keeping the db connection and GDAL_CACHEMAX i get an error that "map" param is not set. Which mechanismn should be used in context of fcgi to make the map param in the URL unnecessary? Thanks, Peter On 23/08/2013 12:32 AM, thomas bonfort wrote: > yes, that's it. the substitutions only work for the mapserver CGI, not > mapscripts. if you're using mapscript, you can manipulate your mapfile > directly. > > -- > thomas > > On 23 August 2013 04:41, Peter Freimuth wrote: >> Hi, >> i will do so on Monday. Is it possible that the fact that we use a tiny map >> script wrapper to avoid the map file in the url have something to do with >> it. >> By the way i tried the leaving away of the single ' ' already but it just >> fails again because the parameter name doesn't get replaced. Thanks for all >> of your hints. >> Just to complete the circumstances. The map file uses the include mechanism >> to get the layer definitions and the layer which needs the substitutions is >> only referenced by a raster layer as an tile index. Don't know if this have >> something to do with it. If i use static values everything is working fine. >> >> Kind regards, >> -- >> Peter Freimuth >> >> >> On 2013-08-22, at 3:17 AM, thomas bonfort wrote: >> >> Peter, >> can you email me your full mapfile, with the snippets you provided I >> can't see anything wrong and would therefore need to see any >> side-effects from the rest of the mapfile, and/or run it through a >> debugger to see where it's failing. >> >> -- >> thomas >> >> On 21 August 2013 01:26, Peter Freimuth wrote: >> >> Hi, >> i am trying to get the dynamic variable substitution work on Mapserver >> 6.3dev but somehow it does'nt work as it worked before and as documented. >> When i execute >> http://10.10.4.18/cgi-bin/LI_USA-MT.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,-115.666914&CRS=EPSG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE&STARTDATE=2011-01-01&ENDDATE=2013-09-01 >> >> or >> >> http://10.10.4.18/cgi-bin/LI_USA-MT.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,-115.666914&CRS=EPSG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE >> >> I get an error in >> msDrawMap(): Image handling error. Failed to draw layer named 'data_view'. >> msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: >> invalid input syntax for type date: "%STARTDATE%" >> LINE 8: ... (((acquisition_date >= date_trunc('day',date '%STARTDAT... >> ^ >> So the substitution does not happen or the default is not applied. >> Any hint on what i am doing wrong would be great. >> >> See below the components from the mapfile: >> >> MAP >> ..... >> # >> # Start of web interface definition >> # >> DATAPATTERN '^[a-zA-Z0-9\-\_\,]+$' >> >> WEB >> IMAGEPATH "/mnt/mapserver/mapserver_wms/geocloud_config/image_path" >> METADATA >> ..... >> 'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >> 'default_PRODUCTID' '1234567' >> 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >> 'default_CONTRACT_IDS' '0000' >> 'STARTDATE_validation_pattern' >> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'default_STARTDATE' '2011-01-01' >> 'ENDDATE_validation_pattern' >> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'default_END_DATE' '2013-09-01' >> END >> VALIDATION >> 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' >> 'CONTRACTIDS' '^[a-zA-Z0-9\-\_\,]+$' >> 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'ENDDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> END >> END >> ..... >> LAYER >> # this is the tileindex that aggregates the single image products >> together and makes them accessible for the RASTER LAYER "data_view" and >> "data_raw" for rendering >> NAME "data_idx" >> STATUS ON >> DEBUG 5 >> UNITS dd >> TYPE POLYGON >> EXTENT -116.364631680367 44.1932837062986 -103.698350095065 >> 49.1892799088128 >> PROCESSING "CLOSE_CONNECTION=DEFER" >> CONNECTIONTYPE POSTGIS >> CONNECTION "user=***** password=***** dbname=***** host='*****' >> port=5432" >> DATA "wkb_geom FROM (SELECT t1.* FROM (SELECT re3aip.cat_id as >> archived_in_archiving_identifier, ico.image_id, ico.acquisition_date, >> re3aip.tile_id, >> ico.product_provider_image_identifier, re3aip.ohs_order_id, >> re3aip.imagetake_cat_id, ico.epsg_code, >> re3aip.ohs_contract_id, ico.service_name, >> ico.footprint_poly::geometry as wkb_geom, ico.image_location, >> ico.vrt_location >> FROM ows.imagepool_catalogue_ows ico >> JOIN ows.re_l3a_imagepool re3aip ON (re3aip.image_id=ico.image_id) >> WHERE ico.service_name in ('LI_USA-MT') AND >> (((acquisition_date >= date_trunc('day',date '%STARTDATE%') AND >> acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 day'))) >> AND >> re3aip.ohs_contract_id in ('%CONTRACTID%') >> ) t1 >> LEFT OUTER JOIN >> (SELECT ico.image_id, ico.acquisition_date, re3aip.tile_id >> FROM ows.imagepool_catalogue_ows ico >> JOIN ows.re_l3a_imagepool re3aip ON (re3aip.image_id=ico.image_id) >> WHERE ico.service_name in ('LI_USA-MT') AND >> (((acquisition_date >= date_trunc('day',date >> '%STARTDATE%') AND >> acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 day'))) >> AND >> re3aip.ohs_contract_id in ('%CONTRACTID%') >> ) t2 >> ON >> t1.tile_id = t2.tile_id AND >> ((t1.acquisition_date < t2.acquisition_date) OR >> (t1.acquisition_date = t2.acquisition_date AND t1.image_id < t2.image_id)) >> WHERE t2.tile_id is NULL >> ORDER BY t1.ohs_contract_id, t1.tile_id >> ) foo USING UNIQUE image_id USING >> SRID=4326" >> #FILTER ( '[product_provider_image_identifier]'='%PRODUCTID%') >> PROJECTION >> "init=epsg:4326" >> END >> METADATA >> "ows_title" "Data Index" >> "ows_extent" "-116.364631680367 44.1932837062986 >> -103.698350095065 49.1892799088128" >> #'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >> #'default_PRODUCTID' '1234567' >> 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >> 'default_CONTRACTIDS' '0000' >> 'STARTDATE_validation_pattern' >> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'default_STARTDATE' '2011-01-01' >> 'ENDDATE_validation_pattern' >> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'default_ENDDATE' '2013-09-01' >> #disable explicitly everything that shall not be supported for >> this Layer >> "wms_enable_request" "!GetCapabilities !GetMap >> !GetLegendgraphic" >> "wcs_enable_request" "!GetCapabilities !GetCoverage >> !DescribeCoverage" >> "wfs_enable_request" "!GetCapabilities !GetFeature >> !DescribeFeatureType" >> END >> VALIDATION >> 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' >> 'CONTRACT_IDS' '^[a-zA-Z0-9\-\_\,]+$' >> 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> 'END_DATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >> END >> END >> .... >> END >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> From thomas.bonfort at gmail.com Mon Aug 26 12:25:22 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 26 Aug 2013 21:25:22 +0200 Subject: [mapserver-users] cgi variable substituition in DATA statement In-Reply-To: <521B8551.3090905@gmail.com> References: <5213FB0C.5030101@gmail.com> <521B8551.3090905@gmail.com> Message-ID: http://mapserver.org/ogc/wms_server.html#apache-environment-variables-ms-mapfile just replace cgi-script by fcgid-script if you want to use fastcgi. there are other examples on that page, using a rewrite is also a possibility. -- thomas On 26 August 2013 18:41, Peter Freimuth wrote: > Hi Thomas, > this is the wrapper script which is used: > Somewhere in the documentation it says that this should do the same than > using the standard cgi way so i expected it would also handle the variable > substitution in the same way. > > import mapscript > req = mapscript.OWSRequest() > req.loadParams() > map = mapscript.mapObj(r'/***/OwsDataStreamingTest/LI_USA-MT.map') > map.OWSDispatch(req) > exit() > > So if i switch to: > > #!/bin/sh > MAPSERV="/usr/lib/cgi-bin/mapserv" > MS_MAPFILE="/***/OwsDataSteamingTest/LI_USA-MT.map" exec ${MAPSERV} > > everything works fine. > > But if i try to run this as fcgi to make use of keeping the db connection > and GDAL_CACHEMAX i get an error that "map" param is not set. > > Which mechanismn should be used in context of fcgi to make the map param in > the URL unnecessary? > > Thanks, > Peter > > > On 23/08/2013 12:32 AM, thomas bonfort wrote: >> >> yes, that's it. the substitutions only work for the mapserver CGI, not >> mapscripts. if you're using mapscript, you can manipulate your mapfile >> directly. >> >> -- >> thomas >> >> On 23 August 2013 04:41, Peter Freimuth wrote: >>> >>> Hi, >>> i will do so on Monday. Is it possible that the fact that we use a tiny >>> map >>> script wrapper to avoid the map file in the url have something to do with >>> it. >>> By the way i tried the leaving away of the single ' ' already but it >>> just >>> fails again because the parameter name doesn't get replaced. Thanks for >>> all >>> of your hints. >>> Just to complete the circumstances. The map file uses the include >>> mechanism >>> to get the layer definitions and the layer which needs the substitutions >>> is >>> only referenced by a raster layer as an tile index. Don't know if this >>> have >>> something to do with it. If i use static values everything is working >>> fine. >>> >>> Kind regards, >>> -- >>> Peter Freimuth >>> >>> >>> On 2013-08-22, at 3:17 AM, thomas bonfort >>> wrote: >>> >>> Peter, >>> can you email me your full mapfile, with the snippets you provided I >>> can't see anything wrong and would therefore need to see any >>> side-effects from the rest of the mapfile, and/or run it through a >>> debugger to see where it's failing. >>> >>> -- >>> thomas >>> >>> On 21 August 2013 01:26, Peter Freimuth wrote: >>> >>> Hi, >>> i am trying to get the dynamic variable substitution work on Mapserver >>> 6.3dev but somehow it does'nt work as it worked before and as documented. >>> When i execute >>> >>> http://10.10.4.18/cgi-bin/LI_USA-MT.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,-115.666914&CRS=EPSG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE&STARTDATE=2011-01-01&ENDDATE=2013-09-01 >>> >>> or >>> >>> >>> http://10.10.4.18/cgi-bin/LI_USA-MT.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,-115.666914&CRS=EPSG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE >>> >>> I get an error in >>> msDrawMap(): Image handling error. Failed to draw layer named >>> 'data_view'. >>> msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: >>> invalid input syntax for type date: "%STARTDATE%" >>> LINE 8: ... (((acquisition_date >= date_trunc('day',date >>> '%STARTDAT... >>> ^ >>> So the substitution does not happen or the default is not applied. >>> Any hint on what i am doing wrong would be great. >>> >>> See below the components from the mapfile: >>> >>> MAP >>> ..... >>> # >>> # Start of web interface definition >>> # >>> DATAPATTERN '^[a-zA-Z0-9\-\_\,]+$' >>> >>> WEB >>> IMAGEPATH >>> "/mnt/mapserver/mapserver_wms/geocloud_config/image_path" >>> METADATA >>> ..... >>> 'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >>> 'default_PRODUCTID' '1234567' >>> 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >>> 'default_CONTRACT_IDS' '0000' >>> 'STARTDATE_validation_pattern' >>> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>> 'default_STARTDATE' '2011-01-01' >>> 'ENDDATE_validation_pattern' >>> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>> 'default_END_DATE' '2013-09-01' >>> END >>> VALIDATION >>> 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' >>> 'CONTRACTIDS' '^[a-zA-Z0-9\-\_\,]+$' >>> 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>> 'ENDDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>> END >>> END >>> ..... >>> LAYER >>> # this is the tileindex that aggregates the single image products >>> together and makes them accessible for the RASTER LAYER "data_view" and >>> "data_raw" for rendering >>> NAME "data_idx" >>> STATUS ON >>> DEBUG 5 >>> UNITS dd >>> TYPE POLYGON >>> EXTENT -116.364631680367 44.1932837062986 -103.698350095065 >>> 49.1892799088128 >>> PROCESSING "CLOSE_CONNECTION=DEFER" >>> CONNECTIONTYPE POSTGIS >>> CONNECTION "user=***** password=***** dbname=***** host='*****' >>> port=5432" >>> DATA "wkb_geom FROM (SELECT t1.* FROM (SELECT re3aip.cat_id as >>> archived_in_archiving_identifier, ico.image_id, ico.acquisition_date, >>> re3aip.tile_id, >>> ico.product_provider_image_identifier, re3aip.ohs_order_id, >>> re3aip.imagetake_cat_id, ico.epsg_code, >>> re3aip.ohs_contract_id, ico.service_name, >>> ico.footprint_poly::geometry as wkb_geom, ico.image_location, >>> ico.vrt_location >>> FROM ows.imagepool_catalogue_ows ico >>> JOIN ows.re_l3a_imagepool re3aip ON (re3aip.image_id=ico.image_id) >>> WHERE ico.service_name in ('LI_USA-MT') AND >>> (((acquisition_date >= date_trunc('day',date '%STARTDATE%') AND >>> acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 >>> day'))) >>> AND >>> re3aip.ohs_contract_id in ('%CONTRACTID%') >>> ) t1 >>> LEFT OUTER JOIN >>> (SELECT ico.image_id, ico.acquisition_date, re3aip.tile_id >>> FROM ows.imagepool_catalogue_ows ico >>> JOIN ows.re_l3a_imagepool re3aip ON (re3aip.image_id=ico.image_id) >>> WHERE ico.service_name in ('LI_USA-MT') AND >>> (((acquisition_date >= date_trunc('day',date >>> '%STARTDATE%') AND >>> acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 >>> day'))) >>> AND >>> re3aip.ohs_contract_id in ('%CONTRACTID%') >>> ) t2 >>> ON >>> t1.tile_id = t2.tile_id AND >>> ((t1.acquisition_date < t2.acquisition_date) OR >>> (t1.acquisition_date = t2.acquisition_date AND t1.image_id < >>> t2.image_id)) >>> WHERE t2.tile_id is NULL >>> ORDER BY t1.ohs_contract_id, t1.tile_id >>> ) foo USING UNIQUE image_id USING >>> SRID=4326" >>> #FILTER ( '[product_provider_image_identifier]'='%PRODUCTID%') >>> PROJECTION >>> "init=epsg:4326" >>> END >>> METADATA >>> "ows_title" "Data Index" >>> "ows_extent" "-116.364631680367 44.1932837062986 >>> -103.698350095065 49.1892799088128" >>> #'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >>> #'default_PRODUCTID' '1234567' >>> 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >>> 'default_CONTRACTIDS' '0000' >>> 'STARTDATE_validation_pattern' >>> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>> 'default_STARTDATE' '2011-01-01' >>> 'ENDDATE_validation_pattern' >>> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>> 'default_ENDDATE' '2013-09-01' >>> #disable explicitly everything that shall not be supported >>> for >>> this Layer >>> "wms_enable_request" "!GetCapabilities !GetMap >>> !GetLegendgraphic" >>> "wcs_enable_request" "!GetCapabilities !GetCoverage >>> !DescribeCoverage" >>> "wfs_enable_request" "!GetCapabilities !GetFeature >>> !DescribeFeatureType" >>> END >>> VALIDATION >>> 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' >>> 'CONTRACT_IDS' '^[a-zA-Z0-9\-\_\,]+$' >>> 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>> 'END_DATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>> END >>> END >>> .... >>> END >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> > From jukka.rahkonen at mmmtike.fi Tue Aug 27 01:48:00 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 27 Aug 2013 08:48:00 +0000 Subject: [mapserver-users] MapServer 6.4 beta2 released Message-ID: <84446DEF76453C439E9E97E438E13A63022E21DE@suutari.haapa.mmm.fi> Hi, Is it possible to test this exact version on Windows? Development binaries at gisinternals are coming from trunk, aren't they? At least Windows binaries for the release candidate version would be nice to have when the time comes. -Jukka Rahkonen- thomas bonfort wrote: > > The MapServer Team is pleased to announce the release of MapServer > 6.4.0 beta2. This is the second beta on our way to a final 6.4 release, and > contains several fixes that we encourage you to test. Due to a conflict between > MapServer's and OGR's usage of the GEOS library, we now require that at least > version 3.1.0 of GEOS be used if needed. > > We currently have no blocking issues, so depending on this feedback phase our > next release might hopefully be a RC. > > The changelog since beta1 can be consulted here: > > http://mapserver.org/development/changelog/changelog-6-4.html#changelog- > 6-4-beta2 > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.4.0-beta2.tar.gz > > The binary distributions listed in the download page should be updated with > binaries for the new 6.4.0-beta2 release in the next couple of days. > > Once again we need your help to ensure a high quality product, so please help > out by testing your applications with this new code base. > > Thanks! - The MapServer Team > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Tue Aug 27 02:04:15 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 27 Aug 2013 11:04:15 +0200 Subject: [mapserver-users] cgi variable substituition in DATA statement In-Reply-To: <521B8551.3090905@gmail.com> References: <5213FB0C.5030101@gmail.com> <521B8551.3090905@gmail.com> Message-ID: Peter, I've updated the documentation to make this issue clearer. Feel free to amend if you see anything more is needed. https://github.com/mapserver/docs/commit/ff28660f9b3e25539921d0c39e2a47597d81ebd7 -- thomas On 26 August 2013 18:41, Peter Freimuth wrote: > Hi Thomas, > this is the wrapper script which is used: > Somewhere in the documentation it says that this should do the same than > using the standard cgi way so i expected it would also handle the variable > substitution in the same way. > > import mapscript > req = mapscript.OWSRequest() > req.loadParams() > map = mapscript.mapObj(r'/***/OwsDataStreamingTest/LI_USA-MT.map') > map.OWSDispatch(req) > exit() > > So if i switch to: > > #!/bin/sh > MAPSERV="/usr/lib/cgi-bin/mapserv" > MS_MAPFILE="/***/OwsDataSteamingTest/LI_USA-MT.map" exec ${MAPSERV} > > everything works fine. > > But if i try to run this as fcgi to make use of keeping the db connection > and GDAL_CACHEMAX i get an error that "map" param is not set. > > Which mechanismn should be used in context of fcgi to make the map param in > the URL unnecessary? > > Thanks, > Peter > > > On 23/08/2013 12:32 AM, thomas bonfort wrote: >> >> yes, that's it. the substitutions only work for the mapserver CGI, not >> mapscripts. if you're using mapscript, you can manipulate your mapfile >> directly. >> >> -- >> thomas >> >> On 23 August 2013 04:41, Peter Freimuth wrote: >>> >>> Hi, >>> i will do so on Monday. Is it possible that the fact that we use a tiny >>> map >>> script wrapper to avoid the map file in the url have something to do with >>> it. >>> By the way i tried the leaving away of the single ' ' already but it >>> just >>> fails again because the parameter name doesn't get replaced. Thanks for >>> all >>> of your hints. >>> Just to complete the circumstances. The map file uses the include >>> mechanism >>> to get the layer definitions and the layer which needs the substitutions >>> is >>> only referenced by a raster layer as an tile index. Don't know if this >>> have >>> something to do with it. If i use static values everything is working >>> fine. >>> >>> Kind regards, >>> -- >>> Peter Freimuth >>> >>> >>> On 2013-08-22, at 3:17 AM, thomas bonfort >>> wrote: >>> >>> Peter, >>> can you email me your full mapfile, with the snippets you provided I >>> can't see anything wrong and would therefore need to see any >>> side-effects from the rest of the mapfile, and/or run it through a >>> debugger to see where it's failing. >>> >>> -- >>> thomas >>> >>> On 21 August 2013 01:26, Peter Freimuth wrote: >>> >>> Hi, >>> i am trying to get the dynamic variable substitution work on Mapserver >>> 6.3dev but somehow it does'nt work as it worked before and as documented. >>> When i execute >>> >>> http://10.10.4.18/cgi-bin/LI_USA-MT.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,-115.666914&CRS=EPSG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE&STARTDATE=2011-01-01&ENDDATE=2013-09-01 >>> >>> or >>> >>> >>> http://10.10.4.18/cgi-bin/LI_USA-MT.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,-115.666914&CRS=EPSG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE >>> >>> I get an error in >>> msDrawMap(): Image handling error. Failed to draw layer named >>> 'data_view'. >>> msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: >>> invalid input syntax for type date: "%STARTDATE%" >>> LINE 8: ... (((acquisition_date >= date_trunc('day',date >>> '%STARTDAT... >>> ^ >>> So the substitution does not happen or the default is not applied. >>> Any hint on what i am doing wrong would be great. >>> >>> See below the components from the mapfile: >>> >>> MAP >>> ..... >>> # >>> # Start of web interface definition >>> # >>> DATAPATTERN '^[a-zA-Z0-9\-\_\,]+$' >>> >>> WEB >>> IMAGEPATH >>> "/mnt/mapserver/mapserver_wms/geocloud_config/image_path" >>> METADATA >>> ..... >>> 'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >>> 'default_PRODUCTID' '1234567' >>> 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >>> 'default_CONTRACT_IDS' '0000' >>> 'STARTDATE_validation_pattern' >>> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>> 'default_STARTDATE' '2011-01-01' >>> 'ENDDATE_validation_pattern' >>> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>> 'default_END_DATE' '2013-09-01' >>> END >>> VALIDATION >>> 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' >>> 'CONTRACTIDS' '^[a-zA-Z0-9\-\_\,]+$' >>> 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>> 'ENDDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>> END >>> END >>> ..... >>> LAYER >>> # this is the tileindex that aggregates the single image products >>> together and makes them accessible for the RASTER LAYER "data_view" and >>> "data_raw" for rendering >>> NAME "data_idx" >>> STATUS ON >>> DEBUG 5 >>> UNITS dd >>> TYPE POLYGON >>> EXTENT -116.364631680367 44.1932837062986 -103.698350095065 >>> 49.1892799088128 >>> PROCESSING "CLOSE_CONNECTION=DEFER" >>> CONNECTIONTYPE POSTGIS >>> CONNECTION "user=***** password=***** dbname=***** host='*****' >>> port=5432" >>> DATA "wkb_geom FROM (SELECT t1.* FROM (SELECT re3aip.cat_id as >>> archived_in_archiving_identifier, ico.image_id, ico.acquisition_date, >>> re3aip.tile_id, >>> ico.product_provider_image_identifier, re3aip.ohs_order_id, >>> re3aip.imagetake_cat_id, ico.epsg_code, >>> re3aip.ohs_contract_id, ico.service_name, >>> ico.footprint_poly::geometry as wkb_geom, ico.image_location, >>> ico.vrt_location >>> FROM ows.imagepool_catalogue_ows ico >>> JOIN ows.re_l3a_imagepool re3aip ON (re3aip.image_id=ico.image_id) >>> WHERE ico.service_name in ('LI_USA-MT') AND >>> (((acquisition_date >= date_trunc('day',date '%STARTDATE%') AND >>> acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 >>> day'))) >>> AND >>> re3aip.ohs_contract_id in ('%CONTRACTID%') >>> ) t1 >>> LEFT OUTER JOIN >>> (SELECT ico.image_id, ico.acquisition_date, re3aip.tile_id >>> FROM ows.imagepool_catalogue_ows ico >>> JOIN ows.re_l3a_imagepool re3aip ON (re3aip.image_id=ico.image_id) >>> WHERE ico.service_name in ('LI_USA-MT') AND >>> (((acquisition_date >= date_trunc('day',date >>> '%STARTDATE%') AND >>> acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 >>> day'))) >>> AND >>> re3aip.ohs_contract_id in ('%CONTRACTID%') >>> ) t2 >>> ON >>> t1.tile_id = t2.tile_id AND >>> ((t1.acquisition_date < t2.acquisition_date) OR >>> (t1.acquisition_date = t2.acquisition_date AND t1.image_id < >>> t2.image_id)) >>> WHERE t2.tile_id is NULL >>> ORDER BY t1.ohs_contract_id, t1.tile_id >>> ) foo USING UNIQUE image_id USING >>> SRID=4326" >>> #FILTER ( '[product_provider_image_identifier]'='%PRODUCTID%') >>> PROJECTION >>> "init=epsg:4326" >>> END >>> METADATA >>> "ows_title" "Data Index" >>> "ows_extent" "-116.364631680367 44.1932837062986 >>> -103.698350095065 49.1892799088128" >>> #'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >>> #'default_PRODUCTID' '1234567' >>> 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >>> 'default_CONTRACTIDS' '0000' >>> 'STARTDATE_validation_pattern' >>> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>> 'default_STARTDATE' '2011-01-01' >>> 'ENDDATE_validation_pattern' >>> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>> 'default_ENDDATE' '2013-09-01' >>> #disable explicitly everything that shall not be supported >>> for >>> this Layer >>> "wms_enable_request" "!GetCapabilities !GetMap >>> !GetLegendgraphic" >>> "wcs_enable_request" "!GetCapabilities !GetCoverage >>> !DescribeCoverage" >>> "wfs_enable_request" "!GetCapabilities !GetFeature >>> !DescribeFeatureType" >>> END >>> VALIDATION >>> 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' >>> 'CONTRACT_IDS' '^[a-zA-Z0-9\-\_\,]+$' >>> 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>> 'END_DATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>> END >>> END >>> .... >>> END >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> > From thomas.bonfort at gmail.com Tue Aug 27 02:25:51 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 27 Aug 2013 11:25:51 +0200 Subject: [mapserver-users] MapServer 6.4 beta2 released In-Reply-To: <84446DEF76453C439E9E97E438E13A63022E21DE@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63022E21DE@suutari.haapa.mmm.fi> Message-ID: Jukka, While I don't have a direct answer to your question, the binaries from gisinternals are fine for testing out beta releases, as for the time being we haven't branched off a 6.4 branch. Once we have branched and master gets updtaed for 7.0 features, I agree that having dedicated 6.4 binaries will be needed. regards, thomas On 27 August 2013 10:48, Rahkonen Jukka wrote: > Hi, > > Is it possible to test this exact version on Windows? Development binaries at gisinternals are coming from trunk, aren't they? At least Windows binaries for the release candidate version would be nice to have when the time comes. > > -Jukka Rahkonen- > > thomas bonfort wrote: >> >> The MapServer Team is pleased to announce the release of MapServer >> 6.4.0 beta2. This is the second beta on our way to a final 6.4 release, and >> contains several fixes that we encourage you to test. Due to a conflict between >> MapServer's and OGR's usage of the GEOS library, we now require that at least >> version 3.1.0 of GEOS be used if needed. >> >> We currently have no blocking issues, so depending on this feedback phase our >> next release might hopefully be a RC. >> >> The changelog since beta1 can be consulted here: >> >> http://mapserver.org/development/changelog/changelog-6-4.html#changelog- >> 6-4-beta2 >> >> The source for this release can be downloaded at: >> >> http://mapserver.org/download.html >> or >> http://download.osgeo.org/mapserver/mapserver-6.4.0-beta2.tar.gz >> >> The binary distributions listed in the download page should be updated with >> binaries for the new 6.4.0-beta2 release in the next couple of days. >> >> Once again we need your help to ensure a high quality product, so please help >> out by testing your applications with this new code base. >> >> Thanks! - The MapServer Team >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jukka.rahkonen at mmmtike.fi Tue Aug 27 03:49:52 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 27 Aug 2013 10:49:52 +0000 Subject: [mapserver-users] Min/max pixelsize vs. min/max scaledenom Message-ID: <84446DEF76453C439E9E97E438E13A63022E228E@suutari.haapa.mmm.fi> Hi, Frank Broniewski wrote the following question to the Mapnik users list a few hours ago and I started to think that I would like to have such min/max pixelsize setting in Mapserver. I can simply get the native pixel size of our maps with gdalinfo or something and I can estimate that when I am showing a topographic map with 1 m native pixel size on the screen the texts are readable and map looks good approximately at resolutions between 0.75 - 1.5 m/pixel. Now it would be nice to write into mapfile the scale range as MINPIXELSIZE "0.75" MAXPIXELSIZE "1.5" I know that scale in Mapserver is based on a resolution on 72 dots per inch and that inch is 0.0254 meters and I can calculate that the native resolution of the map expressed as "one image pixel drawn as one dot on the 72 DPI screen" means scale of 1:2836.65 and that I can write my good resolution range in a mapfile as MINSCALEDENOM "2126" MAXSCALEDENOM "4252". However, as Frank Broniewski writes, OpenLayers and tile cache programs like MapCaceh, MapProxy and GeoWebcache are configured by using "units per pixel". Why not to let Mapserver users use the same system in mapfile as an alternative for minscaledenom/maxscaledemon? And this is what Frank wrote " Hi all, is it possible to use a resolution parameter (meter / pixel, that what map.scale() outputs) instead of Min/Maxscaledenominator? That would be really helpful in order to arrange map styles between different software. Let's say I'm creating a map with a number of zoom levels and on each zoom level I'm changing the map, doing generalization or displaying more detail. The map is planned to be used in a web context with the Javascript OpenLayers Map library. Inbetween there is a proxy software like Mapproxy. Both OpenLayers and Mapproxy understand the principle of resolutions, ie natural distances per pixel. So I can define my map in OpenLayers with a list of resolutions like [500, 200, 100, etc.]. I can continue to use this list in Mapproxy so that each resolution matches a certain map layout. Unfortunately this breaks now because Mapnik uses scales in correlation with the dpi setting." -Jukka Rahkonen- From thomas.bonfort at gmail.com Tue Aug 27 04:14:10 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 27 Aug 2013 13:14:10 +0200 Subject: [mapserver-users] Min/max pixelsize vs. min/max scaledenom In-Reply-To: <84446DEF76453C439E9E97E438E13A63022E228E@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63022E228E@suutari.haapa.mmm.fi> Message-ID: Jukka, I would say that Frank also raised this issue on the mapserver list [1]. Am I mistaken or is your request identical? regards, thomas [1] http://osgeo-org.1560.x6.nabble.com/Scales-and-raster-maps-td5071674.html On 27 August 2013 12:49, Rahkonen Jukka wrote: > Hi, > > Frank Broniewski wrote the following question to the Mapnik users list a few hours ago and I started to think that I would like to have such min/max pixelsize setting in Mapserver. I can simply get the native pixel size of our maps with gdalinfo or something and I can estimate that when I am showing a topographic map with 1 m native pixel size on the screen the texts are readable and map looks good approximately at resolutions between 0.75 - 1.5 m/pixel. Now it would be nice to write into mapfile the scale range as > MINPIXELSIZE "0.75" > MAXPIXELSIZE "1.5" > > I know that scale in Mapserver is based on a resolution on 72 dots per inch and that inch is 0.0254 meters and I can calculate that the native resolution of the map expressed as "one image pixel drawn as one dot on the 72 DPI screen" means scale of 1:2836.65 and that I can write my good resolution range in a mapfile as > MINSCALEDENOM "2126" > MAXSCALEDENOM "4252". > > However, as Frank Broniewski writes, OpenLayers and tile cache programs like MapCaceh, MapProxy and GeoWebcache are configured by using "units per pixel". Why not to let Mapserver users use the same system in mapfile as an alternative for minscaledenom/maxscaledemon? > > And this is what Frank wrote > > " Hi all, > > is it possible to use a resolution parameter (meter / pixel, that what map.scale() outputs) instead of Min/Maxscaledenominator? That would be really helpful in order to arrange map styles between different software. > > Let's say I'm creating a map with a number of zoom levels and on each zoom level I'm changing the map, doing generalization or displaying more detail. The map is planned to be used in a web context with the Javascript OpenLayers Map library. Inbetween there is a proxy software like Mapproxy. Both OpenLayers and Mapproxy understand the principle of resolutions, ie natural distances per pixel. So I can define my map in OpenLayers with a list of resolutions like [500, 200, 100, etc.]. I can continue to use this list in Mapproxy so that each resolution matches a certain map layout. Unfortunately this breaks now because Mapnik uses scales in correlation with the dpi setting." > > -Jukka Rahkonen- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jukka.rahkonen at mmmtike.fi Tue Aug 27 04:53:53 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 27 Aug 2013 11:53:53 +0000 Subject: [mapserver-users] Min/max pixelsize vs. min/max scaledenom Message-ID: <84446DEF76453C439E9E97E438E13A63022E22D7@suutari.haapa.mmm.fi> Hi, Not quite identical because I can write my suggestion shorter. I think that this was my meaning: "If I set MINPIXELSIZE in a mapfile, let Mapserver to multiply it by 2834.645669 and use the result as MINSCALEDENOM and do the same thing with MAXPIXELSIZE and MAXSCALEDENOM." I am not sure anymore if it is worth the pain if it is really that simple. The formula for converting pixel size into scale could be added to MINSCALEDENOM/MAXSCALEDENOM documentation in http://mapserver.org/mapfile/layer.html or some other suitable place with a notice that it suits for meters. -Jukka- thomas bonfort wrote: > > Jukka, > I would say that Frank also raised this issue on the mapserver list [1]. Am I > mistaken or is your request identical? > > regards, > thomas > > [1] http://osgeo-org.1560.x6.nabble.com/Scales-and-raster-maps- > td5071674.html > > On 27 August 2013 12:49, Rahkonen Jukka > wrote: > > Hi, > > > > Frank Broniewski wrote the following question to the Mapnik users list > > a few hours ago and I started to think that I would like to have such min/max > pixelsize setting in Mapserver. I can simply get the native pixel size of our maps > with gdalinfo or something and I can estimate that when I am showing a > topographic map with 1 m native pixel size on the screen the texts are readable > and map looks good approximately at resolutions between 0.75 - 1.5 m/pixel. > Now it would be nice to write into mapfile the scale range as MINPIXELSIZE > "0.75" > > MAXPIXELSIZE "1.5" > > > > I know that scale in Mapserver is based on a resolution on 72 dots per > > inch and that inch is 0.0254 meters and I can calculate that the native > resolution of the map expressed as "one image pixel drawn as one dot on the 72 > DPI screen" means scale of 1:2836.65 and that I can write my good resolution > range in a mapfile as MINSCALEDENOM "2126" > > MAXSCALEDENOM "4252". > > > > However, as Frank Broniewski writes, OpenLayers and tile cache programs like > MapCaceh, MapProxy and GeoWebcache are configured by using "units per > pixel". Why not to let Mapserver users use the same system in mapfile as an > alternative for minscaledenom/maxscaledemon? > > > > And this is what Frank wrote > > > > " Hi all, > > > > is it possible to use a resolution parameter (meter / pixel, that what > map.scale() outputs) instead of Min/Maxscaledenominator? That would be > really helpful in order to arrange map styles between different software. > > > > Let's say I'm creating a map with a number of zoom levels and on each zoom > level I'm changing the map, doing generalization or displaying more detail. The > map is planned to be used in a web context with the Javascript OpenLayers Map > library. Inbetween there is a proxy software like Mapproxy. Both OpenLayers > and Mapproxy understand the principle of resolutions, ie natural distances per > pixel. So I can define my map in OpenLayers with a list of resolutions like [500, > 200, 100, etc.]. I can continue to use this list in Mapproxy so that each > resolution matches a certain map layout. Unfortunately this breaks now because > Mapnik uses scales in correlation with the dpi setting." > > > > -Jukka Rahkonen- > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Tara.Hemphill at l-3com.com Tue Aug 27 12:34:10 2013 From: Tara.Hemphill at l-3com.com (Tara.Hemphill at l-3com.com) Date: Tue, 27 Aug 2013 14:34:10 -0500 Subject: [mapserver-users] Mapserver 4.9 Message-ID: <9F1799794D4A604C9575A271EC1F321D290FF839@GVLMAIL02.is.l-3com.com> Does anyone know where I can obtain the source code for Mapserver v4.9? There are branches 4.8 and 4.10 on github, but no 4.9. I am required to archive the source code since we use FWTools which comes with Mapserver. Mapserver v4.9 is the documented version in the FWTools 2.2.8 Readme file. Thank you, Tara H. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Aug 27 12:41:27 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 27 Aug 2013 19:41:27 +0000 Subject: [mapserver-users] Mapserver 4.9 In-Reply-To: <9F1799794D4A604C9575A271EC1F321D290FF839@GVLMAIL02.is.l-3com.com> References: <9F1799794D4A604C9575A271EC1F321D290FF839@GVLMAIL02.is.l-3com.com> Message-ID: All the old tarballs are at: http://download.osgeo.org/mapserver/. I can't recommend using anything that old however. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tara.Hemphill at l-3com.com Sent: Tuesday, August 27, 2013 2:34 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver 4.9 Does anyone know where I can obtain the source code for Mapserver v4.9? There are branches 4.8 and 4.10 on github, but no 4.9. I am required to archive the source code since we use FWTools which comes with Mapserver. Mapserver v4.9 is the documented version in the FWTools 2.2.8 Readme file. Thank you, Tara H. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tara.Hemphill at l-3com.com Tue Aug 27 12:45:14 2013 From: Tara.Hemphill at l-3com.com (Tara.Hemphill at l-3com.com) Date: Tue, 27 Aug 2013 14:45:14 -0500 Subject: [mapserver-users] Mapserver 4.9 In-Reply-To: References: <9F1799794D4A604C9575A271EC1F321D290FF839@GVLMAIL02.is.l-3com.com> Message-ID: <9F1799794D4A604C9575A271EC1F321D290FF83A@GVLMAIL02.is.l-3com.com> Unfortunately Mapserver v4.9 is not on that page either. What happened to that branch? Thanks, Tara From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Tuesday, August 27, 2013 2:41 PM To: Hemphill, Tara @ ISG - MID; mapserver-users at lists.osgeo.org Subject: RE: Mapserver 4.9 All the old tarballs are at: http://download.osgeo.org/mapserver/. I can't recommend using anything that old however. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tara.Hemphill at l-3com.com Sent: Tuesday, August 27, 2013 2:34 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver 4.9 Does anyone know where I can obtain the source code for Mapserver v4.9? There are branches 4.8 and 4.10 on github, but no 4.9. I am required to archive the source code since we use FWTools which comes with Mapserver. Mapserver v4.9 is the documented version in the FWTools 2.2.8 Readme file. Thank you, Tara H. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Tue Aug 27 12:47:52 2013 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 27 Aug 2013 15:47:52 -0400 Subject: [mapserver-users] Mapserver 4.9 In-Reply-To: References: <9F1799794D4A604C9575A271EC1F321D290FF839@GVLMAIL02.is.l-3com.com> Message-ID: <521D0268.6080707@mapgears.com> Note that 4.9 was never released, odd numbers are used to refer to the state of the code during development leading to the next even number, i.e. 4.9 was the dev version leading to the 4.10 release. So it seems that FWTools was based on a snapshot of the source tree sometimes between the 4.8 and the 4.10 release. You best bet may be to use the 4.10 source, or otherwise you'll have to look for the exact date or revision number of the source that was used to build FWTools and extract that version of the source from the github repository. Daniel On 13-08-27 3:41 PM, Lime, Steve D (MNIT) wrote: > All the old tarballs are at: http://download.osgeo.org/mapserver/. I > can?t recommend using anything that old however. > > Steve > > *From:*mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of > *Tara.Hemphill at l-3com.com > *Sent:* Tuesday, August 27, 2013 2:34 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] Mapserver 4.9 > > Does anyone know where I can obtain the source code for Mapserver v4.9? > There are branches 4.8 and 4.10 on github, but no 4.9. I am required to > archive the source code since we use FWTools which comes with Mapserver. > Mapserver v4.9 is the documented version in the FWTools 2.2.8 Readme file. > > Thank you, > > Tara H. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From brfr at metrico.lu Tue Aug 27 23:46:26 2013 From: brfr at metrico.lu (Frank Broniewski) Date: Wed, 28 Aug 2013 08:46:26 +0200 Subject: [mapserver-users] Min/max pixelsize vs. min/max scaledenom In-Reply-To: References: <84446DEF76453C439E9E97E438E13A63022E228E@suutari.haapa.mmm.fi> Message-ID: <521D9CC2.6080109@metrico.lu> Hey there, yes, that's me again :-) I'm currently poking around in map rendering software like mapserver and mapnik. I'd like to find out how I can organize my map publishing scheme most efficiently. It seems I'm hitting the same spot with all rendering softwares. I wrote my mapserver question Thomas refers to, to the mapserver-dev list because I thought this would be a more appropriate place than the general user list. So I guess it didn't trigger that much attention ... BTW. I created a google spreadsheet [1] for calculating a scale based on a desired meter / pixel value. Probably very trivial but maybe helpful in some situations ... [1] https://docs.google.com/spreadsheet/ccc?key=0ArIoTsX_X90tdFRLQzI5MlRVUXk3NFdfM3dNdE1wYmc&usp=sharing Am 2013-08-27 13:14, schrieb thomas bonfort: > Jukka, > I would say that Frank also raised this issue on the mapserver list > [1]. Am I mistaken or is your request identical? > > regards, > thomas > > [1] http://osgeo-org.1560.x6.nabble.com/Scales-and-raster-maps-td5071674.html > > On 27 August 2013 12:49, Rahkonen Jukka wrote: >> Hi, >> >> Frank Broniewski wrote the following question to the Mapnik users list a few hours ago and I started to think that I would like to have such min/max pixelsize setting in Mapserver. I can simply get the native pixel size of our maps with gdalinfo or something and I can estimate that when I am showing a topographic map with 1 m native pixel size on the screen the texts are readable and map looks good approximately at resolutions between 0.75 - 1.5 m/pixel. Now it would be nice to write into mapfile the scale range as >> MINPIXELSIZE "0.75" >> MAXPIXELSIZE "1.5" >> >> I know that scale in Mapserver is based on a resolution on 72 dots per inch and that inch is 0.0254 meters and I can calculate that the native resolution of the map expressed as "one image pixel drawn as one dot on the 72 DPI screen" means scale of 1:2836.65 and that I can write my good resolution range in a mapfile as >> MINSCALEDENOM "2126" >> MAXSCALEDENOM "4252". >> >> However, as Frank Broniewski writes, OpenLayers and tile cache programs like MapCaceh, MapProxy and GeoWebcache are configured by using "units per pixel". Why not to let Mapserver users use the same system in mapfile as an alternative for minscaledenom/maxscaledemon? >> >> And this is what Frank wrote >> >> " Hi all, >> >> is it possible to use a resolution parameter (meter / pixel, that what map.scale() outputs) instead of Min/Maxscaledenominator? That would be really helpful in order to arrange map styles between different software. >> >> Let's say I'm creating a map with a number of zoom levels and on each zoom level I'm changing the map, doing generalization or displaying more detail. The map is planned to be used in a web context with the Javascript OpenLayers Map library. Inbetween there is a proxy software like Mapproxy. Both OpenLayers and Mapproxy understand the principle of resolutions, ie natural distances per pixel. So I can define my map in OpenLayers with a list of resolutions like [500, 200, 100, etc.]. I can continue to use this list in Mapproxy so that each resolution matches a certain map layout. Unfortunately this breaks now because Mapnik uses scales in correlation with the dpi setting." >> >> -Jukka Rahkonen- >> _______________________________________________ >> 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 > > -- Frank BRONIEWSKI METRICO s.? r.l. g?om?tres technologies d'information g?ographique rue des Romains 36 L-5433 NIEDERDONVEN t?l.: +352 26 74 94 - 28 fax.: +352 26 74 94 99 http://www.metrico.lu From K.Hirst at bom.gov.au Wed Aug 28 01:11:53 2013 From: K.Hirst at bom.gov.au (Kathleen Hirst) Date: Wed, 28 Aug 2013 18:11:53 +1000 Subject: [mapserver-users] Point and radius features [SEC=UNCLASSIFIED] Message-ID: Dear List, I'm using MapServer to show a point and a radius (in kilometres) from the same point as part of the GetMap request I'm using the following: &map.layer[location]=&map.layer[location]=FEATURE+POINTS+144.97+-37.81+END+TEXT+'Melbourne'+END+END &map.layer[radius]=FEATURE+POINTS+144.97+-37.81+END+END &map.layer[radius].class[0].style[0]=SIZE+40+END+END &map.layer[radius].class[0].style[1]=SIZE+40+END+END The layer, radius configuration is shown below, where the size of the symbol is half the size of the radius. The map projection is EPSG:4283. The circle drawn for the radius does not seem accurate eg for a 20 km radius, it is about 1.1 km out. Is there a better way to do this? Eg using type CIRCLE. Any help would be appreciated. LAYER STATUS ON NAME "radius" TEMPLATE "/web/etc/ws/gis/mapserver/query_templates/generic_empty.html" TYPE POINT SIZEUNITS KILOMETERS CLASS NAME "Search radius" STYLE SYMBOL "circle_ol" COLOR 198 134 0 END STYLE SYMBOL "cross" COLOR 198 134 0 WIDTH 0.1 END END .. END Thanks Kathleen -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Wed Aug 28 07:15:17 2013 From: andy at squeakycode.net (andy) Date: Wed, 28 Aug 2013 09:15:17 -0500 Subject: [mapserver-users] overlaysymbol depreciated? Message-ID: <521E05F5.5040009@squeakycode.net> My current maps have railroads displayed like this: CLASS NAME 'Railroad' SYMBOL 'circle' COLOR 0 0 0 SIZE 1 OVERLAYSYMBOL 'railway' OVERLAYCOLOR 0 0 0 OVERLAYSIZE 7 STYLE GAP -25 END END Which works. But OverlaySymbol and friends don't seem to be documented. Did they go away at some point? What should I be using instead? Thanks, -Andy From thomas.bonfort at gmail.com Wed Aug 28 07:25:08 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 28 Aug 2013 16:25:08 +0200 Subject: [mapserver-users] overlaysymbol depreciated? In-Reply-To: <521E05F5.5040009@squeakycode.net> References: <521E05F5.5040009@squeakycode.net> Message-ID: They've been deprecated ages ago... not sure when and if they were actually removed completely... CLASS NAME 'Railroad' STYLE COLOR 0 0 0 WIDTH 1 END STYLE SYMBOL 'railway' COLOR 0 0 0 SIZE 7 GAP -25 END END On 28 August 2013 16:15, andy wrote: > My current maps have railroads displayed like this: > > CLASS > NAME 'Railroad' > SYMBOL 'circle' > COLOR 0 0 0 > SIZE 1 > OVERLAYSYMBOL 'railway' > OVERLAYCOLOR 0 0 0 > OVERLAYSIZE 7 > STYLE > GAP -25 > END > END > > Which works. But OverlaySymbol and friends don't seem to be documented. > Did they go away at some point? What should I be using instead? > > Thanks, > > -Andy > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From andy at squeakycode.net Wed Aug 28 07:29:41 2013 From: andy at squeakycode.net (andy) Date: Wed, 28 Aug 2013 09:29:41 -0500 Subject: [mapserver-users] overlaysymbol depreciated? In-Reply-To: References: <521E05F5.5040009@squeakycode.net> Message-ID: <521E0955.8000607@squeakycode.net> It still draw's correctly, so I'd say its still in the code (I'm running 6.2.1). Reading: http://mapserver.org/mapfile/symbology/construction.html it looks like I want have multiple SYLE's listed. Something like: CLASS NAME 'Railroad' STYLE SYMBOL 0 COLOR 0 0 0 SIZE 1 END STYLE SYMBOL 'railway' COLOR 0 0 0 SIZE 7 GAP -25 END END Yes? -Andy On 8/28/2013 9:25 AM, thomas bonfort wrote: > They've been deprecated ages ago... not sure when and if they were > actually removed completely... > > CLASS > NAME 'Railroad' > STYLE > COLOR 0 0 0 > WIDTH 1 > END > STYLE > SYMBOL 'railway' > COLOR 0 0 0 > SIZE 7 > GAP -25 > END > END > > On 28 August 2013 16:15, andy wrote: >> My current maps have railroads displayed like this: >> >> CLASS >> NAME 'Railroad' >> SYMBOL 'circle' >> COLOR 0 0 0 >> SIZE 1 >> OVERLAYSYMBOL 'railway' >> OVERLAYCOLOR 0 0 0 >> OVERLAYSIZE 7 >> STYLE >> GAP -25 >> END >> END >> >> Which works. But OverlaySymbol and friends don't seem to be documented. >> Did they go away at some point? What should I be using instead? >> >> Thanks, >> >> -Andy >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From raizrobert at gmail.com Wed Aug 28 08:35:41 2013 From: raizrobert at gmail.com (Robert R. Raiz) Date: Wed, 28 Aug 2013 18:35:41 +0300 Subject: [mapserver-users] shptree command does not change .qix 'date modified' when re-run? Message-ID: Hello, A thing I noticed today is that when I run the shptree command on a shapefile that already has a .qix file, a simple ls -l command shows the old date of the file, it does not see it as being replaced. Is anyone familiar with this behavior? I am not sure if it replaces the file or not. -- *Raiz Roland Robert* -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Aug 28 12:29:36 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 28 Aug 2013 19:29:36 +0000 Subject: [mapserver-users] shptree command does not change .qix 'date modified' when re-run? In-Reply-To: References: Message-ID: Working as expected on SuSE 11, I see the timestamp change. I did notice that the utility doesn't produce an error if it can't create the file for some reason (I tested with permissions), it just fails silently. Maybe you're running into that? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert R. Raiz Sent: Wednesday, August 28, 2013 10:36 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] shptree command does not change .qix 'date modified' when re-run? Hello, A thing I noticed today is that when I run the shptree command on a shapefile that already has a .qix file, a simple ls -l command shows the old date of the file, it does not see it as being replaced. Is anyone familiar with this behavior? I am not sure if it replaces the file or not. -- Raiz Roland Robert -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Wed Aug 28 13:48:30 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 28 Aug 2013 20:48:30 +0000 Subject: [mapserver-users] Min/max pixelsize vs. min/max scaledenom In-Reply-To: <521D9CC2.6080109@metrico.lu> References: <84446DEF76453C439E9E97E438E13A63022E228E@suutari.haapa.mmm.fi> , <521D9CC2.6080109@metrico.lu> Message-ID: <84446DEF76453C439E9E97E438E13A63022E2C18@suutari.haapa.mmm.fi> Hi, Your spreadsheet may be trivial but still was useful. I had used resolution of 72 DPI in my scale-to-pixel-size conversion because I had understood that it is what Mapserver is using when it calculates the WMS scalehint. But now I see that when playing with min/maxscaledenominators the screen pixel size of 0.28 mm is used which makes 91 DPI. Could someone who knows the Mapserver code say the final word and verify that scaledenominator 3.571,4286 is producing 1 metre pixels? -Jukka Rahkonen- Frank Broniewski wrote: > Hey there, > yes, that's me again :-) > I'm currently poking around in map rendering software like mapserver and > mapnik. I'd like to find out how I can organize my map publishing scheme > most efficiently. It seems I'm hitting the same spot with all rendering > softwares. > I wrote my mapserver question Thomas refers to, to the mapserver-dev > list because I thought this would be a more appropriate place than the > general user list. So I guess it didn't trigger that much attention ... > BTW. I created a google spreadsheet [1] for calculating a scale based on > a desired meter / pixel value. Probably very trivial but maybe helpful > in some situations ... [1] https://docs.google.com/spreadsheet/ccc?key=0ArIoTsX_X90tdFRLQzI5MlRVUXk3NFdfM3dNdE1wYmc&usp=sharing Am 2013-08-27 13:14, schrieb thomas bonfort: > Jukka, > I would say that Frank also raised this issue on the mapserver list > [1]. Am I mistaken or is your request identical? > > regards, > thomas > > [1] http://osgeo-org.1560.x6.nabble.com/Scales-and-raster-maps-td5071674.html > > On 27 August 2013 12:49, Rahkonen Jukka wrote: >> Hi, >> >> Frank Broniewski wrote the following question to the Mapnik users list a few hours ago and I started to think that I would like to have such min/max pixelsize setting in Mapserver. I can simply get the native pixel size of our maps with gdalinfo or something and I can estimate that when I am showing a topographic map with 1 m native pixel size on the screen the texts are readable and map looks good approximately at resolutions between 0.75 - 1.5 m/pixel. Now it would be nice to write into mapfile the scale range as >> MINPIXELSIZE "0.75" >> MAXPIXELSIZE "1.5" >> >> I know that scale in Mapserver is based on a resolution on 72 dots per inch and that inch is 0.0254 meters and I can calculate that the native resolution of the map expressed as "one image pixel drawn as one dot on the 72 DPI screen" means scale of 1:2836.65 and that I can write my good resolution range in a mapfile as >> MINSCALEDENOM "2126" >> MAXSCALEDENOM "4252". >> >> However, as Frank Broniewski writes, OpenLayers and tile cache programs like MapCaceh, MapProxy and GeoWebcache are configured by using "units per pixel". Why not to let Mapserver users use the same system in mapfile as an alternative for minscaledenom/maxscaledemon? >> >> And this is what Frank wrote >> >> " Hi all, >> >> is it possible to use a resolution parameter (meter / pixel, that what map.scale() outputs) instead of Min/Maxscaledenominator? That would be really helpful in order to arrange map styles between different software. >> >> Let's say I'm creating a map with a number of zoom levels and on each zoom level I'm changing the map, doing generalization or displaying more detail. The map is planned to be used in a web context with the Javascript OpenLayers Map library. Inbetween there is a proxy software like Mapproxy. Both OpenLayers and Mapproxy understand the principle of resolutions, ie natural distances per pixel. So I can define my map in OpenLayers with a list of resolutions like [500, 200, 100, etc.]. I can continue to use this list in Mapproxy so that each resolution matches a certain map layout. Unfortunately this breaks now because Mapnik uses scales in correlation with the dpi setting." >> >> -Jukka Rahkonen- >> _______________________________________________ >> 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 > > -- Frank BRONIEWSKI METRICO s.? r.l. g?om?tres technologies d'information g?ographique rue des Romains 36 L-5433 NIEDERDONVEN t?l.: +352 26 74 94 - 28 fax.: +352 26 74 94 99 http://www.metrico.lu _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From mmcinnis59 at msn.com Wed Aug 28 13:51:41 2013 From: mmcinnis59 at msn.com (Michael McInnis) Date: Wed, 28 Aug 2013 13:51:41 -0700 Subject: [mapserver-users] Draw PHP labels In-Reply-To: References: , Message-ID: Thanks for the suggestion. Actually, my problem was in the font and size definitions. Once I happened upon those assignments (below in the // Label section) my label text magically appeared. You would think the text would default to something like everything else. Thank you for all the feedback! // Layer 3 airports-------------------------------------------------------- // Point Symbol $nSymbolId = ms_newSymbolObj($oMap, "circle"); $oSymbol = $oMap->getsymbolobjectbyid($nSymbolId); $oSymbol->set("type", MS_SYMBOL_ELLIPSE); $oSymbol->set("filled", MS_TRUE); $aPoints[0] = 1; $aPoints[1] = 1; $oSymbol->setpoints($aPoints); // Layer $oLayerAirports = ms_newLayerObj($oMap); $oLayerAirports->setConnectionType(MS_POSTGIS); $oLayerAirports->set("name", "airports"); $oLayerAirports->set("type", MS_LAYER_POINT); # This is crucial //$oLayerAirports->set("type", MS_LAYER_ANNOTATION); # This is crucial $oLayerAirports->set("status", MS_DEFAULT); $oLayerAirports->set("labelitem", "icao"); //$oLayerAirports->set("classitem", "MyAirports"); $oLayerAirports->set("connection", "host=xxx port=xxx dbname=xxx user=xxx password=xxx"); $oLayerAirports->set("data", "geom From (select a.icao, geom From airports a left join airportdata e on a.icao = e.icao where e.icao Is Not Null) as subquery using unique icao using srid=4326"); // Class with Labels $oAirportsClass = ms_newClassObj($oLayerAirports); $oAirportsClass->set("name","MyAirports"); // Style $airportsStyle = ms_newStyleObj($oAirportsClass); $airportsStyle->color->setRGB(255, 22, 22); $airportsStyle->set("symbolname", "circle"); $airportsStyle->set("size", "3"); // Label $oAirportsClass->label->color->setRGB(0,0,0); $oAirportsClass->label->set("font", "verdana"); $oAirportsClass->label->set("size", "tiny"); $oAirportsClass->label->set("position", MS_AUTO); $oAirportsClass->label->set("antialias", MS_TRUE); -------------- next part -------------- An HTML attachment was scrubbed... URL: From chheangbe at gmail.com Wed Aug 28 14:39:16 2013 From: chheangbe at gmail.com (geoguru) Date: Wed, 28 Aug 2013 14:39:16 -0700 (PDT) Subject: [mapserver-users] WMS GeoTIFF query with multiple bands Message-ID: <1377725956162-5074859.post@n6.nabble.com> How would you go about serving a 16bit GeoTIFF with n number of bands and be able to have the WMS query return all the bands in the GeoTIFF. I've attempted to use the GDAL/GTiff driver to return tiffs, but could only return a max of 4 bands using the RGBA ImageMode. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-GeoTIFF-query-with-multiple-bands-tp5074859.html Sent from the Mapserver - User mailing list archive at Nabble.com. From chheangbe at gmail.com Wed Aug 28 14:41:07 2013 From: chheangbe at gmail.com (Chheang Be) Date: Wed, 28 Aug 2013 14:41:07 -0700 Subject: [mapserver-users] WMS GeoTIFF query with multiple bands Message-ID: How would you go about serving a 16bit GeoTIFF with n number of bands and be able to have the WMS query return all the bands in the GeoTIFF. I've attempted to use the GDAL/GTiff driver to return tiffs, but could only return a max of 4 bands using the RGBA ImageMode. -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Wed Aug 28 14:51:53 2013 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 28 Aug 2013 14:51:53 -0700 Subject: [mapserver-users] WMS GeoTIFF query with multiple bands In-Reply-To: <1377725956162-5074859.post@n6.nabble.com> References: <1377725956162-5074859.post@n6.nabble.com> Message-ID: Chheang Be, You will want IMAGEMODE INT16 which takes a quite distinct code path which supports multiple bands. You may also need to use FORMAT "GDAL/GTiff" in your OUTPUTFORMAT declaration for this to work properly, I don't exactly recall. The BANDS declaration may also be of use if you want to control the band selection. See: http://mapserver.org/mapfile/outputformat.html https://github.com/mapserver/msautotest/blob/master/gdal/rawmode_multiband.map Best regards, Frank On Wed, Aug 28, 2013 at 2:39 PM, geoguru wrote: > How would you go about serving a 16bit GeoTIFF with n number of bands and > be > able to have the WMS query return all the bands in the GeoTIFF. I've > attempted to use the GDAL/GTiff driver to return tiffs, but could only > return a max of 4 bands using the RGBA ImageMode. > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/WMS-GeoTIFF-query-with-multiple-bands-tp5074859.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 > -- ---------------------------------------+-------------------------------------- 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 Software Developer -------------- next part -------------- An HTML attachment was scrubbed... URL: From tchaddad at gmail.com Wed Aug 28 16:31:29 2013 From: tchaddad at gmail.com (TC Haddad) Date: Wed, 28 Aug 2013 16:31:29 -0700 Subject: [mapserver-users] Orientation of vector symbols on a LINE Message-ID: Hello, I'm trying to understand symbol orientation and (maybe) use of ANCHORPOINT on a line in Mapserver 6.2. The vector symbol that I have been using for line cartography in MapServer 6.0.3 is below, and I am trying to get the same effect in Mapserver 6.2.1. SYMBOL NAME "wavy_line" TYPE vector POINTS 0 0 1 1 2 1 3 0 4 -1 5 -1 6 0 END END Display in Mapserver 6.0.3: https://dl.dropboxusercontent.com/u/42845001/mapserver6.0.3.png Relevant Style bloc from Mapserver 6.0.3: STYLE SYMBOL "wavy_line" WIDTH 1 SIZE 2 GAP -1 COLOR 0 0 0 END This did not translate directly to Mapserver 6.2.1, but I came close with this: STYLE SYMBOL "wavy_line" WIDTH 1 SIZE 4 GAP 6 COLOR 0 0 0 END which produced this: https://dl.dropboxusercontent.com/u/42845001/mapserver6.2.1.png Obviously I am missing something about how to get the symbol to orient along the line, I played with ANCHORPOINT as that was new in 6.2 and it seemed like the default of 0.5 0.5 should work for my symbol, but I also tried several other value combinations and it seemed to merely shift the symbol around laterally, while maintaining an upright orientation. So I'm a bit confused on how to achieve the original effect, (behavior something like the equivalent of FOLLOW for Labels). Any pointers appreciated... -------------- next part -------------- An HTML attachment was scrubbed... URL: From freimuth69 at gmail.com Wed Aug 28 20:21:51 2013 From: freimuth69 at gmail.com (Peter Freimuth) Date: Wed, 28 Aug 2013 21:21:51 -0600 Subject: [mapserver-users] Fwd: cgi variable substituition in DATA statement References: Message-ID: <50164AE7-035F-48E3-8ADE-348D12EAE4FF@gmail.com> Hi everybody, thanks for all the hints and solutions. After switching to a shell script wrapper everything works perfectly. I needed to adapt my reg expressions to get it work by removing the ^ at the beginning and the $ at the end. Thanks again for the great support. I know why the umm mapserver is one of the best software projects in the OSGEO environment. Functionality is great and stable and support through dev and user list is always great. Best, Peter -- Peter Freimuth Begin forwarded message: > From: thomas bonfort > Subject: Re: [mapserver-users] cgi variable substituition in DATA statement > Date: 27 August, 2013 3:04:15 AM MDT > To: Peter Freimuth > Cc: MapserverList OSGEO > > Peter, > I've updated the documentation to make this issue clearer. Feel free > to amend if you see anything more is needed. > > https://github.com/mapserver/docs/commit/ff28660f9b3e25539921d0c39e2a47597d81ebd7 > > -- > thomas > > On 26 August 2013 18:41, Peter Freimuth wrote: >> Hi Thomas, >> this is the wrapper script which is used: >> Somewhere in the documentation it says that this should do the same than >> using the standard cgi way so i expected it would also handle the variable >> substitution in the same way. >> >> import mapscript >> req = mapscript.OWSRequest() >> req.loadParams() >> map = mapscript.mapObj(r'/***/OwsDataStreamingTest/LI_USA-MT.map') >> map.OWSDispatch(req) >> exit() >> >> So if i switch to: >> >> #!/bin/sh >> MAPSERV="/usr/lib/cgi-bin/mapserv" >> MS_MAPFILE="/***/OwsDataSteamingTest/LI_USA-MT.map" exec ${MAPSERV} >> >> everything works fine. >> >> But if i try to run this as fcgi to make use of keeping the db connection >> and GDAL_CACHEMAX i get an error that "map" param is not set. >> >> Which mechanismn should be used in context of fcgi to make the map param in >> the URL unnecessary? >> >> Thanks, >> Peter >> >> >> On 23/08/2013 12:32 AM, thomas bonfort wrote: >>> >>> yes, that's it. the substitutions only work for the mapserver CGI, not >>> mapscripts. if you're using mapscript, you can manipulate your mapfile >>> directly. >>> >>> -- >>> thomas >>> >>> On 23 August 2013 04:41, Peter Freimuth wrote: >>>> >>>> Hi, >>>> i will do so on Monday. Is it possible that the fact that we use a tiny >>>> map >>>> script wrapper to avoid the map file in the url have something to do with >>>> it. >>>> By the way i tried the leaving away of the single ' ' already but it >>>> just >>>> fails again because the parameter name doesn't get replaced. Thanks for >>>> all >>>> of your hints. >>>> Just to complete the circumstances. The map file uses the include >>>> mechanism >>>> to get the layer definitions and the layer which needs the substitutions >>>> is >>>> only referenced by a raster layer as an tile index. Don't know if this >>>> have >>>> something to do with it. If i use static values everything is working >>>> fine. >>>> >>>> Kind regards, >>>> -- >>>> Peter Freimuth >>>> >>>> >>>> On 2013-08-22, at 3:17 AM, thomas bonfort >>>> wrote: >>>> >>>> Peter, >>>> can you email me your full mapfile, with the snippets you provided I >>>> can't see anything wrong and would therefore need to see any >>>> side-effects from the rest of the mapfile, and/or run it through a >>>> debugger to see where it's failing. >>>> >>>> -- >>>> thomas >>>> >>>> On 21 August 2013 01:26, Peter Freimuth wrote: >>>> >>>> Hi, >>>> i am trying to get the dynamic variable substitution work on Mapserver >>>> 6.3dev but somehow it does'nt work as it worked before and as documented. >>>> When i execute >>>> >>>> http://10.10.4.18/cgi-bin/LI_USA-MT.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,-115.666914&CRS=EPSG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE&STARTDATE=2011-01-01&ENDDATE=2013-09-01 >>>> >>>> or >>>> >>>> >>>> http://10.10.4.18/cgi-bin/LI_USA-MT.cgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=48.046271,-115.929840,48.198407,-115.666914&CRS=EPSG:4326&WIDTH=1647&HEIGHT=953&LAYERS=data_view&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE >>>> >>>> I get an error in >>>> msDrawMap(): Image handling error. Failed to draw layer named >>>> 'data_view'. >>>> msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: >>>> invalid input syntax for type date: "%STARTDATE%" >>>> LINE 8: ... (((acquisition_date >= date_trunc('day',date >>>> '%STARTDAT... >>>> ^ >>>> So the substitution does not happen or the default is not applied. >>>> Any hint on what i am doing wrong would be great. >>>> >>>> See below the components from the mapfile: >>>> >>>> MAP >>>> ..... >>>> # >>>> # Start of web interface definition >>>> # >>>> DATAPATTERN '^[a-zA-Z0-9\-\_\,]+$' >>>> >>>> WEB >>>> IMAGEPATH >>>> "/mnt/mapserver/mapserver_wms/geocloud_config/image_path" >>>> METADATA >>>> ..... >>>> 'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >>>> 'default_PRODUCTID' '1234567' >>>> 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >>>> 'default_CONTRACT_IDS' '0000' >>>> 'STARTDATE_validation_pattern' >>>> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>>> 'default_STARTDATE' '2011-01-01' >>>> 'ENDDATE_validation_pattern' >>>> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>>> 'default_END_DATE' '2013-09-01' >>>> END >>>> VALIDATION >>>> 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' >>>> 'CONTRACTIDS' '^[a-zA-Z0-9\-\_\,]+$' >>>> 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>>> 'ENDDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>>> END >>>> END >>>> ..... >>>> LAYER >>>> # this is the tileindex that aggregates the single image products >>>> together and makes them accessible for the RASTER LAYER "data_view" and >>>> "data_raw" for rendering >>>> NAME "data_idx" >>>> STATUS ON >>>> DEBUG 5 >>>> UNITS dd >>>> TYPE POLYGON >>>> EXTENT -116.364631680367 44.1932837062986 -103.698350095065 >>>> 49.1892799088128 >>>> PROCESSING "CLOSE_CONNECTION=DEFER" >>>> CONNECTIONTYPE POSTGIS >>>> CONNECTION "user=***** password=***** dbname=***** host='*****' >>>> port=5432" >>>> DATA "wkb_geom FROM (SELECT t1.* FROM (SELECT re3aip.cat_id as >>>> archived_in_archiving_identifier, ico.image_id, ico.acquisition_date, >>>> re3aip.tile_id, >>>> ico.product_provider_image_identifier, re3aip.ohs_order_id, >>>> re3aip.imagetake_cat_id, ico.epsg_code, >>>> re3aip.ohs_contract_id, ico.service_name, >>>> ico.footprint_poly::geometry as wkb_geom, ico.image_location, >>>> ico.vrt_location >>>> FROM ows.imagepool_catalogue_ows ico >>>> JOIN ows.re_l3a_imagepool re3aip ON (re3aip.image_id=ico.image_id) >>>> WHERE ico.service_name in ('LI_USA-MT') AND >>>> (((acquisition_date >= date_trunc('day',date '%STARTDATE%') AND >>>> acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 >>>> day'))) >>>> AND >>>> re3aip.ohs_contract_id in ('%CONTRACTID%') >>>> ) t1 >>>> LEFT OUTER JOIN >>>> (SELECT ico.image_id, ico.acquisition_date, re3aip.tile_id >>>> FROM ows.imagepool_catalogue_ows ico >>>> JOIN ows.re_l3a_imagepool re3aip ON (re3aip.image_id=ico.image_id) >>>> WHERE ico.service_name in ('LI_USA-MT') AND >>>> (((acquisition_date >= date_trunc('day',date >>>> '%STARTDATE%') AND >>>> acquisition_date < date_trunc('day',date '%ENDDATE%') + interval '1 >>>> day'))) >>>> AND >>>> re3aip.ohs_contract_id in ('%CONTRACTID%') >>>> ) t2 >>>> ON >>>> t1.tile_id = t2.tile_id AND >>>> ((t1.acquisition_date < t2.acquisition_date) OR >>>> (t1.acquisition_date = t2.acquisition_date AND t1.image_id < >>>> t2.image_id)) >>>> WHERE t2.tile_id is NULL >>>> ORDER BY t1.ohs_contract_id, t1.tile_id >>>> ) foo USING UNIQUE image_id USING >>>> SRID=4326" >>>> #FILTER ( '[product_provider_image_identifier]'='%PRODUCTID%') >>>> PROJECTION >>>> "init=epsg:4326" >>>> END >>>> METADATA >>>> "ows_title" "Data Index" >>>> "ows_extent" "-116.364631680367 44.1932837062986 >>>> -103.698350095065 49.1892799088128" >>>> #'PRODUCTID_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >>>> #'default_PRODUCTID' '1234567' >>>> 'CONTRACTIDS_validation_pattern' '^[a-zA-Z0-9\-\_\,]+$' >>>> 'default_CONTRACTIDS' '0000' >>>> 'STARTDATE_validation_pattern' >>>> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>>> 'default_STARTDATE' '2011-01-01' >>>> 'ENDDATE_validation_pattern' >>>> '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>>> 'default_ENDDATE' '2013-09-01' >>>> #disable explicitly everything that shall not be supported >>>> for >>>> this Layer >>>> "wms_enable_request" "!GetCapabilities !GetMap >>>> !GetLegendgraphic" >>>> "wcs_enable_request" "!GetCapabilities !GetCoverage >>>> !DescribeCoverage" >>>> "wfs_enable_request" "!GetCapabilities !GetFeature >>>> !DescribeFeatureType" >>>> END >>>> VALIDATION >>>> 'PRODUCTID' '^[a-zA-Z0-9\-\_\,]+$' >>>> 'CONTRACT_IDS' '^[a-zA-Z0-9\-\_\,]+$' >>>> 'STARTDATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>>> 'END_DATE' '^([0-9]{4})-([0-9]{2})-([0-9]{2})$' >>>> END >>>> END >>>> .... >>>> END >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From havard.tveite at umb.no Thu Aug 29 00:05:53 2013 From: havard.tveite at umb.no (Havard Tveite) Date: Thu, 29 Aug 2013 09:05:53 +0200 Subject: [mapserver-users] Orientation of vector symbols on a LINE In-Reply-To: References: Message-ID: <521EF2D1.5050402@umb.no> The implementation of GAP has been fixed (center to center distance between symbols), and so has the calculation of symbol height. I guess that the following should work: STYLE SYMBOL "wavy_line" WIDTH 1 SIZE 2 GAP -6 COLOR 0 0 0 END Since you have y values from -1 to 1, and x values between 0 and 6, the ratio between the height of your symbol and the length is 2 / 6. The ratio between size and gap should be the same to make the the line continuous. H?vard On 8/29/2013 1:31 AM, TC Haddad wrote: > > Hello, I'm trying to understand symbol orientation and (maybe) use of ANCHORPOINT on a line in Mapserver 6.2. > > The vector symbol that I have been using for line cartography in MapServer 6.0.3 is below, and I am trying to get the same effect in Mapserver 6.2.1. > > SYMBOL > NAME "wavy_line" > TYPE vector > POINTS > 0 0 > 1 1 > 2 1 > 3 0 > 4 -1 > 5 -1 > 6 0 > END > END > > Display in Mapserver 6.0.3: > https://dl.dropboxusercontent.com/u/42845001/mapserver6.0.3.png > > Relevant Style bloc from Mapserver 6.0.3: > > STYLE > SYMBOL "wavy_line" > WIDTH 1 > SIZE 2 > GAP -1 > COLOR 0 0 0 > END > > This did not translate directly to Mapserver 6.2.1, but I came close with this: > > STYLE > SYMBOL "wavy_line" > WIDTH 1 > SIZE 4 > GAP 6 > COLOR 0 0 0 > END > > which produced this: > https://dl.dropboxusercontent.com/u/42845001/mapserver6.2.1.png > > Obviously I am missing something about how to get the symbol to orient along the line, I played with ANCHORPOINT as that was new in 6.2 and it seemed like the default of 0.5 0.5 should work for my symbol, but I also tried several other value combinations and it seemed to merely shift the symbol around laterally, while maintaining an upright orientation. > > So I'm a bit confused on how to achieve the original effect, (behavior something like the equivalent of FOLLOW for Labels). Any pointers appreciated... > > > _______________________________________________ > 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 Thu Aug 29 00:15:29 2013 From: havard.tveite at umb.no (Havard Tveite) Date: Thu, 29 Aug 2013 09:15:29 +0200 Subject: [mapserver-users] overlaysymbol depreciated? In-Reply-To: <521E0955.8000607@squeakycode.net> References: <521E05F5.5040009@squeakycode.net> <521E0955.8000607@squeakycode.net> Message-ID: <521EF511.80005@umb.no> Both SYMBOL 0 + SIZE 1 and WIDTH 1 should work, but why don't you want to use WIDTH? WIDTH is now the recommended way of specifying the width of lines. It is also used in http://mapserver.org/mapfile/symbology/construction.html H?vard On 8/28/2013 4:29 PM, andy wrote: > It still draw's correctly, so I'd say its still in the code (I'm running 6.2.1). > > Reading: http://mapserver.org/mapfile/symbology/construction.html > > it looks like I want have multiple SYLE's listed. Something like: > > CLASS > NAME 'Railroad' > STYLE > SYMBOL 0 > COLOR 0 0 0 > SIZE 1 > END > STYLE > SYMBOL 'railway' > COLOR 0 0 0 > SIZE 7 > GAP -25 > END > END > > Yes? > > -Andy > > > On 8/28/2013 9:25 AM, thomas bonfort wrote: >> They've been deprecated ages ago... not sure when and if they were >> actually removed completely... >> >> CLASS >> NAME 'Railroad' >> STYLE >> COLOR 0 0 0 >> WIDTH 1 >> END >> STYLE >> SYMBOL 'railway' >> COLOR 0 0 0 >> SIZE 7 >> GAP -25 >> END >> END >> >> On 28 August 2013 16:15, andy wrote: >>> My current maps have railroads displayed like this: >>> >>> CLASS >>> NAME 'Railroad' >>> SYMBOL 'circle' >>> COLOR 0 0 0 >>> SIZE 1 >>> OVERLAYSYMBOL 'railway' >>> OVERLAYCOLOR 0 0 0 >>> OVERLAYSIZE 7 >>> STYLE >>> GAP -25 >>> END >>> END >>> >>> Which works. But OverlaySymbol and friends don't seem to be documented. >>> Did they go away at some point? What should I be using instead? >>> >>> Thanks, >>> >>> -Andy >>> _______________________________________________ >>> 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 thomas.bonfort at gmail.com Thu Aug 29 00:24:08 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 29 Aug 2013 09:24:08 +0200 Subject: [mapserver-users] Orientation of vector symbols on a LINE In-Reply-To: <521EF2D1.5050402@umb.no> References: <521EF2D1.5050402@umb.no> Message-ID: Given that there's alot of undefined behavior with vector symbols, the documentation for anchorpoint is pretty clear about what is supported: ANCHORPOINT can be used with SYMBOLs of TYPE ellipse, pixmap, svg, truetype and vector. To ensure proper behaviour for vector symbols, the left and top edges of the bounding box of the symbol should be at 0. As a rule of thumb, VECTOR symbols are expected to work correctly if they respect that rule, i.e. your vector POINTS should have at least one point with x=0, at least one point with y=0, and no negative x's or y's. -- thomas On 29 August 2013 09:05, Havard Tveite wrote: > The implementation of GAP has been fixed (center to center > distance between symbols), and so has the calculation of > symbol height. > I guess that the following should work: > > > STYLE > SYMBOL "wavy_line" > WIDTH 1 > SIZE 2 > GAP -6 > > COLOR 0 0 0 > END > > Since you have y values from -1 to 1, and x values between 0 > and 6, the ratio between the height of your symbol and the > length is 2 / 6. The ratio between size and gap should be the > same to make the the line continuous. > > H?vard > > > On 8/29/2013 1:31 AM, TC Haddad wrote: >> >> >> Hello, I'm trying to understand symbol orientation and (maybe) use of >> ANCHORPOINT on a line in Mapserver 6.2. >> >> The vector symbol that I have been using for line cartography in MapServer >> 6.0.3 is below, and I am trying to get the same effect in Mapserver 6.2.1. >> >> SYMBOL >> NAME "wavy_line" >> TYPE vector >> POINTS >> 0 0 >> 1 1 >> 2 1 >> 3 0 >> 4 -1 >> 5 -1 >> 6 0 >> END >> END >> >> Display in Mapserver 6.0.3: >> https://dl.dropboxusercontent.com/u/42845001/mapserver6.0.3.png >> >> Relevant Style bloc from Mapserver 6.0.3: >> >> STYLE >> SYMBOL "wavy_line" >> WIDTH 1 >> SIZE 2 >> GAP -1 >> COLOR 0 0 0 >> END >> >> This did not translate directly to Mapserver 6.2.1, but I came close with >> this: >> >> STYLE >> SYMBOL "wavy_line" >> WIDTH 1 >> SIZE 4 >> GAP 6 >> COLOR 0 0 0 >> END >> >> which produced this: >> https://dl.dropboxusercontent.com/u/42845001/mapserver6.2.1.png >> >> Obviously I am missing something about how to get the symbol to orient >> along the line, I played with ANCHORPOINT as that was new in 6.2 and it >> seemed like the default of 0.5 0.5 should work for my symbol, but I also >> tried several other value combinations and it seemed to merely shift the >> symbol around laterally, while maintaining an upright orientation. >> >> So I'm a bit confused on how to achieve the original effect, (behavior >> something like the equivalent of FOLLOW for Labels). Any pointers >> appreciated... >> >> >> _______________________________________________ >> 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 tchaddad at gmail.com Thu Aug 29 07:57:50 2013 From: tchaddad at gmail.com (TC Haddad) Date: Thu, 29 Aug 2013 07:57:50 -0700 Subject: [mapserver-users] Orientation of vector symbols on a LINE In-Reply-To: References: <521EF2D1.5050402@umb.no> Message-ID: Thanks Havard, for the pointer to the answer and explanation of the ratio between SIZE and GAP. I feel like I will use that a lot. Thanks Thomas for your clarification - my misunderstanding was regarding the negative values, I hadn't fully internalized that y=0 was the top of the symbol. Tanya On Thu, Aug 29, 2013 at 12:24 AM, thomas bonfort wrote: > Given that there's alot of undefined behavior with vector symbols, the > documentation for anchorpoint is pretty clear about what is supported: > > ANCHORPOINT can be used with SYMBOLs of TYPE ellipse, pixmap, svg, > truetype and vector. To ensure proper behaviour for vector symbols, > the left and top edges of the bounding box of the symbol should be at > 0. > > As a rule of thumb, VECTOR symbols are expected to work correctly if > they respect that rule, i.e. your vector POINTS should have at least > one point with x=0, at least one point with y=0, and no negative x's > or y's. > > -- > thomas > > On 29 August 2013 09:05, Havard Tveite wrote: > > The implementation of GAP has been fixed (center to center > > distance between symbols), and so has the calculation of > > symbol height. > > I guess that the following should work: > > > > > > STYLE > > SYMBOL "wavy_line" > > WIDTH 1 > > SIZE 2 > > GAP -6 > > > > COLOR 0 0 0 > > END > > > > Since you have y values from -1 to 1, and x values between 0 > > and 6, the ratio between the height of your symbol and the > > length is 2 / 6. The ratio between size and gap should be the > > same to make the the line continuous. > > > > H?vard > > > > > > On 8/29/2013 1:31 AM, TC Haddad wrote: > >> > >> > >> Hello, I'm trying to understand symbol orientation and (maybe) use of > >> ANCHORPOINT on a line in Mapserver 6.2. > >> > >> The vector symbol that I have been using for line cartography in > MapServer > >> 6.0.3 is below, and I am trying to get the same effect in Mapserver > 6.2.1. > >> > >> SYMBOL > >> NAME "wavy_line" > >> TYPE vector > >> POINTS > >> 0 0 > >> 1 1 > >> 2 1 > >> 3 0 > >> 4 -1 > >> 5 -1 > >> 6 0 > >> END > >> END > >> > >> Display in Mapserver 6.0.3: > >> https://dl.dropboxusercontent.com/u/42845001/mapserver6.0.3.png > >> > >> Relevant Style bloc from Mapserver 6.0.3: > >> > >> STYLE > >> SYMBOL "wavy_line" > >> WIDTH 1 > >> SIZE 2 > >> GAP -1 > >> COLOR 0 0 0 > >> END > >> > >> This did not translate directly to Mapserver 6.2.1, but I came close > with > >> this: > >> > >> STYLE > >> SYMBOL "wavy_line" > >> WIDTH 1 > >> SIZE 4 > >> GAP 6 > >> COLOR 0 0 0 > >> END > >> > >> which produced this: > >> https://dl.dropboxusercontent.com/u/42845001/mapserver6.2.1.png > >> > >> Obviously I am missing something about how to get the symbol to orient > >> along the line, I played with ANCHORPOINT as that was new in 6.2 and it > >> seemed like the default of 0.5 0.5 should work for my symbol, but I > also > >> tried several other value combinations and it seemed to merely shift the > >> symbol around laterally, while maintaining an upright orientation. > >> > >> So I'm a bit confused on how to achieve the original effect, (behavior > >> something like the equivalent of FOLLOW for Labels). Any pointers > >> appreciated... > >> > >> > >> _______________________________________________ > >> 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Power at cs.ox.ac.uk Thu Aug 29 08:00:35 2013 From: David.Power at cs.ox.ac.uk (David Power) Date: Thu, 29 Aug 2013 16:00:35 +0100 Subject: [mapserver-users] Projections and raster files Message-ID: Hello, I have a number of geotiffs which are currently using epsg:4326 and I would like to output a region using epsg:3857. I am new to mapserver but from what I have read the way achieve this is by setting the projection of the map to epsg:3857 and the layer to epsg:4326. When I set the projections to the same value I get the output I expect without a problem, if I set the projections to different values I do not get an error but the output is blank. To make life more complicated I am using mapscript via the Java swig interface, the version of mapserver I am using is mapserver 6.1.2.1 which I built from source. If anybody has any advice I would be most grateful. David - gdalinfo gives the following information about one of the files: Driver: GTiff/GeoTIFF Files: globcover_n10e005.tif Size is 7200, 7200 Coordinate System is: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]] Origin = (5.000000000000000,9.999999999999615) Pixel Size = (0.000138888888889,-0.000138888888889) Metadata: DataType=Generic AREA_OR_POINT=Area Image Structure Metadata: INTERLEAVE=BAND Corner Coordinates: Upper Left ( 5.0000000, 10.0000000) ( 5d 0'0.00"E, 10d 0'0.00"N) Lower Left ( 5.0000000, 9.0000000) ( 5d 0'0.00"E, 9d 0'0.00"N) Upper Right ( 6.0000000, 10.0000000) ( 6d 0'0.00"E, 10d 0'0.00"N) Lower Right ( 6.0000000, 9.0000000) ( 6d 0'0.00"E, 9d 0'0.00"N) Center ( 5.5000000, 9.5000000) ( 5d30'0.00"E, 9d30'0.00"N) Band 1 Block=7200x128 Type=Byte, ColorInterp=Gray NoData Value=0 - The map file is built programmatically, the following is the result of saving the map object to file: MAP EXTENT 5 9.9 5.1 10 IMAGETYPE "png" NAME "blank" SIZE 800 800 STATUS ON UNITS DD OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE RGB TRANSPARENT FALSE END # OUTPUTFORMAT PROJECTION "init=epsg:3857" END # PROJECTION LEGEND KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM OFFSET 0 0 SHADOWSIZE 1 1 TYPE BITMAP END # LABEL STATUS OFF END # LEGEND QUERYMAP SIZE -1 -1 STATUS OFF STYLE HILITE END # QUERYMAP SCALEBAR INTERVALS 4 LABEL SIZE MEDIUM OFFSET 0 0 SHADOWSIZE 1 1 TYPE BITMAP END # LABEL SIZE 200 3 STATUS OFF UNITS MILES END # SCALEBAR WEB END # WEB LAYER DATA "/home/leftworker/data/landcover/lefttiles/n10/globcover_n10e005.tif" NAME "n10e005" PROJECTION "init=epsg:4326" END # PROJECTION STATUS ON TILEITEM "location" TYPE RASTER UNITS DD END # LAYER END # MAP ====================================== Dr David J Power Research Officer Department of Computer Science University of Oxford tel: 01865 283670 email: David.Power at cs.ox.ac.uk ====================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Thu Aug 29 08:43:14 2013 From: David.Fawcett at state.mn.us (Fawcett, David (MNIT)) Date: Thu, 29 Aug 2013 15:43:14 +0000 Subject: [mapserver-users] Projections and raster files In-Reply-To: References: Message-ID: David, Take a look at the map extent and units. They should be the units used by your output spatial reference system. In your current map file, you have DD for the units, for 3857, they should be meters. You will also want to express your extent in 3857 coords. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of David Power Sent: Thursday, August 29, 2013 10:01 AM To: MapserverList OSGEO Subject: [mapserver-users] Projections and raster files Hello, I have a number of geotiffs which are currently using epsg:4326 and I would like to output a region using epsg:3857. I am new to mapserver but from what I have read the way achieve this is by setting the projection of the map to epsg:3857 and the layer to epsg:4326. When I set the projections to the same value I get the output I expect without a problem, if I set the projections to different values I do not get an error but the output is blank. To make life more complicated I am using mapscript via the Java swig interface, the version of mapserver I am using is mapserver 6.1.2.1 which I built from source. If anybody has any advice I would be most grateful. David - gdalinfo gives the following information about one of the files: Driver: GTiff/GeoTIFF Files: globcover_n10e005.tif Size is 7200, 7200 Coordinate System is: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]] Origin = (5.000000000000000,9.999999999999615) Pixel Size = (0.000138888888889,-0.000138888888889) Metadata: DataType=Generic AREA_OR_POINT=Area Image Structure Metadata: INTERLEAVE=BAND Corner Coordinates: Upper Left ( 5.0000000, 10.0000000) ( 5d 0'0.00"E, 10d 0'0.00"N) Lower Left ( 5.0000000, 9.0000000) ( 5d 0'0.00"E, 9d 0'0.00"N) Upper Right ( 6.0000000, 10.0000000) ( 6d 0'0.00"E, 10d 0'0.00"N) Lower Right ( 6.0000000, 9.0000000) ( 6d 0'0.00"E, 9d 0'0.00"N) Center ( 5.5000000, 9.5000000) ( 5d30'0.00"E, 9d30'0.00"N) Band 1 Block=7200x128 Type=Byte, ColorInterp=Gray NoData Value=0 - The map file is built programmatically, the following is the result of saving the map object to file: MAP EXTENT 5 9.9 5.1 10 IMAGETYPE "png" NAME "blank" SIZE 800 800 STATUS ON UNITS DD OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE RGB TRANSPARENT FALSE END # OUTPUTFORMAT PROJECTION "init=epsg:3857" END # PROJECTION LEGEND KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM OFFSET 0 0 SHADOWSIZE 1 1 TYPE BITMAP END # LABEL STATUS OFF END # LEGEND QUERYMAP SIZE -1 -1 STATUS OFF STYLE HILITE END # QUERYMAP SCALEBAR INTERVALS 4 LABEL SIZE MEDIUM OFFSET 0 0 SHADOWSIZE 1 1 TYPE BITMAP END # LABEL SIZE 200 3 STATUS OFF UNITS MILES END # SCALEBAR WEB END # WEB LAYER DATA "/home/leftworker/data/landcover/lefttiles/n10/globcover_n10e005.tif" NAME "n10e005" PROJECTION "init=epsg:4326" END # PROJECTION STATUS ON TILEITEM "location" TYPE RASTER UNITS DD END # LAYER END # MAP ====================================== Dr David J Power Research Officer Department of Computer Science University of Oxford tel: 01865 283670 email: David.Power at cs.ox.ac.uk ====================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Aug 29 09:02:18 2013 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 29 Aug 2013 13:02:18 -0300 Subject: [mapserver-users] Projections and raster files In-Reply-To: References: Message-ID: <521F708A.7000108@gatewaygeomatics.com> On 2013-08-29 12:00 PM, David Power wrote: > Hello, > > I have a number of geotiffs which are currently using epsg:4326 and I > would like to output a region using epsg:3857. > > I am new to mapserver but from what I have read the way achieve this is > by setting the projection of the map to epsg:3857 and the layer to > epsg:4326. > > When I set the projections to the same value I get the output I expect > without a problem, if I set the projections to different values I do not > get an error but the output is blank. > > To make life more complicated I am using mapscript via the Java swig > interface, the version of mapserver I am using is mapserver 6.1.2.1 > which I built from source. > > If anybody has any advice I would be most grateful. > > David > > - > You might also want to review the "Important Notes" section of the PROJECTION documentation: http://www.mapserver.org/mapfile/projection.html#important-notes -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From freimuth69 at gmail.com Thu Aug 29 09:56:48 2013 From: freimuth69 at gmail.com (Peter Freimuth) Date: Thu, 29 Aug 2013 10:56:48 -0600 Subject: [mapserver-users] wcs 1..0.0 getcapabilities problem in mapserver 6.4dev and 6.2.x Message-ID: <521F7D50.3000504@gmail.com> Hi, i ran into s small problem with setting up a WCS service on umn mapserver 6.2 and newer. When requesting the capabilities for VERSION=1.0.0 i get the following Warning printed to the Capabilities Doc: This service serves RE L3A image products with different acquisition dates and supports filtering by using the OGC'time' parameter and the'imageidentifier' parameter to address single images. MapServer WCS wcs wms wfs living image ... In all other Version like 1.1.x or 2.0.0 everything is fine and i also have no problem with WMS or WFS capabilities. this is the WEB section of the corresponding mapfile: WEB IMAGEPATH "/****/image_path" METADATA "ows_title" "RE 5 Band Imagedata Service" #"ows_onlineresource" "http://devcloud.blackbridge.com/ows/LI_USA-MT.cgi?" ### recommended "ows_onlineresource" "http://***/LI_USA-MT.cgi?" ### recommended "ows_description" "This service serves images registered in the OWS streaming platform" "ows_abstract" "This service serves images registered in the OWS streaming platform" "ows_srs" "EPSG:4326 EPSG:900913 EPSG:3857 EPSG:32662" #necessary to get the WCS virtual dataset metadata thing working "ows_extent" "-116.364631680367 44.1932837062986 -103.698350095065 49.1892799088128" "ows_schemas_location" "http://schemas.opengeospatial.net" "ows_fees" "none" "ows_accessconstraints" "none" "ows_keywordlist" "wcs, wms, wfs, living image" "ows_metadatalink_type" "TC211" "ows_metadatalink_format" "text/plain" "ows_addresstype" "postal" "ows_address" "fgdfgdgs." "ows_city" "fdgfgdf" "ows_stateorprovince" "dgdfg" "ows_postcode" "dgdfg" "ows_country" "dgdg" "ows_contactelectronicmailaddress" "***" "ows_contactperson" "***" "ows_contactorganization" "***" "ows_contactposition" "ows manager" "ows_role" "ows manager" "ows_contactvoicetelephone" "453453453" "ows_contactfacsimiletelephone" "345345345" "ows_contactinstructions" "send us an email" "ows_service_onlineresource" "http://*****/cgi-bin/LI_USA-MT.cgi?" "ows_hoursofservice" "8-17 MCT" "ows_http_max_age" "100" #"ows_updatesequence" "" "wcs_enable_request" "GetCapabilities GetCoverage DescribeCoverage" "wcs_description" "This service serves RE L3A image products with different acquisition dates and supports filtering by using the OGC 'time' parameter and the 'imageidentifier' parameter to address single images." "wcs_abstract" "This service serves RE L3A image products with different acquisition dates and supports filtering by using the OGC 'time' parameter and the 'imageidentifier' parameter to address single images." "wcs_extent" "-116.364631680367 44.1932837062986 -103.698350095065 49.1892799088128" "wcs_label" "RE 5Band LI_USA-MT OWS Servis" ### required "wms_enable_request" "GetCapabilities GetMap GetLegendGraphic" "wms_extent" "-116.364631680367 44.1932837062986 -103.698350095065 49.1892799088128" "wms_feature_info_mime_type" "application/json" "wms_bbox_extended" "true" "wfs_enable_request" "GetCapabilities GetFeature DescribeFeatureType" "wfs_extent" "-116.364631680367 44.1932837062986 -103.698350095065 49.1892799088128" "wfs_description" "This WFS service serves as a catalog service to find out which image products are available in the the service for further usage." ## Recommended "wfs_abstract" "This WFS service serves as a catalog service to find out which image products are available in the the service for further usage." ## Recommended "wfs_srs" "EPSG:4326 EPSG:4269 EPSG:3978 EPSG:3857 EPSG:900913 EPSG:32662" #output for WFS data for WFS 1.0.0 "wfs_maxfeatures" "10000" "wfs_namespace_uri" "http://www.rapideye.de/ows/wfs/re" "wfs_namespace_prefix" "re" END VALIDATION 'productid' '[a-zA-Z0-9\-\_\,]+' 'contractids' '[a-zA-Z0-9\-\_\,]+' 'startdate' '([0-9]{4})-([0-9]{2})-([0-9]{2})' 'enddate' '([0-9]{4})-([0-9]{2})-([0-9]{2})' 'default_productid' '.*' 'default_contractids' 'GDNAMLI-USA-MT' 'default_startdate' '2013-06-30' 'default_enddate' '2013-08-25' END END LAYER .... METADATA "wcs_title" "5 band 16bit RE data with OGC time param support" "wcs_description" "5 band 16bit RE data with OGC time param support through the 'time' parameter and individual scene access through the 'imageidentifier' parameter. The List of available Acquisition Dates can be extracted from the timePosition List." "wcs_abstract" "5 band 16bit RE data with OGC time param support through the 'time' parameter and individual scene access through the 'imageidentifier' parameter. The List of available Acquisition Dates can be extracted from the timePosition List." # is set dynamically during service creation or service update "wcs_extent" "-116.364631680367 44.1932837062986 -103.698350095065 49.1892799088128" "wcs_srs" "EPSG:4326 EPSG:900913 EPSG:3857 EPSG:32662" "wcs_label" "5 band 16bit RE data" ### required "wcs_rangeset_axes" "bands" "wcs_rangeset_name" "Bands" ### required to support DescribeCoverage request "wcs_rangeset_label" "RE Radiometric Bands" ### required to support DescribeCoverage request "wcs_rangeset_nullvalue" "0" #"wcs_size" "15000 15000" #if we have a global ows_extent set in web-metadata and a wcs_resolution this gets calculated by mapserver "wcs_resolution" "5.0 5.0" "wcs_bandcount" "5" "wcs_band_names" "Blue Green Red Rededge Nir" "wcs_imagemode" "INT16" "wcs_formats" "GEOTIFF_INT16 AAIGRID" "wcs_native_format" "image/tiff" "wcs_nativeformat" "GTiff" #this get set dynamically accodingly to the dates avaialable for the service and is mandatory to allow temporal subsettings "wcs_timeposition" "2013-06-30,2013-07-15,2013-07-16,2013-07-17,2013-07-18,2013-07-19,2013-07-20,2013-07-21,2013-07-22,2013-07-23,2013-07-24,2013-07-25,2013-07-26,2013-07-27,2013-07-28,2013-07-29,2013-07-31,2013-08-03,2013-08-05,2013-08-06,2013-08-07,2013-08-08,2013-08-09,2013-08-10,2013-08-11,2013-08-12,2013-08-13,2013-08-15,2013-08-16,2013-08-17,2013-08-18,2013-08-19,2013-08-20,2013-08-21,2013-08-22,2013-08-23,2013-08-24,2013-08-25" "wcs_timeextent" "2013-06-30/2013-08-25" "wcs_timeitem" "acquisition_date" "wcs_timedefault" "2013-06-30/2013-08-25" #disable explicitly everything that shall not be supported for this Layer "wms_enable_request" "!GetCapabilities !GetMap !GetLegendgraphic" "wfs_enable_request" "!GetCapabilities !GetFeature !DescribeFeatureType" END Any idea what is missing. The fact that the missing mandatory metadata accesses a "null" string point to a bug in the code otherwise it should tell which parameter is missing. Thanks for any hint on this topic. Kind regards, Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Power at cs.ox.ac.uk Thu Aug 29 10:18:46 2013 From: David.Power at cs.ox.ac.uk (David Power) Date: Thu, 29 Aug 2013 18:18:46 +0100 Subject: [mapserver-users] Projections and raster files In-Reply-To: References: Message-ID: <02949ECB-1D23-4A4E-87D6-7138EB8C6473@cs.ox.ac.uk> Thanks David, Using the correct units seems to have fixed the problem. @Jeff : Thanks for pointer, now that I have re-read it all makes sense Cheers David On 29 Aug 2013, at 16:43, Fawcett, David (MNIT) wrote: > David, > > Take a look at the map extent and units. They should be the units used by your output spatial reference system. > > In your current map file, you have DD for the units, for 3857, they should be meters. You will also want to express your extent in 3857 coords. > > David. > > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of David Power > Sent: Thursday, August 29, 2013 10:01 AM > To: MapserverList OSGEO > Subject: [mapserver-users] Projections and raster files > > Hello, > > I have a number of geotiffs which are currently using epsg:4326 and I would like to output a region using epsg:3857. > > I am new to mapserver but from what I have read the way achieve this is by setting the projection of the map to epsg:3857 and the layer to epsg:4326. > > When I set the projections to the same value I get the output I expect without a problem, if I set the projections to different values I do not get an error but the output is blank. > > To make life more complicated I am using mapscript via the Java swig interface, the version of mapserver I am using is mapserver 6.1.2.1 which I built from source. > > If anybody has any advice I would be most grateful. > > David > > - > > gdalinfo gives the following information about one of the files: > > Driver: GTiff/GeoTIFF > Files: globcover_n10e005.tif > Size is 7200, 7200 > Coordinate System is: > GEOGCS["WGS 84", > DATUM["WGS_1984", > SPHEROID["WGS 84",6378137,298.257223563, > AUTHORITY["EPSG","7030"]], > AUTHORITY["EPSG","6326"]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433], > AUTHORITY["EPSG","4326"]] > Origin = (5.000000000000000,9.999999999999615) > Pixel Size = (0.000138888888889,-0.000138888888889) > Metadata: > DataType=Generic > AREA_OR_POINT=Area > Image Structure Metadata: > INTERLEAVE=BAND > Corner Coordinates: > Upper Left ( 5.0000000, 10.0000000) ( 5d 0'0.00"E, 10d 0'0.00"N) > Lower Left ( 5.0000000, 9.0000000) ( 5d 0'0.00"E, 9d 0'0.00"N) > Upper Right ( 6.0000000, 10.0000000) ( 6d 0'0.00"E, 10d 0'0.00"N) > Lower Right ( 6.0000000, 9.0000000) ( 6d 0'0.00"E, 9d 0'0.00"N) > Center ( 5.5000000, 9.5000000) ( 5d30'0.00"E, 9d30'0.00"N) > Band 1 Block=7200x128 Type=Byte, ColorInterp=Gray > NoData Value=0 > > - > > The map file is built programmatically, the following is the result of saving the map object to file: > > MAP > EXTENT 5 9.9 5.1 10 > IMAGETYPE "png" > NAME "blank" > SIZE 800 800 > STATUS ON > UNITS DD > > OUTPUTFORMAT > NAME "png" > MIMETYPE "image/png" > DRIVER "AGG/PNG" > EXTENSION "png" > IMAGEMODE RGB > TRANSPARENT FALSE > END # OUTPUTFORMAT > > PROJECTION > "init=epsg:3857" > END # PROJECTION > LEGEND > KEYSIZE 20 10 > KEYSPACING 5 5 > LABEL > SIZE MEDIUM > OFFSET 0 0 > SHADOWSIZE 1 1 > TYPE BITMAP > END # LABEL > STATUS OFF > END # LEGEND > > QUERYMAP > SIZE -1 -1 > STATUS OFF > STYLE HILITE > END # QUERYMAP > > SCALEBAR > INTERVALS 4 > LABEL > SIZE MEDIUM > OFFSET 0 0 > SHADOWSIZE 1 1 > TYPE BITMAP > END # LABEL > SIZE 200 3 > STATUS OFF > UNITS MILES > END # SCALEBAR > > WEB > END # WEB > > LAYER > DATA "/home/leftworker/data/landcover/lefttiles/n10/globcover_n10e005.tif" > NAME "n10e005" > PROJECTION > "init=epsg:4326" > END # PROJECTION > STATUS ON > TILEITEM "location" > TYPE RASTER > UNITS DD > END # LAYER > > END # MAP > > > > > > ====================================== > Dr David J Power > Research Officer > Department of Computer Science > University of Oxford > tel: 01865 283670 > email: David.Power at cs.ox.ac.uk > ====================================== > > > ====================================== Dr David J Power Research Officer Department of Computer Science University of Oxford tel: 01865 283670 email: David.Power at cs.ox.ac.uk ====================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From even.rouault at mines-paris.org Thu Aug 29 12:38:06 2013 From: even.rouault at mines-paris.org (Even Rouault) Date: Thu, 29 Aug 2013 21:38:06 +0200 Subject: [mapserver-users] wcs 1..0.0 getcapabilities problem in mapserver 6.4dev and 6.2.x In-Reply-To: <521F7D50.3000504@gmail.com> References: <521F7D50.3000504@gmail.com> Message-ID: <201308292138.06210.even.rouault@mines-paris.org> Le jeudi 29 ao?t 2013 18:56:48, Peter Freimuth a ?crit : > Hi, > i ran into s small problem with setting up a WCS service on umn > mapserver 6.2 and newer. > When requesting the capabilities for VERSION=1.0.0 i get the following > Warning printed to the Capabilities Doc: > > Any idea what is missing. The fact that the missing mandatory metadata > accesses a "null" string point to a bug in the code otherwise it should > tell which parameter is missing. Yes, the call to msOWSPrintURLType() in msWCSGetCapabilities_Service in mapwcs.c pass tag_name == NULL, hence the (null) in the warning. Looking at the conditions that trigger the warning, I believe the reason for the warning is that you need to define the "ows_metadatalink_href" metadata item. > > Thanks for any hint on this topic. > Kind regards, > Peter -- Geospatial professional services http://even.rouault.free.fr/services.html From MarkVolz at co.lyon.mn.us Thu Aug 29 15:30:28 2013 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Thu, 29 Aug 2013 22:30:28 +0000 Subject: [mapserver-users] make labels fit in a polygon Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA31FE558@swmail01.r8nssis.local> Hello, A year and a half ago I inquired about how to deal with labeling complex polygons. The basic issue is that the center of the bbox does not always fall within the boundary of complex polygons. At the time one of the developers mentioned that using the bbox is much faster than trying to fit a label inside of the polygon. At the time I let the issue go, however I have been hearing more users complain about labels not fitting correctly on some of the labels. Therefore I am wondering if this topic can be discussed again. Within MapServer: I agree that using the bbox for label points is much faster to compute than using the actual polygon geometry. I wonder however if it would be possible to add a keyword to allow either the bbox or polygon boundary to determine the label position. This way users could have a choice between speed or precision for label placement. Outside of Mapserver: Does anyone know of a script that could be used to pre-calculate label positions? Thanks Mark Volz GIS Specialist From mafonso333 at gmail.com Fri Aug 30 07:42:18 2013 From: mafonso333 at gmail.com (Marco Afonso) Date: Fri, 30 Aug 2013 15:42:18 +0100 Subject: [mapserver-users] ms4w error Corrupt, empty or missing file (ECW) Message-ID: Hi all, We are in transition from old ms 5.4 to new ms 6.0 We have successfully installed ms4w 3.0.6 and everything is working as expected. The only problem is opening shapefiles with ECW. >From logs this is the type of error: [Fri Aug 30 14:25:53 2013].460000 Corrupt, empty or missing file 'D:\ortos\ortos2010\005811Brgbx_10_d73.ecw' for layer 'ortos2010' ... ignoring this missing data. These shapefile is ok as it works with our previous version of maserver. They are not corrupt, empty or missing. All the paths are correct and set in the Apache httpd.conf (SetEnv directive) I did run ogrinfo on the shapefile and it seems ok, although I did not found ERDAS ECW format when running ogr2ogr --formats What can I do more o try to find the problem. -- All the best, Marco Afonso -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri Aug 30 09:23:52 2013 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 30 Aug 2013 13:23:52 -0300 Subject: [mapserver-users] ms4w error Corrupt, empty or missing file (ECW) In-Reply-To: References: Message-ID: <5220C718.907@gatewaygeomatics.com> Hello Marco, We removed ECW support from the MS4W suite back in 2009, due to licensing restrictions. If you go to the MS4W issue tracker you can research this in depth. However we do offer custom builds for ECW support with MS4W, and you can contact me at any time if you require this. Thanks again for using MS4W! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2013-08-30 11:42 AM, Marco Afonso wrote: > Hi all, > > We are in transition from old ms 5.4 to new ms 6.0 > We have successfully installed ms4w 3.0.6 and everything is working as > expected. > > The only problem is opening shapefiles with ECW. > > From logs this is the type of error: > > [Fri Aug 30 14:25:53 2013].460000 Corrupt, empty or missing file > 'D:\ortos\ortos2010\005811Brgbx_10_d73.ecw' for layer 'ortos2010' ... > ignoring this missing data. > > These shapefile is ok as it works with our previous version of maserver. > They are not corrupt, empty or missing. > All the paths are correct and set in the Apache httpd.conf (SetEnv > directive) > > I did run ogrinfo on the shapefile and it seems ok, although I did not > found ERDAS ECW format when running ogr2ogr --formats > > What can I do more o try to find the problem. > > -- > All the best, > Marco Afonso > > From jlapointe at mapgears.com Fri Aug 30 13:37:07 2013 From: jlapointe at mapgears.com (Jessica Lapointe) Date: Fri, 30 Aug 2013 16:37:07 -0400 Subject: [mapserver-users] New ScribeUI 0.2 Release Message-ID: Hi list, ScribeUI is a tool meant to help the editing and management of mapfiles, supporting Scribe and Standard mapfile syntax, and also basemaps in the near future. I am currently developing this tool as a Google Summer of Code project. The GSoC is well advanced, and I am very pleased to announce this new release. The main goal of this version is to provide a better experience when editing scribe syntax. Please keep in mind that a lot of bugs remain, any feedback is welcome, should it be new feature ideas, general comments or bug reports. *What's New?* - A new scribe.py file was integrated. This allows for much better error messages in the logs when a scribe syntax error is done (mismatching brackets, missing colons etc.) - The group management (opening, adding, deleting and re-ordering) was redone for scribe maps, as to comply with the new scribe files. - Version 0.1.1 and 0.1.2 were released in the meantime, as to fix some installation instructions and a url/trailing slash problem. *Updating and Migrating the Workspaces* If you are updating your ScribeUI version, please refer to the updating instructions in the readme file. This is very important in order to keep your current scribe maps working well. *Download* ScribeUI and its installation instructions are available on github: https://github.com/mapgears/scribeui To get ScribeUI 0.2, you can clone the repo on github and checkout v0.2 or you can download an archive: https://github.com/mapgears/scribeui/releases/tag/v0.2 Bug reports can be made on github: https://github.com/mapgears/scribeui /issues Updates will also be published on the blog: http://mapgears.github.io/ scribeui-site/ Thanks a lot! Jessica -------------- next part -------------- An HTML attachment was scrubbed... URL: From pschweitzer at usgs.gov Fri Aug 30 14:50:31 2013 From: pschweitzer at usgs.gov (Schweitzer, Peter) Date: Fri, 30 Aug 2013 17:50:31 -0400 Subject: [mapserver-users] mapcache config confusion Message-ID: Help! I am trying to use mapcache, but I fear that I may have misunderstood the documentation. Can someone help correct my misimpressions? I'm running a mapserver (6.2.0) instance with 113 WMS services. Most don't really need caching because the data are simple or small. One really does, because it is a geologic map of the continental US at 1:500k scale, with 320,000 polygons and 260,000 fault lines, and takes some time to render as map images. I have a complicating factor. I'm using a simplified URL to access the map services, with an Apache rewrite rule like that rewrites the incoming URL http://mrdata.usgs.gov/services/sgmc-3857 to http://mrdata.usgs.gov/cgi-bin/mapserv?map=/mnt/mrt/map-files/sgmc-3857.map&... This works nicely for OpenLayers. What I'd like to have happen is for the web server to provide cached images of these data rather than generating them on every web hit. So first of all, is mapcache the right tool for this task? Assuming that's right, I'm confused about the element in the section. Should this be the existing WMS on my system? Should it be the URL sent by the user, prior to the apache rewrite rule? Or should it be the URL that is the result of the rewrite rule? An OpenLayers interface that uses these data is at http://mrdata.usgs.gov/general/map.html The layer in question is the "Geology" layer. I do not get any cached images. I recognize that the problem may be somewhere else in this process, but here is my mapcache.xml file, cribbed and modified from an older list message by Stephen Woodbridge: MRData mapcache service Contains various services for MRData maps /mnt/mrt/mapcache image/png png Lithology,Faults,Dikes /mnt/mrt/map-files/sgmc-3857.map http://mrdata.usgs.gov/services/sgmc-3857 fast 256 sgmc disk WGS84 g GoogleMapsCompatible PNGQ_FAST 5 5 864000 PNGQ_FAST assemble bilinear PNGQ_FAST 4096 report /tmp I am also not seeing error messages in either the apache log or the mapserver log. Here is my apache config: LoadModule mapcache_module modules/mod_mapcache.so Order Allow,Deny Allow from all MapCacheAlias /mapcache "/mnt/mrt/mapcache/mapcache.xml" Thanks in advance for any help you might provide. Peter -- Peter N. Schweitzer (U.S. Geological Survey, Reston, VA 20192) (703) 648-6533 email: pschweitzer at usgs.gov http://geology.usgs.gov/peter/ From woodbri at swoodbridge.com Fri Aug 30 16:05:10 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 30 Aug 2013 19:05:10 -0400 Subject: [mapserver-users] mapcache config confusion In-Reply-To: References: Message-ID: <52212526.5020607@swoodbridge.com> OK, so I have not tried this but here is what I think you need to do. Turn off the mod-rewrite for this the mapcache urls as they are probably messing things up and they are not needed. Both mapcache and mod-rewrite are trying to act on the same requests and this is probably not working. in Mapcache your url is already simplified from the user point of view and in the xml you need to express the correct urls for mapserver to do its job (the user will never see these). Mapcache will take the tile request and server the tile if it exists, if it does not exist it will generate the appropriate request to mapserver to render a metatile and chop that into multiple tiles and store them in the cache, then serve the request tile from the cache. So in your http section put the complete mapserver url, not the shortened one. -Steve W On 8/30/2013 5:50 PM, Schweitzer, Peter wrote: > Help! > > I am trying to use mapcache, but I fear that I may have misunderstood > the documentation. Can someone help correct my misimpressions? > > I'm running a mapserver (6.2.0) instance with 113 WMS services. Most > don't really need caching because the data are simple or small. One > really does, because it is a geologic map of the continental US at > 1:500k scale, with 320,000 polygons and 260,000 fault lines, and takes > some time to render as map images. > > I have a complicating factor. I'm using a simplified URL to access > the map services, with an Apache rewrite rule like that rewrites the > incoming URL http://mrdata.usgs.gov/services/sgmc-3857 to > http://mrdata.usgs.gov/cgi-bin/mapserv?map=/mnt/mrt/map-files/sgmc-3857.map&... > This works nicely for OpenLayers. > > What I'd like to have happen is for the web server to provide cached > images of these data rather than generating them on every web hit. > > So first of all, is mapcache the right tool for this task? > > Assuming that's right, I'm confused about the element in the > section. Should this be the existing WMS on my system? > Should it be the URL sent by the user, prior to the apache rewrite > rule? Or should it be the URL that is the result of the rewrite rule? > > An OpenLayers interface that uses these data is at > http://mrdata.usgs.gov/general/map.html The layer in question is the > "Geology" layer. > > I do not get any cached images. I recognize that the problem may be > somewhere else in this process, but here is my mapcache.xml file, > cribbed and modified from an older list message by Stephen Woodbridge: > > > > > MRData mapcache service > Contains various services for MRData maps > > > > /mnt/mrt/mapcache > > > > > > > image/png > png > Lithology,Faults,Dikes > /mnt/mrt/map-files/sgmc-3857.map > > > > > http://mrdata.usgs.gov/services/sgmc-3857 > > > > > fast > 256 > > > > sgmc > disk > WGS84 > g > GoogleMapsCompatible > PNGQ_FAST > 5 5 > 864000 > > > PNGQ_FAST > > > assemble > bilinear > PNGQ_FAST > 4096 > > > > > > > > > report > /tmp > > > I am also not seeing error messages in either the apache log or the > mapserver log. Here is my apache config: > > LoadModule mapcache_module modules/mod_mapcache.so > > > > Order Allow,Deny > Allow from all > > MapCacheAlias /mapcache "/mnt/mrt/mapcache/mapcache.xml" > > > Thanks in advance for any help you might provide. > > Peter >