| 01:00:41 | Peut: | hello, i'm using a sybol ( arrow ) that should be drawn repeatedly along the inside of the outer line of a polygon |
| 01:01:13 | Peut: | it's working, but the arrow is drawn along the outside of the outer line ( allthough it points in the direction that it's supposed to |
| 01:01:19 | Peut: | any ideas on how to fix this? |
| 01:02:15 | tbonfort_: | symbol and style definition ? |
| 01:04:28 | Peut: | http://pastebin.com/m29c4e354 |
| 01:04:29 | sigabrt: | Title: pastebin - collaborative debugging tool ( at pastebin.com ) |
| 01:05:36 | tbonfort_: | why are you stating that it should be drawn on the outside ? |
| 01:05:56 | tbonfort_: | s/outside/inside/ ? |
| 01:06:39 | Peut: | it's kind of hard to explain :P |
| 01:07:26 | Peut: | but ehm, allthough the arrow is drawn in the correct direction ( inwards, toward the inside of the polygon ) it is drawn outside the polygon itself |
| 01:07:30 | tbonfort_: | have an image of what's being rendered ? |
| 01:07:47 | Peut: | i'll see what i can do : ) |
| 01:11:53 | Peut: | http://yfrog.com/e5screenshotdsp |
| 01:12:14 | sigabrt: | Title: Yfrog - screenshotds ( at yfrog.com ) |
| 01:12:30 | Peut: | the green triangles should be positioned further towards the inside of the polygon |
| 01:12:31 | tbonfort_: | well, the symbol is centered on the contour, that's the expected result |
| 01:12:52 | Peut: | i suppose so, but how can i adjust this? |
| 01:13:33 | tbonfort_: | you try offesting your line by half the size of the symbol |
| 01:13:44 | tbonfort_: | offset 5 -99 in STYLE |
| 01:14:39 | Peut: | it works = ) |
| 01:14:46 | Peut: | well, offset -5 -99 works : ) |
| 01:14:54 | Peut: | otherwise it moved further outwards ; ) |
| 01:14:56 | Peut: | thanks! |
| 01:15:00 | tbonfort_: | yeah, that depends on your line direction |
| 01:15:11 | tbonfort_: | welcome |
| 01:16:46 | Peut: | now i cannot use 'gap' to create some space between the arrows, you wouldn't happen to know how to do that? = ) |
| 01:17:23 | tbonfort_: | gap -5 in symbol |
| 01:18:17 | Peut: | thanks =D |
| 01:19:10 | Peut: | ehm, my arrows are no longer filled now :( |
| 01:20:03 | Peut: | and the effect of the offset in STYLE is reversed |
| 01:26:19 | Peut: | ah, figured it out : ) |
| 01:29:52 | tbonfort_: | yes, the bahavior isn't very consistant in this case |
| 01:31:32 | Peut: | i changed the symbol points so that a gap was added in the vector, instead of using the GAP parameter, leaving the rest of the behaviour intact : ) |
| 01:59:21 | CIA-6: | tbonfort * r9540 /trunk/mapserver/ ( HISTORY.TXT mapagg.cpp ): decode html and unicode entities for polygon truetype symbol fills |
| 05:57:05 | CIA-6: | assefa * r9541 /trunk/mapserver/ ( HISTORY.TXT mapogcsld.c ): Support name aliases used in sld text symbolizer ( #3114 ) |
| 06:01:06 | CIA-6: | assefa * r9542 /trunk/msautotest/wxs/expected/wms_get_map_text_alias_sld.png: sld text symbolizer |
| 06:01:42 | CIA-6: | assefa * r9543 /trunk/msautotest/wxs/wms_sld.map: sld text symbolizer |
| 06:55:17 | mdev: | Hi, anyone know any good mapscript tutorials or sample scripts to learn from? The mapscript tutorial on mapserver site was good but ends very basic and doesn't get into intermediate stuff |
| 07:13:27 | jmckenna: | mdev: give a read to the MapServer wiki ( http://trac.osgeo.org/mapserver/ ), the developer section near the bottom has pages for each mapscript - you could even add your own examples and helpful hints there as your travel down this path, so others can learn from your experiences. thanks. |
| 07:13:28 | sigabrt: | Title: MapServer - Trac ( at trac.osgeo.org ) |
| 07:15:20 | mdev: | is that different from the maperserver website? |
| 07:16:00 | mdev: | ah, I see... it's a mix |
| 07:16:04 | mdev: | looks great, thanks |
| 07:16:47 | jmckenna: | you're welcome. please add your examples as you go through this process. that would be great. thanks, it'll be appreciated by others |
| 07:17:25 | mdev: | you really think so? I'm kinda sloppy, lol |
| 07:18:03 | mdev: | these examples are just what I needed, awesome |
| 07:18:31 | mdev: | It will probably take me all day to learn this and make use of it, but that's ok |
| 07:18:39 | mdev: | If there's anything I can contribute I sure will |
| 07:18:50 | jmckenna: | yes that is my point. thank you. |
| 07:29:22 | mdev: | most of this is making sense |
| 07:29:29 | mdev: | but you know how to create a feature with phpmapscript? |
| 07:32:27 | mdev: | is ShapeObj the same as feature? |
| 08:13:41 | StephanMeissl: | Hi all! Does anybody know if there is a posibility in the MapFile to somehow limit WCS responses? |
| 08:18:55 | FrankW: | StephanMeissl: to limit the size of responses? |
| 08:19:59 | StephanMeissl: | FrankW: Yes, that's what I would like to do. |
| 08:20:16 | FrankW: | Good question, let me dig for a second. |
| 08:21:07 | StephanMeissl: | I could inlcude it into a mapscript wrapper but was hoping for a posibility in the mapfile. |
| 08:21:44 | FrankW: | There is a maxsize parameter in the mapObj, but I suspect it is not used for WCS though it likely ought to be. |
| 08:22:13 | StephanMeissl: | You are right this one seems to be used for WMS only. At least in my tests. |
| 08:23:05 | FrankW: | I see no sign of it being used in WCS. |
| 08:23:12 | FrankW: | So perhaps you will have to handle it via a wrapper. |
| 08:23:25 | FrankW: | I'd appreciate it if you could file a ticket requesting WCS honour MAXSIZE. |
| 08:23:43 | FrankW: | It should be easy to do, but I wouldn't want to push it in this late in the release cycle. |
| 08:24:34 | StephanMeissl: | I'm not sure if this is the right place because compared to WMS you don't get the size parameters in the request. |
| 08:25:18 | StephanMeissl: | I will file a ticket for a feature request to limit WCS responses. |
| 08:29:09 | FrankW: | Are you building MapServer from source? If so, I could likely prepare a patch right away that |
| 08:29:17 | FrankW: | you could use before it goes into trunk. |
| 08:30:28 | StephanMeissl: | Yes, I'm building my own debian packages. |
| 08:32:07 | StephanMeissl: | I've created a ticket #3204 |
| 08:32:44 | FrankW: | My goodness, the GetCoverage method is long. |
| 08:35:04 | StephanMeissl: | :- ) >400 lines ... |
| 08:39:16 | FrankW: | I have attached a patch which I think ought to do the trick. Could you give it a spin? |
| 08:39:36 | StephanMeissl: | OK, I try it. Thanks! |
| 08:45:01 | : | * jmckenna darn frank had already responded on ms4w re:projections i didn't know! oops. hopefully i didn't confuse the user :( |
| 08:46:36 | : | * jmckenna and within 20 minutes of each other. go figure lol |
| 08:58:48 | StephanMeissl: | FrankW: Great, your patch works perfectly. Many thanks! |
| 11:32:57 | CIA-5: | assefa * r9544 /trunk/mapserver/ ( HISTORY.TXT mapcontext.c ): [WMC] embedded SLD in context does not work with namespace prefix ( #3115 ) |
| 11:40:36 | mdev: | Am I crazy or is there no way to initalize a labelObj in mapscript!!! |
| 11:41:05 | mdev: | there is a function like this: ms_newStyleObj( ) |
| 11:41:10 | FrankW: | Are those two options mutually exclusive? |
| 11:41:20 | mdev: | but no function like that: ms_newLabelObj( ) |
| 11:42:14 | : | * FrankW pokes any php mapscript gods in the room, assefa, jmckenna... |
| 11:42:48 | tbonfort_: | yes labelObjs belong to a classObj |
| 11:42:51 | jef: | mdev: you can't have more than one label per class. and classes already have a label object. |
| 11:43:02 | mdev: | it's built in to classOjb? |
| 11:43:22 | mdev: | but those label vars aren't labeled as members of class obj |
| 11:43:26 | mdev: | http://mapserver.org/mapscript/php/index.html#classobj-class |
| 11:43:27 | sigabrt: | Title: PHP MapScript MapServer 5.4.2 documentation ( at mapserver.org ) |
| 11:43:49 | mdev: | it just says that ClassObj takes labelObj label as a member |
| 11:43:51 | tbonfort_: | classObj.label.XXX |
| 11:43:59 | mdev: | oh |
| 11:44:00 | mdev: | duh |
| 11:44:01 | mdev: | thanks |
| 11:44:26 | mdev: | I didn't realize it was built in cause other things like style and shape are separate classes |
| 11:44:44 | tbonfort_: | it's not built in, it's a 1-1 association |
| 11:44:58 | tbonfort_: | so there's no need for a constructor to a labelObj |
| 11:44:58 | mdev: | ok, so to set a label font |
| 11:45:52 | mdev: | $class.label->set( "font", "arial" ); |
| 11:45:52 | mdev: | ? |
| 11:48:12 | mdev: | no that's can't be right |
| 11:48:20 | mdev: | in php mapscript |
| 11:48:28 | mdev: | $class->label->set( "font", "arial" ); |
| 11:48:30 | mdev: | like that? |
| 11:49:31 | assefa: | mdev: the last one is the correct way of doing it |
| 11:49:48 | mdev: | ok, trying that out |
| 11:50:22 | mdev: | you don't have to do anything to initilize label? |
| 11:50:32 | mdev: | is it automatically initialized with newLayerObj? |
| 11:51:21 | assefa: | no nothing special. It is initialized with default values |
| 11:51:48 | mdev: | you have to pass a colorObj for every color value in a label?? |
| 11:52:53 | mdev: | what are the minimum required parameters for a label to show up? |
| 11:54:46 | assefa: | I think size, font, color, type |
| 11:55:14 | mdev: | is there a way to pass a color simply inline without having to initialize a color obj to pass? |
| 11:57:40 | assefa: | >color->setRGB( 0, 255, 0 ); |
| 11:58:59 | mdev: | like: |
| 11:59:05 | mdev: | $class->label->color->setRGB( 0, 255, 0 ); |
| 11:59:43 | assefa: | I believe that is correct |
| 12:00:55 | mdev: | how come "type" is int? |
| 12:01:04 | mdev: | I thought choices are TRUETYPE and BITMAP |
| 12:01:25 | mdev: | also says antialias is INT... not BOOL?? |
| 12:02:54 | mdev: | hmm... still can't get label to show |
| 12:02:59 | mdev: | here's what I have: |
| 12:03:00 | assefa: | MS_TRUETYPE and MS_BITMAP |
| 12:03:05 | mdev: | $msclass->label->set( "font", "arial-bold" ); |
| 12:03:05 | mdev: | $msclass->label->color->setRGB( 222, 31, 31 ); |
| 12:03:05 | mdev: | $msclass->label->set( "size", 10 ); |
| 12:03:05 | mdev: | $msclass->label->set( "type", 1 ); |
| 12:03:05 | mdev: | $msclass->label->set( "antialias", 1 ); |
| 12:04:21 | mdev: | ok, tried a bit different but label still won't show |
| 12:04:25 | mdev: | in mapfile was: |
| 12:04:30 | mdev: | LABEL |
| 12:04:30 | mdev: | COLOR 222 31 31 |
| 12:04:30 | mdev: | TYPE TRUETYPE |
| 12:04:30 | mdev: | FONT arial-bold |
| 12:04:30 | mdev: | SIZE 10 |
| 12:04:30 | mdev: | ANTIALIAS TRUE |
| 12:04:32 | mdev: | POSITION CL |
| 12:04:34 | mdev: | END # end of label |
| 12:04:38 | mdev: | in mapscript made it: |
| 12:04:39 | mdev: | $msclass->label->set( "font", "arial-bold" ); |
| 12:04:40 | mdev: | $msclass->label->color->setRGB( 222, 31, 31 ); |
| 12:04:42 | mdev: | $msclass->label->set( "size", 10 ); |
| 12:04:44 | mdev: | $msclass->label->set( "type", "MS_TRUETYPE" ); |
| 12:04:46 | mdev: | $msclass->label->set( "antialias", TRUE ); |
| 12:04:48 | mdev: | but label dosen't show up |
| 12:06:27 | mdev: | any ideas assega? |
| 12:06:28 | mdev: | assefa |
| 12:07:01 | assefa: | mm not sure why. btw MS_TRUETYPE is a constant so that should be $msclass->label->set( "type", MS_TRUETYPE ); |
| 12:07:17 | mdev: | ok, i tried that before too |
| 12:07:25 | mdev: | I didn't see that defined in mapscript docs |
| 12:07:40 | mdev: | ah, never mind |
| 12:07:45 | mdev: | they are listed undert font and not label |
| 12:08:22 | mdev: | is there anything else I have to do to "initiate" the label or turn it on? |
| 12:08:41 | akrherz: | LABELCACHE defaults to on, are you calling drawLabelCache( )? |
| 12:09:11 | mdev: | no |
| 12:09:13 | mdev: | what is that? |
| 12:09:56 | mdev: | oh, you must enable that? |
| 12:10:06 | mdev: | at what point? before or after label definitions? |
| 12:11:12 | akrherz: | sometime after generating the image object |
| 12:11:59 | mdev: | woah |
| 12:12:00 | mdev: | Fatal error: Call to undefined function drawLabelCache( ) |
| 12:12:17 | akrherz: | $mapObj->drawLabelCache( $imgObj ); |
| 12:12:25 | mdev: | ah |
| 12:12:54 | mdev: | no error but still no label dang |
| 12:13:03 | mdev: | $image=$map->draw( ); |
| 12:13:03 | mdev: | $map->drawLabelCache( $image ); |
| 12:14:16 | akrherz: | did you set a color for the Layer object? |
| 12:14:46 | mdev: | no |
| 12:14:52 | mdev: | why would I need to? |
| 12:14:59 | mdev: | it is a label for a symbol |
| 12:15:05 | akrherz: | just try it and see |
| 12:16:27 | mdev: | wait a minute, I had a color set for the symbol |
| 12:16:37 | akrherz: | try them both |
| 12:18:56 | mdev: | how do I set color for a layer? |
| 12:18:57 | mdev: | $mslayer->color->setRGB( 0, 0, 255 ); |
| 12:19:12 | akrherz: | oops, sorry, the classObj |
| 12:19:31 | mdev: | ahh... you were driving me nuts setting a layer color |
| 12:19:31 | mdev: | lol |
| 12:19:40 | mdev: | the class obj already had a color |
| 12:20:48 | akrherz: | actually, that isn't right either, hehe |
| 12:21:16 | mdev: | now im really confused |
| 12:21:22 | mdev: | I just want my damn label to show up |
| 12:21:50 | mdev: | the mapscript documentation isn't as understandable as the mapfile one |
| 12:22:05 | akrherz: | can you pastebin your entire php and whatever mapfile you have.... not here! |
| 12:22:24 | mdev: | you mean put on a webserver and link you to it? |
| 12:24:22 | mdev: | hang on a sec... I may be onto something here |
| 12:24:26 | mdev: | let me get back to you in 5 mins |
| 12:28:12 | mdev: | ok i found that I have to use: |
| 12:28:19 | mdev: | $point->draw( $map, $mslayer, $image, 0, 'myLabel' ); |
| 12:29:00 | mdev: | that works and the label params work for this but how come I can't leave "myLabel" blank and just show the name of the class I set instead? |
| 12:29:27 | mdev: | ah... here's the real question |
| 12:29:31 | mdev: | if in mapfile I have: |
| 12:29:32 | mdev: | FEATURE |
| 12:29:32 | mdev: | POINTS 2.33 48.87 END |
| 12:29:32 | mdev: | TEXT "Paris" |
| 12:29:32 | mdev: | END |
| 12:29:42 | mdev: | then the point object has to be: |
| 12:29:45 | mdev: | $point = ms_newPointObj( ); |
| 12:29:45 | mdev: | $point->setXY( 37.617778, 55.751667 ); |
| 12:29:49 | mdev: | like that |
| 12:30:01 | mdev: | but how do I set a TEXT for point obg? |
| 12:33:59 | akrherz: | you can't, you can only draw a point with an optional label, I believe |
| 12:34:59 | mdev: | optional label |
| 12:35:00 | mdev: | ? |
| 12:35:20 | mdev: | so there is no way to translate this into mapscript stuff? |
| 12:35:20 | mdev: | FEATURE |
| 12:35:20 | mdev: | POINTS 2.33 48.87 END |
| 12:35:20 | mdev: | TEXT "Paris" |
| 12:35:20 | mdev: | END |
| 12:35:24 | mdev: | without using a raw input |
| 12:37:48 | akrherz: | what do you mean by 'raw imput' ? |
| 12:46:52 | mdev: | raw input as in updateFromString( string snippet ) |
| 12:48:38 | AlanB: | with layerObj->addFeature ? |
| 12:51:23 | mdev: | are you kidding?? how did I miss that |
| 12:52:41 | AlanB: | I don't know :P |
| 12:52:45 | mdev: | how do you set a point or line as a shapeObj then? |
| 12:53:18 | AlanB: | http://mapserver.org/mapscript/php/index.html#shapeobj-class |
| 12:53:19 | sigabrt: | Title: PHP MapScript MapServer 5.4.2 documentation ( at mapserver.org ) |
| 12:53:27 | mdev: | I'm looking at that |
| 12:53:36 | mdev: | but how would I translate somethnig like this into a shape obj |
| 12:53:41 | mdev: | POINTS 2.33 48.87 END |
| 12:54:00 | mdev: | or whatever number of point |
| 12:54:49 | mdev: | there is no "POINTS" type in shapeObj |
| 12:54:58 | mdev: | what is the equivalent? |
| 12:55:19 | AlanB: | MS_SHAPE_POINT |
| 12:55:47 | mdev: | that's the type |
| 12:55:53 | mdev: | how do I define the actual points though? |
| 12:56:17 | mdev: | if i used to say POINTS x y x y x y END |
| 12:56:21 | mdev: | what is the way in mapscript |
| 12:57:44 | mdev: | the stuff that's named the same as in mapfile made sense to me but some things are named differently so I'm a bit confused |
| 12:58:18 | AlanB: | if you have 10 points, then add 10 shapes on your layer |
| 12:59:03 | mdev: | no no, that's not what I meant |
| 12:59:19 | mdev: | if I was making a polygon I'd have xy xy xy, etc |
| 12:59:26 | mdev: | for a ponit I have x y |
| 12:59:41 | mdev: | but in mapfile you can add a feature with POINTS x y END |
| 12:59:51 | mdev: | how do I define the XY in the shapeObj |
| 13:00:00 | mdev: | how do I define a polygon in a shapeObj |
| 13:00:17 | mdev: | that's what I'm not understanding is how to define the xy points of the feature in a shapeObj |
| 13:00:21 | AlanB: | see that example: http://old-mapserver.gis.umn.edu/data2/wilma/mapserver-users/0308/msg00686.html |
| 13:00:23 | sigabrt: | Title: [Mapserver-users] mapscript - queryByPoint help, simple Q ( at old-mapserver.gis.umn.edu ) |
| 13:02:34 | mdev: | oh, so points, lines, and shapes are treated differently in mapscript than in mapfile? |
| 13:02:43 | mdev: | in mapfile all 3 of those were just "FEATURE" |
| 18:03:10 | hobu: | tbonfort: after changing the orientation and size of the map on mapserver.org, it is now much too easy to have your mousewheel get trapped by the map when scrolling the main page. Can you disable the mouse zoom? |
| 18:03:34 | hobu: | tbonfort: otherwise, it's awesome ; ) |
| 18:04:54 | mweltin: | I'm stumped does anyone know what Projection library error. no system list, errno: 2 implies? |