Projection File

File extension: pro

File Object

class gsshapy.orm.ProjectionFile[source]

Bases: sqlalchemy.ext.declarative.api.Base, gsshapy.base.file_base.GsshaPyFileObjectBase

Object interface for the Projection File.

The projection file contains the Well Known Text version of the spatial reference system for the GSSHA model. This file contains a single line, so the file contents is stored in the file object. No supporting objects are needed.

See: http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/doc-files/WKT.html
http://spatialreference.org/
tableName = 'pro_projection_files'

Database tablename

id

PK

projection

STRING

fileExtension

STRING

projectFile

RELATIONSHIP

classmethod lookupSpatialReferenceID(directory, filename)[source]

Look up spatial reference system using the projection file.

Parameters:
  • directory (str) –
  • filename (str) –
Returns:

Spatial Reference ID

Return type:

int