com.supermap.ar.areffect

Class ARCsvReader

  • java.lang.Object
    • com.supermap.ar.areffect.ARCsvReader


  • public class ARCsvReader
    extends java.lang.Object
    CSV file reader

    Read the parameter recordset from a file

    • Constructor Detail

      • ARCsvReader

        public ARCsvReader(android.content.Context context,
                           ARCsvReader.OnReadUpdateListener onReadUpdateListener)
        Constructor
        Parameters:
        context - context
        onReadUpdateListener - Listener
    • Method Detail

      • getPoints

        public java.util.List<Location> getPoints(int step)
        Get the geographic coordinate points in CSV
        Parameters:
        step - Step number of intervals
        Returns:
        Geographic coordinate set (WGS-84 coordinate system)
      • getPoints

        public java.util.List<Location> getPoints()
        Get Points
        Returns:
        Point
      • readFileFromAssets

        public java.util.ArrayList<ARRecordParameter> readFileFromAssets(java.lang.String fileName)
                                                                  throws java.io.IOException
        Read files from \assets by filename
        Parameters:
        fileName - fileName名
        Returns:
        Result set
        Throws:
        java.io.IOException
      • readFileFromSdCard

        public java.util.ArrayList<ARRecordParameter> readFileFromSdCard(java.lang.String filePath)
                                                                  throws java.io.IOException
        Read CSV files from the SD card
        Parameters:
        filePath - filePath
        Returns:
        Result set
        Throws:
        java.io.IOException