[mapguide-users] RE: RE: Buffer rectangle

Jim O'Leary joleary.public at gmail.com
Sun Jul 8 15:55:01 EDT 2007


I am already calling the Buffer() method from an MgGeometry polygon with an
arbitrary number of x,y coordinates. However, the buffer that the method
returns is a circle, and not the shape of that polygon. 

I took my code from the Autodesk Dev Guide sample
selectfeaturesinbuffer.php, and also from buffer.php in the mapviewerphp
folder. Both of those programs also return a round buffer from an MgGeometry
polygon. Does this mean it is not possible to produce a rectangle polygon?

Thanks



Martin Morrison wrote:
> 
> Yes, but keep in mind that the corners of your buffer will be rounded.
> 
> Martin
> 
> 
> -----Original Message-----
> From: mapguide-users-bounces at lists.osgeo.org
> [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Jim O'Leary
> Sent: Friday, July 06, 2007 10:54 AM
> To: mapguide-users at lists.osgeo.org
> Subject: [mapguide-users] RE: Buffer rectangle
> 
> 
> So you could select a point, make a small rectangle from it, and then
> make a
> buffer, which would also be a rectangle.
> 
> Thanks.
> 
> 
> Martin Morrison wrote:
>> 
>> A buffer is going to be the shape of a set distance from the edge of
> the
>> object selected.  If you select a point, you get a circle with a
> radius
>> the size of your buffer.  If you select a polygon you will get the
> rough
>> shape of the polygon offset by the size of the buffer.
>> 
>> Martin
>> 
>> -----Original Message-----
>> From: mapguide-users-bounces at lists.osgeo.org
>> [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Jim
> O'Leary
>> Sent: Friday, July 06, 2007 10:38 AM
>> To: mapguide-users at lists.osgeo.org
>> Subject: [mapguide-users] Buffer rectangle
>> 
>> 
>> Does MapGuide support rectangle buffers? It seems that the default
>> buffer it
>> produces is a circle.
>> 
>> Thanks.
>> -- 
>> View this message in context:
>> http://www.nabble.com/Buffer-rectangle-tf4035927s16610.html#a11465564
>> Sent from the MapGuide Users mailing list archive at Nabble.com.
>> 
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>> 
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Buffer-rectangle-tf4035927s16610.html#a11465860
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> 
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: http://www.nabble.com/Buffer-rectangle-tf4035927s16610.html#a11492134
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list