About Swift



          Descriptive data sets

          public mapwork.swift.system.Layer CreateLayer(mapwork.swift.system.Parameters parameters)

          Create a data set of layers

          Parameter:

          parameters Create Layer parameters

          Return:

          Layer failure returns null

          public mapwork.swift.system.DataSource GetDataSource()

          Get the data set of the data source

          Parameter:

          Return:

          Data source

          public java.lang.String GetName()

          Get the name of the data set

          Parameter:

          Return:

          name of the data set



          Describe the data source

          public mapwork.swift.system.DataSet OpenDataSet(java.lang.String datasetname)

          Open a data set

          Parameter:

          Datasetname name of the data set

          Return:

          Data set, failed to returnnull

          public java.lang.Boolean CreateDataSet(mapwork.swift.system.Parameters parameters)

          Create a data set

          Parameter:

          parameters Create data set parameters

          Return:

          Success created

          public mapwork.swift.system.Parameters GetParameters()

          Get the parameters of the data source

          Parameter:

          Return:

          parameters of the data source



         Data source factory

         public DataSourceFactory()

         Constructor

         public static void RegisterAll(android.app.Activity activity)

         registered all formats support

         Parameter:

         activity android Activity

         Return:

         public mapwork.swift.system.DataSource CreateDataSource(mapwork.swift.system.Parameters parameters)

         Production of a data source

         Parameter:

         parameters Data source parameters

         Return:

         Data sources, failure to return null



          Elements

         public void Delete()

          Delete this element

         public void Save()

          Save this element

         public mapwork.swift.system.data.Data GetFieldValue(int fieldindex)

          Get feature data

         Parameter:

          fieldindex Field index

         Return:

         Value, otherwise return null

         public void SetFieldValue(int fieldindex, mapwork.swift.system.data.Data data)

         Setting the element data

         Parameter:

         fieldindex Field index

         data data

         public mapwork.swift.geometry.Geometry GetGeometry()

         Access to elements of primitive

         Parameter:

         Return:

         Elements, if the elements of primitive return null

         public void SetGeometry(mapwork.swift.geometry.Geometry geometry)

         Set the elements of the chart elements

         Parameter:

         geometry elements

         Return:



         Elements of the cursor

         public void MoveFirst()

         Move cursor starting point

         public mapwork.swift.system.Feature MoveNext()

         Obtain next element

         Parameter:

         Return:

         Elements, if it has reached the cursor endpoint returns null



         Elements of the type of data set

         public mapwork.swift.system.Feature NewFeature()

         New elements

         Parameter:

         Return:

         elements

         public int GetFieldCount()

         Get the number of elements set field

         public int GetFieldIndex(java.lang.String fieldname)

         Get field index field names

         Parameter:

         fieldname Field name

         Return:

         field index, if the feature dataset field names no condition to return-1

         public java.lang.String GetFieldName(int fieldindex)

         Get field name

         Parameter:

         fieldindex Field index

         Return:

         Beyond the number of fields, field names, field index return””

         public mapwork.swift.system.data.Data.DataType GetFieldType(int fieldindex)

         Get field data type

         Parameter:

         fieldindex Field index

         Return:

         Field data types, field index returns exceed the number of fields

         mapwork.swift.system.data.Data.DataType.DtKnown

         public mapwork.swift.coordinatesystem.CoordinateReferenceSystem GetCoordinateReferenceSystem()

         Get the definition of the coordinate system of the feature dataset

         Return:

         definition of the coordinate system, if not defined coordinate system returns null



         Single Factor set

         public void AddPoint(double x, double y, double z)

         Add Point to the Elements Element

         public void SetDesc(java.lang.String desc)

         Setting Description

         public java.lang.String GetDesc()

         Get description



         Feature Data Source

         public java.lang.Boolean StartEdit()

         Start editing

         Return:

         success of start editing

         public void SaveEdit()

         Save the edited

         public java.lang.Boolean IsStartEdit()

         Get whether to begin editing

         public void StartEditOperation()

         Start editing commands

         public void StopEditOperation()

         End editing commands

         public java.lang.Boolean BackEditOperation()

         Rollback an edit command

         Return:

         Whether the rollback is successful

         public java.lang.Boolean RepeatEditOperation()

         Repeat an edit command

         Return:

         Whether to repeat success

         public int GetEditOperationCount()

         Get the number of editing commands



         Feature labeling rendering

         public FeatureLabelRenderType GetType()

         Get feature labeling rendering type{FLRTUnknown, FLRTPointLabelRender, FLRTLineLabelRender,

         FLRTPolygonLabelRender}



         Line elements label rendering

         public Boolean GetLinkSame()

         Get connected the same label.

         public void SetLinkSame(Boolean linksame)

         Set is connected the same label

         public FeatureLineLabelRenderStyle GetStyle()

         Gets the style{ FLLRSNormal, FLLRSAlong, FLLRSCharAlong}

         public void SetStyle(FeatureLineLabelRenderStyle style)

         Gets the style.



         Feature layers

         public GeometryDefine.KGeometryType GetGeometryType()

         Get geometry type

         public FeatureRender GetRender()

         Get rendering

         public void SetRender(FeatureRender render)

         Set the rendering

         public QueryFilter GetQueryFilter()

         Get filter

         public QueryFilter SetQueryFilter(QueryFilter queryfilter)

         Set up filters

         public void SetLabelExpression(String expression)

         Set the label field

         public String GetLabelExpression()

         Get marked fields

         public void SetLabelWeight(int weight)

         Set label weights

         public int GetLabelWeight()

         Get label weights

         public void SetLabelVisibleScaleMin(double scale)

         Set marked the smallest ratio

         public double GetLabelVisibleScaleMin()

         Get marked minimum ratio

         public void SetLabelVisibleScaleMax(double scale)

         Set marked the largest ratio

         public double GetLabelVisibleScaleMax()

         Get marked maximum ratio

         public void SetFeaturePointLabelRender(FeaturePointLabelRender render)

         Set point feature labeling rendering

         public void SetFeatureLineLabelRender(FeatureLineLabelRender render)

         Set line feature label rendering

         public void SetFeaturePolygonLabelRender(FeaturePolygonLabelRender render)

         Setting surface feature labeling rendering

         public FeaturePointLabelRender GetFeaturePointLabelRender()

         Get point feature label rendering

         public FeatureLineLabelRender GetFeatureLineLabelRender()

         Get line feature label rendering

         public FeaturePolygonLabelRender GetFeaturePolygonLabelRender()

         Rendering obtain surface feature labeling





         Layer rendering classes

         public FeatureRenderType GetFeatureRenderType()

         Get rendering type



         Simple layer rendering class

         Paint SetPaint(Paint paint)

         Set the printing device

         public Paint GetPaint()

         Get inkjet device



         packet layer rendering class

         public String GetFieldName()

         Get grouping field

         public Paint SetPaint(Paint paint)

         Set default printing device

         public Paint GetPaint()

         Get the default printing

         public Paint SetPaint(int index, Paint paint)

         Index set Inkjet

         public Paint SetPaint(Data data, Paint paint)

         Key settings inkjet

         public Paint GetPaint(int index)

         Printing is obtained by index

         public Paint GetPaint(Data data)

         Printing is obtained through key

         public Data GetData(int index)

         Get key value

         public void DeletePaint(int index)

         Index delete inkjet

         public void DeletePaint(Data data)

         Key delete inkjet

         public int GetIndex(Data data)

         Get key index



         Layer class

         public LayerType GetType()

         Get layer type

         public DataSet GetDataSet()

         Get data sets

         public Rectangle GetEnvelope()

         Get range

         public String GetName()

         Get name

         public void SetName(String name)

         Set name

         public void SetVisible(Boolean visible)

         Set whether to display

         public Boolean GetVisible()

         Get whether to display

         public void SetVisibleScaleMin(double scale)

         Set the minimum ratio

         public double GetVisibleScaleMin()

         Get minimum ratio

         public void SetVisibleScaleMax(double scale)

         Set the maximum ratio

         public double GetVisibleScaleMax()

         Get maximum ratio



         Map class

         public CoordinateReferenceSystem GetCoordinateReferenceSystem()

         Get map coordinate system

         public CoordinateReferenceSystem SetCoordinateReferenceSystem(CoordinateReferenceSystem crs)

         Set the map coordinate system

         public void AddLayer(Layer layer)

         Add Layer

         public int GetLayerCount()

         Get the number of layers

         public Layer GetLayer(int layerindex)

         Get Layers

         public int GetLayerIndex(String layername)

         Get the index of the specified layer name

         public Boolean RemoveLayer(int layerindex)

         Remove layers

         public Boolean MoveLayer(int fromindex, int toindex)

         Move Layer



         Data query filter

         public static QueryFilter CreateQueryFilter(String expression)

         Statement creates a data query filter



         Raster layer class

         public int GetRasterXSize()

         Get Mapsheet x Size

         public int GetRasterYSize()

         Get Mapsheet y dimensions



         Set the class

         public static Boolean InitActivity(Activity activity)

         Initialization

         public static void SetConfigOption(String key, String value)

         Write set

         public static String GetConfigOption(String key, String defaultvalue)

         Get Set

         public static String CreateICPlain()

         Device number

         public static Boolean RegisterByICPlain(String plaincode)

         Clearly registered

         public static Boolean CreateICFile(String filepath)

         Creates the device files

         public static void SetSnFilePath(String filepath)

         Set authorization path

         public static Boolean CheckSnActivation()

         Authorization is valid

         public static void SetPlatformCharSet(String charset)

         Set the platform character encoding

         public static int PixelToDip(android.content.Context context, int pixel)

         pixel conversion as dip

         public static int DipToPixel(android.content.Context context, int dip)

         dip into pixel



         Spatial query filter



          Simple spatial query filter



         Space that contains the query filter

         public SpatialFilterContain(mapwork.swift.geometry.Geometry geometry, Boolean becontained)



         Space intersects the query filter

         public SpatialFilterIntersect(mapwork.swift.geometry.Geometry geometry)



         Space close to query filter

         public SpatialFilterNear(mapwork.swift.geometry.Geometry geometry, double dist)



         composite spatial query filter

         public SpatialFilterComplex(SpatialFilter spatialfilter1, SpatialFilter spatialfilter2, Boolean join)



         Map control

         public void BindTool(mapwork.swift.tools.ITool tool)

         Binding tool

         public void SetCurTool(mapwork.swift.tools.ITool tool)

         Set the current tool

         public mapwork.swift.system.Map SetMap(mapwork.swift.system.Map map)

         Set the current map

         public mapwork.swift.system.Map GetMap()

         Current map

         public void SetMapBackColor(int color)

         Set the background color

         public int GetMapBackColor()

         Get background color

         public void RefreshMap()

         Redraw the map (layers changes - add, delete, and modify layer data)

         public void invalidate()

         Trigger set addDraw Listener listener (draw temporary point, line, surface, etc.)

         public void CenterAt(mapwork.swift.geometry.Point pt)

         Set the center

         public mapwork.swift.geometry.Point GetCenter()

         Get the center point

         public mapwork.swift.geometry.Rectangle GetExtent()

         Get the current range

         public mapwork.swift.geometry.Rectangle GetFullExtent()

         Get full extent of the

         public void SetScale(double scale)

         Set the scale

         public double GetScale()

         Get proportion

         public void SetExtent(mapwork.swift.geometry.Rectangle rect)

         Set the scope of the map

         public mapwork.swift.geometry.Point FromPixel(int x, int y)

         Pixels are converted to map coordinates

         public android.graphics.Point ToPixel(double x, double y)

         Map coordinates converted to pixels

         public void SetDodgeLabel(Boolean b)

         Set whether the label to avoid the

         public Boolean GetDodgeLabel()

         Get whether the label to avoid the

         public Boolean FromMWDOC(String docname)

         Read drawing

         public Boolean ToMWDOC(String docname, Boolean overwrite)

         Save it as an image



            Coordinate system class


          Geographic coordinate system


          projected coordinate system class

          public mapwork.swift.geometry.Point ProjCal(mapwork.swift.geometry.Point pt, AngularUnit angular_unit, LinearUnit

          linear_unit) Projection transformation

          public mapwork.swift.geometry.Point ProjInvCal(mapwork.swift.geometry.Point pt, LinearUnit linear_unit, AngularUnit

          angular_unit) Projection inverse transform



          7 parameter converter plant

          public void Reset()

          Reset

          public void Add(double x, double y, double z, double x1, double y1, double z1)

          Increase the coordinate pair

          public CoordinateTransForm7 Produce()

          Production 7 parameters converter



          7 parameter converter

          public mapwork.swift.geometry.Point TransForm(mapwork.swift.geometry.Point pt)

          Coordinate transformation



          Geometry class

          public GeometryDefine GetGeometryDefine()

          Get the geometry definition

          public GeometrySpatialRelationType GetSpatialRelation(Geometry geo)

          Get spatial relationship of the two geometry

          public Boolean IsContain(Geometry geo)

          Whether to include

          public Boolean IsIntersect(Geometry geo)

          Whether the intersection

          public static GeometryCollection Intersection(Geometry geometry1, Geometry geometry2)

          Intersect

          public static GeometryCollection Union(Geometry geometry1, Geometry geometry2)

          Merger



          Point

          public double GetDist(Geometry geo)

          Calculating distance

          public Point GetNearestPoint(Geometry geo)

          Nearest point

          public Boolean OnVector(Vector v)

          Whether Segment on



          Line

          public double GetLength()

          Get length



           Surface

          public double Area()

          Get area

          public void ClockWise(int segment)

          Clockwise

          public Polygon Intersection(Polygon polygon)

          Intersect

          public GeometryCollection CutByPolyline(Polyline polyline)

          Line cutting



          Geometric definition

          public KGeometryType GetGeometryType()

          Get geometry type

          public double GetMinX()

          Get the smallest x

          public double GetMinY()

          Get the smallest y

          public double GetMaxX()

          Obtain the maximum x

          public double GetMaxY()

          Obtain the maximum y



          Map Tool Interface

          public boolean onTouchEvent(MotionEvent event, MapControl mapcontrol);

          Touch events

          public void onMapControlDraw(Canvas canvas);

          Map controls refresh event

          public Boolean ZoomByMultiTouchFirst();

          Whether the multi-touch priority

          public int GetMapLeft();

          Map the position of the left margin in the control

          public int GetMapTop();

          Map boundary control

          public int GetMapWidth();

          Width of the map

          public int GetMapHeight();

          map height



          Map Command Interface

          public void onCreate(MapControl mapcontrol);

          Established in the map control

          public void excute();

          Execute commands

mapwork.swift.system

mapwork.swift.controls

mapworkswift.coordinatesy

mapwork.swift.geometry

mapwork.swift.tools

 

 

               
CopyRight © 2007-2018 Shenyang kwork software. Copyright
Phone:+8613332420811 Tel:+862423491067
Mapwork -Geographic Information Systems