Click here to get back home

programming and shapefiles

 HomeNewsGroups | Search | About
 comp.infosystems.gis    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
programming and shapefiles Alex 07-12-2005
Get Chitika Premium
Posted by Alex on July 12, 2005, 10:23 am
Please log in for more thread options
hello everyone,
I have a problem with handling shapefiles. Those files contain
information about roads, some attributes are accessible in DBF files,
where I can find such information as road name, section, ... and also
information to which part of the road some section belong, ... But
there is no attribute like lon/lat or some kind of coordinates I need
to use in other software, actually for some kind of selfmade web
application. I know that there is somewhere information I need because
ArcMap programm has an utility to show "real" coordinates. How do I
get these "real" coords? Do I have to write an utility for extraction
geometry data from shapefiles directly?
PS. I am a newbie to GIS, be patient :)


Posted by Uffe Kousgaard on July 12, 2005, 7:47 pm
Please log in for more thread options
> How do I
> get these "real" coords? Do I have to write an utility for extraction
> geometry data from shapefiles directly?

SHP file documentation:
http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf

You can also try:
http://shapelib.maptools.org/

Regards
Uffe




Posted by PJ Halls on July 13, 2005, 8:00 am
Please log in for more thread options
Alex wrote:
>
> hello everyone,
> I have a problem with handling shapefiles. Those files contain
> information about roads, some attributes are accessible in DBF files,
> where I can find such information as road name, section, ... and also
> information to which part of the road some section belong, ... But
> there is no attribute like lon/lat or some kind of coordinates I need
> to use in other software, actually for some kind of selfmade web
> application. I know that there is somewhere information I need because
> ArcMap programm has an utility to show "real" coordinates. How do I
> get these "real" coords? Do I have to write an utility for extraction
> geometry data from shapefiles directly?
> PS. I am a newbie to GIS, be patient :)

A 'shapefile' actually comprises at least three, interlinked, files - of
types shp, shx and dbf. You have found the attribute data in the dbf
file, for each record there there is a record in the shp file that holds
the coordinate data.

You have already been pointed to ESRI's descriptive White Paper: do read
that. There are two (related) Open Source libraries available to help a
programmer who must manage these data: shapelib and gdal (which offers a
wide range of other spatial formats in addition). Get gdal from
www.gdal.org.

Best wishes,

Peter

-----------------------------------------------------------------------


Similar ThreadsPosted
Programming Arc Explorer? August 5, 2005, 9:06 pm
MASTERS IN GIS PROGRAMMING May 19, 2006, 6:41 am
Java Programming on TerraServer July 9, 2004, 11:36 am
who can give me some useful material about gis &vb programming? thanks April 4, 2005, 3:00 am
Programming Solid Edge November 5, 2005, 6:38 pm
Custom AutoCAD programming for mapping-GIS March 17, 2004, 12:24 am
Programming Garmin (GpsMap) datacards in Linux? March 3, 2004, 9:08 pm
Shapefiles Free or Buy May 24, 2008, 8:42 am
Mexico Shapefiles needed August 10, 2004, 8:38 am
Islands, shapefiles and GRASS February 4, 2008, 7:06 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap