Skip to content

Commit

Permalink
NuGet 1.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xfischer committed Oct 25, 2016
1 parent a74b0a1 commit e9564fb
Show file tree
Hide file tree
Showing 16 changed files with 487 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>SqlServerSpatial.Toolkit</id>
<version>1.0.0.0</version>
<title>SqlServerSpatial.Toolkit</title>
<authors>Xavier Fischer</authors>
<owners>Xavier Fischer</owners>
<licenseUrl>https://github.com/xfischer/SqlServerSpatial.Toolkit/blob/master/LICENSE</licenseUrl>
<projectUrl>https://github.com/xfischer/SqlServerSpatial.Toolkit</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>This package contains a SpatialTrace that enables geometry tracing within the code, and a visualizer to review traces, and debugger visualizers for SqlGeometry and SqlGeography types.</description>
<summary>Sql Server spatial types debugger visualizers, trace and trace viewer.</summary>
<releaseNotes>Copy SQL feature fixed</releaseNotes>
<copyright>Xavier Fischer 2016</copyright>
<language>en-US</language>
<tags>sqlserver spatial geometry geography debug trace cartography gis sqlgeometry sqlgeography</tags>
<dependencies>
<dependency id="Microsoft.SqlServer.Types" version="11.0.2" />
<dependency id="DotSpatial.Projections" version="1.9" />
</dependencies>
</metadata>
<files>
<file src="content\SqlServerSpatial.Toolkit\readme.htm" target="content\SqlServerSpatial.Toolkit\readme.htm" />
<file src="lib\net45\SqlServerSpatial.Toolkit.dll" target="lib\net45\SqlServerSpatial.Toolkit.dll" />
<file src="lib\net45\SqlServerSpatial.Toolkit.xml" target="lib\net45\SqlServerSpatial.Toolkit.xml" />
<file src="toolkit\DotSpatial.Projections.dll" target="toolkit\DotSpatial.Projections.dll" />
<file src="toolkit\SqlServerSpatial.Toolkit.DebuggerVisualizer.VS2015.dll" target="toolkit\SqlServerSpatial.Toolkit.DebuggerVisualizer.VS2015.dll" />
<file src="toolkit\SqlServerSpatial.Toolkit.Viewer.exe" target="toolkit\SqlServerSpatial.Toolkit.Viewer.exe" />
<file src="tools\install.ps1" target="tools\install.ps1" />
<file src="tools\uninstall.ps1" target="tools\uninstall.ps1" />
</files>
</package>
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>This package contains a SpatialTrace that enables geometry tracing within the code, and a visualizer to review traces, and debugger visualizers for SqlGeometry and SqlGeography types.</description>
<summary>Sql Server spatial types debugger visualizers, trace and trace viewer.</summary>
<releaseNotes>Initial version.</releaseNotes>
<releaseNotes>Better visualizer with base maps and reprojection. Enhanced tracing with style and grouping support.</releaseNotes>
<copyright>Xavier Fischer 2015</copyright>
<language>en-US</language>
<tags>sqlserver spatial geometry geography debug trace cartography gis sqlgeometry sqlgeography</tags>
<dependencies>
<dependency id="DotSpatial.Projections" version="1.9.0" />
<dependency id="Microsoft.SqlServer.Types" version="11.0.2" />
</dependencies>

</metadata>
<files>
<file src="..\Binaries\Visualizer.2013\*.*" target="content" />
<file src="..\Binaries\Visualizer.2015\*.*" target="content" />
</files>
</package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<html lang="en-US">
<head>
<meta charset="utf-8" />
<title>SqlServerSpatial.Toolkit</title>
<style>
body {
background: #fff;
color: #505050;
margin: 20px;
}

#main {
background: #efefef;
padding: 5px 30px;
}
</style>
</head>
<body>
<div id="main">
<h1>SqlServerSpatial.Toolkit</h1>
<h2>Using the SpatialTrace</h2>
<p>
To use the SpatialTrace, follow the instructions on the main <a href="https://github.com/xfischer/SqlServerSpatial.Toolkit">GitHub project page</a>. Syntax should be like this:
<pre> SpatialTrace.Enable(); // Enables the trace
SpatialTrace.TraceGeometry(geometry, "Sample geometry with default style");</pre>
A SpatialTrace.txt file will be written in the executing assembly directory. This files comes with a directory "SpatialTraceData" which contains all traced geometries serialized.
<br/>You can either call:<pre>SpatialTrace.ShowDialog();</pre> or open the file in the SpatialTrace Viewer application.
</p>
<h2>Using the SpatialTrace Viewer application</h2>
<p>
The SpatialTrace Viewer (SqlServerSpatial.Toolkit.Viewer.exe) is added in project directory named SqlServerSpatial.Toolkit. It is physically under packages directory.
</p>
<h2>Install debugger visualizer</h2>
<p>
[Visual Studio 2013 and 2015 only. Support for VS2012 is coming]
</p>
<p>[Automated install is still a work in progress.]</p>
<p>
To install the debugger visualizer, copy the following files from your project output dir (bin\Debug):<br/>
<ul>
<li>SqlServerSpatial.Toolkit.DebuggerVisualizer.VS2013.dll or VS2015 for vs2015</li>
<li>SqlServerSpatial.Toolkit.dll</li>
<li>Microsoft.SqlServer.Types.dll</li>
<li>SqlServerTypes directory</li>
</ul>
</p>
<p>to either of the following locations:
<ul>
<li>%VS120COMNTOOLS%\Common7\Packages\Debugger\Visualizers, for all users (or VS140COMNTOOLS for vs2015)</li>
<li>%USERPROFILE%\Documents\Visual Studio 2013\Visualizers, for you only (or 2015 for vs2015)</li>
</ul>

</p>
<p>More information here [on MSDN](https://msdn.microsoft.com/en-us/library/sb2yca43.aspx).
</p>
<h2>Issues, remarks, questions</h2>
<p>If you have any comment, issue or question, please post it in the GitHub repo.</p>
<h1>Microsoft.SqlServer.Types (official readme)</h3>
<h2>Action required to load native assemblies</h2>
<p>
To deploy an application that uses spatial data types to a machine that does not have 'System CLR Types for SQL Server' installed you also need to deploy the native assembly SqlServerSpatial110.dll. Both x86 (32 bit) and x64 (64 bit) versions of this assembly have been added to your project under the SqlServerTypes\x86 and SqlServerTypes\x64 subdirectories. The native assembly msvcr100.dll is also included in case the C++ runtime is not installed.
</p>
<p>
You need to add code to load the correct one of these assemblies at runtime (depending on the current architecture).
</p>
<h3>ASP.NET applications</h3>
<p>
For ASP.NET applications, add the following line of code to the Application_Start method in Global.asax.cs:
<pre> SqlServerTypes.Utilities.LoadNativeAssemblies(Server.MapPath("~/bin"));</pre>
</p>
<h3>Desktop applications</h3>
<p>
For desktop applications, add the following line of code to run before any spatial operations are performed:
<pre> SqlServerTypes.Utilities.LoadNativeAssemblies(AppDomain.CurrentDomain.BaseDirectory);</pre>
</p>
</div>
</body>
</html>
Binary file not shown.
Loading

0 comments on commit e9564fb

Please sign in to comment.