|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.gis.shapefile.ProjFile
public class ProjFile
Class to read a shapefile .prj file
| Constructor Summary | |
|---|---|
ProjFile(File file)
Create a new Projfile from the location spec |
|
ProjFile(InputStream s)
Initialize the ProjFile from an input stream |
|
ProjFile(String spec)
Create a new Projfile from the location spec |
|
ProjFile(URL url)
Create a new Projfile from the URL |
|
| Method Summary | |
|---|---|
double[][] |
convertToLonLat(double[][] xy)
Convert the xy values to lat/lon |
ucar.unidata.geoloc.ProjectionImpl |
getProjection()
Get the projection defined by this file |
void |
init(InputStream s)
Process the file contents from the stream |
String |
toString()
_more_ |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProjFile(URL url)
throws Exception
url - URL to the *.prj file
Exception - problem reading or parsing the file
public ProjFile(String spec)
throws Exception
spec - Location of the *.prj file, as either a URL or filename
Exception - problem reading or parsing the file
public ProjFile(File file)
throws Exception
file - A file object of the *.prj file.
Exception - problem reading or parsing the file
public ProjFile(InputStream s)
throws Exception
s - the input stream
Exception - problem reading or parsing the file| Method Detail |
|---|
public void init(InputStream s)
s - the input stream from the .prj filepublic String toString()
toString in class Objectpublic ucar.unidata.geoloc.ProjectionImpl getProjection()
public double[][] convertToLonLat(double[][] xy)
xy - the xy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||