public class ProjFile
extends java.lang.Object
| Constructor and Description |
|---|
ProjFile(java.io.File file)
Create a new Projfile from the location spec
|
ProjFile(java.io.InputStream s)
Initialize the ProjFile from an input stream
|
ProjFile(java.lang.String spec)
Create a new Projfile from the location spec
|
ProjFile(java.net.URL url)
Create a new Projfile from the URL
|
| Modifier and Type | Method and Description |
|---|---|
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(java.io.InputStream s)
Process the file contents from the stream
|
java.lang.String |
toString()
_more_
|
public ProjFile(java.net.URL url)
throws java.lang.Exception
url - URL to the *.prj filejava.lang.Exception - problem reading or parsing the filepublic ProjFile(java.lang.String spec)
throws java.lang.Exception
spec - Location of the *.prj file, as either a URL or filenamejava.lang.Exception - problem reading or parsing the filepublic ProjFile(java.io.File file)
throws java.lang.Exception
file - A file object of the *.prj file.java.lang.Exception - problem reading or parsing the filepublic ProjFile(java.io.InputStream s)
throws java.lang.Exception
s - the input streamjava.lang.Exception - problem reading or parsing the filepublic void init(java.io.InputStream s)
s - the input stream from the .prj filepublic java.lang.String toString()
toString in class java.lang.Objectpublic ucar.unidata.geoloc.ProjectionImpl getProjection()
public double[][] convertToLonLat(double[][] xy)
xy - the xy