Re: [UMN_MAPSERVER-USERS] Mapscript, SVG and Annotations

2007-07-12 Thread Martin Weinelt
We talked a bit about that issue here and one guy brought up the anti-overposting feature with labels POSITION set to 'auto'. I did not look at the code, but he mentioned that anti-overposting often is based on matrices. This would be straight forward for output on raster maps, but would that c

Re: [UMN_MAPSERVER-USERS] Mapscript, SVG and Annotations

2007-07-11 Thread Martin Weinelt
Thanks a lot, your tips at least kept trying. What I did was translate your example to Perl mapscript. Some PHP methods are not available or a bit different in the SWIG versions. That looks like this: my $oShp = new mapscript::shapeObj($mapscript::MS_SHAPE_POINT); my $oLine = new mapscript::li

Re: [UMN_MAPSERVER-USERS] Mapscript, SVG and Annotations

2007-07-10 Thread Yewondwossen Assefa
Hi there, I did a quick test using php mapscript and an svg output. The poplace layer in the map file is a point layer and has a class with a label object (note that there is no labelitem set) LAYER NAME popplace TYPE POINT STATUS ON ... CLASS style SYMBOL 'circle'

Re: [UMN_MAPSERVER-USERS] Mapscript, SVG and Annotations

2007-07-10 Thread Martin Weinelt
I tried $map->drawLabelCache($SVGImg ), but that returns MS_FAILURE. Actually, there seems a problem with labeling on a SVG-'image'. I work around with: open SVGMAP, '>>', '/path/to/saved/svgimg.svg'; for (my $labnum=0; $labnum < $map->{labelcache}->{numlabels};$labnum++ ) { my $next_lab

[UMN_MAPSERVER-USERS] Mapscript, SVG and Annotations

2007-07-09 Thread kk+w - digitale kartografie GmbH
Hi, I am using addFeature to dynamically add site locations with a label to a map. It's Perl mapscript. @sites is an array of hash references, $sitesLyr is from the map file: ### foreach my $site (@sites) { my $site_pt = $$site{'site_loc'}; $site_pt =~s/.*\((.*)\)*./$1/;