Perl mapscript union_geos problems

Kralidis,Tom [Burlington] Tom.Kralidis at EC.GC.CA
Wed Dec 27 10:10:58 EST 2006


Thx.  I've posted a doc bug (1991) to fix the docs.

 

> -----Original Message-----
> From: UMN MapServer Developers List 
> [mailto:MAPSERVER-DEV at lists.umn.edu] On Behalf Of Umberto Nicoletti
> Sent: 27 December, 2006 5:42 AM
> To: MAPSERVER-DEV at lists.umn.edu
> Subject: Re: [UMN_MAPSERVER-DEV] Perl mapscript union_geos problems
> 
> The method is called Union.
> 
> This is the complete list:
> *fromWKT = *mapscriptc::shapeObj_fromWKT; *project = 
> *mapscriptc::shapeObj_project; *get = 
> *mapscriptc::shapeObj_get; *add = *mapscriptc::shapeObj_add; 
> *draw = *mapscriptc::shapeObj_draw; *setBounds = 
> *mapscriptc::shapeObj_setBounds; *clone = 
> *mapscriptc::shapeObj_clone; *copy = 
> *mapscriptc::shapeObj_copy; *toWKT = 
> *mapscriptc::shapeObj_toWKT; *buffer = 
> *mapscriptc::shapeObj_buffer; *convexHull = 
> *mapscriptc::shapeObj_convexHull; *boundary = 
> *mapscriptc::shapeObj_boundary; *getCentroid = 
> *mapscriptc::shapeObj_getCentroid;
> *Union = *mapscriptc::shapeObj_Union; <<<<< THIS IS THE ONE 
> YOU NEED *intersection = *mapscriptc::shapeObj_intersection;
> *difference = *mapscriptc::shapeObj_difference; 
> *symDifference = *mapscriptc::shapeObj_symDifference;
> *overlaps = *mapscriptc::shapeObj_overlaps; *within = 
> *mapscriptc::shapeObj_within; *crosses = 
> *mapscriptc::shapeObj_crosses; *intersects = 
> *mapscriptc::shapeObj_intersects; *touches = 
> *mapscriptc::shapeObj_touches; *equals = 
> *mapscriptc::shapeObj_equals; *disjoint = 
> *mapscriptc::shapeObj_disjoint; *getArea = 
> *mapscriptc::shapeObj_getArea; *getLength = 
> *mapscriptc::shapeObj_getLength; *getValue = 
> *mapscriptc::shapeObj_getValue; *contains = 
> *mapscriptc::shapeObj_contains; *distanceToPoint = 
> *mapscriptc::shapeObj_distanceToPoint;
> *distanceToShape = *mapscriptc::shapeObj_distanceToShape;
> *setValue = *mapscriptc::shapeObj_setValue; *initValues = 
> *mapscriptc::shapeObj_initValues;
> 
> Umberto
> 
> On 12/2/06, Kralidis,Tom [Burlington] <Tom.Kralidis at ec.gc.ca> wrote:
> > Hi,
> >
> > The mapscript class reference cites a shapeObj named 
> union_geos, which:
> >
> > shapeobj union_geos(shapeobj shape)
> >         Returns a shape object representing the union of 
> the current 
> > shape object with the one passed as parameter.
> >         Only available if php/mapscript is built with GEOS
> >         library.
> >
> > When I attempt to use this function, I receive Perl error:
> >
> > Can't locate auto/mapscript/shapeObj/union_geos.al in @INC (@INC
> > contains: /home/tom/mapdev/build/lib/perl5/site_perl/5.8.7/mach
> > /usr/local/lib/perl5/5.8.7/BSDPAN
> > /usr/local/lib/perl5/site_perl/5.8.7/mach
> > /usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl 
> > /usr/local/lib/perl5/5.8.7/mach /usr/local/lib/perl5/5.8.7 .) at 
> > foo.pl line 18
> >
> > Note that other GEOS'd functions in mapscript work fine (overlaps, 
> > within, etc.).
> >
> > Am I using / calling this incorrectly?
> >
> > ..Tom
> >
> 



More information about the mapserver-dev mailing list