nextgis / android_gisapp

:dart: GIS application for Android
http://nextgis.com/nextgis-mobile
GNU General Public License v3.0
134 stars 107 forks source link

Can not save features - not enough points #569

Closed islam500 closed 6 years ago

islam500 commented 7 years ago

The current code base compiles but does not allow saving of new features or feature updates. It says "Not enough Points"

BishopGIS commented 7 years ago

What is geometry type of layer? What was datasource? NextGIS.com, geojson, manually created. If it was a file source can you provide test data? What are reproduced steps?

islam500 commented 7 years ago

Hello Dmitry. The problem is seen in all types of layers (point, polygon, and line) and all sources of data (Nextgis, local, default layers).

I suspect the issue might be from the maplib and maplibui libraries. because when I checked out the project those folders were empty. and I noticed even in the zipped release codes for both 2.4 and 2.5 those folders are empty. I had to download them directly from the repository and extract them to my local setup. Its probably a version miss match.

maplib

BishopGIS commented 7 years ago

Maplib and maplibui are mandatory to build NextGIS Mobile application. You have to clone repository with submodules using this command:

git clone --recursive https://github.com/nextgis/android_gisapp.git

Also you can init submodules in already clonned repository

git submodule update --init --recursive

Usually Android Studio clone with submodules via interface.

2017-05-30 11 37 10

Is this solution suits you?

islam500 commented 7 years ago

Thank you Dmitry for that. I have used the git command with recursive to check out the complete repository including the maplib and maplibui this time. But the problem still persists in both emulator, Samsung Galaxy S7edge phone and Samsung tab tablet.

However the problem is not present when building the 2.5 release.

I have attached an emulator screen shot. not_enough_points