类 MySQLGeometryAdapter

java.lang.Object
org.anyline.data.jdbc.adapter.init.geometry.MySQLGeometryAdapter

public class MySQLGeometryAdapter extends Object
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    static void
    init(org.anyline.entity.geometry.Geometry geometry)
     
    static org.anyline.entity.geometry.LineString
    line(byte[] bytes, int offset)
     
    static org.anyline.entity.geometry.LineString
    line(org.anyline.util.ByteBuffer buffer)
     
    static org.anyline.entity.geometry.MultiLine
    multiLine(org.anyline.util.ByteBuffer buffer)
     
    static org.anyline.entity.geometry.MultiPoint
    multiPoint(org.anyline.util.ByteBuffer buffer)
     
    static org.anyline.entity.geometry.MultiPolygon
    multiPolygon(org.anyline.util.ByteBuffer buffer)
     
    static org.anyline.entity.geometry.Geometry
    parse(byte[] bytes)
     
    static org.anyline.entity.geometry.GeometryCollection
    解析MGeometryCollection
    static org.anyline.entity.geometry.LineString
    parseLine(byte[] bytes)
    解析Line
    static org.anyline.entity.geometry.MultiLine
    parseMultiLine(byte[] bytes)
    解析MultiLine
    static org.anyline.entity.geometry.MultiPoint
    parseMultiPoint(byte[] bytes)
    解析MultiPoint
    static org.anyline.entity.geometry.MultiPolygon
    parseMultiPolygon(byte[] bytes)
    解析MultiPolygon
    static org.anyline.entity.geometry.Point
    parsePoint(byte[] bytes)
    解析 Point
    static org.anyline.entity.geometry.Polygon
    parsePolygon(byte[] bytes)
    解析Polygon
    static org.anyline.entity.geometry.Point
    point(byte[] bytes, int offset)
     
    static org.anyline.entity.geometry.Point
    point(org.anyline.util.ByteBuffer buffer)
     
    static org.anyline.entity.geometry.Polygon
    polygon(byte[] bytes, int offset)
     
    static org.anyline.entity.geometry.Polygon
    polygon(org.anyline.util.ByteBuffer buffer)
     
    static org.anyline.entity.geometry.Ring
    ring(org.anyline.util.ByteBuffer buffer)
     
    static String
    sql(org.anyline.entity.geometry.Geometry geometry)
     
    static String
    sql(org.anyline.entity.geometry.Point point)
     
    static org.anyline.entity.geometry.Geometry.Type
    type(Integer type)
     
    static byte[]
    wkb(org.anyline.entity.geometry.Geometry geometry)
    生成wkb格式要
    static byte[]
    wkb(org.anyline.entity.geometry.GeometryCollection collection)
    生成wkb格式要
    static byte[]
    wkb(org.anyline.entity.geometry.LineString line)
     
    static byte[]
    wkb(org.anyline.entity.geometry.MultiLine multiLine)
     
    static byte[]
    wkb(org.anyline.entity.geometry.MultiPoint multiPoint)
     
    static byte[]
    wkb(org.anyline.entity.geometry.MultiPolygon multiPolygon)
     
    static byte[]
    wkb(org.anyline.entity.geometry.Point point)
     
    static byte[]
    wkb(org.anyline.entity.geometry.Polygon polygon)
     
    static void
    wkb(org.anyline.util.ByteBuffer buffer, org.anyline.entity.geometry.Geometry geometry, boolean head)
     
    static void
    wkb(org.anyline.util.ByteBuffer buffer, org.anyline.entity.geometry.LineString line, boolean head)
     
    static void
    wkb(org.anyline.util.ByteBuffer buffer, org.anyline.entity.geometry.MultiLine multiLine, boolean head)
     
    static void
    wkb(org.anyline.util.ByteBuffer buffer, org.anyline.entity.geometry.MultiPoint multiPoint, boolean head)
     
    static void
    wkb(org.anyline.util.ByteBuffer buffer, org.anyline.entity.geometry.MultiPolygon multiPolygon, boolean head)
     
    static void
    wkb(org.anyline.util.ByteBuffer buffer, org.anyline.entity.geometry.Point point, boolean head)
     
    static void
    wkb(org.anyline.util.ByteBuffer buffer, org.anyline.entity.geometry.Polygon polygon, boolean head)
     
    static void
    wkb(org.anyline.util.ByteBuffer buffer, org.anyline.entity.geometry.Ring ring)
     

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • MySQLGeometryAdapter

      public MySQLGeometryAdapter()
  • 方法详细资料

    • init

      public static void init(org.anyline.entity.geometry.Geometry geometry)
    • type

      public static org.anyline.entity.geometry.Geometry.Type type(Integer type)
    • sql

      public static String sql(org.anyline.entity.geometry.Geometry geometry)
    • sql

      public static String sql(org.anyline.entity.geometry.Point point)
    • parse

      public static org.anyline.entity.geometry.Geometry parse(byte[] bytes)
    • parsePoint

      public static org.anyline.entity.geometry.Point parsePoint(byte[] bytes)
      解析 Point
      参数:
      bytes - bytes
      返回:
      Point
    • point

      public static org.anyline.entity.geometry.Point point(byte[] bytes, int offset)
    • point

      public static org.anyline.entity.geometry.Point point(org.anyline.util.ByteBuffer buffer)
    • parseLine

      public static org.anyline.entity.geometry.LineString parseLine(byte[] bytes)
      解析Line
      参数:
      bytes - bytes
      返回:
      LineString
    • line

      public static org.anyline.entity.geometry.LineString line(byte[] bytes, int offset)
      参数:
      bytes - bytes
      offset - point count的开始位置
      返回:
      LineString
    • line

      public static org.anyline.entity.geometry.LineString line(org.anyline.util.ByteBuffer buffer)
    • parsePolygon

      public static org.anyline.entity.geometry.Polygon parsePolygon(byte[] bytes)
      解析Polygon
      参数:
      bytes - bytes
      返回:
      Polygon
    • polygon

      public static org.anyline.entity.geometry.Polygon polygon(byte[] bytes, int offset)
      参数:
      bytes - byte
      offset - 环数量开始位置
      返回:
      Polygon
    • polygon

      public static org.anyline.entity.geometry.Polygon polygon(org.anyline.util.ByteBuffer buffer)
    • ring

      public static org.anyline.entity.geometry.Ring ring(org.anyline.util.ByteBuffer buffer)
    • parseMultiPoint

      public static org.anyline.entity.geometry.MultiPoint parseMultiPoint(byte[] bytes)
      解析MultiPoint
      参数:
      bytes - bytes
      返回:
      MultiPoint
    • multiPoint

      public static org.anyline.entity.geometry.MultiPoint multiPoint(org.anyline.util.ByteBuffer buffer)
    • parseMultiLine

      public static org.anyline.entity.geometry.MultiLine parseMultiLine(byte[] bytes)
      解析MultiLine
      参数:
      bytes - bytes
      返回:
      MultiPoint
    • multiLine

      public static org.anyline.entity.geometry.MultiLine multiLine(org.anyline.util.ByteBuffer buffer)
    • parseMultiPolygon

      public static org.anyline.entity.geometry.MultiPolygon parseMultiPolygon(byte[] bytes)
      解析MultiPolygon
      参数:
      bytes - bytes
      返回:
      MultiPolygon
    • multiPolygon

      public static org.anyline.entity.geometry.MultiPolygon multiPolygon(org.anyline.util.ByteBuffer buffer)
    • parseGeometryCollection

      public static org.anyline.entity.geometry.GeometryCollection parseGeometryCollection(byte[] bytes)
      解析MGeometryCollection
      参数:
      bytes - bytes
      返回:
      GeometryCollection
    • wkb

      public static byte[] wkb(org.anyline.entity.geometry.Geometry geometry)
      生成wkb格式要
      参数:
      geometry - geometry
      返回:
      bytes
    • wkb

      public static void wkb(org.anyline.util.ByteBuffer buffer, org.anyline.entity.geometry.Geometry geometry, boolean head)
    • wkb

      public static byte[] wkb(org.anyline.entity.geometry.Point point)
    • wkb

      public static void wkb(org.anyline.util.ByteBuffer buffer, org.anyline.entity.geometry.Point point, boolean head)
    • wkb

      public static byte[] wkb(org.anyline.entity.geometry.LineString line)
    • wkb

      public static void wkb(org.anyline.util.ByteBuffer buffer, org.anyline.entity.geometry.LineString line, boolean head)
    • wkb

      public static byte[] wkb(org.anyline.entity.geometry.Polygon polygon)
    • wkb

      public static void wkb(org.anyline.util.ByteBuffer buffer, org.anyline.entity.geometry.Polygon polygon, boolean head)
    • wkb

      public static void wkb(org.anyline.util.ByteBuffer buffer, org.anyline.entity.geometry.Ring ring)
    • wkb

      public static byte[] wkb(org.anyline.entity.geometry.MultiPoint multiPoint)
    • wkb

      public static void wkb(org.anyline.util.ByteBuffer buffer, org.anyline.entity.geometry.MultiPoint multiPoint, boolean head)
    • wkb

      public static byte[] wkb(org.anyline.entity.geometry.MultiLine multiLine)
    • wkb

      public static void wkb(org.anyline.util.ByteBuffer buffer, org.anyline.entity.geometry.MultiLine multiLine, boolean head)
    • wkb

      public static byte[] wkb(org.anyline.entity.geometry.MultiPolygon multiPolygon)
    • wkb

      public static void wkb(org.anyline.util.ByteBuffer buffer, org.anyline.entity.geometry.MultiPolygon multiPolygon, boolean head)
    • wkb

      public static byte[] wkb(org.anyline.entity.geometry.GeometryCollection collection)
      生成wkb格式要
      参数:
      collection - GeometryCollection
      返回:
      bytes