Which Reference System is used by the Google Maps Api

by Mathias » Sun, 29 Nov 2009 04:21:04 GMT

Sponsored Links

which Spatial Reference System is used by the Google Maps API and in
which Reference System are the GPS coordinates to be received by a
I only can assume that the Location Services use WGS84, or EPSG:4326.
But what if I use GeoPoint? Will it require WGS84 or the Google Maps
Projection (some kind of traverse mercator projection EPSG:90913). And
what reference do the Projection.fromPixels(..) and Projection.toPixels
(..) methods require?

I ask because I want to display some GeoData to an Overlay and I have
to decide in which reference system I have to request it from my

Kind regards



Other Threads

1. display brightness

Hi. Is there a way to check if hardware support automatic brightness? Can 
setting the system settings to auto throw an exception?


2. Help in ExpandableList

Hi I want to display data from database in ExpandableList format. I
have a room table and one switch table I want to display it in
ExpandableList so when I click on room table item then it shows switch
item of that particular room. For this I read code
ExpandableList1.java available in <sdk>/platforms/android-<version>/

But still I am facing problem in protected Cursor
getChildrenCursor(Cursor groupCursor) { } method.
Here is my code what should I write into getChildrenCursor.

public class ExpandableList extends ExpandableListActivity
    private int mGroupIdColumnIndex;
    SQLiteDatabase sampleDB = null;
    String SAMPLE_DBNAME = "NewHomeAutoDataBase";
        String ROOM_TABLE_NAME = "RoomTable";
        private final String LOADTYPE_TABLE_NAME = "LoadTable";
        String SWITCH_TABLE_NAME = "SwitchTable";

    private String mPhoneNumberProjection[] = new String[] {
                "RoomName", "SwitchFullName"

    private ExpandableListAdapter mAdapter;

    public void onCreate(Bundle savedInstanceState)
        sampleDB =  this.openOrCreateDatabase(SAMPLE_DBNAME,

        Cursor groupCursor = sampleDB.rawQuery ("SELECT RoomName,
SwitchFullName FROM SwitchTable ORDER BY RoomName",null);
        // Cache the ID column index
        mGroupIdColumnIndex =

        // Set up our adapter
        mAdapter = new MyExpandableListAdapter(groupCursor,
                new String[] {"RoomName"}, // Name for group layouts
                new int[] {android.R.id.text1},
                new String[] {"SwitchFullName"}, // Number for child
                new int[] {android.R.id.text1});

    public class MyExpandableListAdapter extends
SimpleCursorTreeAdapter {

        public MyExpandableListAdapter(Cursor cursor, Context context,
int groupLayout,
                int childLayout, String[] groupFrom, int[] groupTo,
String[] childrenFrom,
                int[] childrenTo) {
            super(context, cursor, groupLayout, groupFrom, groupTo,
childLayout, childrenFrom,

        protected Cursor getChildrenCursor(Cursor groupCursor) {
            // Given the group, we return a cursor for all the
children within that group

            // Return a cursor that points to this contact's phone
            Uri.Builder builder = People.CONTENT_URI.buildUpon();
            Uri phoneNumbersUri = builder.build();

            // The returned Cursor MUST be managed by us, so we use
Activity's helper
            // functionality to manage it for us.
            return managedQuery(phoneNumbersUri,
mPhoneNumberProjection, null, null, null);



3. Galaxy Tab + external screen : how to detect events from the right screen ?

4. (FaceDroid-id) WTShare HTC HD 2 does Android for noobs

5. How to identify which client called into a Remote/AIDL service?

6. How can I manually set the screen rotation?

7. Why need "CleanSpec.mk" for each module from Android2.1?