square buffers

423 views
Skip to first unread message

James Cameron

unread,
Oct 25, 2011, 5:09:12 AM10/25/11
to mapi...@googlegroups.com

Hi,

                Does anyone know how to create square buffers around a line ? I have 800 lines I need to buffer.

 

 

Thanks Jim Cameron

 

Description: James Cameron GIS Web Developer FGIS

 

Mats Elfström

unread,
Oct 25, 2011, 5:14:31 AM10/25/11
to mapi...@googlegroups.com
James, what is a square buffer?
You could get the MBR and buffer that. But it would be a rectangle. 

Regards, Mats.E

Skickat från min iPhone

25 okt 2011 kl. 11:09 skrev James Cameron <james....@fusiongis.com.au>:

Hi,

                Does anyone know how to create square buffers around a line ? I have 800 lines I need to buffer.

 

 

Thanks Jim Cameron

 

<image001.jpg>

 

--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en

robert crossley

unread,
Oct 25, 2011, 5:56:40 AM10/25/11
to mapi...@googlegroups.com

The older versions of MapInfo used to not allow you to create buffers with less than 12 nodes, but the later version seems to honour the reduced number of nodes and I think will go down to 3.  Not square, but at least simpler.


R

--

image001.jpg

Uffe Kousgaard

unread,
Oct 25, 2011, 6:03:51 AM10/25/11
to mapi...@googlegroups.com
If it is lines and not polylines, then it shouldn't be so difficult. You just have to calculate the 4 corners, based upon your 2 sets of coordinates.

But it does require mapbasic.

Regards
Uffe Kousgaard

James Cameron wrote:
--

peter horsboll moller

unread,
Oct 25, 2011, 6:27:30 AM10/25/11
to mapi...@googlegroups.com
MapCAD has an Offset tool that allows you to to offset to both sides and close the ends. Maybe that can solve your problem

Peter



Fra: Mats Elfström <mats.e...@gmail.com>
Sendt: 25. oktober 2011 11:14
Til: mapi...@googlegroups.com <mapi...@googlegroups.com>
Emne: Re: [MI-L] square buffers


James, what is a square buffer?
You could get the MBR and buffer that. But it would be a rectangle. 

Regards, Mats.E

Skickat från min iPhone

25 okt 2011 kl. 11:09 skrev James Cameron <james....@fusiongis.com.au>:

Hi,

                Does anyone know how to create square buffers around a line ? I have 800 lines I need to buffer.

 

 

Thanks Jim Cameron

 

<image001.jpg>

 

--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en

--
You received this message because you are subscribed to the
Google Group

[Hele den oprindelige meddelelse er ikke inkluderet]

Driver, Greg 9434

unread,
Oct 25, 2011, 6:52:59 AM10/25/11
to mapi...@googlegroups.com
If you mean square-ended buffers, then I've used SpatialSQL tool in the past to create these -
 
 

 

Regards

Greg Driver

NOT PROTECTIVELY MARKED

Information about this E-mail
This email and any files or attachments with it are intended solely for the use of the individual(s) or organisation(s) to whom it is addressed.

It may contain information that is confidential or subject to legal and/or professional privilege.

If you have received this email in error please notify the sender and delete it including any files or attachments from your e-mail account or computer.

Any opinions expressed in this email are those of the individual and not necessarily those of Surrey Police.

Surrey Police monitor incoming and outgoing e-mail.

Stackless

unread,
Oct 26, 2011, 12:19:38 AM10/26/11
to MapInfo-L
Hi Greg,

Jim posted this question for me and now I have subscribed to the
group. SpatialSQL with a little trial and error gave me the square-end
buffers I was after.

Much appreciated.

Cheers
Kieran Stack
Senior GIS Analyst, Fusion GIS

On Oct 25, 6:52 pm, "Driver, Greg 9434"
<Driver9...@surrey.pnn.police.uk> wrote:
> If you mean square-ended buffers, then I've used SpatialSQL tool in the past to create these -
>
> http://www.spatialprojects.com.au/spatialsql.htm
>
> [cid:594253710@25102011-1039]
>
> Regards
>
> Greg Driver
>
> NOT PROTECTIVELY MARKED
>
>
>
>
>
>
>
> -----Original Message-----
> From: mapi...@googlegroups.com [mailto:mapi...@googlegroups.com] On Behalf Of peter horsboll moller
> Sent: 25 October 2011 11:28
> To: mapi...@googlegroups.com
> Subject: SV: Re: [MI-L] square buffers
>
> MapCAD has an Offset tool that allows you to to offset to both sides and close the ends. Maybe that can solve your problem
>
> Peter
>
> ________________________________
> Fra: Mats Elfström <mats.elfst...@gmail.com>
> Sendt: 25. oktober 2011 11:14
> Til: mapi...@googlegroups.com <mapi...@googlegroups.com>
> Emne: Re: [MI-L] square buffers
>
> James, what is a square buffer?
> You could get the MBR and buffer that. But it would be a rectangle.
>
> Regards, Mats.E
>
> Skickat från min iPhone
>
> 25 okt 2011 kl. 11:09 skrev James Cameron <james.came...@fusiongis.com.au<mailto:james.came...@fusiongis.com.au>>:
>
> Hi,
>                 Does anyone know how to create square buffers around a line ? I have 800 lines I need to buffer.
>
> Thanks Jim Cameron
>
> <image001.jpg>
>
> --
> You received this message because you are subscribed to the
> Google Groups "MapInfo-L" group.To post a message to this group, send
> email to <mailto:mapi...@googlegroups.com> mapi...@googlegroups.com<mailto:mapi...@googlegroups.com>
> To unsubscribe from this group, go to:
> <http://groups.google.com/group/mapinfo-l/subscribe?hl=en>http://groups.google.com/group/mapinfo-l/subscribe?hl=en
> For more options, information and links to MapInfo resources (searching
> archives, feature requests, to visit our Wiki, visit the Welcome page at
> <http://groups.google.com/group/mapinfo-l?hl=en>http://groups.google.com/group/mapinfo-l?hl=en
>
> --
> You received this message because you are subscribed to the
> Google Group
>
> [Hele den oprindelige meddelelse er ikke inkluderet]
>
> --
> You received this message because you are subscribed to the
> Google Groups "MapInfo-L" group.To post a message to this group, send
> email to mapi...@googlegroups.com
> To unsubscribe from this group, go to:http://groups.google.com/group/mapinfo-l/subscribe?hl=en
> For more options, information and links to MapInfo resources (searching
> archives, feature requests, to visit our Wiki, visit the Welcome page athttp://groups.google.com/group/mapinfo-l?hl=en
>
> Information about this E-mail
> This email and any files or attachments with it are intended solely for the use of the individual(s) or organisation(s) to whom it is addressed.
> It may contain information that is confidential or subject to legal and/or professional privilege.
> If you have received this email in error please notify the sender and delete it including any files or attachments from your e-mail account or computer.
> Any opinions expressed in this email are those of the individual and not necessarily those of Surrey Police.
> Surrey Police monitor incoming and outgoing e-mail.
>
>
>
>  Outlook.bmp
> 240KViewDownload

college.atlas

unread,
Oct 26, 2011, 1:15:49 AM10/26/11
to MapInfo-L
I see it's all over but I wrote a mapbasic routine to do this for any
number of polylines in a table a few years ago.

I remember setting it up so the offset distance would be read from a
column in the table allowing you to create individually widthed
buffers in a single pass.

It's actually bloody complex maths calculating secants and inner and
outer angles.

Nice to know SQLSpatial can do it.

Seb

unread,
Oct 26, 2011, 5:23:09 AM10/26/11
to mapi...@googlegroups.com
If its capped ends you want and you are happy to convert to shapefile and can download another package, you can use the geoprocess tools in GVsig to do this, it's open source. You can also specify it to buffer to just one side. You can use the buffer in the sextante "add on" for gvsig to do this as well.
 
 
Cheers
--
Seb Hudson
+44 (0) 1970 625368
+44 (0) 7811 268789
Reply all
Reply to author
Forward
0 new messages