Hi,
Using example code I am able to export all map layers to PDF. It looks fine in PDF. When I printed the same pdf mercator and wgs84 projection maps came correctly. Problem came with Lambert conformal conic projection. Print shows pixels only. Please suggest what could be the problem.
Thanks & Regards,
Goral
Export different projection map to PDF
Hi Goral,
I tested that in our UsePdfExtension sample, everything looks correct, please test that use my test code as below in your end:
private void CreateASpatialIndexForAShapeFileLayer_Load(object sender, EventArgs e)
{
winformsMap1.MapUnit = GeographyUnit.Meter;
winformsMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);
ShapeFileFeatureLayer worldLayer = new ShapeFileFeatureLayer(@"…\SampleData\Data\Countries02.shp");
worldLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.Country1;
worldLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle.OutlinePen.StartCap = DrawingLineCap.Round;
worldLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle.OutlinePen.EndCap = DrawingLineCap.Round;
worldLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
ManagedProj4Projection proj4 = new ManagedProj4Projection();
proj4.InternalProjectionParametersString = ManagedProj4Projection.GetDecimalDegreesParametersString();
proj4.ExternalProjectionParametersString = ManagedProj4Projection.GetEpsgParametersString(2154);
proj4.Open();
worldLayer.FeatureSource.Projection = proj4;
worldLayer.Open();
winformsMap1.CurrentExtent = new RectangleShape(-357823.2365, 7230727.3772, 1313632.3628, 6037008.6939);
LayerOverlay staticOverlay = new LayerOverlay();
staticOverlay.Layers.Add("WorldLayer", worldLayer);
winformsMap1.Overlays.Add(staticOverlay);
winformsMap1.Refresh();
}
Regards,
Don
Hi,
Thanks for reply. I will check and get back to you.
Thanks & Regards,
Goral
Any questions, please feel free to let us know.
Thanks,
Troy