I seem to constantly have issues outputing line shapefiles to PDF. My polygon and point files work fine. I have now even created a line shape file from scratch, and it still wont work.
Here is the code:
foreach (Layer layer in map.StaticOverlay.Layers) { pdfGeoCanvas.BeginDrawing(page, extent, map.MapUnit); { layer.Open(); { layer.Draw(pdfGeoCanvas, new Collection<simplecandidate>() { }); } layer.Close(); } pdfGeoCanvas.EndDrawing(); } foreach (Layer layer in map.DynamicOverlay.Layers) { pdfGeoCanvas.BeginDrawing(page, extent, map.MapUnit); //map.CurrentExtent, map.MapUnit); { layer.Open(); { layer.Draw(pdfGeoCanvas, new Collection<simplecandidate>() { }); } layer.Close(); } pdfGeoCanvas.EndDrawing(); }
I have attached a zip containing my line shapefile. although its not included here, I have also created an index file.
1118-myrivers.zip (2.97 KB)