# Test

**URL:** <https://community.thinkgeo.com/t/test/2480>\
**Category:** WinForms\
**Created:** [December 2, 2014, 8:57am UTC](https://community.thinkgeo.com/t/test/2480 "2014-12-02T08:57:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Keld](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/keld/32/19120_2.png) [@Keld](https://community.thinkgeo.com/u/Keld)\
**Post date:** [December 2, 2014, 8:57am UTC](https://community.thinkgeo.com/t/test/2480/1 "2014-12-02T08:57:04Z")

</div>

(Remove&nbsp;at&nbsp;will)  
  
I&nbsp;am&nbsp;testing&nbsp;to&nbsp;see&nbsp;if&nbsp;I&nbsp;CAN&nbsp;post&nbsp;to&nbsp;the&nbsp;forum&nbsp;as&nbsp;my&nbsp;other&nbsp;attempts&nbsp;to&nbsp;post&nbsp;have&nbsp;resulted&nbsp;in&nbsp;"An&nbsp;error&nbsp;has&nbsp;occurred"&nbsp;when&nbsp;I&nbsp;try&nbsp;to&nbsp;see&nbsp;my&nbsp;posts.  
  
Sorry&nbsp;about&nbsp;the&nbsp;inconvenience.  
  
  
  
Keld&nbsp;Laursen

---

<div class="post-metadata">

**Author:** ![Troy](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/85f322/32.png) [@Troy](https://community.thinkgeo.com/u/Troy)\
**Post date:** [December 2, 2014, 7:50pm UTC](https://community.thinkgeo.com/t/test/2480/2 "2014-12-02T19:50:46Z")

</div>

Hi&nbsp;Keld,  
  
  
  
I&nbsp;noticed&nbsp;two&nbsp;threads&nbsp;you&nbsp;posted&nbsp;with&nbsp;the&nbsp;errors.&nbsp;I&nbsp;guess&nbsp;there&nbsp;might&nbsp;be&nbsp;some&nbsp;invalid&nbsp;characters&nbsp;in&nbsp;it.&nbsp;Here&nbsp;is&nbsp;a&nbsp;guide&nbsp;on&nbsp;posting&nbsp;rules,&nbsp;it&nbsp;might&nbsp;be&nbsp;help.[thinkgeo.com/forums/MapSuite…fault.aspx](http://thinkgeo.com/forums/MapSuite/tabid/143/aft/4942/Default.aspx)

I&nbsp;will&nbsp;remove&nbsp;the&nbsp;two&nbsp;invalid&nbsp;posts&nbsp;and&nbsp;would&nbsp;you&nbsp;please&nbsp;check&nbsp;the&nbsp;content&nbsp;and&nbsp;try&nbsp;to&nbsp;post&nbsp;again?&nbsp;  
  
Please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;us&nbsp;know&nbsp;if&nbsp;you&nbsp;have&nbsp;any&nbsp;questions,&nbsp;it&nbsp;would&nbsp;be&nbsp;our&nbsp;pressure&nbsp;to&nbsp;assist&nbsp;you.  
  
  
  
Thanks,  
  
Troy

---

<div class="post-metadata">

**Author:** ![Troy](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/85f322/32.png) [@Troy](https://community.thinkgeo.com/u/Troy)\
**Post date:** [December 2, 2014, 10:59pm UTC](https://community.thinkgeo.com/t/test/2480/3 "2014-12-02T22:59:50Z")

</div>

Hi&nbsp;Keld,  
  
  
  
I&nbsp;found&nbsp;your&nbsp;content&nbsp;in&nbsp;our&nbsp;internal&nbsp;system.&nbsp;I&nbsp;attached&nbsp;it&nbsp;here&nbsp;so&nbsp;that&nbsp;you&nbsp;can&nbsp;reuse&nbsp;it&nbsp;and&nbsp;I&nbsp;reviewed&nbsp;your&nbsp;issue,&nbsp;it&nbsp;looks&nbsp;like&nbsp;a&nbsp;projection&nbsp;issue&nbsp;to&nbsp;make&nbsp;the&nbsp;epsg&nbsp;25832&nbsp;layer&nbsp;to&nbsp;match&nbsp;with&nbsp;Google&nbsp;layer,&nbsp;As&nbsp;we&nbsp;don’t&nbsp;have&nbsp;the&nbsp;data&nbsp;to&nbsp;recreate&nbsp;your&nbsp;issue,&nbsp;would&nbsp;you&nbsp;please&nbsp;attach&nbsp;some&nbsp;UTM&nbsp;zone&nbsp;32N&nbsp;data&nbsp;here?&nbsp;  
  
  
You&nbsp;can&nbsp;also&nbsp;send&nbsp;email&nbsp;to&nbsp;[forumsupport@thinkgeo.com](mailto:forumsupport@thinkgeo.com)&nbsp;if&nbsp;the&nbsp;data&nbsp;are&nbsp;beyond&nbsp;the&nbsp;uploading&nbsp;file&nbsp;size.&nbsp;Or&nbsp;you&nbsp;can&nbsp;contact&nbsp;[support@thinkgeo.com](mailto:support@thinkgeo.com)&nbsp;to&nbsp;setup&nbsp;an&nbsp;ftp&nbsp;account&nbsp;for&nbsp;you.  
  
  
  
  
Also,&nbsp;you&nbsp;can&nbsp;feel&nbsp;free&nbsp;to&nbsp;open&nbsp;a&nbsp;new&nbsp;thread&nbsp;to&nbsp;make&nbsp;the&nbsp;topic&nbsp;looks&nbsp;make&nbsp;sense.  
Thanks,  
Troy

> `(It seems like my previous attempt at posting didn’t work. I have tried to limit the number of fonts etc. to reduce complexity)`  
> `Hello.`  
> ` `&nbsp;  
> `I am trying to get acquainted with Map Suite, which we will be using to show agricultural fields in one of our products.`  
> `We show fields on various backgrounds, depending on subscriptions. A few of the backgrounds are based on the Google API.`  
> `All our field data are stored in UTM zone 32N, datum Euref89. Google wants to show a Mercator map, which gives me some headaches.`  
> `We have tried to change the projection of our data into Mercator, but scale gets wrong. The fields are placed correctly on the map, but the map is about twice as large at it should be, if we ask our scale and map boundaries. This is very likely because Mercator has distance errors as we get further and further away from the equator.`  
> ` `&nbsp;  
> `I have therefore tried to project the Google layer into UTM instead. This works – mostly, as the fields are shown with the correct scale, but the map behind them is distorted as we near the edges of the displayed map rectangle. This results in my field polygons moving on the map if I pan the map.`  
> ` `&nbsp;  
> `Here is my code to set the projections used in our program:`  
> ` `&nbsp;  
> `m_GoogleMapProjection = new Proj4Projection();`  
> `m_GoogleMapProjection.InternalProjectionParametersString = Proj4Projection.GetGoogleMapParametersString();      // Epsg: 3857`  
> `m_GoogleMapProjection.ExternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(25832);`  
> `m_GoogleMapProjection.Open();`  
> ` `&nbsp;  
> `m_Epsg25832Projection.InternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(25832);`  
> `m_Epsg25832Projection.ExternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(25832);`  
> `m_Epsg25832Projection.Open();`  
> ` `&nbsp;  
> `Here is the code used to map a Google map into a layer:`  
> ` `&nbsp;  
> `string cacheDirectory = FileUtil.MapTileFileCacheFolderPath;`  
> `// Obs: Cachen bruges ikke når TileMode = SingleTile`  
> `GoogleMapsLayer worldLayer = new GoogleMapsLayer(cacheDirectory, ConfigurationManager.AppSettings[“GoogleClientId”], ConfigurationManager.AppSettings[“GooglePrivateKey”]);`  
> `worldLayer.MapType = mapType;`  
> `worldLayer.TileMode = GoogleMapsTileMode.SingleTile;`  
> `worldLayer.ProjectionFromSphericalMercator = m_Controller.CurrentProjection;`  
> ` `&nbsp;  
> `LayerOverlay worldOverlay = new LayerOverlay();`  
> `worldOverlay.Name = “WorldOverlay”;`  
> `worldOverlay.IsVisible = true;`  
> `worldOverlay.Layers.Add(“WorldLayer”, worldLayer);`  
> ` `&nbsp;  
> `GoogleMapsZoomLevelSet zoomLevelSet = new GoogleMapsZoomLevelSet();`  
> `zoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;`  
> `m_Map.Overlays.Insert(0, worldOverlay);`  
> ` `&nbsp;  
> `When I add the polygon layer it is done like this:`  
> `m_FieldPolygonLayer = new FieldPolygonInMemoryLayer();`  
> `m_FieldPolygonLayer.FeatureSource.Projection = m_Epsg25832Projection;`  
> ` `&nbsp;  
> `Note that I use the UTM projection on this layer. A colleague tried to use the same projection as on the Google layer, but the fields ended up being somewhere in France. The correct place is somewhere in Denmark.`  
> ` `&nbsp;  
> `Also: When I switch from either no background or from a background which is already in EPSG 25832 and to Google Map background, then I get relocated to somewhere in France.`  
> ` `&nbsp;  
> `So: When I pan on a Google map, the data moves around on the map because of some scale problem I expect. Any ideas as to how I can resolve this?`  
> ` `&nbsp;  
> `And: When I change the background map from something that use UTM, EUREF89 to Google Map I get thrown somewhere else in the world. Probably because of some problem with extents and changing projections. Any ideas as to how to keep the zoom and, especially, the map position?`  
> ` `&nbsp;  
> `Best regards,`  
> `Keld Laursen`  
> `KNOWLEDGE CENTRE FOR AGRICULTURE`
