/// <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; }
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; }
private void viewAllPoi(PoiInfo poiInfo) { }