[Xastir] Shapefile question

J. Lance Cotton joe at lightningflash.net
Thu Apr 10 23:31:31 EDT 2003


I was sort of in the same boat a while back, as the shapefile maps that I got 
from my city GIS office were in a stateplane format (or something like that).

I was pointed to a reprojection utility included in the shapelib-1.2.9 
distribution. Look in the 'contrib' directory of the shapelib-1.2.9 source 
directory. Just cd into that directory and type 'make' to build all the 
files. 

The reprojection utility is called 'shpproj'. The documentation for shpproj is 
in the 'doc' directory inside that contrib directory. 

Here is the sent to the list previously which helped me so much:

--Original Message--
From: Derrick J Brashear <shadow at dementia.org>
Subject: [Xastir] drawing shapefiles for xastir

I couldn't use a GPS so I looked for a tool that would let me draw
shapefiles overlaid on rasters. OpenEV was sufficient for that
(http://openev.sourceforge.net), however it output a UTM-tied shapefile. I
used shpproj from the shapelib package's contrib area to fix this so
xastir could read it usefully:
shpproj old new -i="proj=utm zone=17 units=m ellps=clrk66" -o="geographic"
fill in your utm zone as appropriate.

the ellps=clrk66 is to cheaply convert from nad27 datum; i tried a shpproj
which i modified to be able to nad_cvt and the additional correction
wasn't enough to worry about. if you have a grs80 ellipsoid map you're
drawing on, you won't need to worry about this parameter.
-------------------------


Perhaps you can adapt this to your own needs.

-Lance KJ5O


On Thursday 10 April 2003 22:08, Chris Bell wrote:
> > On Thu, 10 Apr 2003, Jack Twilley wrote:
> > > convert_to_xastir_coordinates:Longitude out-of-range (too
> > > low):-380011.312500 convert_to_xastir_coordinates:Latitude out-of-range
> > > (too high):450270.437500 UrbanRural/urbrura.shp
> > >
> > > convert_to_xastir_coordinates:Longitude out-of-range (too
> > > high):540121.500000 convert_to_xastir_coordinates:Latitude out-of-range
> > > (too low):-605496.875000 UrbanRural/urbrura.shp
> >
> > Looks like the vertices in the shapefiles are not in lat/long format.
> > Can't help you with that.  You'd need to convert them to lat/long
> > first using a GIS program.
>
> Yes, I think they are in UTM format.  I was fighting with this too,
> but have not progressed past the relization of the problem.  I have
> installed GRASS, but am a bit overwhelmed so far.  It would probably
> be easier to adapt xastir, but I have not looked there either.  (My
> first goal was to translate a bunch of DRG files from albers
> projection to something we can use, but now I see this problem too!)
>
> Chris.
>
> _______________________________________________
> Xastir mailing list
> Xastir at xastir.org
> http://krypton.hscs.virginia.edu/mailman/listinfo/xastir

-- 
J. Lance Cotton, KJ5O
joe at lightningflash.net
Three Step Plan: 1. Take over the world. 2. Get a lot of cookies. 3. Eat the 
cookies.



More information about the Xastir mailing list