[Mapserver-users] Virtual polygon problem!!
Gijs Epping
mapserver at gijs.com
Thu May 13 00:14:34 PDT 2004
I allready found the problem i had to add the begin point the end.
Begin point
Point
Point
Point
Etc...
Begin point
Hope this helps somebody
G
> -----Oorspronkelijk bericht-----
> Van: Gijs Epping [mailto:mapserver at gijs.com]
> Verzonden: woensdag 12 mei 2004 13:35
> Aan: mapserver-users at lists.gis.umn.edu
> Onderwerp: [Mapserver-users] Virtual polygon problem!!
>
> Hello,
>
> We are creating a polygon with the following code
>
> function addPolygon($style)
> {
> global $gpoMap;
> $style->color->setRGB(255, 0, 255);
> $style->outlinecolor->setRGB(255, 0, 0);
>
> $shp = ms_newShapeObj($this->type);
> $line = ms_newLineObj();
> $point = ms_newPointObj();
> for($i=0; $i<count($this->coordinates); $i++)
> {
> if($i==0)
> {
> $line->addXY($this->coordinates[$i]->x, $this->coordinates[$i]->y);
> }
> $line->addXY($this->coordinates[$i]->x, $this->coordinates[$i]->y);
> }
> $shp->add($line);
> return $shp;
> }
>
> after this the polygon is added with $layer->addFeature($shp);
>
>
> Now the weird thing is that if you zoom in, and a corner point from a
> polygon (a square for example) drops next to the extend of the map the
> square becomes I triangle. So the corner points next to the map extend
> are cut off.
>
> I did send some examples that you can see what is happening!!!!
>
> Is there a solution that it will draw the polygons correct
>
> Thanks in advance
>
> Gijs
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.678 / Virus Database: 440 - Release Date: 6-5-2004
>
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.678 / Virus Database: 440 - Release Date: 6-5-2004
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.678 / Virus Database: 440 - Release Date: 6-5-2004
More information about the MapServer-users
mailing list