示例#1
0
 /// <summary>
 /// 坐标转换
 /// </summary>
 /// <param name="poiInfo"></param>
 /// <returns></returns>
 public bool convert(ref PoiInfo poiInfo)
 {
     soPoint point = new soPoint();
       point.x = poiInfo.x;
       point.y = poiInfo.y;
       bool sec = convert(ref point);
       poiInfo.x = point.x;
       poiInfo.y = point.y;
       return sec;
 }
示例#2
0
        public PoiInfo getPoiInfoAt(int index)
        {
            PoiInfo poiInfo = new PoiInfo();
            poiInfo.name = hits.Doc(index).GetField("Name").StringValue();

            Byte[] locationByte = hits.Doc(index).GetField("Location").BinaryValue();

            poiInfo.x = BitConverter.ToDouble(locationByte, 0);
            poiInfo.y = BitConverter.ToDouble(locationByte, 8);

            return poiInfo;
        }
示例#3
0
 private void viewAllPoi(PoiInfo poiInfo)
 {
 }