ThinkGeo.com    |     Blog    |     Wiki    |     Support

Could not load Shape File over google map

I am trying to load Shape file over google map as per sample given in Map Suite Web edition.
but at a time m able to see only one of the Google Layers and not Shape file over google layer.
I think the problem is of Projection.
The Projection is as below:
WGS_1984_UTM_Zone_43N
WKID: 32643 Authority: EPSG

Projection: Transverse_Mercator
False_Easting: 500000.0
False_Northing: 0.0
Central_Meridian: 75.0
Scale_Factor: 0.9996
Latitude_Of_Origin: 0.0
Linear Unit: Meter (1.0)

Geographic Coordinate System: GCS_WGS_1984
Angular Unit: Degree (0.0174532925199433)
Prime Meridian: Greenwich (0.0)
Datum: D_WGS_1984
Spheroid: WGS_1984
Semimajor Axis: 6378137.0
Semiminor Axis: 6356752.314245179
Inverse Flattening: 298.257223563
How do i apply projections so that i am able to load shape file over google

Thanks,
djay

Hi Djay,

The Google map projection is 3857 and the shape file should be 4326.

You should want to reprojection the shape file to make it works with Google map.

                    Proj4Projection proj4 = new Proj4Projection(4326, 3857);
                proj4.Open();


                ShapeFileFeatureLayer layer = new ShapeFileFeatureLayer("Your data path");
                layer.Open();
                layer.FeatureSource.Projection = proj4;

Wish that’s helpful.

Regards,

Ethan