From umn-ms at hydrotec.de Mon Dec 3 02:56:33 2012 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Mon, 3 Dec 2012 11:56:33 +0100 Subject: [mapserver-users] Problem with "ANGLE FOLLOW" Message-ID: Hi I'm using ANGLE-FOLLOW in Mapserver 6.2 to label lines. Unfortunately only 5 of 12 features are labeld. I attach an example with data and mapfile. It can be used with shp2img -m example.map -o out.png All features are drawn, but most of them are not labeld, although there should be enough space for all labels. (To activate this example, one has to add arialbd.ttf in the test-directory. I didn't attach this one, because of size-limits in this mailing-list...) Without "ANGLE FOLLOW" all labels are drawn. Benedikt #Layerdefinition: LAYER NAME "Striche" TYPE LINE STATUS ON DEBUG 5 TEMPLATE "dummy.html" TOLERANCE 0 DATA "Striche" LABELITEM "name" CLASS NAME "Hauptsammler" LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 OUTLINEWIDTH 6 TYPE truetype SIZE 5 MINDISTANCE 0 ANGLE FOLLOW FORCE TRUE FONT "arial-bold" BUFFER 10 END STYLE OUTLINECOLOR 0 0 0 WIDTH 3 PATTERN 5 5 END LINECAP BUTT END END END (See attached file: missinglabel.zip) -------------- next part -------------- A non-text attachment was scrubbed... Name: missinglabel.zip Type: application/zip Size: 28972 bytes Desc: not available URL: From umn-ms at hydrotec.de Mon Dec 3 06:07:38 2012 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Mon, 3 Dec 2012 15:07:38 +0100 Subject: [mapserver-users] Problem with "ANGLE FOLLOW" In-Reply-To: References: Message-ID: > Try lowering the BUFFER number? ... Good idea. But even changing to "BUFFER 0" didn't change anything ... Problem is still there. Benedikt TC Haddad schrieb am 03.12.2012 13:54:56: > TC Haddad > 03.12.2012 13:55 > > An > > "umn-ms at hydrotec.de" > > Kopie > > Thema > > Re: [mapserver-users] Problem with "ANGLE FOLLOW" > > > Try lowering the BUFFER number? If each label has a big buffer, then > less labels can fit... > > Tanya > > On Dec 3, 2012, at 2:56 AM, umn-ms at hydrotec.de wrote: > > > > > Hi > > > > I'm using ANGLE-FOLLOW in Mapserver 6.2 to label lines. > > Unfortunately only 5 of 12 features are labeld. > > > > I attach an example with data and mapfile. It can be used with > > shp2img -m example.map -o out.png > > All features are drawn, but most of them are not labeld, although there > > should be enough space for all labels. > > > > (To activate this example, one has to add arialbd.ttf in the > > test-directory. I didn't attach this one, because of size-limits > > in this mailing-list...) > > > > Without "ANGLE FOLLOW" all labels are drawn. > > > > Benedikt > > > > > > #Layerdefinition: > > > > LAYER > > NAME "Striche" > > TYPE LINE > > STATUS ON > > DEBUG 5 > > TEMPLATE "dummy.html" > > TOLERANCE 0 > > DATA "Striche" > > LABELITEM "name" > > CLASS > > NAME "Hauptsammler" > > LABEL > > COLOR 0 0 0 > > OUTLINECOLOR 255 255 255 > > OUTLINEWIDTH 6 > > TYPE truetype > > SIZE 5 > > MINDISTANCE 0 > > ANGLE FOLLOW > > FORCE TRUE > > FONT "arial-bold" > > BUFFER 10 > > END > > STYLE > > OUTLINECOLOR 0 0 0 > > WIDTH 3 > > PATTERN 5 5 END > > LINECAP BUTT > > END > > END > > END > > (See attached file: missinglabel.zip) > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users From delorme.ipgp at gmail.com Mon Dec 3 06:02:43 2012 From: delorme.ipgp at gmail.com (Arthur Delorme) Date: Mon, 03 Dec 2012 15:02:43 +0100 Subject: [mapserver-users] Zooming Message-ID: <50BCB103.5070001@gmail.com> Hello, Is there a way to perform a zoom with instead of Thank you, Arthur From olivier.courtin at gmail.com Mon Dec 3 06:35:20 2012 From: olivier.courtin at gmail.com (Olivier Courtin) Date: Mon, 3 Dec 2012 15:35:20 +0100 Subject: [mapserver-users] Problem with "ANGLE FOLLOW" In-Reply-To: References: Message-ID: Hi, For same kind of need (i.e hydrologic line to label), i've found that: - Your lines must be long enough to allow the label to fit on (seems already your case, as it works for you without ANGLE FOLLOW) - You have to increase MAXOVERLAPANGLE property - Your lines have to be as smooth as possible Below a sample of such a thing with two layers, one with the data itself and one another using a generalization trought PostGIS ST_Simplify to help the geometry to be smoother enough LAYER NAME "label" METADATA "ows_title" "Label des cours d'eau Carthage AERMC" "ows_extent" "573401 6050407 1242369 6811885" "ows_featureid" "gid" END PROJECTION "init=epsg:2154" END TYPE line STATUS on DATA "geom from (SELECT gid, ST_simplify(geom, 200) As geom , toponyme, classe::integer FROM aermc.cours_eau WHERE toponyme IS NOT NULL) AS foo using unique gid using srid=2154" CONNECTIONTYPE postgis CONNECTION "host=XXXX port=5432 dbname=XXXX user=XXXX" LABELITEM toponyme CLASSITEM classe CLASS EXPRESSION ([classe] <= 2) LABEL COLOR 0 0 0 OUTLINECOLOR 210 210 210 TYPE TRUETYPE FONT vera SIZE 10 ANTIALIAS TRUE POSITION UC ANGLE FOLLOW PARTIALS FALSE MINFEATURESIZE auto REPEATDISTANCE 500 MAXOVERLAPANGLE 45 END END CLASS EXPRESSION ([classe] <= 4) LABEL COLOR 30 30 30 OUTLINECOLOR 210 210 210 TYPE TRUETYPE FONT vera SIZE 8 ANTIALIAS TRUE POSITION UC ANGLE FOLLOW PARTIALS FALSE MINFEATURESIZE auto MAXOVERLAPANGLE 40 END END CLASS LABEL COLOR 60 60 60 OUTLINECOLOR 210 210 210 TYPE TRUETYPE FONT vera SIZE 8 ANTIALIAS TRUE POSITION UC ANGLE FOLLOW PARTIALS FALSE MINFEATURESIZE auto MAXOVERLAPANGLE 40 END END END LAYER NAME "cours_eau" METADATA "ows_title" "Cours d'eau Carthage" "ows_extent" "573401 6050407 1242369 6811885" "ows_featureid" "gid" END PROJECTION "init=epsg:2154" END TYPE line STATUS on DATA "geom from (SELECT gid, geom , classe::integer FROM aermc.cours_eau WHERE toponyme IS NOT NULL) AS foo using unique gid using srid=2154" CONNECTIONTYPE postgis CONNECTION "host=XXXX port=5432 dbname=XXXX user=XXXX" CLASSITEM classe CLASS EXPRESSION ([classe] <= 2) STYLE COLOR 33 33 210 WIDTH 5 END END CLASS EXPRESSION ([classe] <= 4) STYLE COLOR 66 66 210 WIDTH 3 END END CLASS STYLE COLOR 99 99 210 WIDTH 1 END END END HTH, -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: From cnieman at dmsolutions.ca Mon Dec 3 06:35:59 2012 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Mon, 03 Dec 2012 09:35:59 -0500 Subject: [mapserver-users] Problem with "ANGLE FOLLOW" In-Reply-To: References: Message-ID: <50BCB8CF.1060107@dmsolutions.ca> Hi, ANGLE FOLLOW is subject to MAXOVERLAPANGLE (see http://mapserver.org/mapfile/label.html). If there is an angle between letters that is larger than 22.5 (if you don't have a manually-set value), then the label will not be drawn. I wrote a blog post that may help you understand: http://research.dmsolutions.ca/2011/new-and-exciting-in-mapserver-6-0/ Christy On 12/03/2012 09:07 AM, umn-ms at hydrotec.de wrote: >> Try lowering the BUFFER number? ... > Good idea. But even changing to "BUFFER 0" didn't change anything ... > > Problem is still there. > > Benedikt > > > > > TC Haddad schrieb am 03.12.2012 13:54:56: > >> TC Haddad >> 03.12.2012 13:55 >> >> An >> >> "umn-ms at hydrotec.de" >> >> Kopie >> >> Thema >> >> Re: [mapserver-users] Problem with "ANGLE FOLLOW" >> >> >> Try lowering the BUFFER number? If each label has a big buffer, then >> less labels can fit... >> >> Tanya >> >> On Dec 3, 2012, at 2:56 AM, umn-ms at hydrotec.de wrote: >> >>> Hi >>> >>> I'm using ANGLE-FOLLOW in Mapserver 6.2 to label lines. >>> Unfortunately only 5 of 12 features are labeld. >>> >>> I attach an example with data and mapfile. It can be used with >>> shp2img -m example.map -o out.png >>> All features are drawn, but most of them are not labeld, although there >>> should be enough space for all labels. >>> >>> (To activate this example, one has to add arialbd.ttf in the >>> test-directory. I didn't attach this one, because of size-limits >>> in this mailing-list...) >>> >>> Without "ANGLE FOLLOW" all labels are drawn. >>> >>> Benedikt >>> >>> >>> #Layerdefinition: >>> >>> LAYER >>> NAME "Striche" >>> TYPE LINE >>> STATUS ON >>> DEBUG 5 >>> TEMPLATE "dummy.html" >>> TOLERANCE 0 >>> DATA "Striche" >>> LABELITEM "name" >>> CLASS >>> NAME "Hauptsammler" >>> LABEL >>> COLOR 0 0 0 >>> OUTLINECOLOR 255 255 255 >>> OUTLINEWIDTH 6 >>> TYPE truetype >>> SIZE 5 >>> MINDISTANCE 0 >>> ANGLE FOLLOW >>> FORCE TRUE >>> FONT "arial-bold" >>> BUFFER 10 >>> END >>> STYLE >>> OUTLINECOLOR 0 0 0 >>> WIDTH 3 >>> PATTERN 5 5 END >>> LINECAP BUTT >>> END >>> END >>> END >>> (See attached file: missinglabel.zip) >>> >>> _______________________________________________ >>> 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 havard.tveite at umb.no Mon Dec 3 07:33:23 2012 From: havard.tveite at umb.no (Havard Tveite) Date: Mon, 3 Dec 2012 16:33:23 +0100 Subject: [mapserver-users] Problem with "ANGLE FOLLOW" In-Reply-To: References: Message-ID: <50BCC643.90206@umb.no> I have updated the documentation for 6.2 by including a reference to MAXOVERLAPANGLE in the description of ANGLE FOLLOW. H?vard On 12/3/2012 3:35 PM, Olivier Courtin wrote: > Hi, > > For same kind of need (i.e hydrologic line to label), i've found that: > - Your lines must be long enough to allow the label to fit on (seems already your case, as it works for you without ANGLE FOLLOW) > - You have to increase MAXOVERLAPANGLE property > - Your lines have to be as smooth as possible > > > Below a sample of such a thing with two layers, one with the data itself and one another using a generalization trought PostGIS ST_Simplify to help the geometry to be smoother enough > > LAYER > NAME "label" > METADATA > "ows_title" "Label des cours d'eau Carthage AERMC" > "ows_extent" "573401 6050407 1242369 6811885" > "ows_featureid" "gid" > END > > PROJECTION > "init=epsg:2154" > END > > TYPE line > STATUS on > DATA "geom from (SELECT gid, ST_simplify(geom, 200) As geom , toponyme, classe::integer > FROM aermc.cours_eau WHERE toponyme IS NOT NULL) > AS foo using unique gid using srid=2154" > CONNECTIONTYPE postgis > CONNECTION "host=XXXX port=5432 dbname=XXXX user=XXXX" > LABELITEM toponyme > CLASSITEM classe > CLASS > EXPRESSION ([classe] <= 2) > LABEL > COLOR 0 0 0 > OUTLINECOLOR 210 210 210 > TYPE TRUETYPE > FONT vera > SIZE 10 > ANTIALIAS TRUE > POSITION UC > ANGLE FOLLOW > PARTIALS FALSE > MINFEATURESIZE auto > REPEATDISTANCE 500 > MAXOVERLAPANGLE 45 > END > END > CLASS > EXPRESSION ([classe] <= 4) > LABEL > COLOR 30 30 30 > OUTLINECOLOR 210 210 210 > TYPE TRUETYPE > FONT vera > SIZE 8 > ANTIALIAS TRUE > POSITION UC > ANGLE FOLLOW > PARTIALS FALSE > MINFEATURESIZE auto > MAXOVERLAPANGLE 40 > END > END > CLASS > LABEL > COLOR 60 60 60 > OUTLINECOLOR 210 210 210 > TYPE TRUETYPE > FONT vera > SIZE 8 > ANTIALIAS TRUE > POSITION UC > ANGLE FOLLOW > PARTIALS FALSE > MINFEATURESIZE auto > MAXOVERLAPANGLE 40 > END > END > END > > LAYER > NAME "cours_eau" > METADATA > "ows_title" "Cours d'eau Carthage" > "ows_extent" "573401 6050407 1242369 6811885" > "ows_featureid" "gid" > END > > PROJECTION > "init=epsg:2154" > END > > TYPE line > STATUS on > DATA "geom from (SELECT gid, geom , classe::integer FROM aermc.cours_eau > WHERE toponyme IS NOT NULL) > AS foo using unique gid using srid=2154" > CONNECTIONTYPE postgis > CONNECTION "host=XXXX port=5432 dbname=XXXX user=XXXX" > CLASSITEM classe > CLASS > EXPRESSION ([classe] <= 2) > STYLE > COLOR 33 33 210 > WIDTH 5 > END > END > CLASS > EXPRESSION ([classe] <= 4) > STYLE > COLOR 66 66 210 > WIDTH 3 > END > END > CLASS > STYLE > COLOR 99 99 210 > WIDTH 1 > END > END > END > > > > > HTH, > > > -- > > Olivier From zpsantos1 at hotmail.com Mon Dec 3 08:06:16 2012 From: zpsantos1 at hotmail.com (Saint) Date: Mon, 3 Dec 2012 08:06:16 -0800 (PST) Subject: [mapserver-users] MapServer and 24bit Images Message-ID: <1354550776805-5020409.post@n6.nabble.com> Dear all, I would like to have this confirmation, MapServer support 24bit image with 3 bands? I have one 24bit image 1 band and I can see in the browser but the other with 3 bands I can't. Only appear the the outline line of the class e not the image. Many thanks Jos? Santos ----- Jos? Santos GIS Analyst -- View this message in context: http://osgeo-org.1560.n6.nabble.com/MapServer-and-24bit-Images-tp5020409.html Sent from the Mapserver - User mailing list archive at Nabble.com. From umn-ms at hydrotec.de Mon Dec 3 08:38:46 2012 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Mon, 3 Dec 2012 17:38:46 +0100 Subject: [mapserver-users] Problem with "ANGLE FOLLOW" In-Reply-To: References: Message-ID: @Christy Nieman and @Olivier Courtin: Thank you very much! This solved the issue. I tried "MAXOVERLAPANGLE " and all labels were drawn. We'll read the blog to find a reasonable solution. Thank's Benedikt mapserver-users-bounces at lists.osgeo.org schrieb am 03.12.2012 15:35:20: > Olivier Courtin > Gesendet von: mapserver-users-bounces at lists.osgeo.org > > 03.12.2012 15:35 > > An > > mapserver-users at lists.osgeo.org > > Kopie > > Thema > > Re: [mapserver-users] Problem with "ANGLE FOLLOW" > > Hi, > > For same kind of need (i.e hydrologic line to label), i've found that: > ?- Your lines must be long enough to allow the label to fit on > (seems already your case, as it works for you without ANGLE FOLLOW) > ?- You have to increase?MAXOVERLAPANGLE property > ?- Your lines have to be as smooth as possible > > Below a sample of such a thing with two layers, one with the data > itself and one another using a generalization trought PostGIS > ST_Simplify to help the geometry to be smoother enough > > LAYER > NAME "label" > METADATA > "ows_title" "Label des cours d'eau Carthage AERMC" > "ows_extent" "573401 6050407 1242369 6811885" > "ows_featureid" "gid" > END > > PROJECTION > "init=epsg:2154" > END > > TYPE line > STATUS on > DATA "geom from (SELECT gid, ST_simplify(geom, 200) As geom > , toponyme, classe::integer > FROM aermc.cours_eau WHERE toponyme IS NOT NULL) > AS foo using unique gid using srid=2154" > CONNECTIONTYPE postgis > CONNECTION "host=XXXX port=5432 dbname=XXXX user=XXXX" > LABELITEM toponyme > CLASSITEM classe > CLASS > EXPRESSION ([classe] <= 2) > LABEL > COLOR 0 0 0 > OUTLINECOLOR 210 210 210 > TYPE TRUETYPE > FONT vera > SIZE 10 > ANTIALIAS TRUE > POSITION UC > ANGLE FOLLOW > PARTIALS FALSE > MINFEATURESIZE auto > REPEATDISTANCE 500 > MAXOVERLAPANGLE 45 > END > END > CLASS > EXPRESSION ([classe] <= 4) > LABEL > COLOR 30 30 30 > OUTLINECOLOR 210 210 210 > TYPE TRUETYPE > FONT vera > SIZE 8 > ANTIALIAS TRUE > POSITION UC > ANGLE FOLLOW > PARTIALS FALSE > MINFEATURESIZE auto > MAXOVERLAPANGLE 40 > END > END > CLASS > LABEL > COLOR 60 60 60 > OUTLINECOLOR 210 210 210 > TYPE TRUETYPE > FONT vera > SIZE 8 > ANTIALIAS TRUE > POSITION UC > ANGLE FOLLOW > PARTIALS FALSE > MINFEATURESIZE auto > MAXOVERLAPANGLE 40 > END > END > END > > LAYER > NAME "cours_eau" > METADATA > "ows_title" "Cours d'eau Carthage" > "ows_extent" "573401 6050407 1242369 6811885" > "ows_featureid" "gid" > END > > PROJECTION > "init=epsg:2154" > END > > TYPE line > STATUS on > DATA "geom from (SELECT gid, geom , classe::integer FROM > aermc.cours_eau > WHERE toponyme IS NOT NULL) > AS foo using unique gid using srid=2154" > CONNECTIONTYPE postgis > CONNECTION "host=XXXX port=5432 dbname=XXXX user=XXXX" > CLASSITEM classe > CLASS > EXPRESSION ([classe] <= 2) > STYLE > COLOR 33 33 210 > WIDTH 5 > END > END > CLASS > EXPRESSION ([classe] <= 4) > STYLE > COLOR 66 66 210 > WIDTH 3 > END > END > CLASS > STYLE > COLOR 99 99 210 > WIDTH 1 > END > END > END > > HTH, > > -- > Olivier_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Clement.MONIER at v-trafic.com Tue Dec 4 07:23:51 2012 From: Clement.MONIER at v-trafic.com (=?iso-8859-1?Q?Cl=E9ment_MONIER?=) Date: Tue, 4 Dec 2012 16:23:51 +0100 Subject: [mapserver-users] Projection takes less time than no projection ? Message-ID: <0B6D7F516315594DBEFE58178D91BD320202DA2952A4@exchangemm.mm.fr> Hi All, I'm using MapServer to generate tiles to overlay on a GoogleMaps base layer. My data files are WGS84 shapefiles. So my current mapfile was looking like : MAP ... PROJECTION "init=epsg:3785" END ... LAYER ... PROJECTION "init=epsg:4326" END ... END ... END I was wondering about improving response time by disabling on-the-fly projection. So I did pre-project my shp into spherical Mercator first. And my new mapfile now looks like : MAP ... PROJECTION "proj=merc" "a=6378137" "b=6378137" "lat_ts=0.0" "lon_0=0.0" "x_0=0.0" "y_0=0" "k=1.0" "units=m" "nadgrids=@null" "no_defs" END ... LAYER ... END ... END I do get the same tiles. But when asking a single tile using both mapfile, I noticed that the response time was higher (about +10%) when the second mapfile was used ! Do you have any idea about what's going on ? Thanks & Regards Cl?ment -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at erdc.dren.mil Tue Dec 4 07:39:19 2012 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Tue, 4 Dec 2012 15:39:19 +0000 Subject: [mapserver-users] Projection takes less time than no projection ? In-Reply-To: <0B6D7F516315594DBEFE58178D91BD320202DA2952A4@exchangemm.mm.fr> Message-ID: Cl?ment, There is an optimized route for reprojection from 4326 -> 3857 in MapServer (see http://lists.osgeo.org/pipermail/mapserver-dev/2012-February/011956.html) so it can be very fast. I can't see how if could be faster than no projection. Perhaps the 10% is just within the margin of error? Or did you do the test 1000's of times and average the results? That might be what it takes to really see a difference. Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center From: Cl?ment MONIER > Date: Tuesday, December 4, 2012 7:23 AM To: "mapserver-users at lists.osgeo.org" > Subject: [mapserver-users] Projection takes less time than no projection ? Resent-From: Michael Smith > Hi All, I?m using MapServer to generate tiles to overlay on a GoogleMaps base layer. My data files are WGS84 shapefiles. So my current mapfile was looking like : MAP ? PROJECTION "init=epsg:3785" END ? LAYER ? PROJECTION "init=epsg:4326" END ? END ? END I was wondering about improving response time by disabling on-the-fly projection. So I did pre-project my shp into spherical Mercator first. And my new mapfile now looks like : MAP ? PROJECTION "proj=merc" "a=6378137" "b=6378137" "lat_ts=0.0" "lon_0=0.0" "x_0=0.0" "y_0=0" "k=1.0" "units=m" "nadgrids=@null" "no_defs" END ? LAYER ? END ? END I do get the same tiles. But when asking a single tile using both mapfile, I noticed that the response time was higher (about +10%) when the second mapfile was used ! Do you have any idea about what?s going on ? Thanks & Regards Cl?ment -------------- next part -------------- An HTML attachment was scrubbed... URL: From Clement.MONIER at v-trafic.com Tue Dec 4 08:43:50 2012 From: Clement.MONIER at v-trafic.com (=?iso-8859-1?Q?Cl=E9ment_MONIER?=) Date: Tue, 4 Dec 2012 17:43:50 +0100 Subject: [mapserver-users] Projection takes less time than no projection ? In-Reply-To: References: <0B6D7F516315594DBEFE58178D91BD320202DA2952A4@exchangemm.mm.fr> <0B6D7F516315594DBEFE58178D91BD320202DA2952AB@exchangemm.mm.fr> Message-ID: <0B6D7F516315594DBEFE58178D91BD320202DA2952C0@exchangemm.mm.fr> Yes, you're right ! thanks a lot ! My projection (epsg dat) def file had some errors. I made some corrections on my proj espg dat files and it works fine with PROJECTION "init=epsg:3785" END Everywhere Response times now make sense : +10% when projection's enabled (on a specific test tile) De : TC Haddad [mailto:tchaddad at gmail.com] Envoy? : mardi 4 d?cembre 2012 17:29 ? : Cl?ment MONIER Objet : Re: [mapserver-users] Projection takes less time than no projection ? Strange. Maybe you should check your proj EPSG code list and search for 3785 to see if it is listed there (maybe it is missing for some reason?). Or if it is in there, compare it to the defs below to look for any mistakes.... Tanya On Tue, Dec 4, 2012 at 7:57 AM, Cl?ment MONIER > wrote: I did try but it didn't give me the same map view (though requested with TILE=X+Y+Z) I don't know why, but (only in the new mapfile version) if I don't put a MAP projection block like this PROJECTION "proj=merc" "a=6378137" "b=6378137" "lat_ts=0.0" "lon_0=0.0" "x_0=0.0" "y_0=0" "k=1.0" "units=m" "nadgrids=@null" "no_defs" END Instead of PROJECTION "init=epsg:3785" END I don't get the same map's view De : TC Haddad [mailto:tchaddad at gmail.com] Envoy? : mardi 4 d?cembre 2012 16:51 ? : Cl?ment MONIER Objet : Re: [mapserver-users] Projection takes less time than no projection ? did you try this option for comparison? MAP ... PROJECTION "init=epsg:3785" END ... LAYER ... PROJECTION "init=epsg:3785" END ... END ... END On Tue, Dec 4, 2012 at 7:23 AM, Cl?ment MONIER > wrote: MAP ... PROJECTION "init=epsg:3785" END ... LAYER ... PROJECTION "init=epsg:4326" END ... END ... END -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Tue Dec 4 09:45:36 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 4 Dec 2012 17:45:36 +0000 Subject: [mapserver-users] Problem with ODBC connection Message-ID: I want to read the contents of the dbf from a shapefile. I set up an ODBC connection, and have been successful on a development machine, in that I can read the dbf and get the results I was looking for. However, when I move the application to another server, I get the following error message: Warning: odbc_connect(): SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in C:\ms4w_304\apps\geoparcels\htdocs\php\selectparcel.php on line 14 Could Not Connect to ODBC Database! I was under the impression that MapServer had built-in suffort for shapefiles and DBF. I checked over the php.ini file, but didn't find anything. So I am confused as to why this code works on one machine and not another. Any ideas what to look for? -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Tue Dec 4 09:58:33 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 04 Dec 2012 12:58:33 -0500 Subject: [mapserver-users] Problem with ODBC connection In-Reply-To: References: Message-ID: <50BE39C9.1030803@swoodbridge.com> On 12/4/2012 12:45 PM, Bistrais, Bob wrote: > I want to read the contents of the dbf from a shapefile. I set up an > ODBC connection, and have been successful on a development machine, in > that I can read the dbf and get the results I was looking for. However, > when I move the application to another server, I get the following error > message: > > Warning: odbc_connect(): SQL error: [Microsoft][ODBC Driver Manager] > Data source name not found and no default driver specified, SQL state > IM002 in SQLConnect in > C:\ms4w_304\apps\geoparcels\htdocs\php\selectparcel.php on line 14 > > Could Not Connect to ODBC Database! > > I was under the impression that MapServer had built-in suffort for > shapefiles and DBF. I checked over the php.ini file, but didn?t find > anything. So I am confused as to why this code works on one machine and > not another. Any ideas what to look for? It does have native support for reading shapefiles. But if you are using OGR that is not mapserver native support. What does you LAYER definition look like? Also the you reference php.ini are you using mapscript? Then you might be using a PHP to read the shpaefile and not mapserver. You need to show us more of what you are trying to do. Then we can probably help slove this. -Steve W. From Steve.Lime at state.mn.us Tue Dec 4 11:26:01 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 4 Dec 2012 19:26:01 +0000 Subject: [mapserver-users] MapServer and 24bit Images In-Reply-To: <1354550776805-5020409.post@n6.nabble.com> References: <1354550776805-5020409.post@n6.nabble.com> Message-ID: I display true-color imagery all the time. I suspect that's not what you're trying to do though. You'll have to be more specific on format, perhaps post a layer definition? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Saint Sent: Monday, December 03, 2012 10:06 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapServer and 24bit Images Dear all, I would like to have this confirmation, MapServer support 24bit image with 3 bands? I have one 24bit image 1 band and I can see in the browser but the other with 3 bands I can't. Only appear the the outline line of the class e not the image. Many thanks Jos? Santos ----- Jos? Santos GIS Analyst -- View this message in context: http://osgeo-org.1560.n6.nabble.com/MapServer-and-24bit-Images-tp5020409.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 Bob.Bistrais at maine.gov Tue Dec 4 13:03:10 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 4 Dec 2012 21:03:10 +0000 Subject: [mapserver-users] Problem with ODBC connection In-Reply-To: <50BE39C9.1030803@swoodbridge.com> References: <50BE39C9.1030803@swoodbridge.com> Message-ID: Disregard- I forgot to create the odbc data source in Windows on the other server. I set that up and it's working fine now. Thanks, BB -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Tuesday, December 04, 2012 12:59 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with ODBC connection On 12/4/2012 12:45 PM, Bistrais, Bob wrote: > I want to read the contents of the dbf from a shapefile. I set up an > ODBC connection, and have been successful on a development machine, in > that I can read the dbf and get the results I was looking for. > However, when I move the application to another server, I get the > following error > message: > > Warning: odbc_connect(): SQL error: [Microsoft][ODBC Driver Manager] > Data source name not found and no default driver specified, SQL state > IM002 in SQLConnect in > C:\ms4w_304\apps\geoparcels\htdocs\php\selectparcel.php on line 14 > > Could Not Connect to ODBC Database! > > I was under the impression that MapServer had built-in suffort for > shapefiles and DBF. I checked over the php.ini file, but didn't find > anything. So I am confused as to why this code works on one machine > and not another. Any ideas what to look for? It does have native support for reading shapefiles. But if you are using OGR that is not mapserver native support. What does you LAYER definition look like? Also the you reference php.ini are you using mapscript? Then you might be using a PHP to read the shpaefile and not mapserver. You need to show us more of what you are trying to do. Then we can probably help slove this. -Steve W. From Steve.Lime at state.mn.us Tue Dec 4 13:27:28 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 4 Dec 2012 21:27:28 +0000 Subject: [mapserver-users] Zooming In-Reply-To: <50BCB103.5070001@gmail.com> References: <50BCB103.5070001@gmail.com> Message-ID: You could write a onClick handler that takes a zoom value, sets a hidden variable called zoom and submits the form. function doZoom(zoom) { // set value of zoom hidden variable // submit the form } Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Arthur Delorme Sent: Monday, December 03, 2012 8:03 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Zooming Hello, Is there a way to perform a zoom with instead of Thank you, Arthur _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From John.Huotari at RCIS.com Tue Dec 4 15:34:04 2012 From: John.Huotari at RCIS.com (Huotari, John B (RCIS)) Date: Tue, 4 Dec 2012 23:34:04 +0000 Subject: [mapserver-users] System.AccessViolationException on mapscriptPINVOKE.delete_symbolObj Message-ID: I'm using C Sharp MapScript to access MapServer (MS4W 3.0.6). I'm creating a new mapObj from an almost empty MAPFILE and then dynamically add layers to the map and then calling draw to generate an image. I'm also dynamically adding symbolObjs to the map's symbolset for the layers to reference. This all works great the vast majority of the time, but on rare occasions, sometime after the map has been generated, I receive the following AccessViolationException when garbage collection is attempting to clean up the MapServer objects. System.AccessViolationException was unhandled Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Source=mapscript_csharp StackTrace: at OSGeo.MapServer.mapscriptPINVOKE.delete_symbolObj(HandleRef jarg1) at OSGeo.MapServer.symbolObj.Dispose() at OSGeo.MapServer.symbolObj.Finalize() InnerException: I've tried disposing of the map itself, its symbolset, as well as each symbolObj item in that symbolset by calling Dispose on each, but doing so neither causes the error to happen immediately upon calling Dispose (instead it still only happens when garbage collection runs) nor does it do anything to resolve the issue. I don't see any reference to symbolObj in the map layers (looks like it just holds a symbol name and/or index) nor anywhere else that stands out as a logical place to look, so I don't see anything else to dispose. Does anyone have any idea of where I could look for any symbolObjs which have been allocated so I can dispose of them so that garbage collection does not choke when attempting to dispose of them for me? Am I barking up the wrong tree and should be looking somewhere else entirely rather than focusing on symbolObj? Thanks for any guidance that can be provided, John -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Dec 5 01:27:43 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 5 Dec 2012 09:27:43 +0000 Subject: [mapserver-users] MapServer and 24bit Images Message-ID: <84446DEF76453C439E9E97E438E13A637BF33B@suutari.haapa.mmm.fi> Hi, You should try to give more exact description about your problem. By reading several mails which you have sent to MS4W list I believe that you are still talking about the same images. That is 3-band, 8 bits per band images stored into database as PostGIS raster and which you have tried to classify into classes with something like this CLASS # beginning of the class parameter NAME "Very Low" EXPRESSION ([pixel] > 0 AND [pixel] < 47) STYLE COLOR 243 231 172 END # end style for class END # end class for class very Low I had a try with some png file I found from my machine by using this in the mapfile LAYER NAME "classified" DATA "C:\ms4w\apps\data\8000000.png" debug 10 TYPE RASTER STATUS ON PROJECTION "init=epsg:3067" END CLASS NAME "test" EXPRESSION ([pixel] > 100 AND [pixel] < 250) # EXPRESSION ([red] > 100 AND [green] > 100 AND [blue] > 100) STYLE COLOR 0 255 0 END END END Both expressions work so Mapserver does support classification of 3-band, 8 bits per band png images. Try you to convert your raster from the database into image file and repeat your test. It if works from a file but not from PostGIS raster then you know that the issue is somewhere in PostGIS raster handling. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver- > users-bounces at lists.osgeo.org] Puolesta Lime, Steve D (DNR) > L?hetetty: 4. joulukuuta 2012 21:26 > Vastaanottaja: Saint; mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] MapServer and 24bit Images > > I display true-color imagery all the time. I suspect that's not what you're > trying to do though. You'll have to be more specific on format, perhaps post a > layer definition? > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Saint > Sent: Monday, December 03, 2012 10:06 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] MapServer and 24bit Images > > Dear all, > > I would like to have this confirmation, MapServer support 24bit image with 3 > bands? I have one 24bit image 1 band and I can see in the browser but the > other with 3 bands I can't. Only appear the the outline line of the class e not > the image. > > Many thanks > Jos? Santos > > > > ----- > Jos? Santos > GIS Analyst > -- > View this message in context: http://osgeo- > org.1560.n6.nabble.com/MapServer-and-24bit-Images-tp5020409.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From delorme.ipgp at gmail.com Wed Dec 5 02:03:05 2012 From: delorme.ipgp at gmail.com (Arthur Delorme) Date: Wed, 05 Dec 2012 11:03:05 +0100 Subject: [mapserver-users] Zooming In-Reply-To: References: <50BCB103.5070001@gmail.com> Message-ID: <50BF1BD9.3030009@gmail.com> Thank you very much Steve, it's working perfectly! Arthur Le 04/12/12 22:27, Lime, Steve D (DNR) a ?crit : > You could write a onClick handler that takes a zoom value, sets a hidden variable called zoom and submits the form. > > function doZoom(zoom) { > // set value of zoom hidden variable > // submit the form > } > > > > > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Arthur Delorme > Sent: Monday, December 03, 2012 8:03 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Zooming > > Hello, > > Is there a way to perform a zoom with instead of > > Thank you, > Arthur > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From bfraser at geoanalytic.com Wed Dec 5 07:03:30 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 05 Dec 2012 08:03:30 -0700 Subject: [mapserver-users] MapServer and 24bit Images In-Reply-To: <84446DEF76453C439E9E97E438E13A637BF33B@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A637BF33B@suutari.haapa.mmm.fi> Message-ID: <50BF6242.8020003@geoanalytic.com> Jukka, Strange. When I reviewed the source code it looked like Mapserver would refused to classify any 24/32 bit image; I must have missed something. So I tried your mapfile with shp2img v6.0.0 on a 24bit image and it worked! Then I added PROCESSING "BANDS=1,2,3" and it *crashed*. Turning on debugging showed: msLoadMap(): 0.000s msDrawMap(): rendering using outputformat named png24 (AGG/PNG). msDrawMap(): WMS/WFS set-up and query, 0.000s msDrawRasterLayerLow(classified): entering. msDrawRasterLayerGDAL(): Entering transform. msDrawRasterLayerGDAL(): src=0,0,5300,5430, dst=107,0,585,599 msDrawRasterLayerGDAL(): source raster PL (-6.077,-4.533) for dst PL (107,0). msDrawRasterLayerGDAL(): red,green,blue,alpha bands = *1,2,3,0* drawGDAL(): Unable to access file. Attempt to classify 24bit image, this is unsupported. msDrawMap(): Image handling error. Failed to draw layer named 'classified'. <*crash*> Without the PROCESSING directive, I get: msLoadMap(): 0.000s msDrawMap(): rendering using outputformat named png24 (AGG/PNG). msDrawMap(): WMS/WFS set-up and query, 0.000s msDrawRasterLayerLow(classified): entering. msDrawRasterLayerGDAL(): Entering transform. msDrawRasterLayerGDAL(): src=0,0,5300,5430, dst=107,0,585,599 msDrawRasterLayerGDAL(): source raster PL (-6.077,-4.533) for dst PL (107,0). msDrawRasterLayerGDAL(): red,green,blue,alpha bands = *1,0,0,0* msDrawMap(): Layer 0 (classified), 0.187s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.187s msSaveImage(test.png) total time: 0.125s msFreeMap(): freeing map at 00BBC4A8. freeLayer(): freeing layer at 00BBF9B0. shp2img total time: 0.312s The line msDrawRasterLayerGDAL(): red,green,blue,alpha bands = *1,0,0,0* implies that GDAL may be using only band one to do the classification, but maybe not (more testing required?). Removing the EXPRESSION object shows msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,2,3,0 And I do get a 24 bit image for output (as expected). FYI, here's my mapfile: MAP NAME 'classified' STATUS ON EXTENT -5009377.086 10752549.183 392.653 15885200.067 SIZE 800 600 IMAGETYPE "png24" OUTPUTFORMAT # Parameter Output NAME png24 DRIVER "AGG/PNG" MIMETYPE "image/png" EXTENSION PNG IMAGEMODE RGBA TRANSPARENT ON END # end of parameter Output LAYER NAME "classified" DATA "Arctic_terra.250m.tif" DEBUG 5 TYPE raster STATUS default # PROCESSING "NODATA=0" # PROCESSING "SCALE=AUTO" # PROCESSING "BANDS=1,2,3" # PROCESSING "DITHER=YES" CLASS NAME "test" # EXPRESSION ([pixel] > 100 AND [pixel] < 250) EXPRESSION ([red] > 100 AND [green] > 100 AND [blue] > 100) STYLE COLOR 0 255 0 END #Style END # Class END # Layer END # Map Best Regards, Brent Fraser On 12/5/2012 2:27 AM, Rahkonen Jukka wrote: > Hi, > > You should try to give more exact description about your problem. By reading several mails which you have sent to MS4W list I believe that you are still talking about the same images. That is 3-band, 8 bits per band images stored into database as PostGIS raster and which you have tried to classify into classes with something like this > > CLASS # beginning of the class parameter > NAME "Very Low" > EXPRESSION ([pixel] > 0 AND [pixel] < 47) > STYLE > COLOR 243 231 172 > END # end style for class > END # end class for class very Low > > I had a try with some png file I found from my machine by using this in the mapfile > > LAYER > NAME "classified" > DATA "C:\ms4w\apps\data\8000000.png" > debug 10 > TYPE RASTER > STATUS ON > PROJECTION > "init=epsg:3067" > END > CLASS > NAME "test" > EXPRESSION ([pixel] > 100 AND [pixel] < 250) > # EXPRESSION ([red] > 100 AND [green] > 100 AND [blue] > 100) > STYLE > COLOR 0 255 0 > END > END > END > > Both expressions work so Mapserver does support classification of 3-band, 8 bits per band png images. > Try you to convert your raster from the database into image file and repeat your test. It if works from a file but not from PostGIS raster then you know that the issue is somewhere in PostGIS raster handling. > > -Jukka Rahkonen- > > > >> -----Alkuper?inen viesti----- >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver- >> users-bounces at lists.osgeo.org] Puolesta Lime, Steve D (DNR) >> L?hetetty: 4. joulukuuta 2012 21:26 >> Vastaanottaja: Saint; mapserver-users at lists.osgeo.org >> Aihe: Re: [mapserver-users] MapServer and 24bit Images >> >> I display true-color imagery all the time. I suspect that's not what you're >> trying to do though. You'll have to be more specific on format, perhaps post a >> layer definition? >> >> Steve >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- >> bounces at lists.osgeo.org] On Behalf Of Saint >> Sent: Monday, December 03, 2012 10:06 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] MapServer and 24bit Images >> >> Dear all, >> >> I would like to have this confirmation, MapServer support 24bit image with 3 >> bands? I have one 24bit image 1 band and I can see in the browser but the >> other with 3 bands I can't. Only appear the the outline line of the class e not >> the image. >> >> Many thanks >> Jos? Santos >> >> >> >> ----- >> Jos? Santos >> GIS Analyst >> -- >> View this message in context: http://osgeo- >> org.1560.n6.nabble.com/MapServer-and-24bit-Images-tp5020409.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sakaroyban at yahoo.com Wed Dec 5 09:40:44 2012 From: sakaroyban at yahoo.com (Saka Royban) Date: Wed, 5 Dec 2012 09:40:44 -0800 (PST) Subject: [mapserver-users] Mapserver useful for ordinary sites or not? Message-ID: <1354729244.81018.YahooMailNeo@web125903.mail.ne1.yahoo.com> Hi guys After a lot of effort to use CGI mapserver in my own site and finally leaving hope to find a solution, i came here to ask whether maserver is useful just for dedicated servers or VPSs really? I (and as it sounds, most of users) have just bought some space from a host provider (i.e Linux) with a CGI-bin directory which as my host provider says is able to run CGI applications written in perl and C/C++. I have searched a lot but as it appears no one has been successful to run CGI mapserver in its CGI-bin folder. Am i right? CGI mapserver is useful just when shell access is available? Should i switch to Mapscript? Or maybe, buy a windows host with CGI capability? Your help would nicely be appreciated. I'm really got stuck and confused. Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From punk.kish at gmail.com Wed Dec 5 09:54:53 2012 From: punk.kish at gmail.com (Mr. Puneet Kishor) Date: Wed, 5 Dec 2012 09:54:53 -0800 Subject: [mapserver-users] Mapserver useful for ordinary sites or not? In-Reply-To: <1354729244.81018.YahooMailNeo@web125903.mail.ne1.yahoo.com> References: <1354729244.81018.YahooMailNeo@web125903.mail.ne1.yahoo.com> Message-ID: On Dec 5, 2012, at 9:40 AM, Saka Royban wrote: > Hi guys > After a lot of effort to use CGI mapserver in my own site and finally leaving hope to find a solution, i came here to ask whether maserver is useful just for dedicated servers or VPSs really? > I (and as it sounds, most of users) have just bought some space from a host provider (i.e Linux) with a CGI-bin directory which as my host provider says is able to run CGI applications written in perl and C/C++. > > I have searched a lot but as it appears no one has been successful to run CGI mapserver in its CGI-bin folder. Am i right? You are not right. MapServer is surprisingly easy to set up and get working, at least for basic and mid-complexity use cases. > CGI mapserver is useful just when shell access is available? Should i switch to Mapscript? Or maybe, buy a windows host with CGI capability? Unless you figure out what you are doing wrong, you can't set it right. Why don't you post your issues here in detail (how you are setting things up, have you followed the tutorial, etc.) along with the errors you are getting (general description as well as specific error messages. I am sure one of us will be able to help you. > > Your help would nicely be appreciated. I'm really got stuck and confused. > Yup, frustration is a common feeling when things don't work, but really, no need to give up. "You can do it, we can help" -- Puneet Kishor Science and Data Policy at Creative Commons From sakaroyban at yahoo.com Wed Dec 5 10:16:37 2012 From: sakaroyban at yahoo.com (Saka Royban) Date: Wed, 5 Dec 2012 10:16:37 -0800 (PST) Subject: [mapserver-users] Mapserver useful for ordinary sites or not? In-Reply-To: References: <1354729244.81018.YahooMailNeo@web125903.mail.ne1.yahoo.com> Message-ID: <1354731397.54804.YahooMailNeo@web125902.mail.ne1.yahoo.com> Thanks for your answer After lots of try, i found that i can extract mapserver binary from rpm using 7zip. I put that executable file to cgi-bin and call it via address bar but no success, just 500 Internal Server Error. (I know mapserver has some dependencies but in spite of that it everything was right it should display a nice error) Contacting with guys in host provider, they pointed me to http://mapserver.org/installation/unix.html#installation and finally told me there is no shell access to run this commands. I'm familiar with structure of mapserver cause of working with MS4W in my own computer. In addition, i've checked CGI-bin directory by running some perl script and everything is O.K. They really provide CGI capability. Now, i don't know what can i do more. (I'm not familiar with Linux, although i know what running a shell command means. I've been around computer since DOS age) Thanks in advance for helpful advices. Regards ----- Original Message ----- From: Mr. Puneet Kishor To: MapServer OSGEO Cc: Sent: Wednesday, December 5, 2012 9:24 PM Subject: Re: [mapserver-users] Mapserver useful for ordinary sites or not? On Dec 5, 2012, at 9:40 AM, Saka Royban wrote: > Hi guys > After a lot of effort to use CGI mapserver in my own site and finally leaving hope to find a solution, i came here to ask whether maserver is useful just for dedicated servers or VPSs really? > I (and as it sounds, most of users) have just bought some space from a host provider (i.e Linux) with a CGI-bin directory which as my host provider says is able to run CGI applications written in perl and C/C++. > > I have searched a lot but as it appears no one has been successful to run CGI mapserver in its CGI-bin folder. Am i right? You are not right. MapServer is surprisingly easy to set up and get working, at least for basic and mid-complexity use cases. > CGI mapserver is useful just when shell access is available? Should i switch to Mapscript? Or maybe, buy a windows host with CGI capability? Unless you figure out what you are doing wrong, you can't set it right. Why don't you post your issues here in detail (how you are setting things up, have you followed the tutorial, etc.) along with the errors you are getting (general description as well as specific error messages. I am sure one of us will be able to help you. > > Your help would nicely be appreciated. I'm really got stuck and confused. > Yup, frustration is a common feeling when things don't work, but really, no need to give up. "You can do it, we can help" -- Puneet Kishor Science and Data Policy at Creative Commons _______________________________________________ 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 woodbri at swoodbridge.com Wed Dec 5 10:31:32 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 05 Dec 2012 13:31:32 -0500 Subject: [mapserver-users] Mapserver useful for ordinary sites or not? In-Reply-To: <1354731397.54804.YahooMailNeo@web125902.mail.ne1.yahoo.com> References: <1354729244.81018.YahooMailNeo@web125903.mail.ne1.yahoo.com> <1354731397.54804.YahooMailNeo@web125902.mail.ne1.yahoo.com> Message-ID: <50BF9304.8060903@swoodbridge.com> It is probably failing because of missing dependency. Try this from the command line: /path/to/cgi-bin/mapserver -v This will give a more useful error message you can read. That said, extracting the binary and copying it to the cgi-bin is not going to work in most cases because the whole point of package systems like rpm it to find and install the dependencies. What version of linux is installed on your host? There is probably a one line command that we can give you to install mapserver the correct way. -Steve W On 12/5/2012 1:16 PM, Saka Royban wrote: > Thanks for your answer > After lots of try, i found that i can extract mapserver binary from rpm > using 7zip. I put that executable file to cgi-bin and call it via > address bar but no success, just 500 Internal Server Error. (I know > mapserver has some dependencies but in spite of that it everything was > right it should display a nice error) > Contacting with guys in host provider, they pointed me to > http://mapserver.org/installation/unix.html#installation and finally > told me there is no shell access to run this commands. > I'm familiar with structure of mapserver cause of working with MS4W in > my own computer. In addition, i've checked CGI-bin directory by running > some perl script and everything is O.K. They really provide CGI capability. > > Now, i don't know what can i do more. (I'm not familiar with Linux, > although i know what running a shell command means. I've been around > computer since DOS age) > > Thanks in advance for helpful advices. > Regards > > > ----- Original Message ----- > From: Mr. Puneet Kishor > To: MapServer OSGEO > Cc: > Sent: Wednesday, December 5, 2012 9:24 PM > Subject: Re: [mapserver-users] Mapserver useful for ordinary sites or not? > > > On Dec 5, 2012, at 9:40 AM, Saka Royban > wrote: > > > Hi guys > > After a lot of effort to use CGI mapserver in my own site and finally > leaving hope to find a solution, i came here to ask whether maserver is > useful just for dedicated servers or VPSs really? > > I (and as it sounds, most of users) have just bought some space from > a host provider (i.e Linux) with a CGI-bin directory which as my host > provider says is able to run CGI applications written in perl and C/C++. > > > > I have searched a lot but as it appears no one has been successful to > run CGI mapserver in its CGI-bin folder. Am i right? > > > You are not right. MapServer is surprisingly easy to set up and get > working, at least for basic and mid-complexity use cases. > > > > CGI mapserver is useful just when shell access is available? Should i > switch to Mapscript? Or maybe, buy a windows host with CGI capability? > > > Unless you figure out what you are doing wrong, you can't set it right. > Why don't you post your issues here in detail (how you are setting > things up, have you followed the tutorial, etc.) along with the errors > you are getting (general description as well as specific error messages. > I am sure one of us will be able to help you. > > > > > > > Your help would nicely be appreciated. I'm really got stuck and confused. > > > > > Yup, frustration is a common feeling when things don't work, but really, > no need to give up. "You can do it, we can help" > > > > -- > Puneet Kishor > Science and Data Policy at Creative Commons > _______________________________________________ > 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 sakaroyban at yahoo.com Wed Dec 5 10:48:07 2012 From: sakaroyban at yahoo.com (Saka Royban) Date: Wed, 5 Dec 2012 10:48:07 -0800 (PST) Subject: [mapserver-users] Mapserver useful for ordinary sites or not? In-Reply-To: <1354733254.97269.YahooMailNeo@web125905.mail.ne1.yahoo.com> References: <1354729244.81018.YahooMailNeo@web125903.mail.ne1.yahoo.com> <1354731397.54804.YahooMailNeo@web125902.mail.ne1.yahoo.com> <50BF9304.8060903@swoodbridge.com> <1354733254.97269.YahooMailNeo@web125905.mail.ne1.yahoo.com> Message-ID: <1354733287.48179.YahooMailNeo@web125905.mail.ne1.yahoo.com> Hi Stephen It's CentOS and i've extracted that file from Enterprise Linux GIS. I ONLY have cPanel in front myself. How can i run that command? Sorry but i really don't know. Thanks ----- Original Message ----- From: Stephen Woodbridge To: mapserver-users at lists.osgeo.org Cc: Sent: Wednesday, December 5, 2012 10:01 PM Subject: Re: [mapserver-users] Mapserver useful for ordinary sites or not? It is probably failing because of missing dependency. Try this from the command line: /path/to/cgi-bin/mapserver -v This will give a more useful error message you can read. That said, extracting the binary and copying it to the cgi-bin is not going to work in most cases because the whole point of package systems like rpm it to find and install the dependencies. What version of linux is installed on your host? There is probably a one line command that we can give you to install mapserver the correct way. -Steve W On 12/5/2012 1:16 PM, Saka Royban wrote: > Thanks for your answer > After lots of try, i found that i can extract mapserver binary from rpm > using 7zip. I put that executable file to cgi-bin and call it via > address bar but no success, just 500 Internal Server Error. (I know > mapserver has some dependencies but in spite of that it everything was > right it should display a nice error) > Contacting with guys in host provider, they pointed me to > http://mapserver.org/installation/unix.html#installation and finally > told me there is no shell access to run this commands. > I'm familiar with structure of mapserver cause of working with MS4W in > my own computer. In addition, i've checked CGI-bin directory by running > some perl script and everything is O.K. They really provide CGI capability. > > Now, i don't know what can i do more. (I'm not familiar with Linux, > although i know what running a shell command means. I've been around > computer since DOS age) > > Thanks in advance for helpful advices. > Regards > > > ----- Original Message ----- > From: Mr. Puneet Kishor > To: MapServer OSGEO > Cc: > Sent: Wednesday, December 5, 2012 9:24 PM > Subject: Re: [mapserver-users] Mapserver useful for ordinary sites or not? > > > On Dec 5, 2012, at 9:40 AM, Saka Royban > wrote: > >? > Hi guys >? > After a lot of effort to use CGI mapserver in my own site and finally > leaving hope to find a solution, i came here to ask whether maserver is > useful just for dedicated servers or VPSs really? >? > I (and as it sounds, most of users) have just bought some space from > a host provider (i.e Linux) with a CGI-bin directory which as my host > provider says is able to run CGI applications written in perl and C/C++. >? > >? > I have searched a lot but as it appears no one has been successful to > run CGI mapserver in its CGI-bin folder. Am i right? > > > You are not right. MapServer is surprisingly easy to set up and get > working, at least for basic and mid-complexity use cases. > > >? > CGI mapserver is useful just when shell access is available? Should i > switch to Mapscript? Or maybe, buy a windows host with CGI capability? > > > Unless you figure out what you are doing wrong, you can't set it right. > Why don't you post your issues here in detail (how you are setting > things up, have you followed the tutorial, etc.) along with the errors > you are getting (general description as well as specific error messages. > I am sure one of us will be able to help you. > > > >? > >? > Your help would nicely be appreciated. I'm really got stuck and confused. >? > > > > Yup, frustration is a common feeling when things don't work, but really, > no need to give up. "You can do it, we can help" > > > > -- > Puneet Kishor > Science and Data Policy at Creative Commons > _______________________________________________ > 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 punk.kish at gmail.com Wed Dec 5 11:00:03 2012 From: punk.kish at gmail.com (Mr. Puneet Kishor) Date: Wed, 5 Dec 2012 11:00:03 -0800 Subject: [mapserver-users] Mapserver useful for ordinary sites or not? In-Reply-To: <1354733287.48179.YahooMailNeo@web125905.mail.ne1.yahoo.com> References: <1354729244.81018.YahooMailNeo@web125903.mail.ne1.yahoo.com> <1354731397.54804.YahooMailNeo@web125902.mail.ne1.yahoo.com> <50BF9304.8060903@swoodbridge.com> <1354733254.97269.YahooMailNeo@web125905.mail.ne1.yahoo.com> <1354733287.48179.YahooMailNeo@web125905.mail.ne1.yahoo.com> Message-ID: <0F50F3EE-DEF9-4BAF-A25C-6881B2DD2A61@gmail.com> On Dec 5, 2012, at 10:48 AM, Saka Royban wrote: > > > Hi Stephen > It's CentOS and i've extracted that file from Enterprise Linux GIS. > I ONLY have cPanel in front myself. How can i run that command? If you don't have shell access, you can ask your web host to install it for you. Most decent web hosting providers will do it for you. If they don't, you should consider moving to one who will. > > Sorry but i really don't know. > > Thanks > > ----- Original Message ----- > From: Stephen Woodbridge > To: mapserver-users at lists.osgeo.org > Cc: > Sent: Wednesday, December 5, 2012 10:01 PM > Subject: Re: [mapserver-users] Mapserver useful for ordinary sites or not? > > It is > probably failing because of missing dependency. > > Try this from the command line: > > /path/to/cgi-bin/mapserver -v > > This will give a more useful error message you can read. > > That said, extracting the binary and copying it to the cgi-bin is not > going to work in most cases because the whole point of package systems > like rpm it to find and install the dependencies. > > What version of linux is installed on your host? > There is probably a one line command that we can give you to install > mapserver the correct way. > > -Steve W > > On 12/5/2012 1:16 PM, Saka Royban wrote: >> Thanks for your answer >> After lots of try, i found that i can extract mapserver binary from rpm >> using 7zip. I put that executable file to cgi-bin and call it via >> address bar but no success, just 500 Internal Server Error. (I know >> mapserver has some dependencies but in spite of that it everything was >> > right it should display a nice error) >> Contacting with guys in host provider, they pointed me to >> http://mapserver.org/installation/unix.html#installation and finally >> told me there is no shell access to run this commands. >> I'm familiar with structure of mapserver cause of working with MS4W in >> my own computer. In addition, i've checked CGI-bin directory by running >> some perl script and everything is O.K. They really provide CGI capability. >> >> Now, i don't know what can i do more. (I'm not familiar with Linux, >> although i know what running a shell command means. I've been around >> computer since DOS age) >> >> Thanks in advance for helpful advices. >> Regards >> >> >> ----- Original Message ----- >> From: Mr. Puneet Kishor >> To: MapServer OSGEO >> Cc: >> Sent: Wednesday, December 5, 2012 9:24 PM >> Subject: Re: [mapserver-users] Mapserver useful for ordinary sites or not? >> >> >> On Dec 5, 2012, at 9:40 AM, Saka Royban > > wrote: >> >> > Hi guys >> > After a lot of effort to use CGI mapserver in my own site and finally >> leaving hope to find a solution, i came here to ask whether maserver is >> useful just for dedicated servers or VPSs really? >> > I > (and as it sounds, most of users) have just bought some space from >> a host provider (i.e Linux) with a CGI-bin directory which as my host >> provider says is able to run CGI applications written in perl and C/C++. >> > >> > I have searched a lot but as it appears no one has been successful to >> run CGI mapserver in its CGI-bin folder. Am i right? >> >> >> You are not right. MapServer is surprisingly easy to set up and get >> working, at least for basic and mid-complexity use cases. >> >> >> > CGI mapserver is useful just when shell access is available? Should i >> switch to Mapscript? Or maybe, buy a windows host with CGI capability? >> >> >> Unless you figure out what you are doing wrong, you can't set it right. >> Why don't you post your issues here in detail (how you are setting >> things up, have you followed the tutorial, etc.) > along with the errors >> you are getting (general description as well as specific error messages. >> I am sure one of us will be able to help you. >> >> >> >> > >> > Your help would nicely be appreciated. I'm really got stuck and confused. >> > >> >> >> Yup, frustration is a common feeling when things don't work, but really, >> no need to give up. "You can do it, we can help" >> >> >> >> -- >> Puneet Kishor >> Science and Data Policy at Creative Commons From woodbri at swoodbridge.com Wed Dec 5 11:17:47 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 05 Dec 2012 14:17:47 -0500 Subject: [mapserver-users] Mapserver useful for ordinary sites or not? In-Reply-To: <1354733287.48179.YahooMailNeo@web125905.mail.ne1.yahoo.com> References: <1354729244.81018.YahooMailNeo@web125903.mail.ne1.yahoo.com> <1354731397.54804.YahooMailNeo@web125902.mail.ne1.yahoo.com> <50BF9304.8060903@swoodbridge.com> <1354733254.97269.YahooMailNeo@web125905.mail.ne1.yahoo.com> <1354733287.48179.YahooMailNeo@web125905.mail.ne1.yahoo.com> Message-ID: <50BF9DDB.4030002@swoodbridge.com> Try google "centos mapserver install cpanel" it looks like it has some promising leads. -Steve W On 12/5/2012 1:48 PM, Saka Royban wrote: > > Hi Stephen > It's CentOS and i've extracted that file from Enterprise Linux GIS. > I ONLY have cPanel in front myself. How can i run that command? > Sorry but i really don't know. > > Thanks > ----- Original Message ----- > From: Stephen Woodbridge > To: mapserver-users at lists.osgeo.org > Cc: > Sent: Wednesday, December 5, 2012 10:01 PM > Subject: Re: [mapserver-users] Mapserver useful for ordinary sites or not? > > It is probably failing because of missing dependency. > > Try this from the command line: > > /path/to/cgi-bin/mapserver -v > > This will give a more useful error message you can read. > > That said, extracting the binary and copying it to the cgi-bin is not > going to work in most cases because the whole point of package systems > like rpm it to find and install the dependencies. > > What version of linux is installed on your host? > There is probably a one line command that we can give you to install > mapserver the correct way. > > -Steve W > > On 12/5/2012 1:16 PM, Saka Royban wrote: > > Thanks for your answer > > After lots of try, i found that i can extract mapserver binary from rpm > > using 7zip. I put that executable file to cgi-bin and call it via > > address bar but no success, just 500 Internal Server Error. (I know > > mapserver has some dependencies but in spite of that it everything was > > right it should display a nice error) > > Contacting with guys in host provider, they pointed me to > > http://mapserver.org/installation/unix.html#installation and finally > > told me there is no shell access to run this commands. > > I'm familiar with structure of mapserver cause of working with MS4W in > > my own computer. In addition, i've checked CGI-bin directory by running > > some perl script and everything is O.K. They really provide CGI > capability. > > > > Now, i don't know what can i do more. (I'm not familiar with Linux, > > although i know what running a shell command means. I've been around > > computer since DOS age) > > > > Thanks in advance for helpful advices. > > Regards > > > > > > ----- Original Message ----- > > From: Mr. Puneet Kishor > > > To: MapServer OSGEO > > > Cc: > > Sent: Wednesday, December 5, 2012 9:24 PM > > Subject: Re: [mapserver-users] Mapserver useful for ordinary sites or > not? > > > > > > On Dec 5, 2012, at 9:40 AM, Saka Royban > > >> wrote: > > > > > Hi guys > > > After a lot of effort to use CGI mapserver in my own site and finally > > leaving hope to find a solution, i came here to ask whether maserver is > > useful just for dedicated servers or VPSs really? > > > I (and as it sounds, most of users) have just bought some space from > > a host provider (i.e Linux) with a CGI-bin directory which as my host > > provider says is able to run CGI applications written in perl and C/C++. > > > > > > I have searched a lot but as it appears no one has been successful to > > run CGI mapserver in its CGI-bin folder. Am i right? > > > > > > You are not right. MapServer is surprisingly easy to set up and get > > working, at least for basic and mid-complexity use cases. > > > > > > > CGI mapserver is useful just when shell access is available? Should i > > switch to Mapscript? Or maybe, buy a windows host with CGI capability? > > > > > > Unless you figure out what you are doing wrong, you can't set it right. > > Why don't you post your issues here in detail (how you are setting > > things up, have you followed the tutorial, etc.) along with the errors > > you are getting (general description as well as specific error messages. > > I am sure one of us will be able to help you. > > > > > > > > > > > > Your help would nicely be appreciated. I'm really got stuck and > confused. > > > > > > > > > Yup, frustration is a common feeling when things don't work, but really, > > no need to give up. "You can do it, we can help" > > > > > > > > -- > > Puneet Kishor > > Science and Data Policy at Creative Commons > > _______________________________________________ > > 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 sakaroyban at yahoo.com Wed Dec 5 11:20:35 2012 From: sakaroyban at yahoo.com (Saka Royban) Date: Wed, 5 Dec 2012 11:20:35 -0800 (PST) Subject: [mapserver-users] Mapserver useful for ordinary sites or not? In-Reply-To: <0F50F3EE-DEF9-4BAF-A25C-6881B2DD2A61@gmail.com> References: <1354729244.81018.YahooMailNeo@web125903.mail.ne1.yahoo.com> <1354731397.54804.YahooMailNeo@web125902.mail.ne1.yahoo.com> <50BF9304.8060903@swoodbridge.com> <1354733254.97269.YahooMailNeo@web125905.mail.ne1.yahoo.com> <1354733287.48179.YahooMailNeo@web125905.mail.ne1.yahoo.com> <0F50F3EE-DEF9-4BAF-A25C-6881B2DD2A61@gmail.com> Message-ID: <1354735235.81496.YahooMailNeo@web125904.mail.ne1.yahoo.com> Thanks Does windows version of mapserver need installation or copying mapserv.exe plus those files is sufficient (for a windows host)? ----- Original Message ----- From: Mr. Puneet Kishor To: MapServer OSGEO Cc: Sent: Wednesday, December 5, 2012 10:30 PM Subject: Re: [mapserver-users] Mapserver useful for ordinary sites or not? On Dec 5, 2012, at 10:48 AM, Saka Royban wrote: > > > Hi Stephen > It's CentOS and i've extracted that file from Enterprise Linux GIS. > I ONLY have cPanel in front myself. How can i run that command? If you don't have shell access, you can ask your web host to install it for you. Most decent web hosting providers will do it for you. If they don't, you should consider moving to one who will. > > Sorry but i really don't know. > > Thanks > > ----- Original Message ----- > From: Stephen Woodbridge > To: mapserver-users at lists.osgeo.org > Cc: > Sent: Wednesday, December 5, 2012 10:01 PM > Subject: Re: [mapserver-users] Mapserver useful for ordinary sites or not? > > It is > probably failing because of missing dependency. > > Try this from the command line: > > /path/to/cgi-bin/mapserver -v > > This will give a more useful error message you can read. > > That said, extracting the binary and copying it to the cgi-bin is not > going to work in most cases because the whole point of package systems > like rpm it to find and install the dependencies. > > What version of linux is installed on your host? > There is probably a one line command that we can give you to install > mapserver the correct way. > > -Steve W > > On 12/5/2012 1:16 PM, Saka Royban wrote: >> Thanks for your answer >> After lots of try, i found that i can extract mapserver binary from rpm >> using 7zip. I put that executable file to cgi-bin and call it via >> address bar but no success, just 500 Internal Server Error. (I know >> mapserver has some dependencies but in spite of that it everything was >> > right it should display a nice error) >> Contacting with guys in host provider, they pointed me to >> http://mapserver.org/installation/unix.html#installation and finally >> told me there is no shell access to run this commands. >> I'm familiar with structure of mapserver cause of working with MS4W in >> my own computer. In addition, i've checked CGI-bin directory by running >> some perl script and everything is O.K. They really provide CGI capability. >> >> Now, i don't know what can i do more. (I'm not familiar with Linux, >> although i know what running a shell command means. I've been around >> computer since DOS age) >> >> Thanks in advance for helpful advices. >> Regards >> >> >> ----- Original Message ----- >> From: Mr. Puneet Kishor >> To: MapServer OSGEO >> Cc: >> Sent: Wednesday, December 5, 2012 9:24 PM >> Subject: Re: [mapserver-users] Mapserver useful for ordinary sites or not? >> >> >> On Dec 5, 2012, at 9:40 AM, Saka Royban > > wrote: >> >>? > Hi guys >>? > After a lot of effort to use CGI mapserver in my own site and finally >> leaving hope to find a solution, i came here to ask whether maserver is >> useful just for dedicated servers or VPSs really? >>? > I > (and as it sounds, most of users) have just bought some space from >> a host provider (i.e Linux) with a CGI-bin directory which as my host >> provider says is able to run CGI applications written in perl and C/C++. >>? > >>? > I have searched a lot but as it appears no one has been successful to >> run CGI mapserver in its CGI-bin folder. Am i right? >> >> >> You are not right. MapServer is surprisingly easy to set up and get >> working, at least for basic and mid-complexity use cases. >> >> >>? > CGI mapserver is useful just when shell access is available? Should i >> switch to Mapscript? Or maybe, buy a windows host with CGI capability? >> >> >> Unless you figure out what you are doing wrong, you can't set it right. >> Why don't you post your issues here in detail (how you are setting >> things up, have you followed the tutorial, etc.) > along with the errors >> you are getting (general description as well as specific error messages. >> I am sure one of us will be able to help you. >> >> >> >>? > >>? > Your help would nicely be appreciated. I'm really got stuck and confused. >>? > >> >> >> Yup, frustration is a common feeling when things don't work, but really, >> no need to give up. "You can do it, we can help" >> >> >> >> -- >> Puneet Kishor >> Science and Data Policy at Creative Commons _______________________________________________ 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 admin at michiganwxsystem.com Wed Dec 5 11:31:51 2012 From: admin at michiganwxsystem.com (Jeff Lake) Date: Wed, 05 Dec 2012 14:31:51 -0500 Subject: [mapserver-users] Mapserver useful for ordinary sites or not? In-Reply-To: <1354735235.81496.YahooMailNeo@web125904.mail.ne1.yahoo.com> References: <1354729244.81018.YahooMailNeo@web125903.mail.ne1.yahoo.com> <1354731397.54804.YahooMailNeo@web125902.mail.ne1.yahoo.com> <50BF9304.8060903@swoodbridge.com> <1354733254.97269.YahooMailNeo@web125905.mail.ne1.yahoo.com> <1354733287.48179.YahooMailNeo@web125905.mail.ne1.yahoo.com> <0F50F3EE-DEF9-4BAF-A25C-6881B2DD2A61@gmail.com> <1354735235.81496.YahooMailNeo@web125904.mail.ne1.yahoo.com> Message-ID: <50BFA127.7050507@michiganwxsystem.com> If you want to use mapserver on a real linux host ... contact me off list .... All my cPanel hosted accounts have access to: mapserver, GDAL postGIS enabled pgsql database degrib wgrib wgrib2 GrADS all the above are installed globally on a brand new CentOS 6.3 64bit quad core i3 -Jeff Lake MichiganWxSystem.com AllisonHouse.com TheWeatherCenter.net GRLevelXStuff.com On 12/5/2012 14:20, Saka Royban wrote: > Thanks > Does windows version of mapserver need installation or copying > mapserv.exe plus those files is sufficient (for a windows host)? > > ----- Original Message ----- > From: Mr. Puneet Kishor > To: MapServer OSGEO > Cc: > Sent: Wednesday, December 5, 2012 10:30 PM > Subject: Re: [mapserver-users] Mapserver useful for ordinary sites or not? > > > On Dec 5, 2012, at 10:48 AM, Saka Royban > wrote: > > > > > > > Hi Stephen > > It's CentOS and i've extracted that file from Enterprise Linux GIS. > > I ONLY have cPanel in front myself. How can i run that command? > > > If you don't have shell access, you can ask your web host to install > it for you. Most decent web hosting providers will do it for you. If > they don't, you should consider moving to one who will. > > > > > > > Sorry but i really don't know. > > > > Thanks > > > > ----- Original Message ----- > > From: Stephen Woodbridge > > > To: mapserver-users at lists.osgeo.org > > > Cc: > > Sent: Wednesday, December 5, 2012 10:01 PM > > Subject: Re: [mapserver-users] Mapserver useful for ordinary sites > or not? > > > > It is > > probably failing because of missing dependency. > > > > Try this from the command line: > > > > /path/to/cgi-bin/mapserver -v > > > > This will give a more useful error message you can read. > > > > That said, extracting the binary and copying it to the cgi-bin is not > > going to work in most cases because the whole point of package systems > > like rpm it to find and install the dependencies. > > > > What version of linux is installed on your host? > > There is probably a one line command that we can give you to install > > mapserver the correct way. > > > > -Steve W > > > > On 12/5/2012 1:16 PM, Saka Royban wrote: > >> Thanks for your answer > >> After lots of try, i found that i can extract mapserver binary from rpm > >> using 7zip. I put that executable file to cgi-bin and call it via > >> address bar but no success, just 500 Internal Server Error. (I know > >> mapserver has some dependencies but in spite of that it everything was > >> > > right it should display a nice error) > >> Contacting with guys in host provider, they pointed me to > >> http://mapserver.org/installation/unix.html#installation and finally > >> told me there is no shell access to run this commands. > >> I'm familiar with structure of mapserver cause of working with MS4W in > >> my own computer. In addition, i've checked CGI-bin directory by running > >> some perl script and everything is O.K. They really provide CGI > capability. > >> > >> Now, i don't know what can i do more. (I'm not familiar with Linux, > >> although i know what running a shell command means. I've been around > >> computer since DOS age) > >> > >> Thanks in advance for helpful advices. > >> Regards > >> > >> > >> ----- Original Message ----- > >> From: Mr. Puneet Kishor > > >> To: MapServer OSGEO > > >> Cc: > >> Sent: Wednesday, December 5, 2012 9:24 PM > >> Subject: Re: [mapserver-users] Mapserver useful for ordinary sites > or not? > >> > >> > >> On Dec 5, 2012, at 9:40 AM, Saka Royban > >> >> wrote: > >> > >> > Hi guys > >> > After a lot of effort to use CGI mapserver in my own site and > finally > >> leaving hope to find a solution, i came here to ask whether maserver is > >> useful just for dedicated servers or VPSs really? > >> > I > > (and as it sounds, most of users) have just bought some space from > >> a host provider (i.e Linux) with a CGI-bin directory which as my host > >> provider says is able to run CGI applications written in perl and > C/C++. > >> > > >> > I have searched a lot but as it appears no one has been > successful to > >> run CGI mapserver in its CGI-bin folder. Am i right? > >> > >> > >> You are not right. MapServer is surprisingly easy to set up and get > >> working, at least for basic and mid-complexity use cases. > >> > >> > >> > CGI mapserver is useful just when shell access is available? > Should i > >> switch to Mapscript? Or maybe, buy a windows host with CGI capability? > >> > >> > >> Unless you figure out what you are doing wrong, you can't set it right. > >> Why don't you post your issues here in detail (how you are setting > >> things up, have you followed the tutorial, etc.) > > along with the errors > >> you are getting (general description as well as specific error > messages. > >> I am sure one of us will be able to help you. > >> > >> > >> > >> > > >> > Your help would nicely be appreciated. I'm really got stuck and > confused. > >> > > >> > >> > >> Yup, frustration is a common feeling when things don't work, but > really, > >> no need to give up. "You can do it, we can help" > >> > >> > >> > >> -- > >> Puneet Kishor > >> Science and Data Policy at Creative Commons > > _______________________________________________ > 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 jmckenna at gatewaygeomatics.com Wed Dec 5 12:46:59 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 05 Dec 2012 16:46:59 -0400 Subject: [mapserver-users] Mapserver useful for ordinary sites or not? In-Reply-To: <1354735235.81496.YahooMailNeo@web125904.mail.ne1.yahoo.com> References: <1354729244.81018.YahooMailNeo@web125903.mail.ne1.yahoo.com> <1354731397.54804.YahooMailNeo@web125902.mail.ne1.yahoo.com> <50BF9304.8060903@swoodbridge.com> <1354733254.97269.YahooMailNeo@web125905.mail.ne1.yahoo.com> <1354733287.48179.YahooMailNeo@web125905.mail.ne1.yahoo.com> <0F50F3EE-DEF9-4BAF-A25C-6881B2DD2A61@gmail.com> <1354735235.81496.YahooMailNeo@web125904.mail.ne1.yahoo.com> Message-ID: <50BFB2C3.6070008@gatewaygeomatics.com> As you travel down this path don't be afraid to update the MapServer wiki with your findings (https://github.com/mapserver/mapserver/wiki/MapServer-Hosting-Providers). (you can put howtos, advice, add more providers, remove outdated....do anything you want on that page) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 12-12-05 3:20 PM, Saka Royban wrote: > Thanks > Does windows version of mapserver need installation or copying > mapserv.exe plus those files is sufficient (for a windows host)? > From umberto.nicoletti at gmail.com Thu Dec 6 00:30:52 2012 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Thu, 6 Dec 2012 09:30:52 +0100 Subject: [mapserver-users] System.AccessViolationException on mapscriptPINVOKE.delete_symbolObj In-Reply-To: References: Message-ID: John, please open an issue on https://github.com/mapserver/mapserver/issues It will help greatly if you could attach a small test case so that we can reproduce the issue and track the cause. Thanks, Umberto On Wed, Dec 5, 2012 at 12:34 AM, Huotari, John B (RCIS) < John.Huotari at rcis.com> wrote: > I?m using C Sharp MapScript to access MapServer (MS4W 3.0.6). I?m > creating a new mapObj from an almost empty MAPFILE and then dynamically add > layers to the map and then calling draw to generate an image. I?m also > dynamically adding symbolObjs to the map?s symbolset for the layers to > reference. This all works great the vast majority of the time, but on rare > occasions, sometime after the map has been generated, I receive the > following AccessViolationException when garbage collection is attempting to > clean up the MapServer objects.**** > > ** ** > > System.AccessViolationException was unhandled**** > > Message=Attempted to read or write protected memory. This is often an > indication that other memory is corrupt.**** > > Source=mapscript_csharp**** > > StackTrace:**** > > at OSGeo.MapServer.mapscriptPINVOKE.delete_symbolObj(HandleRef > jarg1)**** > > at OSGeo.MapServer.symbolObj.Dispose()**** > > at OSGeo.MapServer.symbolObj.Finalize()**** > > InnerException:**** > > ** ** > > ** ** > > I?ve tried disposing of the map itself, its symbolset, as well as each > symbolObj item in that symbolset by calling Dispose on each, but doing so > neither causes the error to happen immediately upon calling Dispose > (instead it still only happens when garbage collection runs) nor does it do > anything to resolve the issue. I don?t see any reference to symbolObj in > the map layers (looks like it just holds a symbol name and/or index) nor > anywhere else that stands out as a logical place to look, so I don?t see > anything else to dispose. Does anyone have any idea of where I could look > for any symbolObjs which have been allocated so I can dispose of them so > that garbage collection does not choke when attempting to dispose of them > for me? Am I barking up the wrong tree and should be looking somewhere > else entirely rather than focusing on symbolObj?**** > > ** ** > > Thanks for any guidance that can be provided,**** > > John**** > > _______________________________________________ > 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 jpass at bgs.ac.uk Thu Dec 6 06:01:19 2012 From: jpass at bgs.ac.uk (Passmore, James H.) Date: Thu, 6 Dec 2012 14:01:19 +0000 Subject: [mapserver-users] Mapserver useful for ordinary sites or not? In-Reply-To: References: Message-ID: Saka, Are you trying to run a windows executable (mapserv.exe) on a Linux server, I'm sure you're not, but just checking to be sure. I also had problems trying to configure MapServer through cPanel and in the end resorted to doing it all using SSH. You might want to have a look at the OneGeology Cookbook, this takes you though how to configure a Mapserver service on Linux; just modify it for your needs: http://onegeology.org/wmsCookbook/4_4_2.html and http://onegeology.org/wmsCookbook/4_4_2_1.html Cheers James James Passmore GIS and WWW Specialist Information Systems and Infrastructure, British Geological Survey, http://www.bgs.ac.uk/ +44 (0)115 936 3125 @nmtoken > -----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: Wednesday, December 05, 2012 8:00 PM > To: mapserver-users at lists.osgeo.org > Subject: mapserver-users Digest, Vol 59, Issue 10 > > Send mapserver-users mailing list submissions to > mapserver-users at lists.osgeo.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.osgeo.org/mailman/listinfo/mapserver-users > or, via email, send a message with subject or body 'help' to > mapserver-users-request at lists.osgeo.org > > You can reach the person managing the list at > mapserver-users-owner at lists.osgeo.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of mapserver-users digest..." > > > Today's Topics: > > 1. Re: Mapserver useful for ordinary sites or not? (Jeff Lake) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 05 Dec 2012 14:31:51 -0500 > From: Jeff Lake > To: "mapserver-users at lists.osgeo.org >> MapServer" > > Subject: Re: [mapserver-users] Mapserver useful for ordinary sites or > not? > Message-ID: <50BFA127.7050507 at michiganwxsystem.com> > Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" > > If you want to use mapserver on a real linux host ... > contact me off list .... > All my cPanel hosted accounts have access to: > > mapserver, > GDAL > postGIS enabled pgsql database > degrib > wgrib > wgrib2 > GrADS > all the above are installed globally on a brand new CentOS 6.3 64bit > quad core i3 > > -Jeff Lake > MichiganWxSystem.com > AllisonHouse.com > TheWeatherCenter.net > GRLevelXStuff.com > > On 12/5/2012 14:20, Saka Royban wrote: > > Thanks > > Does windows version of mapserver need installation or copying > > mapserv.exe plus those files is sufficient (for a windows host)? > > > > ----- Original Message ----- > > From: Mr. Puneet Kishor > > To: MapServer OSGEO > > Cc: > > Sent: Wednesday, December 5, 2012 10:30 PM > > Subject: Re: [mapserver-users] Mapserver useful for ordinary sites or > not? > > > > > > On Dec 5, 2012, at 10:48 AM, Saka Royban > > wrote: > > > > > > > > > > > Hi Stephen > > > It's CentOS and i've extracted that file from Enterprise Linux GIS. > > > I ONLY have cPanel in front myself. How can i run that command? > > > > > > If you don't have shell access, you can ask your web host to install > > it for you. Most decent web hosting providers will do it for you. If > > they don't, you should consider moving to one who will. > > > > > > > > > > > > Sorry but i really don't know. > > > > > > Thanks > > > > > > ----- Original Message ----- > > > From: Stephen Woodbridge > > > > > To: mapserver-users at lists.osgeo.org > > > > > Cc: > > > Sent: Wednesday, December 5, 2012 10:01 PM > > > Subject: Re: [mapserver-users] Mapserver useful for ordinary sites > > or not? > > > > > > It is > > > probably failing because of missing dependency. > > > > > > Try this from the command line: > > > > > > /path/to/cgi-bin/mapserver -v > > > > > > This will give a more useful error message you can read. > > > > > > That said, extracting the binary and copying it to the cgi-bin is > > > not going to work in most cases because the whole point of package > > > systems like rpm it to find and install the dependencies. > > > > > > What version of linux is installed on your host? > > > There is probably a one line command that we can give you to > install > > > mapserver the correct way. > > > > > > -Steve W > > > > > > On 12/5/2012 1:16 PM, Saka Royban wrote: > > >> Thanks for your answer > > >> After lots of try, i found that i can extract mapserver binary > from > > >> rpm using 7zip. I put that executable file to cgi-bin and call it > > >> via address bar but no success, just 500 Internal Server Error. (I > > >> know mapserver has some dependencies but in spite of that it > > >> everything was > > >> > > > right it should display a nice error) > > >> Contacting with guys in host provider, they pointed me to > > >> http://mapserver.org/installation/unix.html#installation and > > >> finally told me there is no shell access to run this commands. > > >> I'm familiar with structure of mapserver cause of working with > MS4W > > >> in my own computer. In addition, i've checked CGI-bin directory by > > >> running some perl script and everything is O.K. They really > provide > > >> CGI > > capability. > > >> > > >> Now, i don't know what can i do more. (I'm not familiar with > Linux, > > >> although i know what running a shell command means. I've been > > >> around computer since DOS age) > > >> > > >> Thanks in advance for helpful advices. > > >> Regards > > >> > > >> > > >> ----- Original Message ----- > > >> From: Mr. Puneet Kishor > > > > >> To: MapServer OSGEO > > > > >> Cc: > > >> Sent: Wednesday, December 5, 2012 9:24 PM > > >> Subject: Re: [mapserver-users] Mapserver useful for ordinary sites > > or not? > > >> > > >> > > >> On Dec 5, 2012, at 9:40 AM, Saka Royban > > > >> >> > wrote: > > >> > > >> > Hi guys > > >> > After a lot of effort to use CGI mapserver in my own site and > > finally > > >> leaving hope to find a solution, i came here to ask whether > > >> maserver is useful just for dedicated servers or VPSs really? > > >> > I > > > (and as it sounds, most of users) have just bought some space from > > >> a host provider (i.e Linux) with a CGI-bin directory which as my > > >> host provider says is able to run CGI applications written in perl > > >> and > > C/C++. > > >> > > > >> > I have searched a lot but as it appears no one has been > > successful to > > >> run CGI mapserver in its CGI-bin folder. Am i right? > > >> > > >> > > >> You are not right. MapServer is surprisingly easy to set up and > get > > >> working, at least for basic and mid-complexity use cases. > > >> > > >> > > >> > CGI mapserver is useful just when shell access is available? > > Should i > > >> switch to Mapscript? Or maybe, buy a windows host with CGI > capability? > > >> > > >> > > >> Unless you figure out what you are doing wrong, you can't set it > right. > > >> Why don't you post your issues here in detail (how you are setting > > >> things up, have you followed the tutorial, etc.) > > > along with the errors > > >> you are getting (general description as well as specific error > > messages. > > >> I am sure one of us will be able to help you. > > >> > > >> > > >> > > >> > > > >> > Your help would nicely be appreciated. I'm really got stuck and > > confused. > > >> > > > >> > > >> > > >> Yup, frustration is a common feeling when things don't work, but > > really, > > >> no need to give up. "You can do it, we can help" > > >> > > >> > > >> > > >> -- > > >> Puneet Kishor > > >> Science and Data Policy at Creative Commons > > > > _______________________________________________ > > 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: users/attachments/20121205/0961f29e/attachment-0001.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 59, Issue 10 > *********************************************** This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. From flavio at tydac.ch Thu Dec 6 06:21:17 2012 From: flavio at tydac.ch (Flavio Hendry) Date: Thu, 06 Dec 2012 15:21:17 +0100 Subject: [mapserver-users] Labels, new OUTLINEWIDTH Message-ID: <50C0A9DD.40909@tydac.ch> Hi I am not sure if I should submit a ticket about that ... As far as I am aware, OUTLINEWIDTH for Labels was introduced in 6.x with a default value of 1 and as integer. If you now i.e. have set SIZEUNITS to meters, labels turn out with huge ugly outlines ... To me OUTLINEWIDTH should support decimal values. Mit freundlichem Gruss / Best regards Flavio Hendry ---------------------------------------------------------------- TYDAC Inc. - http://www.tydac.ch Web Mapping - http://www.mapserver.ch Swiss Maps - http://www.mapplus.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ Flavio Hendry, CEO - mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Optingenstrasse 27 -- CH-3013 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- Location: http://www.mapplus.ch/adr/bern/optingenstrasse/27 ---------------------------------------------------------------- From zpsantos1 at hotmail.com Fri Dec 7 06:35:50 2012 From: zpsantos1 at hotmail.com (=?iso-8859-1?B?Sm9z6SBQZWRybyBTYW50b3M=?=) Date: Fri, 7 Dec 2012 14:35:50 +0000 Subject: [mapserver-users] MapServer and 24bit Images In-Reply-To: References: <1354550776805-5020409.post@n6.nabble.com>, Message-ID: Hi Steve, Thanks for the information. Basically I want only to display the layer (as WMS service) in the browser for testing or a real client. The layer have 3 bands and is a 24bit image My MAPFILE is this one(OUTPUTFORMAT and LAYER parameters): OUTPUTFORMAT # Parameter Outputformat NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png;mode=24bit" EXTENSION PNG IMAGEMODE RGB END # End parameter Outputformat LAYER # beginning of the layer parameter NAME "fapartest" TYPE RASTER STATUS ON DATA "PG:host=localhost port=5432 dbname='mydb' user='postgres' password='****' schema='public' table='mytable' mode='2'" PROCESSING "NODATA=0" PROCESSING "SCALE=AUTO" PROCESSING "BANDS=1,2,3" ......... I don't have class parameter since I don't want to classify the map just visualize the information. Any idea? Best Regards and thanks, Jos? Santos > From: Steve.Lime at state.mn.us > To: zpsantos1 at hotmail.com; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] MapServer and 24bit Images > Date: Tue, 4 Dec 2012 19:26:01 +0000 > > I display true-color imagery all the time. I suspect that's not what you're trying to do though. You'll have to be more specific on format, perhaps post a layer definition? > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Saint > Sent: Monday, December 03, 2012 10:06 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] MapServer and 24bit Images > > Dear all, > > I would like to have this confirmation, MapServer support 24bit image with 3 bands? I have one 24bit image 1 band and I can see in the browser but the other with 3 bands I can't. Only appear the the outline line of the class e not the image. > > Many thanks > Jos? Santos > > > > ----- > Jos? Santos > GIS Analyst > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/MapServer-and-24bit-Images-tp5020409.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 boolean10001 at yahoo.com Fri Dec 7 08:48:22 2012 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Fri, 7 Dec 2012 08:48:22 -0800 (PST) Subject: [mapserver-users] MapServer and 24bit Images In-Reply-To: References: <1354550776805-5020409.post@n6.nabble.com>, Message-ID: <1354898902.31177.YahooMailNeo@web163805.mail.gq1.yahoo.com> Jos?, Yo presento im?genes de 3 bandas como WMS sin problema alguno. Debo decir que no uso de OUTPUTFORMAT en estos casos ya que desde los par?metros del URL se especifica el formato de salida (par?metro FORMAT). Por lo que veo, est?s queriendo acceder a una capa tipo raster desde una base de datos en Postgres. ? Integraste una capa raster a Postgres (gracias a que en las ultimas versiones de PostGIS se incluy? lo que era el proyecto WKTRaster) ? ? O est?s queriendo acceder a un archivo raster directamente ? Desconozco si las directivas PROCESSING aplican para una capa raster en PostGIS, nunca he intentado trabajar con esto. Saludos desde M?xico Jos?, I work with 3 bands images as WMS with no problem at all. I must say that i didn't use the OUTPUTFORMAT because I can specify the output format in the URL (FORMAT parameter). As I see, you want to show a raster layer from a Postgres database. ? Do you added a raster layer into Postgres (thanks to the latest versions of PostGIS which added the WKTRaster project) ? or ? Do you want to access directly to a raster file ? I don't know if the PROCESSING directives apply to a PostGIS raster layer, I've never tried to work with this. Cheers from M?xico ? IC Carlos Ruiz ________________________________ From: Jos? Pedro Santos To: steve.lime at state.mn.us; mapserver-users at lists.osgeo.org Sent: Friday, December 7, 2012 8:35 AM Subject: Re: [mapserver-users] MapServer and 24bit Images Hi Steve, Thanks for the information. Basically I want only to display the layer (as WMS service) in the browser for testing or a real client. The layer have 3 bands and is a 24bit image My MAPFILE is this one(OUTPUTFORMAT and LAYER parameters): OUTPUTFORMAT # Parameter Outputformat ?NAME png24 ?DRIVER "GD/PNG" ?MIMETYPE "image/png;mode=24bit" ?EXTENSION PNG ?IMAGEMODE RGB END # End parameter Outputformat LAYER # beginning of the layer parameter ?NAME "fapartest" ?TYPE RASTER ?STATUS ON ?DATA "PG:host=localhost port=5432 dbname='mydb' user='postgres' password='****' schema='public' table='mytable' mode='2'" ?PROCESSING "NODATA=0" ?PROCESSING "SCALE=AUTO" ?PROCESSING "BANDS=1,2,3" ......... I don't have class parameter since I don't want to classify the map just visualize the information. Any idea? Best Regards and thanks, Jos? Santos > From: Steve.Lime at state.mn.us > To: zpsantos1 at hotmail.com; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] MapServer and 24bit Images > Date: Tue, 4 Dec 2012 19:26:01 +0000 > > I display true-color imagery all the time. I suspect that's not what you're trying to do though. You'll have to be more specific on format, perhaps post a layer definition? > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Saint > Sent: Monday, December 03, 2012 10:06 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] MapServer and 24bit Images > > Dear all, > > I would like to have this confirmation, MapServer support 24bit image with 3 bands? I have one 24bit image 1 band and I can see in the browser but the other with 3 bands I can't. Only appear the the outline line of the class e not the image. > > Many thanks > Jos? Santos > > > > ----- > Jos? Santos > GIS Analyst > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/MapServer-and-24bit-Images-tp5020409.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Dec 7 11:41:04 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 7 Dec 2012 19:41:04 +0000 Subject: [mapserver-users] MapServer and 24bit Images In-Reply-To: References: <1354550776805-5020409.post@n6.nabble.com>, Message-ID: I'm assuming you're using MapServer 6.x... If so then your output format may be the issue. GD doesn't support 24-bit output, just 8-bit. Try deleting the OUTPUTFORMAT and setting IMAGETYPE PNG24 and see if that works. Steve From: Jos? Pedro Santos [mailto:zpsantos1 at hotmail.com] Sent: Friday, December 07, 2012 8:36 AM To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] MapServer and 24bit Images Hi Steve, Thanks for the information. Basically I want only to display the layer (as WMS service) in the browser for testing or a real client. The layer have 3 bands and is a 24bit image My MAPFILE is this one(OUTPUTFORMAT and LAYER parameters): OUTPUTFORMAT # Parameter Outputformat NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png;mode=24bit" EXTENSION PNG IMAGEMODE RGB END # End parameter Outputformat LAYER # beginning of the layer parameter NAME "fapartest" TYPE RASTER STATUS ON DATA "PG:host=localhost port=5432 dbname='mydb' user='postgres' password='****' schema='public' table='mytable' mode='2'" PROCESSING "NODATA=0" PROCESSING "SCALE=AUTO" PROCESSING "BANDS=1,2,3" ......... I don't have class parameter since I don't want to classify the map just visualize the information. Any idea? Best Regards and thanks, Jos? Santos > From: Steve.Lime at state.mn.us > To: zpsantos1 at hotmail.com; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] MapServer and 24bit Images > Date: Tue, 4 Dec 2012 19:26:01 +0000 > > I display true-color imagery all the time. I suspect that's not what you're trying to do though. You'll have to be more specific on format, perhaps post a layer definition? > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Saint > Sent: Monday, December 03, 2012 10:06 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] MapServer and 24bit Images > > Dear all, > > I would like to have this confirmation, MapServer support 24bit image with 3 bands? I have one 24bit image 1 band and I can see in the browser but the other with 3 bands I can't. Only appear the the outline line of the class e not the image. > > Many thanks > Jos? Santos > > > > ----- > Jos? Santos > GIS Analyst > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/MapServer-and-24bit-Images-tp5020409.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 Joyce.Lin at pxd.com Fri Dec 7 15:14:30 2012 From: Joyce.Lin at pxd.com (Lin, Joyce) Date: Fri, 7 Dec 2012 23:14:30 +0000 Subject: [mapserver-users] Help - debug error Message-ID: <631F510159BF9A499B73F3F50D60E7AF5CD27793@exmbxlc02.us.pioneernrc.pvt> Hello, Can somepone help me or explain me the error please: getString(): Symbol definition error. Parsing error near (2013):(line 38) and my mapfile is below MAP CONFIG "MS_ERRORFILE" "/ms4w/tmp/ms_tmp/ms_error_well.txt" DEBUG 5 NAME '2013_PXD_Wells' SIZE 800 650 STATUS ON EXTENT 2016274.741485 176555.010138 2688771.295454 620600.467750 UNITS FEET INCLUDE "/ms4w/apps/geomoose2/maps/geomoose_globals.map" WEB METADATA 'ows_title' '2013 Pioneer Drilling Program' 'ows_srs' 'EPSG:4267 EPSG:4326 EPSG:900913 EPSG:3857' 'ows_enable_request' '*' 'ows_onlineresource' 'http://www.pxd.com' END END PROJECTION 'init=epsg:3857' END LEGEND STATUS ON LABEL TYPE TRUETYPE FONT vera_sans SIZE 8 COLOR 0 0 0 END END LAYER NAME 2013_PXD_Wells DATA './2013_PXD_Wells.shp' STATUS ON TYPE LINE LABELITEM 'Well_Name' LABELCACHE ON LABELMAXSCALE 20000 PROJECTION 'init=epsg:32040' END CLASS NAME '2013_PXD_Wells' STYLE # WIDTH 1 COLOR 0 0 0 # MAXSCALEDENOM 50000 END #STYLE # SIZE 1 # COLOR -1 -1 -1 # OUTLINECOLOR 255 204 153 #END LABEL TYPE TRUETYPE FONT vera_sans SIZE 8 ANGLE FOLLOW OUTLINECOLOR 254 254 200 BUFFER 4 MINFEATURESIZE auto PARTIALS FALSE # POSITION cc END END METADATA # drill-down identify service record. 'identify_record' 'templates/identify.html' # query.php / "Search Lease" functionality. 'itemquery' 'templates/search_result.html' 'itemquery-filter' '/.*[qstring].*/i' 'qstring_validation_pattern' '.' # Feature reports are stored in the conf/feature_report directory. 'feature_report' 'Lease.xml' 'select_record' 'templates/select_result.html' 'select_header' 'templates/select_header.html' 'popups' 'Welle_popup.html' END END END ## end Map Statement of Confidentiality: This message may contain information that is privileged or confidential. If you receive this transmission in error, please notify the sender by reply e-mail and delete the message and any attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Fri Dec 7 15:35:13 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 07 Dec 2012 16:35:13 -0700 Subject: [mapserver-users] Help - debug error In-Reply-To: <631F510159BF9A499B73F3F50D60E7AF5CD27793@exmbxlc02.us.pioneernrc.pvt> References: <631F510159BF9A499B73F3F50D60E7AF5CD27793@exmbxlc02.us.pioneernrc.pvt> Message-ID: <50C27D31.9090604@geoanalytic.com> try putting your layer name in quotes * LAYER NAME '2013_PXD_Wells*' Best Regards, Brent Fraser On 12/7/2012 4:14 PM, Lin, Joyce wrote: > > Hello, > > Can somepone help me or explain me the error please: > > getString(): Symbol definition error. Parsing error near (2013):(line 38) > > /_and my mapfile is below _/ > > MAP > > CONFIG "MS_ERRORFILE" "/ms4w/tmp/ms_tmp/ms_error_well.txt" > > DEBUG 5 > > NAME '2013_PXD_Wells' > > SIZE 800 650 > > STATUS ON > > EXTENT 2016274.741485 176555.010138 2688771.295454 620600.467750 > > UNITS FEET > > INCLUDE "/ms4w/apps/geomoose2/maps/geomoose_globals.map" > > WEB > > METADATA > > 'ows_title' '2013 Pioneer Drilling Program' > > 'ows_srs' 'EPSG:4267 EPSG:4326 EPSG:900913 EPSG:3857' > > 'ows_enable_request' '*' > > 'ows_onlineresource' 'http://www.pxd.com' > > END > > END > > PROJECTION > > 'init=epsg:3857' > > END > > LEGEND > > STATUS ON > > LABEL > > TYPE TRUETYPE > > FONT vera_sans > > SIZE 8 > > COLOR 0 0 0 > > END > > END > > LAYER > > NAME 2013_PXD_Wells > > DATA './2013_PXD_Wells.shp' > > STATUS ON > > TYPE LINE > > LABELITEM 'Well_Name' > > LABELCACHE ON > > LABELMAXSCALE 20000 > > PROJECTION > > 'init=epsg:32040' > > END > > CLASS > > NAME '2013_PXD_Wells' > > STYLE > > # WIDTH 1 > > COLOR 0 0 0 > > # MAXSCALEDENOM 50000 > > END > > #STYLE > > # SIZE 1 > > # COLOR -1 -1 -1 > > # OUTLINECOLOR 255 204 153 > > #END > > LABEL > > TYPE TRUETYPE > > FONT vera_sans > > SIZE 8 > > ANGLE FOLLOW > > OUTLINECOLOR 254 254 200 > > BUFFER 4 > > MINFEATURESIZE auto > > PARTIALS FALSE > > # POSITION cc > > END > > END > > METADATA > > # drill-down identify service record. > > 'identify_record' 'templates/identify.html' > > # query.php / "Search Lease" functionality. > > 'itemquery' 'templates/search_result.html' > > 'itemquery-filter' '/.*[qstring].*/i' > > 'qstring_validation_pattern' '.' > > # Feature reports are stored in the conf/feature_report directory. > > 'feature_report' 'Lease.xml' > > 'select_record' 'templates/select_result.html' > > 'select_header' 'templates/select_header.html' > > 'popups' 'Welle_popup.html' > > END > > END > > END ## end Map > > > > ------------------------------------------------------------------------ > Statement of Confidentiality: > This message may contain information that is privileged or > confidential. If you receive this transmission in error, please notify > the sender by reply e-mail and delete the message and any attachments. > > > _______________________________________________ > 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 Joyce.Lin at pxd.com Fri Dec 7 15:44:52 2012 From: Joyce.Lin at pxd.com (Lin, Joyce) Date: Fri, 7 Dec 2012 23:44:52 +0000 Subject: [mapserver-users] Help - debug error In-Reply-To: <50C27D31.9090604@geoanalytic.com> References: <631F510159BF9A499B73F3F50D60E7AF5CD27793@exmbxlc02.us.pioneernrc.pvt> <50C27D31.9090604@geoanalytic.com> Message-ID: <631F510159BF9A499B73F3F50D60E7AF5CD277B6@exmbxlc02.us.pioneernrc.pvt> Thank you! That fixed my issue. From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Friday, December 07, 2012 5:35 PM To: Lin, Joyce Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Help - debug error try putting your layer name in quotes LAYER NAME '2013_PXD_Wells' Best Regards, Brent Fraser On 12/7/2012 4:14 PM, Lin, Joyce wrote: Hello, Can somepone help me or explain me the error please: getString(): Symbol definition error. Parsing error near (2013):(line 38) and my mapfile is below MAP CONFIG "MS_ERRORFILE" "/ms4w/tmp/ms_tmp/ms_error_well.txt" DEBUG 5 NAME '2013_PXD_Wells' SIZE 800 650 STATUS ON EXTENT 2016274.741485 176555.010138 2688771.295454 620600.467750 UNITS FEET INCLUDE "/ms4w/apps/geomoose2/maps/geomoose_globals.map" WEB METADATA 'ows_title' '2013 Pioneer Drilling Program' 'ows_srs' 'EPSG:4267 EPSG:4326 EPSG:900913 EPSG:3857' 'ows_enable_request' '*' 'ows_onlineresource' 'http://www.pxd.com' END END PROJECTION 'init=epsg:3857' END LEGEND STATUS ON LABEL TYPE TRUETYPE FONT vera_sans SIZE 8 COLOR 0 0 0 END END LAYER NAME 2013_PXD_Wells DATA './2013_PXD_Wells.shp' STATUS ON TYPE LINE LABELITEM 'Well_Name' LABELCACHE ON LABELMAXSCALE 20000 PROJECTION 'init=epsg:32040' END CLASS NAME '2013_PXD_Wells' STYLE # WIDTH 1 COLOR 0 0 0 # MAXSCALEDENOM 50000 END #STYLE # SIZE 1 # COLOR -1 -1 -1 # OUTLINECOLOR 255 204 153 #END LABEL TYPE TRUETYPE FONT vera_sans SIZE 8 ANGLE FOLLOW OUTLINECOLOR 254 254 200 BUFFER 4 MINFEATURESIZE auto PARTIALS FALSE # POSITION cc END END METADATA # drill-down identify service record. 'identify_record' 'templates/identify.html' # query.php / "Search Lease" functionality. 'itemquery' 'templates/search_result.html' 'itemquery-filter' '/.*[qstring].*/i' 'qstring_validation_pattern' '.' # Feature reports are stored in the conf/feature_report directory. 'feature_report' 'Lease.xml' 'select_record' 'templates/select_result.html' 'select_header' 'templates/select_header.html' 'popups' 'Welle_popup.html' END END END ## end Map ________________________________ Statement of Confidentiality: This message may contain information that is privileged or confidential. If you receive this transmission in error, please notify the sender by reply e-mail and delete the message and any attachments. _______________________________________________ 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 Jukka.Rahkonen at mmmtike.fi Fri Dec 7 21:46:35 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 8 Dec 2012 05:46:35 +0000 Subject: [mapserver-users] Help - debug error In-Reply-To: <50C27D31.9090604@geoanalytic.com> References: <631F510159BF9A499B73F3F50D60E7AF5CD27793@exmbxlc02.us.pioneernrc.pvt>, <50C27D31.9090604@geoanalytic.com> Message-ID: <84446DEF76453C439E9E97E438E13A637BFC02@suutari.haapa.mmm.fi> Hi, It can be good to know that according to OGC standards the layer names must not start with a number or underscore. Most WMS clients do not care but there are some schema validating WMS clients and more schema validating WFS clients around which do not accept such names. -Jukka Rahkonen- ________________________________ Brent Fraser > try putting your layer name in quotes LAYER NAME '2013_PXD_Wells' Best Regards, Brent Fraser On 12/7/2012 4:14 PM, Lin, Joyce wrote: Hello, Can somepone help me or explain me the error please: getString(): Symbol definition error. Parsing error near (2013):(line 38) and my mapfile is below MAP CONFIG "MS_ERRORFILE" "/ms4w/tmp/ms_tmp/ms_error_well.txt" DEBUG 5 NAME '2013_PXD_Wells' SIZE 800 650 STATUS ON EXTENT 2016274.741485 176555.010138 2688771.295454 620600.467750 UNITS FEET INCLUDE "/ms4w/apps/geomoose2/maps/geomoose_globals.map" WEB METADATA 'ows_title' '2013 Pioneer Drilling Program' 'ows_srs' 'EPSG:4267 EPSG:4326 EPSG:900913 EPSG:3857' 'ows_enable_request' '*' 'ows_onlineresource' 'http://www.pxd.com' END END PROJECTION 'init=epsg:3857' END LEGEND STATUS ON LABEL TYPE TRUETYPE FONT vera_sans SIZE 8 COLOR 0 0 0 END END LAYER NAME 2013_PXD_Wells DATA './2013_PXD_Wells.shp' STATUS ON TYPE LINE LABELITEM 'Well_Name' LABELCACHE ON LABELMAXSCALE 20000 PROJECTION 'init=epsg:32040' END CLASS NAME '2013_PXD_Wells' STYLE # WIDTH 1 COLOR 0 0 0 # MAXSCALEDENOM 50000 END #STYLE # SIZE 1 # COLOR -1 -1 -1 # OUTLINECOLOR 255 204 153 #END LABEL TYPE TRUETYPE FONT vera_sans SIZE 8 ANGLE FOLLOW OUTLINECOLOR 254 254 200 BUFFER 4 MINFEATURESIZE auto PARTIALS FALSE # POSITION cc END END METADATA # drill-down identify service record. 'identify_record' 'templates/identify.html' # query.php / "Search Lease" functionality. 'itemquery' 'templates/search_result.html' 'itemquery-filter' '/.*[qstring].*/i' 'qstring_validation_pattern' '.' # Feature reports are stored in the conf/feature_report directory. 'feature_report' 'Lease.xml' 'select_record' 'templates/select_result.html' 'select_header' 'templates/select_header.html' 'popups' 'Welle_popup.html' END END END ## end Map ________________________________ Statement of Confidentiality: This message may contain information that is privileged or confidential. If you receive this transmission in error, please notify the sender by reply e-mail and delete the message and any attachments. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From zpsantos1 at hotmail.com Mon Dec 10 01:07:15 2012 From: zpsantos1 at hotmail.com (=?Windows-1252?B?Sm9z6SBQZWRybyBTYW50b3M=?=) Date: Mon, 10 Dec 2012 09:07:15 +0000 Subject: [mapserver-users] MapServer and 24bit Images In-Reply-To: References: <1354550776805-5020409.post@n6.nabble.com>, , , Message-ID: Dear Steve, I try to do that but didn't work. The image appear all black. I use the Processing directive for the 3 bands and also I remove to test but nothing happen. Can be a problem of image... To test in the browser if I put Format=image/png:mode=24bit don't work, the error said that is not supported, but If I use FORMAT=PNG24 that work but the image came all black. I'm using the last version of MapServer 6.2.0. Also with output and without output the image appear all black. I have the image store in PostgreSQL DB with 145MB size. Any idea? Best Regards Jos? Santos From: Steve.Lime at state.mn.us To: zpsantos1 at hotmail.com; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] MapServer and 24bit Images Date: Fri, 7 Dec 2012 19:41:04 +0000 I?m assuming you?re using MapServer 6.x? If so then your output format may be the issue. GD doesn?t support 24-bit output, just 8-bit. Try deleting the OUTPUTFORMAT and setting IMAGETYPE PNG24 and see if that works. Steve From: Jos? Pedro Santos [mailto:zpsantos1 at hotmail.com] Sent: Friday, December 07, 2012 8:36 AM To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] MapServer and 24bit Images Hi Steve, Thanks for the information. Basically I want only to display the layer (as WMS service) in the browser for testing or a real client. The layer have 3 bands and is a 24bit image My MAPFILE is this one(OUTPUTFORMAT and LAYER parameters): OUTPUTFORMAT # Parameter Outputformat NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png;mode=24bit" EXTENSION PNG IMAGEMODE RGB END # End parameter Outputformat LAYER # beginning of the layer parameter NAME "fapartest" TYPE RASTER STATUS ON DATA "PG:host=localhost port=5432 dbname='mydb' user='postgres' password='****' schema='public' table='mytable' mode='2'" PROCESSING "NODATA=0" PROCESSING "SCALE=AUTO" PROCESSING "BANDS=1,2,3" ......... I don't have class parameter since I don't want to classify the map just visualize the information. Any idea? Best Regards and thanks, Jos? Santos > From: Steve.Lime at state.mn.us > To: zpsantos1 at hotmail.com; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] MapServer and 24bit Images > Date: Tue, 4 Dec 2012 19:26:01 +0000 > > I display true-color imagery all the time. I suspect that's not what you're trying to do though. You'll have to be more specific on format, perhaps post a layer definition? > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Saint > Sent: Monday, December 03, 2012 10:06 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] MapServer and 24bit Images > > Dear all, > > I would like to have this confirmation, MapServer support 24bit image with 3 bands? I have one 24bit image 1 band and I can see in the browser but the other with 3 bands I can't. Only appear the the outline line of the class e not the image. > > Many thanks > Jos? Santos > > > > ----- > Jos? Santos > GIS Analyst > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/MapServer-and-24bit-Images-tp5020409.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 zpsantos1 at hotmail.com Mon Dec 10 01:55:51 2012 From: zpsantos1 at hotmail.com (=?iso-8859-1?B?Sm9z6SBQZWRybyBTYW50b3M=?=) Date: Mon, 10 Dec 2012 09:55:51 +0000 Subject: [mapserver-users] MapServer and 24bit Images In-Reply-To: <1354898902.31177.YahooMailNeo@web163805.mail.gq1.yahoo.com> References: <1354550776805-5020409.post@n6.nabble.com>, , <1354898902.31177.YahooMailNeo@web163805.mail.gq1.yahoo.com> Message-ID: Dear Carlos, Thanks for your reply but didn't work. I have to check the integrate of the image probably. I load the raster to Postgres with raster2pgsql in Ubuntu 12.04LTS. With or without the OUTPUTFORMAT don't work. Any sugestion? Saludos desde Portugal Jos? Santos Date: Fri, 7 Dec 2012 08:48:22 -0800 From: boolean10001 at yahoo.com Subject: Re: [mapserver-users] MapServer and 24bit Images To: zpsantos1 at hotmail.com; mapserver-users at lists.osgeo.org Jos?, Yo presento im?genes de 3 bandas como WMS sin problema alguno. Debo decir que no uso de OUTPUTFORMAT en estos casos ya que desde los par?metros del URL se especifica el formato de salida (par?metro FORMAT). Por lo que veo, est?s queriendo acceder a una capa tipo raster desde una base de datos en Postgres. ? Integraste una capa raster a Postgres (gracias a que en las ultimas versiones de PostGIS se incluy? lo que era el proyecto WKTRaster) ? ? O est?s queriendo acceder a un archivo raster directamente ? Desconozco si las directivas PROCESSING aplican para una capa raster en PostGIS, nunca he intentado trabajar con esto. Saludos desde M?xico Jos?, I work with 3 bands images as WMS with no problem at all. I must say that i didn't use the OUTPUTFORMAT because I can specify the output format in the URL (FORMAT parameter). As I see, you want to show a raster layer from a Postgres database. ? Do you added a raster layer into Postgres (thanks to the latest versions of PostGIS which added the WKTRaster project) ? or ? Do you want to access directly to a raster file ? I don't know if the PROCESSING directives apply to a PostGIS raster layer, I've never tried to work with this. Cheers from M?xico IC Carlos Ruiz From: Jos? Pedro Santos To: steve.lime at state.mn.us; mapserver-users at lists.osgeo.org Sent: Friday, December 7, 2012 8:35 AM Subject: Re: [mapserver-users] MapServer and 24bit Images Hi Steve, Thanks for the information. Basically I want only to display the layer (as WMS service) in the browser for testing or a real client. The layer have 3 bands and is a 24bit image My MAPFILE is this one(OUTPUTFORMAT and LAYER parameters): OUTPUTFORMAT # Parameter Outputformat NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png;mode=24bit" EXTENSION PNG IMAGEMODE RGB END # End parameter Outputformat LAYER # beginning of the layer parameter NAME "fapartest" TYPE RASTER STATUS ON DATA "PG:host=localhost port=5432 dbname='mydb' user='postgres' password='****' schema='public' table='mytable' mode='2'" PROCESSING "NODATA=0" PROCESSING "SCALE=AUTO" PROCESSING "BANDS=1,2,3" ......... I don't have class parameter since I don't want to classify the map just visualize the information. Any idea? Best Regards and thanks, Jos? Santos > From: Steve.Lime at state.mn.us > To: zpsantos1 at hotmail.com; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] MapServer and 24bit Images > Date: Tue, 4 Dec 2012 19:26:01 +0000 > > I display true-color imagery all the time. I suspect that's not what you're trying to do though. You'll have to be more specific on format, perhaps post a layer definition? > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Saint > Sent: Monday, December 03, 2012 10:06 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] MapServer and 24bit Images > > Dear all, > > I would like to have this confirmation, MapServer support 24bit image with 3 bands? I have one 24bit image 1 band and I can see in the browser but the other with 3 bands I can't. Only appear the the outline line of the class e not the image. > > Many thanks > Jos? Santos > > > > ----- > Jos? Santos > GIS Analyst > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/MapServer-and-24bit-Images-tp5020409.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From i.geografica at alt-shn.org Mon Dec 10 08:51:24 2012 From: i.geografica at alt-shn.org (ALT SHN) Date: Mon, 10 Dec 2012 16:51:24 +0000 Subject: [mapserver-users] Reclassify raster cell values Message-ID: Hello Everyone, First time Mapserver user here, and I would appreciate some advice regarding this problem: I have a Tile Index of single band TIFF rasters (0-255). The rasters are displayer fast, and accuratly. However these rasters cover a sea shore area, this means that half the rasters are sea territory, wich is represented in black (0 cell values) Is there way, in the Mapfile to reclassify the 0 cells to 255 in order to turn them white? I know I can always pre process the rasters, but I'm talking about forty + files... Thanks in advance, Cheers, Andr? Mano -- --------------------------------------------------------------- Associa??o Leonel Trindade SOCIEDADE DE HIST?RIA NATURAL Apartado 25 2564-909 Torres Vedras Portugal Sede e Biblioteca: rua Cavaleiros da Espora Dourada, 27A 2560 Torres Vedras Laborat?rio de Paleontologia e Paleoecologia: Pol?gono Industrial do Alto do Ameal 2565-641 Ramalhal http://alt-shn.blogspot.com www.alt-shn.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve at qpublic.net Mon Dec 10 12:00:18 2012 From: steve at qpublic.net (Steve Lehr) Date: Mon, 10 Dec 2012 15:00:18 -0500 Subject: [mapserver-users] automated response Message-ID: <11212101500.AA35252@qpublic.net> I'll be out of the office Monday Dec 10th. Please contact the office directly if you need assistance. (386) 734-1954 Thank you From Jukka.Rahkonen at mmmtike.fi Mon Dec 10 12:48:36 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 10 Dec 2012 20:48:36 +0000 Subject: [mapserver-users] Reclassify raster cell values In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A637C01C6@suutari.haapa.mmm.fi> Hi, It should be possible to do what you want by using the PROCESSING LUT option. http://www.mapserver.org/input/raster.html -Jukka Rahkonen- ________________________________ > ALT SHN wrote: > Hello Everyone, > First time Mapserver user here, and I would appreciate some advice regarding this problem: > I have a Tile Index of single band TIFF rasters (0-255). The rasters are displayer fast, and accuratly. However these rasters cover a sea shore area, this means that half the rasters are sea territory, wich is represented in black (0 cell values) > Is there way, in the Mapfile to reclassify the 0 cells to 255 in order to turn them white? I know I can always pre process the rasters, but I'm talking about forty + files... > Thanks in advance, Cheers, Andr? Mano -- --------------------------------------------------------------- Associa??o Leonel Trindade SOCIEDADE DE HIST?RIA NATURAL Apartado 25 2564-909 Torres Vedras Portugal Sede e Biblioteca: rua Cavaleiros da Espora Dourada, 27A 2560 Torres Vedras Laborat?rio de Paleontologia e Paleoecologia: Pol?gono Industrial do Alto do Ameal 2565-641 Ramalhal http://alt-shn.blogspot.com www.alt-shn.org From schroete at iup.physik.uni-bremen.de Tue Dec 11 04:13:49 2012 From: schroete at iup.physik.uni-bremen.de (=?ISO-8859-15?Q?Heiko_Schr=F6ter?=) Date: Tue, 11 Dec 2012 13:13:49 +0100 Subject: [mapserver-users] Retrieve function values from Postgres Message-ID: <50C7237D.3060302@iup.physik.uni-bremen.de> Hello, is it possible for mapserver to question a function in a postgres geo database ? i.e. this query string inside postgres works: "select * from get_aerosol_data('gas_db', 25.5, '2005-3-2 00:00', '2006-3-5 00:00');" If it is possible how to translate this into mapserver mapfile syntax ? Thanks and Regards Heiko /mdraid/www/localhost/mapserver/mapserv -v MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE From MarkVolz at co.lyon.mn.us Tue Dec 11 06:33:00 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Tue, 11 Dec 2012 14:33:00 +0000 Subject: [mapserver-users] Still impossible to force labels inside their polygons? Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA318B85F@swmail01.r8nssis.local> Hello, Earlier in the year I had asked about forcing labels in their polygons. And another person mentioned the issue in September. At the time Steve W was concerned about complexity and performance in placing labels. I was thinking lately that maybe this topic could be revisited. However, this time around instead of dealing with "optimal" label placement within a polygon, maybe something much simpler would be better. For example: keyword : CHECKLABELFIT -FALSE: Use the BBOX for labeling. This is the current behavior, which is fast and should remain as the default. -TRUE: Once the label is placed using the current label placement engine, check to make sure the BBOX of label falls within the actual boundary of the polygon, if it does not then skip the label. This keyword should not be confused with any algorithm that places labels in an optimal position within the polygon such as one that tries to place a label horizontally, then strait if it doesn't fit. Last, since check label fit is optional, this keyword should only impact performance on layers that a user wants to verify that the label is correctly placed. It would never be needed for a layer where the polygons are rectangular such as sections, or townships. However it may be critical on soil layers. Just some thoughts Thanks Reference http://osgeo-org.1560.n6.nabble.com/force-labels-to-fit-in-polygons-td4549296.html http://comments.gmane.org/gmane.comp.gis.mapserver.user/49333 Mark Volz GIS Specialist From astrid.emde at wheregroup.com Tue Dec 11 08:23:28 2012 From: astrid.emde at wheregroup.com (Astrid Emde) Date: Tue, 11 Dec 2012 17:23:28 +0100 Subject: [mapserver-users] MapServer 6.2: SIZEUNITS meters - Legend OUTLINE is too big Message-ID: <98e518c1e7e3c709475a865add454148.squirrel@troubadix.wheregroup.com> Hello, I am testing with 6.2 and want to define a WMS with SIZEUNITS meters. My map looks good but I get a very big outline around my polygons-Symbol in the legend. This is my Layerdefinition: LAYER NAME 'befestigte_flaechen' TYPE POLYGON .... METADATA WMS_TITLE 'befestigte Flaechen' .. END SIZEUNITS meters CLASS NAME "1 Fche" EXPRESSION "1" STYLE WIDTH 0.1 OUTLINECOLOR 58 255 84 COLOR 250 0 0 END END ... END The Map looks good with this simple definition in the STYLE-Block. But the getLegendGraphic-Request looks bad. The OUTLINE of the polygon in the legend is much too big. When I add MINWIDTH and MAXWIDTH to the STYLE the legend looks fine. STYLE WIDTH 0.1 MINWIDTH 0.1 MAXWIDTH 0.2 OUTLINECOLOR 58 255 84 COLOR 250 0 0 END But I thought that I do not need MINWIDTH and MAXWIDTH when SIZEUNITS meters is set (and no SYMBOLSCALEDENOM is set). see also https://github.com/mapserver/mapserver/issues/4401#issuecomment-7128252 Thanks for your help -- Best regards Astrid ******************************************** Where2B Konferenz 2012 13. Dezember 2012 in Bonn www.where2b-conference.com ******************************************** ---------------------------------- Astrid Emde WhereGroup GmbH & Co.KG Eifelstra?e 7 53119 Bonn Germany Fon: +49(0)228 90 90 38 - 19 Fax: +49(0)228 90 90 38 - 11 astrid.emde at wheregroup.com www.wheregroup.com Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com Amtsgericht Bonn, HRA 6788 ------------------------------- Komplement?rin: WhereGroup Verwaltungs GmbH vertreten durch: Olaf Knopp, Peter Stamm ------------------------------- pgp-public key: http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284 Signierte und/oder verschl?sselte Nachrichten sind sehr willkommen Signed and/or encrypted mail is highly appreciated From Steve.Lime at state.mn.us Tue Dec 11 09:16:02 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 11 Dec 2012 17:16:02 +0000 Subject: [mapserver-users] MapServer 6.2: SIZEUNITS meters - Legend OUTLINE is too big In-Reply-To: <98e518c1e7e3c709475a865add454148.squirrel@troubadix.wheregroup.com> References: <98e518c1e7e3c709475a865add454148.squirrel@troubadix.wheregroup.com> Message-ID: The SIZEUNITS are applied based on a computed cellsize for a map request- there is a conversion from meters to pixels based on an extent/image size. Without that same context I don't see how the legend can possibly match the map. Can you pass extent and image size as part of a getLegendGraphic request? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Astrid Emde Sent: Tuesday, December 11, 2012 10:23 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapServer 6.2: SIZEUNITS meters - Legend OUTLINE is too big Hello, I am testing with 6.2 and want to define a WMS with SIZEUNITS meters. My map looks good but I get a very big outline around my polygons-Symbol in the legend. This is my Layerdefinition: LAYER NAME 'befestigte_flaechen' TYPE POLYGON .... METADATA WMS_TITLE 'befestigte Flaechen' .. END SIZEUNITS meters CLASS NAME "1 Fche" EXPRESSION "1" STYLE WIDTH 0.1 OUTLINECOLOR 58 255 84 COLOR 250 0 0 END END ... END The Map looks good with this simple definition in the STYLE-Block. But the getLegendGraphic-Request looks bad. The OUTLINE of the polygon in the legend is much too big. When I add MINWIDTH and MAXWIDTH to the STYLE the legend looks fine. STYLE WIDTH 0.1 MINWIDTH 0.1 MAXWIDTH 0.2 OUTLINECOLOR 58 255 84 COLOR 250 0 0 END But I thought that I do not need MINWIDTH and MAXWIDTH when SIZEUNITS meters is set (and no SYMBOLSCALEDENOM is set). see also https://github.com/mapserver/mapserver/issues/4401#issuecomment-7128252 Thanks for your help -- Best regards Astrid ******************************************** Where2B Konferenz 2012 13. Dezember 2012 in Bonn www.where2b-conference.com ******************************************** ---------------------------------- Astrid Emde WhereGroup GmbH & Co.KG Eifelstra?e 7 53119 Bonn Germany Fon: +49(0)228 90 90 38 - 19 Fax: +49(0)228 90 90 38 - 11 astrid.emde at wheregroup.com www.wheregroup.com Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com Amtsgericht Bonn, HRA 6788 ------------------------------- Komplement?rin: WhereGroup Verwaltungs GmbH vertreten durch: Olaf Knopp, Peter Stamm ------------------------------- pgp-public key: http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284 Signierte und/oder verschl?sselte Nachrichten sind sehr willkommen Signed and/or encrypted mail is highly appreciated _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From bfraser at geoanalytic.com Wed Dec 12 08:00:54 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 12 Dec 2012 09:00:54 -0700 Subject: [mapserver-users] Still impossible to force labels inside their polygons? In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA318B85F@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA318B85F@swmail01.r8nssis.local> Message-ID: <50C8AA36.6020504@geoanalytic.com> Mark, A simple solution sounds good as long as it can fit into a strategic plan (I don't really have a plan for improving the polygon labeling, just a desire!). On major releases of Mapserver I try to push the limits of its cartography by comparing its output to hand-composed pdfs of Canadian Topo maps [1] (not fair I know). One of the stumbling blocks I've run into is the labeling of polygons and I've speculated on the use of "rules-based" labeling. Here's my list of rules from a comment on RFC 77 [2]. "Allow for alternate label positions. While this is likely beyond the scope of RFC 77, perhaps it could be taken into account in design and implementation for later addition. Basically I'd like more flexibility (rule-based?) in labeling polygons: A. Try to place label in polygon. If it doesn't fit: B. Rotate label to fit inside a polygon. If it doesn't fit: C. Place polygon annotation outside polygon" I wonder if adding keywords like CHECKLABELFIT (and other new ones) is the way to go or use PROCESSING directives instead? [1] http://geogratis.cgdi.gc.ca/geogratis/en/product/search.do?id=A6291EF5-F3FC-A29F-3162-DE4DB194FD38 [2] http://lists.osgeo.org/pipermail/mapserver-dev/2011-December/011773.html Best Regards, Brent Fraser On 12/11/2012 7:33 AM, Mark Volz wrote: > Hello, > > Earlier in the year I had asked about forcing labels in their polygons. And another person mentioned the issue in September. At the time Steve W was concerned about complexity and performance in placing labels. I was thinking lately that maybe this topic could be revisited. However, this time around instead of dealing with "optimal" label placement within a polygon, maybe something much simpler would be better. For example: > > keyword : CHECKLABELFIT > -FALSE: Use the BBOX for labeling. This is the current behavior, which is fast and should remain as the default. > -TRUE: Once the label is placed using the current label placement engine, check to make sure the BBOX of label falls within the actual boundary of the polygon, if it does not then skip the label. > > This keyword should not be confused with any algorithm that places labels in an optimal position within the polygon such as one that tries to place a label horizontally, then strait if it doesn't fit. Last, since check label fit is optional, this keyword should only impact performance on layers that a user wants to verify that the label is correctly placed. It would never be needed for a layer where the polygons are rectangular such as sections, or townships. However it may be critical on soil layers. > > Just some thoughts > > Thanks > > Reference > http://osgeo-org.1560.n6.nabble.com/force-labels-to-fit-in-polygons-td4549296.html > http://comments.gmane.org/gmane.comp.gis.mapserver.user/49333 > > > Mark Volz > GIS Specialist > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From MarkVolz at co.lyon.mn.us Wed Dec 12 09:40:11 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Wed, 12 Dec 2012 17:40:11 +0000 Subject: [mapserver-users] Still impossible to force labels inside their polygons? In-Reply-To: <50C8AA36.6020504@geoanalytic.com> References: <36CA828A36E29F45B7CF0A1766E5DFA318B85F@swmail01.r8nssis.local> <50C8AA36.6020504@geoanalytic.com> Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA318BB08@swmail01.r8nssis.local> Brent, In the long run when servers get faster, more layers get cached, and users expect better cartography, I think that it would be worthwhile to implement a way of trying multiple positions. The CHECKLABELFIT keyword is mostly to verify that a label falls inside the actual polygon as opposed to the BBOX, which would help avoid ambiguity on labels. I don't think CHECKLABELFIT would be mutually exclusive to any method of trying to find different label positions. In your comments you have the term "If it doesn't fit." CHECKLABELFIT could be used to specify if we consider if the label fits according to the BBOX or the polygon. For example: A: Calculate the default location of the label in the polygon. If CHECKLABELFIT is on: only place the label if it falls inside the polygon. If CHECKLABELFIT is off: only place the label if it fits in the BBOX If the label could not be placed, and TRYALTERNATELABELS is on: B: Try different positions in the polygon UL,UC,UR, etc. If CHECKLABELFIT is on: only place the label if it falls inside the polygon. If CHECKLABELFIT is off: only place the label if it fits in the BBOX If a label still could not be placed: C: Rotate the label. If CHECKLABELFIT is on: only place the label if it falls inside the polygon. If CHECKLABELFIT is off: only place the label if it fits in the BBOX. If a label could not be placed after rotating the label D. Try using a leader line. / Place Polygon annotation outside polygon. Use situations: CHECKLABELFIT=FALSE, TRYALTERNATELABELS=FALSE: label the map as fast as possible. CHECKLABELFIT=TRUE, TRYALTERNATELABELS=FALSE: make sure labels fit in their polygons, but don't worry about labeling everything. CHECKLABELFIT=FALSE, TRYALTERNATELABELS=TRUE: try to label as many items as possible, use the BBOX as label ambiguity is okay. CHECKLABELFIT=TRUE, TRYALTERNATELABELS=TRUE: try to label as many items as possible, and make sure that the labels fit inside their polygons. (slowest) Thanks Mark Volz GIS Specialist > -----Original Message----- > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > Sent: Wednesday, December 12, 2012 10:01 AM > To: Mark Volz > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Still impossible to force labels inside their > polygons? > > Mark, > > A simple solution sounds good as long as it can fit into a strategic plan (I > don't really have a plan for improving the polygon labeling, just a desire!). > > On major releases of Mapserver I try to push the limits of its cartography > by comparing its output to hand-composed pdfs of Canadian Topo maps [1] > (not fair I know). One of the stumbling blocks I've run into is the labeling of > polygons and I've speculated on the use of "rules-based" labeling. Here's my > list of rules from a comment on RFC > 77 [2]. > > "Allow for alternate label positions. While this is likely beyond the scope of > RFC 77, perhaps it could be taken into account in design and implementation > for later addition. Basically I'd like more flexibility (rule-based?) in labeling > polygons: > > A. Try to place label in polygon. If it doesn't fit: > B. Rotate label to fit inside a polygon. If it doesn't fit: > C. Place polygon annotation outside polygon" > > I wonder if adding keywords like CHECKLABELFIT (and other new ones) is the > way to go or use PROCESSING directives instead? > > [1] > http://geogratis.cgdi.gc.ca/geogratis/en/product/search.do?id=A6291EF5- > F3FC-A29F-3162-DE4DB194FD38 > [2] http://lists.osgeo.org/pipermail/mapserver-dev/2011- > December/011773.html > > Best Regards, > Brent Fraser > > On 12/11/2012 7:33 AM, Mark Volz wrote: > > Hello, > > > > Earlier in the year I had asked about forcing labels in their polygons. And > another person mentioned the issue in September. At the time Steve W was > concerned about complexity and performance in placing labels. I was > thinking lately that maybe this topic could be revisited. However, this time > around instead of dealing with "optimal" label placement within a polygon, > maybe something much simpler would be better. For example: > > > > keyword : CHECKLABELFIT > > -FALSE: Use the BBOX for labeling. This is the current behavior, which is > fast and should remain as the default. > > -TRUE: Once the label is placed using the current label placement engine, > check to make sure the BBOX of label falls within the actual boundary of the > polygon, if it does not then skip the label. > > > > This keyword should not be confused with any algorithm that places labels > in an optimal position within the polygon such as one that tries to place a > label horizontally, then strait if it doesn't fit. Last, since check label fit is > optional, this keyword should only impact performance on layers that a user > wants to verify that the label is correctly placed. It would never be needed > for a layer where the polygons are rectangular such as sections, or > townships. However it may be critical on soil layers. > > > > > Just some thoughts > > > > Thanks > > > > Reference > > http://osgeo-org.1560.n6.nabble.com/force-labels-to-fit-in-polygons-td > > 4549296.html > > http://comments.gmane.org/gmane.comp.gis.mapserver.user/49333 > > > > > > Mark Volz > > GIS Specialist > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From bfraser at geoanalytic.com Wed Dec 12 10:49:00 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 12 Dec 2012 11:49:00 -0700 Subject: [mapserver-users] Still impossible to force labels inside their polygons? In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA318BB08@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA318B85F@swmail01.r8nssis.local> <50C8AA36.6020504@geoanalytic.com> <36CA828A36E29F45B7CF0A1766E5DFA318BB08@swmail01.r8nssis.local> Message-ID: <50C8D19C.4050007@geoanalytic.com> Mark, Sounds ok (it took me a while to realize you meant the BBOX of the polygons, not the label!). My world of sophisticated labeling would include some way of having the mapfile specify the order of applying the rules, but currently there is no way to do procedural things in a mapfile, just set parameters. On second thought, I guess the CLASS list evaluates things in a particular order; perhaps the same technique could be used in label placement: LABEL CHECKLABELFIT true # Check BBOX of label against polygon outline (not just BBOX of polygon) LOCATION# --- first label attempt (Case A,B) --- POSITION cc,ul,uc,ur END LOCATION# --- next label attempt (Case C) --- ANGLE auto END LOCATION# --- next label attempt (Case D) --- LEADER : END END END And I'd like to factor in preferring labeling in areas of no other linework, but that may take some thought... Best Regards, Brent Fraser On 12/12/2012 10:40 AM, Mark Volz wrote: > Brent, > > In the long run when servers get faster, more layers get cached, and users expect better cartography, I think that it would be worthwhile to implement a way of trying multiple positions. The CHECKLABELFIT keyword is mostly to verify that a label falls inside the actual polygon as opposed to the BBOX, which would help avoid ambiguity on labels. I don't think CHECKLABELFIT would be mutually exclusive to any method of trying to find different label positions. > > In your comments you have the term "If it doesn't fit." CHECKLABELFIT could be used to specify if we consider if the label fits according to the BBOX or the polygon. For example: > > A: Calculate the default location of the label in the polygon. If CHECKLABELFIT is on: only place the label if it falls inside the polygon. If CHECKLABELFIT is off: only place the label if it fits in the BBOX > > If the label could not be placed, and TRYALTERNATELABELS is on: > B: Try different positions in the polygon UL,UC,UR, etc. If CHECKLABELFIT is on: only place the label if it falls inside the polygon. If CHECKLABELFIT is off: only place the label if it fits in the BBOX > > If a label still could not be placed: > C: Rotate the label. If CHECKLABELFIT is on: only place the label if it falls inside the polygon. If CHECKLABELFIT is off: only place the label if it fits in the BBOX. > > If a label could not be placed after rotating the label > D. Try using a leader line. / Place Polygon annotation outside polygon. > > > Use situations: > CHECKLABELFIT=FALSE, TRYALTERNATELABELS=FALSE: label the map as fast as possible. > CHECKLABELFIT=TRUE, TRYALTERNATELABELS=FALSE: make sure labels fit in their polygons, but don't worry about labeling everything. > CHECKLABELFIT=FALSE, TRYALTERNATELABELS=TRUE: try to label as many items as possible, use the BBOX as label ambiguity is okay. > CHECKLABELFIT=TRUE, TRYALTERNATELABELS=TRUE: try to label as many items as possible, and make sure that the labels fit inside their polygons. (slowest) > > Thanks > > > Mark Volz > GIS Specialist > > >> -----Original Message----- >> From: Brent Fraser [mailto:bfraser at geoanalytic.com] >> Sent: Wednesday, December 12, 2012 10:01 AM >> To: Mark Volz >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Still impossible to force labels inside their >> polygons? >> >> Mark, >> >> A simple solution sounds good as long as it can fit into a strategic plan (I >> don't really have a plan for improving the polygon labeling, just a desire!). >> >> On major releases of Mapserver I try to push the limits of its cartography >> by comparing its output to hand-composed pdfs of Canadian Topo maps [1] >> (not fair I know). One of the stumbling blocks I've run into is the labeling of >> polygons and I've speculated on the use of "rules-based" labeling. Here's my >> list of rules from a comment on RFC >> 77 [2]. >> >> "Allow for alternate label positions. While this is likely beyond the scope of >> RFC 77, perhaps it could be taken into account in design and implementation >> for later addition. Basically I'd like more flexibility (rule-based?) in labeling >> polygons: >> >> A. Try to place label in polygon. If it doesn't fit: >> B. Rotate label to fit inside a polygon. If it doesn't fit: >> C. Place polygon annotation outside polygon" >> >> I wonder if adding keywords like CHECKLABELFIT (and other new ones) is the >> way to go or use PROCESSING directives instead? >> >> [1] >> http://geogratis.cgdi.gc.ca/geogratis/en/product/search.do?id=A6291EF5- >> F3FC-A29F-3162-DE4DB194FD38 >> [2] http://lists.osgeo.org/pipermail/mapserver-dev/2011- >> December/011773.html >> >> Best Regards, >> Brent Fraser >> >> On 12/11/2012 7:33 AM, Mark Volz wrote: >>> Hello, >>> >>> Earlier in the year I had asked about forcing labels in their polygons. And >> another person mentioned the issue in September. At the time Steve W was >> concerned about complexity and performance in placing labels. I was >> thinking lately that maybe this topic could be revisited. However, this time >> around instead of dealing with "optimal" label placement within a polygon, >> maybe something much simpler would be better. For example: >>> keyword : CHECKLABELFIT >>> -FALSE: Use the BBOX for labeling. This is the current behavior, which is >> fast and should remain as the default. >>> -TRUE: Once the label is placed using the current label placement engine, >> check to make sure the BBOX of label falls within the actual boundary of the >> polygon, if it does not then skip the label. >>> This keyword should not be confused with any algorithm that places labels >> in an optimal position within the polygon such as one that tries to place a >> label horizontally, then strait if it doesn't fit. Last, since check label fit is >> optional, this keyword should only impact performance on layers that a user >> wants to verify that the label is correctly placed. It would never be needed >> for a layer where the polygons are rectangular such as sections, or >> townships. However it may be critical on soil layers. >> >>> Just some thoughts >>> >>> Thanks >>> >>> Reference >>> http://osgeo-org.1560.n6.nabble.com/force-labels-to-fit-in-polygons-td >>> 4549296.html >>> http://comments.gmane.org/gmane.comp.gis.mapserver.user/49333 >>> >>> >>> Mark Volz >>> GIS Specialist >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> > From fiona.flint at ed.ac.uk Thu Dec 13 07:09:12 2012 From: fiona.flint at ed.ac.uk (Fiona Hemsley-Flint) Date: Thu, 13 Dec 2012 15:09:12 +0000 Subject: [mapserver-users] Newer version of Freetype causing font rendering problems Message-ID: <50C9EF98.3090301@ed.ac.uk> Hi, We have found that version 2.4.10 of Freetype causes text through MapServer to render differently (and not as nicely) as v2.3.9 of Freetype. Whilst we have got round this issue by reverting to the earlier version of Freetype, we are concerned that this may cause issues in the future if the old version either stops working on newer operating systems, or if Mapserver stops linking to it. I have attached a couple of screenshots (hopefully these will come through on the list), and i can provide example shapefile and mapfile etc if required... I guess what I'm looking for is feedback as to whether this is a known issue, and whether it should be submitted as a bug report to Mapserver (if so, how?), or to Freetype? Thanks, Fiona -- ---------------------------------------------------- Dr Fiona Hemsley-Flint EDINA National Data Centre, University of Edinburgh +44(0)131 6514462 ---------------------------------------------------- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. -------------- next part -------------- A non-text attachment was scrubbed... Name: freetype_2_3_9.png Type: image/png Size: 4440 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: freetype_2_3_10.png Type: image/png Size: 4417 bytes Desc: not available URL: From Steve.Lime at state.mn.us Thu Dec 13 11:54:24 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 13 Dec 2012 19:54:24 +0000 Subject: [mapserver-users] Still impossible to force labels inside their polygons? In-Reply-To: <50C8D19C.4050007@geoanalytic.com> References: <36CA828A36E29F45B7CF0A1766E5DFA318B85F@swmail01.r8nssis.local> <50C8AA36.6020504@geoanalytic.com> <36CA828A36E29F45B7CF0A1766E5DFA318BB08@swmail01.r8nssis.local>, <50C8D19C.4050007@geoanalytic.com> Message-ID: Label expressions might turn out to be useful here. Just thinking out loud... I mean we might be able to extend things and define expressions where you can write tests like the intersecting a label bbox against the parent shape. Expressions with multiple labels work like classes and are executed in order. Bigger issue is having to cache original geometries as part of the label cache. --Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Brent Fraser [bfraser at geoanalytic.com] Sent: Wednesday, December 12, 2012 12:49 PM To: Mark Volz Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Still impossible to force labels inside their polygons? Mark, Sounds ok (it took me a while to realize you meant the BBOX of the polygons, not the label!). My world of sophisticated labeling would include some way of having the mapfile specify the order of applying the rules, but currently there is no way to do procedural things in a mapfile, just set parameters. On second thought, I guess the CLASS list evaluates things in a particular order; perhaps the same technique could be used in label placement: LABEL CHECKLABELFIT true # Check BBOX of label against polygon outline (not just BBOX of polygon) LOCATION# --- first label attempt (Case A,B) --- POSITION cc,ul,uc,ur END LOCATION# --- next label attempt (Case C) --- ANGLE auto END LOCATION# --- next label attempt (Case D) --- LEADER : END END END And I'd like to factor in preferring labeling in areas of no other linework, but that may take some thought... Best Regards, Brent Fraser On 12/12/2012 10:40 AM, Mark Volz wrote: > Brent, > > In the long run when servers get faster, more layers get cached, and users expect better cartography, I think that it would be worthwhile to implement a way of trying multiple positions. The CHECKLABELFIT keyword is mostly to verify that a label falls inside the actual polygon as opposed to the BBOX, which would help avoid ambiguity on labels. I don't think CHECKLABELFIT would be mutually exclusive to any method of trying to find different label positions. > > In your comments you have the term "If it doesn't fit." CHECKLABELFIT could be used to specify if we consider if the label fits according to the BBOX or the polygon. For example: > > A: Calculate the default location of the label in the polygon. If CHECKLABELFIT is on: only place the label if it falls inside the polygon. If CHECKLABELFIT is off: only place the label if it fits in the BBOX > > If the label could not be placed, and TRYALTERNATELABELS is on: > B: Try different positions in the polygon UL,UC,UR, etc. If CHECKLABELFIT is on: only place the label if it falls inside the polygon. If CHECKLABELFIT is off: only place the label if it fits in the BBOX > > If a label still could not be placed: > C: Rotate the label. If CHECKLABELFIT is on: only place the label if it falls inside the polygon. If CHECKLABELFIT is off: only place the label if it fits in the BBOX. > > If a label could not be placed after rotating the label > D. Try using a leader line. / Place Polygon annotation outside polygon. > > > Use situations: > CHECKLABELFIT=FALSE, TRYALTERNATELABELS=FALSE: label the map as fast as possible. > CHECKLABELFIT=TRUE, TRYALTERNATELABELS=FALSE: make sure labels fit in their polygons, but don't worry about labeling everything. > CHECKLABELFIT=FALSE, TRYALTERNATELABELS=TRUE: try to label as many items as possible, use the BBOX as label ambiguity is okay. > CHECKLABELFIT=TRUE, TRYALTERNATELABELS=TRUE: try to label as many items as possible, and make sure that the labels fit inside their polygons. (slowest) > > Thanks > > > Mark Volz > GIS Specialist > > >> -----Original Message----- >> From: Brent Fraser [mailto:bfraser at geoanalytic.com] >> Sent: Wednesday, December 12, 2012 10:01 AM >> To: Mark Volz >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Still impossible to force labels inside their >> polygons? >> >> Mark, >> >> A simple solution sounds good as long as it can fit into a strategic plan (I >> don't really have a plan for improving the polygon labeling, just a desire!). >> >> On major releases of Mapserver I try to push the limits of its cartography >> by comparing its output to hand-composed pdfs of Canadian Topo maps [1] >> (not fair I know). One of the stumbling blocks I've run into is the labeling of >> polygons and I've speculated on the use of "rules-based" labeling. Here's my >> list of rules from a comment on RFC >> 77 [2]. >> >> "Allow for alternate label positions. While this is likely beyond the scope of >> RFC 77, perhaps it could be taken into account in design and implementation >> for later addition. Basically I'd like more flexibility (rule-based?) in labeling >> polygons: >> >> A. Try to place label in polygon. If it doesn't fit: >> B. Rotate label to fit inside a polygon. If it doesn't fit: >> C. Place polygon annotation outside polygon" >> >> I wonder if adding keywords like CHECKLABELFIT (and other new ones) is the >> way to go or use PROCESSING directives instead? >> >> [1] >> http://geogratis.cgdi.gc.ca/geogratis/en/product/search.do?id=A6291EF5- >> F3FC-A29F-3162-DE4DB194FD38 >> [2] http://lists.osgeo.org/pipermail/mapserver-dev/2011- >> December/011773.html >> >> Best Regards, >> Brent Fraser >> >> On 12/11/2012 7:33 AM, Mark Volz wrote: >>> Hello, >>> >>> Earlier in the year I had asked about forcing labels in their polygons. And >> another person mentioned the issue in September. At the time Steve W was >> concerned about complexity and performance in placing labels. I was >> thinking lately that maybe this topic could be revisited. However, this time >> around instead of dealing with "optimal" label placement within a polygon, >> maybe something much simpler would be better. For example: >>> keyword : CHECKLABELFIT >>> -FALSE: Use the BBOX for labeling. This is the current behavior, which is >> fast and should remain as the default. >>> -TRUE: Once the label is placed using the current label placement engine, >> check to make sure the BBOX of label falls within the actual boundary of the >> polygon, if it does not then skip the label. >>> This keyword should not be confused with any algorithm that places labels >> in an optimal position within the polygon such as one that tries to place a >> label horizontally, then strait if it doesn't fit. Last, since check label fit is >> optional, this keyword should only impact performance on layers that a user >> wants to verify that the label is correctly placed. It would never be needed >> for a layer where the polygons are rectangular such as sections, or >> townships. However it may be critical on soil layers. >> >>> Just some thoughts >>> >>> Thanks >>> >>> Reference >>> http://osgeo-org.1560.n6.nabble.com/force-labels-to-fit-in-polygons-td >>> 4549296.html >>> http://comments.gmane.org/gmane.comp.gis.mapserver.user/49333 >>> >>> >>> Mark Volz >>> GIS Specialist >>> >>> >>> _______________________________________________ >>> 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 traviskirstine at gmail.com Thu Dec 13 12:10:04 2012 From: traviskirstine at gmail.com (Travis Kirstine) Date: Thu, 13 Dec 2012 15:10:04 -0500 Subject: [mapserver-users] Mapserver CSRS support Message-ID: I have issue with my WMS service when using a source raster layer that is in EPSG:2958 - NAD83(CSRS) / UTM zone 17N srs. The issue is that Mapserrver (proj) does not apply a gridshift when requesting the layer in a different projection - UTM z17n NAD83. I have a gridshift file for this transformation however there is no way to apply it to the output that I am aware of. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Thu Dec 13 12:24:07 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 13 Dec 2012 20:24:07 +0000 Subject: [mapserver-users] Retrieve function values from Postgres In-Reply-To: <50C7237D.3060302@iup.physik.uni-bremen.de> References: <50C7237D.3060302@iup.physik.uni-bremen.de> Message-ID: I believe anything you can stuff in a DATA statement using SQL is legitimate. ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Heiko Schr?ter [schroete at iup.physik.uni-bremen.de] Sent: Tuesday, December 11, 2012 6:13 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Retrieve function values from Postgres Hello, is it possible for mapserver to question a function in a postgres geo database ? i.e. this query string inside postgres works: "select * from get_aerosol_data('gas_db', 25.5, '2005-3-2 00:00', '2006-3-5 00:00');" If it is possible how to translate this into mapserver mapfile syntax ? Thanks and Regards Heiko /mdraid/www/localhost/mapserver/mapserv -v MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Thu Dec 13 12:38:34 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 13 Dec 2012 15:38:34 -0500 Subject: [mapserver-users] Retrieve function values from Postgres In-Reply-To: References: <50C7237D.3060302@iup.physik.uni-bremen.de> Message-ID: <50CA3CCA.1000709@swoodbridge.com> DATA "the_geom from (select * from get_aerosol_data('gas_db', 25.5, '2005-3-2 00:00', '2006-3-5 00:00') ) as foo using unique gid using srid=4326" Here is a link that might help: http://mapserver.org/input/vector/postgis.html -Steve W On 12/13/2012 3:24 PM, Lime, Steve D (DNR) wrote: > I believe anything you can stuff in a DATA statement using SQL is legitimate. > > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Heiko Schr?ter [schroete at iup.physik.uni-bremen.de] > Sent: Tuesday, December 11, 2012 6:13 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Retrieve function values from Postgres > > Hello, > > is it possible for mapserver to question a function in a postgres geo > database ? > i.e. this query string inside postgres works: > "select * from get_aerosol_data('gas_db', 25.5, '2005-3-2 00:00', > '2006-3-5 00:00');" > > If it is possible how to translate this into mapserver mapfile syntax ? > > Thanks and Regards > Heiko > > > /mdraid/www/localhost/mapserver/mapserv -v > MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML > SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER > SUPPORTS=FASTCGI INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > _______________________________________________ > 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 ivan.mincik at gmail.com Thu Dec 13 13:04:42 2012 From: ivan.mincik at gmail.com (=?UTF-8?B?SXZhbiBNaW7EjcOtaw==?=) Date: Thu, 13 Dec 2012 22:04:42 +0100 Subject: [mapserver-users] MapFile viewer Message-ID: <50CA42EA.40901@gmail.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, If anybody interested, I have published my simple web based mapfile viewer tool, which I use to develop and visualize MapServer layers. Mapfile viewer is a Python script which starts standalone WSGI server which provides OpenLayers-based map viewer containing layers from given mapfile. You can download it from here: https://github.com/imincik/mapfile-viewer Any patches welcomed. - -- Ivan Mincik, ivan.mincik at gmail.com If replying in mailing-list please add me to Cc. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJQykLqAAoJEPfdLsR5Upoez7cIAJiQE1pxklQHYVqS6YOLTcyv 8Vf/XxwJ61Foe1rGKj5eFJiicFWZX3+btwL2MQ2+q/+ujhFUj+uEsBDmHFa3TlKm S1P2QDteks7eX7V8BIstGrCOJ2jd5n17j5/4WsRJOzDHfKrqRyNx9NCHyTQnE97s iL4vz8zvcWhP/kKXACoAH5RL7C5m9MmVuKWByMhZa/ppNALeQtZcMOTn0DW+N1LP K0oCCw9B88/LkqXZQTnfrRKHMKkktlwxSRNfqSbjC4TREhUunnJd1r4yJghkPgeb BQoxQSPNIgi5epr9rFXxs6nBMhXPkBvtTaPAEKQzmM+M/QBdkxcqxq6TWbQQ/6I= =3Xfc -----END PGP SIGNATURE----- From warmerdam at pobox.com Thu Dec 13 13:04:11 2012 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 13 Dec 2012 13:04:11 -0800 Subject: [mapserver-users] Mapserver CSRS support In-Reply-To: References: Message-ID: Travis, I think MapServer is just going to lookup 2958 in the PROJ.4 epsg init file. So it may well be sufficient to update the entry to refer to the grid shift file. Something like changing this: # NAD83(CSRS) / UTM zone 17N <2958> +proj=utm +zone=17 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs <> to this: # NAD83(CSRS) / UTM zone 17N <2958> +proj=utm +zone=17 +ellps=GRS80 +nadgrids=csrs.ntv2 +units=m +no_defs <> Is the CSRS datum shift file public/free? I'd be interested in documenting use of it on the PROJ.4 site, and possibly including it in the default set of distributed datum shift files. Best regards, Frank On Thu, Dec 13, 2012 at 12:10 PM, Travis Kirstine wrote: > I have issue with my WMS service when using a source raster layer that is > in EPSG:2958 - NAD83(CSRS) / UTM zone 17N srs. The issue is that Mapserrver > (proj) does not apply a gridshift when requesting the layer in a different > projection - UTM z17n NAD83. I have a gridshift file for this > transformation however there is no way to apply it to the output that I am > aware of. > > Thanks > > _______________________________________________ > 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 bob.basques at ci.stpaul.mn.us Thu Dec 13 13:58:34 2012 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Thu, 13 Dec 2012 21:58:34 +0000 Subject: [mapserver-users] Map inset, anyone tried this? Message-ID: All, Wild thought here . . . I'm wondering about how to approach the need to add a map inset to a MapServer call. I know I can make separate calls and stack some maps on top of each other, but I'm wondering now about using a TRANSFORM of coordinates to put a Map Inset window into a Mapserver call in some way? One thought was to use a SQL call to PostGIS and transform things in some fashion that way. Another might be a method for defining a window, and then adding in a MapServer parameter to use a MAPfile to populate it. This might also lead to some capabilities with respect to making some interesting embedded Legends, since the populating aspect might be a simple URL to populate the defined window in the map. With MapServer making the call, the window could even be treated as a label object and label collisions could be handled as well . . . hmmm, remember, I did say " wild". :c) In the back of my mind (for some number of years now) I've wanted the capabilities to actually draw things via a MapServer call in some form. A Map Inset window with a tail, similar to OpenLayers or Google Popups for example, would be the best description I can think of. Anyone tried anything like this? I can see this being interesting as a capability especially for doing spatial reports (Which I'm in the middle of designing right now . . .) Thanks Bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From osgeo.mailinglist at gmail.com Fri Dec 14 01:20:04 2012 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Fri, 14 Dec 2012 10:20:04 +0100 Subject: [mapserver-users] MapFile viewer In-Reply-To: <50CA42EA.40901@gmail.com> References: <50CA42EA.40901@gmail.com> Message-ID: Hello, What is the advantage compare to OpenLayers built-in viewer (since 6.x version) e.g http://mapserver.org/trunk/fr/openlayers.html ? Regards ThomasG -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan.mincik at gmail.com Fri Dec 14 03:14:41 2012 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Fri, 14 Dec 2012 12:14:41 +0100 Subject: [mapserver-users] MapFile viewer In-Reply-To: References: <50CA42EA.40901@gmail.com> Message-ID: <50CB0A21.1020206@gmail.com> On 12/14/2012 10:20 AM, Thomas Gratier wrote: > Hello, > > What is the advantage compare to OpenLayers built-in viewer (since 6.x > version) e.g http://mapserver.org/trunk/fr/openlayers.html ? I do not use that viewer, but it could be one of these: 1. Works for MapServer < 6.0 2. Doesn't require web server running on Your machine. It creates its own WSGI server which is more like development environments should look like (Django dev server). 3. I am not sure how viewer in MapServer deals with errors in mapfile. In my case it prints usable error message to console which is key feature for debugging. 4. Possibilities to override CONNECTION setting - in production we use variables substitution ('user=%MYUSER% password=%MYPASSWORD% dbname=%MYDBNAME% host=%MYHOST%'). In development I can send there my user credentials. 5. Possibility to override some other parameters line EXTENT. It creates possibility to work with many projects with the same base mapfile. I will add other overriding options. 6. Or maybe No advantage at all -- Ivan Mincik From umberto.nicoletti at gmail.com Fri Dec 14 03:27:27 2012 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Fri, 14 Dec 2012 12:27:27 +0100 Subject: [mapserver-users] MapFile viewer In-Reply-To: <50CB0A21.1020206@gmail.com> References: <50CA42EA.40901@gmail.com> <50CB0A21.1020206@gmail.com> Message-ID: I for one starred the project. It could be useful for integration testing, i.e. for use with our CI. Ivan, thanks for the viewer. Umberto On Fri, Dec 14, 2012 at 12:14 PM, Ivan Mincik wrote: > On 12/14/2012 10:20 AM, Thomas Gratier wrote: > > Hello, > > > > What is the advantage compare to OpenLayers built-in viewer (since 6.x > > version) e.g http://mapserver.org/trunk/fr/openlayers.html ? > > > I do not use that viewer, but it could be one of these: > > 1. Works for MapServer < 6.0 > > 2. Doesn't require web server running on Your machine. It creates its > own WSGI server which is more like development environments should look > like (Django dev server). > > 3. I am not sure how viewer in MapServer deals with errors in mapfile. > In my case it prints usable error message to console which is key > feature for debugging. > > 4. Possibilities to override CONNECTION setting - in production we use > variables substitution ('user=%MYUSER% password=%MYPASSWORD% > dbname=%MYDBNAME% host=%MYHOST%'). In development I can send there my > user credentials. > > 5. Possibility to override some other parameters line EXTENT. It creates > possibility to work with many projects with the same base mapfile. I > will add other overriding options. > > > 6. Or maybe No advantage at all > > > -- > Ivan Mincik > _______________________________________________ > 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 ivan.mincik at gmail.com Fri Dec 14 04:07:48 2012 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Fri, 14 Dec 2012 13:07:48 +0100 Subject: [mapserver-users] MapFile viewer In-Reply-To: References: <50CA42EA.40901@gmail.com> <50CB0A21.1020206@gmail.com> Message-ID: <50CB1694.1040209@gmail.com> Thanks for people testing and reporting issues on GitHub. As I said, I used this tool for my purposes, so it could rise bugs when tested in different environments. I have no problem with fixing issues, adding legend support ... . I would be very interested what do You think in general about this kind of approach ? Is it worth to continue in work ? -- Ivan Mincik From jmckenna at gatewaygeomatics.com Fri Dec 14 05:32:04 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 14 Dec 2012 09:32:04 -0400 Subject: [mapserver-users] MapFile viewer In-Reply-To: <50CB1694.1040209@gmail.com> References: <50CA42EA.40901@gmail.com> <50CB0A21.1020206@gmail.com> <50CB1694.1040209@gmail.com> Message-ID: <50CB2A54.6030508@gatewaygeomatics.com> Ivan, I want to make sure users can find this viewer; would you be willing to edit the MapServer Wiki (https://github.com/mapserver/mapserver/wiki) and add a "Mapfile Viewers" page there, with your project as a first example? (note that you could include screengrabs or anything you want on that new page) Thanks for your hard work, -jeff On 12-12-14 8:07 AM, Ivan Mincik wrote: > Thanks for people testing and reporting issues on GitHub. > As I said, I used this tool for my purposes, so it could rise bugs when > tested in different environments. I have no problem with fixing issues, > adding legend support ... . > > I would be very interested what do You think in general about this kind > of approach ? Is it worth to continue in work ? > > -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From umberto.nicoletti at gmail.com Fri Dec 14 05:40:59 2012 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Fri, 14 Dec 2012 14:40:59 +0100 Subject: [mapserver-users] MapFile viewer In-Reply-To: <50CB1694.1040209@gmail.com> References: <50CA42EA.40901@gmail.com> <50CB0A21.1020206@gmail.com> <50CB1694.1040209@gmail.com> Message-ID: On Fri, Dec 14, 2012 at 1:07 PM, Ivan Mincik wrote: > Thanks for people testing and reporting issues on GitHub. > As I said, I used this tool for my purposes, so it could rise bugs when > tested in different environments. I have no problem with fixing issues, > adding legend support ... . > > I would be very interested what do You think in general about this kind > of approach ? Is it worth to continue in work ? > > I like the idea and it could serve as a reference for someone learning mapscript. Most importantly, if you had fun coding it that would surely be enough, wouldn't it? Umberto > > -- > Ivan Mincik > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan.mincik at gmail.com Fri Dec 14 05:49:38 2012 From: ivan.mincik at gmail.com (=?UTF-8?B?SXZhbiBNaW7EjcOtaw==?=) Date: Fri, 14 Dec 2012 14:49:38 +0100 Subject: [mapserver-users] MapFile viewer In-Reply-To: <50CB1694.1040209@gmail.com> References: <50CA42EA.40901@gmail.com> <50CB0A21.1020206@gmail.com> <50CB1694.1040209@gmail.com> Message-ID: <50CB2E72.1090008@gmail.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have fixed two issues reported on GitHub (thanks @tbonfort). - -- Ivan Mincik, ivan.mincik at gmail.com If replying in mailing-list please add me to Cc. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJQyy5yAAoJEPfdLsR5UpoeVEoIAJd18PZug/0LEm2si2mcsPwr KK/Dd75FuMl7rwrNRQJ/9VLYUUpPvpCTnOq6/5TykRYuttPa3DTXgw4PSUJAy8qC 5IGklrqNgyIikM+MQn0zkshu4n0QHSU2ajuOqvgW9kaCce+ys2C55DIQ4Lb53e7H TDca/dqzttkA7LGxtYVvkkcTgfiOqv3mZK6eLF0JivtA2CxVpWWkRjz1h8Zj4eRG eqnIpFrczVRSpUEMJtDj1UywMLWIx3aZdsjHs5Bb//VMlXce3XA8PF3eR+/6EyKo Ni1VgBlxcdrH1+RAOx2zNeAPpPH1VGyJdeczXaM4v1yCkVDnabvhmM3CdXFecNY= =F6W9 -----END PGP SIGNATURE----- From i.geografica at alt-shn.org Fri Dec 14 14:48:13 2012 From: i.geografica at alt-shn.org (ALT SHN) Date: Fri, 14 Dec 2012 22:48:13 +0000 Subject: [mapserver-users] Reclassify raster cell values In-Reply-To: <84446DEF76453C439E9E97E438E13A637C01C6@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A637C01C6@suutari.haapa.mmm.fi> Message-ID: Thank you Rahknonen, However this is not quite what I expected. If I reclassify a particular value, all other cells disapear. This leads me to another question (I'll open another topic too). the PROCESSING LUT command can be used as a way to build a indexed color table for 8bit rasters. Is there a way to import a color table ? Thank you Andr? 2012/12/10 Rahkonen Jukka > Hi, > > It should be possible to do what you want by using the PROCESSING LUT > option. > http://www.mapserver.org/input/raster.html > > -Jukka Rahkonen- > > ________________________________ > > ALT SHN wrote: > > > Hello Everyone, > > > First time Mapserver user here, and I would appreciate some advice > regarding this problem: > > > I have a Tile Index of single band TIFF rasters (0-255). The rasters are > displayer fast, and accuratly. However these rasters cover a sea shore > area, this means that half the rasters are sea territory, wich is > represented in black (0 cell values) > > > Is there way, in the Mapfile to reclassify the 0 cells to 255 in order > to turn them white? I know I can always pre process the rasters, but I'm > talking about forty + files... > > > Thanks in advance, > > Cheers, > > Andr? Mano > > -- > --------------------------------------------------------------- > Associa??o Leonel Trindade > SOCIEDADE DE HIST?RIA NATURAL > > Apartado 25 2564-909 Torres Vedras Portugal > Sede e Biblioteca: rua Cavaleiros da Espora Dourada, 27A 2560 Torres Vedras > > Laborat?rio de Paleontologia e Paleoecologia: Pol?gono Industrial do Alto > do Ameal 2565-641 Ramalhal > http://alt-shn.blogspot.com > www.alt-shn.org > -- --------------------------------------------------------------- Associa??o Leonel Trindade SOCIEDADE DE HIST?RIA NATURAL Apartado 25 2564-909 Torres Vedras Portugal Sede e Biblioteca: rua Cavaleiros da Espora Dourada, 27A 2560 Torres Vedras Laborat?rio de Paleontologia e Paleoecologia: Pol?gono Industrial do Alto do Ameal 2565-641 Ramalhal http://alt-shn.blogspot.com www.alt-shn.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From i.geografica at alt-shn.org Fri Dec 14 14:52:09 2012 From: i.geografica at alt-shn.org (ALT SHN) Date: Fri, 14 Dec 2012 22:52:09 +0000 Subject: [mapserver-users] Raster color table Message-ID: Hi, Is there a way to associate a color table to a 8bit raster so Mapserver doesn't render it in grayscale? In the Mapserver documentation, a pallete is refered, but for what I understood, this applies to the output format, not to a particular raster. Is there a workarround for this situation? (other than converting the raster to RGB) Thank you, Andr? Mano -- --------------------------------------------------------------- Associa??o Leonel Trindade SOCIEDADE DE HIST?RIA NATURAL Apartado 25 2564-909 Torres Vedras Portugal Sede e Biblioteca: rua Cavaleiros da Espora Dourada, 27A 2560 Torres Vedras Laborat?rio de Paleontologia e Paleoecologia: Pol?gono Industrial do Alto do Ameal 2565-641 Ramalhal http://alt-shn.blogspot.com www.alt-shn.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.mallen at airborne.aero Fri Dec 14 14:54:41 2012 From: peter.mallen at airborne.aero (Peter Mallen) Date: Fri, 14 Dec 2012 17:54:41 -0500 Subject: [mapserver-users] Hindi and Thai text rendering Message-ID: <0342A56AD728D64185DB36D9514E2E7E0128CB7B@BE64.exg3.exghost.com> Hello Everyone, We are having issues displaying Hindi in Map Server. The characters display correctly in text editors we use, as well as excel, open office documents and in our sqlite database. Certain characters appear to flip around when displaying in Map Sever. We have tried various different fonts including: arialuni, devangari, gargi, etc. We have also tried using several data types: shapefiles, sqlite databases. The following is a link showing how the Hindi characters should display: http://translate.google.com/#hi/en/%E0%A4%AE%E0%A5%87%E0%A4%95%E0%A5%8D% E0%A4%B8%E0%A4%BF%E0%A4%95%E0%A5%8B%20%E0%A4%B8%E0%A4%BF%E0%A4%9F%E0%A5% 80 I have included a basic Map File where I am using the TEXT tag to display the Hindi translation using an HTML string of entities. MAP NAME 'Simple' STATUS ON SIZE 1280 768 EXTENT -180 -90 180 90 UNITS MILES IMAGECOLOR 0 0 70 IMAGETYPE PNG #CONFIG "MS_ERRORFILE" "/data2/Hindi_Testing/mapserver.log" #change this to match your configuration DEBUG 5 FONTSET fontset.txt #This will need to be updated to the location of the users fontset.txt. We are using arialuni. LAYER DEBUG 5 NAME cities1 TYPE annotation STATUS DEFAULT FEATURE POINTS -99.169998 19.42 END END CLASS #This HTML string is for 'Mexico City' translated into Hindi. Mapserver does not display this correctly. TEXT 'मेक्सिको ;सिटी' LABEL FONT "arialuni" TYPE truetype ENCODING 'UTF-8' SIZE 30 COLOR 200 200 0 POSITION CC PARTIALS FALSE ALIGN center END END END END # Map File Thank You, Peter Mallen -----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: Tuesday, June 19, 2012 6:01 AM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 53, Issue 42 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. Hindi and Thai text rendering (Ian Walberg) 2. Re: Hindi and Thai text rendering (Jeff McKenna) 3. Re: Hindi and Thai text rendering (Ian Walberg) 4. Re: Hindi and Thai text rendering (Stephen Woodbridge) 5. Re: Hindi and Thai text rendering (Ian Walberg) 6. Mapfile Variables (Matt McClelland) 7. Re: Hindi and Thai text rendering (Stephen Woodbridge) ---------------------------------------------------------------------- Message: 1 Date: Mon, 18 Jun 2012 17:45:39 -0400 From: "Ian Walberg" To: , Subject: [mapserver-users] Hindi and Thai text rendering Message-ID: Content-Type: text/plain; charset="us-ascii" Hello list, We are seeing some issues displaying Hindi and Thai text, from a quick search it looks like this may be related to there not being support for Indic scripts. Can anyone confirm if these are supported? And if they are not are there any workarounds? Many thanks Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 2 Date: Mon, 18 Jun 2012 19:06:09 -0300 From: Jeff McKenna To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Hindi and Thai text rendering Message-ID: <4FDFA651.80507 at gatewaygeomatics.com> Content-Type: text/plain; charset=ISO-8859-1 On 12-06-18 6:45 PM, Ian Walberg wrote: > Hello list, > > > > We are seeing some issues displaying Hindi and Thai text, from a quick > search it looks like this may be related to there not being support > for Indic scripts. > > > > Can anyone confirm if these are supported? And if they are not are > there any workarounds? > Hello Ian, I can for sure confirm that Thai text is supported, as it was one of the languages tested during the initial implementation of the source code (see the notes at the bottom of http://www.mapserver.org/mapfile/labelencoding.html). There's always a chance that things have changed with MapServer 6.0, but if you provide a small data sample, font, and simple one layer mapfile I am sure others on this email list can test and provide feedback for you. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ------------------------------ Message: 3 Date: Mon, 18 Jun 2012 18:46:11 -0400 From: "Ian Walberg" To: "Jeff McKenna" , Subject: Re: [mapserver-users] Hindi and Thai text rendering Message-ID: Content-Type: text/plain; charset="us-ascii" Jeff, That is encouraging, however our concern is that the character rendering is not supported. Regards Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Monday, June 18, 2012 3:06 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Hindi and Thai text rendering On 12-06-18 6:45 PM, Ian Walberg wrote: > Hello list, > > > > We are seeing some issues displaying Hindi and Thai text, from a quick > search it looks like this may be related to there not being support > for Indic scripts. > > > > Can anyone confirm if these are supported? And if they are not are > there any workarounds? > Hello Ian, I can for sure confirm that Thai text is supported, as it was one of the languages tested during the initial implementation of the source code (see the notes at the bottom of http://www.mapserver.org/mapfile/labelencoding.html). There's always a chance that things have changed with MapServer 6.0, but if you provide a small data sample, font, and simple one layer mapfile I am sure others on this email list can test and provide feedback for you. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------ Message: 4 Date: Mon, 18 Jun 2012 23:47:10 -0400 From: Stephen Woodbridge To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Hindi and Thai text rendering Message-ID: <4FDFF63E.9000407 at swoodbridge.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 6/18/2012 6:46 PM, Ian Walberg wrote: > Jeff, > > That is encouraging, however our concern is that the character rendering > is not supported. Ian, What do you mean by this statement? What have you tried? ie: what does you mapfile look like, what font are you using, etc? For this to work you need the following: 1. a mapserver build with fribidi-0.19.2 2. a truetype fone file that supports all the glyphs that you need 3. your mapfile and data configured correctly such that the text in the data is appropriately for the ENCODING and that that then matches the ttf. -Steve W > Regards > > Ian > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff > McKenna > Sent: Monday, June 18, 2012 3:06 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Hindi and Thai text rendering > > On 12-06-18 6:45 PM, Ian Walberg wrote: >> Hello list, >> >> >> >> We are seeing some issues displaying Hindi and Thai text, from a quick > >> search it looks like this may be related to there not being support >> for Indic scripts. >> >> >> >> Can anyone confirm if these are supported? And if they are not are >> there any workarounds? >> > > Hello Ian, > > I can for sure confirm that Thai text is supported, as it was one of the > languages tested during the initial implementation of the source code > (see the notes at the bottom of > http://www.mapserver.org/mapfile/labelencoding.html). > > There's always a chance that things have changed with MapServer 6.0, but > if you provide a small data sample, font, and simple one layer mapfile I > am sure others on this email list can test and provide feedback for you. > > -jeff > > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ------------------------------ Message: 5 Date: Mon, 18 Jun 2012 23:51:36 -0400 From: "Ian Walberg" To: "Stephen Woodbridge" , Subject: Re: [mapserver-users] Hindi and Thai text rendering Message-ID: Content-Type: text/plain; charset="us-ascii" Stephen, We can provide some examples tomorrow but we are seeing some characters not matching what is displayed in other applications. Overall the behaviour appears to match this description https://github.com/mapserver/mapserver/issues/2591 Regards Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Monday, June 18, 2012 8:47 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Hindi and Thai text rendering On 6/18/2012 6:46 PM, Ian Walberg wrote: > Jeff, > > That is encouraging, however our concern is that the character > rendering is not supported. Ian, What do you mean by this statement? What have you tried? ie: what does you mapfile look like, what font are you using, etc? For this to work you need the following: 1. a mapserver build with fribidi-0.19.2 2. a truetype fone file that supports all the glyphs that you need 3. your mapfile and data configured correctly such that the text in the data is appropriately for the ENCODING and that that then matches the ttf. -Steve W > Regards > > Ian > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff > McKenna > Sent: Monday, June 18, 2012 3:06 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Hindi and Thai text rendering > > On 12-06-18 6:45 PM, Ian Walberg wrote: >> Hello list, >> >> >> >> We are seeing some issues displaying Hindi and Thai text, from a >> quick > >> search it looks like this may be related to there not being support >> for Indic scripts. >> >> >> >> Can anyone confirm if these are supported? And if they are not are >> there any workarounds? >> > > Hello Ian, > > I can for sure confirm that Thai text is supported, as it was one of > the languages tested during the initial implementation of the source > code (see the notes at the bottom of > http://www.mapserver.org/mapfile/labelencoding.html). > > There's always a chance that things have changed with MapServer 6.0, > but if you provide a small data sample, font, and simple one layer > mapfile I am sure others on this email list can test and provide feedback for you. > > -jeff > > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > 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 ------------------------------ Message: 6 Date: Tue, 19 Jun 2012 16:15:12 +1000 From: Matt McClelland To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapfile Variables Message-ID: Content-Type: text/plain; charset="iso-8859-1" Hi All Is is possible create and use variables within a mapfile? IE I want to store the colour of a road in one place, then reference that colour in the several style tags EG $road_colour_inside = "255 0 0 " then later in the style tags be able to do color $road_colour_inside Or something similar. I am using v6.0 Thanks Matt :) -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 7 Date: Tue, 19 Jun 2012 08:59:41 -0400 From: Stephen Woodbridge To: Ian Walberg Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Hindi and Thai text rendering Message-ID: <4FE077BD.1020407 at swoodbridge.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi Ian, The symptoms you are describing are similar to what I have run into with rendering Arabic. What we found was that the TTF we were using was missing some glyphs related to connecting characters in the script. My client Identified these and we were able to locate a different font that had better glyph coverage for Arabic. I don't know anything about Hindi and Thai so looking at you results will not help, but it does sounds like the basic rendering is working. Assuming the above is true, then you would need to identify the characters that are wrong or missing by there character codes and then find a font that has support for those codes. If you think fribidi is not handling things correctly, I have found their mailing list to be very helpful and they suggested changes to how we used their code in mapserver in the past to filter out some zero width space utf8 codes that were causing problems for Arabic. -Steve W On 6/18/2012 11:51 PM, Ian Walberg wrote: > Stephen, > > We can provide some examples tomorrow but we are seeing some characters > not matching what is displayed in other applications. > > Overall the behaviour appears to match this description > https://github.com/mapserver/mapserver/issues/2591 > > Regards > > Ian > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge > Sent: Monday, June 18, 2012 8:47 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Hindi and Thai text rendering > > On 6/18/2012 6:46 PM, Ian Walberg wrote: >> Jeff, >> >> That is encouraging, however our concern is that the character >> rendering is not supported. > > Ian, > > What do you mean by this statement? > > What have you tried? ie: what does you mapfile look like, what font are > you using, etc? > > For this to work you need the following: > > 1. a mapserver build with fribidi-0.19.2 2. a truetype fone file that > supports all the glyphs that you need 3. your mapfile and data > configured correctly such that the text in the data is appropriately for > the ENCODING and that that then matches the ttf. > > -Steve W > >> Regards >> >> Ian >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff >> McKenna >> Sent: Monday, June 18, 2012 3:06 PM >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Hindi and Thai text rendering >> >> On 12-06-18 6:45 PM, Ian Walberg wrote: >>> Hello list, >>> >>> >>> >>> We are seeing some issues displaying Hindi and Thai text, from a >>> quick >> >>> search it looks like this may be related to there not being support >>> for Indic scripts. >>> >>> >>> >>> Can anyone confirm if these are supported? And if they are not are >>> there any workarounds? >>> >> >> Hello Ian, >> >> I can for sure confirm that Thai text is supported, as it was one of >> the languages tested during the initial implementation of the source >> code (see the notes at the bottom of >> http://www.mapserver.org/mapfile/labelencoding.html). >> >> There's always a chance that things have changed with MapServer 6.0, >> but if you provide a small data sample, font, and simple one layer >> mapfile I am sure others on this email list can test and provide > feedback for you. >> >> -jeff >> >> >> >> >> -- >> Jeff McKenna >> MapServer Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> 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 End of mapserver-users Digest, Vol 53, Issue 42 *********************************************** From peter.mallen at airborne.aero Fri Dec 14 15:20:19 2012 From: peter.mallen at airborne.aero (Peter Mallen) Date: Fri, 14 Dec 2012 18:20:19 -0500 Subject: [mapserver-users] Hindi and Thai text rendering Message-ID: <0342A56AD728D64185DB36D9514E2E7E0128CB96@BE64.exg3.exghost.com> Hello Everyone, I am re-posting this with a corrected link provided below. We are having issues displaying Hindi in Map Server. The characters display correctly in text editors we use, as well as excel, open office documents and in our sqlite database. Certain characters appear to flip around when displaying in Map Sever. We have tried various different fonts including: arialuni, devangari, gargi, etc. We have also tried using several data types: shapefiles, sqlite databases. The following is a link showing how the Hindi characters should display: http://translate.google.com/#hi/en/%E0%A4%AE%E0%A5%87%E0%A4%95%E0%A5%8D% E0%A4%B8%E0%A4%BF%E0%A4%95%E0%A5%8B%20%E0%A4%B8%E0%A4%BF%E0%A4%9F%E0%A5% 80 I have included a basic Map File where I am using the TEXT tag to display the Hindi translation using an HTML string of entities. MAP NAME 'Simple' STATUS ON SIZE 1280 768 EXTENT -180 -90 180 90 UNITS MILES IMAGECOLOR 0 0 70 IMAGETYPE PNG #CONFIG "MS_ERRORFILE" "/data2/Hindi_Testing/mapserver.log" #change this to match your configuration DEBUG 5 FONTSET fontset.txt #This will need to be updated to the location of the users fontset.txt. We are using arialuni. LAYER DEBUG 5 NAME cities1 TYPE annotation STATUS DEFAULT FEATURE POINTS -99.169998 19.42 END END CLASS #This HTML string is for 'Mexico City' translated into Hindi. Mapserver does not display this correctly. TEXT 'मेक्सिको ;सिटी' LABEL FONT "arialuni" TYPE truetype ENCODING 'UTF-8' SIZE 30 COLOR 200 200 0 POSITION CC PARTIALS FALSE ALIGN center END END END END # Map File Thank You, Peter Mallen -----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, December 14, 2012 3:05 PM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 59, Issue 24 Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. Re: Reclassify raster cell values (ALT SHN) 2. Raster color table (ALT SHN) 3. Re: Hindi and Thai text rendering (Peter Mallen) ---------------------------------------------------------------------- Message: 1 Date: Fri, 14 Dec 2012 22:48:13 +0000 From: ALT SHN To: Rahkonen Jukka Cc: "mapserver-users at lists.osgeo.org" Subject: Re: [mapserver-users] Reclassify raster cell values Message-ID: Content-Type: text/plain; charset="iso-8859-1" Thank you Rahknonen, However this is not quite what I expected. If I reclassify a particular value, all other cells disapear. This leads me to another question (I'll open another topic too). the PROCESSING LUT command can be used as a way to build a indexed color table for 8bit rasters. Is there a way to import a color table ? Thank you Andr? 2012/12/10 Rahkonen Jukka > Hi, > > It should be possible to do what you want by using the PROCESSING LUT > option. > http://www.mapserver.org/input/raster.html > > -Jukka Rahkonen- > > ________________________________ > > ALT SHN wrote: > > > Hello Everyone, > > > First time Mapserver user here, and I would appreciate some advice > regarding this problem: > > > I have a Tile Index of single band TIFF rasters (0-255). The rasters > > are > displayer fast, and accuratly. However these rasters cover a sea shore > area, this means that half the rasters are sea territory, wich is > represented in black (0 cell values) > > > Is there way, in the Mapfile to reclassify the 0 cells to 255 in > > order > to turn them white? I know I can always pre process the rasters, but > I'm talking about forty + files... > > > Thanks in advance, > > Cheers, > > Andr? Mano > > -- > --------------------------------------------------------------- > Associa??o Leonel Trindade > SOCIEDADE DE HIST?RIA NATURAL > > Apartado 25 2564-909 Torres Vedras Portugal Sede e Biblioteca: rua > Cavaleiros da Espora Dourada, 27A 2560 Torres Vedras > > Laborat?rio de Paleontologia e Paleoecologia: Pol?gono Industrial do > Alto do Ameal 2565-641 Ramalhal http://alt-shn.blogspot.com > www.alt-shn.org > -- --------------------------------------------------------------- Associa??o Leonel Trindade SOCIEDADE DE HIST?RIA NATURAL Apartado 25 2564-909 Torres Vedras Portugal Sede e Biblioteca: rua Cavaleiros da Espora Dourada, 27A 2560 Torres Vedras Laborat?rio de Paleontologia e Paleoecologia: Pol?gono Industrial do Alto do Ameal 2565-641 Ramalhal http://alt-shn.blogspot.com www.alt-shn.org -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 2 Date: Fri, 14 Dec 2012 22:52:09 +0000 From: ALT SHN To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Raster color table Message-ID: Content-Type: text/plain; charset="iso-8859-1" Hi, Is there a way to associate a color table to a 8bit raster so Mapserver doesn't render it in grayscale? In the Mapserver documentation, a pallete is refered, but for what I understood, this applies to the output format, not to a particular raster. Is there a workarround for this situation? (other than converting the raster to RGB) Thank you, Andr? Mano -- --------------------------------------------------------------- Associa??o Leonel Trindade SOCIEDADE DE HIST?RIA NATURAL Apartado 25 2564-909 Torres Vedras Portugal Sede e Biblioteca: rua Cavaleiros da Espora Dourada, 27A 2560 Torres Vedras Laborat?rio de Paleontologia e Paleoecologia: Pol?gono Industrial do Alto do Ameal 2565-641 Ramalhal http://alt-shn.blogspot.com www.alt-shn.org -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 3 Date: Fri, 14 Dec 2012 17:54:41 -0500 From: "Peter Mallen" To: Subject: Re: [mapserver-users] Hindi and Thai text rendering Message-ID: <0342A56AD728D64185DB36D9514E2E7E0128CB7B at BE64.exg3.exghost.com> Content-Type: text/plain; charset="us-ascii" Hello Everyone, We are having issues displaying Hindi in Map Server. The characters display correctly in text editors we use, as well as excel, open office documents and in our sqlite database. Certain characters appear to flip around when displaying in Map Sever. We have tried various different fonts including: arialuni, devangari, gargi, etc. We have also tried using several data types: shapefiles, sqlite databases. The following is a link showing how the Hindi characters should display: http://translate.google.com/#hi/en/%E0%A4%AE%E0%A5%87%E0%A4%95%E0%A5%8D% E0%A4%B8%E0%A4%BF%E0%A4%95%E0%A5%8B%20%E0%A4%B8%E0%A4%BF%E0%A4%9F%E0%A5% 80 I have included a basic Map File where I am using the TEXT tag to display the Hindi translation using an HTML string of entities. MAP NAME 'Simple' STATUS ON SIZE 1280 768 EXTENT -180 -90 180 90 UNITS MILES IMAGECOLOR 0 0 70 IMAGETYPE PNG #CONFIG "MS_ERRORFILE" "/data2/Hindi_Testing/mapserver.log" #change this to match your configuration DEBUG 5 FONTSET fontset.txt #This will need to be updated to the location of the users fontset.txt. We are using arialuni. LAYER DEBUG 5 NAME cities1 TYPE annotation STATUS DEFAULT FEATURE POINTS -99.169998 19.42 END END CLASS #This HTML string is for 'Mexico City' translated into Hindi. Mapserver does not display this correctly. TEXT 'मेक्सिको ;सिटी' LABEL FONT "arialuni" TYPE truetype ENCODING 'UTF-8' SIZE 30 COLOR 200 200 0 POSITION CC PARTIALS FALSE ALIGN center END END END END # Map File Thank You, Peter Mallen -----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: Tuesday, June 19, 2012 6:01 AM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 53, Issue 42 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. Hindi and Thai text rendering (Ian Walberg) 2. Re: Hindi and Thai text rendering (Jeff McKenna) 3. Re: Hindi and Thai text rendering (Ian Walberg) 4. Re: Hindi and Thai text rendering (Stephen Woodbridge) 5. Re: Hindi and Thai text rendering (Ian Walberg) 6. Mapfile Variables (Matt McClelland) 7. Re: Hindi and Thai text rendering (Stephen Woodbridge) ---------------------------------------------------------------------- Message: 1 Date: Mon, 18 Jun 2012 17:45:39 -0400 From: "Ian Walberg" To: , Subject: [mapserver-users] Hindi and Thai text rendering Message-ID: Content-Type: text/plain; charset="us-ascii" Hello list, We are seeing some issues displaying Hindi and Thai text, from a quick search it looks like this may be related to there not being support for Indic scripts. Can anyone confirm if these are supported? And if they are not are there any workarounds? Many thanks Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 2 Date: Mon, 18 Jun 2012 19:06:09 -0300 From: Jeff McKenna To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Hindi and Thai text rendering Message-ID: <4FDFA651.80507 at gatewaygeomatics.com> Content-Type: text/plain; charset=ISO-8859-1 On 12-06-18 6:45 PM, Ian Walberg wrote: > Hello list, > > > > We are seeing some issues displaying Hindi and Thai text, from a quick > search it looks like this may be related to there not being support > for Indic scripts. > > > > Can anyone confirm if these are supported? And if they are not are > there any workarounds? > Hello Ian, I can for sure confirm that Thai text is supported, as it was one of the languages tested during the initial implementation of the source code (see the notes at the bottom of http://www.mapserver.org/mapfile/labelencoding.html). There's always a chance that things have changed with MapServer 6.0, but if you provide a small data sample, font, and simple one layer mapfile I am sure others on this email list can test and provide feedback for you. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ------------------------------ Message: 3 Date: Mon, 18 Jun 2012 18:46:11 -0400 From: "Ian Walberg" To: "Jeff McKenna" , Subject: Re: [mapserver-users] Hindi and Thai text rendering Message-ID: Content-Type: text/plain; charset="us-ascii" Jeff, That is encouraging, however our concern is that the character rendering is not supported. Regards Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Monday, June 18, 2012 3:06 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Hindi and Thai text rendering On 12-06-18 6:45 PM, Ian Walberg wrote: > Hello list, > > > > We are seeing some issues displaying Hindi and Thai text, from a quick > search it looks like this may be related to there not being support > for Indic scripts. > > > > Can anyone confirm if these are supported? And if they are not are > there any workarounds? > Hello Ian, I can for sure confirm that Thai text is supported, as it was one of the languages tested during the initial implementation of the source code (see the notes at the bottom of http://www.mapserver.org/mapfile/labelencoding.html). There's always a chance that things have changed with MapServer 6.0, but if you provide a small data sample, font, and simple one layer mapfile I am sure others on this email list can test and provide feedback for you. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------ Message: 4 Date: Mon, 18 Jun 2012 23:47:10 -0400 From: Stephen Woodbridge To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Hindi and Thai text rendering Message-ID: <4FDFF63E.9000407 at swoodbridge.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 6/18/2012 6:46 PM, Ian Walberg wrote: > Jeff, > > That is encouraging, however our concern is that the character rendering > is not supported. Ian, What do you mean by this statement? What have you tried? ie: what does you mapfile look like, what font are you using, etc? For this to work you need the following: 1. a mapserver build with fribidi-0.19.2 2. a truetype fone file that supports all the glyphs that you need 3. your mapfile and data configured correctly such that the text in the data is appropriately for the ENCODING and that that then matches the ttf. -Steve W > Regards > > Ian > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff > McKenna > Sent: Monday, June 18, 2012 3:06 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Hindi and Thai text rendering > > On 12-06-18 6:45 PM, Ian Walberg wrote: >> Hello list, >> >> >> >> We are seeing some issues displaying Hindi and Thai text, from a quick > >> search it looks like this may be related to there not being support >> for Indic scripts. >> >> >> >> Can anyone confirm if these are supported? And if they are not are >> there any workarounds? >> > > Hello Ian, > > I can for sure confirm that Thai text is supported, as it was one of the > languages tested during the initial implementation of the source code > (see the notes at the bottom of > http://www.mapserver.org/mapfile/labelencoding.html). > > There's always a chance that things have changed with MapServer 6.0, but > if you provide a small data sample, font, and simple one layer mapfile I > am sure others on this email list can test and provide feedback for you. > > -jeff > > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ------------------------------ Message: 5 Date: Mon, 18 Jun 2012 23:51:36 -0400 From: "Ian Walberg" To: "Stephen Woodbridge" , Subject: Re: [mapserver-users] Hindi and Thai text rendering Message-ID: Content-Type: text/plain; charset="us-ascii" Stephen, We can provide some examples tomorrow but we are seeing some characters not matching what is displayed in other applications. Overall the behaviour appears to match this description https://github.com/mapserver/mapserver/issues/2591 Regards Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Monday, June 18, 2012 8:47 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Hindi and Thai text rendering On 6/18/2012 6:46 PM, Ian Walberg wrote: > Jeff, > > That is encouraging, however our concern is that the character > rendering is not supported. Ian, What do you mean by this statement? What have you tried? ie: what does you mapfile look like, what font are you using, etc? For this to work you need the following: 1. a mapserver build with fribidi-0.19.2 2. a truetype fone file that supports all the glyphs that you need 3. your mapfile and data configured correctly such that the text in the data is appropriately for the ENCODING and that that then matches the ttf. -Steve W > Regards > > Ian > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff > McKenna > Sent: Monday, June 18, 2012 3:06 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Hindi and Thai text rendering > > On 12-06-18 6:45 PM, Ian Walberg wrote: >> Hello list, >> >> >> >> We are seeing some issues displaying Hindi and Thai text, from a >> quick > >> search it looks like this may be related to there not being support >> for Indic scripts. >> >> >> >> Can anyone confirm if these are supported? And if they are not are >> there any workarounds? >> > > Hello Ian, > > I can for sure confirm that Thai text is supported, as it was one of > the languages tested during the initial implementation of the source > code (see the notes at the bottom of > http://www.mapserver.org/mapfile/labelencoding.html). > > There's always a chance that things have changed with MapServer 6.0, > but if you provide a small data sample, font, and simple one layer > mapfile I am sure others on this email list can test and provide feedback for you. > > -jeff > > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > 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 ------------------------------ Message: 6 Date: Tue, 19 Jun 2012 16:15:12 +1000 From: Matt McClelland To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapfile Variables Message-ID: Content-Type: text/plain; charset="iso-8859-1" Hi All Is is possible create and use variables within a mapfile? IE I want to store the colour of a road in one place, then reference that colour in the several style tags EG $road_colour_inside = "255 0 0 " then later in the style tags be able to do color $road_colour_inside Or something similar. I am using v6.0 Thanks Matt :) -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 7 Date: Tue, 19 Jun 2012 08:59:41 -0400 From: Stephen Woodbridge To: Ian Walberg Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Hindi and Thai text rendering Message-ID: <4FE077BD.1020407 at swoodbridge.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi Ian, The symptoms you are describing are similar to what I have run into with rendering Arabic. What we found was that the TTF we were using was missing some glyphs related to connecting characters in the script. My client Identified these and we were able to locate a different font that had better glyph coverage for Arabic. I don't know anything about Hindi and Thai so looking at you results will not help, but it does sounds like the basic rendering is working. Assuming the above is true, then you would need to identify the characters that are wrong or missing by there character codes and then find a font that has support for those codes. If you think fribidi is not handling things correctly, I have found their mailing list to be very helpful and they suggested changes to how we used their code in mapserver in the past to filter out some zero width space utf8 codes that were causing problems for Arabic. -Steve W On 6/18/2012 11:51 PM, Ian Walberg wrote: > Stephen, > > We can provide some examples tomorrow but we are seeing some characters > not matching what is displayed in other applications. > > Overall the behaviour appears to match this description > https://github.com/mapserver/mapserver/issues/2591 > > Regards > > Ian > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge > Sent: Monday, June 18, 2012 8:47 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Hindi and Thai text rendering > > On 6/18/2012 6:46 PM, Ian Walberg wrote: >> Jeff, >> >> That is encouraging, however our concern is that the character >> rendering is not supported. > > Ian, > > What do you mean by this statement? > > What have you tried? ie: what does you mapfile look like, what font are > you using, etc? > > For this to work you need the following: > > 1. a mapserver build with fribidi-0.19.2 2. a truetype fone file that > supports all the glyphs that you need 3. your mapfile and data > configured correctly such that the text in the data is appropriately for > the ENCODING and that that then matches the ttf. > > -Steve W > >> Regards >> >> Ian >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff >> McKenna >> Sent: Monday, June 18, 2012 3:06 PM >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Hindi and Thai text rendering >> >> On 12-06-18 6:45 PM, Ian Walberg wrote: >>> Hello list, >>> >>> >>> >>> We are seeing some issues displaying Hindi and Thai text, from a >>> quick >> >>> search it looks like this may be related to there not being support >>> for Indic scripts. >>> >>> >>> >>> Can anyone confirm if these are supported? And if they are not are >>> there any workarounds? >>> >> >> Hello Ian, >> >> I can for sure confirm that Thai text is supported, as it was one of >> the languages tested during the initial implementation of the source >> code (see the notes at the bottom of >> http://www.mapserver.org/mapfile/labelencoding.html). >> >> There's always a chance that things have changed with MapServer 6.0, >> but if you provide a small data sample, font, and simple one layer >> mapfile I am sure others on this email list can test and provide > feedback for you. >> >> -jeff >> >> >> >> >> -- >> Jeff McKenna >> MapServer Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> 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 End of mapserver-users Digest, Vol 53, Issue 42 *********************************************** ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 59, Issue 24 *********************************************** From ivan.mincik at gmail.com Fri Dec 14 15:46:40 2012 From: ivan.mincik at gmail.com (=?UTF-8?B?SXZhbiBNaW7EjcOtaw==?=) Date: Sat, 15 Dec 2012 00:46:40 +0100 Subject: [mapserver-users] MapFile viewer In-Reply-To: <50CB2E72.1090008@gmail.com> References: <50CA42EA.40901@gmail.com> <50CB0A21.1020206@gmail.com> <50CB1694.1040209@gmail.com> <50CB2E72.1090008@gmail.com> Message-ID: <50CBBA60.6090406@gmail.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have made some improvements. Mostly visible adding legend to map. Now I can declare current features ready for initial version release. More testing is needed. - -- Ivan Mincik, ivan.mincik at gmail.com If replying in mailing-list please add me to Cc. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJQy7pfAAoJEPfdLsR5UpoeoykH/3sDNWqF9W0A42FNxrdPfrJU 6sxxupj4QjuiR2o08UH6aAWc4PORS06gPshaKEw77pVG1RW4vhe4m06QpAzRsIiR mpavkyUFdaLxbYG+zL8QPUAvsvRUnoaGikF/vGKbFUFiP3A77H+rN957hoEoznkh /5JJ6UjjC3vdDkoEB4PQTiwWgdjPZYzJ1x+Dq04++73UDg5OC99nXYHGd+vm/VOe bgfk/XMqY1mvddFjZXyWxDC+ZMf/sOplSbmaYQ5FexLhSkyNajBcYD/qv2WmGRy5 5Sn2luarkZp1uTgFWlFvN+XGT9y5YwGgM0r8CYZeiXBdqA2WQWx2a7xA1YxvuZY= =bxGp -----END PGP SIGNATURE----- From peter.mallen at airborne.aero Fri Dec 14 15:59:42 2012 From: peter.mallen at airborne.aero (Peter Mallen) Date: Fri, 14 Dec 2012 18:59:42 -0500 Subject: [mapserver-users] Hindi and Thai text rendering Message-ID: <0342A56AD728D64185DB36D9514E2E7E0128CBB3@BE64.exg3.exghost.com> Hello Everyone, I apologize for my previous posts as my url appears to have been too long, I have converted the link to a tiny url: http://tinyurl.com/cqlymgy As a reminder, this is a link showing how the Hindi characters should display. Thank You Again, Peter Mallen -----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, December 14, 2012 3:45 PM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 59, Issue 25 Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. Re: Hindi and Thai text rendering (Peter Mallen) 2. Re: MapFile viewer (Ivan Min??k) ---------------------------------------------------------------------- Message: 1 Date: Fri, 14 Dec 2012 18:20:19 -0500 From: "Peter Mallen" To: Subject: Re: [mapserver-users] Hindi and Thai text rendering Message-ID: <0342A56AD728D64185DB36D9514E2E7E0128CB96 at BE64.exg3.exghost.com> Content-Type: text/plain; charset="us-ascii" Hello Everyone, I am re-posting this with a corrected link provided below. We are having issues displaying Hindi in Map Server. The characters display correctly in text editors we use, as well as excel, open office documents and in our sqlite database. Certain characters appear to flip around when displaying in Map Sever. We have tried various different fonts including: arialuni, devangari, gargi, etc. We have also tried using several data types: shapefiles, sqlite databases. The following is a link showing how the Hindi characters should display: http://translate.google.com/#hi/en/%E0%A4%AE%E0%A5%87%E0%A4%95%E0%A5%8D% E0%A4%B8%E0%A4%BF%E0%A4%95%E0%A5%8B%20%E0%A4%B8%E0%A4%BF%E0%A4%9F%E0%A5% 80 I have included a basic Map File where I am using the TEXT tag to display the Hindi translation using an HTML string of entities. MAP NAME 'Simple' STATUS ON SIZE 1280 768 EXTENT -180 -90 180 90 UNITS MILES IMAGECOLOR 0 0 70 IMAGETYPE PNG #CONFIG "MS_ERRORFILE" "/data2/Hindi_Testing/mapserver.log" #change this to match your configuration DEBUG 5 FONTSET fontset.txt #This will need to be updated to the location of the users fontset.txt. We are using arialuni. LAYER DEBUG 5 NAME cities1 TYPE annotation STATUS DEFAULT FEATURE POINTS -99.169998 19.42 END END CLASS #This HTML string is for 'Mexico City' translated into Hindi. Mapserver does not display this correctly. TEXT 'मेक्सिको ;सिटी' LABEL FONT "arialuni" TYPE truetype ENCODING 'UTF-8' SIZE 30 COLOR 200 200 0 POSITION CC PARTIALS FALSE ALIGN center END END END END # Map File Thank You, Peter Mallen -----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, December 14, 2012 3:05 PM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 59, Issue 24 Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. Re: Reclassify raster cell values (ALT SHN) 2. Raster color table (ALT SHN) 3. Re: Hindi and Thai text rendering (Peter Mallen) ---------------------------------------------------------------------- Message: 1 Date: Fri, 14 Dec 2012 22:48:13 +0000 From: ALT SHN To: Rahkonen Jukka Cc: "mapserver-users at lists.osgeo.org" Subject: Re: [mapserver-users] Reclassify raster cell values Message-ID: Content-Type: text/plain; charset="iso-8859-1" Thank you Rahknonen, However this is not quite what I expected. If I reclassify a particular value, all other cells disapear. This leads me to another question (I'll open another topic too). the PROCESSING LUT command can be used as a way to build a indexed color table for 8bit rasters. Is there a way to import a color table ? Thank you Andr? 2012/12/10 Rahkonen Jukka > Hi, > > It should be possible to do what you want by using the PROCESSING LUT > option. > http://www.mapserver.org/input/raster.html > > -Jukka Rahkonen- > > ________________________________ > > ALT SHN wrote: > > > Hello Everyone, > > > First time Mapserver user here, and I would appreciate some advice > regarding this problem: > > > I have a Tile Index of single band TIFF rasters (0-255). The rasters > > are > displayer fast, and accuratly. However these rasters cover a sea shore > area, this means that half the rasters are sea territory, wich is > represented in black (0 cell values) > > > Is there way, in the Mapfile to reclassify the 0 cells to 255 in > > order > to turn them white? I know I can always pre process the rasters, but > I'm talking about forty + files... > > > Thanks in advance, > > Cheers, > > Andr? Mano > > -- > --------------------------------------------------------------- > Associa??o Leonel Trindade > SOCIEDADE DE HIST?RIA NATURAL > > Apartado 25 2564-909 Torres Vedras Portugal Sede e Biblioteca: rua > Cavaleiros da Espora Dourada, 27A 2560 Torres Vedras > > Laborat?rio de Paleontologia e Paleoecologia: Pol?gono Industrial do > Alto do Ameal 2565-641 Ramalhal http://alt-shn.blogspot.com > www.alt-shn.org > -- --------------------------------------------------------------- Associa??o Leonel Trindade SOCIEDADE DE HIST?RIA NATURAL Apartado 25 2564-909 Torres Vedras Portugal Sede e Biblioteca: rua Cavaleiros da Espora Dourada, 27A 2560 Torres Vedras Laborat?rio de Paleontologia e Paleoecologia: Pol?gono Industrial do Alto do Ameal 2565-641 Ramalhal http://alt-shn.blogspot.com www.alt-shn.org -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 2 Date: Fri, 14 Dec 2012 22:52:09 +0000 From: ALT SHN To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Raster color table Message-ID: Content-Type: text/plain; charset="iso-8859-1" Hi, Is there a way to associate a color table to a 8bit raster so Mapserver doesn't render it in grayscale? In the Mapserver documentation, a pallete is refered, but for what I understood, this applies to the output format, not to a particular raster. Is there a workarround for this situation? (other than converting the raster to RGB) Thank you, Andr? Mano -- --------------------------------------------------------------- Associa??o Leonel Trindade SOCIEDADE DE HIST?RIA NATURAL Apartado 25 2564-909 Torres Vedras Portugal Sede e Biblioteca: rua Cavaleiros da Espora Dourada, 27A 2560 Torres Vedras Laborat?rio de Paleontologia e Paleoecologia: Pol?gono Industrial do Alto do Ameal 2565-641 Ramalhal http://alt-shn.blogspot.com www.alt-shn.org -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 3 Date: Fri, 14 Dec 2012 17:54:41 -0500 From: "Peter Mallen" To: Subject: Re: [mapserver-users] Hindi and Thai text rendering Message-ID: <0342A56AD728D64185DB36D9514E2E7E0128CB7B at BE64.exg3.exghost.com> Content-Type: text/plain; charset="us-ascii" Hello Everyone, We are having issues displaying Hindi in Map Server. The characters display correctly in text editors we use, as well as excel, open office documents and in our sqlite database. Certain characters appear to flip around when displaying in Map Sever. We have tried various different fonts including: arialuni, devangari, gargi, etc. We have also tried using several data types: shapefiles, sqlite databases. The following is a link showing how the Hindi characters should display: http://translate.google.com/#hi/en/%E0%A4%AE%E0%A5%87%E0%A4%95%E0%A5%8D% E0%A4%B8%E0%A4%BF%E0%A4%95%E0%A5%8B%20%E0%A4%B8%E0%A4%BF%E0%A4%9F%E0%A5% 80 I have included a basic Map File where I am using the TEXT tag to display the Hindi translation using an HTML string of entities. MAP NAME 'Simple' STATUS ON SIZE 1280 768 EXTENT -180 -90 180 90 UNITS MILES IMAGECOLOR 0 0 70 IMAGETYPE PNG #CONFIG "MS_ERRORFILE" "/data2/Hindi_Testing/mapserver.log" #change this to match your configuration DEBUG 5 FONTSET fontset.txt #This will need to be updated to the location of the users fontset.txt. We are using arialuni. LAYER DEBUG 5 NAME cities1 TYPE annotation STATUS DEFAULT FEATURE POINTS -99.169998 19.42 END END CLASS #This HTML string is for 'Mexico City' translated into Hindi. Mapserver does not display this correctly. TEXT 'मेक्सिको ;सिटी' LABEL FONT "arialuni" TYPE truetype ENCODING 'UTF-8' SIZE 30 COLOR 200 200 0 POSITION CC PARTIALS FALSE ALIGN center END END END END # Map File Thank You, Peter Mallen -----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: Tuesday, June 19, 2012 6:01 AM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 53, Issue 42 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. Hindi and Thai text rendering (Ian Walberg) 2. Re: Hindi and Thai text rendering (Jeff McKenna) 3. Re: Hindi and Thai text rendering (Ian Walberg) 4. Re: Hindi and Thai text rendering (Stephen Woodbridge) 5. Re: Hindi and Thai text rendering (Ian Walberg) 6. Mapfile Variables (Matt McClelland) 7. Re: Hindi and Thai text rendering (Stephen Woodbridge) ---------------------------------------------------------------------- Message: 1 Date: Mon, 18 Jun 2012 17:45:39 -0400 From: "Ian Walberg" To: , Subject: [mapserver-users] Hindi and Thai text rendering Message-ID: Content-Type: text/plain; charset="us-ascii" Hello list, We are seeing some issues displaying Hindi and Thai text, from a quick search it looks like this may be related to there not being support for Indic scripts. Can anyone confirm if these are supported? And if they are not are there any workarounds? Many thanks Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 2 Date: Mon, 18 Jun 2012 19:06:09 -0300 From: Jeff McKenna To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Hindi and Thai text rendering Message-ID: <4FDFA651.80507 at gatewaygeomatics.com> Content-Type: text/plain; charset=ISO-8859-1 On 12-06-18 6:45 PM, Ian Walberg wrote: > Hello list, > > > > We are seeing some issues displaying Hindi and Thai text, from a quick > search it looks like this may be related to there not being support > for Indic scripts. > > > > Can anyone confirm if these are supported? And if they are not are > there any workarounds? > Hello Ian, I can for sure confirm that Thai text is supported, as it was one of the languages tested during the initial implementation of the source code (see the notes at the bottom of http://www.mapserver.org/mapfile/labelencoding.html). There's always a chance that things have changed with MapServer 6.0, but if you provide a small data sample, font, and simple one layer mapfile I am sure others on this email list can test and provide feedback for you. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ------------------------------ Message: 3 Date: Mon, 18 Jun 2012 18:46:11 -0400 From: "Ian Walberg" To: "Jeff McKenna" , Subject: Re: [mapserver-users] Hindi and Thai text rendering Message-ID: Content-Type: text/plain; charset="us-ascii" Jeff, That is encouraging, however our concern is that the character rendering is not supported. Regards Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Monday, June 18, 2012 3:06 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Hindi and Thai text rendering On 12-06-18 6:45 PM, Ian Walberg wrote: > Hello list, > > > > We are seeing some issues displaying Hindi and Thai text, from a quick > search it looks like this may be related to there not being support > for Indic scripts. > > > > Can anyone confirm if these are supported? And if they are not are > there any workarounds? > Hello Ian, I can for sure confirm that Thai text is supported, as it was one of the languages tested during the initial implementation of the source code (see the notes at the bottom of http://www.mapserver.org/mapfile/labelencoding.html). There's always a chance that things have changed with MapServer 6.0, but if you provide a small data sample, font, and simple one layer mapfile I am sure others on this email list can test and provide feedback for you. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------ Message: 4 Date: Mon, 18 Jun 2012 23:47:10 -0400 From: Stephen Woodbridge To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Hindi and Thai text rendering Message-ID: <4FDFF63E.9000407 at swoodbridge.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 6/18/2012 6:46 PM, Ian Walberg wrote: > Jeff, > > That is encouraging, however our concern is that the character rendering > is not supported. Ian, What do you mean by this statement? What have you tried? ie: what does you mapfile look like, what font are you using, etc? For this to work you need the following: 1. a mapserver build with fribidi-0.19.2 2. a truetype fone file that supports all the glyphs that you need 3. your mapfile and data configured correctly such that the text in the data is appropriately for the ENCODING and that that then matches the ttf. -Steve W > Regards > > Ian > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff > McKenna > Sent: Monday, June 18, 2012 3:06 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Hindi and Thai text rendering > > On 12-06-18 6:45 PM, Ian Walberg wrote: >> Hello list, >> >> >> >> We are seeing some issues displaying Hindi and Thai text, from a quick > >> search it looks like this may be related to there not being support >> for Indic scripts. >> >> >> >> Can anyone confirm if these are supported? And if they are not are >> there any workarounds? >> > > Hello Ian, > > I can for sure confirm that Thai text is supported, as it was one of the > languages tested during the initial implementation of the source code > (see the notes at the bottom of > http://www.mapserver.org/mapfile/labelencoding.html). > > There's always a chance that things have changed with MapServer 6.0, but > if you provide a small data sample, font, and simple one layer mapfile I > am sure others on this email list can test and provide feedback for you. > > -jeff > > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ------------------------------ Message: 5 Date: Mon, 18 Jun 2012 23:51:36 -0400 From: "Ian Walberg" To: "Stephen Woodbridge" , Subject: Re: [mapserver-users] Hindi and Thai text rendering Message-ID: Content-Type: text/plain; charset="us-ascii" Stephen, We can provide some examples tomorrow but we are seeing some characters not matching what is displayed in other applications. Overall the behaviour appears to match this description https://github.com/mapserver/mapserver/issues/2591 Regards Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Monday, June 18, 2012 8:47 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Hindi and Thai text rendering On 6/18/2012 6:46 PM, Ian Walberg wrote: > Jeff, > > That is encouraging, however our concern is that the character > rendering is not supported. Ian, What do you mean by this statement? What have you tried? ie: what does you mapfile look like, what font are you using, etc? For this to work you need the following: 1. a mapserver build with fribidi-0.19.2 2. a truetype fone file that supports all the glyphs that you need 3. your mapfile and data configured correctly such that the text in the data is appropriately for the ENCODING and that that then matches the ttf. -Steve W > Regards > > Ian > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff > McKenna > Sent: Monday, June 18, 2012 3:06 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Hindi and Thai text rendering > > On 12-06-18 6:45 PM, Ian Walberg wrote: >> Hello list, >> >> >> >> We are seeing some issues displaying Hindi and Thai text, from a >> quick > >> search it looks like this may be related to there not being support >> for Indic scripts. >> >> >> >> Can anyone confirm if these are supported? And if they are not are >> there any workarounds? >> > > Hello Ian, > > I can for sure confirm that Thai text is supported, as it was one of > the languages tested during the initial implementation of the source > code (see the notes at the bottom of > http://www.mapserver.org/mapfile/labelencoding.html). > > There's always a chance that things have changed with MapServer 6.0, > but if you provide a small data sample, font, and simple one layer > mapfile I am sure others on this email list can test and provide feedback for you. > > -jeff > > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > 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 ------------------------------ Message: 6 Date: Tue, 19 Jun 2012 16:15:12 +1000 From: Matt McClelland To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapfile Variables Message-ID: Content-Type: text/plain; charset="iso-8859-1" Hi All Is is possible create and use variables within a mapfile? IE I want to store the colour of a road in one place, then reference that colour in the several style tags EG $road_colour_inside = "255 0 0 " then later in the style tags be able to do color $road_colour_inside Or something similar. I am using v6.0 Thanks Matt :) -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 7 Date: Tue, 19 Jun 2012 08:59:41 -0400 From: Stephen Woodbridge To: Ian Walberg Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Hindi and Thai text rendering Message-ID: <4FE077BD.1020407 at swoodbridge.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi Ian, The symptoms you are describing are similar to what I have run into with rendering Arabic. What we found was that the TTF we were using was missing some glyphs related to connecting characters in the script. My client Identified these and we were able to locate a different font that had better glyph coverage for Arabic. I don't know anything about Hindi and Thai so looking at you results will not help, but it does sounds like the basic rendering is working. Assuming the above is true, then you would need to identify the characters that are wrong or missing by there character codes and then find a font that has support for those codes. If you think fribidi is not handling things correctly, I have found their mailing list to be very helpful and they suggested changes to how we used their code in mapserver in the past to filter out some zero width space utf8 codes that were causing problems for Arabic. -Steve W On 6/18/2012 11:51 PM, Ian Walberg wrote: > Stephen, > > We can provide some examples tomorrow but we are seeing some characters > not matching what is displayed in other applications. > > Overall the behaviour appears to match this description > https://github.com/mapserver/mapserver/issues/2591 > > Regards > > Ian > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge > Sent: Monday, June 18, 2012 8:47 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Hindi and Thai text rendering > > On 6/18/2012 6:46 PM, Ian Walberg wrote: >> Jeff, >> >> That is encouraging, however our concern is that the character >> rendering is not supported. > > Ian, > > What do you mean by this statement? > > What have you tried? ie: what does you mapfile look like, what font are > you using, etc? > > For this to work you need the following: > > 1. a mapserver build with fribidi-0.19.2 2. a truetype fone file that > supports all the glyphs that you need 3. your mapfile and data > configured correctly such that the text in the data is appropriately for > the ENCODING and that that then matches the ttf. > > -Steve W > >> Regards >> >> Ian >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff >> McKenna >> Sent: Monday, June 18, 2012 3:06 PM >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Hindi and Thai text rendering >> >> On 12-06-18 6:45 PM, Ian Walberg wrote: >>> Hello list, >>> >>> >>> >>> We are seeing some issues displaying Hindi and Thai text, from a >>> quick >> >>> search it looks like this may be related to there not being support >>> for Indic scripts. >>> >>> >>> >>> Can anyone confirm if these are supported? And if they are not are >>> there any workarounds? >>> >> >> Hello Ian, >> >> I can for sure confirm that Thai text is supported, as it was one of >> the languages tested during the initial implementation of the source >> code (see the notes at the bottom of >> http://www.mapserver.org/mapfile/labelencoding.html). >> >> There's always a chance that things have changed with MapServer 6.0, >> but if you provide a small data sample, font, and simple one layer >> mapfile I am sure others on this email list can test and provide > feedback for you. >> >> -jeff >> >> >> >> >> -- >> Jeff McKenna >> MapServer Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> 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 End of mapserver-users Digest, Vol 53, Issue 42 *********************************************** ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 59, Issue 24 *********************************************** ------------------------------ Message: 2 Date: Sat, 15 Dec 2012 00:46:40 +0100 From: Ivan Min??k To: mapserver-users Subject: Re: [mapserver-users] MapFile viewer Message-ID: <50CBBA60.6090406 at gmail.com> Content-Type: text/plain; charset=UTF-8 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have made some improvements. Mostly visible adding legend to map. Now I can declare current features ready for initial version release. More testing is needed. - -- Ivan Mincik, ivan.mincik at gmail.com If replying in mailing-list please add me to Cc. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJQy7pfAAoJEPfdLsR5UpoeoykH/3sDNWqF9W0A42FNxrdPfrJU 6sxxupj4QjuiR2o08UH6aAWc4PORS06gPshaKEw77pVG1RW4vhe4m06QpAzRsIiR mpavkyUFdaLxbYG+zL8QPUAvsvRUnoaGikF/vGKbFUFiP3A77H+rN957hoEoznkh /5JJ6UjjC3vdDkoEB4PQTiwWgdjPZYzJ1x+Dq04++73UDg5OC99nXYHGd+vm/VOe bgfk/XMqY1mvddFjZXyWxDC+ZMf/sOplSbmaYQ5FexLhSkyNajBcYD/qv2WmGRy5 5Sn2luarkZp1uTgFWlFvN+XGT9y5YwGgM0r8CYZeiXBdqA2WQWx2a7xA1YxvuZY= =bxGp -----END PGP SIGNATURE----- ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 59, Issue 25 *********************************************** From Jukka.Rahkonen at mmmtike.fi Sat Dec 15 01:12:23 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 15 Dec 2012 09:12:23 +0000 Subject: [mapserver-users] Reclassify raster cell values In-Reply-To: References: <84446DEF76453C439E9E97E438E13A637C01C6@suutari.haapa.mmm.fi>, Message-ID: <84446DEF76453C439E9E97E438E13A637C1453@suutari.haapa.mmm.fi> Hi, Perhaps you just do it somehow wrong. Show your PROCESSING line and try meanwhile something like PROCESSING "LUT=0:255,1:1,255:255" I haven't tried it myself, this is mostly a guess. -Jukka Rahkonen- ________________________________ L?hett?j?: ALT SHN [i.geografica at alt-shn.org] L?hetetty: 15. joulukuuta 2012 0:48 Vastaanottaja: Rahkonen Jukka Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Reclassify raster cell values Thank you Rahknonen, However this is not quite what I expected. If I reclassify a particular value, all other cells disapear. This leads me to another question (I'll open another topic too). the PROCESSING LUT command can be used as a way to build a indexed color table for 8bit rasters. Is there a way to import a color table ? Thank you Andr? 2012/12/10 Rahkonen Jukka > Hi, It should be possible to do what you want by using the PROCESSING LUT option. http://www.mapserver.org/input/raster.html -Jukka Rahkonen- ________________________________ > ALT SHN wrote: > Hello Everyone, > First time Mapserver user here, and I would appreciate some advice regarding this problem: > I have a Tile Index of single band TIFF rasters (0-255). The rasters are displayer fast, and accuratly. However these rasters cover a sea shore area, this means that half the rasters are sea territory, wich is represented in black (0 cell values) > Is there way, in the Mapfile to reclassify the 0 cells to 255 in order to turn them white? I know I can always pre process the rasters, but I'm talking about forty + files... > Thanks in advance, Cheers, Andr? Mano -- --------------------------------------------------------------- Associa??o Leonel Trindade SOCIEDADE DE HIST?RIA NATURAL Apartado 25 2564-909 Torres Vedras Portugal Sede e Biblioteca: rua Cavaleiros da Espora Dourada, 27A 2560 Torres Vedras Laborat?rio de Paleontologia e Paleoecologia: Pol?gono Industrial do Alto do Ameal 2565-641 Ramalhal http://alt-shn.blogspot.com www.alt-shn.org -- --------------------------------------------------------------- Associa??o Leonel Trindade SOCIEDADE DE HIST?RIA NATURAL Apartado 25 2564-909 Torres Vedras Portugal Sede e Biblioteca: rua Cavaleiros da Espora Dourada, 27A 2560 Torres Vedras Laborat?rio de Paleontologia e Paleoecologia: Pol?gono Industrial do Alto do Ameal 2565-641 Ramalhal http://alt-shn.blogspot.com www.alt-shn.org From aperi2007 at gmail.com Sat Dec 15 04:04:09 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Sat, 15 Dec 2012 13:04:09 +0100 Subject: [mapserver-users] MapServer WMS don't work pretty well with arcgis desktop Message-ID: Hi, I'm having more user to report that the WMS MapServer is not shpwed on arcgis desktop. After a check I see that the issue i due to the fact that arcgis desktop when see a sublayer of a layer think that the layer is a folder (not a layer) and so it refuse to call it. Is this a knowed incompatibility between mapserver wms and arcgis ? Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From andrea.aime at geo-solutions.it Sat Dec 15 05:05:52 2012 From: andrea.aime at geo-solutions.it (Andrea Aime) Date: Sat, 15 Dec 2012 14:05:52 +0100 Subject: [mapserver-users] MapServer WMS don't work pretty well with arcgis desktop In-Reply-To: References: Message-ID: On Sat, Dec 15, 2012 at 1:04 PM, Andrea Peri wrote: > Hi, > > I'm having more user to report that the WMS MapServer is not shpwed on > arcgis desktop. > > After a check I see that the issue i due to the fact that arcgis > desktop when see a sublayer of a layer think that the layer is a > folder (not a layer) and so > it refuse to call it. > > Is this a knowed incompatibility between mapserver wms and arcgis ? > Don't know if it's relevant, but I've been reading the portion of the WMS spec concerning nested layers just a few days ago. When nesting layers there are two cases: - the parent layer has a Title, but not a Name. This is known as "containing category", it helps categorizing the layers but cannot be called directly - the parent layer has a Name, in such case it is callable and when requested it should build a map with all the children So, by my understanding of the spec, if your parent Layer does not have a Name ArcGis is right in not calling it, but if it has a Name, then it's a bug in ArcGis. Hope this helps Cheers Andrea -- == Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan.mincik at gmail.com Sat Dec 15 05:58:25 2012 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Sat, 15 Dec 2012 14:58:25 +0100 Subject: [mapserver-users] MapFile viewer In-Reply-To: <50CB2A54.6030508@gatewaygeomatics.com> References: <50CA42EA.40901@gmail.com> <50CB0A21.1020206@gmail.com> <50CB1694.1040209@gmail.com> <50CB2A54.6030508@gatewaygeomatics.com> Message-ID: <50CC8201.7090600@gmail.com> On 12/14/2012 02:32 PM, Jeff McKenna wrote: > Ivan, I want to make sure users can find this viewer; would you be > willing to edit the MapServer Wiki > (https://github.com/mapserver/mapserver/wiki) and add a "Mapfile > Viewers" page there, with your project as a first example? (note that > you could include screengrabs or anything you want on that new page) Done. https://github.com/mapserver/mapserver/wiki/MapFile-viewers I will call it as 'Mapfile developer script' to not get confused with built-in MapServer viewer. More testing is welcomed. -- Ivan Mincik From bfraser at geoanalytic.com Sat Dec 15 06:49:29 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Sat, 15 Dec 2012 07:49:29 -0700 Subject: [mapserver-users] Reclassify raster cell values In-Reply-To: References: Message-ID: <50CC8DF9.3020200@geoanalytic.com> If you just want to make the black disappear you could use MAP IMAGECOLOR 255 255 255 # set map's background color to white LAYER TYPE RASTER OFFSITE 0 0 0 # make this color (black) of the input raster file transparent Best Regards, Brent Fraser On 12/10/2012 9:51 AM, ALT SHN wrote: > Hello Everyone, > > First time Mapserver user here, and I would appreciate some advice > regarding this problem: > > I have a Tile Index of single band TIFF rasters (0-255). The rasters > are displayer fast, and accuratly. However these rasters cover a sea > shore area, this means that half the rasters are sea territory, wich > is represented in black (0 cell values) > > Is there way, in the Mapfile to reclassify the 0 cells to 255 in order > to turn them white? I know I can always pre process the rasters, but > I'm talking about forty + files... > > Thanks in advance, > > Cheers, > > Andr? Mano > > -- > --------------------------------------------------------------- > Associa??o Leonel Trindade > SOCIEDADE DE HIST?RIA NATURAL > > Apartado 25 2564-909 Torres Vedras Portugal > Sede e Biblioteca: rua Cavaleiros da Espora Dourada, 27A 2560 Torres > Vedras > > Laborat?rio de Paleontologia e Paleoecologia: Pol?gono Industrial do > Alto do Ameal 2565-641 Ramalhal > http://alt-shn.blogspot.com > www.alt-shn.org > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Sat Dec 15 07:06:24 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 15 Dec 2012 11:06:24 -0400 Subject: [mapserver-users] MapFile viewer In-Reply-To: <50CC8201.7090600@gmail.com> References: <50CA42EA.40901@gmail.com> <50CB0A21.1020206@gmail.com> <50CB1694.1040209@gmail.com> <50CB2A54.6030508@gatewaygeomatics.com> <50CC8201.7090600@gmail.com> Message-ID: <50CC91F0.2060809@gatewaygeomatics.com> On 12-12-15 9:58 AM, Ivan Mincik wrote: > On 12/14/2012 02:32 PM, Jeff McKenna wrote: >> Ivan, I want to make sure users can find this viewer; would you be >> willing to edit the MapServer Wiki >> (https://github.com/mapserver/mapserver/wiki) and add a "Mapfile >> Viewers" page there, with your project as a first example? (note that >> you could include screengrabs or anything you want on that new page) > > > Done. https://github.com/mapserver/mapserver/wiki/MapFile-viewers > > I will call it as 'Mapfile developer script' to not get confused with > built-in MapServer viewer. > > More testing is welcomed. > Thanks! Merry Christmas to all. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From aperi2007 at gmail.com Sat Dec 15 08:03:58 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Sat, 15 Dec 2012 17:03:58 +0100 Subject: [mapserver-users] MapServer WMS don't work pretty well with arcgis desktop In-Reply-To: References: Message-ID: Hi Andrea. Is exactly as you say. Arcgis refuse to call The fact is exactly this. Wrong to understand a Layer with Name. If a layer has some sublayer , arcgis call the sublayers but skip the layer himself This happened both case with name and without name. So arcgis think that a layer is always a "containing category" always if it has some sublayers. > So, by my understanding of the spec, if your parent Layer does not have a > Name > ArcGis is right in not calling it, but if it has a Name, then it's a bug in > ArcGis. Ok, so this is an arcgis bug. But I'm not sure that the esri think this is a bug . :) Because arcgis 9.3 is a old release and their service pack never resolve this. Instead esri release a specific version of arcgis named "arcgis for inspire" Now I try to find a work-around for this bug. In the MapServer configuration, i don't like to lost all the arcgis 9.3 users. Andrea. 2012/12/15 Andrea Aime : > On Sat, Dec 15, 2012 at 1:04 PM, Andrea Peri wrote: >> >> Hi, >> >> I'm having more user to report that the WMS MapServer is not shpwed on >> arcgis desktop. >> >> After a check I see that the issue i due to the fact that arcgis >> desktop when see a sublayer of a layer think that the layer is a >> folder (not a layer) and so >> it refuse to call it. >> >> Is this a knowed incompatibility between mapserver wms and arcgis ? > > > Don't know if it's relevant, but I've been reading the portion of the WMS > spec concerning > nested layers just a few days ago. > When nesting layers there are two cases: > - the parent layer has a Title, but not a Name. This is known as "containing > category", > it helps categorizing the layers but cannot be called directly > - the parent layer has a Name, in such case it is callable and when > requested > it should build a map with all the children > > So, by my understanding of the spec, if your parent Layer does not have a > Name > ArcGis is right in not calling it, but if it has a Name, then it's a bug in > ArcGis. > > Hope this helps > > Cheers > Andrea > > > -- > == > Our support, Your Success! Visit http://opensdi.geo-solutions.it for more > information. > == > > Ing. Andrea Aime > @geowolf > Technical Lead > > GeoSolutions S.A.S. > Via Poggio alle Viti 1187 > 55054 Massarosa (LU) > Italy > phone: +39 0584 962313 > fax: +39 0584 1660272 > mob: +39 339 8844549 > > http://www.geo-solutions.it > http://twitter.com/geosolutions_it > > ------------------------------------------------------- > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From thomas.bonfort at gmail.com Mon Dec 17 00:47:46 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 17 Dec 2012 09:47:46 +0100 Subject: [mapserver-users] Hindi and Thai text rendering In-Reply-To: References: <0342A56AD728D64185DB36D9514E2E7E0128CBB3@BE64.exg3.exghost.com> <0342A56AD728D64185DB36D9514E2E7E33AECE@BE64.exg3.exghost.com> Message-ID: On Mon, Dec 17, 2012 at 9:45 AM, thomas bonfort wrote: > Peter, > We don't do any shaping directly inside mapserver, but rely on the fribidi > library to do that for us. Your mapfile definitions are correct to activate > this (i.e. it includes an LABEL.ENCODING parameter). > I'll leave it up to you to confirm that the image sample I sent you is > correct or not. If so, check that you have configured your mapserver with > fribidi enabled and uptodate (the supplied image was rendered with 0.19.2 . > some stable distros use a very outdated fribidi version, so you might need > to upgrade manually) . If not, you can try with a bleeding edge fribidi > (0.19.5 was released a few days ago), and/or report the issue or find help > from the fribidi project directly. > > please report back with your findings. > > regards, > thomas > > > On Sun, Dec 16, 2012 at 2:31 AM, Peter Mallen wrote: > >> ** >> >> Hi Thomas, >> >> Here is a link to a png Image I have created of using the simple Map File >> I provided in the previous postings, this is exactly how the Hindi text is >> rendering in Map Server: >> http://www.maplusplus.com/images/Hindi_Incorrect.png >> >> It is appearing incorrectly and should appear as shown in this link to >> Google Translate: >> http://tinyurl.com/cqlymgy >> >> I am not sure if the Hindi you have provided is displaying correctly, >> although it appears to be similar to what I looked up in Google Translate. >> >> >> Thank You for your help, >> >> Peter Mallen >> >> >> >> -----Original Message----- >> From: thomas bonfort [mailto:thomas.bonfort at gmail.com >> ] >> Sent: Sat 12/15/2012 10:36 AM >> To: Peter Mallen >> Cc: MapserverList OSGEO >> Subject: Re: [mapserver-users] Hindi and Thai text rendering >> >> Peter, >> You don't provide the rendering that mapserver is producing, so it's >> difficult to compare. Is this rendering correct: >> http://osm.terriscope.fr/mapcache/tms/1.0.0/mapserver at g/15/23400/19085.png? >> >> -- >> thomas >> >> >> On Sat, Dec 15, 2012 at 12:59 AM, Peter Mallen >> wrote: >> >> > Hello Everyone, >> > >> > I apologize for my previous posts as my url appears to have been too >> > long, I have converted the link to a tiny url: >> > http://tinyurl.com/cqlymgy >> > >> > As a reminder, this is a link showing how the Hindi characters should >> > display. >> > >> > Thank You Again, >> > >> > Peter Mallen >> > >> > >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Mon Dec 17 02:16:06 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 17 Dec 2012 10:16:06 +0000 Subject: [mapserver-users] [TinyOWS] TinyOWS 1.1.0 and the old good axis order trouble Message-ID: <84446DEF76453C439E9E97E438E13A637C184B@suutari.haapa.mmm.fi> Hi, I have been running TinyOWS r558 for quite a long time because it is dealing almost right with the axis order of the projections I am commonly using. Now I had a fast try with the current TinyOWS 1.1.0 version but unfortunately I realized that it is doing wrong thing by flipping the axis with urn:ogc:def:crs:EPSG::3067. That system is officially an Easting-Northing system and axis should not be flipped ever. Also, TinyOWS does not flip the axes with urn:ogc:def:crs:EPSG::2393 which is officially a Northing-Easting system and axis should be flipped with WFS 1.1.0 I can see that TinyOWS is flipping the axis with WFS 1.1.0 if I I give srsName=urn:ogc:def:crs:EPSG::3067 or if I do not give it at all, which means the same because the uri-format is the default srsName. Axis order is correct if I give it as srsName=EPSG:3067. With EPSG:2393 axis are not flipped with either srsName format. What should be done next is to flip the behaviours of 2393 and 3067. What is the logic that TinyOWS is using when it decides whether the axis should be flipped or not for WFS 1.1.0? Can I manipulate TinyOWS somehow myself to behave in a correct way with EPSG:2393 and EPSG:3067 by editing something in the PostGIS or in TinyOWS sources? Another question is that is it guaranteed that axis order is handled similarly everywhere, also in filters? I mean that can I trust that once TinyOWS someday will again send urn:ogc:def:crs:EPSG::2393 data as Northing-Easting with WFS 1.1.0 it will then also treat the GML3 filters so that is knows that first comes Northing and then Easting? Does the srsName format have the same meaning if filters, so that if short srsName is used then axis order is always Easting-Northing or lon-lat, but when the uri format is used then TinyOWS is trying to check the official axis with WFS 1.1.0? -Jukka Rahkonen- From dmorissette at mapgears.com Mon Dec 17 05:03:04 2012 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 17 Dec 2012 08:03:04 -0500 Subject: [mapserver-users] Raster color table In-Reply-To: References: Message-ID: <50CF1808.2090301@mapgears.com> On 12-12-14 5:52 PM, ALT SHN wrote: > Hi, > > Is there a way to associate a color table to a 8bit raster so Mapserver > doesn't render it in grayscale? > In the Mapserver documentation, a pallete is refered, but for what I > understood, this applies to the output format, not to a particular raster. > > Is there a workarround for this situation? (other than converting the > raster to RGB) > You could create a GDAL VRT file for your image in which you associate a color table to the raster band, and then point your MapServer layer definition to the VRT. See: http://trac.osgeo.org/gdal/wiki/FAQRaster#Howtocreateormodifyanimagecolortable and http://www.gdal.org/gdal_vrttut.html -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From weskamm at terrestris.de Mon Dec 17 05:15:50 2012 From: weskamm at terrestris.de (Johannes Weskamm) Date: Mon, 17 Dec 2012 14:15:50 +0100 Subject: [mapserver-users] Problem with Transparency and IMAGECOLOR Message-ID: <50CF1B06.2060902@terrestris.de> Hi, I have a question regarding the transparency of my mapfile together with mapserver 6.2. The documentation tells me, that using the Parameter IMAGECOLOR together with TRANSPARENT ON in OUTPUTFORMAT, the resulting image of a wms request should have the defined color transparent. I tried different approaches but none of them work. So here is an example of my layer: LAYER TYPE POLYGON STATUS ON GROUP "default" NAME "land" PROJECTION "init=epsg:900913" END DATA "../shapefiles/test" CLASS STYLE COLOR 255 255 0 END END END The relevant Map parameters: OUTPUTFORMAT NAME 'test' DRIVER GD/PNG IMAGEMODE PC256 FORMATOPTION "INTERLACE=false" TRANSPARENT ON END IMAGECOLOR 255 255 0 I also tried agg/png drivers together with IMAGEMODE RGBA, but all combinations give me a yellow, non transparent response (i request the layer with transparent=true and image/png as format). Can anyone give me an advice what i am doing wrong, or is this a bug? Thanks, J. Weskamm -- Dipl.-Geogr. Johannes Weskamm --- Anwendungsentwickler --- terrestris GmbH & Co. KG P?tzchens Chaussee 56 53227 Bonn Tel: +49 (0)228 / 96 28 99 -555 Fax: +49 (0)228 / 96 28 99 -57 Email: weskamm at terrestris.de Web: http://www.terrestris.de Amtsgericht Bonn, HRA 6835 Komplement?rin: terrestris Verwaltungsgesellschaft mbH vertreten durch: Hinrich Paulsen, Till Adams -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedric.moullet at gmail.com Mon Dec 17 07:11:34 2012 From: cedric.moullet at gmail.com (=?ISO-8859-1?Q?C=E9dric_MOULLET?=) Date: Mon, 17 Dec 2012 16:11:34 +0100 Subject: [mapserver-users] JPEG and OVERSAMPLE_RATIO Message-ID: Hi, The following issue has been observed with MapServer 6.0.3: 1. Very good quality for a PNG with RESAMPLE=BILINEAR and OVERSAMPLE_RATIO=16: [image: http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_bazl&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] 2. Less good quality for a PNG or JPEG with default resampling settings: [image: http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_original&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] 3. Awful quality for JPEG with RESAMPLE=BILINEAR and OVERSAMPLE_RATIO=16: [image: http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_bazl&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] Any idea why the OVERSAMPLE_RATIO affects heavily the quality of JPEG images ? Thanks in advance for your help, C?dric -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedric.moullet at gmail.com Mon Dec 17 07:18:00 2012 From: cedric.moullet at gmail.com (=?ISO-8859-1?Q?C=E9dric_MOULLET?=) Date: Mon, 17 Dec 2012 16:18:00 +0100 Subject: [mapserver-users] JPEG and OVERSAMPLE_RATIO In-Reply-To: References: Message-ID: I realize that links have been sent and not pictures Here are reachable links for the three cases: 1. https://picasaweb.google.com/lh/photo/j_OClw5fGOeQE7K1wiimytMTjNZETYmyPJy0liipFm0?feat=directlink 2. https://picasaweb.google.com/lh/photo/3q52h52EwOp9JzZm3KAWbNMTjNZETYmyPJy0liipFm0?feat=directlink 3. https://picasaweb.google.com/lh/photo/GTAThw7AOVMK-j-7DWAabtMTjNZETYmyPJy0liipFm0?feat=directlink C?dric On Mon, Dec 17, 2012 at 4:11 PM, C?dric MOULLET wrote: > Hi, > The following issue has been observed with MapServer 6.0.3: > > 1. Very good quality for a PNG with RESAMPLE=BILINEAR and > OVERSAMPLE_RATIO=16: > [image: > http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_bazl&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] > > 2. Less good quality for a PNG or JPEG with default resampling settings: > [image: > http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_original&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] > > 3. Awful quality for JPEG with RESAMPLE=BILINEAR and OVERSAMPLE_RATIO=16: > [image: > http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_bazl&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] > > Any idea why the OVERSAMPLE_RATIO affects heavily the quality of JPEG > images ? > > Thanks in advance for your help, > C?dric > -- Political blog: http://cedricmoullet.blogspot.com/ Welcome to my world: http://www.cedricmoullet.com/ My Linked In profile: http://www.linkedin.com/in/cedricmoullet Twitter: http://twitter.com/cedricmoullet Home sweet home: http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Mon Dec 17 07:24:54 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 17 Dec 2012 16:24:54 +0100 Subject: [mapserver-users] JPEG and OVERSAMPLE_RATIO In-Reply-To: References: Message-ID: Can you post the outputformats defined in your mapfile, and the urls used to access each of these images? -- thomas On Mon, Dec 17, 2012 at 4:18 PM, C?dric MOULLET wrote: > I realize that links have been sent and not pictures > Here are reachable links for the three cases: > 1. > https://picasaweb.google.com/lh/photo/j_OClw5fGOeQE7K1wiimytMTjNZETYmyPJy0liipFm0?feat=directlink > 2. > https://picasaweb.google.com/lh/photo/3q52h52EwOp9JzZm3KAWbNMTjNZETYmyPJy0liipFm0?feat=directlink > 3. > https://picasaweb.google.com/lh/photo/GTAThw7AOVMK-j-7DWAabtMTjNZETYmyPJy0liipFm0?feat=directlink > C?dric > > > On Mon, Dec 17, 2012 at 4:11 PM, C?dric MOULLET wrote: > >> Hi, >> The following issue has been observed with MapServer 6.0.3: >> >> 1. Very good quality for a PNG with RESAMPLE=BILINEAR and >> OVERSAMPLE_RATIO=16: >> [image: >> http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_bazl&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] >> >> 2. Less good quality for a PNG or JPEG with default resampling settings: >> [image: >> http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_original&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] >> >> 3. Awful quality for JPEG with RESAMPLE=BILINEAR and OVERSAMPLE_RATIO=16: >> [image: >> http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_bazl&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] >> >> Any idea why the OVERSAMPLE_RATIO affects heavily the quality of JPEG >> images ? >> >> Thanks in advance for your help, >> C?dric >> > > > > -- > Political blog: http://cedricmoullet.blogspot.com/ > Welcome to my world: http://www.cedricmoullet.com/ > My Linked In profile: http://www.linkedin.com/in/cedricmoullet > Twitter: http://twitter.com/cedricmoullet > Home sweet home: > http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 > > > _______________________________________________ > 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 cedric.moullet at gmail.com Mon Dec 17 07:49:40 2012 From: cedric.moullet at gmail.com (=?ISO-8859-1?Q?C=E9dric_MOULLET?=) Date: Mon, 17 Dec 2012 16:49:40 +0100 Subject: [mapserver-users] JPEG and OVERSAMPLE_RATIO In-Reply-To: References: Message-ID: Hi, Output formats: OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE "RGBA" TRANSPARENT TRUE FORMATOPTION "INTERLACE=OFF" END OUTPUTFORMAT NAME jpeg DRIVER "AGG/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB FORMATOPTION QUALITY=100 EXTENSION "jpg" END URL's: 1. https://picasaweb.google.com/lh/photo/j_OClw5fGOeQE7K1wiimytMTjNZETYmyPJy0liipFm0?feat=directlink 2. https://picasaweb.google.com/lh/photo/3q52h52EwOp9JzZm3KAWbNMTjNZETYmyPJy0liipFm0?feat=directlink 3. https://picasaweb.google.com/lh/photo/GTAThw7AOVMK-j-7DWAabtMTjNZETYmyPJy0liipFm0?feat=directlink Thanks in advance for your help ! C?dric On Mon, Dec 17, 2012 at 4:24 PM, thomas bonfort wrote: > Can you post the outputformats defined in your mapfile, and the urls used > to access each of these images? > > -- > thomas > > > On Mon, Dec 17, 2012 at 4:18 PM, C?dric MOULLET wrote: > >> I realize that links have been sent and not pictures >> Here are reachable links for the three cases: >> 1. >> https://picasaweb.google.com/lh/photo/j_OClw5fGOeQE7K1wiimytMTjNZETYmyPJy0liipFm0?feat=directlink >> 2. >> https://picasaweb.google.com/lh/photo/3q52h52EwOp9JzZm3KAWbNMTjNZETYmyPJy0liipFm0?feat=directlink >> 3. >> https://picasaweb.google.com/lh/photo/GTAThw7AOVMK-j-7DWAabtMTjNZETYmyPJy0liipFm0?feat=directlink >> C?dric >> >> >> On Mon, Dec 17, 2012 at 4:11 PM, C?dric MOULLET > > wrote: >> >>> Hi, >>> The following issue has been observed with MapServer 6.0.3: >>> >>> 1. Very good quality for a PNG with RESAMPLE=BILINEAR and >>> OVERSAMPLE_RATIO=16: >>> [image: >>> http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_bazl&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] >>> >>> 2. Less good quality for a PNG or JPEG with default resampling settings: >>> [image: >>> http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_original&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] >>> >>> 3. Awful quality for JPEG with RESAMPLE=BILINEAR and OVERSAMPLE_RATIO=16: >>> [image: >>> http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_bazl&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] >>> >>> Any idea why the OVERSAMPLE_RATIO affects heavily the quality of JPEG >>> images ? >>> >>> Thanks in advance for your help, >>> C?dric >>> >> >> >> >> -- >> Political blog: http://cedricmoullet.blogspot.com/ >> Welcome to my world: http://www.cedricmoullet.com/ >> My Linked In profile: http://www.linkedin.com/in/cedricmoullet >> Twitter: http://twitter.com/cedricmoullet >> Home sweet home: >> http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > -- Political blog: http://cedricmoullet.blogspot.com/ Welcome to my world: http://www.cedricmoullet.com/ My Linked In profile: http://www.linkedin.com/in/cedricmoullet Twitter: http://twitter.com/cedricmoullet Home sweet home: http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Mon Dec 17 07:52:43 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 17 Dec 2012 16:52:43 +0100 Subject: [mapserver-users] JPEG and OVERSAMPLE_RATIO In-Reply-To: References: Message-ID: On Mon, Dec 17, 2012 at 4:49 PM, C?dric MOULLET wrote: > Hi, > Output formats: > > OUTPUTFORMAT > NAME "png" > MIMETYPE "image/png" > DRIVER "AGG/PNG" > EXTENSION "png" > IMAGEMODE "RGBA" > TRANSPARENT TRUE > FORMATOPTION "INTERLACE=OFF" > END > > OUTPUTFORMAT > NAME jpeg > DRIVER "AGG/JPEG" > MIMETYPE "image/jpeg" > IMAGEMODE RGB > FORMATOPTION QUALITY=100 > EXTENSION "jpg" > END > > URL's: I meant the urls sent to mapserver when rendering those tiles (i.e. the FORMAT=xxx part of a wms request) > > > 1. > https://picasaweb.google.com/lh/photo/j_OClw5fGOeQE7K1wiimytMTjNZETYmyPJy0liipFm0?feat=directlink > 2. > https://picasaweb.google.com/lh/photo/3q52h52EwOp9JzZm3KAWbNMTjNZETYmyPJy0liipFm0?feat=directlink > 3. > https://picasaweb.google.com/lh/photo/GTAThw7AOVMK-j-7DWAabtMTjNZETYmyPJy0liipFm0?feat=directlink > > Thanks in advance for your help ! > C?dric > > > > On Mon, Dec 17, 2012 at 4:24 PM, thomas bonfort wrote: > >> Can you post the outputformats defined in your mapfile, and the urls used >> to access each of these images? >> >> -- >> thomas >> >> >> On Mon, Dec 17, 2012 at 4:18 PM, C?dric MOULLET > > wrote: >> >>> I realize that links have been sent and not pictures >>> Here are reachable links for the three cases: >>> 1. >>> https://picasaweb.google.com/lh/photo/j_OClw5fGOeQE7K1wiimytMTjNZETYmyPJy0liipFm0?feat=directlink >>> 2. >>> https://picasaweb.google.com/lh/photo/3q52h52EwOp9JzZm3KAWbNMTjNZETYmyPJy0liipFm0?feat=directlink >>> 3. >>> https://picasaweb.google.com/lh/photo/GTAThw7AOVMK-j-7DWAabtMTjNZETYmyPJy0liipFm0?feat=directlink >>> C?dric >>> >>> >>> On Mon, Dec 17, 2012 at 4:11 PM, C?dric MOULLET < >>> cedric.moullet at gmail.com> wrote: >>> >>>> Hi, >>>> The following issue has been observed with MapServer 6.0.3: >>>> >>>> 1. Very good quality for a PNG with RESAMPLE=BILINEAR and >>>> OVERSAMPLE_RATIO=16: >>>> [image: >>>> http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_bazl&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] >>>> >>>> 2. Less good quality for a PNG or JPEG with default resampling settings: >>>> [image: >>>> http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_original&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] >>>> >>>> 3. Awful quality for JPEG with RESAMPLE=BILINEAR and >>>> OVERSAMPLE_RATIO=16: >>>> [image: >>>> http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_bazl&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] >>>> >>>> Any idea why the OVERSAMPLE_RATIO affects heavily the quality of JPEG >>>> images ? >>>> >>>> Thanks in advance for your help, >>>> C?dric >>>> >>> >>> >>> >>> -- >>> Political blog: http://cedricmoullet.blogspot.com/ >>> Welcome to my world: http://www.cedricmoullet.com/ >>> My Linked In profile: http://www.linkedin.com/in/cedricmoullet >>> Twitter: http://twitter.com/cedricmoullet >>> Home sweet home: >>> http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> > > > -- > Political blog: http://cedricmoullet.blogspot.com/ > Welcome to my world: http://www.cedricmoullet.com/ > My Linked In profile: http://www.linkedin.com/in/cedricmoullet > Twitter: http://twitter.com/cedricmoullet > Home sweet home: > http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedric.moullet at gmail.com Mon Dec 17 07:56:16 2012 From: cedric.moullet at gmail.com (=?ISO-8859-1?Q?C=E9dric_MOULLET?=) Date: Mon, 17 Dec 2012 16:56:16 +0100 Subject: [mapserver-users] JPEG and OVERSAMPLE_RATIO In-Reply-To: References: Message-ID: Ok: 1. FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256 2. FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256 3. FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256 On Mon, Dec 17, 2012 at 4:52 PM, thomas bonfort wrote: > > > > On Mon, Dec 17, 2012 at 4:49 PM, C?dric MOULLET wrote: > >> Hi, >> >> Output formats: >> >> OUTPUTFORMAT >> NAME "png" >> MIMETYPE "image/png" >> DRIVER "AGG/PNG" >> EXTENSION "png" >> IMAGEMODE "RGBA" >> TRANSPARENT TRUE >> FORMATOPTION "INTERLACE=OFF" >> END >> >> OUTPUTFORMAT >> NAME jpeg >> DRIVER "AGG/JPEG" >> MIMETYPE "image/jpeg" >> IMAGEMODE RGB >> FORMATOPTION QUALITY=100 >> EXTENSION "jpg" >> END >> >> URL's: >> > I meant the urls sent to mapserver when rendering those tiles (i.e. the > FORMAT=xxx part of a wms request) > > >> >> >> 1. >> https://picasaweb.google.com/lh/photo/j_OClw5fGOeQE7K1wiimytMTjNZETYmyPJy0liipFm0?feat=directlink >> 2. >> https://picasaweb.google.com/lh/photo/3q52h52EwOp9JzZm3KAWbNMTjNZETYmyPJy0liipFm0?feat=directlink >> 3. >> https://picasaweb.google.com/lh/photo/GTAThw7AOVMK-j-7DWAabtMTjNZETYmyPJy0liipFm0?feat=directlink >> >> Thanks in advance for your help ! >> C?dric >> >> >> >> On Mon, Dec 17, 2012 at 4:24 PM, thomas bonfort > > wrote: >> >>> Can you post the outputformats defined in your mapfile, and the urls >>> used to access each of these images? >>> >>> -- >>> thomas >>> >>> >>> On Mon, Dec 17, 2012 at 4:18 PM, C?dric MOULLET < >>> cedric.moullet at gmail.com> wrote: >>> >>>> I realize that links have been sent and not pictures >>>> Here are reachable links for the three cases: >>>> 1. >>>> https://picasaweb.google.com/lh/photo/j_OClw5fGOeQE7K1wiimytMTjNZETYmyPJy0liipFm0?feat=directlink >>>> 2. >>>> https://picasaweb.google.com/lh/photo/3q52h52EwOp9JzZm3KAWbNMTjNZETYmyPJy0liipFm0?feat=directlink >>>> 3. >>>> https://picasaweb.google.com/lh/photo/GTAThw7AOVMK-j-7DWAabtMTjNZETYmyPJy0liipFm0?feat=directlink >>>> C?dric >>>> >>>> >>>> On Mon, Dec 17, 2012 at 4:11 PM, C?dric MOULLET < >>>> cedric.moullet at gmail.com> wrote: >>>> >>>>> Hi, >>>>> The following issue has been observed with MapServer 6.0.3: >>>>> >>>>> 1. Very good quality for a PNG with RESAMPLE=BILINEAR and >>>>> OVERSAMPLE_RATIO=16: >>>>> [image: >>>>> http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_bazl&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] >>>>> >>>>> 2. Less good quality for a PNG or JPEG with default resampling >>>>> settings: >>>>> [image: >>>>> http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_original&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] >>>>> >>>>> 3. Awful quality for JPEG with RESAMPLE=BILINEAR and >>>>> OVERSAMPLE_RATIO=16: >>>>> [image: >>>>> http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_bazl&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] >>>>> >>>>> Any idea why the OVERSAMPLE_RATIO affects heavily the quality of JPEG >>>>> images ? >>>>> >>>>> Thanks in advance for your help, >>>>> C?dric >>>>> >>>> >>>> >>>> >>>> -- >>>> Political blog: http://cedricmoullet.blogspot.com/ >>>> Welcome to my world: http://www.cedricmoullet.com/ >>>> My Linked In profile: http://www.linkedin.com/in/cedricmoullet >>>> Twitter: http://twitter.com/cedricmoullet >>>> Home sweet home: >>>> http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 >>>> >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>> >> >> >> -- >> Political blog: http://cedricmoullet.blogspot.com/ >> Welcome to my world: http://www.cedricmoullet.com/ >> My Linked In profile: http://www.linkedin.com/in/cedricmoullet >> Twitter: http://twitter.com/cedricmoullet >> Home sweet home: >> http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 >> >> > -- Political blog: http://cedricmoullet.blogspot.com/ Welcome to my world: http://www.cedricmoullet.com/ My Linked In profile: http://www.linkedin.com/in/cedricmoullet Twitter: http://twitter.com/cedricmoullet Home sweet home: http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Mon Dec 17 08:00:25 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 17 Dec 2012 17:00:25 +0100 Subject: [mapserver-users] JPEG and OVERSAMPLE_RATIO In-Reply-To: References: Message-ID: On Mon, Dec 17, 2012 at 4:49 PM, C?dric MOULLET wrote: > Hi, > Output formats: > > OUTPUTFORMAT > NAME "png" > MIMETYPE "image/png" > DRIVER "AGG/PNG" > EXTENSION "png" > IMAGEMODE "RGBA" > TRANSPARENT TRUE > FORMATOPTION "INTERLACE=OFF" > END > > OUTPUTFORMAT > NAME jpeg > DRIVER "AGG/JPEG" > MIMETYPE "image/jpeg" > IMAGEMODE RGB > > FORMATOPTION QUALITY=100 > does changing this to values between 80 and 99 change something ? > EXTENSION "jpg" > END > > URL's: > > > 1. > https://picasaweb.google.com/lh/photo/j_OClw5fGOeQE7K1wiimytMTjNZETYmyPJy0liipFm0?feat=directlink > 2. > https://picasaweb.google.com/lh/photo/3q52h52EwOp9JzZm3KAWbNMTjNZETYmyPJy0liipFm0?feat=directlink > 3. > https://picasaweb.google.com/lh/photo/GTAThw7AOVMK-j-7DWAabtMTjNZETYmyPJy0liipFm0?feat=directlink > > Thanks in advance for your help ! > C?dric > > > > On Mon, Dec 17, 2012 at 4:24 PM, thomas bonfort wrote: > >> Can you post the outputformats defined in your mapfile, and the urls used >> to access each of these images? >> >> -- >> thomas >> >> >> On Mon, Dec 17, 2012 at 4:18 PM, C?dric MOULLET > > wrote: >> >>> I realize that links have been sent and not pictures >>> Here are reachable links for the three cases: >>> 1. >>> https://picasaweb.google.com/lh/photo/j_OClw5fGOeQE7K1wiimytMTjNZETYmyPJy0liipFm0?feat=directlink >>> 2. >>> https://picasaweb.google.com/lh/photo/3q52h52EwOp9JzZm3KAWbNMTjNZETYmyPJy0liipFm0?feat=directlink >>> 3. >>> https://picasaweb.google.com/lh/photo/GTAThw7AOVMK-j-7DWAabtMTjNZETYmyPJy0liipFm0?feat=directlink >>> C?dric >>> >>> >>> On Mon, Dec 17, 2012 at 4:11 PM, C?dric MOULLET < >>> cedric.moullet at gmail.com> wrote: >>> >>>> Hi, >>>> The following issue has been observed with MapServer 6.0.3: >>>> >>>> 1. Very good quality for a PNG with RESAMPLE=BILINEAR and >>>> OVERSAMPLE_RATIO=16: >>>> [image: >>>> http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_bazl&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] >>>> >>>> 2. Less good quality for a PNG or JPEG with default resampling settings: >>>> [image: >>>> http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_original&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] >>>> >>>> 3. Awful quality for JPEG with RESAMPLE=BILINEAR and >>>> OVERSAMPLE_RATIO=16: >>>> [image: >>>> http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_bazl&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] >>>> >>>> Any idea why the OVERSAMPLE_RATIO affects heavily the quality of JPEG >>>> images ? >>>> >>>> Thanks in advance for your help, >>>> C?dric >>>> >>> >>> >>> >>> -- >>> Political blog: http://cedricmoullet.blogspot.com/ >>> Welcome to my world: http://www.cedricmoullet.com/ >>> My Linked In profile: http://www.linkedin.com/in/cedricmoullet >>> Twitter: http://twitter.com/cedricmoullet >>> Home sweet home: >>> http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> > > > -- > Political blog: http://cedricmoullet.blogspot.com/ > Welcome to my world: http://www.cedricmoullet.com/ > My Linked In profile: http://www.linkedin.com/in/cedricmoullet > Twitter: http://twitter.com/cedricmoullet > Home sweet home: > http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedric.moullet at gmail.com Mon Dec 17 08:11:49 2012 From: cedric.moullet at gmail.com (=?ISO-8859-1?Q?C=E9dric_MOULLET?=) Date: Mon, 17 Dec 2012 17:11:49 +0100 Subject: [mapserver-users] JPEG and OVERSAMPLE_RATIO In-Reply-To: References: Message-ID: No, we tried with 80 and it doesn't change anything. On Mon, Dec 17, 2012 at 5:00 PM, thomas bonfort wrote: > > > > On Mon, Dec 17, 2012 at 4:49 PM, C?dric MOULLET wrote: > >> Hi, >> >> Output formats: >> >> OUTPUTFORMAT >> NAME "png" >> MIMETYPE "image/png" >> DRIVER "AGG/PNG" >> EXTENSION "png" >> IMAGEMODE "RGBA" >> TRANSPARENT TRUE >> FORMATOPTION "INTERLACE=OFF" >> END >> >> OUTPUTFORMAT >> NAME jpeg >> DRIVER "AGG/JPEG" >> MIMETYPE "image/jpeg" >> IMAGEMODE RGB >> > > >> FORMATOPTION QUALITY=100 >> > does changing this to values between 80 and 99 change something ? > > >> EXTENSION "jpg" >> END >> >> URL's: >> >> >> 1. >> https://picasaweb.google.com/lh/photo/j_OClw5fGOeQE7K1wiimytMTjNZETYmyPJy0liipFm0?feat=directlink >> 2. >> https://picasaweb.google.com/lh/photo/3q52h52EwOp9JzZm3KAWbNMTjNZETYmyPJy0liipFm0?feat=directlink >> 3. >> https://picasaweb.google.com/lh/photo/GTAThw7AOVMK-j-7DWAabtMTjNZETYmyPJy0liipFm0?feat=directlink >> >> Thanks in advance for your help ! >> C?dric >> >> >> >> On Mon, Dec 17, 2012 at 4:24 PM, thomas bonfort > > wrote: >> >>> Can you post the outputformats defined in your mapfile, and the urls >>> used to access each of these images? >>> >>> -- >>> thomas >>> >>> >>> On Mon, Dec 17, 2012 at 4:18 PM, C?dric MOULLET < >>> cedric.moullet at gmail.com> wrote: >>> >>>> I realize that links have been sent and not pictures >>>> Here are reachable links for the three cases: >>>> 1. >>>> https://picasaweb.google.com/lh/photo/j_OClw5fGOeQE7K1wiimytMTjNZETYmyPJy0liipFm0?feat=directlink >>>> 2. >>>> https://picasaweb.google.com/lh/photo/3q52h52EwOp9JzZm3KAWbNMTjNZETYmyPJy0liipFm0?feat=directlink >>>> 3. >>>> https://picasaweb.google.com/lh/photo/GTAThw7AOVMK-j-7DWAabtMTjNZETYmyPJy0liipFm0?feat=directlink >>>> C?dric >>>> >>>> >>>> On Mon, Dec 17, 2012 at 4:11 PM, C?dric MOULLET < >>>> cedric.moullet at gmail.com> wrote: >>>> >>>>> Hi, >>>>> The following issue has been observed with MapServer 6.0.3: >>>>> >>>>> 1. Very good quality for a PNG with RESAMPLE=BILINEAR and >>>>> OVERSAMPLE_RATIO=16: >>>>> [image: >>>>> http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_bazl&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] >>>>> >>>>> 2. Less good quality for a PNG or JPEG with default resampling >>>>> settings: >>>>> [image: >>>>> http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_original&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] >>>>> >>>>> 3. Awful quality for JPEG with RESAMPLE=BILINEAR and >>>>> OVERSAMPLE_RATIO=16: >>>>> [image: >>>>> http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_bazl&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] >>>>> >>>>> Any idea why the OVERSAMPLE_RATIO affects heavily the quality of JPEG >>>>> images ? >>>>> >>>>> Thanks in advance for your help, >>>>> C?dric >>>>> >>>> >>>> >>>> >>>> -- >>>> Political blog: http://cedricmoullet.blogspot.com/ >>>> Welcome to my world: http://www.cedricmoullet.com/ >>>> My Linked In profile: http://www.linkedin.com/in/cedricmoullet >>>> Twitter: http://twitter.com/cedricmoullet >>>> Home sweet home: >>>> http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 >>>> >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>> >> >> >> -- >> Political blog: http://cedricmoullet.blogspot.com/ >> Welcome to my world: http://www.cedricmoullet.com/ >> My Linked In profile: http://www.linkedin.com/in/cedricmoullet >> Twitter: http://twitter.com/cedricmoullet >> Home sweet home: >> http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 >> >> > -- Political blog: http://cedricmoullet.blogspot.com/ Welcome to my world: http://www.cedricmoullet.com/ My Linked In profile: http://www.linkedin.com/in/cedricmoullet Twitter: http://twitter.com/cedricmoullet Home sweet home: http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From wal3 at mindspring.com Mon Dec 17 08:33:32 2012 From: wal3 at mindspring.com (Worth Lutz) Date: Mon, 17 Dec 2012 11:33:32 -0500 Subject: [mapserver-users] Problem with Transparency and IMAGECOLOR In-Reply-To: <50CF1B06.2060902@terrestris.de> References: <50CF1B06.2060902@terrestris.de> Message-ID: For me it works using: IMAGETYPE png With no ?OUTPUTFORMAT? in my mapfile. I?m using the predefined OUTPUTFORMAT of ?png?. There are several predefined OUTPUTFORMATs described at: http://mapserver.org/mapfile/outputformat.html . I hope this helps. Worth Lutz _____ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Johannes Weskamm Sent: Monday, December 17, 2012 8:16 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Problem with Transparency and IMAGECOLOR Hi, I have a question regarding the transparency of my mapfile together with mapserver 6.2. The documentation tells me, that using the Parameter IMAGECOLOR together with TRANSPARENT ON in OUTPUTFORMAT, the resulting image of a wms request should have the defined color transparent. I tried different approaches but none of them work. So here is an example of my layer: LAYER TYPE POLYGON STATUS ON GROUP "default" NAME "land" PROJECTION "init=epsg:900913" END DATA "../shapefiles/test" CLASS STYLE COLOR 255 255 0 END END END The relevant Map parameters: OUTPUTFORMAT NAME 'test' DRIVER GD/PNG IMAGEMODE PC256 FORMATOPTION "INTERLACE=false" TRANSPARENT ON END IMAGECOLOR 255 255 0 I also tried agg/png drivers together with IMAGEMODE RGBA, but all combinations give me a yellow, non transparent response (i request the layer with transparent=true and image/png as format). Can anyone give me an advice what i am doing wrong, or is this a bug? Thanks, J. Weskamm -- Dipl.-Geogr. Johannes Weskamm ? Anwendungsentwickler ? terrestris GmbH & Co. KG P?tzchens Chaussee 56 53227 Bonn Tel: +49 (0)228 / 96 28 99 -555 Fax: +49 (0)228 / 96 28 99 -57 Email: weskamm at terrestris.de Web: http://www.terrestris.de Amtsgericht Bonn, HRA 6835 Komplement?rin: terrestris Verwaltungsgesellschaft mbH vertreten durch: Hinrich Paulsen, Till Adams _____ No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2805 / Virus Database: 2637/5964 - Release Date: 12/16/12 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.walberg at airborne.aero Mon Dec 17 08:50:52 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Mon, 17 Dec 2012 11:50:52 -0500 Subject: [mapserver-users] Hindi and Thai text rendering In-Reply-To: References: <0342A56AD728D64185DB36D9514E2E7E0128CBB3@BE64.exg3.exghost.com><0342A56AD728D64185DB36D9514E2E7E33AECE@BE64.exg3.exghost.com> Message-ID: Thomas, We are currently using fibidi 0.19.2 and can try the later versions. I have just had a look at 0.19.4 and 0.19.5 and I am not sure how to build them, there does not appear to be build instructions in them or a configure script. Have you (or anyone else on the list) built these for Linux? Thanks Ian From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas bonfort Sent: Monday, December 17, 2012 12:48 AM To: MapserverList OSGEO Subject: Re: [mapserver-users] Hindi and Thai text rendering On Mon, Dec 17, 2012 at 9:45 AM, thomas bonfort wrote: Peter, We don't do any shaping directly inside mapserver, but rely on the fribidi library to do that for us. Your mapfile definitions are correct to activate this (i.e. it includes an LABEL.ENCODING parameter). I'll leave it up to you to confirm that the image sample I sent you is correct or not. If so, check that you have configured your mapserver with fribidi enabled and uptodate (the supplied image was rendered with 0.19.2 . some stable distros use a very outdated fribidi version, so you might need to upgrade manually) . If not, you can try with a bleeding edge fribidi (0.19.5 was released a few days ago), and/or report the issue or find help from the fribidi project directly. please report back with your findings. regards, thomas On Sun, Dec 16, 2012 at 2:31 AM, Peter Mallen wrote: Hi Thomas, Here is a link to a png Image I have created of using the simple Map File I provided in the previous postings, this is exactly how the Hindi text is rendering in Map Server: http://www.maplusplus.com/images/Hindi_Incorrect.png It is appearing incorrectly and should appear as shown in this link to Google Translate: http://tinyurl.com/cqlymgy I am not sure if the Hindi you have provided is displaying correctly, although it appears to be similar to what I looked up in Google Translate. Thank You for your help, Peter Mallen -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Sat 12/15/2012 10:36 AM To: Peter Mallen Cc: MapserverList OSGEO Subject: Re: [mapserver-users] Hindi and Thai text rendering Peter, You don't provide the rendering that mapserver is producing, so it's difficult to compare. Is this rendering correct: http://osm.terriscope.fr/mapcache/tms/1.0.0/mapserver at g/15/23400/19085.png ? -- thomas On Sat, Dec 15, 2012 at 12:59 AM, Peter Mallen wrote: > Hello Everyone, > > I apologize for my previous posts as my url appears to have been too > long, I have converted the link to a tiny url: > http://tinyurl.com/cqlymgy > > As a reminder, this is a link showing how the Hindi characters should > display. > > Thank You Again, > > Peter Mallen > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.mallen at airborne.aero Mon Dec 17 08:57:33 2012 From: peter.mallen at airborne.aero (Peter Mallen) Date: Mon, 17 Dec 2012 11:57:33 -0500 Subject: [mapserver-users] Hindi and Thai text rendering (thomas bonfort) Message-ID: <0342A56AD728D64185DB36D9514E2E7E0128CD38@BE64.exg3.exghost.com> Hi Thomas, I believe we are using fribidi but I am not sure which version, I will look further into this and report back to with my findings. Thank You, Peter Mallen -----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: Monday, December 17, 2012 7:18 AM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 59, Issue 28 Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. Re: Hindi and Thai text rendering (thomas bonfort) 2. [TinyOWS] TinyOWS 1.1.0 and the old good axis order trouble (Rahkonen Jukka) 3. Re: Raster color table (Daniel Morissette) 4. Problem with Transparency and IMAGECOLOR (Johannes Weskamm) 5. JPEG and OVERSAMPLE_RATIO (C?dric MOULLET) 6. Re: JPEG and OVERSAMPLE_RATIO (C?dric MOULLET) ---------------------------------------------------------------------- Message: 1 Date: Mon, 17 Dec 2012 09:47:46 +0100 From: thomas bonfort To: MapserverList OSGEO Subject: Re: [mapserver-users] Hindi and Thai text rendering Message-ID: Content-Type: text/plain; charset="utf-8" On Mon, Dec 17, 2012 at 9:45 AM, thomas bonfort wrote: > Peter, > We don't do any shaping directly inside mapserver, but rely on the > fribidi library to do that for us. Your mapfile definitions are > correct to activate this (i.e. it includes an LABEL.ENCODING parameter). > I'll leave it up to you to confirm that the image sample I sent you is > correct or not. If so, check that you have configured your mapserver > with fribidi enabled and uptodate (the supplied image was rendered with 0.19.2 . > some stable distros use a very outdated fribidi version, so you might > need to upgrade manually) . If not, you can try with a bleeding edge > fribidi > (0.19.5 was released a few days ago), and/or report the issue or find > help from the fribidi project directly. > > please report back with your findings. > > regards, > thomas > > > On Sun, Dec 16, 2012 at 2:31 AM, Peter Mallen wrote: > >> ** >> >> Hi Thomas, >> >> Here is a link to a png Image I have created of using the simple Map >> File I provided in the previous postings, this is exactly how the >> Hindi text is rendering in Map Server: >> http://www.maplusplus.com/images/Hindi_Incorrect.png >> >> It is appearing incorrectly and should appear as shown in this link >> to Google Translate: >> http://tinyurl.com/cqlymgy >> >> I am not sure if the Hindi you have provided is displaying correctly, >> although it appears to be similar to what I looked up in Google Translate. >> >> >> Thank You for your help, >> >> Peter Mallen >> >> >> >> -----Original Message----- >> From: thomas bonfort >> [mailto:thomas.bonfort at gmail.com >> ] >> Sent: Sat 12/15/2012 10:36 AM >> To: Peter Mallen >> Cc: MapserverList OSGEO >> Subject: Re: [mapserver-users] Hindi and Thai text rendering >> >> Peter, >> You don't provide the rendering that mapserver is producing, so it's >> difficult to compare. Is this rendering correct: >> http://osm.terriscope.fr/mapcache/tms/1.0.0/mapserver at g/15/23400/19085.p ng? >> >> -- >> thomas >> >> >> On Sat, Dec 15, 2012 at 12:59 AM, Peter Mallen >> wrote: >> >> > Hello Everyone, >> > >> > I apologize for my previous posts as my url appears to have been >> > too long, I have converted the link to a tiny url: >> > http://tinyurl.com/cqlymgy >> > >> > As a reminder, this is a link showing how the Hindi characters >> > should display. >> > >> > Thank You Again, >> > >> > Peter Mallen >> > >> > >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 2 Date: Mon, 17 Dec 2012 10:16:06 +0000 From: Rahkonen Jukka To: "'Mapserver-Users (mapserver-users at lists.osgeo.org)'" Subject: [mapserver-users] [TinyOWS] TinyOWS 1.1.0 and the old good axis order trouble Message-ID: <84446DEF76453C439E9E97E438E13A637C184B at suutari.haapa.mmm.fi> Content-Type: text/plain; charset="us-ascii" Hi, I have been running TinyOWS r558 for quite a long time because it is dealing almost right with the axis order of the projections I am commonly using. Now I had a fast try with the current TinyOWS 1.1.0 version but unfortunately I realized that it is doing wrong thing by flipping the axis with urn:ogc:def:crs:EPSG::3067. That system is officially an Easting-Northing system and axis should not be flipped ever. Also, TinyOWS does not flip the axes with urn:ogc:def:crs:EPSG::2393 which is officially a Northing-Easting system and axis should be flipped with WFS 1.1.0 I can see that TinyOWS is flipping the axis with WFS 1.1.0 if I I give srsName=urn:ogc:def:crs:EPSG::3067 or if I do not give it at all, which means the same because the uri-format is the default srsName. Axis order is correct if I give it as srsName=EPSG:3067. With EPSG:2393 axis are not flipped with either srsName format. What should be done next is to flip the behaviours of 2393 and 3067. What is the logic that TinyOWS is using when it decides whether the axis should be flipped or not for WFS 1.1.0? Can I manipulate TinyOWS somehow myself to behave in a correct way with EPSG:2393 and EPSG:3067 by editing something in the PostGIS or in TinyOWS sources? Another question is that is it guaranteed that axis order is handled similarly everywhere, also in filters? I mean that can I trust that once TinyOWS someday will again send urn:ogc:def:crs:EPSG::2393 data as Northing-Easting with WFS 1.1.0 it will then also treat the GML3 filters so that is knows that first comes Northing and then Easting? Does the srsName format have the same meaning if filters, so that if short srsName is used then axis order is always Easting-Northing or lon-lat, but when the uri format is used then TinyOWS is trying to check the official axis with WFS 1.1.0? -Jukka Rahkonen- ------------------------------ Message: 3 Date: Mon, 17 Dec 2012 08:03:04 -0500 From: Daniel Morissette To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Raster color table Message-ID: <50CF1808.2090301 at mapgears.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 12-12-14 5:52 PM, ALT SHN wrote: > Hi, > > Is there a way to associate a color table to a 8bit raster so > Mapserver doesn't render it in grayscale? > In the Mapserver documentation, a pallete is refered, but for what I > understood, this applies to the output format, not to a particular raster. > > Is there a workarround for this situation? (other than converting the > raster to RGB) > You could create a GDAL VRT file for your image in which you associate a color table to the raster band, and then point your MapServer layer definition to the VRT. See: http://trac.osgeo.org/gdal/wiki/FAQRaster#Howtocreateormodifyanimagecolo rtable and http://www.gdal.org/gdal_vrttut.html -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ------------------------------ Message: 4 Date: Mon, 17 Dec 2012 14:15:50 +0100 From: Johannes Weskamm To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Problem with Transparency and IMAGECOLOR Message-ID: <50CF1B06.2060902 at terrestris.de> Content-Type: text/plain; charset="iso-8859-15"; Format="flowed" Hi, I have a question regarding the transparency of my mapfile together with mapserver 6.2. The documentation tells me, that using the Parameter IMAGECOLOR together with TRANSPARENT ON in OUTPUTFORMAT, the resulting image of a wms request should have the defined color transparent. I tried different approaches but none of them work. So here is an example of my layer: LAYER TYPE POLYGON STATUS ON GROUP "default" NAME "land" PROJECTION "init=epsg:900913" END DATA "../shapefiles/test" CLASS STYLE COLOR 255 255 0 END END END The relevant Map parameters: OUTPUTFORMAT NAME 'test' DRIVER GD/PNG IMAGEMODE PC256 FORMATOPTION "INTERLACE=false" TRANSPARENT ON END IMAGECOLOR 255 255 0 I also tried agg/png drivers together with IMAGEMODE RGBA, but all combinations give me a yellow, non transparent response (i request the layer with transparent=true and image/png as format). Can anyone give me an advice what i am doing wrong, or is this a bug? Thanks, J. Weskamm -- Dipl.-Geogr. Johannes Weskamm --- Anwendungsentwickler --- terrestris GmbH & Co. KG P?tzchens Chaussee 56 53227 Bonn Tel: +49 (0)228 / 96 28 99 -555 Fax: +49 (0)228 / 96 28 99 -57 Email: weskamm at terrestris.de Web: http://www.terrestris.de Amtsgericht Bonn, HRA 6835 Komplement?rin: terrestris Verwaltungsgesellschaft mbH vertreten durch: Hinrich Paulsen, Till Adams -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 5 Date: Mon, 17 Dec 2012 16:11:34 +0100 From: C?dric MOULLET To: mapserver-users Subject: [mapserver-users] JPEG and OVERSAMPLE_RATIO Message-ID: Content-Type: text/plain; charset="iso-8859-1" Hi, The following issue has been observed with MapServer 6.0.3: 1. Very good quality for a PNG with RESAMPLE=BILINEAR and OVERSAMPLE_RATIO=16: [image: http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-gr au-pk100_bazl&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMa p&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HE IGHT=256] 2. Less good quality for a PNG or JPEG with default resampling settings: [image: http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-gr au-pk100_original&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=G etMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=25 6&HEIGHT=256] 3. Awful quality for JPEG with RESAMPLE=BILINEAR and OVERSAMPLE_RATIO=16: [image: http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-gr au-pk100_bazl&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetM ap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&H EIGHT=256] Any idea why the OVERSAMPLE_RATIO affects heavily the quality of JPEG images ? Thanks in advance for your help, C?dric -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 6 Date: Mon, 17 Dec 2012 16:18:00 +0100 From: C?dric MOULLET To: mapserver-users Subject: Re: [mapserver-users] JPEG and OVERSAMPLE_RATIO Message-ID: Content-Type: text/plain; charset="iso-8859-1" I realize that links have been sent and not pictures Here are reachable links for the three cases: 1. https://picasaweb.google.com/lh/photo/j_OClw5fGOeQE7K1wiimytMTjNZETYmyPJ y0liipFm0?feat=directlink 2. https://picasaweb.google.com/lh/photo/3q52h52EwOp9JzZm3KAWbNMTjNZETYmyPJ y0liipFm0?feat=directlink 3. https://picasaweb.google.com/lh/photo/GTAThw7AOVMK-j-7DWAabtMTjNZETYmyPJ y0liipFm0?feat=directlink C?dric On Mon, Dec 17, 2012 at 4:11 PM, C?dric MOULLET wrote: > Hi, > The following issue has been observed with MapServer 6.0.3: > > 1. Very good quality for a PNG with RESAMPLE=BILINEAR and > OVERSAMPLE_RATIO=16: > [image: > http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-gr au-pk100_bazl&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMa p&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HE IGHT=256] > > 2. Less good quality for a PNG or JPEG with default resampling settings: > [image: > http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-gr au-pk100_original&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=G etMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=25 6&HEIGHT=256] > > 3. Awful quality for JPEG with RESAMPLE=BILINEAR and OVERSAMPLE_RATIO=16: > [image: > http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-gr au-pk100_bazl&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetM ap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&H EIGHT=256] > > Any idea why the OVERSAMPLE_RATIO affects heavily the quality of JPEG > images ? > > Thanks in advance for your help, > C?dric > -- Political blog: http://cedricmoullet.blogspot.com/ Welcome to my world: http://www.cedricmoullet.com/ My Linked In profile: http://www.linkedin.com/in/cedricmoullet Twitter: http://twitter.com/cedricmoullet Home sweet home: http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288. 90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 59, Issue 28 *********************************************** From Steve.Toutant at inspq.qc.ca Mon Dec 17 10:39:29 2012 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Mon, 17 Dec 2012 13:39:29 -0500 Subject: [mapserver-users] proportional circle legend Message-ID: Hi, I created a thematic map showing proportional circles. I did that by using a table attribute for the SIZE of my circles. It works great. CLASS NAME 'Pop' STYLE SYMBOL 'CIRCLE' SIZE [rayonquot] COLOR 168 221 181 OUTLINECOLOR 0 0 0 END END I would like to generate a nice legend for this layer. Currently I get a small dot. I would like to create a commonly used legend for proportional circles such as http://www.google.ca/imgres?imgurl=http://makingmaps.files.wordpress.com/2007/08/scaled-circles.png&imgrefurl=http://makingmaps.net/2007/08/28/perceptual-scaling-of-map-symbols/&h=437&w=684&sz=49&tbnid=9UOZ3j0H8Wah_M:&tbnh=77&tbnw=120&zoom=1&usg=__m0l8_OAAITIGopuQGi7_yE7Ge4I=&docid=1U4GvObRwxH3MM&hl=fr&sa=X&ei=YGbPUO3NLKmq0AG2t4FA&ved=0CDgQ9QEwAQ&dur=656 or http://www.google.ca/imgres?imgurl=http://www.historicalatlas.ca/website/hacolp/defining_episodes/military/unit_40/images/LEG_INFO_CE1419_final_rest.gif&imgrefurl=http://www.historicalatlas.ca/website/hacolp/defining_episodes/military/unit_40/U40_leg_info_CE1419.htm&h=90&w=217&sz=4&tbnid=nxf1TkPjY35LxM:&tbnh=50&tbnw=120&zoom=1&usg=__FbmbgCcqIwMCjLtNgWix6tyWeXc=&docid=dtQd4I2ykpB1FM&hl=fr&sa=X&ei=YGbPUO3NLKmq0AG2t4FA&ved=0CD4Q9QEwAw&dur=413 Any ideas on how to do that? thanks steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.mallen at airborne.aero Mon Dec 17 15:02:07 2012 From: peter.mallen at airborne.aero (Peter Mallen) Date: Mon, 17 Dec 2012 18:02:07 -0500 Subject: [mapserver-users] Hindi and Thai text rendering (thomas bonfort) Message-ID: <0342A56AD728D64185DB36D9514E2E7E0128CFAF@BE64.exg3.exghost.com> Hi Thomas, I was able to properly render the Hindi characters from the screenshot you had previously provided (Wazirabad), however we are still unable to render the Hindi text that I had provided earlier (Mexico City). Is there any way you could provide an image showing a Hindi translation for Mexico City from your map? This way I can match characters that I know are not rendering properly on my side. Thank You again for your help, Peter Mallen -----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: Monday, December 17, 2012 8:58 AM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 59, Issue 32 Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. Re: Hindi and Thai text rendering (Ian Walberg) 2. Re: Hindi and Thai text rendering (thomas bonfort) (Peter Mallen) ---------------------------------------------------------------------- Message: 1 Date: Mon, 17 Dec 2012 11:50:52 -0500 From: "Ian Walberg" To: "thomas bonfort" , "MapserverList OSGEO" Subject: Re: [mapserver-users] Hindi and Thai text rendering Message-ID: Content-Type: text/plain; charset="utf-8" Thomas, We are currently using fibidi 0.19.2 and can try the later versions. I have just had a look at 0.19.4 and 0.19.5 and I am not sure how to build them, there does not appear to be build instructions in them or a configure script. Have you (or anyone else on the list) built these for Linux? Thanks Ian From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas bonfort Sent: Monday, December 17, 2012 12:48 AM To: MapserverList OSGEO Subject: Re: [mapserver-users] Hindi and Thai text rendering On Mon, Dec 17, 2012 at 9:45 AM, thomas bonfort wrote: Peter, We don't do any shaping directly inside mapserver, but rely on the fribidi library to do that for us. Your mapfile definitions are correct to activate this (i.e. it includes an LABEL.ENCODING parameter). I'll leave it up to you to confirm that the image sample I sent you is correct or not. If so, check that you have configured your mapserver with fribidi enabled and uptodate (the supplied image was rendered with 0.19.2 . some stable distros use a very outdated fribidi version, so you might need to upgrade manually) . If not, you can try with a bleeding edge fribidi (0.19.5 was released a few days ago), and/or report the issue or find help from the fribidi project directly. please report back with your findings. regards, thomas On Sun, Dec 16, 2012 at 2:31 AM, Peter Mallen wrote: Hi Thomas, Here is a link to a png Image I have created of using the simple Map File I provided in the previous postings, this is exactly how the Hindi text is rendering in Map Server: http://www.maplusplus.com/images/Hindi_Incorrect.png It is appearing incorrectly and should appear as shown in this link to Google Translate: http://tinyurl.com/cqlymgy I am not sure if the Hindi you have provided is displaying correctly, although it appears to be similar to what I looked up in Google Translate. Thank You for your help, Peter Mallen -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Sat 12/15/2012 10:36 AM To: Peter Mallen Cc: MapserverList OSGEO Subject: Re: [mapserver-users] Hindi and Thai text rendering Peter, You don't provide the rendering that mapserver is producing, so it's difficult to compare. Is this rendering correct: http://osm.terriscope.fr/mapcache/tms/1.0.0/mapserver at g/15/23400/19085.p ng ? -- thomas On Sat, Dec 15, 2012 at 12:59 AM, Peter Mallen wrote: > Hello Everyone, > > I apologize for my previous posts as my url appears to have been too > long, I have converted the link to a tiny url: > http://tinyurl.com/cqlymgy > > As a reminder, this is a link showing how the Hindi characters should > display. > > Thank You Again, > > Peter Mallen > > -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 2 Date: Mon, 17 Dec 2012 11:57:33 -0500 From: "Peter Mallen" To: Subject: Re: [mapserver-users] Hindi and Thai text rendering (thomas bonfort) Message-ID: <0342A56AD728D64185DB36D9514E2E7E0128CD38 at BE64.exg3.exghost.com> Content-Type: text/plain; charset="us-ascii" Hi Thomas, I believe we are using fribidi but I am not sure which version, I will look further into this and report back to with my findings. Thank You, Peter Mallen -----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: Monday, December 17, 2012 7:18 AM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 59, Issue 28 Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. Re: Hindi and Thai text rendering (thomas bonfort) 2. [TinyOWS] TinyOWS 1.1.0 and the old good axis order trouble (Rahkonen Jukka) 3. Re: Raster color table (Daniel Morissette) 4. Problem with Transparency and IMAGECOLOR (Johannes Weskamm) 5. JPEG and OVERSAMPLE_RATIO (C?dric MOULLET) 6. Re: JPEG and OVERSAMPLE_RATIO (C?dric MOULLET) ---------------------------------------------------------------------- Message: 1 Date: Mon, 17 Dec 2012 09:47:46 +0100 From: thomas bonfort To: MapserverList OSGEO Subject: Re: [mapserver-users] Hindi and Thai text rendering Message-ID: Content-Type: text/plain; charset="utf-8" On Mon, Dec 17, 2012 at 9:45 AM, thomas bonfort wrote: > Peter, > We don't do any shaping directly inside mapserver, but rely on the > fribidi library to do that for us. Your mapfile definitions are > correct to activate this (i.e. it includes an LABEL.ENCODING parameter). > I'll leave it up to you to confirm that the image sample I sent you is > correct or not. If so, check that you have configured your mapserver > with fribidi enabled and uptodate (the supplied image was rendered with 0.19.2 . > some stable distros use a very outdated fribidi version, so you might > need to upgrade manually) . If not, you can try with a bleeding edge > fribidi > (0.19.5 was released a few days ago), and/or report the issue or find > help from the fribidi project directly. > > please report back with your findings. > > regards, > thomas > > > On Sun, Dec 16, 2012 at 2:31 AM, Peter Mallen wrote: > >> ** >> >> Hi Thomas, >> >> Here is a link to a png Image I have created of using the simple Map >> File I provided in the previous postings, this is exactly how the >> Hindi text is rendering in Map Server: >> http://www.maplusplus.com/images/Hindi_Incorrect.png >> >> It is appearing incorrectly and should appear as shown in this link >> to Google Translate: >> http://tinyurl.com/cqlymgy >> >> I am not sure if the Hindi you have provided is displaying correctly, >> although it appears to be similar to what I looked up in Google Translate. >> >> >> Thank You for your help, >> >> Peter Mallen >> >> >> >> -----Original Message----- >> From: thomas bonfort >> [mailto:thomas.bonfort at gmail.com >> ] >> Sent: Sat 12/15/2012 10:36 AM >> To: Peter Mallen >> Cc: MapserverList OSGEO >> Subject: Re: [mapserver-users] Hindi and Thai text rendering >> >> Peter, >> You don't provide the rendering that mapserver is producing, so it's >> difficult to compare. Is this rendering correct: >> http://osm.terriscope.fr/mapcache/tms/1.0.0/mapserver at g/15/23400/19085.p ng? >> >> -- >> thomas >> >> >> On Sat, Dec 15, 2012 at 12:59 AM, Peter Mallen >> wrote: >> >> > Hello Everyone, >> > >> > I apologize for my previous posts as my url appears to have been >> > too long, I have converted the link to a tiny url: >> > http://tinyurl.com/cqlymgy >> > >> > As a reminder, this is a link showing how the Hindi characters >> > should display. >> > >> > Thank You Again, >> > >> > Peter Mallen >> > >> > >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 2 Date: Mon, 17 Dec 2012 10:16:06 +0000 From: Rahkonen Jukka To: "'Mapserver-Users (mapserver-users at lists.osgeo.org)'" Subject: [mapserver-users] [TinyOWS] TinyOWS 1.1.0 and the old good axis order trouble Message-ID: <84446DEF76453C439E9E97E438E13A637C184B at suutari.haapa.mmm.fi> Content-Type: text/plain; charset="us-ascii" Hi, I have been running TinyOWS r558 for quite a long time because it is dealing almost right with the axis order of the projections I am commonly using. Now I had a fast try with the current TinyOWS 1.1.0 version but unfortunately I realized that it is doing wrong thing by flipping the axis with urn:ogc:def:crs:EPSG::3067. That system is officially an Easting-Northing system and axis should not be flipped ever. Also, TinyOWS does not flip the axes with urn:ogc:def:crs:EPSG::2393 which is officially a Northing-Easting system and axis should be flipped with WFS 1.1.0 I can see that TinyOWS is flipping the axis with WFS 1.1.0 if I I give srsName=urn:ogc:def:crs:EPSG::3067 or if I do not give it at all, which means the same because the uri-format is the default srsName. Axis order is correct if I give it as srsName=EPSG:3067. With EPSG:2393 axis are not flipped with either srsName format. What should be done next is to flip the behaviours of 2393 and 3067. What is the logic that TinyOWS is using when it decides whether the axis should be flipped or not for WFS 1.1.0? Can I manipulate TinyOWS somehow myself to behave in a correct way with EPSG:2393 and EPSG:3067 by editing something in the PostGIS or in TinyOWS sources? Another question is that is it guaranteed that axis order is handled similarly everywhere, also in filters? I mean that can I trust that once TinyOWS someday will again send urn:ogc:def:crs:EPSG::2393 data as Northing-Easting with WFS 1.1.0 it will then also treat the GML3 filters so that is knows that first comes Northing and then Easting? Does the srsName format have the same meaning if filters, so that if short srsName is used then axis order is always Easting-Northing or lon-lat, but when the uri format is used then TinyOWS is trying to check the official axis with WFS 1.1.0? -Jukka Rahkonen- ------------------------------ Message: 3 Date: Mon, 17 Dec 2012 08:03:04 -0500 From: Daniel Morissette To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Raster color table Message-ID: <50CF1808.2090301 at mapgears.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 12-12-14 5:52 PM, ALT SHN wrote: > Hi, > > Is there a way to associate a color table to a 8bit raster so > Mapserver doesn't render it in grayscale? > In the Mapserver documentation, a pallete is refered, but for what I > understood, this applies to the output format, not to a particular raster. > > Is there a workarround for this situation? (other than converting the > raster to RGB) > You could create a GDAL VRT file for your image in which you associate a color table to the raster band, and then point your MapServer layer definition to the VRT. See: http://trac.osgeo.org/gdal/wiki/FAQRaster#Howtocreateormodifyanimagecolo rtable and http://www.gdal.org/gdal_vrttut.html -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ------------------------------ Message: 4 Date: Mon, 17 Dec 2012 14:15:50 +0100 From: Johannes Weskamm To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Problem with Transparency and IMAGECOLOR Message-ID: <50CF1B06.2060902 at terrestris.de> Content-Type: text/plain; charset="iso-8859-15"; Format="flowed" Hi, I have a question regarding the transparency of my mapfile together with mapserver 6.2. The documentation tells me, that using the Parameter IMAGECOLOR together with TRANSPARENT ON in OUTPUTFORMAT, the resulting image of a wms request should have the defined color transparent. I tried different approaches but none of them work. So here is an example of my layer: LAYER TYPE POLYGON STATUS ON GROUP "default" NAME "land" PROJECTION "init=epsg:900913" END DATA "../shapefiles/test" CLASS STYLE COLOR 255 255 0 END END END The relevant Map parameters: OUTPUTFORMAT NAME 'test' DRIVER GD/PNG IMAGEMODE PC256 FORMATOPTION "INTERLACE=false" TRANSPARENT ON END IMAGECOLOR 255 255 0 I also tried agg/png drivers together with IMAGEMODE RGBA, but all combinations give me a yellow, non transparent response (i request the layer with transparent=true and image/png as format). Can anyone give me an advice what i am doing wrong, or is this a bug? Thanks, J. Weskamm -- Dipl.-Geogr. Johannes Weskamm --- Anwendungsentwickler --- terrestris GmbH & Co. KG P?tzchens Chaussee 56 53227 Bonn Tel: +49 (0)228 / 96 28 99 -555 Fax: +49 (0)228 / 96 28 99 -57 Email: weskamm at terrestris.de Web: http://www.terrestris.de Amtsgericht Bonn, HRA 6835 Komplement?rin: terrestris Verwaltungsgesellschaft mbH vertreten durch: Hinrich Paulsen, Till Adams -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 5 Date: Mon, 17 Dec 2012 16:11:34 +0100 From: C?dric MOULLET To: mapserver-users Subject: [mapserver-users] JPEG and OVERSAMPLE_RATIO Message-ID: Content-Type: text/plain; charset="iso-8859-1" Hi, The following issue has been observed with MapServer 6.0.3: 1. Very good quality for a PNG with RESAMPLE=BILINEAR and OVERSAMPLE_RATIO=16: [image: http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-gr au-pk100_bazl&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMa p&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HE IGHT=256] 2. Less good quality for a PNG or JPEG with default resampling settings: [image: http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-gr au-pk100_original&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=G etMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=25 6&HEIGHT=256] 3. Awful quality for JPEG with RESAMPLE=BILINEAR and OVERSAMPLE_RATIO=16: [image: http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-gr au-pk100_bazl&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetM ap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&H EIGHT=256] Any idea why the OVERSAMPLE_RATIO affects heavily the quality of JPEG images ? Thanks in advance for your help, C?dric -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 6 Date: Mon, 17 Dec 2012 16:18:00 +0100 From: C?dric MOULLET To: mapserver-users Subject: Re: [mapserver-users] JPEG and OVERSAMPLE_RATIO Message-ID: Content-Type: text/plain; charset="iso-8859-1" I realize that links have been sent and not pictures Here are reachable links for the three cases: 1. https://picasaweb.google.com/lh/photo/j_OClw5fGOeQE7K1wiimytMTjNZETYmyPJ y0liipFm0?feat=directlink 2. https://picasaweb.google.com/lh/photo/3q52h52EwOp9JzZm3KAWbNMTjNZETYmyPJ y0liipFm0?feat=directlink 3. https://picasaweb.google.com/lh/photo/GTAThw7AOVMK-j-7DWAabtMTjNZETYmyPJ y0liipFm0?feat=directlink C?dric On Mon, Dec 17, 2012 at 4:11 PM, C?dric MOULLET wrote: > Hi, > The following issue has been observed with MapServer 6.0.3: > > 1. Very good quality for a PNG with RESAMPLE=BILINEAR and > OVERSAMPLE_RATIO=16: > [image: > http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-gr au-pk100_bazl&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMa p&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HE IGHT=256] > > 2. Less good quality for a PNG or JPEG with default resampling settings: > [image: > http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-gr au-pk100_original&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=G etMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=25 6&HEIGHT=256] > > 3. Awful quality for JPEG with RESAMPLE=BILINEAR and OVERSAMPLE_RATIO=16: > [image: > http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-gr au-pk100_bazl&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetM ap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&H EIGHT=256] > > Any idea why the OVERSAMPLE_RATIO affects heavily the quality of JPEG > images ? > > Thanks in advance for your help, > C?dric > -- Political blog: http://cedricmoullet.blogspot.com/ Welcome to my world: http://www.cedricmoullet.com/ My Linked In profile: http://www.linkedin.com/in/cedricmoullet Twitter: http://twitter.com/cedricmoullet Home sweet home: http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288. 90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 59, Issue 28 *********************************************** ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 59, Issue 32 *********************************************** From Jukka.Rahkonen at mmmtike.fi Mon Dec 17 06:34:29 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 17 Dec 2012 14:34:29 +0000 Subject: [mapserver-users] [TinyOWS] Propertyname list does not work with Json Message-ID: <84446DEF76453C439E9E97E438E13A637C18BB@suutari.haapa.mmm.fi> Hi, This request sends XML with just selected properties http://hip.latuviitta.org/cgi-bin/tinyows?service=wfs&version=1.0.0&request=GetFeature&typename=lv:mml_railway&BBOX=246700,6780800,436400,6924000&propertyname=sahko,the_geom&maxfeatures=1 The same request with Json outpurformat gives all the properties http://hip.latuviitta.org/cgi-bin/tinyows?service=wfs&version=1.0.0&request=GetFeature&typename=lv:mml_railway&BBOX=246700,6780800,436400,6924000&propertyname=sahko,the_geom&maxfeatures=1&outputformat=application/json Tested with TinyOWS 1.1.0 on Linux Ubuntu, PostgreSQL 9.0 and PostGIS 1.5. Note that links probably work I have returned an older TinyOWS version on my server. Behaviour with json is the same, though. Shortened json would be most needed when using WFS for plain attribute queries like "What is this parcel" when the geometry of the parcel is unnecessary and the name and reference number would be enough. -Jukka Rahkonen- From i.geografica at alt-shn.org Mon Dec 17 16:32:15 2012 From: i.geografica at alt-shn.org (ALT SHN) Date: Tue, 18 Dec 2012 00:32:15 +0000 Subject: [mapserver-users] Reclassify raster cell values In-Reply-To: <50CC8DF9.3020200@geoanalytic.com> References: <50CC8DF9.3020200@geoanalytic.com> Message-ID: Thank You for the hint Brent - just wjat I needed! 2012/12/15 Brent Fraser > OFFSITE 0 0 0 -- --------------------------------------------------------------- Associa??o Leonel Trindade SOCIEDADE DE HIST?RIA NATURAL Apartado 25 2564-909 Torres Vedras Portugal Sede e Biblioteca: rua Cavaleiros da Espora Dourada, 27A 2560 Torres Vedras Laborat?rio de Paleontologia e Paleoecologia: Pol?gono Industrial do Alto do Ameal 2565-641 Ramalhal http://alt-shn.blogspot.com www.alt-shn.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier.courtin at gmail.com Mon Dec 17 23:09:33 2012 From: olivier.courtin at gmail.com (Olivier Courtin) Date: Tue, 18 Dec 2012 08:09:33 +0100 Subject: [mapserver-users] [TinyOWS] TinyOWS 1.1.0 and the old good axis order trouble In-Reply-To: <84446DEF76453C439E9E97E438E13A637C184B@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A637C184B@suutari.haapa.mmm.fi> Message-ID: On Mon, Dec 17, 2012 at 11:16 AM, Rahkonen Jukka wrote: Hi Jukka, Nice to see you again here :) I have been running TinyOWS r558 for quite a long time because it is > dealing almost right with the axis order of the projections I am commonly > using. Now I had a fast try with the current TinyOWS 1.1.0 version but > unfortunately I realized that it is doing wrong thing by flipping the axis > with urn:ogc:def:crs:EPSG::3067. > On this topic we will not make any progress, without a regression test. (OGC CITE don't cover this issue) Could you provide from a single point stored in the database, requests and answers awaited ? I could also try to write it by myself too, but will definitly need you to read it back, for all eastern stuff... What is the logic that TinyOWS is using when it decides whether the axis > should be flipped or not for WFS 1.1.0? > Mainly 2 factors, as i recall: - if it's SRS or CRS (meaning EPSG:xxxx or urn:ogc:def:crs:EPSG::xxxx) - if SRTEXT contain both AXIS["X",NORTH]] and AXIS["Easting",EAST]] -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier.courtin at gmail.com Mon Dec 17 23:11:37 2012 From: olivier.courtin at gmail.com (Olivier Courtin) Date: Tue, 18 Dec 2012 08:11:37 +0100 Subject: [mapserver-users] [TinyOWS] Propertyname list does not work with Json In-Reply-To: <84446DEF76453C439E9E97E438E13A637C18BB@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A637C18BB@suutari.haapa.mmm.fi> Message-ID: On Mon, Dec 17, 2012 at 3:34 PM, Rahkonen Jukka wrote: Jukka, Tested with TinyOWS 1.1.0 on Linux Ubuntu, PostgreSQL 9.0 and PostGIS 1.5. > I fixed a GeoJSON issue, just after 1.1.0 release, could you give a try with current trunk to be sure, it's not already fixed ? Thanks ! -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: From ealpert at digitalglobe.com Tue Dec 18 10:11:29 2012 From: ealpert at digitalglobe.com (Ethan Alpert) Date: Tue, 18 Dec 2012 11:11:29 -0700 Subject: [mapserver-users] problem displaying mask Message-ID: <8B319E5A30FF4A48BE7EEAAF609DB2330B781B1C@COMAIL01.digitalglobe.com> I'm trying to display a water mask as all black. Along the edge of the mask a set of lighter colored pixels appears when zoomed out. It appears this is from resampling the data. I have OFFSITE set and I have NO_DATA set in the GeoTIff yet something is ignoring these during render. Any suggestions? I've attached an image. Black is water white (which is set to transparent) is land. I assure you the lighter pixels are not beach/coastline. I'm using a 5.6.7. -ethan This electronic communication and any attachments may contain confidential and proprietary information of DigitalGlobe, Inc. If you are not the intended recipient, or an agent or employee responsible for delivering this communication to the intended recipient, or if you have received this communication in error, please do not print, copy, retransmit, disseminate or otherwise use the information. Please indicate to the sender that you have received this communication in error, and delete the copy you received. DigitalGlobe reserves the right to monitor any electronic communication sent or received by its employees, agents or representatives. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mask_problem.jpg Type: image/jpeg Size: 11091 bytes Desc: mask_problem.jpg URL: From ian.walberg at airborne.aero Tue Dec 18 10:53:06 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Tue, 18 Dec 2012 13:53:06 -0500 Subject: [mapserver-users] Hindi and Thai text rendering (thomas bonfort) Message-ID: Some more info, this issue has the same symptoms as we have. The initial description and the correct.png and wrong.png show the same rendering issue we are seeing. http://code.google.com/p/android/issues/detail?id=4153 We are still investigating this but at the moment do not even know what those parts of these characters are called so it's tricky to find information. Can anyone on the list read these characters? Thanks Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Peter Mallen Sent: Monday, December 17, 2012 3:02 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Hindi and Thai text rendering (thomas bonfort) Hi Thomas, I was able to properly render the Hindi characters from the screenshot you had previously provided (Wazirabad), however we are still unable to render the Hindi text that I had provided earlier (Mexico City). Is there any way you could provide an image showing a Hindi translation for Mexico City from your map? This way I can match characters that I know are not rendering properly on my side. Thank You again for your help, Peter Mallen -----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: Monday, December 17, 2012 8:58 AM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 59, Issue 32 Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. Re: Hindi and Thai text rendering (Ian Walberg) 2. Re: Hindi and Thai text rendering (thomas bonfort) (Peter Mallen) ---------------------------------------------------------------------- Message: 1 Date: Mon, 17 Dec 2012 11:50:52 -0500 From: "Ian Walberg" To: "thomas bonfort" , "MapserverList OSGEO" Subject: Re: [mapserver-users] Hindi and Thai text rendering Message-ID: Content-Type: text/plain; charset="utf-8" Thomas, We are currently using fibidi 0.19.2 and can try the later versions. I have just had a look at 0.19.4 and 0.19.5 and I am not sure how to build them, there does not appear to be build instructions in them or a configure script. Have you (or anyone else on the list) built these for Linux? Thanks Ian From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas bonfort Sent: Monday, December 17, 2012 12:48 AM To: MapserverList OSGEO Subject: Re: [mapserver-users] Hindi and Thai text rendering On Mon, Dec 17, 2012 at 9:45 AM, thomas bonfort wrote: Peter, We don't do any shaping directly inside mapserver, but rely on the fribidi library to do that for us. Your mapfile definitions are correct to activate this (i.e. it includes an LABEL.ENCODING parameter). I'll leave it up to you to confirm that the image sample I sent you is correct or not. If so, check that you have configured your mapserver with fribidi enabled and uptodate (the supplied image was rendered with 0.19.2 . some stable distros use a very outdated fribidi version, so you might need to upgrade manually) . If not, you can try with a bleeding edge fribidi (0.19.5 was released a few days ago), and/or report the issue or find help from the fribidi project directly. please report back with your findings. regards, thomas On Sun, Dec 16, 2012 at 2:31 AM, Peter Mallen wrote: Hi Thomas, Here is a link to a png Image I have created of using the simple Map File I provided in the previous postings, this is exactly how the Hindi text is rendering in Map Server: http://www.maplusplus.com/images/Hindi_Incorrect.png It is appearing incorrectly and should appear as shown in this link to Google Translate: http://tinyurl.com/cqlymgy I am not sure if the Hindi you have provided is displaying correctly, although it appears to be similar to what I looked up in Google Translate. Thank You for your help, Peter Mallen -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Sat 12/15/2012 10:36 AM To: Peter Mallen Cc: MapserverList OSGEO Subject: Re: [mapserver-users] Hindi and Thai text rendering Peter, You don't provide the rendering that mapserver is producing, so it's difficult to compare. Is this rendering correct: http://osm.terriscope.fr/mapcache/tms/1.0.0/mapserver at g/15/23400/19085.p ng ? -- thomas On Sat, Dec 15, 2012 at 12:59 AM, Peter Mallen wrote: > Hello Everyone, > > I apologize for my previous posts as my url appears to have been too > long, I have converted the link to a tiny url: > http://tinyurl.com/cqlymgy > > As a reminder, this is a link showing how the Hindi characters should > display. > > Thank You Again, > > Peter Mallen > > -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 2 Date: Mon, 17 Dec 2012 11:57:33 -0500 From: "Peter Mallen" To: Subject: Re: [mapserver-users] Hindi and Thai text rendering (thomas bonfort) Message-ID: <0342A56AD728D64185DB36D9514E2E7E0128CD38 at BE64.exg3.exghost.com> Content-Type: text/plain; charset="us-ascii" Hi Thomas, I believe we are using fribidi but I am not sure which version, I will look further into this and report back to with my findings. Thank You, Peter Mallen -----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: Monday, December 17, 2012 7:18 AM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 59, Issue 28 Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. Re: Hindi and Thai text rendering (thomas bonfort) 2. [TinyOWS] TinyOWS 1.1.0 and the old good axis order trouble (Rahkonen Jukka) 3. Re: Raster color table (Daniel Morissette) 4. Problem with Transparency and IMAGECOLOR (Johannes Weskamm) 5. JPEG and OVERSAMPLE_RATIO (C?dric MOULLET) 6. Re: JPEG and OVERSAMPLE_RATIO (C?dric MOULLET) ---------------------------------------------------------------------- Message: 1 Date: Mon, 17 Dec 2012 09:47:46 +0100 From: thomas bonfort To: MapserverList OSGEO Subject: Re: [mapserver-users] Hindi and Thai text rendering Message-ID: Content-Type: text/plain; charset="utf-8" On Mon, Dec 17, 2012 at 9:45 AM, thomas bonfort wrote: > Peter, > We don't do any shaping directly inside mapserver, but rely on the > fribidi library to do that for us. Your mapfile definitions are > correct to activate this (i.e. it includes an LABEL.ENCODING parameter). > I'll leave it up to you to confirm that the image sample I sent you is > correct or not. If so, check that you have configured your mapserver > with fribidi enabled and uptodate (the supplied image was rendered with 0.19.2 . > some stable distros use a very outdated fribidi version, so you might > need to upgrade manually) . If not, you can try with a bleeding edge > fribidi > (0.19.5 was released a few days ago), and/or report the issue or find > help from the fribidi project directly. > > please report back with your findings. > > regards, > thomas > > > On Sun, Dec 16, 2012 at 2:31 AM, Peter Mallen wrote: > >> ** >> >> Hi Thomas, >> >> Here is a link to a png Image I have created of using the simple Map >> File I provided in the previous postings, this is exactly how the >> Hindi text is rendering in Map Server: >> http://www.maplusplus.com/images/Hindi_Incorrect.png >> >> It is appearing incorrectly and should appear as shown in this link >> to Google Translate: >> http://tinyurl.com/cqlymgy >> >> I am not sure if the Hindi you have provided is displaying correctly, >> although it appears to be similar to what I looked up in Google Translate. >> >> >> Thank You for your help, >> >> Peter Mallen >> >> >> >> -----Original Message----- >> From: thomas bonfort >> [mailto:thomas.bonfort at gmail.com >> ] >> Sent: Sat 12/15/2012 10:36 AM >> To: Peter Mallen >> Cc: MapserverList OSGEO >> Subject: Re: [mapserver-users] Hindi and Thai text rendering >> >> Peter, >> You don't provide the rendering that mapserver is producing, so it's >> difficult to compare. Is this rendering correct: >> http://osm.terriscope.fr/mapcache/tms/1.0.0/mapserver at g/15/23400/19085.p ng? >> >> -- >> thomas >> >> >> On Sat, Dec 15, 2012 at 12:59 AM, Peter Mallen >> wrote: >> >> > Hello Everyone, >> > >> > I apologize for my previous posts as my url appears to have been >> > too long, I have converted the link to a tiny url: >> > http://tinyurl.com/cqlymgy >> > >> > As a reminder, this is a link showing how the Hindi characters >> > should display. >> > >> > Thank You Again, >> > >> > Peter Mallen >> > >> > >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 2 Date: Mon, 17 Dec 2012 10:16:06 +0000 From: Rahkonen Jukka To: "'Mapserver-Users (mapserver-users at lists.osgeo.org)'" Subject: [mapserver-users] [TinyOWS] TinyOWS 1.1.0 and the old good axis order trouble Message-ID: <84446DEF76453C439E9E97E438E13A637C184B at suutari.haapa.mmm.fi> Content-Type: text/plain; charset="us-ascii" Hi, I have been running TinyOWS r558 for quite a long time because it is dealing almost right with the axis order of the projections I am commonly using. Now I had a fast try with the current TinyOWS 1.1.0 version but unfortunately I realized that it is doing wrong thing by flipping the axis with urn:ogc:def:crs:EPSG::3067. That system is officially an Easting-Northing system and axis should not be flipped ever. Also, TinyOWS does not flip the axes with urn:ogc:def:crs:EPSG::2393 which is officially a Northing-Easting system and axis should be flipped with WFS 1.1.0 I can see that TinyOWS is flipping the axis with WFS 1.1.0 if I I give srsName=urn:ogc:def:crs:EPSG::3067 or if I do not give it at all, which means the same because the uri-format is the default srsName. Axis order is correct if I give it as srsName=EPSG:3067. With EPSG:2393 axis are not flipped with either srsName format. What should be done next is to flip the behaviours of 2393 and 3067. What is the logic that TinyOWS is using when it decides whether the axis should be flipped or not for WFS 1.1.0? Can I manipulate TinyOWS somehow myself to behave in a correct way with EPSG:2393 and EPSG:3067 by editing something in the PostGIS or in TinyOWS sources? Another question is that is it guaranteed that axis order is handled similarly everywhere, also in filters? I mean that can I trust that once TinyOWS someday will again send urn:ogc:def:crs:EPSG::2393 data as Northing-Easting with WFS 1.1.0 it will then also treat the GML3 filters so that is knows that first comes Northing and then Easting? Does the srsName format have the same meaning if filters, so that if short srsName is used then axis order is always Easting-Northing or lon-lat, but when the uri format is used then TinyOWS is trying to check the official axis with WFS 1.1.0? -Jukka Rahkonen- ------------------------------ Message: 3 Date: Mon, 17 Dec 2012 08:03:04 -0500 From: Daniel Morissette To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Raster color table Message-ID: <50CF1808.2090301 at mapgears.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 12-12-14 5:52 PM, ALT SHN wrote: > Hi, > > Is there a way to associate a color table to a 8bit raster so > Mapserver doesn't render it in grayscale? > In the Mapserver documentation, a pallete is refered, but for what I > understood, this applies to the output format, not to a particular raster. > > Is there a workarround for this situation? (other than converting the > raster to RGB) > You could create a GDAL VRT file for your image in which you associate a color table to the raster band, and then point your MapServer layer definition to the VRT. See: http://trac.osgeo.org/gdal/wiki/FAQRaster#Howtocreateormodifyanimagecolo rtable and http://www.gdal.org/gdal_vrttut.html -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ------------------------------ Message: 4 Date: Mon, 17 Dec 2012 14:15:50 +0100 From: Johannes Weskamm To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Problem with Transparency and IMAGECOLOR Message-ID: <50CF1B06.2060902 at terrestris.de> Content-Type: text/plain; charset="iso-8859-15"; Format="flowed" Hi, I have a question regarding the transparency of my mapfile together with mapserver 6.2. The documentation tells me, that using the Parameter IMAGECOLOR together with TRANSPARENT ON in OUTPUTFORMAT, the resulting image of a wms request should have the defined color transparent. I tried different approaches but none of them work. So here is an example of my layer: LAYER TYPE POLYGON STATUS ON GROUP "default" NAME "land" PROJECTION "init=epsg:900913" END DATA "../shapefiles/test" CLASS STYLE COLOR 255 255 0 END END END The relevant Map parameters: OUTPUTFORMAT NAME 'test' DRIVER GD/PNG IMAGEMODE PC256 FORMATOPTION "INTERLACE=false" TRANSPARENT ON END IMAGECOLOR 255 255 0 I also tried agg/png drivers together with IMAGEMODE RGBA, but all combinations give me a yellow, non transparent response (i request the layer with transparent=true and image/png as format). Can anyone give me an advice what i am doing wrong, or is this a bug? Thanks, J. Weskamm -- Dipl.-Geogr. Johannes Weskamm --- Anwendungsentwickler --- terrestris GmbH & Co. KG P?tzchens Chaussee 56 53227 Bonn Tel: +49 (0)228 / 96 28 99 -555 Fax: +49 (0)228 / 96 28 99 -57 Email: weskamm at terrestris.de Web: http://www.terrestris.de Amtsgericht Bonn, HRA 6835 Komplement?rin: terrestris Verwaltungsgesellschaft mbH vertreten durch: Hinrich Paulsen, Till Adams -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 5 Date: Mon, 17 Dec 2012 16:11:34 +0100 From: C?dric MOULLET To: mapserver-users Subject: [mapserver-users] JPEG and OVERSAMPLE_RATIO Message-ID: Content-Type: text/plain; charset="iso-8859-1" Hi, The following issue has been observed with MapServer 6.0.3: 1. Very good quality for a PNG with RESAMPLE=BILINEAR and OVERSAMPLE_RATIO=16: [image: http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-gr au-pk100_bazl&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMa p&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HE IGHT=256] 2. Less good quality for a PNG or JPEG with default resampling settings: [image: http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-gr au-pk100_original&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=G etMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=25 6&HEIGHT=256] 3. Awful quality for JPEG with RESAMPLE=BILINEAR and OVERSAMPLE_RATIO=16: [image: http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-gr au-pk100_bazl&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetM ap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&H EIGHT=256] Any idea why the OVERSAMPLE_RATIO affects heavily the quality of JPEG images ? Thanks in advance for your help, C?dric -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 6 Date: Mon, 17 Dec 2012 16:18:00 +0100 From: C?dric MOULLET To: mapserver-users Subject: Re: [mapserver-users] JPEG and OVERSAMPLE_RATIO Message-ID: Content-Type: text/plain; charset="iso-8859-1" I realize that links have been sent and not pictures Here are reachable links for the three cases: 1. https://picasaweb.google.com/lh/photo/j_OClw5fGOeQE7K1wiimytMTjNZETYmyPJ y0liipFm0?feat=directlink 2. https://picasaweb.google.com/lh/photo/3q52h52EwOp9JzZm3KAWbNMTjNZETYmyPJ y0liipFm0?feat=directlink 3. https://picasaweb.google.com/lh/photo/GTAThw7AOVMK-j-7DWAabtMTjNZETYmyPJ y0liipFm0?feat=directlink C?dric On Mon, Dec 17, 2012 at 4:11 PM, C?dric MOULLET wrote: > Hi, > The following issue has been observed with MapServer 6.0.3: > > 1. Very good quality for a PNG with RESAMPLE=BILINEAR and > OVERSAMPLE_RATIO=16: > [image: > http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-gr au-pk100_bazl&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMa p&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HE IGHT=256] > > 2. Less good quality for a PNG or JPEG with default resampling settings: > [image: > http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-gr au-pk100_original&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=G etMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=25 6&HEIGHT=256] > > 3. Awful quality for JPEG with RESAMPLE=BILINEAR and OVERSAMPLE_RATIO=16: > [image: > http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-gr au-pk100_bazl&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetM ap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&H EIGHT=256] > > Any idea why the OVERSAMPLE_RATIO affects heavily the quality of JPEG > images ? > > Thanks in advance for your help, > C?dric > -- Political blog: http://cedricmoullet.blogspot.com/ Welcome to my world: http://www.cedricmoullet.com/ My Linked In profile: http://www.linkedin.com/in/cedricmoullet Twitter: http://twitter.com/cedricmoullet Home sweet home: http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288. 90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 59, Issue 28 *********************************************** ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 59, Issue 32 *********************************************** _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From punk.kish at gmail.com Tue Dec 18 11:05:49 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Tue, 18 Dec 2012 11:05:49 -0800 Subject: [mapserver-users] Hindi and Thai text rendering (thomas bonfort) In-Reply-To: References: Message-ID: <96979A3D-0605-403F-A330-4AA87565BB4B@gmail.com> On Dec 18, 2012, at 10:53 AM, "Ian Walberg" wrote: > Some more info, this issue has the same symptoms as we have. The initial > description and the correct.png and wrong.png show the same rendering > issue we are seeing. > > http://code.google.com/p/android/issues/detail?id=4153 > > We are still investigating this but at the moment do not even know what > those parts of these characters are called so it's tricky to find > information. > > Can anyone on the list read these characters? > .. Yes, I can, but I am not sure what you are asking. I will be happy to help you on/off list. -- Puneet Kishor Science and Data Policy at Creative Commons From cedric.moullet at gmail.com Tue Dec 18 12:04:44 2012 From: cedric.moullet at gmail.com (=?ISO-8859-1?Q?C=E9dric_MOULLET?=) Date: Tue, 18 Dec 2012 21:04:44 +0100 Subject: [mapserver-users] JPEG and OVERSAMPLE_RATIO In-Reply-To: References: Message-ID: Hi, Thanks to Thomas, the problem has been solved by removing an OFFSITE parameter configuring the layer (http://mapserver.org/en/mapfile/layer.html). With the following layer configuration: PROCESSING "RESAMPLE=AVERAGE" PROCESSING "OVERSAMPLE_RATIO=16" the visual quality of the produced image is very good (for the PNG and JPEG format). Best regards, C?dric On Mon, Dec 17, 2012 at 5:11 PM, C?dric MOULLET wrote: > No, we tried with 80 and it doesn't change anything. > > > > On Mon, Dec 17, 2012 at 5:00 PM, thomas bonfort wrote: > >> >> >> >> On Mon, Dec 17, 2012 at 4:49 PM, C?dric MOULLET > > wrote: >> >>> Hi, >>> >>> Output formats: >>> >>> OUTPUTFORMAT >>> NAME "png" >>> MIMETYPE "image/png" >>> DRIVER "AGG/PNG" >>> EXTENSION "png" >>> IMAGEMODE "RGBA" >>> TRANSPARENT TRUE >>> FORMATOPTION "INTERLACE=OFF" >>> END >>> >>> OUTPUTFORMAT >>> NAME jpeg >>> DRIVER "AGG/JPEG" >>> MIMETYPE "image/jpeg" >>> IMAGEMODE RGB >>> >> >> >>> FORMATOPTION QUALITY=100 >>> >> does changing this to values between 80 and 99 change something ? >> >> >>> EXTENSION "jpg" >>> END >>> >>> URL's: >>> >>> >>> 1. >>> https://picasaweb.google.com/lh/photo/j_OClw5fGOeQE7K1wiimytMTjNZETYmyPJy0liipFm0?feat=directlink >>> 2. >>> https://picasaweb.google.com/lh/photo/3q52h52EwOp9JzZm3KAWbNMTjNZETYmyPJy0liipFm0?feat=directlink >>> 3. >>> https://picasaweb.google.com/lh/photo/GTAThw7AOVMK-j-7DWAabtMTjNZETYmyPJy0liipFm0?feat=directlink >>> >>> Thanks in advance for your help ! >>> C?dric >>> >>> >>> >>> On Mon, Dec 17, 2012 at 4:24 PM, thomas bonfort < >>> thomas.bonfort at gmail.com> wrote: >>> >>>> Can you post the outputformats defined in your mapfile, and the urls >>>> used to access each of these images? >>>> >>>> -- >>>> thomas >>>> >>>> >>>> On Mon, Dec 17, 2012 at 4:18 PM, C?dric MOULLET < >>>> cedric.moullet at gmail.com> wrote: >>>> >>>>> I realize that links have been sent and not pictures >>>>> Here are reachable links for the three cases: >>>>> 1. >>>>> https://picasaweb.google.com/lh/photo/j_OClw5fGOeQE7K1wiimytMTjNZETYmyPJy0liipFm0?feat=directlink >>>>> 2. >>>>> https://picasaweb.google.com/lh/photo/3q52h52EwOp9JzZm3KAWbNMTjNZETYmyPJy0liipFm0?feat=directlink >>>>> 3. >>>>> https://picasaweb.google.com/lh/photo/GTAThw7AOVMK-j-7DWAabtMTjNZETYmyPJy0liipFm0?feat=directlink >>>>> C?dric >>>>> >>>>> >>>>> On Mon, Dec 17, 2012 at 4:11 PM, C?dric MOULLET < >>>>> cedric.moullet at gmail.com> wrote: >>>>> >>>>>> Hi, >>>>>> The following issue has been observed with MapServer 6.0.3: >>>>>> >>>>>> 1. Very good quality for a PNG with RESAMPLE=BILINEAR and >>>>>> OVERSAMPLE_RATIO=16: >>>>>> [image: >>>>>> http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_bazl&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] >>>>>> >>>>>> 2. Less good quality for a PNG or JPEG with default resampling >>>>>> settings: >>>>>> [image: >>>>>> http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_original&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] >>>>>> >>>>>> 3. Awful quality for JPEG with RESAMPLE=BILINEAR and >>>>>> OVERSAMPLE_RATIO=16: >>>>>> [image: >>>>>> http://wms-bgdi.bgdi.admin.ch/?lang=xx&LAYERS=ch.swisstopo.pixelkarte-grau-pk100_bazl&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781&BBOX=513184,143152,519840,149808&WIDTH=256&HEIGHT=256] >>>>>> >>>>>> Any idea why the OVERSAMPLE_RATIO affects heavily the quality of JPEG >>>>>> images ? >>>>>> >>>>>> Thanks in advance for your help, >>>>>> C?dric >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Political blog: http://cedricmoullet.blogspot.com/ >>>>> Welcome to my world: http://www.cedricmoullet.com/ >>>>> My Linked In profile: http://www.linkedin.com/in/cedricmoullet >>>>> Twitter: http://twitter.com/cedricmoullet >>>>> Home sweet home: >>>>> http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 >>>>> >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>>> >>> >>> >>> -- >>> Political blog: http://cedricmoullet.blogspot.com/ >>> Welcome to my world: http://www.cedricmoullet.com/ >>> My Linked In profile: http://www.linkedin.com/in/cedricmoullet >>> Twitter: http://twitter.com/cedricmoullet >>> Home sweet home: >>> http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 >>> >>> >> > > > -- > Political blog: http://cedricmoullet.blogspot.com/ > Welcome to my world: http://www.cedricmoullet.com/ > My Linked In profile: http://www.linkedin.com/in/cedricmoullet > Twitter: http://twitter.com/cedricmoullet > Home sweet home: > http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 > > -- Political blog: http://cedricmoullet.blogspot.com/ Welcome to my world: http://www.cedricmoullet.com/ My Linked In profile: http://www.linkedin.com/in/cedricmoullet Twitter: http://twitter.com/cedricmoullet Home sweet home: http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From geomartino at gmail.com Tue Dec 18 13:20:03 2012 From: geomartino at gmail.com (Martin Ouellet) Date: Tue, 18 Dec 2012 16:20:03 -0500 Subject: [mapserver-users] mapcache running on Apache vs Lighttpd? Message-ID: Hi all, For best performance, should I use Mapcache (released with mapserver 6.2) with Apache or Lighttpd? Thanks MartinOuellet -------------- next part -------------- An HTML attachment was scrubbed... URL: From ghazale.hnt at gmail.com Wed Dec 19 02:23:52 2012 From: ghazale.hnt at gmail.com (Ghazale Harati Nezhad) Date: Wed, 19 Dec 2012 13:53:52 +0330 Subject: [mapserver-users] polygon clip/cut off at edge of tile Message-ID: I got problem on generating tiles using mapscript. the problem is that half of polygons are missing when they are biger than one tile, just the tile they are begin in it shows them other neighbor tiles do not. I believe that it has a solution which I dont know. -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniele at geosar.ch Wed Dec 19 03:26:06 2012 From: daniele at geosar.ch (Daniele Debernardi) Date: Wed, 19 Dec 2012 12:26:06 +0100 Subject: [mapserver-users] mapcache: background color Message-ID: <50D1A44E.5010505@geosar.ch> Hi, there is a possibility to change the background color of the area outside of the extent of the cache when the tile is merged toghether? example: when i request a tile with an extent that is half outsite the map extent and half inside, mapcache generates a tile with the half outsite of the map with black background and i would like to change it to white. Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Dec 19 03:47:13 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 19 Dec 2012 12:47:13 +0100 Subject: [mapserver-users] mapcache: background color In-Reply-To: <50D1A44E.5010505@geosar.ch> References: <50D1A44E.5010505@geosar.ch> Message-ID: Daniele, The background color isn't configurable, although that could become a configurable option with a bit of funding. Your other option might be to use a "mixed" image format, which will use JPEG compression for complete tiles, and png with a transparent background for tiles that are half-in/half-out. regards, thomas On Wed, Dec 19, 2012 at 12:26 PM, Daniele Debernardi wrote: > Hi, > there is a possibility to change the background color of the area outside > of the extent of the cache > when the tile is merged toghether? > > example: > when i request a tile with an extent that is half outsite the map extent > and half inside, mapcache generates > a tile with the half outsite of the map with black background and i would > like to change it to white. > > Thanks in advance > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Wed Dec 19 07:34:05 2012 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 19 Dec 2012 10:34:05 -0500 Subject: [mapserver-users] proportional circle legend In-Reply-To: References: Message-ID: <50D1DE6D.1010609@mapgears.com> Hi Steve, I think your best would be to set a KEYIMAGE in your CLASS: http://mapserver.org/mapfile/class.html Daniel On 12-12-17 1:39 PM, Steve.Toutant at inspq.qc.ca wrote: > > Hi, > I created a thematic map showing proportional circles. I did that by > using a table attribute for the SIZE of my circles. It works great. > CLASS > NAME 'Pop' > STYLE > SYMBOL 'CIRCLE' > SIZE [rayonquot] > COLOR 168 221 181 > OUTLINECOLOR 0 0 0 > END > END > > I would like to generate a nice legend for this layer. Currently I get a > small dot. I would like to create a commonly used legend for > proportional circles such as > http://www.google.ca/imgres?imgurl=http://makingmaps.files.wordpress.com/2007/08/scaled-circles.png&imgrefurl=http://makingmaps.net/2007/08/28/perceptual-scaling-of-map-symbols/&h=437&w=684&sz=49&tbnid=9UOZ3j0H8Wah_M:&tbnh=77&tbnw=120&zoom=1&usg=__m0l8_OAAITIGopuQGi7_yE7Ge4I=&docid=1U4GvObRwxH3MM&hl=fr&sa=X&ei=YGbPUO3NLKmq0AG2t4FA&ved=0CDgQ9QEwAQ&dur=656 > > > or > > http://www.google.ca/imgres?imgurl=http://www.historicalatlas.ca/website/hacolp/defining_episodes/military/unit_40/images/LEG_INFO_CE1419_final_rest.gif&imgrefurl=http://www.historicalatlas.ca/website/hacolp/defining_episodes/military/unit_40/U40_leg_info_CE1419.htm&h=90&w=217&sz=4&tbnid=nxf1TkPjY35LxM:&tbnh=50&tbnw=120&zoom=1&usg=__FbmbgCcqIwMCjLtNgWix6tyWeXc=&docid=dtQd4I2ykpB1FM&hl=fr&sa=X&ei=YGbPUO3NLKmq0AG2t4FA&ved=0CD4Q9QEwAw&dur=413 > > > Any ideas on how to do that? > thanks > steve > > > _______________________________________________ > 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 bob.basques at ci.stpaul.mn.us Wed Dec 19 08:31:34 2012 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Wed, 19 Dec 2012 16:31:34 +0000 Subject: [mapserver-users] proportional circle legend In-Reply-To: <50D1DE6D.1010609@mapgears.com> References: , <50D1DE6D.1010609@mapgears.com> Message-ID: Ok, I couldn't resist . . . http://gis.ci.stpaul.mn.us/datasets/DB/SAINT_PAUL/PUBLIC_WORKS/AVL/DEV/spec_sym_test_public.map?mapext=509450%20119950%20630550%20190050&mapsize=1211%20701&mode=legend&searchmap=true& ran into a problem with placing text on these. I tried all sorts of permutations of using LABEL to add to this for the three different sizes. I tried with a single label, separate labels, etc. Anyone got suggestions? ... CLASS NAME "Some Title" STYLE COLOR 0 255 0 OUTLINECOLOR 0 0 0 SIZE 40 SYMBOL "circle" END STYLE COLOR 255 0 0 OUTLINECOLOR 0 0 0 SIZE 30 OFFSET 0 5 SYMBOL "circle" END STYLE COLOR 255 255 0 OUTLINECOLOR 0 0 0 SIZE 20 OFFSET 0 10 SYMBOL "circle" END END .... ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Daniel Morissette [dmorissette at mapgears.com] Sent: Wednesday, December 19, 2012 9:34 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] proportional circle legend Hi Steve, I think your best would be to set a KEYIMAGE in your CLASS: http://mapserver.org/mapfile/class.html Daniel On 12-12-17 1:39 PM, Steve.Toutant at inspq.qc.ca wrote: > > Hi, > I created a thematic map showing proportional circles. I did that by > using a table attribute for the SIZE of my circles. It works great. > CLASS > NAME 'Pop' > STYLE > SYMBOL 'CIRCLE' > SIZE [rayonquot] > COLOR 168 221 181 > OUTLINECOLOR 0 0 0 > END > END > > I would like to generate a nice legend for this layer. Currently I get a > small dot. I would like to create a commonly used legend for > proportional circles such as > http://www.google.ca/imgres?imgurl=http://makingmaps.files.wordpress.com/2007/08/scaled-circles.png&imgrefurl=http://makingmaps.net/2007/08/28/perceptual-scaling-of-map-symbols/&h=437&w=684&sz=49&tbnid=9UOZ3j0H8Wah_M:&tbnh=77&tbnw=120&zoom=1&usg=__m0l8_OAAITIGopuQGi7_yE7Ge4I=&docid=1U4GvObRwxH3MM&hl=fr&sa=X&ei=YGbPUO3NLKmq0AG2t4FA&ved=0CDgQ9QEwAQ&dur=656 > > > or > > http://www.google.ca/imgres?imgurl=http://www.historicalatlas.ca/website/hacolp/defining_episodes/military/unit_40/images/LEG_INFO_CE1419_final_rest.gif&imgrefurl=http://www.historicalatlas.ca/website/hacolp/defining_episodes/military/unit_40/U40_leg_info_CE1419.htm&h=90&w=217&sz=4&tbnid=nxf1TkPjY35LxM:&tbnh=50&tbnw=120&zoom=1&usg=__FbmbgCcqIwMCjLtNgWix6tyWeXc=&docid=dtQd4I2ykpB1FM&hl=fr&sa=X&ei=YGbPUO3NLKmq0AG2t4FA&ved=0CD4Q9QEwAw&dur=413 > > > Any ideas on how to do that? > thanks > steve > > > _______________________________________________ > 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 _______________________________________________ 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 Dec 19 08:31:54 2012 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 19 Dec 2012 11:31:54 -0500 Subject: [mapserver-users] RE [Polluriel potentiel] Re: proportional circle legend SOLVED In-Reply-To: <50D1DE6D.1010609@mapgears.com> Message-ID: I need a dynamic legend since I use variable substitution in the FILTER. In the interface the user can change parameters, years per example. So the SIZE of the circles and the class titles will change. Here is what I did to manage this In the Mapfile I use one class for getmap and 3 classes for the legend FILTER (annee = '%annee%' AND contaminant = '%contaminant%' ) CLASS NAME "Concentration maximale horaire" STYLE SYMBOL 'CIRCLE' SIZE [rayonmax] COLOR 240 59 32 OUTLINECOLOR 0 0 0 END END #for the legend NAME will be replaced by TITLE and SIZE value will be change in dostuff.php CLASS NAME "rmax" STYLE SYMBOL 'CIRCLE' SIZE 15 #dummy value COLOR 240 59 32 OUTLINECOLOR 0 0 0 END END CLASS NAME "rmoy" STYLE SYMBOL 'CIRCLE' SIZE 13 #dummy value COLOR 240 59 32 OUTLINECOLOR 0 0 0 END END CLASS NAME "rmin" STYLE SYMBOL 'CIRCLE' SIZE 15 #dummy value COLOR 240 59 32 OUTLINECOLOR 0 0 0 END END The client call a php script instead of mapserver WMS requests The php script query the DB to get the values and modify the TITLE and SIZE of the classes and launch the GetMap,GetFeatureInfo and getLegendGraphic requests. Thanks for your help Steve Daniel Morissette @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2012-12-19 10:34 A mapserver-users at lists.osgeo.org cc Objet [Polluriel potentiel] Re: [mapserver-users] proportional circle legend Hi Steve, I think your best would be to set a KEYIMAGE in your CLASS: http://mapserver.org/mapfile/class.html Daniel On 12-12-17 1:39 PM, Steve.Toutant at inspq.qc.ca wrote: > > Hi, > I created a thematic map showing proportional circles. I did that by > using a table attribute for the SIZE of my circles. It works great. > CLASS > NAME 'Pop' > STYLE > SYMBOL 'CIRCLE' > SIZE [rayonquot] > COLOR 168 221 181 > OUTLINECOLOR 0 0 0 > END > END > > I would like to generate a nice legend for this layer. Currently I get a > small dot. I would like to create a commonly used legend for > proportional circles such as > http://www.google.ca/imgres?imgurl=http://makingmaps.files.wordpress.com/2007/08/scaled-circles.png&imgrefurl=http://makingmaps.net/2007/08/28/perceptual-scaling-of-map-symbols/&h=437&w=684&sz=49&tbnid=9UOZ3j0H8Wah_M:&tbnh=77&tbnw=120&zoom=1&usg=__m0l8_OAAITIGopuQGi7_yE7Ge4I=&docid=1U4GvObRwxH3MM&hl=fr&sa=X&ei=YGbPUO3NLKmq0AG2t4FA&ved=0CDgQ9QEwAQ&dur=656 > > > or > > http://www.google.ca/imgres?imgurl=http://www.historicalatlas.ca/website/hacolp/defining_episodes/military/unit_40/images/LEG_INFO_CE1419_final_rest.gif&imgrefurl=http://www.historicalatlas.ca/website/hacolp/defining_episodes/military/unit_40/U40_leg_info_CE1419.htm&h=90&w=217&sz=4&tbnid=nxf1TkPjY35LxM:&tbnh=50&tbnw=120&zoom=1&usg=__FbmbgCcqIwMCjLtNgWix6tyWeXc=&docid=dtQd4I2ykpB1FM&hl=fr&sa=X&ei=YGbPUO3NLKmq0AG2t4FA&ved=0CD4Q9QEwAw&dur=413 > > > Any ideas on how to do that? > thanks > steve > > > _______________________________________________ > 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 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Wed Dec 19 08:36:31 2012 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 19 Dec 2012 11:36:31 -0500 Subject: [mapserver-users] RE [Polluriel potentiel] Re: proportional circle legend In-Reply-To: Message-ID: I tried that also. Using offset works when you know the size of the other classes. With the method described earlier I got a legned like this Many thanks for your time and help Steve "Basques, Bob (CI-StPaul)" @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2012-12-19 11:31 A Daniel Morissette , "mapserver-users at lists.osgeo.org" cc Objet [Polluriel potentiel] Re: [mapserver-users] proportional circle legend Ok, I couldn't resist . . . http://gis.ci.stpaul.mn.us/datasets/DB/SAINT_PAUL/PUBLIC_WORKS/AVL/DEV/spec_sym_test_public.map?mapext=509450%20119950%20630550%20190050&mapsize=1211%20701&mode=legend&searchmap=true& ran into a problem with placing text on these. I tried all sorts of permutations of using LABEL to add to this for the three different sizes. I tried with a single label, separate labels, etc. Anyone got suggestions? ... CLASS NAME "Some Title" STYLE COLOR 0 255 0 OUTLINECOLOR 0 0 0 SIZE 40 SYMBOL "circle" END STYLE COLOR 255 0 0 OUTLINECOLOR 0 0 0 SIZE 30 OFFSET 0 5 SYMBOL "circle" END STYLE COLOR 255 255 0 OUTLINECOLOR 0 0 0 SIZE 20 OFFSET 0 10 SYMBOL "circle" END END .... ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Daniel Morissette [dmorissette at mapgears.com] Sent: Wednesday, December 19, 2012 9:34 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] proportional circle legend Hi Steve, I think your best would be to set a KEYIMAGE in your CLASS: http://mapserver.org/mapfile/class.html Daniel On 12-12-17 1:39 PM, Steve.Toutant at inspq.qc.ca wrote: > > Hi, > I created a thematic map showing proportional circles. I did that by > using a table attribute for the SIZE of my circles. It works great. > CLASS > NAME 'Pop' > STYLE > SYMBOL 'CIRCLE' > SIZE [rayonquot] > COLOR 168 221 181 > OUTLINECOLOR 0 0 0 > END > END > > I would like to generate a nice legend for this layer. Currently I get a > small dot. I would like to create a commonly used legend for > proportional circles such as > http://www.google.ca/imgres?imgurl=http://makingmaps.files.wordpress.com/2007/08/scaled-circles.png&imgrefurl=http://makingmaps.net/2007/08/28/perceptual-scaling-of-map-symbols/&h=437&w=684&sz=49&tbnid=9UOZ3j0H8Wah_M:&tbnh=77&tbnw=120&zoom=1&usg=__m0l8_OAAITIGopuQGi7_yE7Ge4I=&docid=1U4GvObRwxH3MM&hl=fr&sa=X&ei=YGbPUO3NLKmq0AG2t4FA&ved=0CDgQ9QEwAQ&dur=656 > > > or > > http://www.google.ca/imgres?imgurl=http://www.historicalatlas.ca/website/hacolp/defining_episodes/military/unit_40/images/LEG_INFO_CE1419_final_rest.gif&imgrefurl=http://www.historicalatlas.ca/website/hacolp/defining_episodes/military/unit_40/U40_leg_info_CE1419.htm&h=90&w=217&sz=4&tbnid=nxf1TkPjY35LxM:&tbnh=50&tbnw=120&zoom=1&usg=__FbmbgCcqIwMCjLtNgWix6tyWeXc=&docid=dtQd4I2ykpB1FM&hl=fr&sa=X&ei=YGbPUO3NLKmq0AG2t4FA&ved=0CD4Q9QEwAw&dur=413 > > > Any ideas on how to do that? > thanks > steve > > > _______________________________________________ > 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 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: proportionalCircleLegend.png Type: application/octet-stream Size: 10569 bytes Desc: not available URL: From Steve.Lime at state.mn.us Wed Dec 19 10:09:53 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 19 Dec 2012 18:09:53 +0000 Subject: [mapserver-users] polygon clip/cut off at edge of tile In-Reply-To: References: Message-ID: We'd need more information about your code to help. I can't think of how this would be possible for just straight feature drawing. Labels are another matter. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ghazale Harati Nezhad Sent: Wednesday, December 19, 2012 4:24 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] polygon clip/cut off at edge of tile I got problem on generating tiles using mapscript. the problem is that half of polygons are missing when they are biger than one tile, just the tile they are begin in it shows them other neighbor tiles do not. I believe that it has a solution which I dont know. -------------- next part -------------- An HTML attachment was scrubbed... URL: From M.Kofahl at gmx.net Wed Dec 19 14:05:23 2012 From: M.Kofahl at gmx.net (Martin Kofahl) Date: Wed, 19 Dec 2012 23:05:23 +0100 Subject: [mapserver-users] WFS Server - GetCapabilities : Wrong WGS84BoundingBox In-Reply-To: <1350403983779-5009072.post@n6.nabble.com> References: <1350403983779-5009072.post@n6.nabble.com> Message-ID: <20121219220523.254130@gmx.net> Ludovic, can you please check the BBOX you said to be correct? According to your mail EPSG:27562 BBOX 856234 15002 977228 165832 should be transformed to WGS84 5.59081 45.0235 7.27355 46.4437. What about 5.59118 45.0322 7.2442 46.4436? This is what ogr2ogr tells me. In case you can confirm this bbox I'll update the patch which will then probably go into next 6.2 release. Kind regards, Martin -------- Original-Nachricht -------- > Datum: Tue, 16 Oct 2012 09:13:03 -0700 (PDT) > Von: Ludovic Gnemmi > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] WFS Server - GetCapabilities : Wrong WGS84BoundingBox > Hi List, > And i'm a bit lost with my server : > For each layer : The WGS84BoundingBox returned by WFS Capabilities is > different from EX_GeographicBoundingBox returned by the WMS Capabilities > (which is correct). Longitudes are slightly offset. And I don't undestand > why. I'm runing MS 6.2rc1 (with gdal 1.9.2) > > Thanks for your help > > *WFS Capabilities for my layer*: > > commune > commune > urn:ogc:def:crs:EPSG::27562 > text/xml; subtype=gml/3.1.1 > > *3.25449830506514* > 45.0322364698095*4.90746655965819* > 46.4436690375305 > > *WMS Capabilities for the same layer: * > > > commune > commune > EPSG:27562 > > *5.59081* > *7.27355* > 45.0235 > 46.4437 > > maxy="165840"/>3.25449830506514 > 45.0322364698095 > 4.90746655965819 > 46.4436690375305 > > > *And my map file :* > > map > name "mymap" > extent 856234 15002 977228 165832 > units meters > > projection > "init=epsg:27562" > end > > web > metadata > "wms_title" "Test WMS" > "wms_srs" "EPSG:27562" > "wfs_title" "Test WFS" > "wfs_onlineresource" "http://..//mapfiles/mymap.map" > "wfs_maxfeatures" "10000" > "ows_enable_request" "*" > END > end > > LAYER > CONNECTIONTYPE oraclespatial > CONNECTION "usr/pwd at 192.168.10.18:1521/ora10" > DATA "GEOM FROM usr.COMMUNE_PS USING UNIQUE UNIQUE_ID" > NAME "commune" > DUMP TRUE > projection > "init=epsg:27562" > end > METADATA > "wms_title" "commune" > "wms_extent" "856234 15002 977228 165832" > "wfs_extent" "856234 15002 977228 165832" > "wfs_title" "commune" > "ows_srs" "EPSG:27562" > "gml_include_items" "all" > "gml_featureid" "UNIQUE_ID" > END > TYPE polygon > OPACITY 100 > SIZEUNITS pixels > LABELITEM "NOM" > CLASS > NAME "Untitled class" > STYLE > OPACITY 100 > OUTLINECOLOR 21 21 21 > WIDTH 1 > END > END > END > > > > > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/WFS-Server-GetCapabilities-Wrong-WGS84BoundingBox-tp5009072.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 lgnemmi at rgd73-74.fr Thu Dec 20 06:11:47 2012 From: lgnemmi at rgd73-74.fr (Ludovic Gnemmi) Date: Thu, 20 Dec 2012 06:11:47 -0800 (PST) Subject: [mapserver-users] WFS Server - GetCapabilities : Wrong WGS84BoundingBox In-Reply-To: <20121219220523.254130@gmx.net> References: <1350403983779-5009072.post@n6.nabble.com> <20121219220523.254130@gmx.net> Message-ID: <1356012707749-5024107.post@n6.nabble.com> Martin, Yes i confirm your bbox is correct ! Thanks a lot Ludovic -- View this message in context: http://osgeo-org.1560.n6.nabble.com/WFS-Server-GetCapabilities-Wrong-WGS84BoundingBox-tp5009072p5024107.html Sent from the Mapserver - User mailing list archive at Nabble.com. From geomartino at gmail.com Thu Dec 20 07:08:37 2012 From: geomartino at gmail.com (Martin Ouellet) Date: Thu, 20 Dec 2012 10:08:37 -0500 Subject: [mapserver-users] Compiling Mapserver (6.2) with PostGIS support Without PG on the machine Message-ID: Hi, I want to compile Mapserver (6.2) on a RHEL5 64bit machine with PostGIS support but Postgresql is NOT installed on the machine. Before I run the compilation, I've have installed some libraries (with yum rpm): postgresql92.x86_64 postgresql92-libs.x86_64 postgresql92-devel.x86_64 I think the required libraries for the PostGIS support are there because find / -name 'libpq*' return /usr/pgsql-9.2/lib/libpq.so.5 /usr/pgsql-9.2/lib/libpq.a /usr/pgsql-9.2/lib/libpq.so /usr/pgsql-9.2/lib/libpq.so.5.5 and more.... When I execute * ./configure --prefix=/usr/local/ --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-curl=/usr/bin/curl-config[[BR]] --enable-debug --with-proj=/usr/local/ --with-tiff=/usr/ --with-jpeg=/usr/local/ --with-freetype=/usr/local/ --with-threads --with-xml2-config=/usr/bin/xml2-config --with-png=/usr/ --with-wmsclient --with-wmsserver --with-wfs --with-wfsclient --with-gif=/usr/ --with-geos=/usr/local/bin/geos-config --with-postgis* * * *I've got* -------------- Data Format Drivers ------- PostGIS support: ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL Oracle Spatial support: any idea? MartinOuellet -------------- next part -------------- An HTML attachment was scrubbed... URL: From geomartino at gmail.com Thu Dec 20 13:14:37 2012 From: geomartino at gmail.com (Martin Ouellet) Date: Thu, 20 Dec 2012 16:14:37 -0500 Subject: [mapserver-users] Compiling Mapserver (6.2) with PostGIS support Without PG on the machine In-Reply-To: References: Message-ID: *Compiling * *GDAL **--with-pg=/usr/pgsql-9.2/bin/pg_config* *and* *Mapserver **--with-postgis=/usr/pgsql-9.2/bin/pg_config * *solved my problem!* * * *cheers* * * *MartinO* On Thu, Dec 20, 2012 at 10:08 AM, Martin Ouellet wrote: > Hi, > > I want to compile Mapserver (6.2) on a RHEL5 64bit machine with PostGIS > support but Postgresql is NOT installed on the machine. > > Before I run the compilation, I've have installed some libraries (with yum > rpm): > postgresql92.x86_64 > postgresql92-libs.x86_64 > postgresql92-devel.x86_64 > > > I think the required libraries for the PostGIS support are > there because find / -name 'libpq*' > return > /usr/pgsql-9.2/lib/libpq.so.5 > /usr/pgsql-9.2/lib/libpq.a > /usr/pgsql-9.2/lib/libpq.so > /usr/pgsql-9.2/lib/libpq.so.5.5 > and more.... > > When I execute > * ./configure --prefix=/usr/local/ --with-gdal=/usr/local/bin/gdal-config > --with-ogr=/usr/local/bin/gdal-config > --with-curl=/usr/bin/curl-config[[BR]] --enable-debug > --with-proj=/usr/local/ --with-tiff=/usr/ --with-jpeg=/usr/local/ > --with-freetype=/usr/local/ --with-threads > --with-xml2-config=/usr/bin/xml2-config --with-png=/usr/ --with-wmsclient > --with-wmsserver --with-wfs --with-wfsclient --with-gif=/usr/ > --with-geos=/usr/local/bin/geos-config --with-postgis* > * > * > *I've got* > -------------- Data Format Drivers ------- > PostGIS support: > ArcSDE support: > OGR support: -DUSE_OGR > GDAL support: -DUSE_GDAL > Oracle Spatial support: > > any idea? > > MartinOuellet > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Fri Dec 21 09:14:34 2012 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Fri, 21 Dec 2012 12:14:34 -0500 Subject: [mapserver-users] GetLegendGRaphic using RULE Message-ID: Hi, My Layer is defined with several CLASS and one is defined like this CLASS NAME "no_data" TITLE "No data" END I want to use this class when there is no data. I use RULE parameter in the request, Below are the parameter. Only this class is "returned" but the image is empty. If I don't use RULE, I get all the other class and this one also with the title. Why, the title is not rendered? Even if I add STYLE I still get en empty image using RULE. EXCEPTIONS application/vnd.ogc.se_inimage FORMAT image/png LAYER RSS_ASTHME REQUEST GetLegendGraphic SCALE 866688.0326645132 SERVICE WMS TRANSPARENT TRUE VERSION 1.1.1 RULE no_data thanks steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniele at geosar.ch Thu Dec 27 02:36:27 2012 From: daniele at geosar.ch (Daniele Debernardi) Date: Thu, 27 Dec 2012 11:36:27 +0100 Subject: [mapserver-users] mapcache: background color In-Reply-To: References: <50D1A44E.5010505@geosar.ch> Message-ID: <50DC24AB.1060700@geosar.ch> Hi, I tried with your suggestion to use a mixed image format but with unsuccessful results. For my case I just need to force that black background color to white, is there anyplace in mapcache code where I can change it? Any suggestion on which part of the code I have to look would be enough. Thanks, Daniele On 19. 12. 12 12:47, thomas bonfort wrote: > Daniele, > The background color isn't configurable, although that could become a > configurable option with a bit of funding. Your other option might be > to use a "mixed" image format, which will use JPEG compression for > complete tiles, and png with a transparent background for tiles that > are half-in/half-out. > > regards, > thomas > > > On Wed, Dec 19, 2012 at 12:26 PM, Daniele Debernardi > > wrote: > > Hi, > there is a possibility to change the background color of the area > outside of the extent of the cache > when the tile is merged toghether? > > example: > when i request a tile with an extent that is half outsite the map > extent and half inside, mapcache generates > a tile with the half outsite of the map with black background and > i would like to change it to white. > > Thanks in advance > > > _______________________________________________ > 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 Dec 27 03:03:00 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 27 Dec 2012 12:03:00 +0100 Subject: [mapserver-users] mapcache: background color In-Reply-To: <50DC24AB.1060700@geosar.ch> References: <50D1A44E.5010505@geosar.ch> <50DC24AB.1060700@geosar.ch> Message-ID: imageio_jpeg.c, around line 200: also extract alpha along with red,green,blue. if alpha=0, set pixptrs to 255 instead of *r,*g,*b. -- thomas On Thu, Dec 27, 2012 at 11:36 AM, Daniele Debernardi wrote: > Hi, > I tried with your suggestion to use a mixed image format but with > unsuccessful results. > For my case I just need to force that black background color to white, is > there anyplace in > mapcache code where I can change it? > > Any suggestion on which part of the code I have to look would be enough. > > Thanks, > Daniele > > > On 19. 12. 12 12:47, thomas bonfort wrote: > > Daniele, > The background color isn't configurable, although that could become a > configurable option with a bit of funding. Your other option might be to > use a "mixed" image format, which will use JPEG compression for complete > tiles, and png with a transparent background for tiles that are > half-in/half-out. > > regards, > thomas > > > On Wed, Dec 19, 2012 at 12:26 PM, Daniele Debernardi wrote: > >> Hi, >> there is a possibility to change the background color of the area outside >> of the extent of the cache >> when the tile is merged toghether? >> >> example: >> when i request a tile with an extent that is half outsite the map extent >> and half inside, mapcache generates >> a tile with the half outsite of the map with black background and i would >> like to change it to white. >> >> Thanks in advance >> >> >> _______________________________________________ >> 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 daniele at geosar.ch Thu Dec 27 09:00:27 2012 From: daniele at geosar.ch (Daniele Debernardi) Date: Thu, 27 Dec 2012 18:00:27 +0100 Subject: [mapserver-users] mapcache: background color In-Reply-To: References: <50D1A44E.5010505@geosar.ch> <50DC24AB.1060700@geosar.ch> Message-ID: <50DC7EAB.9010608@geosar.ch> Thanks, it worked! Now I'm trying to solve the same problem on png output, if a request is outside the extent it will return a trasparent png, and that is ok, when I request a tile that is half-in and half-out the extent, the half-out part should be transparent instead of white. Any suggestion on how to solve this? Daniele On 27. 12. 12 12:03, thomas bonfort wrote: > imageio_jpeg.c, around line 200: also extract alpha along with > red,green,blue. if alpha=0, set pixptrs to 255 instead of *r,*g,*b. > > -- > thomas > > > On Thu, Dec 27, 2012 at 11:36 AM, Daniele Debernardi > > wrote: > > Hi, > I tried with your suggestion to use a mixed image format but with > unsuccessful results. > For my case I just need to force that black background color to > white, is there anyplace in > mapcache code where I can change it? > > Any suggestion on which part of the code I have to look would be > enough. > > Thanks, > Daniele > > > On 19. 12. 12 12:47, thomas bonfort wrote: >> Daniele, >> The background color isn't configurable, although that could >> become a configurable option with a bit of funding. Your other >> option might be to use a "mixed" image format, which will use >> JPEG compression for complete tiles, and png with a transparent >> background for tiles that are half-in/half-out. >> >> regards, >> thomas >> >> >> On Wed, Dec 19, 2012 at 12:26 PM, Daniele Debernardi >> > wrote: >> >> Hi, >> there is a possibility to change the background color of the >> area outside of the extent of the cache >> when the tile is merged toghether? >> >> example: >> when i request a tile with an extent that is half outsite the >> map extent and half inside, mapcache generates >> a tile with the half outsite of the map with black background >> and i would like to change it to white. >> >> Thanks in advance >> >> >> _______________________________________________ >> 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 Mon Dec 31 02:10:23 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Mon, 31 Dec 2012 11:10:23 +0100 Subject: [mapserver-users] Using imagemap calls Message-ID: Hi, I'm studying the image map configuration to use it. I see the sample available : http://mapserver.org/output/imagemaps.html It is quite clear. But my use-case is little different. I know the bbox in another SRS rather than the SRS of shapefile datasource. So I need (as in the wms) send the request using a BBOX on a different SRS and also say to the mapserver (imagemap configuration) the SRS I' m using. This is easy on a wms call using the SRS parameter. In the imagemap configuration (cgi) there is a parameter to say the used SRS to the server for imagemap ? Thx. -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From Greg.Moffatt at amec.com Mon Dec 10 05:32:11 2012 From: Greg.Moffatt at amec.com (Moffatt, Greg) Date: Mon, 10 Dec 2012 13:32:11 -0000 Subject: [mapserver-users] GML Invalid exterior ring Message-ID: <6105664C4DC4AA4FA4D728662762382F03EA28A173@ATT1-MBX3.global.amec.com> Hi all, I posted this on the ms4w list last week, but I haven't had any response, so please forgive my cross-post. I have a GML file that's generated by SQL Server that contains one or more polygons. It used to work, but since I've upgraded the ms4w installation on my web server, any requests to MapServer for that layer fail with the message: msOGRFileNextShape(): OGR error. Invalid exterior ring. An example of the GML is attached, along with a .map file. I've worked my way back through the ms4w versions, and have found that a change between 3.0.3 and 3.0.4-beta1 may be the culprit: ms4w 3.0.3 - Works ms4w 3.0.4-beta1 - Invalid exterior ring ms4w 3.0.5 - Invalid exterior ring ms4w 3.0.6 - Invalid exterior ring GDAL changed from 1.8.1RC2 to 1.9.0 in that step. I've looked through the GDAL release notes, but nothing is jumping out at me. Two questions: 1. Do you know of any reason why the GML would fail to draw in recent versions? Ideally, I'd like to correct my GML or MapServer configuration to get it to work in the latest ms4w version. 2. If there's no solution in #1, would it be feasible to downgrade GDAL/OGR while keeping the remainder of ms4w intact (or would that be asking for trouble)? A million thanks, Greg The information contained in this e-mail is intended only for the individual or entity to whom it is addressed. Its contents (including any attachments) may contain confidential and/or privileged information. If you are not an intended recipient you must not use, disclose, disseminate, copy or print its contents. If you receive this e-mail in error, please notify the sender by reply e-mail and delete and destroy the message. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Map.map URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Warnings_en-CA.gml Type: application/octet-stream Size: 65535 bytes Desc: Warnings_en-CA.gml URL: From boedy1996 at gmail.com Sun Dec 16 23:38:12 2012 From: boedy1996 at gmail.com (Budi Hermansyah) Date: Mon, 17 Dec 2012 07:38:12 -0000 Subject: [mapserver-users] wms tile image problem Message-ID: Hi Guys, I've tried to overlay the lance-modis daily wms image with openlayers, but i've got the tiles position are not correct like seen on the picture below. [image: Inline image 1] and my code to initiate the layer are : var Terra250_721 = new OpenLayers.Layer.MapServer( "Terra250m_MODIS-bands7,2,1", " http://lance-modis.eosdis.nasa.gov/cgi-bin/mapserv.cgi?map_layer[Terra250_721]=DATA+terr_721"+ "_2012348" + ".vrt", { layers:"Terra250_721", format: "image/jpeg;mode=24bit", map: 'rrglobal_terra250_721.map', // srsName : 'EPSG:900913', transparent: true },{ isBaseLayer: false, opacity : 0.5, getURL : getwmsurl }); APP.map.addLayer(Terra250_721); APP.map.addControl( new OpenLayers.Control.LayerSwitcher() ); function getwmsurl(bounds){ // console.log(bounds); // console.log(this.map.getResolution()); bounds.transform(new OpenLayers.Projection("EPSG:900913"), new OpenLayers.Projection("EPSG:4326")); // console.log(parseFloat(bounds.left).toFixed(2)+"+"+parseFloat(bounds.bottom).toFixed(2)+"+"+parseFloat(bounds.right).toFixed(2)+"+"+parseFloat(bounds.top).toFixed(2)); var url = this.url; url += "&layers="+this.params.layers; url += "&map="+this.params.map; url += "&mode="+this.params.mode; url += "&map_imagetype="+this.params.map_imagetype; url += "&mapext="+parseFloat(bounds.left).toFixed(2)+"+"+parseFloat(bounds.bottom).toFixed(2)+"+"+parseFloat(bounds.right).toFixed(2)+"+"+parseFloat(bounds.top).toFixed(2); url += "&imgext="+parseFloat(bounds.left).toFixed(2)+"+"+parseFloat(bounds.bottom).toFixed(2)+"+"+parseFloat(bounds.right).toFixed(2)+"+"+parseFloat(bounds.top).toFixed(2); url += "&map_size=256+256"; url += "&imgx=128"; url += "&imgy=128"; url += "&imgxy=256+256"; return url; } any idea what wrong with that? Thanks, -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 948789 bytes Desc: not available URL: