Java Code Examples for com.nextgis.maplib.util.Constants#FIELD_GEOM_
The following examples show how to use
com.nextgis.maplib.util.Constants#FIELD_GEOM_ .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: VectorLayer.java From android_maplib with GNU Lesser General Public License v3.0 | 6 votes |
public GeoGeometry getGeometryForId( long rowId, int zoom) { if (zoom > GeoConstants.DEFAULT_CACHE_MAX_ZOOM) { return getGeometryForId(rowId); } MapContentProviderHelper map = (MapContentProviderHelper) MapBase.getInstance(); if (null == map) { throw new IllegalArgumentException( "The map should extends MapContentProviderHelper or inherited"); } SQLiteDatabase db = map.getDatabase(true); String[] columns = new String[] {Constants.FIELD_GEOM_ + zoom}; String selection = Constants.FIELD_ID + " = " + rowId; return getGeometryFromQuery(columns, selection, db); }
Example 2
Source File: VectorLayer.java From android_maplib with GNU Lesser General Public License v3.0 | 5 votes |
public GeoGeometry getGeometryForId( long rowId, int zoom, SQLiteDatabase db) { if (zoom > GeoConstants.DEFAULT_CACHE_MAX_ZOOM) { return getGeometryForId(rowId, db); } String[] columns = new String[] {Constants.FIELD_GEOM_ + zoom}; String selection = Constants.FIELD_ID + " = " + rowId; return getGeometryFromQuery(columns, selection, db); }