GithubHelp home page GithubHelp logo

petergolde / purplepen Goto Github PK

View Code? Open in Web Editor NEW
59.0 59.0 19.0 2.52 GB

Purple Pen course setting program for orienteering

CSS 0.04% C# 92.45% XSLT 0.09% Batchfile 0.01% HTML 0.45% JavaScript 0.01% Inno Setup 5.67% Pascal 0.07% C++ 0.03% C 0.03% TypeScript 0.12% Smalltalk 1.05% Shell 0.01%

purplepen's People

Contributors

matstroeng avatar petergolde avatar zarkrosh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

purplepen's Issues

Missing latest releases

It seems that latest release(s) are missing from this repository. For instance I cannot find 3.3.0 here. Source code still references 3.2.1.

Could you add it please? Thanks!

Missing latest release(s?)

It seems that latest release(s) are missing from this repository. For instance I cannot find 3.3.0 here. The source code references 3.2.1.

Could you add it please? Thanks!

Allow setting a fixed size of the control description

Currently the size of the control description is determined by dragging the corners of it.
The orienteering rules instead requires that the boxes be kept squared of a size between 5 and 7 mm when printed. Link to the rules
Please allow setting a fixed size of the definition as this would allow course setters to follow this rule and not waste trying to get the description in the right size.

Null pointer exception when opening map

Creating a new event with the attached Open Orienteering Mapper file will cause a NullReferenceException and no map will be displayed.

After debugging the code, it seems that the issue is caused by the following symbol:

<symbol type="4" id="34" code="526.1" name="Building inside (not passable)"><area_symbol inner_color="8" min_area="0" patterns="1"><pattern type="1" angle="0" rotatable="true" line_spacing="0" line_offset="0" offset_along_line="0" color="-1" line_width="0"/></area_symbol></symbol>

Purple Pen seems to have trouble with color="-1" in the pattern.

Map:
BCIT-Georeferenced_no_template.zip

Stacktrace:
at PurplePen.MapModel.AreaSymDef.CreatePensAndBrushes(IGraphicsTarget g) in C:\Users\peter\Documents\Programs\MapModel\src\MapModel-Shared\SymDef.cs:line 2073 at PurplePen.MapModel.AreaSymDef.Draw(IGraphicsTarget g, SymPathWithHoles path, SymColor color, Single angle, PointF rotationCenter, RenderOptions renderOpts) in C:\Users\peter\Documents\Programs\MapModel\src\MapModel-Shared\SymDef.cs:line 2148 at PurplePen.MapModel.AreaSymbol.Draw(IGraphicsTarget g, SymColor color, RenderOptions renderOpts) in C:\Users\peter\Documents\Programs\MapModel\src\MapModel-Shared\Symbol.cs:line 587 at PurplePen.MapModel.Map.DrawColor(IGraphicsTarget g, SymColor curColor, RectangleF rect, RenderOptions renderOpts, Operation throwOnCancel) in C:\Users\peter\Documents\Programs\MapModel\src\MapModel-Shared\Map.cs:line 2146 at PurplePen.MapModel.Map.Draw(IGraphicsTarget g, RectangleF rect, RenderOptions renderOpts, Operation throwOnCancel, Int32 templateRecursionCount) in C:\Users\peter\Documents\Programs\MapModel\src\MapModel-Shared\Map.cs:line 2088 at PurplePen.MapModel.Map.Draw(IGraphicsTarget g, RectangleF rect, RenderOptions renderOpts, Operation throwOnCancel) in C:\Users\peter\Documents\Programs\MapModel\src\MapModel-Shared\Map.cs:line 2061 at PurplePen.MapDisplay.DrawOcadMap(IGraphicsTarget grTarget, RectangleF visRect, RenderOptions renderOptions) in D:\2020\PurplePen\src\PurplePen\MapDisplay.cs:line 521 at PurplePen.MapDisplay.DrawHelper(IGraphicsTarget grTargetOcadMap, IGraphicsTarget grTargetBitmapMap, IGraphicsTarget grTargetCourses, RectangleF visRect, Single minResolution) in D:\2020\PurplePen\src\PurplePen\MapDisplay.cs:line 623 at PurplePen.MapDisplay.Draw(Bitmap bitmap, Matrix transform, Region clipRegion) in D:\2020\PurplePen\src\PurplePen\MapDisplay.cs:line 582 at PurplePen.MapView.ViewCache.UpdateCache(Size sizeView, RectangleF mapAreaToView, Matrix transform) in D:\2020\PurplePen\src\PurplePen\MapView\ViewCache.cs:line 156 at PurplePen.MapView.ViewCache.GetCacheBitmap(Size sizeView, RectangleF mapAreaToView, Matrix transform, Int64& changeNumber) in D:\2020\PurplePen\src\PurplePen\MapView\ViewCache.cs:line 126 at PurplePen.MapView.MapViewer.CompositeBitmap(Boolean highlightsHaveChanged) in D:\2020\PurplePen\src\PurplePen\MapView\MapViewer.cs:line 932 at PurplePen.MapView.MapViewer.Draw(Graphics g, Rectangle clip) in D:\2020\PurplePen\src\PurplePen\MapView\MapViewer.cs:line 962 at PurplePen.MapView.MapViewer.MapViewer_Paint(Object sender, PaintEventArgs e) in D:\2020\PurplePen\src\PurplePen\MapView\MapViewer.cs:line 1052 at System.Windows.Forms.Control.OnPaint(PaintEventArgs e) at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer) at System.Windows.Forms.Control.WmPaint(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Exported IOF XML 3.0 is missing geographic coordinates when OpenOrienteering Mapper map file is used

When exporting IOF XML 3.0, the Purple Pen is producing different IOF XML files depending on map file format.

  1. With georeferenced map file created in OpenOrienteering Mapper (OOM) XML is missing geographic coordinates
  2. With the same file but saved in Ocad12 XML contains geographic coordinates

This difference means, that OOM map file is not possible to use directly when you want export XML for the other apps where georeferencing information is required (like UsynligO).

Workaround: Map file must be first saved as Ocad12 and than used in Purple Pen.

Tested under:
Purple Pen 3.3.0
OpenOrienteering Mapper 0.9.3, 0.9.4

testXML.zip

With A3 map PDF, unable to Create Course PDF in A4

In version 3.30: I have an A3 PDF as chart, I define a printing area for ALL charts as A4. I define a course fitting into an A4, i try to create PDF from course in A4. Doesnt work. It stills create the PDF in original map size (A3).
UT.zip

Otherwise great software!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.