To all who may know,
Using Mapbasic how do I get the minimum bounding rectangle for just the
text of a text object when it has an arrow pointing to something. Using MBR()
or using ( ObjectGeography(Lyr.Obj,1), ObjectGeography(Lyr.Obj,2),
ObjectGeography(Lyr.Obj,3), and
In your mapbasic install folders there should be a folder called ICONDEMO.
Build that .mbx from the .mb and run it then you can graphically see what
all the icons are and their numbers.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, February 21, 2005
I agree. I have to teach new users here. MapInfo is very intuitive for
Windows users. It functions very much like a Windows application. ESRI
functions like a Unix application. We have both types of users here and
people who are used to Unix seem to pick up ESRI tools faster than those who
are
I vote for PostgreSql because MySql is really a joke as far as database
systems go. I know a lot of people like it but the list of things it doesn't
support like triggers ect. could fill a room. It's spatial support is awful
too. We tried using it here when we saw that it supported spatial data
?
-Original Message-
From: Canfield, Andrew [mailto:[EMAIL PROTECTED]
Sent: Friday, February 18, 2005 7:39 AM
To: 'Flavio Hendry'; Lars V. Nielsen (HVM); MapInfo-L
Cc: [EMAIL PROTECTED]
Subject: RE: MI-L Differences between MapInfo and ArcView.
I agree. I have to teach new users here. MapInfo is very
To All,
I agree MapInfo needs to get on the stick and decide on a geodatbase format
for themselves(not Oracle spatial because normal small businesses cannot
afford it).
Some thoughts I have on differences are:
ESRI tools have a steeper learning curve than MapInfo. ESRI seems to assume
you used
You want Jacques's programs. They can be found here:
http://www.paris-pc-gis.com/ppcc/gisprogs.htm
The one you need will be either:
SKIM.ZIP
or
SKIMALL13.ZIP
depending on what you are doing.
-Original Message-
From: Bill Thoen [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 17, 2005
Warren,
I just saw your reply and I have sent you an e-mail. Let me know if you
don't get it and I'll try and send it from a gmail account or some other
account besides my work one.
Thanks,
Andy
-Original Message-
From: Canfield, Andrew
To: mapinfo-l@lists.directionsmag.com
Sent: 1/21
Does anyone on the list know the answer to any of the following questions:
How much are the Cresta zone data sets for MapInfo? ( It would be for two US
states area )
Who do I buy them from? ( I thought it was Europa technologies but I haven't
gotten a response from them ) (I tried e-mailing
I second Ultraedit. I haven't used the mapbasic interface in years since
Bill showed me how to set it up with Ultraedit. I can do my Java, C C++,
and mapbasic all from the same editor. You can set up syntax highlighting
and basic syntax correction then open up different types of files in
*Warning this is long*
I do not care much for .Net at all but the VS IDE is much easier to use for
the developer than MapBasic. If you really want to run cross-platform with
.Net then you can use Mono. It works in the same way Java works. Yes, it
works on different platforms but native code
A friend of mine also did a step by step example of how to crack passwords
in .Net also:
http://www.atrevido.net/blog/PermaLink.aspx?guid=8315fa01-0286-47ce-a20b-fcc
15eb297c3
And also how to replace strong names in assemblies so the program can't tell
you cracked it and will still run:
-Original Message-
From: Lars V. Nielsen (GisPro)
To: Canfield, Andrew
Cc: [EMAIL PROTECTED]
Sent: 12/17/2004 1:32 PM
Subject: Re: MI-L Dot NET and the Future of MapInfo Applications
Hi Andrew,
So basically you suggest we all roll over and play dead ;-)
No, I recognize and respect the reasoning
Is there a quick way to set the symbol for a large selection of objects
using MapBasic?
Here is my problem: I have a series of tables, in each of these
tables I have multiple point object groups, they are grouped by a field
called type in my MapBasic I select all from that table where
Thanks Bill! That is exactly what I was looking for.
-Original Message-
From: Bill Thoen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 7:33 AM
To: Canfield, Andrew
Cc: MapInfo-L
Subject: Re: MI-L Set multiple object symbols quickly?
Canfield, Andrew wrote:
Is there a quick
I have a question for anyone who has done Automating of MapInfo via raw COM
or Ole. When you create an instance or connect to an instance of an
automatable application on Windows you can use any one of a dozen languages
to do it. I have tried this in everything from C++ to Java to VB today and
I don't know if this will be usefull or not to anyone but I couldn't
find any good documentation on integrated mapping with MapInfo from C++
that doesn't use MFC. So I wrote up a small wrapper function that returns a
pointer to an instance of MapInfo for doing integrated mapping or just
Uffe,
I e-mailed back to Bill only by accident but sharpdevelop conks out when you
include the MapInfo GAC's. I contacted MapInfo on it and they contacted the
sharpdevelop project heads but as of yet there isn't a resolution. I'm going
to try C#Builder next because I can't find anyone who has
Hi all,
Ok this morning I downloaded and tried Borland's C#Builder with some
of the samples that ship with the King Beta. I just used the built in
project conversion that is included with C#Builder when you do a File -
Open Project. You have to change a few of the paths on the references
It will create an .mbx but you probably have a call or declare to a function
it can't find in the current module. It then assumes it's part of a project
so it creates an .mbo which is the file extension for a MapBasic Object
you can create an .mbx from .mbo's by linking them in one project. It
I have dual 1.7 xeons and I have the exact same issue. We run both ArcGIS
and MapInfo at our company and you are 100% correct ArcGIS is just dog slow
no matter what you do. I have to use data sets of multiple county tax lots
and each county has 400,000+ taxlots. Put 12 counties together and go
I take it you don't do C or C++ then? For those folks who don't the easy way
to find constants is just go to the header file they are in with a text
editor and look them up IE the stuff you want is in shlobj.h if you don't
have the header files you can get them in either the platform SDK for
You know I posted this example on 10/08/2002 to this very list and David
Haycraft added some enhancements to it but here it is again(Browse for
folder using MapBasic):
-code-
include mapbasic.def
include menu.def
include icons.def
Define BIF_RETURNONLYFSDIRS
That is true but it is a very limited import you can't manipulate anything
on it's way in. You may want to look into how AutoCad Map does that import.
It uses FMEobjects. They have relicensed the drivers and it distributes with
AutoCad Map. That functionality is not native to map. It was a plugin
Dale is correct. The most common way to convert it, is using FME. There are
other ways but speaking from personal experience save yourself the headache
and just use FME. Then you just have to know the name of the application in
the extended entity data (most commonly called xdata) to retrieve it
I'm very interested. Please do post your solution.
-Original Message-
From: Sam J [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 9:22 AM
To: [EMAIL PROTECTED]
Subject: Re: MI-L Using MapInfo OLE in C++
Thanks Martin. He suggested an element of a solution.
Basicaly, I get
Out of all the plotters I have ever used from MapInfo Pro hands down my
favorite is the HP Design Jet 1055CM by HP. It has all the things I really
wanted from earlier plotters but that they didn't have like easy initial
paper setup, great color and paper settings, huge memory for jobs, which you
Here is what I use it's free and open source:
http://sector7g.wurzel6.de/pdfcreator/index_en.htm
-Original Message-
From: Abbi Mueller [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 11:38 AM
To: [EMAIL PROTECTED]
Subject: MI-L Layout to *.pdf file
Can anyone tell me how
To all who may know.
What is the absolute most up to date and accurate addressed street base
in MapInfo format? I do not care about price I just really need to know what
is the best data out there.
Thanks,
Andy
Yes, I noticed the same thing. I was going to use that wish list to write
add-ins to MapInfo in MapBasic. I like to have projects in MapBasic so it
stays fresh in my mind but it seemed that no one was using the wish list so
I dropped the idea. If people do start using it again I will make some
I deal with this issue every day. Unfortunetly my solution will only work in
the US and Canada. There is an AI company called SemaphoreCorp that makes a
product called ZP4 it does everything from common spelling mistakes to
phoenetic string building. A lot of great programming went into the
This is something I did when I first started using MapBasic as a development
language. It's pretty bad but it will give you an idea of how you can shade
based on values in a column.
Sub ShadeByStatus
Dim Norm_fillstyle As Brush
Dim InCons_fillstyle As Brush
Dim Video_fillstyle As Brush
Dim
This works for lines. I have never tried it on poly lines so I'm not sure if
it works on them or not. Obviously make sure your variables are correctly
declared and set first.
stXcoord = ObjectGeography(myLine,OBJ_GEO_LINEBEGX)
stYcoord = ObjectGeography(myLine,OBJ_GEO_LINEBEGY)
ndXcoord =
Ben here is what I use to when I'm needing SVG info. I do it Acad to SVG but
MapInfo should be a lot easier as there are no blocks to deal with.
http://www.w3.org/TR/SVG/intro.html
-Original Message-
From: Ben Crane [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 04, 2003 2:02 AM
To:
Sorry to be posting this again but last night I was looking for a post in
which someone had mentioned that on their web site they had instructions for
setting up a text editor to link and compile Borland C++ files. I haven't
been able to find that post or the web site. If that person is still
)
ElseIf dblX = 0 AND dblY = 0 Then
AngleOfPt = 1004
End If
End Function
-Original Message-
From: B. Thoen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 6:22 AM
To: Canfield, Andrew
Cc: [EMAIL PROTECTED]
Subject: Re: MI-L Command line compile instructions
Go with a number of runs limit rather than a date. Release the app and with
50 trial uses. That way if they install it and forget about it until after
the 30 days they can still try your program. Write the number of uses to a
file in the registry each time using the API (you will have to convert
Remember you asked for this. Don't say you weren't warned. This will change
the MDI background color of all MDI applications on your system, So you
better hope this is what your user wants. I have included constants to
change a bunch of other settings colors too like the caption and what not. I
am
try
lowerstrIn = left(OriginalString,1)
upperstrIn = ucase(lowerstrIn)
newstring = replace(YourString,lowerstrIn,upperstrIn,1,1,0)
that should replace the first letter with an upper case version of itself
-Original Message-
From: Kornelsen, Gerald [mailto:[EMAIL PROTECTED]]
Sent:
I have run into this same problem. If you use FME directly to translate them
you run into the same problem. The problem is with FME. I have a way around
it but it's extremely time consuming. So if you get a solution to this and
it's not posted to the list would you please copy the solution to me.
First is there a way to make an argument to a function Optional like in VB
where you say something like
Function MyTestFunct( valueOne as String, Optional ValueTwo as Boolean) ?
Second is there any way to Color buttons on a dialog so they aren't the
standard grey?
Three does MapBasic have a
but I was going to redraw the dialog or a button in the
color specified so they could see it visually also.
Thanks for the quick response,
Andy
-Original Message-
From: B. Thoen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 8:11 AM
To: Canfield, Andrew
Cc: '[EMAIL PROTECTED
That's a good idea. I will try that. Thanks Lars.
Andy
-Original Message-
From: Lars V. Nielsen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 7:57 AM
To: Canfield, Andrew
Cc: [EMAIL PROTECTED]
Subject: Re: MI-L Three MapBasic questions
Hi Andrew,
Instead of a colored
Has anyone created a tool for MapInfo Pro that will allow you to select a
start point and an end point and find the shortest path between them on a
chosen table like a streets table or a highways table? Then highlight the
route and show the the distance in the current Map Units?
Is it possible to resize the nodes in a map? I have someone with poor eye
site and they would like larger nodes in polygons on their map. Is there a
way to do this?
-
List hosting provided by Directions Magazine |
Does MapBasic support OLE? So you could go the other direction? Is the
standard VB Dim ExcelApp as Object Set ExcelApp = Excel.Application type of
structure supported in the reverse direction so that you could control Excel
from within MapInfo rather than MapInfo from Excel?
-Original
Ok Thanks Paul. That cleared up my last question I suppose C++ it is. I
won't do that until I am 100% sure my company isn't upgrading. C++ is
definitely not my favorite enviroment.
-Original Message-
From: CRISP, Paul -Syntegra UK [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20,
)
strRunCommand = strRunCommand Into qryResultsTable
'Close the dialog
Dialog Remove
'Run the command creating the new qryResults table
Run Command strRunCommand
end code''
-Original Message-
From: Canfield, Andrew
Sent: Monday, November 18, 2002
I have an array of alias variables each value in the array is a column name
in a table. I need to do a proportion overlap query and also include the
columns in that array which the user has selected from a popup control of
the column names. How do I do it? For example:
if aliasColumnList
I have two tables Table one is only a browser table it has no graphical
data. Table two has all the same column names but also has graphical data.
One polygon for each record. I have a primary key that is an ID number in
both tables. How do I run a query that will give me all the records in my
Julian,
I don't know if it will help or not but I have written an .mbx which
allows you to select an object and copy it's fill pattern and line style to
multiple objects across tables. It simply a toolbar with two buttons on it
you select the object you want to copy from and hit C on the
Are you looking to set the zoom level for a selection of tables within your
Map? I don't have one that does it right off the bat but it should be easy
to write up if someone doesn't have one readily available. E-mail me if
someone doesn't have a ready made one and let me know exactly what you are
You could do it like this
'---code
include mapbasic.def
Declare Sub Main
Sub Main
Dim strFile As String
Dim origTableName As String
Dim newFileName As String
strFile = FileOpenDlg(,,TAB,Open TAble)
Open Table strFile
origTableName =
I just tested your code on Win2K and it works great there also. Taking out
the lstrcat() function allowed the custom prompt to work on my NT4 machines
here also. Thanks David.
-Original Message-
From: David M Haycraft [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 6:22 AM
To:
This is something I needed but I thought it might be of use to others out
there. It is an example of how to use the Shell32.dll SHBrowseForFolder
function to return a path to a folder from MapBasic.
Enjoy
-code-
include mapbasic.def
include menu.def
Bill Thoen was the one who showed me how to use Ultra Edit as a compiler. I
use it exclusively now. Here are the instructions per Bill's original e-mail
to me.
Sure. That's how I use it with MapBasic to MBX. Under the Advanced menu,
choose Tool Configuration. First, create a little compile
I have a real quick .mb that I wrote to copy paste fill paterns from one
polygon to another or one polygon to multiple. Basically it works like this.
It has a toolbar with the letters C one one button and the letter P on
another button. Select the polygon with the fill pattern you want then click
The FindWindow function in your user32 library will return the current
instance of MapInfo. It works by caption so when you first run your create
objects or a shell MapInfo you know what your window caption will be so
capture the handle then and it remains the same throughout that session. The
A few days ago I posted a way to shell any application from within MB. I got
some positive response and Jaques was kind enough to elaborate on it and
post it on his outstanding web site. Some people said yes that is great now
I can Shell an application but how do I close it. This is a bit more
This may be old news to you guys or not, however I'll post it because it
took me so long to figure this out. Here is how you Start a windows program
from MapInfo via Mapbasic. I need it to initiate DDE conversations with
Excel therefore Excel must be running. I don't like starting excel then
I have two tables in MapInfo 6.0 both are polylines only. I want to snap all
the nodes in one table to all the nodes in the other if they are within a
certain distance. Has anyone written an MBX like this? If so can you send me
the code to do it. I have a MapBasic so I can write it for my needs
Jacques of Paris PC Consult has been kind enough to post an application I
have created for MapInfo's MapMarker on his web site www.paris-pc-gis.com
http://www.paris-pc-gis.com This application is an adeptation of the open
source code that comes with MapMarker. It will take a batch of
I frequently have tables of over 100,000 addresses which have been geocoded.
When I run a query to find what boundary they lie in Mapinfo quits
responding unless I trim the table down to less than 12,000 addresses. Is
there a way around this? I really need to be able run 140,000 + addresses at
63 matches
Mail list logo