RE: [MI-L] Make a whole in a region object
Title: RE: [MI-L] Make a whole in a region object Well, if you need to do this 100 times a day, I can see a need for a tool that makes this process easier. 1. Draw hole with special tool - 1a. The hole searches for objects in a certain layer, could be the editable layer - 1b. For each found object, it erases the part of the object, that is within the hole 1 step is a lot easier than 7 ;-) And I can even give you some part of the code, bear with me as I don't have MapBasic Help or my normal editor here to help me check the spelling and the defines and functions used: Sub ToolEraser '**This is the procedure called by your toolbutton, '**that should have a POLYGON draw_mode Dim oEraser, oToBeErased As Object, nMID, nRowID As Integer, sLayer As String oEraser = CommandInfo(CMD_INFO_COSTUM_OBJ) nMID = FrontWindow() '**Check that the frontwindow exists and is a mapper sLayer = MapperInfo(nMID, MAPPER_INFO_EDITABLE_LAYER) Select * from sLayer Where OBJ Intersects oEraser Into OBJS__TO__ERASE NoSelect Fetch First From OBJS__TO__ERASE Do Until EOT(OBJS__TO__ERASE) nRowID = OBJS__TO__ERASE.ROWID oToBeErased = OBJS__TO__ERASE.OBJ oToBeErased = Erase(oToBeErased, oEraser) Update OBJS__TO__ERASE Set OBJ = oToBeErased Where ROWID = nRowID Fetch Next From OBJS__TO__ERASE Loop End Sub This is pretty much what you need. I you want to store the Eraser object, you just need to insert that into a layer at the end of the procedure HTH, Peter Horsbøll Møller GIS Developer, MTM Geographical Information & IT COWI A/S Odensevej 95 5260 Odense S. Denmark Tel + 45 6311 4900 Dir +45 6311 4908 Mob +45 5156 1045 Fax + 45 6311 4949 E-mail [EMAIL PROTECTED] http://www.cowi.dk From: [EMAIL PROTECTED] on behalf of Warren Vick, Europa Technologies Ltd.Sent: Fri 14-Jul-06 10:33To: 'Mapinfo-L'Subject: RE: [MI-L] Make a whole in a region object and don't' forget to:7) Delete "hole"I can't remember how many times I've left an "eraser" object in a layer byaccident.Regards,Warren VickEuropa Technologies Ltd.http://www.europa-tech.com-Original Message-From: [EMAIL PROTECTED][mailto:[EMAIL PROTECTED]] On Behalf Of UffeKousgaardSent: 14 July 2006 07:54To: Mapinfo-LSubject: Re: [MI-L] Make a whole in a region objectThis is already possible with a few steps in MapInfo. I don't think you canmake it much simpler by writing a tool.1) Make layer editable2) Select the region3) Objects > Set Target (ctrl T)4) Draw "hole"5) Select "hole"6) Objects > EraseDone.Kind regardsUffe Kousgaardwww.routeware.dk- Original Message -From: "Boyd Townsend" <[EMAIL PROTECTED]>To: Sent: Friday, July 14, 2006 8:03 AMSubject: [MI-L] Make a whole in a region object> Can anyone assist.>> I am wanting to develop a simple tool for a user which will essentialy> make a hole in a region object.>> For example.>> We have a region object which depicts an area of land burnt by fire.> Within that region there are small pockets which were not burnt. We would> like to be able to draw in those unburnt portions into the existing> region.>> Essentially the user would draw a small area within the existing> region> which would then be erased from that region making a hole in it. (If this> makes Sense).>> Can anyone make a suggestion on what road I would best take to acheive> this???>> In anticipation - Thanks>> Boyd Townsend> CSO - Northern Rivers> NSW Rural Fire Service>>> This email message is intended only for the addressee(s) and contains> information which may be confidential.> If you are not the intended recipient, please notify the sender and delete> this email and any copies or> links to this email completely and immediately from your system. Views> expressed in this message are> those of the individual sender, and are not necessarily the views of the> NSW Rural Fire Service.>> ___> MapInfo-L mailing list> MapInfo-L@lists.directionsmag.com> http://www.directionsmag.com/mailman/listinfo/mapinfo-l___MapInfo-L mailing listMapInfo-L@lists.directionsmag.comhttp://www.directionsmag.com/mailman/listinfo/mapinfo-l___MapInfo-L mailing listMapInfo-L@lists.directionsmag.comhttp://www.directionsmag.com/mailman/listinfo/mapinfo-l ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
RE: [MI-L] MapBasic - Expanding Munged filenames on the MapInfoRecentFiles menu
Title: Re: [MI-L] MapBasic - Expanding Munged filenames on the MapInfoRecentFiles menu I see two possible places to store that information: 1. The MapInfow.prf where MapInfo normally stores the preferences 2. The Registry Unfortunately I'm at the moment sitting at a computer with no MapInfo installed (!!!), so I can't test it Peter Horsbøll Møller GIS Developer, MTM Geographical Information & IT COWI A/S Odensevej 95 5260 Odense S. Denmark Tel + 45 6311 4900 Dir +45 6311 4908 Mob +45 5156 1045 Fax + 45 6311 4949 E-mail [EMAIL PROTECTED] http://www.cowi.dk From: [EMAIL PROTECTED] on behalf of Uffe KousgaardSent: Fri 14-Jul-06 08:45To: Mapinfo-LSubject: Re: [MI-L] MapBasic - Expanding Munged filenames on the MapInfoRecentFiles menu From: "Bill Thoen" <[EMAIL PROTECTED]>> Or does MI keep a full copy of the> filename hidden behind the menu and just display the munged version?That is almost 100% certain.RegardsUffe___MapInfo-L mailing listMapInfo-L@lists.directionsmag.comhttp://www.directionsmag.com/mailman/listinfo/mapinfo-l ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
[MI-L] Changelog tracking?
Hello all, I am curious what others are using to track changes to MapInfo files and workspaces. We have run into an issue where a lack of change tracking is making troubleshooting more difficult. I dont think we would need a full blown version control system but something more along the lines of a changelog or change tracker. Is anyone doing something like this when files are being modified by multiple programmers/users? Thanks, Jonathan ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
[MI-L] MapInfo-L Reminder
To: MapInfo-L@lists.directionsmag.com From: [EMAIL PROTECTED] Subject: MapInfo-L Reminder This is just a reminder to help you manage your MapInfo-L subscription. This will be posted automatically each week, and please feel free to respond with suggestions or improvements. Check out the MapInfo-L wiki at http://www.mapinfo-l.com set up for us by Eric Frost <[EMAIL PROTECTED]>. Wikis are a very cool tool for building a community knowledge base. Join in and make your mark! - Bill Thoen and Peter Horsb?ll M?ller [EMAIL PROTECTED] CONTENTS 0. HOW TO POST MAIL TO MAPINFO-L 1. HOW TO SUBSCRIBE/UNSUBSCRIBE 2. HOW TO CHANGE YOUR SUBSCRIPTION SETTINGS 3. WHERE TO GO TO FIND NEWS WHEN THE LIST BREAKS 4. MAPINFO-L ARCHIVES -- 0. HOW TO POST MAIL TO MAPINFO-L If you are subscribed to the list, then sending mail to MapInfo-L@lists.directionsmag.com will send your message to everyone on the list. 1. HOW TO SUBSCRIBE/UNSUBSCRIBE You can subscribe, unsubscribe or change your account settings by going to http://www.directionsmag.com/mailman/listinfo/mapinfo-l. To subscribe, enter your email address and optionally your name, and then pick a password. A confirmation message will be sent to you, and after you confirm your request for subscription, you will begin receiving new mail from the list and will also be able to post mail to the list. To unsubscribe or change your account settings, go to the bottom of this page where you will see form controls that you can use to modify your account. You can do this all with email too. Just look at the X-headers in any MapInfo-L message and you'll see the addresses to send a blank email to to make the server do what you want. 2. HOW TO CHANGE YOUR SUBSCRIPTION SETTINGS You can change your account settings by going to http://www.directionsmag.com/mailman/listinfo/mapinfo-l. At the bottom of the page are form controls where you can specify your address and password to get access to your account settings form. 3. WHERE TO GO TO FIND NEWS WHEN THE LIST BREAKS Occasionally the angel of digital chaos descends on the 'net and sometimes smites MapInfo-L. Should this happen, you can find news and information about what's happening by going to http://www.gisnet.com/mapinfo-l.htm. 4. MAPINFO-L ARCHIVES The MapInfo archives are now available at http://www.directionsmag.com/pipermail/mapinfo-l/. ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
RE: [MI-L] Make a whole in a region object
and don't' forget to: 7) Delete "hole" I can't remember how many times I've left an "eraser" object in a layer by accident. Regards, Warren Vick Europa Technologies Ltd. http://www.europa-tech.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Uffe Kousgaard Sent: 14 July 2006 07:54 To: Mapinfo-L Subject: Re: [MI-L] Make a whole in a region object This is already possible with a few steps in MapInfo. I don't think you can make it much simpler by writing a tool. 1) Make layer editable 2) Select the region 3) Objects > Set Target (ctrl T) 4) Draw "hole" 5) Select "hole" 6) Objects > Erase Done. Kind regards Uffe Kousgaard www.routeware.dk - Original Message - From: "Boyd Townsend" <[EMAIL PROTECTED]> To: Sent: Friday, July 14, 2006 8:03 AM Subject: [MI-L] Make a whole in a region object > Can anyone assist. > > I am wanting to develop a simple tool for a user which will essentialy > make a hole in a region object. > > For example. > > We have a region object which depicts an area of land burnt by fire. > Within that region there are small pockets which were not burnt. We would > like to be able to draw in those unburnt portions into the existing > region. > > Essentially the user would draw a small area within the existing > region > which would then be erased from that region making a hole in it. (If this > makes Sense). > > Can anyone make a suggestion on what road I would best take to acheive > this??? > > In anticipation - Thanks > > Boyd Townsend > CSO - Northern Rivers > NSW Rural Fire Service > > > This email message is intended only for the addressee(s) and contains > information which may be confidential. > If you are not the intended recipient, please notify the sender and delete > this email and any copies or > links to this email completely and immediately from your system. Views > expressed in this message are > those of the individual sender, and are not necessarily the views of the > NSW Rural Fire Service. > > ___ > MapInfo-L mailing list > MapInfo-L@lists.directionsmag.com > http://www.directionsmag.com/mailman/listinfo/mapinfo-l ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l