org.h2gis.drivers.utility
Class PRJUtil

java.lang.Object
  extended by org.h2gis.drivers.utility.PRJUtil

public class PRJUtil
extends Object

A class to manage PRJ file

Author:
Erwan Bocher

Constructor Summary
PRJUtil()
           
 
Method Summary
static int getSRID(Connection connection, File prjFile)
           
static void writePRJ(Connection connection, TableLocation location, String geomField, File fileName)
          Write a prj file according a given SRID code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PRJUtil

public PRJUtil()
Method Detail

getSRID

public static int getSRID(Connection connection,
                          File prjFile)
                   throws SQLException,
                          IOException
Parameters:
connection -
prjFile -
Returns:
Throws:
SQLException
IOException

writePRJ

public static void writePRJ(Connection connection,
                            TableLocation location,
                            String geomField,
                            File fileName)
                     throws SQLException,
                            FileNotFoundException
Write a prj file according a given SRID code.

Parameters:
connection -
location -
geomField -
fileName -
Throws:
SQLException
FileNotFoundException


Copyright © 2015 CNRS. All Rights Reserved.