0

The function is to select points from the map and store the co-ordinates of the points in the database.

This is normal:

enter image description here

But there are some special cases, I don't know what caused it:

enter image description here

I don't know why this happened, please help me. Thanks.

The code of Screen coordinates converted to GPS coordinates(I use Kotlin):

override fun onSingleTap(v: Float, v1: Float) {
     val center = mapView.toMapPoint(v, v1)
}

Then, i use center.x and center.y as lng and lat.

if (lat != 0.0) {
        resultBean.setLat(lat);
    }
    if (lng != 0.0) {
        resultBean.setLng(lng);
    }
 tPoiInfoDao.insert(resultBean);
张俊鹏
  • 1
  • 1
  • please share the code of function, through which you save the coordinates in database. – Nirav Bhavsar Jul 10 '18 at 08:14
  • Did you write the code that generates or converts the locations or "points" into GPS coordinates? If so, would it be possible to share that code? Can't see how anyone can help otherwise... – Nagev Jul 10 '18 at 08:26
  • @Nagev Yes, I have write the code that Screen coordinates converted to GPS coordinates,use arcgis api. – 张俊鹏 Jul 11 '18 at 00:57

0 Answers0