Hi guys,
I have the following code
WinformsMap1.MapUnit = GeographyUnit.Meter
Dim Proj4 As Proj4Projection = New Proj4Projection
Dim minx As Double = 7.5635861 'Mininum Longitude
Dim miny As Double = 50.4159917 'Minimum Latitude
Dim maxx As Double = 7.5672833 'Maximum Longitude
Dim maxy As Double = 50.4195222 'Maximum Latitude
Dim googleMapsOverlay As New GoogleMapsOverlay()
Dim stateOverlay As New LayerOverlay()
Dim layer As New ShapeFileFeatureLayer("BendorfTN_line.shp")
ShapeFileFeatureLayer.BuildIndexFile("BendorfTN_line.shp")
layer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20
layer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = New AreaStyle(New GeoPen(GeoColor.SimpleColors.Black), New GeoSolidBrush(GeoColor.SimpleColors.Yellow))
layer.ZoomLevelSet.ZoomLevel01.DefaultLineStyle = New LineStyle(New GeoPen(GeoColor.SimpleColors.Black, 1))
layer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = New PointStyle(PointSymbolType.Circle, New GeoSolidBrush(GeoColor.SimpleColors.Green), 10)
Proj4.InternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(4326)
Proj4.ExternalProjectionParametersString = Proj4Projection.GetGoogleMapParametersString()
Proj4.Open()
WinformsMap1.CurrentExtent = Proj4.ConvertToExternalProjection(New RectangleShape(minx, maxy, maxx, miny))
Proj4.Close()
layer.FeatureSource.Projection = Proj4
stateOverlay.Layers.Add("KmlLayer", layer)
WinformsMap1.ZoomLevelSnapping = ZoomLevelSnappingMode.[Default]
WinformsMap1.Overlays.Add(googleMapsOverlay)
WinformsMap1.Overlays.Add("StateOverlay", stateOverlay)
WinformsMap1.Refresh()
I want to also add a rotation to the projection, if i create a rotationprojection and then apply that to my shapefile layer i lose my shapefile because the projection that i previously applied has been overwritten with the rotation projection.
Does anyone know how i can apply my proj4projection and then add a rotation to that.
Thanks
Aaron