Skip to content

Commit 09ee674

Browse files
committed
trunk added NetTopologySuite.Silverlight (silverlight v4), this shares code with the main NetTopologySuite proj via links and preprocessor directives. Some classes refactored to partial.
Beginnings of a set of data objects to replce ADO.NET in silverlight. Currently trying to get a silverlight shapefile reader functional. Hindered by the lack of ASCIIEncoding in silverlight. git-svn-id: http://nettopologysuite.googlecode.com/svn/trunk@539 53ca42c3-9f19-0410-8ccb-b990a9bb5db6
1 parent 32d4908 commit 09ee674

File tree

172 files changed

+4859
-1297
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+4859
-1297
lines changed

LocalTestRun.testrunconfig

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<TestRunConfiguration name="Local Test Run" id="eaf6c869-18e7-4af6-a661-e31cd58cee93" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2006">
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<TestRunConfiguration name="Local Test Run" id="eaf6c869-18e7-4af6-a661-e31cd58cee93" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
33
<Description>This is a default test run configuration for a local test run.</Description>
44
<TestTypeSpecific />
55
</TestRunConfiguration>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProductVersion>
7+
</ProductVersion>
8+
<SchemaVersion>2.0</SchemaVersion>
9+
<ProjectGuid>{D7E5589E-E767-47D7-B614-06CC020ED4AC}</ProjectGuid>
10+
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
11+
<OutputType>Library</OutputType>
12+
<AppDesignerFolder>Properties</AppDesignerFolder>
13+
<RootNamespace>NetTopologySuite.Silverlight.Test.Web</RootNamespace>
14+
<AssemblyName>NetTopologySuite.Silverlight.Test.Web</AssemblyName>
15+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
16+
<SilverlightApplicationList>{0A5A2807-4D6A-4C1D-B492-9278D9C942C2}|..\NetTopologySuite.Silverlight.Test\NetTopologySuite.Silverlight.Test.csproj|ClientBin|False</SilverlightApplicationList>
17+
</PropertyGroup>
18+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
19+
<DebugSymbols>true</DebugSymbols>
20+
<DebugType>full</DebugType>
21+
<Optimize>false</Optimize>
22+
<OutputPath>bin\</OutputPath>
23+
<DefineConstants>DEBUG;TRACE</DefineConstants>
24+
<ErrorReport>prompt</ErrorReport>
25+
<WarningLevel>4</WarningLevel>
26+
</PropertyGroup>
27+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
28+
<DebugType>pdbonly</DebugType>
29+
<Optimize>true</Optimize>
30+
<OutputPath>bin\</OutputPath>
31+
<DefineConstants>TRACE</DefineConstants>
32+
<ErrorReport>prompt</ErrorReport>
33+
<WarningLevel>4</WarningLevel>
34+
</PropertyGroup>
35+
<ItemGroup>
36+
<Reference Include="Microsoft.CSharp" />
37+
<Reference Include="System.Web.DynamicData" />
38+
<Reference Include="System.Web.Entity" />
39+
<Reference Include="System.Web.ApplicationServices" />
40+
<Reference Include="System" />
41+
<Reference Include="System.Data" />
42+
<Reference Include="System.Core" />
43+
<Reference Include="System.Data.DataSetExtensions" />
44+
<Reference Include="System.Web.Extensions" />
45+
<Reference Include="System.Xml.Linq" />
46+
<Reference Include="System.Drawing" />
47+
<Reference Include="System.Web" />
48+
<Reference Include="System.Xml" />
49+
<Reference Include="System.Configuration" />
50+
<Reference Include="System.Web.Services" />
51+
<Reference Include="System.EnterpriseServices" />
52+
</ItemGroup>
53+
<ItemGroup>
54+
<Content Include="ClientBin\NetTopologySuite.Silverlight.Test.xap" />
55+
<Content Include="NetTopologySuite.Silverlight.TestTestPage.aspx" />
56+
<Content Include="NetTopologySuite.Silverlight.TestTestPage.html" />
57+
<Content Include="Silverlight.js" />
58+
<Content Include="Web.config" />
59+
<Content Include="Web.Debug.config">
60+
<DependentUpon>Web.config</DependentUpon>
61+
</Content>
62+
<Content Include="Web.Release.config">
63+
<DependentUpon>Web.config</DependentUpon>
64+
</Content>
65+
</ItemGroup>
66+
<ItemGroup>
67+
<Compile Include="Properties\AssemblyInfo.cs" />
68+
</ItemGroup>
69+
<ItemGroup />
70+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
71+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
72+
<ProjectExtensions>
73+
<VisualStudio>
74+
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
75+
<WebProjectProperties>
76+
<UseIIS>False</UseIIS>
77+
<AutoAssignPort>True</AutoAssignPort>
78+
<DevelopmentServerPort>49532</DevelopmentServerPort>
79+
<DevelopmentServerVPath>/</DevelopmentServerVPath>
80+
<IISUrl>
81+
</IISUrl>
82+
<NTLMAuthentication>False</NTLMAuthentication>
83+
<UseCustomServer>False</UseCustomServer>
84+
<CustomServerUrl>
85+
</CustomServerUrl>
86+
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
87+
</WebProjectProperties>
88+
</FlavorProperties>
89+
</VisualStudio>
90+
</ProjectExtensions>
91+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
92+
Other similar extension points exist, see Microsoft.Common.targets.
93+
<Target Name="BeforeBuild">
94+
</Target>
95+
<Target Name="AfterBuild">
96+
</Target>
97+
-->
98+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
<%@ Page Language="C#" AutoEventWireup="true" %>
2+
3+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4+
<html xmlns="http://www.w3.org/1999/xhtml" >
5+
<head runat="server">
6+
<title>NetTopologySuite.Silverlight.Test</title>
7+
<style type="text/css">
8+
html, body {
9+
height: 100%;
10+
overflow: auto;
11+
}
12+
body {
13+
padding: 0;
14+
margin: 0;
15+
}
16+
#silverlightControlHost {
17+
height: 100%;
18+
text-align:center;
19+
}
20+
</style>
21+
<script type="text/javascript" src="Silverlight.js"></script>
22+
<script type="text/javascript">
23+
function onSilverlightError(sender, args) {
24+
var appSource = "";
25+
if (sender != null && sender != 0) {
26+
appSource = sender.getHost().Source;
27+
}
28+
29+
var errorType = args.ErrorType;
30+
var iErrorCode = args.ErrorCode;
31+
32+
if (errorType == "ImageError" || errorType == "MediaError") {
33+
return;
34+
}
35+
36+
var errMsg = "Unhandled Error in Silverlight Application " + appSource + "\n" ;
37+
38+
errMsg += "Code: "+ iErrorCode + " \n";
39+
errMsg += "Category: " + errorType + " \n";
40+
errMsg += "Message: " + args.ErrorMessage + " \n";
41+
42+
if (errorType == "ParserError") {
43+
errMsg += "File: " + args.xamlFile + " \n";
44+
errMsg += "Line: " + args.lineNumber + " \n";
45+
errMsg += "Position: " + args.charPosition + " \n";
46+
}
47+
else if (errorType == "RuntimeError") {
48+
if (args.lineNumber != 0) {
49+
errMsg += "Line: " + args.lineNumber + " \n";
50+
errMsg += "Position: " + args.charPosition + " \n";
51+
}
52+
errMsg += "MethodName: " + args.methodName + " \n";
53+
}
54+
55+
throw new Error(errMsg);
56+
}
57+
</script>
58+
</head>
59+
<body>
60+
<form id="form1" runat="server" style="height:100%">
61+
<div id="silverlightControlHost">
62+
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
63+
<param name="source" value="ClientBin/NetTopologySuite.Silverlight.Test.xap"/>
64+
<param name="onError" value="onSilverlightError" />
65+
<param name="background" value="white" />
66+
<param name="minRuntimeVersion" value="4.0.50826.0" />
67+
<param name="autoUpgrade" value="true" />
68+
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50826.0" style="text-decoration:none">
69+
<img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
70+
</a>
71+
</object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
72+
</form>
73+
</body>
74+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2+
<html xmlns="http://www.w3.org/1999/xhtml" >
3+
4+
<head>
5+
<title>NetTopologySuite.Silverlight.Test</title>
6+
<style type="text/css">
7+
html, body {
8+
height: 100%;
9+
overflow: auto;
10+
}
11+
body {
12+
padding: 0;
13+
margin: 0;
14+
}
15+
#silverlightControlHost {
16+
height: 100%;
17+
text-align:center;
18+
}
19+
</style>
20+
<script type="text/javascript" src="Silverlight.js"></script>
21+
<script type="text/javascript">
22+
function onSilverlightError(sender, args) {
23+
var appSource = "";
24+
if (sender != null && sender != 0) {
25+
appSource = sender.getHost().Source;
26+
}
27+
28+
var errorType = args.ErrorType;
29+
var iErrorCode = args.ErrorCode;
30+
31+
if (errorType == "ImageError" || errorType == "MediaError") {
32+
return;
33+
}
34+
35+
var errMsg = "Unhandled Error in Silverlight Application " + appSource + "\n" ;
36+
37+
errMsg += "Code: "+ iErrorCode + " \n";
38+
errMsg += "Category: " + errorType + " \n";
39+
errMsg += "Message: " + args.ErrorMessage + " \n";
40+
41+
if (errorType == "ParserError") {
42+
errMsg += "File: " + args.xamlFile + " \n";
43+
errMsg += "Line: " + args.lineNumber + " \n";
44+
errMsg += "Position: " + args.charPosition + " \n";
45+
}
46+
else if (errorType == "RuntimeError") {
47+
if (args.lineNumber != 0) {
48+
errMsg += "Line: " + args.lineNumber + " \n";
49+
errMsg += "Position: " + args.charPosition + " \n";
50+
}
51+
errMsg += "MethodName: " + args.methodName + " \n";
52+
}
53+
54+
throw new Error(errMsg);
55+
}
56+
</script>
57+
</head>
58+
<body>
59+
<form id="form1" runat="server" style="height:100%">
60+
<div id="silverlightControlHost">
61+
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
62+
<param name="source" value="ClientBin/NetTopologySuite.Silverlight.Test.xap"/>
63+
<param name="onError" value="onSilverlightError" />
64+
<param name="background" value="white" />
65+
<param name="minRuntimeVersion" value="4.0.50826.0" />
66+
<param name="autoUpgrade" value="true" />
67+
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50826.0" style="text-decoration:none">
68+
<img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
69+
</a>
70+
</object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
71+
</form>
72+
</body>
73+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("NetTopologySuite.Silverlight.Test.Web")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("Microsoft")]
12+
[assembly: AssemblyProduct("NetTopologySuite.Silverlight.Test.Web")]
13+
[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("346ae3d1-5ef9-4487-88f4-2a9b8df62bc3")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Revision and Build Numbers
33+
// by using the '*' as shown below:
34+
[assembly: AssemblyVersion("1.0.0.0")]
35+
[assembly: AssemblyFileVersion("1.0.0.0")]

0 commit comments

Comments
 (0)