Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xfischer/nettopologysuite.diagnostics
Spatial trace and debugger visualizers for NTS
https://github.com/xfischer/nettopologysuite.diagnostics
debugger-visualizers diagnostics nettopologysuite nts spatial
Last synced: 9 days ago
JSON representation
Spatial trace and debugger visualizers for NTS
- Host: GitHub
- URL: https://github.com/xfischer/nettopologysuite.diagnostics
- Owner: xfischer
- License: mit
- Created: 2019-01-04T13:49:00.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-12T22:02:31.000Z (over 5 years ago)
- Last Synced: 2024-12-09T06:17:50.295Z (about 1 month ago)
- Topics: debugger-visualizers, diagnostics, nettopologysuite, nts, spatial
- Language: C#
- Size: 239 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# NetTopologySuite.Diagnostics
Spatial tracing and debugger visualizers for NetTopology geometries.
.Net Standard replacement of [SqlServerSpatial.Toolkit](https://github.com/xfischer/SqlServerSpatial.Toolkit)
- Only enables tracing for the moment. A viewer will soon be ported.
```
using NetTopologySuite.Diagnostics.Tracing;// Enable tracing
SpatialTrace.Enable();
// Trace sample geometry instance.
// Works with any IGeometry instance, and IEnumerable
SpatialTrace.TraceGeometry(geometry, "Sample geometry with default style");// Change styling
SpatialTrace.SetLineWidth(3); // Current stroke style is 3px wide
SpatialTrace.SetFillColor(Color.FromArgb(128, 255, 0, 0)); // Fills with red// Style is applied to subsequent traces
SpatialTrace.TraceGeometry(geometry, "Some text");// Reset style
SpatialTrace.ResetStyle();
```