| 01:14:37 | dineo: | hi nhv |
| 05:21:47 | strk: | alright, legend time |
| 05:35:54 | strk: | can I request legend embedding with a CGI variable ? |
| 05:36:57 | strk: | ie: turn it on/off |
| 05:41:16 | AlanB: | perhaps you can change the legend status with something like map_legend_status=... |
| 05:41:26 | AlanB: | ( not sure ) |
| 05:43:28 | strk: | &map_legend_status=on |
| 05:43:39 | strk: | loadLegend( ): Unknown identifier. Parsing error near ( on ):( line 1 ) |
| 05:43:54 | strk: | interesting |
| 05:44:46 | strk: | where can I read about these overrides ? |
| 05:44:47 | AlanB: | emm |
| 05:47:44 | akrherz: | strk: does it need to be ms_on instead of on? |
| 05:48:25 | strk: | http://mapserver.org/cgi/controls.html#changing-map-file-parameters-via-a-form-or-a-url |
| 05:48:29 | strk: | akrherz: nope, doesn't work anyway |
| 05:48:31 | sigabrt: | Title: MapServer CGI Controls MapServer 5.4.2 documentation ( at mapserver.org ) |
| 05:49:12 | strk: | map.legend=STATUS+embed |
| 05:49:14 | strk: | ^^^ this works |
| 05:49:37 | AlanB: | hehe |
| 05:53:35 | chippy: | hi, I'm looking to get transparent png8 images. Has the config switch -with-experimental-png introduced in 5.2 been changed to something well, less experimental / built-in ? |
| 06:01:16 | tbonfort: | chippy: it hasn't changed, but there have been no problems reported with it from users |
| 06:02:07 | chippy: | okay thank you tbonfort : ) |
| 06:08:16 | strk: | ok, now that I have my nice embedded legend I decided I don't want it embedded anymore :P |
| 06:08:37 | strk: | but it's good to learn how to modify mapfile snippets at request time |
| 07:03:51 | zesoze: | Mapserv can only retrieve geometry columns, or can I get data from others columns too? |
| 07:04:03 | strk: | other columns too |
| 07:04:20 | strk: | all the columns returned by your query |
| 07:04:33 | strk: | all the ones in your table for DATA xxx from <table> |
| 07:05:07 | zesoze: | but how can I use this information? I mean, can I show it for users using openlayers? |
| 07:05:13 | strk: | also more using JOIN objects but I've never used that |
| 07:05:28 | strk: | with WFS protocol you can send the values in GML form |
| 07:05:38 | strk: | with WMS you could use them for labelling |
| 07:05:48 | strk: | or you could use them for classifying/thematizing |
| 07:06:02 | zesoze: | wfs protocol...hum... I need to configure mapserv to be a wfs server ok? |
| 08:02:01 | zesoze: | can I do something like that in DATA clause: DATA "to_hex( svy ) as color,stridx,geom from bid_strobs_view"? |
| 08:09:14 | hobu: | zesoze: yes, I think so, but you might need the latest ( trunk ) verson of the software to use postgis views |
| 08:10:40 | zesoze: | I have mapserv 5.4.2...is this? |
| 08:11:13 | zesoze: | I test it...and the points are show...but the color did not change |
| 08:11:38 | hobu: | oh, you want the color to change based on an attribute from the table/view? |
| 08:11:54 | hobu: | You need to look up "attribute binding", which 5.4.2 should have no problem |
| 08:12:54 | zesoze: | yes |
| 08:13:05 | zesoze: | Could you see my map file? |
| 08:13:14 | zesoze: | I will paste it |
| 08:13:55 | zesoze: | http://pastebin.ca/1675077 |
| 08:13:56 | sigabrt: | Title: pastebin - Jos - post number 1675077 ( at pastebin.ca ) |
| 08:16:02 | hobu: | zesoze: I think you just need COLOR [color] |
| 08:16:09 | zesoze: | I try it to |
| 08:16:10 | jmckenna: | what happens with "COLOR [color]" ? |
| 08:16:12 | zesoze: | too |
| 08:16:15 | jmckenna: | : ) |
| 08:16:17 | zesoze: | let me see |
| 08:16:33 | hobu: | also, make sure the color column in the view is returning a text 3-tuple "255 255 255" |
| 08:16:53 | zesoze: | no it return a integer in this case 1 |
| 08:16:56 | hobu: | so if you want something more complex, you'll have to do that within the database and make your color column |
| 08:18:34 | zesoze: | I need return a 3-tuple? I can't return a hexadecimal representation of |
| 08:18:35 | zesoze: | 1 |
| 08:19:03 | hobu: | maybe hexidecimal as string. lemme check |
| 08:21:20 | hobu: | looks like the string needs to start with a # if it's hex |
| 08:22:15 | jmckenna: | ( i did not know this ) |
| 08:23:03 | zesoze: | so with I do: DATA "to_hex( svy )::text as color,stridx,geom from bid_strobs_view" and COLOR #[color]??? |
| 08:23:09 | hobu: | http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapfile.c#L366 |
| 08:23:13 | sigabrt: | Title: /trunk/mapserver/mapfile.c - MapServer - Trac ( at trac.osgeo.org ) |
| 08:23:27 | hobu: | COLOR [color] |
| 08:23:36 | jmckenna: | ah |
| 08:23:37 | hobu: | and DATA "'#'||to_hex( svy )::text as color,stridx,geom from bid_strobs_view" |
| 08:23:46 | zesoze: | hum ok |
| 08:23:50 | zesoze: | let me try |
| 08:24:41 | hobu: | you need to make the hex string in whatever format mapserver can read. I suspect it's #000000 |
| 08:25:00 | hobu: | so if you're returning ints instead of strings, what does that end up being instead of black? |
| 08:25:21 | CIA-80: | tomkralidis * r9552 /trunk/msautotest/wxs/wms_sld_proj.map: update line feeds |
| 08:25:30 | zesoze: | I think that I can't use alias |
| 08:25:37 | zesoze: | it does not work |
| 08:25:57 | akrherz: | don't you have to use a subselect for that to work? |
| 08:26:31 | zesoze: | akrherz, subselect? |
| 08:26:53 | : | * AlanB gives back oracle ticket to hobu and runs away |
| 08:26:55 | akrherz: | geom from ( select '#'||to_hex( svy )::text as color,stridx,geom from bid_strobs_view ) as foo using SRID=4326 |
| 08:26:59 | AlanB: | :P |
| 08:27:11 | hobu: | AlanB uh, which oracle ticket? |
| 08:27:39 | AlanB: | just kidding, just angry about the memory leak ticket. |
| 08:27:49 | zesoze: | akrherz, I use it in DATA clause? |
| 08:27:56 | AlanB: | brb after lunch |
| 08:27:57 | akrherz: | zesoze: yup |
| 08:28:06 | zesoze: | let me try akrherz |
| 08:28:08 | hobu: | AlanB: ah, not fair, I know : ) |
| 08:31:44 | pramsey: | the hidden bug, a tough one AlanB |
| 08:32:12 | zesoze: | I looked for logs and I found it: http://pastebin.ca/1675096 |
| 08:32:13 | sigabrt: | Title: pastebin - Stuff - post number 1675096 ( at pastebin.ca ) |
| 08:33:50 | akrherz: | zesoze, whoa, what is your data statement currently? |
| 08:34:13 | zesoze: | you mean my map file? |
| 08:34:26 | akrherz: | yes, what is your current DATA statement in your mapfile |
| 08:34:47 | zesoze: | DATA "'#'||to_hex( svy )::text as color,stridx,geom from bid_strobs_view" |
| 08:36:27 | akrherz: | so, you didn't try what I suggested? |
| 08:37:17 | zesoze: | no, I tried it because I forgot to configure my wms server to show this layer |
| 08:37:25 | zesoze: | I will try what yoy suggest |
| 08:39:16 | zesoze: | akrherz, I tried what you suggest, and the error changes, look: http://pastebin.ca/1675102 |
| 08:39:17 | sigabrt: | Title: pastebin - Someone - post number 1675102 ( at pastebin.ca ) |
| 08:39:25 | zesoze: | it is about oid |
| 08:40:16 | hobu: | stridx as oid |
| 08:40:28 | zesoze: | hum..let me try |
| 08:41:59 | zesoze: | uauuuu..now I don't understand the error: http://pastebin.ca/1675105 |
| 08:42:00 | sigabrt: | Title: pastebin - Someone - post number 1675105 ( at pastebin.ca ) |
| 08:42:23 | hobu: | is stridx not unique? |
| 08:42:49 | hobu: | oh |
| 08:42:54 | hobu: | as foo USING UNIQUE oid USING SRID=4326 |
| 08:43:07 | pramsey: | oid probably doesn't exist |
| 08:43:20 | pramsey: | it's been deprecated for almost 5 years |
| 08:43:54 | hobu: | won't that hint msPostGISRetrievePK though? |
| 08:44:23 | pramsey: | yes, it will |
| 08:44:27 | pramsey: | ( hint it to not run ) |
| 08:44:44 | zesoze: | oh |
| 08:45:06 | zesoze: | it works, although show that erro |
| 08:45:24 | zesoze: | I can see the points in red if I do: |
| 08:45:31 | zesoze: | DATA " geom from ( select '#ff0000' as color,stridx as oid,geom from bid_strobs_view ) as foo using SRID=4326" |
| 08:46:03 | zesoze: | how svy is 1 .... color should be black ok? |
| 08:46:18 | hobu: | if your color is just an integer, and not a six-digit hexidecimal color, you aren't going to get anything |
| 08:46:46 | hobu: | or is it a hex column or something? |
| 08:47:33 | zesoze: | svy is a integer column |
| 08:47:57 | hobu: | how would you store 0000ff in an integer column? |
| 08:48:24 | zesoze: | I did not do it....I only store 1 and then to_hex( 1 ) |
| 08:48:49 | pramsey: | what color is '1' supposed to be? |
| 08:48:52 | hobu: | MapServer's attribute binding works with either a 3-tuple, or a hexadecimal representation as a string. You'll need to coerce your data to meet either of those requirements |
| 08:50:38 | zesoze: | r=0 g=0 b=1 |
| 08:52:43 | zesoze: | where can I paste a image from mapserv to you see. The data appears to be cut ...strange |
| 08:54:32 | zesoze: | I use using stridx without stridx as oid and its works |
| 08:54:54 | zesoze: | but the points appears to be cut...only a quarter of some points are showed ... |
| 09:50:06 | zesoze: | to show informations about geometry columns I need use GML? |
| 10:03:58 | zesoze: | how can I use LABEL to labeling a polygon from a column value |
| 10:07:32 | zesoze: | LABEL [column]? |
| 11:19:29 | leifer: | looking at the WMS Performance Shootout 2009 presentation ( http://www.slideshare.net/gatewaygeomatics.com/wms-performance-shootout ), using fastcgi is an obvious improvement |
| 11:19:39 | leifer: | is there any reason not to use fastcgi? |
| 11:19:57 | strk: | setup hassle : ) |
| 11:20:32 | leifer: | the apache config required? |
| 11:20:49 | strk: | that and mapserver rebuild I guess |
| 11:21:07 | leifer: | k, i'm just proposing that Fedora build mapserver --with-fastcgi by default |
| 11:21:27 | leifer: | regular cgi will still work right? |
| 11:23:30 | FrankW: | leifer: yes, regular still works fine with fastcgi builds. |
| 11:23:44 | FrankW: | And it would be good for distributors to package fastcgi enabled mapserver. |
| 11:24:40 | leifer: | FrankW: i'll file a bug with fedora and see what happens |
| 11:24:44 | AlanB: | good idea, debian/ubuntu already build fastcgi by default. |
| 11:31:59 | strk: | are them two different cgis ? ( I'm not familiar with fastcgi ) |
| 11:32:22 | FrankW: | The same executable can be used both ways. |
| 12:35:33 | leifer: | bug submitted, compile with fastcgi enabled, https://bugzilla.redhat.com/show_bug.cgi?id=538198 |
| 12:35:35 | sigabrt: | Title: Bug 538198 RFE: compile with fastcgi enabled ( at bugzilla.redhat.com ) |
| 21:30:57 | CIA-80: | sdlime * r9553 /trunk/mapserver/maptemplate.c: Removed spurrious msLayerClose( ) in processResultTag( ) in maptemplate.c. |
| 21:42:14 | dineo: | hi AlanB |
| 21:52:03 | dineo: | hi project10 |