MI Allowing user to specify a directory

2000-04-27 Thread Elliot Tinton EG CEFAS

Hello All,

Can anyone tell me if there is a way to allow the user to specify a directory using 
MapBasic ?  Ideally by clicking on the relevant directory in a window showing 
directory structure.

I have a section of code that takes text files of point positions, converts them to 
MapInfo tables and displays the relevant information as separate layers in a number of 
maps.  At the moment the routine always looks for the files in a specific directory.  
However, I will soon have a number of directories of user defined name that will 
contain text files to convert.  Not all the directories will need to be used.  What I 
would like is for the user to be able to click on a particular directory and for my 
MapBasic routine to convert all the files contained in the directory.  Is this 
possible ?

Any help with this or any other ideas would be greatly appreciated.

Thanks very much.

Elliot Tinton.
[EMAIL PROTECTED]


--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



MI Integrated Mapping in Vb 6.0

2000-04-27 Thread Jayaprakash Athmaram

Dear MI gurus,

This is related to Integrated Mapping in Vb 6.0

I had made a drop down menu in my main form
which contains namely open table, browser and exit

By by clicking on open table menu, 
Two different maps are opened on two different forms , then click on
browser menu to open browser for recently open maps,a mapinfo dialog 
appears with two options for browser menu.At this stage if you click 
cancel button immediately next statement is executed and a blank form 
is visible


Problems

1. How can I trace the ok and cancel button of browser Dialog ?

2. Resizing all maps without clicking on maps dosen't work?

3. If I have more than one Maps open on different forms , Which function
   should I use to get the list of all recently open Maps in a listView
   or equivalent control.

Iam stuck here. Can anybody give me some hints

Thanks in advance.

Regards,
Jayprakash.A
~~~
Jayaprakash  Athmaram
Products Specialist Group
TATA Infotech Ltd
Mumbai - 400 059.
Office : [EMAIL PROTECTED]
Personal : [EMAIL PROTECTED]
Web   : www.tatainfotech.com
~~~

--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



RE: DWG Files into MI

2000-04-27 Thread Mitchell, Will

Hi Myles,

I have done this by the following methods:

1) What is the best method of making the many separate polylines
into single
closed catchments (aka regions)?

Create a new layer called Catchment Poly or something similar and make it
editable in the same mapper with your line segments.  Select all of the
segments that make up a single polygon, copy and paste them into the new map
layer.  With the lines still selected, do ObjectsCombine.  Then
Objectsconvert to region.  Assuming your polylines were all connected
you'll have a polygon.  The reason for the pasting into a new file is
because you'll need some of the same polylines again for shared borders.
This method could be too much work dpending on the dataset complexity, but
it is an option.

2) What is the best method of querying the DWG population text into
a column of
a MI table?

The following MapBasic string will do this - also accessible through
update column dialog...Add Column "poly" (id) From text Set To
objectinfo(text.obj,3) Where intersects


3) What is the best method of doing a "proportional allocation" of
the
population figures from that files mentioned above to another
catchment table
that I already have - noting that the boundaries between my existing
table and
the meshblock table don't always match?

Another MapBasic statement, also accessible through update column
dialog...you need a pop column in the poly table to fill with the
proportional pop values, then try this...
Add Column "poly" (pop) From pop Set To proportion sum(pop) Where intersects


Good luck.

Will Mitchell
GIS Manager
The Environmental Company, Inc.
2496 Old Ivy Rd
Charlottesville, VA 22905
ph 804.295.4446
fx 804.295.4435
http://www.tecinc.com



 -Original Message-
 From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, April 26, 2000 4:55 PM
 To:   [EMAIL PROTECTED]
 Subject:  DWG Files into MI
 
 
 
 People,
 
 Can someone please help me out?
 
 I have a DWG file which contains meshblock population catchment boundaries
 (each
 drawn as a number separate polylines). I have another file which contains
 population figures for each of these catchments. When I open these files
 in MI
 using the Universal Translator, the population figures are a text
 reference
 located at the centroid of each of the catchments and thay contain no
 other
 attributes. The three questions that I have are:
 
 1) What is the best method of making the many separate polylines into
 single
 closed catchments (aka regions)?
 
 2) What is the best method of querying the DWG population text into a
 column of
 a MI table?
 
 3) What is the best method of doing a "proportional allocation" of the
 population figures from that files mentioned above to another catchment
 table
 that I already have - noting that the boundaries between my existing table
 and
 the meshblock table don't always match?
 
 
 Thanks in advance.
 
 Myles Lind
 
 
 --
 To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
 "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



MI MapInfo - Access

2000-04-27 Thread Peter_McPherson




(Forwarded Information Moved to File: ~FWRD_1.txt)

Hello,

I have been having troubles with my email server, so I will repeat my
question. My apologies to those who have received this already.

I have a question about Access and MapInfo's relationship. Curious
enough when I open an Access table in MapInfo, without making changes
or additions, then close the TAB file and then open in the Access
database, MapInfo had added a column MapInfo Index. Why is this
happening and is there anyway to prevent this?

TIA

Peter McPherson

 Text - character set unknown


MI Creating points in a table using MapBasic

2000-04-27 Thread David Crowther

Hello users,

I am currently involved in a project that uses VB6 to run  
commands from MapInfo. The problem I have is that although I 
know how to create points for a table of geocoded data in MapInfo I 
cannot replicate this within a MapBasic program. 

I need to write a MapBasic program that will run through all the 
records in the table to create points using eastings (col4) and 
northings (col5). This will then update the table used to create 
points of a certain style.

I appreciate all your help and look forward to your reply.

Cheers David.C.
David Crowther
GIS Consultant
[EMAIL PROTECTED]
___

Traffic Director for London
0171 222 4545 (ext:143)
--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



MI/MB: Text object orientation

2000-04-27 Thread Jean-Francois Lepine



Hi,

I had to import a .e00 file containing text 
objects. Many of them had an orientation. Now, I need to know this orientation 
so I can put it in anew field which will be used later for labeling 
purpose (in order to give the labels the same orientation as the text objects). 


So, my question is: How can I achieve that through 
MapInfo or MapBasic?

Thanks in advance for your answers,
Jeff Lepine
[EMAIL PROTECTED]



MI Shortest distance from point to a line.

2000-04-27 Thread Brad Mathews

Hello,

I ran across this at one time, but I can't find it now.

Does anyone have the formula for calculating the nearest distance from a
point to a line on a spherical surface (the earth)?

Thanks,
Brad
--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



Re: MI Allowing user to specify a directory

2000-04-27 Thread Bill Thoen

"Elliot Tinton EG CEFAS (DN=EJT00, RECIPIENTS, LOWESTOFT, CEFAS)"
wrote:
 
 Can anyone tell me if there is a way to allow the user to specify a directory using 
MapBasic ?  Ideally by clicking on the relevant directory in a window showing 
directory structure.

Hi Elliot,

Boy, that's quite a return address you have there! But I
digress...

The way I solved this problem was to create a function called
GetDir() that presents a dialog box that lets the user search
drives and paths and returns either a fully-specified directory
path or a null string. Underneath this, I use the following
Windows API types/functions:

define MAX_PATH 260
define INVALID_HANDLE_VALUE -1

Type FILETIME
dwLowDateTime As integer
dwHighDateTime As integer
End Type

Type WIN32_FIND_DATA
dwFileAttributes As integer
ftCreationTime As FILETIME
ftLastAccessTime As FILETIME
ftLastWriteTime As FILETIME
nFileSizeHigh As integer
nFileSizeLow As integer
dwReserved0 As integer
dwReserved1 As integer
cFileName As String * MAX_PATH
cAlternate As String * 14
End Type

declare function GetLogicalDriveString32 lib "kernel32" 
alias "GetLogicalDriveStringsA" (
byval nBufferLength as integer,
sBuffer() as integer)
as integer
Declare Function FindFirstFile Lib "kernel32" 
Alias "FindFirstFileA" (
ByVal lpFileName As String, 
lpFindFileData As WIN32_FIND_DATA) 
As integer
Declare Function FindNextFile Lib "kernel32" 
Alias "FindNextFileA" (
ByVal hFindFile As integer, 
lpFindFileData As WIN32_FIND_DATA) 
As integer
Declare Function FindClose Lib "kernel32" 
Alias "FindClose" (
ByVal hFindFile As Integer) 
As Integer

These don't let you search the desktop, network neighborhood or
the other "new" Win95 paths (if anyone knows how to get to those,
please enlighten me!), but if you set up a mapped network drive,
these functions will work with that as though it was a regular
drive. The trick in gathering up only directory entries after
calling FindFirstFile() or FindNextFile() is to check the
dwFileAttributes element in the returned WIN32_FIND_DATA file
type and if it is 16, that "file" is a directory. 

You'll need one of those whopping big WinAPI books to understand
all the details (I'm using the "Visual Basic Programmer's Guide
to the Windows API" by Dan Appleman), but if you want to extend
MapBasic's reach into places you didn't think it could go, this
is a worthwhile investment.

Good luck,
- Bill Thoen
--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



Re: MI/MB: Text object orientation

2000-04-27 Thread Francois Bergeron

Hi J-F!

You can use this function in the Update Column dialog:
ObjectGeography(obj, 7)--- same as
ObjectGeography(obj, OBJ_GEO_TEXTANGLE) in MapBasic.

Hope this help!
Ciao!!

___

||//  François Bergeron
||   //Conseiller en Géomatique
||  // [EMAIL PROTECTED]
||  \\
||   \\   Le Groupe KOREM Inc.
||\\  http://www.korem.com

Formation MapInfo:
http://www.korem.com/formation.html

MIG!!
www.mig.ca

680, Boul. Charest Est
Québec  (Québec)   CANADA   G1K 3J4
___


--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



RE: MI Date: Wed, 26 Apr 2000 10:02:26 -0500

2000-04-27 Thread ZONING ADMINISTRATOR

I would use Update Column from the Table menu.  MI allows you to take data
from "hidden" fields and transfer it to viewable columns.  These are the
same data fields that report the area of a region when you double click on
it.  I needed to update my parcel table so I went ahead and did this. Below
is the text copied from the mapbasic window after I completed the dialogue
boxes from SQL select and Update Column.  My parcel table already has a
field to hold the area data, called Estimated_Acres.  You should have (add)
a column in your table to hold the area data you will be taking from MI.

Select * from Parcels where RecordStatus = "A" into Selection
Browse * From Selection

My parcel table contains other objects, such as notes, old subdivision plat
lines that are no longer property lines, etc. so I selected only the objects
that have an "A" (for active) from the RecordStaus Field, this became
Query3.  I had to work from this query because I encountered an error msg
when I tried to directly update the column with the area function, I assumed
that MI didn't like the other objects in the table.

Add Column "Query3" (Area_obj___acre__ Float)From Parcels Set To Area(obj,
"acre") Where COL1 = COL1  Dynamic
Browse * From Query3


This was scripted from the Table menuUpdate Column (above).  You are adding
a temp column to Query 3 that will be the value of the expression Area(obj,
"acre") from the parcel table (the parent of query3), you could use "sq mi"
instead of "acre"

Update Query3 Set Estimated_Acres = Area_obj___acre__
Browse * From Query3

This transfers the data in the temp column to the permanent column
Estimated_Acres.  Its called Estimated because it's the area as drawn -
misdrawn parcels produce inaccurate areas


William Woodruff
Zoning Administrator
Charter Township of Union, T14 N R4W, Isabella County, Michigan
(517) 772 4600 ext 41,  FAX (517) 773 1988

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of David Eagle
Sent: Wednesday, April 26, 2000 12:01 PM
To: Lathrop, Travis
Cc: [EMAIL PROTECTED]
Subject: Re: MI Date: Wed, 26 Apr 2000 10:02:26 -0500

Travis,

Go to the drop down menu Map and then select Options at the
bottom of the menu...Change the Area Units to Square Miles and
select OK.

Now in your Mapper select the polygon in question, then click on
the drop down menu Edit and then Get Info, again at the bottom of
the menu...There's your answer, hope that helps...

Dave

On 26 Apr 00, at 9:02, Lathrop, Travis wrote:

How would one go about calculating the total area, sq. mi, a polygon
represents.  I have dug in the help file looking at the area function with
little success.

Travis Lathrop
Intercarrier Services
(816) 559-3014


--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

_
David A. Eagle
WS Atkins Consultants - East Anglia
Wellbrook Court, Girton Road, Cambridge, CB3 0NA.
Direct Dial Tel: (01223) 814090, Fax: (01223) 277529
E-Mail: [EMAIL PROTECTED]
--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



MI projecting on the fly

2000-04-27 Thread Phillips, Andrew

It was my understanding that vector coverages in different projections can
be mixed willy-nilly, technically speaking, within a map window, and each
would be reprojected on-the-fly to that windows projection as defined by the
raster base projection.  In a discussion with technical support at a company
that supplies several MI add-ons, I was told I was mistaken.  Rather, that
on-the-fly projection only correctly occurs if the various vectors are all
in lat/long.  What?  That makes on-the-fly projection a very limited
feature, indeed.  The User's Guide only indicates on-the-fly reprojection to
be a problem in processing time, not in mapping.
 
Your clarification of this point will be greatly appreciated.
 
Drew
 
 

Andrew Phillips, Ph.D. 
Quaternary Geology Section 
Illinois State Geological Survey 
 

--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



MI Any way to save thematic layers to a seperate table?

2000-04-27 Thread Chris Allen

Is there Any way to save thematic layers to a seperate table or any other
format.  For example a dot density thematic map. I want to get the exact
coordinates for every dot and since they arn't really objects, just part of
the shade function, they can't be selected.  Can anyone help?

Chris

--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



RE: MI projecting on the fly

2000-04-27 Thread Mitchell, Will

Your MI add-on technical support person must have been thinking about
ArcView.  You're fine in MapInfo.  One of the advantages MI has over AV.

Will Mitchell
GIS Manager
The Environmental Company, Inc.
2496 Old Ivy Rd
Charlottesville, VA 22905
ph 804.295.4446
fx 804.295.4435
http://www.tecinc.com


 -Original Message-
 From: Phillips, Andrew [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, April 27, 2000 2:03 PM
 To:   mi-l (E-mail)
 Subject:  MI projecting on the fly
 
 It was my understanding that vector coverages in different projections can
 be mixed willy-nilly, technically speaking, within a map window, and each
 would be reprojected on-the-fly to that windows projection as defined by
 the
 raster base projection.  In a discussion with technical support at a
 company
 that supplies several MI add-ons, I was told I was mistaken.  Rather, that
 on-the-fly projection only correctly occurs if the various vectors are all
 in lat/long.  What?  That makes on-the-fly projection a very limited
 feature, indeed.  The User's Guide only indicates on-the-fly reprojection
 to
 be a problem in processing time, not in mapping.
  
 Your clarification of this point will be greatly appreciated.
  
 Drew
  
  
 
 Andrew Phillips, Ph.D. 
 Quaternary Geology Section 
 Illinois State Geological Survey 
  
 
 --
 To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
 "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



MI creating points from centroids

2000-04-27 Thread Sidney . McLean

Hello users,

I have a polygon coverage of Census Enumeration Areas for a particular urban 
region, from which I would like to create a point theme consisting solely of 
points located at the centroids of each Enumeration Area.  Has anyone done 
something like this before, and if so, how do you go about doing it?  Any 
help would really be appreciated.

Regards,
-Sidney 

- -

Sidney McLean
Income Security and Social Development Studies
Applied Research Branch
Human Resource Development Canada
165 Hotel de Ville
Phase II, 7th Floor
Hull, Quebec
K1A 0J2
--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



RE: MI creating points from centroids

2000-04-27 Thread James Marlow

Hi Sidney

It's pretty simple actually - just a few steps.

1) Make a copy of your original table - use File | Save Copy As
2) Close the original and open the copy
3) Use the Table | Maintenance | Table Structure command to add two columns
to your new table - call them X and Y and set the type to Decimal 16, 8
4) Use the Table | Update Column command to get the centroid information
into the new columns - you'l do this twice, once for X and once for Y. Pick
your table, select the X or Y column and then, for the Value field, type
either CentroidX(obj) or CentroidY(obj).
5) Save your table
6) Select Table | Maintenance | Table Structure and select your table.
Uncheck the "Table Is Mappable" option and click "Ok". You have just removed
the map objects from your table.
7) Select Table | Create Points, select your table, make sure the X and Y
columns are set correctly, and click Ok. You now have a map of points
representing the centroids of the polygons you started with.

Regards,

James

James L Marlow
Director, Geographic Information Systems
Channel Marketing Corporation
15032 Beltway Drive
Addison, Texas 75001

Telephone 1 (972) 858-9600 extension 331
Facsimile  1 (972) 858-9601
email:  [EMAIL PROTECTED]
www:  http://cmcus.com


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 27, 2000 2:48 PM
 To: [EMAIL PROTECTED]
 Subject: MI creating points from centroids
 
 
 Hello users,
 
 I have a polygon coverage of Census Enumeration Areas for a 
 particular urban 
 region, from which I would like to create a point theme 
 consisting solely of 
 points located at the centroids of each Enumeration Area.  
 Has anyone done 
 something like this before, and if so, how do you go about 
 doing it?  Any 
 help would really be appreciated.
 
 Regards,
 -Sidney 
 
 - -
 
 Sidney McLean
 Income Security and Social Development Studies
 Applied Research Branch
 Human Resource Development Canada
 165 Hotel de Ville
 Phase II, 7th Floor
 Hull, Quebec
 K1A 0J2
 --
 To unsubscribe from this list, send e-mail to 
 [EMAIL PROTECTED] and put
 "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
 
--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



MI MapWorld Golf

2000-04-27 Thread Don MacMillan

There is room for 2 golfers in San Antonio. Tee-off is 4:00pm Saturday,
near the airport. Cost=$40. We will finish about 8:15pm
email me directly if you are interested.
[EMAIL PROTECTED]

--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



RE: MI creating points from centroids

2000-04-27 Thread Mitchell, Will

Try this,

Add a column called LAT and one called LONG to your table under
tablemaintenancetable structure (set them to type of float).  Update the
LAT column with Centroid(y), and the LONG column with centroid(x).  Export a
copy of that table as delimited text.  Open the text file, and create points
using LAT and LONG, and voila, you have a point layer of the centroids of
those polygons complete with the table of attributes.

Will Mitchell
GIS Manager
The Environmental Company, Inc.
2496 Old Ivy Rd
Charlottesville, VA 22905
ph 804.295.4446
fx 804.295.4435
http://www.tecinc.com


 -Original Message-
 From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, April 27, 2000 3:48 PM
 To:   [EMAIL PROTECTED]
 Subject:  MI creating points from centroids
 
 Hello users,
 
 I have a polygon coverage of Census Enumeration Areas for a particular
 urban 
 region, from which I would like to create a point theme consisting solely
 of 
 points located at the centroids of each Enumeration Area.  Has anyone done
 
 something like this before, and if so, how do you go about doing it?  Any 
 help would really be appreciated.
 
 Regards,
 -Sidney 
 
 - -
 
 Sidney McLean
 Income Security and Social Development Studies
 Applied Research Branch
 Human Resource Development Canada
 165 Hotel de Ville
 Phase II, 7th Floor
 Hull, Quebec
 K1A 0J2
 --
 To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
 "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



MI Rotate map and text objects

2000-04-27 Thread Blanc, Pierre



Any answer to the 
following problem ? I have a table with street names (text objects) and I want 
them to rotate with my street mapper. Text objects were created with Labeler 
tool, converting labels (center position). Thank you.

Pierre


MI copy file in mapbasic

2000-04-27 Thread Christopher DuBuc

List,

In MapBasic I am trying to copy a .dbf file (it is a Goldmine file) from one
directory to another, yet it seems something is locking this operation out,
producing an error in the code:

FirstFile="f:\programs\goldmine\pmg\contact1.dbf"
Save File FirstFile as "C:\GMTest\loc_contact1.dbf"

I am able to manually copy these files from one place to the other using
Explorer. As far as I can tell no one is even using Goldmine at run time.
Any Ideas?  Is there any better way to copy files from within MapBasic?

The reason I am trying to do this is because MapInfo cannot open a .dbf
table if someone else is accessing it through Goldmine (kind of a pseudo
ODBC type of thing)but I at least think I could copy the file to another
place even and then open it even if it is being used?  Has anyone else
tackled this problem?

Thanks in Advance

chris




Christopher DuBuc
V.P. Florida Operations
Sage Software

[EMAIL PROTECTED]
www.sagesoft.com

--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



RE: MI creating points from centroids

2000-04-27 Thread Martin Roundill

Sidney

Another alternative to Will's suggestion is to make a copy of the table
(called say "My_New_Table") and issue the following command in the mapbasic
window

Update My_New_Table set object = createpoint(centroidx(obj),centroidy(obj))

This bypasses the need to store the x/y (lat/Long) values

regards

Martin

==
Martin Roundill
GIS Manager
Waitakere City Council
Private Bag 93109
Henderson
Waitakere City
New Zealand

-Original Message-
From: Mitchell, Will [mailto:[EMAIL PROTECTED]]
Sent: Friday, 28 April 2000 09:02
To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
Subject: RE: MI creating points from centroids


Try this,

Add a column called LAT and one called LONG to your table under
tablemaintenancetable structure (set them to type of float).  Update the
LAT column with Centroid(y), and the LONG column with centroid(x).  Export a
copy of that table as delimited text.  Open the text file, and create points
using LAT and LONG, and voila, you have a point layer of the centroids of
those polygons complete with the table of attributes.

Will Mitchell
GIS Manager
The Environmental Company, Inc.
2496 Old Ivy Rd
Charlottesville, VA 22905
ph 804.295.4446
fx 804.295.4435
http://www.tecinc.com


 -Original Message-
 From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, April 27, 2000 3:48 PM
 To:   [EMAIL PROTECTED]
 Subject:  MI creating points from centroids
 
 Hello users,
 
 I have a polygon coverage of Census Enumeration Areas for a particular
 urban 
 region, from which I would like to create a point theme consisting solely
 of 
 points located at the centroids of each Enumeration Area.  Has anyone done
 
 something like this before, and if so, how do you go about doing it?  Any 
 help would really be appreciated.
 
 Regards,
 -Sidney 
 
 - -
 
 Sidney McLean
 Income Security and Social Development Studies
 Applied Research Branch
 Human Resource Development Canada
 165 Hotel de Ville
 Phase II, 7th Floor
 Hull, Quebec
 K1A 0J2
 --
 To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
 "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



RE: MI creating points from centroids

2000-04-27 Thread PERRY Chris

Sidney,

This is a one step process using the MapBasic Window:

1. First make a copy of your table
2. Open the MapBasic window (Options  Show Mapbasic Window)
3. Type in:
update YOUR_TABLE set obj=CreatePoint(CentroidX(obj),CentroidY(obj))
where YOUR_TABLE is the name of your mapinfo table.

Hope this helps,

Chris Perry
Systems Development CoOrdinator
Parks Victoria
Melbourne, Australia
Ph: 61 3 9816 6800
Fax: 61 3 9816 9876
[EMAIL PROTECTED]



 -Original Message-
 From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, April 27, 2000 3:48 PM
 To:   [EMAIL PROTECTED]
 Subject:  MI creating points from centroids
 
 Hello users,
 
 I have a polygon coverage of Census Enumeration Areas for a particular
 urban 
 region, from which I would like to create a point theme consisting solely
 of 
 points located at the centroids of each Enumeration Area.  Has anyone done
 
 something like this before, and if so, how do you go about doing it?  Any 
 help would really be appreciated.
 
 Regards,
 -Sidney 
 
 - -
 
 Sidney McLean
 Income Security and Social Development Studies
 Applied Research Branch
 Human Resource Development Canada
 165 Hotel de Ville
 Phase II, 7th Floor
 Hull, Quebec
 K1A 0J2
 --
 To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
 "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]