Last active
August 29, 2015 14:01
-
-
Save ihnorton/52467f12b92e8227c2de to your computer and use it in GitHub Desktop.
OGR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Julia wrapper for header: /usr/include/gdal/ogr_core.h | |
# Automatically generated using Clang.jl wrap_c, version 0.0.0 | |
function OGRMalloc(::size_t) | |
ccall((:OGRMalloc,ogr),Ptr{Void},(size_t,),) | |
end | |
function OGRCalloc(::size_t,::size_t) | |
ccall((:OGRCalloc,ogr),Ptr{Void},(size_t,size_t),,) | |
end | |
function OGRRealloc(::Ptr{Void},::size_t) | |
ccall((:OGRRealloc,ogr),Ptr{Void},(Ptr{Void},size_t),,) | |
end | |
function OGRStrdup(::Ptr{Uint8}) | |
ccall((:OGRStrdup,ogr),Ptr{Uint8},(Ptr{Uint8},),) | |
end | |
function OGRFree(::Ptr{Void}) | |
ccall((:OGRFree,ogr),Void,(Ptr{Void},),) | |
end | |
function OGRGeometryTypeToName(eType::OGRwkbGeometryType) | |
ccall((:OGRGeometryTypeToName,ogr),Ptr{Uint8},(OGRwkbGeometryType,),eType) | |
end | |
function OGRMergeGeometryTypes(eMain::OGRwkbGeometryType,eExtra::OGRwkbGeometryType) | |
ccall((:OGRMergeGeometryTypes,ogr),OGRwkbGeometryType,(OGRwkbGeometryType,OGRwkbGeometryType),eMain,eExtra) | |
end | |
function OGRParseDate(pszInput::Ptr{Uint8},psOutput::Ptr{OGRField},nOptions::Cint) | |
ccall((:OGRParseDate,ogr),Cint,(Ptr{Uint8},Ptr{OGRField},Cint),pszInput,psOutput,nOptions) | |
end | |
function GDALVersionInfo(::Ptr{Uint8}) | |
ccall((:GDALVersionInfo,ogr),Ptr{Uint8},(Ptr{Uint8},),) | |
end | |
function GDALCheckVersion(nVersionMajor::Cint,nVersionMinor::Cint,pszCallingComponentName::Ptr{Uint8}) | |
ccall((:GDALCheckVersion,ogr),Cint,(Cint,Cint,Ptr{Uint8}),nVersionMajor,nVersionMinor,pszCallingComponentName) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const OGRERR_NONE = 0 | |
const OGRERR_NOT_ENOUGH_DATA = 1 | |
const OGRERR_NOT_ENOUGH_MEMORY = 2 | |
const OGRERR_UNSUPPORTED_GEOMETRY_TYPE = 3 | |
const OGRERR_UNSUPPORTED_OPERATION = 4 | |
const OGRERR_CORRUPT_DATA = 5 | |
const OGRERR_FAILURE = 6 | |
const OGRERR_UNSUPPORTED_SRS = 7 | |
const OGRERR_INVALID_HANDLE = 8 | |
const wkb25DBit = 0x80000000 | |
# Skipping MacroDefinition: wkbFlatten(x)((OGRwkbGeometryType)((x)&(~wkb25DBit))) | |
const ogrZMarker = 0x21125711 | |
# Skipping MacroDefinition: DB2_V72_FIX_BYTE_ORDER(x)((((x)&0x31)==(x))?(OGRwkbByteOrder)((x)&0x1):(x)) | |
# Skipping MacroDefinition: DB2_V72_UNFIX_BYTE_ORDER(x)((unsignedchar)(OGRGeometry::bGenerate_DB2_V72_BYTE_ORDER?((x)|0x30):(x))) | |
const ALTER_NAME_FLAG = 0x1 | |
const ALTER_TYPE_FLAG = 0x2 | |
const ALTER_WIDTH_PRECISION_FLAG = 0x4 | |
const ALTER_ALL_FLAG = (ALTER_NAME_FLAG|ALTER_TYPE_FLAG|ALTER_WIDTH_PRECISION_FLAG) | |
const OGRNullFID = -1 | |
const OGRUnsetMarker = -21121 | |
const OLCRandomRead = "RandomRead" | |
const OLCSequentialWrite = "SequentialWrite" | |
const OLCRandomWrite = "RandomWrite" | |
const OLCFastSpatialFilter = "FastSpatialFilter" | |
const OLCFastFeatureCount = "FastFeatureCount" | |
const OLCFastGetExtent = "FastGetExtent" | |
const OLCCreateField = "CreateField" | |
const OLCDeleteField = "DeleteField" | |
const OLCReorderFields = "ReorderFields" | |
const OLCAlterFieldDefn = "AlterFieldDefn" | |
const OLCTransactions = "Transactions" | |
const OLCDeleteFeature = "DeleteFeature" | |
const OLCFastSetNextByIndex = "FastSetNextByIndex" | |
const OLCStringsAsUTF8 = "StringsAsUTF8" | |
const OLCIgnoreFields = "IgnoreFields" | |
const ODsCCreateLayer = "CreateLayer" | |
const ODsCDeleteLayer = "DeleteLayer" | |
const ODrCCreateDataSource = "CreateDataSource" | |
const ODrCDeleteDataSource = "DeleteDataSource" | |
# Skipping MacroDefinition: GDAL_CHECK_VERSION(pszCallingComponentName)GDALCheckVersion(GDAL_VERSION_MAJOR,GDAL_VERSION_MINOR,pszCallingComponentName) | |
type OGREnvelope | |
MinX::Cdouble | |
MaxX::Cdouble | |
MinY::Cdouble | |
MaxY::Cdouble | |
end | |
type OGREnvelope3D | |
MinX::Cdouble | |
MaxX::Cdouble | |
MinY::Cdouble | |
MaxY::Cdouble | |
MinZ::Cdouble | |
MaxZ::Cdouble | |
end | |
typealias OGRErr Cint | |
typealias OGRBoolean Cint | |
# begin enum ANONYMOUS_1 | |
typealias ANONYMOUS_1 Uint32 | |
const wkbUnknown = 0 | |
const wkbPoint = 1 | |
const wkbLineString = 2 | |
const wkbPolygon = 3 | |
const wkbMultiPoint = 4 | |
const wkbMultiLineString = 5 | |
const wkbMultiPolygon = 6 | |
const wkbGeometryCollection = 7 | |
const wkbNone = 100 | |
const wkbLinearRing = 101 | |
const wkbPoint25D = 2147483649 | |
const wkbLineString25D = 2147483650 | |
const wkbPolygon25D = 2147483651 | |
const wkbMultiPoint25D = 2147483652 | |
const wkbMultiLineString25D = 2147483653 | |
const wkbMultiPolygon25D = 2147483654 | |
const wkbGeometryCollection25D = 2147483655 | |
# end enum ANONYMOUS_1 | |
# begin enum OGRwkbGeometryType | |
typealias OGRwkbGeometryType Uint32 | |
const wkbUnknown = 0 | |
const wkbPoint = 1 | |
const wkbLineString = 2 | |
const wkbPolygon = 3 | |
const wkbMultiPoint = 4 | |
const wkbMultiLineString = 5 | |
const wkbMultiPolygon = 6 | |
const wkbGeometryCollection = 7 | |
const wkbNone = 100 | |
const wkbLinearRing = 101 | |
const wkbPoint25D = 2147483649 | |
const wkbLineString25D = 2147483650 | |
const wkbPolygon25D = 2147483651 | |
const wkbMultiPoint25D = 2147483652 | |
const wkbMultiLineString25D = 2147483653 | |
const wkbMultiPolygon25D = 2147483654 | |
const wkbGeometryCollection25D = 2147483655 | |
# end enum OGRwkbGeometryType | |
# begin enum ANONYMOUS_2 | |
typealias ANONYMOUS_2 Uint32 | |
const wkbXDR = 0 | |
const wkbNDR = 1 | |
# end enum ANONYMOUS_2 | |
# begin enum OGRwkbByteOrder | |
typealias OGRwkbByteOrder Uint32 | |
const wkbXDR = 0 | |
const wkbNDR = 1 | |
# end enum OGRwkbByteOrder | |
# begin enum ANONYMOUS_3 | |
typealias ANONYMOUS_3 Uint32 | |
const OFTInteger = 0 | |
const OFTIntegerList = 1 | |
const OFTReal = 2 | |
const OFTRealList = 3 | |
const OFTString = 4 | |
const OFTStringList = 5 | |
const OFTWideString = 6 | |
const OFTWideStringList = 7 | |
const OFTBinary = 8 | |
const OFTDate = 9 | |
const OFTTime = 10 | |
const OFTDateTime = 11 | |
const OFTMaxType = 11 | |
# end enum ANONYMOUS_3 | |
# begin enum OGRFieldType | |
typealias OGRFieldType Uint32 | |
const OFTInteger = 0 | |
const OFTIntegerList = 1 | |
const OFTReal = 2 | |
const OFTRealList = 3 | |
const OFTString = 4 | |
const OFTStringList = 5 | |
const OFTWideString = 6 | |
const OFTWideStringList = 7 | |
const OFTBinary = 8 | |
const OFTDate = 9 | |
const OFTTime = 10 | |
const OFTDateTime = 11 | |
const OFTMaxType = 11 | |
# end enum OGRFieldType | |
# begin enum ANONYMOUS_4 | |
typealias ANONYMOUS_4 Uint32 | |
const OJUndefined = 0 | |
const OJLeft = 1 | |
const OJRight = 2 | |
# end enum ANONYMOUS_4 | |
# begin enum OGRJustification | |
typealias OGRJustification Uint32 | |
const OJUndefined = 0 | |
const OJLeft = 1 | |
const OJRight = 2 | |
# end enum OGRJustification | |
# begin enum ogr_style_tool_class_id | |
typealias ogr_style_tool_class_id Uint32 | |
const OGRSTCNone = 0 | |
const OGRSTCPen = 1 | |
const OGRSTCBrush = 2 | |
const OGRSTCSymbol = 3 | |
const OGRSTCLabel = 4 | |
const OGRSTCVector = 5 | |
# end enum ogr_style_tool_class_id | |
# begin enum OGRSTClassId | |
typealias OGRSTClassId Uint32 | |
const OGRSTCNone = 0 | |
const OGRSTCPen = 1 | |
const OGRSTCBrush = 2 | |
const OGRSTCSymbol = 3 | |
const OGRSTCLabel = 4 | |
const OGRSTCVector = 5 | |
# end enum OGRSTClassId | |
# begin enum ogr_style_tool_units_id | |
typealias ogr_style_tool_units_id Uint32 | |
const OGRSTUGround = 0 | |
const OGRSTUPixel = 1 | |
const OGRSTUPoints = 2 | |
const OGRSTUMM = 3 | |
const OGRSTUCM = 4 | |
const OGRSTUInches = 5 | |
# end enum ogr_style_tool_units_id | |
# begin enum OGRSTUnitId | |
typealias OGRSTUnitId Uint32 | |
const OGRSTUGround = 0 | |
const OGRSTUPixel = 1 | |
const OGRSTUPoints = 2 | |
const OGRSTUMM = 3 | |
const OGRSTUCM = 4 | |
const OGRSTUInches = 5 | |
# end enum OGRSTUnitId | |
# begin enum ogr_style_tool_param_pen_id | |
typealias ogr_style_tool_param_pen_id Uint32 | |
const OGRSTPenColor = 0 | |
const OGRSTPenWidth = 1 | |
const OGRSTPenPattern = 2 | |
const OGRSTPenId = 3 | |
const OGRSTPenPerOffset = 4 | |
const OGRSTPenCap = 5 | |
const OGRSTPenJoin = 6 | |
const OGRSTPenPriority = 7 | |
const OGRSTPenLast = 8 | |
# end enum ogr_style_tool_param_pen_id | |
# begin enum OGRSTPenParam | |
typealias OGRSTPenParam Uint32 | |
const OGRSTPenColor = 0 | |
const OGRSTPenWidth = 1 | |
const OGRSTPenPattern = 2 | |
const OGRSTPenId = 3 | |
const OGRSTPenPerOffset = 4 | |
const OGRSTPenCap = 5 | |
const OGRSTPenJoin = 6 | |
const OGRSTPenPriority = 7 | |
const OGRSTPenLast = 8 | |
# end enum OGRSTPenParam | |
# begin enum ogr_style_tool_param_brush_id | |
typealias ogr_style_tool_param_brush_id Uint32 | |
const OGRSTBrushFColor = 0 | |
const OGRSTBrushBColor = 1 | |
const OGRSTBrushId = 2 | |
const OGRSTBrushAngle = 3 | |
const OGRSTBrushSize = 4 | |
const OGRSTBrushDx = 5 | |
const OGRSTBrushDy = 6 | |
const OGRSTBrushPriority = 7 | |
const OGRSTBrushLast = 8 | |
# end enum ogr_style_tool_param_brush_id | |
# begin enum OGRSTBrushParam | |
typealias OGRSTBrushParam Uint32 | |
const OGRSTBrushFColor = 0 | |
const OGRSTBrushBColor = 1 | |
const OGRSTBrushId = 2 | |
const OGRSTBrushAngle = 3 | |
const OGRSTBrushSize = 4 | |
const OGRSTBrushDx = 5 | |
const OGRSTBrushDy = 6 | |
const OGRSTBrushPriority = 7 | |
const OGRSTBrushLast = 8 | |
# end enum OGRSTBrushParam | |
# begin enum ogr_style_tool_param_symbol_id | |
typealias ogr_style_tool_param_symbol_id Uint32 | |
const OGRSTSymbolId = 0 | |
const OGRSTSymbolAngle = 1 | |
const OGRSTSymbolColor = 2 | |
const OGRSTSymbolSize = 3 | |
const OGRSTSymbolDx = 4 | |
const OGRSTSymbolDy = 5 | |
const OGRSTSymbolStep = 6 | |
const OGRSTSymbolPerp = 7 | |
const OGRSTSymbolOffset = 8 | |
const OGRSTSymbolPriority = 9 | |
const OGRSTSymbolFontName = 10 | |
const OGRSTSymbolOColor = 11 | |
const OGRSTSymbolLast = 12 | |
# end enum ogr_style_tool_param_symbol_id | |
# begin enum OGRSTSymbolParam | |
typealias OGRSTSymbolParam Uint32 | |
const OGRSTSymbolId = 0 | |
const OGRSTSymbolAngle = 1 | |
const OGRSTSymbolColor = 2 | |
const OGRSTSymbolSize = 3 | |
const OGRSTSymbolDx = 4 | |
const OGRSTSymbolDy = 5 | |
const OGRSTSymbolStep = 6 | |
const OGRSTSymbolPerp = 7 | |
const OGRSTSymbolOffset = 8 | |
const OGRSTSymbolPriority = 9 | |
const OGRSTSymbolFontName = 10 | |
const OGRSTSymbolOColor = 11 | |
const OGRSTSymbolLast = 12 | |
# end enum OGRSTSymbolParam | |
# begin enum ogr_style_tool_param_label_id | |
typealias ogr_style_tool_param_label_id Uint32 | |
const OGRSTLabelFontName = 0 | |
const OGRSTLabelSize = 1 | |
const OGRSTLabelTextString = 2 | |
const OGRSTLabelAngle = 3 | |
const OGRSTLabelFColor = 4 | |
const OGRSTLabelBColor = 5 | |
const OGRSTLabelPlacement = 6 | |
const OGRSTLabelAnchor = 7 | |
const OGRSTLabelDx = 8 | |
const OGRSTLabelDy = 9 | |
const OGRSTLabelPerp = 10 | |
const OGRSTLabelBold = 11 | |
const OGRSTLabelItalic = 12 | |
const OGRSTLabelUnderline = 13 | |
const OGRSTLabelPriority = 14 | |
const OGRSTLabelStrikeout = 15 | |
const OGRSTLabelStretch = 16 | |
const OGRSTLabelAdjHor = 17 | |
const OGRSTLabelAdjVert = 18 | |
const OGRSTLabelHColor = 19 | |
const OGRSTLabelOColor = 20 | |
const OGRSTLabelLast = 21 | |
# end enum ogr_style_tool_param_label_id | |
# begin enum OGRSTLabelParam | |
typealias OGRSTLabelParam Uint32 | |
const OGRSTLabelFontName = 0 | |
const OGRSTLabelSize = 1 | |
const OGRSTLabelTextString = 2 | |
const OGRSTLabelAngle = 3 | |
const OGRSTLabelFColor = 4 | |
const OGRSTLabelBColor = 5 | |
const OGRSTLabelPlacement = 6 | |
const OGRSTLabelAnchor = 7 | |
const OGRSTLabelDx = 8 | |
const OGRSTLabelDy = 9 | |
const OGRSTLabelPerp = 10 | |
const OGRSTLabelBold = 11 | |
const OGRSTLabelItalic = 12 | |
const OGRSTLabelUnderline = 13 | |
const OGRSTLabelPriority = 14 | |
const OGRSTLabelStrikeout = 15 | |
const OGRSTLabelStretch = 16 | |
const OGRSTLabelAdjHor = 17 | |
const OGRSTLabelAdjVert = 18 | |
const OGRSTLabelHColor = 19 | |
const OGRSTLabelOColor = 20 | |
const OGRSTLabelLast = 21 | |
# end enum OGRSTLabelParam |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment