Bernard: First you have to setup the text file in the following order:
 from Maptitude(TM) Help... (please visit Maptitude help for more
information)


" Importing Text Files



Maptitude imports geographic data from comma-separated text files. These
files, which contain the location and shape of map features, can be created
using a text editor, word processor, or the Tools-Export command. Text files
normally contain coordinates in degrees of longitude and latitude, but they
can also have data stored in other coordinate systems. Maptitude can store
up to six decimal places of longitude and latitude.



Text files for points have one row for each feature. The row contains the
feature ID, the longitude, and the latitude.



52,-72.3673,41.8834

53,-101.378255,32.12337

54,-118.0902,39.3242



Text files for lines have one row for each feature. The row contains the
feature ID, the number of points that make up the line, and the longitude
and latitude of each point.



48,3,-82.8004,32.9364,-82.6068,32.9346,-82.5544,32.9363

49,4,-82.5544,32.9363,-82.5254,32.9356,-18.5210,32.9357,-82.1167,32.9266

50,3,-82.1167,32.9266,-82.9691,32.7703,-81.9544,32.7277



Optionally, text files for lines can contain a direction flag and the IDs of
the from and to nodes. When importing lines, you can click Options to
indicate whether the text file has these fields, what positions they are in,
and where the coordinates start. For example, these lines have a direction
flag in position 4, from and to nodes starting in position 2, and
coordinates (starting with the number of points that make up the line) in
starting in position 5:



48,121,254,0,3,-82.8004,32.9364,-82.6068,32.9346,-82.5544,32.9363

49,121,174,1,4,-82.5544,32.9363,-82.5254,32.9356,-18.5210,32.9357,-82.1167,32.9266

50,157,254,-1,3,-82.1167,32.9266,-82.9691,32.7703,-81.9544,32.7277



Text files for areas have one row for every boundary edge. The row contains
the ID of the feature to the left of the boundary edge, the ID of the
feature to the right of the boundary edge, the number of points that make up
the edge, and the longitude and latitude of each point. Use "0" (zero) as
the ID on sides where there is no feature.



48107,48303,4,-91.5630,33.8304,-91.5573,33.4636,-91.5572,33.4563,-91.5562,33.3950

48303,0,2,-92.0751,33.3888,-91.5562,33.3950

0,48303,3,-92.0751,33.3888,-92.0810,33.6348,-92.0855,33.8243

48189,48303,3,-92.0855,33.8243,-91.7319,33.8285,-91.5630,33.8304


I hope this helps ...

Regards,

Rudy B

Maptitude 5.0

On Mon, May 30, 2011 at 8:11 PM, Bernard Rate <[email protected]> wrote:

>
>
> Thanks J.Carlos. I forgot to say there are 200 coordinate pairs in a text
> file. Can I open it as .dbf? Will it create a new map with the polygon on
> it?
> When I click on Tools/Locate it is all grayed out except Index Locations...
> regards
>
>
> --- In [email protected], J.Ferrari <jcferrarilucas@...> wrote:
> >
> > Dear Bernard:
> >
> >
> >
> > I use 4.6 MAPT may not be very different. I usually import coordinates
> > converting txt, xls and others in DBF and then use Tools - Locate - by
> > coordinate - works well.
> >
> > I hope I have helped you
> >
> > Sorry by english, I'm from Brasil.
> >
> > A hug,
> >
> > J.Carlos Ferrari
> >
> >
> >
> > De: [email protected] [mailto:[email protected]] Em nome
> de
> > Bernard Rate
> > Enviada em: segunda-feira, 30 de maio de 2011 17:44
> > Para: [email protected]
> > Assunto: [Maptitude] importing points, lines and polygons
> >
> >
> >
> >
> >
> > About a week ago I started learning Maptitude 4.7. I got stuck when
> trying
> > to import coordinate pairs that represent points or lines or polygons (I
> > need to show service districts)I tried to do it with the Import Text
> files
> > method. This did not work, but I just learned that .BNA files can be
> opened.
> > Any hints appreciated.Thanks.
> > (ps I don't have shapefiles otherwise I would use them)
> >
>
>  
>



-- 
Aniruddha Banerjee, Ph.D.

Reply via email to