|
From: Adrian C. <ac...@gm...> - 2006-10-04 09:07:48
|
On Tue, 2006-10-03 at 15:33 -0700, Jody Garnett wrote:
> JONGSUNG LEE wrote:
> > Hi,
> >
> > I load a shapefile which doesn't have a prj file. But, we know that it is in WGS84.
> How can I define the projection after I loaded the shapfile into a datastore?
If you can create the .prj file *before* loading it, then the .prj file
is simply a WKT file with the projection information. You'll need to
know if your coordinates are geographic or projected and other info than
simply WGS84. For example,
tribuntu:/usr/local/gisData> cat world/countries.prj
GEOGCS["GCS_WGS_1984",DATUM["WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],
PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
Haven't thought about doing it after loading, but you can look at
2.3.0's DemoBase application to see how it's done for a feature on its
own.
cheers,
adrian
|