Search the web
Sign In
New User? Sign Up
mitab · MITAB Users List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Option to suppress pen and brush info in MIF file?   Message List  
Reply | Forward Message #1356 of 1383 |
Re: [mitab] Option to suppress pen and brush info in MIF file?

rlcave3rd wrote:
> Hello,
>
> Does MITAB have an option that can be used to suppress the pen and brush info
that is attached to lines and polygons in a MIF file? We've had a customer
request this.
>

There is no option in the tab2tab program to do this, so you'd need a
bit of coding to do it, either with the C API or with the C++ classes.

If this is just a one-shot deal, a simple hack to do what you want would
be to convert the dataset to MIF, then use "grep -v" to filter out the
PEN and BRUSH lines, and finally convert back to TAB:

e.g. something like this (untested):

tab2tab source.tab tmp.mif
grep -v "PEN(" tmp.mif > tmp2.mif
grep -v "BRUSH(" tmp2.mif > tmp.mif
rm tmp2.mif
tab2tab tmp.mif dest.tab

This is for Unix/Linux of course, but there are several places offering
Windows ports of Unix/Linux utilities including
http://gnuwin32.sourceforge.net/

Daniel
--
Daniel Morissette
http://www.mapgears.com/



Tue Jun 30, 2009 6:39 pm

dan_morissette
Offline Offline
Send Email Send Email

Forward
Message #1356 of 1383 |
Expand Messages Author Sort by Date

Hello, Does MITAB have an option that can be used to suppress the pen and brush info that is attached to lines and polygons in a MIF file? We've had a...
rlcave3rd
Offline Send Email
Jun 30, 2009
5:14 pm

... There is no option in the tab2tab program to do this, so you'd need a bit of coding to do it, either with the C API or with the C++ classes. If this is...
Daniel Morissette
dan_morissette
Offline Send Email
Jun 30, 2009
6:40 pm

... It looks like calling ITABFeaturePen::SetPenPattern(0) and ITABFeatureBrush::SetBrushPattern(0) will have the desired effect. ... Unfortunately, this is...
rlcave3rd
Offline Send Email
Jun 30, 2009
7:45 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help