[Xastir] Shapefile creation help?
Tom Russo
russo at bogodyn.org
Fri Apr 22 11:02:16 EDT 2005
On Fri, Apr 22, 2005 at 01:08:27AM -0700, we recorded a bogon-computron collision of the <change-xastir at nightwind.net> flavor, containing:
> Hoping someone can give me a hint as to what I'm doing wrong...
>
> Following the example in the README.MAPS file (but giving it my own
> coordinates):
>
> # shpcreate posts point
> # dbfcreate posts -n ID 8 0 -s CFCC 3 -s NAME 30
> # shpadd posts 35.79861 -120.97361
> # dbfadd posts 1 'X\m ' Start
>
> Load it into Xastir, and I see these errors in the console:
>
> index_restore_from_file: bottom extent incorrect 75950499 in map name: posts.shp
> index_restore_from_file: top extent incorrect 75950499 in map name: posts.shp
>
> All I did was put one point in it...what could I have screwed up?
You put the coordinates in the wrong order --- you used "latitude longitude"
and xastir is expecting "longitude latitude"
That isn't explicitly stated in README.MAPS, but the lines:
shpcreate posts point
dbfcreate posts -n ID 8 0 -s CFCC 3 -s NAME 30
shpadd posts -74.0570 40.6025
dbfadd posts 1 'X\m ' Start
are supposed to be creating a point in North America, so -74.0570 is the
longitude.
HTH,
T.
--
Tom Russo KM5VY SAR502 DM64ux http://www.swcp.com/~russo/
Tijeras, NM QRPL#1592 K2#398 SOC#236 AHTB#1
"The only thing you can do easily is be wrong, and that's hardly
worth the effort." -- Norton Juster
More information about the Xastir
mailing list