Editing Style Of Multiple Polygons In One Table At Once

2,128 views
Skip to first unread message

Josh

unread,
Apr 28, 2008, 1:26:18 PM4/28/08
to MapInfo-L
This should be a pretty simple question, but I'm fairly new to MapInfo
Pro 9.0.

Does anyone know how to change the style (color, outline) of a large
number of polygons that are all in one table? One example is: I have
a TAB file that contains timber type data. This table includes
several thousand polygons, one for each type of tree on each land
tract. How can I go in and change all polygons that represent pine
tree stands to a red color?

As I said, this may be pretty elementary, but I could use some simple
guidance!!

Thanks in advance.

Spencer Simpson

unread,
Apr 28, 2008, 2:18:09 PM4/28/08
to mapi...@googlegroups.com
Assuming you're talking about doing this with just MapInfo Pro, and not
MapBasic, this is relatively easy:

1. Put the table you want to change in a Map window, and make it the
editable layer of that window.

2. Use Query->Select... or Query->SQL Select... to select the objects you
want to change by their defining attributes.

2a (optional, if there are thousands of records). Options->Show MapBasic
window.

2b (optional, if you did 2a). Click in the MapBasic Window. Type "set table
whatevermytablesnameis fastedit on" and hit ENTER.

3. Go to Options->Region Style... and wait for MapInfo to collect the
attributes of the records you've selected. The more records there are
selected ,the longer it will take. You'll see a dialog displaying the region
style attributes of the selected objects. If all of the objects have the
same style attribute of a particular type (e.g. filled in red), that
attribute will appear. Otherwise, you'll see "Mixed".

3a. Alter the region attributes you want to change.

3b. If you did 2b, MAKE VERY SURE these are the region style attributes you
want, because you can't undo changes.

3c. Click OK.

4. Save the table.

4a (optional, if you did 2b). Click in the MapBasic Window. Type "set table
whatevermytablesnameis fastedit off" and hit ENTER.

This will change all regions, rectangles, ellipses, round rectangles, and
(in a layout window) frames you've selected.

To change lines, polylines, and arcs, use Objects->Line Style in step 3
instead.

To change points, use Objects->Point Style.
To change text objects, use Objects->Text Style.

HTH
________________________________

Spencer M. Simpson, Jr.
Information Technology Coordinator
Baltimore Metropolitan Council
http://www.baltometro.org

Confidentiality Statement

This electronic mail transmission contains confidential information
belonging to the sender which is legally privileged and confidential. The
information is intended only for the use of the individual or entity named
above. If you are not the intended recipient, you are hereby notified that
any disclosure, copying, distribution, or taking of any action based on the
contents of this electronic mail transmission is strictly prohibited. If you
have received this electronic mail transmission in error, please immediately
notify the sender.

Martin A Spiers

unread,
Apr 29, 2008, 4:43:55 AM4/29/08
to mapi...@googlegroups.com

You should be able to do something like
Set Map (treetype_table> Editable On
Select from <treetypes_table> where <treetype_field>="pine" into change_selection
either in the MapBasic window or through the dialogs
Then use Options > Region Style and change the selected objects to have a red fill.

Yours,

Martin Spiers
Senior Engineer
MWH
Kenburgh House,
Manor Row,
Bradford
BD1 4QU
Tel: 01274 718768
Fax: 01274 718799
email:  martin....@mwhglobal.com



Josh <josh....@gmail.com>
Sent by: mapi...@googlegroups.com

28/04/2008 18:26

Please respond to
mapi...@googlegroups.com

To
MapInfo-L <mapi...@googlegroups.com>
cc

Subject
[MI-L] Editing Style Of Multiple Polygons In One Table At Once

ry...@hotmail.com

unread,
Apr 29, 2008, 12:58:50 PM4/29/08
to MapInfo-L
Hi guys,

I also wanted to be able to do this. I followed the instructions
above, but Mapinfo seems to be moody and doesn't always want to change
the style of my regions. The table I'm using is a demographics file
with 208,646 records, and I'm trying to divide it up visually into 3
different regions: Suburban, High Business, and Other. I already
have a field in the demographics table that splits these out. I try
to select everything where Classification = Suburban, then go to
options -> region style, etc.. but it's not changing. Once in a
while it will actually change for me for one of the categories but
it's not consistent and then it won't get the other two categories.
Maybe my table is too large? Maybe the table is locked or something
so I can't change these things. No idea. Thanks for any and all
help!! :-)

peter_hors...@mapinfo.com

unread,
Apr 29, 2008, 2:19:25 PM4/29/08
to mapi...@googlegroups.com

> I followed the instructions above, but Mapinfo seems to be moody
> and doesn't always want to change the style of my regions.

A few things might prevent you from actually changing the style.
The obvious are that the layer isn't editable - or the map isn't the active window...

A few things might prevent you from seeing the change in the map.
If you have a style override on the layer in the layer control or if you have created a thematic fro the layer.

            Peter Horsbøll Møller
Systems Engineer, MTM Geo Informatics
   
 


This message may contain confidential, proprietary and/or privileged information. It is intended only for the use of the intended recipient(s). If you have received it in error, please immediately advise the sender by reply email and then delete this email message. Any disclosure, copying, distribution or use of the information contained in this email message to or by anyone other than the intended recipient is strictly prohibited. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Pitney Bowes MapInfo. Thank you.

The Pitney Bowes MapInfo entities listed below are registered in England and have their registered offices at: Minton Place, Victoria Street, Windsor, Berkshire SL4 1EG UK. Pitney Bowes MapInfo Limited: Company No. 3038694. Pitney Bowes MapInfo Business Applications Limited: Company No. 2170883. Pitney Bowes MapInfo Scotland Limited: Company No.4007670. Pitney Bowes MapInfo GDC Limited: Company No. 4480179

ry...@hotmail.com

unread,
Apr 29, 2008, 4:56:11 PM4/29/08
to MapInfo-L
Peter,

Thanks so much for your reply. You were dead on. I was doing my
select in the Mapbasic window and then going to Options -> Region
Style. So this time I made the map window the active window before
going to "Region Style" and everything worked out fine. Thanks so
much!!!!

-Ryon Engle
Reply all
Reply to author
Forward
0 new messages