Commit f68da2f3 by Mac Stephens

Create ver0.9.5.0: Fix server shutdown responsiveness, add Android app-link SMS…

Create ver0.9.5.0: Fix server shutdown responsiveness, add Android app-link SMS support, reorganize file structure and standardize endpoint logging levels
parent a4733888
...@@ -49,11 +49,11 @@ Server/Source/Common/__history/ ...@@ -49,11 +49,11 @@ Server/Source/Common/__history/
Server/Source/Common/__recovery/ Server/Source/Common/__recovery/
Client/CommonSource/__history/ Client/CommonSource/__history/
Client/CommonSource/__recovery/ Client/CommonSource/__recovery/
Client/Lems/Win32/ Client/WCSO/Win32/
Client/Lems/Win64/ Client/WCSO/Win64/
Client/Lems/TMSWeb/ Client/WCSO/TMSWeb/
Client/Lems/**/__history/ Client/WCSO/**/__history/
Client/Lems/**/__recovery/ Client/WCSO/**/__recovery/
Client/BFD/Win32/ Client/BFD/Win32/
Client/BFD/Win64/ Client/BFD/Win64/
Client/BFD/TMSWeb/ Client/BFD/TMSWeb/
...@@ -66,3 +66,9 @@ Client/BFD/**/__recovery/ ...@@ -66,3 +66,9 @@ Client/BFD/**/__recovery/
!Server/bin/ssleay32.dll !Server/bin/ssleay32.dll
Server/Source/BFD/__history/ Server/Source/BFD/__history/
# Agency server runtime libraries
!Server/bin/BFD/*.dll
!Server/bin/WCSO/*.dll
Server/__history/
Server/__recovery/
...@@ -21,7 +21,7 @@ type ...@@ -21,7 +21,7 @@ type
procedure VerifyVersion(SuccessProc: TSuccessProc); procedure VerifyVersion(SuccessProc: TSuccessProc);
public public
property WsUrl: string read FWsUrl; property WsUrl: string read FWsUrl;
const clientVersion = '0.9.4.9'; const clientVersion = '0.9.5.0';
procedure InitApp(SuccessProc: TSuccessProc; procedure InitApp(SuccessProc: TSuccessProc;
UnauthorizedAccessProc: TUnauthorizedAccessProc); UnauthorizedAccessProc: TUnauthorizedAccessProc);
end; end;
......
...@@ -92,14 +92,14 @@ ...@@ -92,14 +92,14 @@
<DCC_RemoteDebug>false</DCC_RemoteDebug> <DCC_RemoteDebug>false</DCC_RemoteDebug>
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo> <VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
<VerInfo_Locale>1033</VerInfo_Locale> <VerInfo_Locale>1033</VerInfo_Locale>
<VerInfo_Keys>CompanyName=;FileDescription=$(MSBuildProjectName);FileVersion=0.9.4.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=0.9.3.0;Comments=;LastCompiledTime=2018/08/27 15:18:29</VerInfo_Keys> <VerInfo_Keys>CompanyName=;FileDescription=$(MSBuildProjectName);FileVersion=0.9.5.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=0.9.3.0;Comments=;LastCompiledTime=2018/08/27 15:18:29</VerInfo_Keys>
<AppDPIAwarenessMode>PerMonitor</AppDPIAwarenessMode> <AppDPIAwarenessMode>PerMonitor</AppDPIAwarenessMode>
<VerInfo_MinorVer>9</VerInfo_MinorVer> <VerInfo_MinorVer>9</VerInfo_MinorVer>
<VerInfo_MajorVer>0</VerInfo_MajorVer> <VerInfo_MajorVer>0</VerInfo_MajorVer>
<VerInfo_Release>4</VerInfo_Release> <VerInfo_Release>5</VerInfo_Release>
<TMSWebBrowser>1</TMSWebBrowser> <TMSWebBrowser>1</TMSWebBrowser>
<TMSUseJSDebugger>2</TMSUseJSDebugger>
<TMSWebSingleInstance>1</TMSWebSingleInstance> <TMSWebSingleInstance>1</TMSWebSingleInstance>
<TMSUseJSDebugger>2</TMSUseJSDebugger>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Cfg_2)'!=''"> <PropertyGroup Condition="'$(Cfg_2)'!=''">
<DCC_LocalDebugSymbols>false</DCC_LocalDebugSymbols> <DCC_LocalDebugSymbols>false</DCC_LocalDebugSymbols>
...@@ -212,8 +212,6 @@ ...@@ -212,8 +212,6 @@
<None Include="css\app.css"/> <None Include="css\app.css"/>
<None Include="css\spinner.css"/> <None Include="css\spinner.css"/>
<None Include="config\config.json"/> <None Include="config\config.json"/>
<None Include="assets\bpddistricts-updated.geojson"/>
<None Include="assets\buffalooutline.geojson"/>
<RcItem Include="assets\markers\accident_active.png"> <RcItem Include="assets\markers\accident_active.png">
<ResourceType>RCDATA</ResourceType> <ResourceType>RCDATA</ResourceType>
<ResourceId>PngImage_1</ResourceId> <ResourceId>PngImage_1</ResourceId>
...@@ -458,9 +456,7 @@ ...@@ -458,9 +456,7 @@
<ResourceType>RCDATA</ResourceType> <ResourceType>RCDATA</ResourceType>
<ResourceId>PngImage_48</ResourceId> <ResourceId>PngImage_48</ResourceId>
</RcItem> </RcItem>
<None Include="assets\orleanscounty.geojson"/> <None Include="assets\buffalooutline.geojson"/>
<None Include="assets\wyomingtowns.geojson"/>
<None Include="assets\wyomingvillages.geojson"/>
<BuildConfiguration Include="Base"> <BuildConfiguration Include="Base">
<Key>Base</Key> <Key>Base</Key>
</BuildConfiguration> </BuildConfiguration>
...@@ -568,12 +564,6 @@ ...@@ -568,12 +564,6 @@
</DeployFile> </DeployFile>
<DeployFile LocalName="Win32\Debug\webCharms.exe" Configuration="Debug" Class="ProjectOutput"/> <DeployFile LocalName="Win32\Debug\webCharms.exe" Configuration="Debug" Class="ProjectOutput"/>
<DeployFile LocalName="Win32\Debug\webEnvoyCalls.exe" Configuration="Debug" Class="ProjectOutput"/> <DeployFile LocalName="Win32\Debug\webEnvoyCalls.exe" Configuration="Debug" Class="ProjectOutput"/>
<DeployFile LocalName="assets\bpddistricts-updated.geojson" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32">
<RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite>
</Platform>
</DeployFile>
<DeployFile LocalName="assets\buffalooutline.geojson" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\buffalooutline.geojson" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
...@@ -676,199 +666,199 @@ ...@@ -676,199 +666,199 @@
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\engine_available.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\default_active.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\engine_dispatched.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\default_hold.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\engine_cleared.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\default_pending.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\engine_oos.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\default_suspend.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\ladder_available.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\electrical_active.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\ladder_dispatched.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\electrical_hold.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\ladder_cleared.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\electrical_pending.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\ladder_oos.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\electrical_suspend.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\other_available.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\engine_available.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\other_dispatched.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\engine_cleared.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\other_cleared.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\engine_dispatched.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\other_oos.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\engine_oos.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\default_active.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\fire_active.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\default_hold.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\fire_hold.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\default_pending.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\fire_pending.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\default_suspend.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\fire_suspend.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\electrical_active.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\hazmat_active.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\electrical_hold.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\hazmat_hold.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\electrical_pending.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\hazmat_pending.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\electrical_suspend.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\hazmat_suspend.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\fire_active.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\ladder_available.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\fire_hold.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\ladder_cleared.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\fire_pending.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\ladder_dispatched.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\fire_suspend.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\ladder_oos.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\hazmat_active.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\location_dot.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\hazmat_hold.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\medical_active.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\hazmat_pending.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\medical_hold.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\hazmat_suspend.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\medical_pending.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\location_dot.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\medical_suspend.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\medical_active.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\other_available.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\medical_hold.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\other_cleared.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\medical_pending.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\other_dispatched.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\markers\medical_suspend.png" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="assets\markers\other_oos.png" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
...@@ -946,24 +936,6 @@ ...@@ -946,24 +936,6 @@
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="assets\orleanscounty.geojson" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32">
<RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite>
</Platform>
</DeployFile>
<DeployFile LocalName="assets\wyomingtowns.geojson" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32">
<RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite>
</Platform>
</DeployFile>
<DeployFile LocalName="assets\wyomingvillages.geojson" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32">
<RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite>
</Platform>
</DeployFile>
<DeployFile LocalName="config\config.json" Configuration="Debug" Class="ProjectFile"> <DeployFile LocalName="config\config.json" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteDir>.\</RemoteDir> <RemoteDir>.\</RemoteDir>
......
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<ProjectGuid>{27B04508-3F72-45A2-83EF-A007750D2923}</ProjectGuid> <ProjectGuid>{27B04508-3F72-45A2-83EF-A007750D2923}</ProjectGuid>
</PropertyGroup> </PropertyGroup>
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<Projects Include="bfdEmiMobile.dproj"> <Projects Include="bfdEmiMobile.dproj">
<Dependencies/> <Dependencies/>
</Projects> </Projects>
<Projects Include="..\..\Server\emiMobileServer.dproj"> <Projects Include="..\..\Server\BFDemiMobileServer.dproj">
<Dependencies/> <Dependencies/>
</Projects> </Projects>
</ItemGroup> </ItemGroup>
...@@ -26,23 +26,23 @@ ...@@ -26,23 +26,23 @@
<Target Name="bfdEmiMobile:Make"> <Target Name="bfdEmiMobile:Make">
<MSBuild Projects="bfdEmiMobile.dproj" Targets="Make"/> <MSBuild Projects="bfdEmiMobile.dproj" Targets="Make"/>
</Target> </Target>
<Target Name="emiMobileServer"> <Target Name="BFDemiMobileServer">
<MSBuild Projects="..\..\Server\emiMobileServer.dproj"/> <MSBuild Projects="..\..\Server\BFDemiMobileServer.dproj"/>
</Target> </Target>
<Target Name="emiMobileServer:Clean"> <Target Name="BFDemiMobileServer:Clean">
<MSBuild Projects="..\..\Server\emiMobileServer.dproj" Targets="Clean"/> <MSBuild Projects="..\..\Server\BFDemiMobileServer.dproj" Targets="Clean"/>
</Target> </Target>
<Target Name="emiMobileServer:Make"> <Target Name="BFDemiMobileServer:Make">
<MSBuild Projects="..\..\Server\emiMobileServer.dproj" Targets="Make"/> <MSBuild Projects="..\..\Server\BFDemiMobileServer.dproj" Targets="Make"/>
</Target> </Target>
<Target Name="Build"> <Target Name="Build">
<CallTarget Targets="bfdEmiMobile;emiMobileServer"/> <CallTarget Targets="bfdEmiMobile;BFDemiMobileServer"/>
</Target> </Target>
<Target Name="Clean"> <Target Name="Clean">
<CallTarget Targets="bfdEmiMobile:Clean;emiMobileServer:Clean"/> <CallTarget Targets="bfdEmiMobile:Clean;BFDemiMobileServer:Clean"/>
</Target> </Target>
<Target Name="Make"> <Target Name="Make">
<CallTarget Targets="bfdEmiMobile:Make;emiMobileServer:Make"/> <CallTarget Targets="bfdEmiMobile:Make;BFDemiMobileServer:Make"/>
</Target> </Target>
<Import Project="$(BDS)\Bin\CodeGear.Group.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Group.Targets')"/> <Import Project="$(BDS)\Bin\CodeGear.Group.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Group.Targets')"/>
</Project> </Project>
...@@ -36,7 +36,7 @@ type ...@@ -36,7 +36,7 @@ type
[async] procedure UnrevokeDevice(const ACredentialId, AName: string); [async] procedure UnrevokeDevice(const ACredentialId, AName: string);
procedure ConfirmDeleteDevice(ADeviceId: Integer; ACredentialId, AName: string); procedure ConfirmDeleteDevice(ADeviceId: Integer; ACredentialId, AName: string);
[async] procedure DeleteDevice(ADeviceId: Integer; AName: string; AIsCurrentDevice: Boolean); [async] procedure DeleteDevice(ADeviceId: Integer; AName: string; AIsCurrentDevice: Boolean);
[async] procedure SendAppLink(const APhoneNumber, AName: string); [async] procedure SendAppLink(const APhoneNumber, AName, ADeviceType: string);
[async] procedure AddPendingDevice; [async] procedure AddPendingDevice;
[async] procedure UpdateDeviceUsername(const ACredentialId, AUsername: string); [async] procedure UpdateDeviceUsername(const ACredentialId, AUsername: string);
public public
...@@ -354,11 +354,7 @@ begin ...@@ -354,11 +354,7 @@ begin
btnSend.innerText := 'Send Link'; btnSend.innerText := 'Send Link';
btnSend.addEventListener('click', procedure(Event: TJSMouseEvent) btnSend.addEventListener('click', procedure(Event: TJSMouseEvent)
begin begin
if isAndroid then SendAppLink(APhoneNumber, AName, ADeviceType);
ShowInformationModal('Android App',
'Android app installation is not available yet.')
else
SendAppLink(APhoneNumber, AName);
end); end);
tdSend.appendChild(btnSend); tdSend.appendChild(btnSend);
end end
...@@ -541,14 +537,14 @@ begin ...@@ -541,14 +537,14 @@ begin
end; end;
end; end;
procedure TFViewDeviceManager.SendAppLink(const APhoneNumber, AName: string); procedure TFViewDeviceManager.SendAppLink(const APhoneNumber, AName, ADeviceType: string);
var var
resp: TXDataClientResponse; resp: TXDataClientResponse;
res: TJSObject; res: TJSObject;
status: string; status: string;
begin begin
try try
resp := await(XDataWebClient.RawInvokeAsync('IApiService.SendAppLink', [APhoneNumber])); resp := await(XDataWebClient.RawInvokeAsync('IApiService.SendAppLink', [APhoneNumber, ADeviceType]));
res := TJSObject(resp.Result); res := TJSObject(resp.Result);
status := string(res['status']); status := string(res['status']);
......
{
"type": "FeatureCollection",
"name": "BFDDistrict",
"crs": {
"type": "name",
"properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" }
},
"features": [
{
"type": "Feature",
"properties": {
"SBE4_ID": 0,
"NAME": "District A",
"FROMLEFT": 0,
"TOLEFT": 0,
"FROMRIGHT": 0,
"TORIGHT": 0,
"DIRECTION": null,
"STREET": null,
"ST_TYPE": null,
"ST_PREFIX": null,
"ST_SUFFIX": null,
"CITY_LEFT": null,
"CITY_RIGHT": null,
"LO_X_PRE": null,
"LO_X_NAME": null,
"LO_X_TYPE": null,
"LO_X_SUF": null,
"HI_X_PRE": null,
"HI_X_NAME": null,
"HI_X_TYPE": null,
"HI_X_SUF": null,
"LHS": null,
"RHS": null,
"BDY_LEFT": null,
"BDY_RIGHT": null,
"ST_CODE": null,
"RECNUM_L": 0,
"RECNUM_R": 0
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[-78.838387137024, 42.832075532899],
[-78.853850691821, 42.832230091893],
[-78.853737429899, 42.832234856975],
[-78.860241732413, 42.832294613744],
[-78.860459439674, 42.832938132033],
[-78.860190421983, 42.832929527531],
[-78.860155470603, 42.832824829664],
[-78.855806324216, 42.833083069854],
[-78.846490562324, 42.835714830049],
[-78.846697006768, 42.83615097977],
[-78.856002563227, 42.833623324546],
[-78.85698971079, 42.833542425341],
[-78.857821381746, 42.833711928632],
[-78.85892584984, 42.833709446711],
[-78.859885913544, 42.833825635625],
[-78.860510244536, 42.833774384667],
[-78.860599277961, 42.83461346044],
[-78.860424602917, 42.835050335751],
[-78.860914587935, 42.836444937288],
[-78.861114200497, 42.837517921006],
[-78.86072747651, 42.837748572056],
[-78.860208139668, 42.83792320884],
[-78.859529918974, 42.837898266629],
[-78.858749939571, 42.838047629193],
[-78.857859282657, 42.838358284996],
[-78.858447641833, 42.839872795158],
[-78.862194462024, 42.838854573689],
[-78.862368418014, 42.839087210413],
[-78.86302074272, 42.838947222933],
[-78.863106338992, 42.839118507609],
[-78.860324953696, 42.839972621056],
[-78.859952490741, 42.840269861797],
[-78.859665562823, 42.840727070976],
[-78.859668328493, 42.841243089399],
[-78.860922447904, 42.844447418843],
[-78.863860275853, 42.843617088448],
[-78.868228333525, 42.849960310468],
[-78.867165715727, 42.850715292637],
[-78.867039153394, 42.850663899009],
[-78.866998777206, 42.850499280724],
[-78.867885595735, 42.849934067689],
[-78.865525035556, 42.846452673434],
[-78.865421526897, 42.846446328014],
[-78.862380343476, 42.847225843162],
[-78.862233018249, 42.847426763136],
[-78.863712519326, 42.849983417183],
[-78.863792155537, 42.850195661579],
[-78.864115985814, 42.850370305264],
[-78.864793099389, 42.850736668614],
[-78.865019994986, 42.851222808086],
[-78.865203288944, 42.851346175252],
[-78.865418351834, 42.851996977574],
[-78.865348746846, 42.852374777487],
[-78.865440605204, 42.852584631042],
[-78.865790769078, 42.852907890229],
[-78.866274859581, 42.852953169243],
[-78.86640433204, 42.85313051635],
[-78.871777191572, 42.851682049546],
[-78.872299658388, 42.852561096379],
[-78.869896117, 42.85316813362],
[-78.869413604908, 42.853364499665],
[-78.86923626682, 42.853625870875],
[-78.869527443029, 42.854090919336],
[-78.872752507273, 42.853116920733],
[-78.8747551557, 42.855987790187],
[-78.875620587387, 42.857508276749],
[-78.875835547009, 42.858207935024],
[-78.876115317471, 42.858710724867],
[-78.876063643211, 42.859011599317],
[-78.875197571559, 42.859341018387],
[-78.873994573539, 42.859704900273],
[-78.873465371999, 42.859994522933],
[-78.873790188293, 42.860163306559],
[-78.873847481232, 42.860251822706],
[-78.873726590067, 42.860321583656],
[-78.873825998431, 42.860542386587],
[-78.874027446139, 42.860550278919],
[-78.874341251583, 42.860855939532],
[-78.87454945321, 42.861209714045],
[-78.87472339557, 42.861118723131],
[-78.874905300115, 42.86081658249],
[-78.87493725899, 42.860594439557],
[-78.874866909481, 42.860407005219],
[-78.875282627378, 42.860176317084],
[-78.875998397842, 42.859905244585],
[-78.87639496812, 42.859866159637],
[-78.876669097335, 42.859962864859],
[-78.87682262521, 42.860091091278],
[-78.87766383098, 42.861495176391],
[-78.877689378899, 42.861671233673],
[-78.877931850605, 42.862168111037],
[-78.878328640046, 42.862760112434],
[-78.879302895935, 42.863891510121],
[-78.879617213036, 42.864197155654],
[-78.880442303415, 42.865326871333],
[-78.881361598102, 42.86626014682],
[-78.882007749126, 42.866723552826],
[-78.882568024011, 42.867361415524],
[-78.882657581186, 42.867368041143],
[-78.882728322447, 42.867533518335],
[-78.879271279384, 42.868692708568],
[-78.880007931603, 42.869552040206],
[-78.883671173651, 42.868406691679],
[-78.884018535675, 42.868882874038],
[-78.880440305206, 42.870063339647],
[-78.880877390499, 42.870583027859],
[-78.881144151456, 42.870493672949],
[-78.881499222557, 42.870635257996],
[-78.88463354695, 42.869740949565],
[-78.884814311297, 42.869995655966],
[-78.884757114393, 42.870219948144],
[-78.884319316015, 42.870423116644],
[-78.884019678393, 42.870463176266],
[-78.883500573801, 42.870632429409],
[-78.883468463636, 42.870741754963],
[-78.883486982307, 42.870906683402],
[-78.883835660339, 42.871651762449],
[-78.885285262012, 42.870950658865],
[-78.885487103748, 42.870936749029],
[-78.887376918968, 42.873193220793],
[-78.887939622083, 42.873732442122],
[-78.889282300581, 42.87536370144],
[-78.889489136047, 42.875508232234],
[-78.889897411398, 42.875648792694],
[-78.890245227001, 42.875821925443],
[-78.890399887312, 42.875977055032],
[-78.888474793102, 42.876916321925],
[-78.888131601554, 42.876924438777],
[-78.888090073594, 42.877204083196],
[-78.889253031746, 42.877274208568],
[-78.889324347935, 42.876983852482],
[-78.89012026166, 42.876672006856],
[-78.890590419618, 42.877534382879],
[-78.890274775723, 42.877675946189],
[-78.883209821481, 42.877227742645],
[-78.882997851584, 42.877963247454],
[-78.882331356132, 42.877921773847],
[-78.880211115543, 42.877105826401],
[-78.878063001936, 42.874560520597],
[-78.87761875992, 42.874860394611],
[-78.87739116423, 42.874708442709],
[-78.877154203891, 42.874522954926],
[-78.877041132833, 42.87443444513],
[-78.876857245569, 42.874325934669],
[-78.875944912694, 42.873900429412],
[-78.875385098763, 42.873649467392],
[-78.875185175764, 42.873594478361],
[-78.873430179962, 42.873300469188],
[-78.872846087765, 42.873197195743],
[-78.871787810494, 42.873015455012],
[-78.871448816872, 42.874004473189],
[-78.871137816323, 42.874971473266],
[-78.870825824146, 42.875961863549],
[-78.87071082312, 42.876297507302],
[-78.870545294002, 42.876812392533],
[-78.87012675213, 42.878120463116],
[-78.869888818093, 42.878833421133],
[-78.869671786943, 42.879524422957],
[-78.869473813735, 42.88014049698],
[-78.869417830536, 42.880384502884],
[-78.869359914553, 42.880805369642],
[-78.86930583926, 42.880991454836],
[-78.869111796394, 42.881578494167],
[-78.868433143468, 42.88146271873],
[-78.867091777471, 42.881237444842],
[-78.865019540796, 42.880869880433],
[-78.864448244017, 42.880770911509],
[-78.862363826169, 42.880413443809],
[-78.859947732805, 42.879992459499],
[-78.857519796337, 42.879571463324],
[-78.85545182864, 42.879207425187],
[-78.855315817569, 42.879156459036],
[-78.855229740518, 42.879091473796],
[-78.855125724151, 42.878972440242],
[-78.85476281152, 42.87904050109],
[-78.854350761419, 42.879021440945],
[-78.852038778565, 42.878603441437],
[-78.848966756956, 42.87806647621],
[-78.847320777303, 42.877777488169],
[-78.845691773401, 42.8774934869],
[-78.844083725836, 42.877215511925],
[-78.843116331165, 42.877037246758],
[-78.842657768253, 42.876975511011],
[-78.842226789762, 42.876921478187],
[-78.842102798081, 42.876882426809],
[-78.841924774804, 42.87679143919],
[-78.841841719263, 42.876729493288],
[-78.841002665701, 42.87733373089],
[-78.839849725047, 42.878175436557],
[-78.839663766236, 42.878315478662],
[-78.839459169308, 42.878540460463],
[-78.839378110432, 42.878664463949],
[-78.839278735077, 42.878869446539],
[-78.839219180086, 42.879127463144],
[-78.839210794147, 42.879295445619],
[-78.838554145879, 42.879180497973],
[-78.838381120842, 42.879140478808],
[-78.838195815273, 42.879081473995],
[-78.837955994736, 42.878972255926],
[-78.837937335159, 42.878963894734],
[-78.837628775762, 42.878837510313],
[-78.836857082768, 42.878545438199],
[-78.836641328813, 42.878462529824],
[-78.836299585313, 42.878331204576],
[-78.835850124332, 42.878158483281],
[-78.835630163339, 42.878074305755],
[-78.835307494646, 42.877950821461],
[-78.834959151205, 42.877817510027],
[-78.834807648389, 42.877759125792],
[-78.834618882013, 42.877686379955],
[-78.834113186071, 42.877491496487],
[-78.833866105881, 42.877396226584],
[-78.833626675032, 42.877303904763],
[-78.833305782053, 42.877180171466],
[-78.833253799018, 42.877159496078],
[-78.833181357383, 42.877132045216],
[-78.832932180398, 42.877035441934],
[-78.832276837288, 42.877243931087],
[-78.832036445867, 42.877320407231],
[-78.831335606235, 42.877543362784],
[-78.831071875995, 42.877628607022],
[-78.830853608096, 42.877700729734],
[-78.830705681201, 42.877749609325],
[-78.830528427037, 42.877808179044],
[-78.830359403095, 42.877864029158],
[-78.830159467438, 42.877930092992],
[-78.829992859565, 42.877985144259],
[-78.829828967624, 42.878039296413],
[-78.829656408374, 42.878096313487],
[-78.829465129698, 42.878159514574],
[-78.829375987434, 42.878189273131],
[-78.829166342393, 42.878259797797],
[-78.828904786073, 42.878346569949],
[-78.828896793901, 42.878349554229],
[-78.828797160425, 42.878396448091],
[-78.828730171342, 42.878447492151],
[-78.828713176909, 42.878465455632],
[-78.82866111356, 42.87852048536],
[-78.828647420148, 42.878538401248],
[-78.828535125202, 42.878687449701],
[-78.828463149522, 42.878779490571],
[-78.828392273893, 42.878878605699],
[-78.828273675419, 42.879044455652],
[-78.826862917423, 42.881026763371],
[-78.825647160089, 42.882729885498],
[-78.824332711012, 42.884573462151],
[-78.824216028266, 42.884763118207],
[-78.824179869476, 42.884822142673],
[-78.824166045045, 42.88484986621],
[-78.824156097125, 42.88487244492],
[-78.821972676423, 42.884852707225],
[-78.81827212607, 42.884823497586],
[-78.815409150119, 42.884809508503],
[-78.814165109288, 42.884796458637],
[-78.813828093724, 42.884779520268],
[-78.809706080826, 42.88474948974],
[-78.808658190875, 42.884738486546],
[-78.807590161312, 42.884728504356],
[-78.80623831238, 42.884712359379],
[-78.805060028174, 42.884693250886],
[-78.803761592573, 42.884695758161],
[-78.803459240209, 42.884693623015],
[-78.802852454229, 42.884675477382],
[-78.802345077456, 42.884657453489],
[-78.802090163935, 42.884669443892],
[-78.801805336337, 42.884712589018],
[-78.801378712226, 42.884829570699],
[-78.800986154907, 42.884946466224],
[-78.800924150017, 42.884981482127],
[-78.800859988997, 42.885093765527],
[-78.800397559596, 42.884912263433],
[-78.799557595179, 42.884586838771],
[-78.799658672965, 42.87769575153],
[-78.799682744158, 42.874732446588],
[-78.799861541167, 42.87169439898],
[-78.799873638741, 42.871243947578],
[-78.799550002126, 42.871238214429],
[-78.799513784204, 42.868612501971],
[-78.799618331287, 42.867302828203],
[-78.799991814303, 42.867168185576],
[-78.800048798627, 42.864450385523],
[-78.800375905971, 42.86446661364],
[-78.800017680602, 42.864447563695],
[-78.800433758119, 42.854496443411],
[-78.80059959599, 42.847550733329],
[-78.800655427137, 42.845468145593],
[-78.799187785247, 42.846399474809],
[-78.796806728002, 42.845495442884],
[-78.798577418133, 42.843028113686],
[-78.798064610303, 42.842863756577],
[-78.797631017255, 42.842753123178],
[-78.797040234805, 42.842350505859],
[-78.79673500803, 42.841753100231],
[-78.796191094222, 42.841212705438],
[-78.79513315147, 42.840894295249],
[-78.796644744742, 42.838362490717],
[-78.800201774647, 42.839310463452],
[-78.80018743004, 42.84106421611],
[-78.800785182129, 42.841265102148],
[-78.800859763205, 42.839613449891],
[-78.800874798252, 42.838957470425],
[-78.800980865813, 42.835535328079],
[-78.800996801186, 42.834491343309],
[-78.801021874839, 42.833566356021],
[-78.801043863894, 42.832812363454],
[-78.801045839599, 42.832011315938],
[-78.805608882207, 42.832031322248],
[-78.807344918725, 42.832039344114],
[-78.808463769024, 42.831909471765],
[-78.808731740047, 42.831904506443],
[-78.809587904234, 42.83203936318],
[-78.812551922112, 42.832045370907],
[-78.813701917468, 42.832046364172],
[-78.817658297095, 42.831995999066],
[-78.819559584959, 42.831994808413],
[-78.820760107871, 42.83199512421],
[-78.823901837479, 42.832074301968],
[-78.823944015052, 42.831228744068],
[-78.823960416862, 42.830495646696],
[-78.824000784952, 42.826846471702],
[-78.830267729054, 42.826903061057],
[-78.830275875014, 42.826608245422],
[-78.831685191405, 42.826663505442],
[-78.832878002386, 42.826790836309],
[-78.832974780511, 42.826016466326],
[-78.834676768144, 42.826196466018],
[-78.835420448646, 42.829079584448],
[-78.836117518101, 42.830782527924],
[-78.836722005346, 42.832057621575],
[-78.838387137024, 42.832075532899]
]
]
]
}
},
{
"type": "Feature",
"properties": {
"SBE4_ID": 0,
"NAME": "District B",
"FROMLEFT": 0,
"TOLEFT": 0,
"FROMRIGHT": 0,
"TORIGHT": 0,
"DIRECTION": null,
"STREET": null,
"ST_TYPE": null,
"ST_PREFIX": null,
"ST_SUFFIX": null,
"CITY_LEFT": null,
"CITY_RIGHT": null,
"LO_X_PRE": null,
"LO_X_NAME": null,
"LO_X_TYPE": null,
"LO_X_SUF": null,
"HI_X_PRE": null,
"HI_X_NAME": null,
"HI_X_TYPE": null,
"HI_X_SUF": null,
"LHS": null,
"RHS": null,
"BDY_LEFT": null,
"BDY_RIGHT": null,
"ST_CODE": null,
"RECNUM_L": 0,
"RECNUM_R": 0
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[-78.901972526359, 42.896664791974],
[-78.901131285979, 42.897090715518],
[-78.901901480504, 42.897816043979],
[-78.902051317574, 42.89846729643],
[-78.90180347734, 42.898624728884],
[-78.901972082312, 42.898933974204],
[-78.90214314227, 42.899085783721],
[-78.902176699783, 42.899442050512],
[-78.902075796211, 42.899777770596],
[-78.902024570735, 42.900429924554],
[-78.902112118018, 42.901394838057],
[-78.90217607653, 42.901765424465],
[-78.902164350397, 42.902206190291],
[-78.901859912385, 42.901975523729],
[-78.901649339653, 42.902124964339],
[-78.901934469898, 42.90277378319],
[-78.901965948413, 42.903359854635],
[-78.901684108287, 42.906359451826],
[-78.901741038433, 42.914685100855],
[-78.901761963356, 42.914852075348],
[-78.901723381735, 42.915191026387],
[-78.901396143886, 42.915195512593],
[-78.900275140433, 42.915212520079],
[-78.899449182894, 42.915203515962],
[-78.898437191618, 42.915150518532],
[-78.897505146599, 42.915106492108],
[-78.895997195989, 42.915137461392],
[-78.894609186831, 42.915176479281],
[-78.893237157634, 42.915212504174],
[-78.890409117604, 42.915285473509],
[-78.888319139194, 42.915333448142],
[-78.886905133314, 42.915362452163],
[-78.886093194365, 42.915385466685],
[-78.885650210873, 42.915402507303],
[-78.884527132578, 42.915431495596],
[-78.88340815357, 42.915459433177],
[-78.882638222415, 42.915476494069],
[-78.882043147094, 42.915490492941],
[-78.880343168068, 42.915487439724],
[-78.87866314958, 42.915476481478],
[-78.877051108331, 42.91546148206],
[-78.873702206024, 42.91543348271],
[-78.87312418866, 42.915426508701],
[-78.86917914143, 42.915395435666],
[-78.866845212851, 42.915370510536],
[-78.865498140432, 42.915359438774],
[-78.864418188919, 42.9153534561],
[-78.864525138119, 42.915222437713],
[-78.864641125078, 42.914975505665],
[-78.864998170713, 42.913943492875],
[-78.865492168965, 42.912512484175],
[-78.865916195666, 42.911257431396],
[-78.862418134656, 42.911216496868],
[-78.859583174394, 42.91118043877],
[-78.856792143888, 42.911149490723],
[-78.855878177135, 42.911142508722],
[-78.854980187887, 42.911132459479],
[-78.853977165316, 42.911121442554],
[-78.853979150585, 42.910609513246],
[-78.853980210474, 42.910149476487],
[-78.853980193261, 42.909393434088],
[-78.85397920856, 42.908376496011],
[-78.85397918113, 42.908248463328],
[-78.853978093094, 42.907461483577],
[-78.853977155811, 42.906594455863],
[-78.853973132821, 42.905652440732],
[-78.853980179787, 42.903839480881],
[-78.853975108355, 42.902087433682],
[-78.853968188792, 42.900207505922],
[-78.853969206471, 42.899277475061],
[-78.853967177985, 42.898410483794],
[-78.853966120844, 42.897806458064],
[-78.853967150184, 42.897473464897],
[-78.853969201828, 42.897068497544],
[-78.853971149172, 42.896787515124],
[-78.853972158684, 42.896601463196],
[-78.853971183342, 42.896175439568],
[-78.853966202336, 42.89518645595],
[-78.853966208391, 42.894057475969],
[-78.853972198621, 42.893022473738],
[-78.85397215288, 42.891845505339],
[-78.853971132288, 42.891051498739],
[-78.853968122656, 42.889799449431],
[-78.853956166327, 42.887828481058],
[-78.853939204278, 42.885160430164],
[-78.853940148705, 42.884910454099],
[-78.853931180171, 42.883356438652],
[-78.853921126573, 42.881863504588],
[-78.85391517305, 42.880646487913],
[-78.853917199651, 42.880433480369],
[-78.85395309966, 42.880186467835],
[-78.854097173902, 42.879779502556],
[-78.854349132219, 42.879021444802],
[-78.854761182319, 42.879040504953],
[-78.855124094953, 42.87897244411],
[-78.855228111317, 42.879091477665],
[-78.855314188366, 42.879156462907],
[-78.855450199435, 42.879207429059],
[-78.857518167123, 42.879571467226],
[-78.859946103581, 42.879992463436],
[-78.862362196934, 42.880413447779],
[-78.864776169935, 42.880827428478],
[-78.867090148214, 42.88123744888],
[-78.867869146059, 42.881367470237],
[-78.869110167129, 42.881578498234],
[-78.869306971178, 42.880980507995],
[-78.869358156578, 42.880777504922],
[-78.869416201303, 42.880384506955],
[-78.869472184508, 42.880140501052],
[-78.869670157732, 42.879524427031],
[-78.869887188901, 42.878833425211],
[-78.870125122957, 42.878120467197],
[-78.870709193994, 42.876297511392],
[-78.870828055069, 42.875949644608],
[-78.871136187233, 42.874971477361],
[-78.871447187807, 42.874004477288],
[-78.871786181455, 42.873015459116],
[-78.872859153995, 42.873199435768],
[-78.873430179962, 42.873300469188],
[-78.87433320954, 42.873456426196],
[-78.875202337648, 42.873599089672],
[-78.875385098763, 42.873649467392],
[-78.875932102761, 42.873894462155],
[-78.876864163166, 42.874330017455],
[-78.877041132833, 42.87443444513],
[-78.87739116423, 42.874708442709],
[-78.877619139329, 42.874860647499],
[-78.878061372857, 42.874560524791],
[-78.879770080505, 42.877061100066],
[-78.882680279729, 42.878315716355],
[-78.882997212601, 42.877921249193],
[-78.886814769885, 42.878216862708],
[-78.887867800179, 42.878898848589],
[-78.889798025628, 42.882939893077],
[-78.890708526612, 42.884369413024],
[-78.891104054881, 42.884372810143],
[-78.890685159749, 42.884923740959],
[-78.889802419597, 42.88458140583],
[-78.889471765898, 42.883266601576],
[-78.888610297719, 42.881557064138],
[-78.88824538767, 42.881043559082],
[-78.887663969126, 42.880505933608],
[-78.886511276071, 42.879782549478],
[-78.885729843477, 42.879633359679],
[-78.885657321922, 42.879489840449],
[-78.885388378167, 42.879520733898],
[-78.885477960894, 42.879662392524],
[-78.884884142055, 42.879826133333],
[-78.884170668597, 42.880092266347],
[-78.884256673635, 42.880323553441],
[-78.884644660529, 42.880316017189],
[-78.884933892197, 42.880428097712],
[-78.885118113062, 42.880715719701],
[-78.884005037353, 42.881134346101],
[-78.884158589952, 42.881349680304],
[-78.884586077568, 42.881215821074],
[-78.88501817708, 42.881263387159],
[-78.88525340928, 42.881490509102],
[-78.885584242775, 42.882289477102],
[-78.885469099097, 42.882491799144],
[-78.884837983978, 42.882760990243],
[-78.884998928433, 42.882960183498],
[-78.885659586755, 42.882723840062],
[-78.886141065218, 42.882947564825],
[-78.88669287759, 42.882485477102],
[-78.886894368763, 42.882487342132],
[-78.887115733149, 42.882642813119],
[-78.887091247827, 42.88278521772],
[-78.88636775636, 42.88339007899],
[-78.886993593113, 42.883794881242],
[-78.887832902146, 42.883088161157],
[-78.88812424972, 42.883057546222],
[-78.888365581003, 42.883383424195],
[-78.887556177876, 42.884101388084],
[-78.887725617189, 42.884223725383],
[-78.888106219229, 42.884226829558],
[-78.888964173836, 42.884991450117],
[-78.890278388386, 42.886133851602],
[-78.889977696089, 42.886257789772],
[-78.889530742239, 42.886704179221],
[-78.889994119397, 42.887125153082],
[-78.890288373206, 42.886924749274],
[-78.890561702554, 42.887113684824],
[-78.890222349219, 42.887343366622],
[-78.890669283318, 42.887738657929],
[-78.892308991613, 42.887966788027],
[-78.895823663417, 42.89085203781],
[-78.900659035914, 42.89424079869],
[-78.901972526359, 42.896664791974]
]
]
]
}
},
{
"type": "Feature",
"properties": {
"SBE4_ID": 0,
"NAME": "District C",
"FROMLEFT": 0,
"TOLEFT": 0,
"FROMRIGHT": 0,
"TORIGHT": 0,
"DIRECTION": null,
"STREET": null,
"ST_TYPE": null,
"ST_PREFIX": null,
"ST_SUFFIX": null,
"CITY_LEFT": null,
"CITY_RIGHT": null,
"LO_X_PRE": null,
"LO_X_NAME": null,
"LO_X_TYPE": null,
"LO_X_SUF": null,
"HI_X_PRE": null,
"HI_X_NAME": null,
"HI_X_TYPE": null,
"HI_X_SUF": null,
"LHS": null,
"RHS": null,
"BDY_LEFT": null,
"BDY_RIGHT": null,
"ST_CODE": null,
"RECNUM_L": 0,
"RECNUM_R": 0
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[-78.837627146565, 42.878837513932],
[-78.837941152036, 42.878965450835],
[-78.83819418607, 42.879081477622],
[-78.838381120842, 42.879140478808],
[-78.838554145879, 42.879180497973],
[-78.839209164938, 42.879295449261],
[-78.839218575646, 42.879137593812],
[-78.839277105879, 42.878869450181],
[-78.839378110432, 42.878664463949],
[-78.839459169308, 42.878540460463],
[-78.839662137053, 42.878315482309],
[-78.839848095867, 42.878175440207],
[-78.840993608285, 42.8773402851],
[-78.841840090122, 42.876729496966],
[-78.841923145662, 42.87679144287],
[-78.842101168936, 42.876882430491],
[-78.842225160616, 42.876921481871],
[-78.842656139105, 42.876975514701],
[-78.843111662888, 42.877036691109],
[-78.844082096683, 42.877215515636],
[-78.845690144241, 42.877493490634],
[-78.847319148136, 42.877777491925],
[-78.848965127781, 42.87806647999],
[-78.852037149376, 42.87860344526],
[-78.854349132219, 42.879021444802],
[-78.854097173902, 42.879779502556],
[-78.85395309966, 42.880186467835],
[-78.853917199651, 42.880433480369],
[-78.85391517305, 42.880646487913],
[-78.853921126573, 42.881863504588],
[-78.853931180171, 42.883356438652],
[-78.853940148705, 42.884910454099],
[-78.853939204278, 42.885160430164],
[-78.853956166327, 42.887828481058],
[-78.853968122656, 42.889799449431],
[-78.853971132288, 42.891051498739],
[-78.85397215288, 42.891845505339],
[-78.853972198621, 42.893022473738],
[-78.853966208391, 42.894057475969],
[-78.853966202336, 42.89518645595],
[-78.853971183342, 42.896175439568],
[-78.853972158684, 42.896601463196],
[-78.853971149172, 42.896787515124],
[-78.853969201828, 42.897068497544],
[-78.853967150184, 42.897473464897],
[-78.853966120844, 42.897806458064],
[-78.853967177985, 42.898410483794],
[-78.853969206471, 42.899277475061],
[-78.853968188792, 42.900207505922],
[-78.853975108355, 42.902087433682],
[-78.853980179787, 42.903839480881],
[-78.853973132821, 42.905652440732],
[-78.853977155811, 42.906594455863],
[-78.853978093094, 42.907461483577],
[-78.85397918113, 42.908248463328],
[-78.85397920856, 42.908376496011],
[-78.853980193261, 42.909393434088],
[-78.853980210474, 42.910149476487],
[-78.853979150585, 42.910609513246],
[-78.853977165316, 42.911121442554],
[-78.853987122642, 42.912368483556],
[-78.853988172484, 42.913859465756],
[-78.853992156952, 42.914971472285],
[-78.852966188081, 42.914764488218],
[-78.852250183368, 42.91476043888],
[-78.849110125435, 42.914733502384],
[-78.848090136427, 42.914720483815],
[-78.843685159314, 42.914679519717],
[-78.843342161486, 42.914677457262],
[-78.843166191292, 42.914674459369],
[-78.839122091098, 42.914631449493],
[-78.837799115506, 42.914621491407],
[-78.833584124126, 42.914560522626],
[-78.83241714585, 42.914551482751],
[-78.829080108021, 42.914508449086],
[-78.82778316113, 42.914493450993],
[-78.826393117626, 42.914478493668],
[-78.825356171551, 42.914468451203],
[-78.824276112269, 42.914458490092],
[-78.823740195037, 42.914472456575],
[-78.823277168694, 42.914490464615],
[-78.822629115746, 42.914515469791],
[-78.822311180689, 42.914526461225],
[-78.821529178881, 42.914558458943],
[-78.821345196089, 42.914566500659],
[-78.820356116124, 42.914607483581],
[-78.819314115066, 42.914646445242],
[-78.817729142904, 42.914678502086],
[-78.816730112007, 42.914679448553],
[-78.815731086379, 42.914682458593],
[-78.814716140315, 42.914687520285],
[-78.813700087894, 42.914692521193],
[-78.813707198107, 42.912643478437],
[-78.812617097883, 42.91308546054],
[-78.811637082758, 42.913481443845],
[-78.810618108314, 42.913887451606],
[-78.810341136948, 42.914000497843],
[-78.809615106017, 42.914292468073],
[-78.80860315004, 42.914695522769],
[-78.808269090061, 42.914830453481],
[-78.807956101564, 42.914955498887],
[-78.807134086614, 42.915284504665],
[-78.805885154395, 42.915784474674],
[-78.80493916803, 42.916163511049],
[-78.804045097379, 42.916520464285],
[-78.803607093946, 42.916696476807],
[-78.802657160052, 42.917077516556],
[-78.802209161878, 42.917258448151],
[-78.801650193031, 42.91748349509],
[-78.80118510589, 42.917669492872],
[-78.800600098457, 42.917901523096],
[-78.800154111152, 42.918079499098],
[-78.799569096761, 42.918313505431],
[-78.799149128548, 42.918466481525],
[-78.799196151343, 42.913645471282],
[-78.799213134381, 42.90978751131],
[-78.799258103384, 42.906826475647],
[-78.799257005786, 42.898766388993],
[-78.799358070138, 42.895665586843],
[-78.799556506993, 42.884586515846],
[-78.799655074067, 42.884620784786],
[-78.800125495494, 42.88480826124],
[-78.800379504688, 42.884905392052],
[-78.800850164321, 42.885084514598],
[-78.800924150017, 42.884981482127],
[-78.800986154907, 42.884946466224],
[-78.801239465634, 42.884871035415],
[-78.801458078796, 42.8848059363],
[-78.801828101572, 42.884706520382],
[-78.802090163935, 42.884669443892],
[-78.802345077456, 42.884657453489],
[-78.802517172291, 42.884667224652],
[-78.802635863632, 42.884670633362],
[-78.80345302304, 42.884688907898],
[-78.803742210194, 42.884695374172],
[-78.804413217235, 42.884696599236],
[-78.805025473652, 42.884700099181],
[-78.806229149147, 42.884712264691],
[-78.807210647871, 42.884723921386],
[-78.807590161312, 42.884728504356],
[-78.808542656108, 42.884737406747],
[-78.808917163699, 42.88474120657],
[-78.809543184329, 42.884747779908],
[-78.813828093724, 42.884779520268],
[-78.814165109288, 42.884796458637],
[-78.815273559487, 42.884808087253],
[-78.816039135624, 42.884812407684],
[-78.816695361641, 42.884812486232],
[-78.821801614099, 42.88485226516],
[-78.823022887659, 42.88485541327],
[-78.824051656978, 42.884870857811],
[-78.824156097125, 42.88487244492],
[-78.824174133934, 42.884831504453],
[-78.824323540796, 42.884587614954],
[-78.824537797268, 42.884285827639],
[-78.825653134088, 42.88272150528],
[-78.826878138413, 42.88100544161],
[-78.827621978143, 42.879959355425],
[-78.82811652105, 42.879264219496],
[-78.828273183618, 42.879045142675],
[-78.828387707742, 42.878884990858],
[-78.828456314319, 42.878789049378],
[-78.82866111356, 42.87852048536],
[-78.828730171342, 42.878447492151],
[-78.828797160425, 42.878396448091],
[-78.828892041248, 42.878351790676],
[-78.828899107918, 42.878348465396],
[-78.828926891146, 42.87833919021],
[-78.829225056716, 42.878239657034],
[-78.829465129698, 42.878159514574],
[-78.831145325769, 42.877604336466],
[-78.832055810841, 42.877314246341],
[-78.832932180398, 42.877035441934],
[-78.833252169864, 42.877159499634],
[-78.834113186071, 42.877491496487],
[-78.834959151205, 42.877817510027],
[-78.835850124332, 42.878158483281],
[-78.836857082768, 42.878545438199],
[-78.837627146565, 42.878837513932]
]
]
]
}
},
{
"type": "Feature",
"properties": {
"SBE4_ID": 0,
"NAME": "District D",
"FROMLEFT": 0,
"TOLEFT": 0,
"FROMRIGHT": 0,
"TORIGHT": 0,
"DIRECTION": null,
"STREET": null,
"ST_TYPE": null,
"ST_PREFIX": null,
"ST_SUFFIX": null,
"CITY_LEFT": null,
"CITY_RIGHT": null,
"LO_X_PRE": null,
"LO_X_NAME": null,
"LO_X_TYPE": null,
"LO_X_SUF": null,
"HI_X_PRE": null,
"HI_X_NAME": null,
"HI_X_TYPE": null,
"HI_X_SUF": null,
"LHS": null,
"RHS": null,
"BDY_LEFT": null,
"BDY_RIGHT": null,
"ST_CODE": null,
"RECNUM_L": 0,
"RECNUM_R": 0
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[-78.901723381735, 42.915191026387],
[-78.901687385561, 42.915593812733],
[-78.901490660546, 42.916630170586],
[-78.901218980764, 42.917611171965],
[-78.901120407637, 42.917771619495],
[-78.900989271025, 42.918133830255],
[-78.900873342915, 42.918550191728],
[-78.899665951793, 42.921990569544],
[-78.899526811453, 42.922433744354],
[-78.89930192452, 42.923267129412],
[-78.899135977952, 42.924128474984],
[-78.899114973195, 42.924767510886],
[-78.899139946071, 42.926001494167],
[-78.899057207581, 42.926067574984],
[-78.898987522131, 42.926314029322],
[-78.898983453742, 42.927374441665],
[-78.899023691312, 42.927912915357],
[-78.899141189881, 42.928907460014],
[-78.899362138609, 42.929629491006],
[-78.899454109303, 42.929828485337],
[-78.899655215955, 42.930137473353],
[-78.899820176282, 42.930411499352],
[-78.90110306187, 42.931467323124],
[-78.901238059994, 42.931487869305],
[-78.901320828066, 42.931426588637],
[-78.901358246309, 42.931350685681],
[-78.901085084084, 42.931057508687],
[-78.9012283493, 42.930961075081],
[-78.901363984173, 42.931056774709],
[-78.901360113442, 42.931059497811],
[-78.901367795835, 42.931059476468],
[-78.903447097025, 42.932541530167],
[-78.902950845493, 42.932887956547],
[-78.904003659877, 42.933654666147],
[-78.903890456438, 42.933787716258],
[-78.904096327445, 42.934151731026],
[-78.904623027769, 42.934543997043],
[-78.905200305327, 42.934428506332],
[-78.905243397656, 42.934546370885],
[-78.904524109007, 42.934731200583],
[-78.904567038319, 42.934907715719],
[-78.905443950214, 42.934693974857],
[-78.906024046859, 42.935028807078],
[-78.906675492591, 42.935617242179],
[-78.907821106424, 42.936970837733],
[-78.907160693455, 42.937170265233],
[-78.907226735776, 42.937302127202],
[-78.907967763591, 42.937252696674],
[-78.908741491621, 42.938360732925],
[-78.908917225436, 42.938755691811],
[-78.908913775937, 42.939075361262],
[-78.909128714377, 42.939290828963],
[-78.909726633994, 42.940778696666],
[-78.909764663649, 42.942233517697],
[-78.909309331826, 42.942202917964],
[-78.909187238303, 42.9432181489],
[-78.908390607633, 42.943626847434],
[-78.90856161627, 42.943742289351],
[-78.908881941819, 42.943842902152],
[-78.909174078662, 42.943821148215],
[-78.909443146723, 42.943763105048],
[-78.909690206056, 42.943780921039],
[-78.909719692232, 42.944000057757],
[-78.909680357066, 42.944744384989],
[-78.909568164734, 42.944805412442],
[-78.908927140153, 42.94485445098],
[-78.908833662533, 42.944958415949],
[-78.90964067119, 42.945009280448],
[-78.909619002209, 42.945679872051],
[-78.909304611518, 42.945732556989],
[-78.909116246049, 42.945868571649],
[-78.909674189646, 42.952042942709],
[-78.91001822618, 42.952962468367],
[-78.910403608155, 42.953606637741],
[-78.910840726781, 42.954472829906],
[-78.911880229378, 42.955785502662],
[-78.912520368877, 42.956326969779],
[-78.912028153582, 42.956654513594],
[-78.9086771657, 42.959127489609],
[-78.907819221045, 42.959758451934],
[-78.906997195317, 42.960366480472],
[-78.906862133062, 42.960467526526],
[-78.906080226069, 42.961043474844],
[-78.905309167052, 42.96162444914],
[-78.904505196904, 42.962212485364],
[-78.903730213482, 42.962807448294],
[-78.902960187653, 42.963372525809],
[-78.902177225, 42.963944521638],
[-78.901342176514, 42.964565469756],
[-78.899579176419, 42.965841489038],
[-78.898762156103, 42.966459462464],
[-78.896760164452, 42.96498847469],
[-78.894771438071, 42.963503486441],
[-78.89386067062, 42.962765963766],
[-78.893263566236, 42.962166597176],
[-78.892476222457, 42.961277469393],
[-78.89064615624, 42.958574487032],
[-78.889302116751, 42.958593490096],
[-78.880368114697, 42.958631459274],
[-78.879357172331, 42.958635524756],
[-78.878535180779, 42.958634520208],
[-78.875161089555, 42.958666522495],
[-78.874260812744, 42.958666015385],
[-78.873596192569, 42.958674524425],
[-78.87264917636, 42.958683476342],
[-78.871702218265, 42.958689447781],
[-78.870748150919, 42.958693491083],
[-78.869498108862, 42.958702504931],
[-78.865813204393, 42.958696465738],
[-78.861570095656, 42.958679456541],
[-78.858661220535, 42.958674516449],
[-78.85429612666, 42.958643526376],
[-78.853140202693, 42.958634510824],
[-78.852034163042, 42.958619480932],
[-78.850906181488, 42.958604459237],
[-78.849779121791, 42.958586513898],
[-78.848615101802, 42.958571512096],
[-78.847455183957, 42.958551499122],
[-78.846108200331, 42.95852948601],
[-78.844987152337, 42.958515522535],
[-78.844690121316, 42.958509487334],
[-78.844621186439, 42.958528463622],
[-78.843802137029, 42.958527469401],
[-78.842606180657, 42.958507447879],
[-78.840647131492, 42.958479474298],
[-78.839364141566, 42.958459462377],
[-78.838272144297, 42.958441486445],
[-78.836799724858, 42.958410889437],
[-78.830232492216, 42.947306867017],
[-78.831683101431, 42.945980476133],
[-78.832706121672, 42.945059490835],
[-78.833775088713, 42.944089506049],
[-78.834016207309, 42.943869471119],
[-78.834803178437, 42.943150505268],
[-78.835542131501, 42.942481495364],
[-78.836197184366, 42.941882464057],
[-78.837979114889, 42.940269504028],
[-78.839077109997, 42.939258518471],
[-78.8403230891, 42.938111456668],
[-78.841576128265, 42.936956490987],
[-78.842122161145, 42.936448516285],
[-78.842812094657, 42.935809469262],
[-78.843914102001, 42.934800463768],
[-78.844799205777, 42.933988451962],
[-78.845831119275, 42.933035447943],
[-78.846412207935, 42.932487467323],
[-78.846660151059, 42.932252500101],
[-78.847485178107, 42.931472471195],
[-78.848157122391, 42.930837509126],
[-78.849554204143, 42.929511488259],
[-78.850970206168, 42.928173468061],
[-78.851082136744, 42.928068495909],
[-78.851190145437, 42.927965455682],
[-78.851517180581, 42.927657494013],
[-78.8522911181, 42.926926512317],
[-78.852905136476, 42.92634650546],
[-78.853999129939, 42.925312463508],
[-78.85691813618, 42.922551517474],
[-78.857284147637, 42.922205489164],
[-78.858858107823, 42.920720502993],
[-78.859166094303, 42.920426487712],
[-78.859454197798, 42.920153491907],
[-78.86010510545, 42.919542489266],
[-78.861299190918, 42.918406496238],
[-78.862280213917, 42.917470460301],
[-78.864418188919, 42.9153534561],
[-78.865498140432, 42.915359438774],
[-78.866845212851, 42.915370510536],
[-78.86917914143, 42.915395435666],
[-78.87312418866, 42.915426508701],
[-78.873702206024, 42.91543348271],
[-78.877051108331, 42.91546148206],
[-78.87866314958, 42.915476481478],
[-78.880343168068, 42.915487439724],
[-78.882110213356, 42.915489476223],
[-78.882638222415, 42.915476494069],
[-78.88340815357, 42.915459433177],
[-78.884527132578, 42.915431495596],
[-78.885650210873, 42.915402507303],
[-78.886093194365, 42.915385466685],
[-78.886905133314, 42.915362452163],
[-78.888319139194, 42.915333448142],
[-78.890409117604, 42.915285473509],
[-78.893237157634, 42.915212504174],
[-78.894609186831, 42.915176479281],
[-78.895997195989, 42.915137461392],
[-78.897505146599, 42.915106492108],
[-78.898437191618, 42.915150518532],
[-78.899449182894, 42.915203515962],
[-78.900275140433, 42.915212520079],
[-78.901396143886, 42.915195512593],
[-78.901723381735, 42.915191026387]
]
],
[
[
[-78.901965073594, 42.93063387993],
[-78.901474134696, 42.930150283199],
[-78.901303801773, 42.929931231743],
[-78.90068056942, 42.924270657064],
[-78.901034845561, 42.923098730657],
[-78.900892404011, 42.922625122312],
[-78.901610785294, 42.920566600395],
[-78.901554286473, 42.920379488059],
[-78.902114432624, 42.919862425843],
[-78.902739012309, 42.91808848975],
[-78.902679664029, 42.916083916329],
[-78.902553167474, 42.91607741037],
[-78.902576262214, 42.915197400406],
[-78.901723381735, 42.915191026387],
[-78.902572179079, 42.915185584733],
[-78.902648073383, 42.912767353788],
[-78.902917211183, 42.912747738711],
[-78.903375576282, 42.915030042599],
[-78.903196026883, 42.915050437419],
[-78.90349282256, 42.916134808343],
[-78.903675633153, 42.91638330249],
[-78.903709818183, 42.916586596549],
[-78.903761854759, 42.916856993241],
[-78.903764806827, 42.917104781505],
[-78.904540597173, 42.920387611096],
[-78.904626688902, 42.921641302955],
[-78.904739642305, 42.92241977672],
[-78.904811960876, 42.922979953887],
[-78.906024963866, 42.926889483299],
[-78.906104159653, 42.927576597235],
[-78.906880221557, 42.929874366986],
[-78.907592369616, 42.931898775871],
[-78.908152833027, 42.932853079231],
[-78.908462544182, 42.933874974486],
[-78.908066549152, 42.933754339964],
[-78.907897227977, 42.933954778537],
[-78.907813956047, 42.934008862743],
[-78.907573285504, 42.934133360195],
[-78.907429352515, 42.934280220996],
[-78.907397663007, 42.934379090356],
[-78.907423757586, 42.934637282639],
[-78.907363899381, 42.934705363373],
[-78.907163430271, 42.934574567737],
[-78.906984091612, 42.934556895984],
[-78.906130070387, 42.933909958242],
[-78.905602799015, 42.933557227353],
[-78.905433396888, 42.933385526357],
[-78.905152081911, 42.933235061667],
[-78.904997000826, 42.933124029339],
[-78.904858212437, 42.932914170467],
[-78.904589396021, 42.932922814655],
[-78.904406474211, 42.932663346702],
[-78.902611918264, 42.931342051255],
[-78.90227385317, 42.930954738057],
[-78.901965073594, 42.93063387993]
]
],
[
[
[-78.901965073594, 42.93063387993],
[-78.901368160905, 42.931059475454],
[-78.901367795835, 42.931059476468],
[-78.901366143259, 42.931058298176],
[-78.901363984173, 42.931056774709],
[-78.901965073594, 42.93063387993]
]
]
]
}
},
{
"type": "Feature",
"properties": {
"SBE4_ID": 1,
"NAME": "District E",
"FROMLEFT": 0,
"TOLEFT": 0,
"FROMRIGHT": 0,
"TORIGHT": 0,
"DIRECTION": null,
"STREET": null,
"ST_TYPE": null,
"ST_PREFIX": null,
"ST_SUFFIX": null,
"CITY_LEFT": null,
"CITY_RIGHT": null,
"LO_X_PRE": null,
"LO_X_NAME": null,
"LO_X_TYPE": null,
"LO_X_SUF": null,
"HI_X_PRE": null,
"HI_X_NAME": null,
"HI_X_TYPE": null,
"HI_X_SUF": null,
"LHS": null,
"RHS": null,
"BDY_LEFT": null,
"BDY_RIGHT": null,
"ST_CODE": null,
"RECNUM_L": 0,
"RECNUM_R": 0
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[-78.831683101431, 42.945980476133],
[-78.830232492216, 42.947306867017],
[-78.836799724858, 42.958410889437],
[-78.832187196972, 42.958323512612],
[-78.826474186473, 42.958205457522],
[-78.823834183139, 42.958159472371],
[-78.822365095132, 42.958097505663],
[-78.820899098817, 42.958073501701],
[-78.82019508909, 42.958059487793],
[-78.818927183386, 42.958031448563],
[-78.818928139522, 42.957409530145],
[-78.818755131976, 42.957541451994],
[-78.816006104091, 42.958599453162],
[-78.814583111027, 42.959195458928],
[-78.81450708947, 42.959270475845],
[-78.811130096357, 42.960605471484],
[-78.809014900499, 42.96139808943],
[-78.8089506892, 42.958981828067],
[-78.807864349011, 42.958987137337],
[-78.807837651702, 42.956472026802],
[-78.8039730845, 42.956445585938],
[-78.803990043626, 42.954657594849],
[-78.808938380745, 42.954717918216],
[-78.808967801799, 42.95229058319],
[-78.81061487559, 42.952283281903],
[-78.810984396665, 42.951701194087],
[-78.811032169739, 42.949688478569],
[-78.811195670948, 42.949434969295],
[-78.803443192797, 42.949418497959],
[-78.799033430792, 42.949343016788],
[-78.799044090006, 42.947037443189],
[-78.799051155406, 42.945060527182],
[-78.799052093029, 42.943903515106],
[-78.799028108521, 42.938056468751],
[-78.799026186745, 42.937346496482],
[-78.799013094112, 42.936574499666],
[-78.799020170757, 42.935835507134],
[-78.799014196533, 42.935097487922],
[-78.799020187473, 42.934418495685],
[-78.799025194953, 42.933506519599],
[-78.799022134242, 42.933098481156],
[-78.799020087649, 42.9327925117],
[-78.799014137486, 42.93020746101],
[-78.798996103903, 42.929914447718],
[-78.799154182032, 42.922793523288],
[-78.799149092004, 42.919015442412],
[-78.799149128548, 42.918466481525],
[-78.799569096761, 42.918313505431],
[-78.800154111152, 42.918079499098],
[-78.800600098457, 42.917901523096],
[-78.80118510589, 42.917669492872],
[-78.801650193031, 42.91748349509],
[-78.802209161878, 42.917258448151],
[-78.802657160052, 42.917077516556],
[-78.803607093946, 42.916696476807],
[-78.804045097379, 42.916520464285],
[-78.80493916803, 42.916163511049],
[-78.805885154395, 42.915784474674],
[-78.807134086614, 42.915284504665],
[-78.807956101564, 42.914955498887],
[-78.808269090061, 42.914830453481],
[-78.80860315004, 42.914695522769],
[-78.809615106017, 42.914292468073],
[-78.810341136948, 42.914000497843],
[-78.810618108314, 42.913887451606],
[-78.811637082758, 42.913481443845],
[-78.812617097883, 42.91308546054],
[-78.813707198107, 42.912643478437],
[-78.813700085401, 42.914692509495],
[-78.814716140315, 42.914687520285],
[-78.815731086379, 42.914682458593],
[-78.816730112007, 42.914679448553],
[-78.817729142904, 42.914678502086],
[-78.819314115066, 42.914646445242],
[-78.820432125439, 42.914604493197],
[-78.821345196089, 42.914566500659],
[-78.821529178881, 42.914558458943],
[-78.822311180689, 42.914526461225],
[-78.822629115746, 42.914515469791],
[-78.823277168694, 42.914490464615],
[-78.823740195037, 42.914472456575],
[-78.824408162969, 42.91445848396],
[-78.825356171551, 42.914468451203],
[-78.826393117626, 42.914478493668],
[-78.82778316113, 42.914493450993],
[-78.829080108021, 42.914508449086],
[-78.83241714585, 42.914551482751],
[-78.833584124126, 42.914560522626],
[-78.837799115506, 42.914621491407],
[-78.839122091098, 42.914631449493],
[-78.843166191292, 42.914674459369],
[-78.843420190894, 42.914677444754],
[-78.843685159314, 42.914679519717],
[-78.848090136427, 42.914720483815],
[-78.849110125435, 42.914733502384],
[-78.852250183368, 42.91476043888],
[-78.852966188081, 42.914764488218],
[-78.853992156952, 42.914971472285],
[-78.853988172484, 42.913859465756],
[-78.853987122642, 42.912368483556],
[-78.853977165316, 42.911121442554],
[-78.854980187887, 42.911132459479],
[-78.855878177135, 42.911142508722],
[-78.856792143888, 42.911149490723],
[-78.859583174394, 42.91118043877],
[-78.862418134656, 42.911216496868],
[-78.865916195666, 42.911257431396],
[-78.865492168965, 42.912512484175],
[-78.864998170713, 42.913943492875],
[-78.864641125078, 42.914975505665],
[-78.864525138119, 42.915222437713],
[-78.864418188919, 42.9153534561],
[-78.862280213917, 42.917470460301],
[-78.861299190918, 42.918406496238],
[-78.86010510545, 42.919542489266],
[-78.859454197798, 42.920153491907],
[-78.859166094303, 42.920426487712],
[-78.858858107823, 42.920720502993],
[-78.857284147637, 42.922205489164],
[-78.85691813618, 42.922551517474],
[-78.853999129939, 42.925312463508],
[-78.852905136476, 42.92634650546],
[-78.8522911181, 42.926926512317],
[-78.851517180581, 42.927657494013],
[-78.851190145437, 42.927965455682],
[-78.851082136744, 42.928068495909],
[-78.850970206168, 42.928173468061],
[-78.849554204143, 42.929511488259],
[-78.848157122391, 42.930837509126],
[-78.847485178107, 42.931472471195],
[-78.846660151059, 42.932252500101],
[-78.846412207935, 42.932487467323],
[-78.845831119275, 42.933035447943],
[-78.844799205777, 42.933988451962],
[-78.843914102001, 42.934800463768],
[-78.842870123941, 42.935755476964],
[-78.842122161145, 42.936448516285],
[-78.841576128265, 42.936956490987],
[-78.8403230891, 42.938111456668],
[-78.839308150049, 42.939046464333],
[-78.839077109997, 42.939258518471],
[-78.837979114889, 42.940269504028],
[-78.836197184366, 42.941882464057],
[-78.835542131501, 42.942481495364],
[-78.834803178437, 42.943150505268],
[-78.834016207309, 42.943869471119],
[-78.833775088713, 42.944089506049],
[-78.832706121672, 42.945059490835],
[-78.831683101431, 42.945980476133]
]
]
]
}
}
]
}
{
"type": "FeatureCollection",
"name": "orleanscounty",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{"type":"Feature","properties":{"Municipali":"Town of Yates"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.44185200002066,43.372158],[-78.441476000020643,43.372204],[-78.438029000020492,43.372273],[-78.436086000020424,43.3728440000001],[-78.433642000020313,43.373049],[-78.430665000020184,43.373598],[-78.429982000020161,43.373644000000105],[-78.42596500002,43.373917],[-78.424398000019934,43.374168],[-78.422267000019829,43.374305],[-78.422110000019842,43.374374],[-78.420355000019768,43.374465],[-78.418497000019698,43.374592000000106],[-78.416940000019622,43.374699],[-78.416104000019587,43.374735],[-78.41125700001939,43.374944],[-78.409952000019345,43.375],[-78.409056000019305,43.374965],[-78.402243000019041,43.374697],[-78.400398000018967,43.374844],[-78.398439000018882,43.375],[-78.395012000018752,43.375212],[-78.393876000018707,43.375282],[-78.393321000018688,43.375316],[-78.392817000018667,43.375347],[-78.389133000018546,43.375743],[-78.388523000018509,43.375809],[-78.38545200001839,43.375922],[-78.38460800001836,43.375926],[-78.382509000018274,43.375936],[-78.376960000018059,43.375963],[-78.375000000017991,43.376147],[-78.373607000017941,43.376309],[-78.370474000017822,43.376448],[-78.368750000017755,43.376312],[-78.367996000017726,43.376399],[-78.367685000017715,43.376381],[-78.367340000017705,43.376267],[-78.366556000017695,43.375415],[-78.366114000017674,43.375],[-78.365734000017639,43.374614],[-78.364668000017616,43.374386],[-78.361597000017511,43.37409],[-78.360689000017473,43.37409],[-78.358965000017406,43.373931],[-78.35805600001737,43.373886],[-78.357080000017334,43.373977],[-78.356834000017329,43.374],[-78.353977000017224,43.374061],[-78.353544000017223,43.37407],[-78.352479000017183,43.373887],[-78.351661000017131,43.373925],[-78.350319000017095,43.373986],[-78.349251000017063,43.374035],[-78.347967000017007,43.374094],[-78.346212000016948,43.373958],[-78.343893000016863,43.373935],[-78.341637000016775,43.373433],[-78.340540000016745,43.37325],[-78.338973000016694,43.373251],[-78.338261000016672,43.373142],[-78.337939000016647,43.372999],[-78.337219000016617,43.372908],[-78.333364000016502,43.372794],[-78.330043000016389,43.373023],[-78.327630000016299,43.372772],[-78.326471000016255,43.372795],[-78.325186000016217,43.372978],[-78.321865000016118,43.373001],[-78.319014000015997,43.373367],[-78.317666000015961,43.37339],[-78.312809000015804,43.373984],[-78.311955000015757,43.374002],[-78.310710000015717,43.374029],[-78.30899900001566,43.373866],[-78.308998000015677,43.372898],[-78.31025800001585,43.306047],[-78.328899000016492,43.306071],[-78.466829000021932,43.303512000000104],[-78.465729000021696,43.371402],[-78.462345000021543,43.371517000000104],[-78.459870000021439,43.371974000000108],[-78.457153000021322,43.372292000000101],[-78.456548000021272,43.372363],[-78.455765000021259,43.372546000000106],[-78.454198000021165,43.372729000000106],[-78.450751000021043,43.372707],[-78.449686000020989,43.372364],[-78.448759000020956,43.372250000000101],[-78.447273000020886,43.372067000000101],[-78.445409000020803,43.372098000000101],[-78.44185200002066,43.372158]]]]}},
{"type":"Feature","properties":{"Municipali":"Town of Shelby"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.415487382094412,43.214831830085288],[-78.405983558936768,43.216068686026468],[-78.405954141943582,43.206728069757105],[-78.402940571583258,43.206868183980568],[-78.403022797073334,43.203942746082944],[-78.398483266306769,43.20411498423298],[-78.398499077281159,43.207004680637894],[-78.397713806849453,43.207039305787319],[-78.397642974451657,43.206123829432755],[-78.397103129048247,43.20614090021396],[-78.397198489710021,43.20705641680734],[-78.392499000019072,43.207189143111535],[-78.391456486059582,43.207208465031478],[-78.391417861448943,43.206491078576086],[-78.390894237093491,43.206543434994096],[-78.390870265259352,43.206363912040487],[-78.390158663693398,43.206380660981232],[-78.390106985668083,43.20720619375291],[-78.389138560845836,43.20725594107553],[-78.38932409713253,43.206486938353088],[-78.388557324478612,43.206443538253957],[-78.388070180946926,43.207292476862989],[-78.386080000018808,43.207330999981373],[-78.38267074402296,43.207366307920495],[-78.382674150488739,43.206327026441947],[-78.381890320575096,43.206325648930566],[-78.381886782876535,43.207400767646376],[-78.375176590863475,43.207517883281248],[-78.370182273755518,43.207607446342791],[-78.370190453615777,43.216532116843808],[-78.370246762372034,43.217130105197448],[-78.370477356111479,43.217984653585972],[-78.370596729910602,43.218552876967074],[-78.311017710684908,43.219007926234447],[-78.311075000016103,43.212318143111546],[-78.311278000016245,43.138874143111522],[-78.311258000016252,43.130561143111521],[-78.339473000017236,43.130219143111574],[-78.396097000019395,43.129727143111545],[-78.420264000020396,43.129732143111582],[-78.466736000022422,43.128366143111542],[-78.465394000022329,43.150634143111574],[-78.461997000021967,43.215899999995557],[-78.445762930062145,43.216356388400506],[-78.438346629367231,43.216564882860197],[-78.423067078774949,43.216994436862379],[-78.415463456491764,43.217200352099027],[-78.415487382094412,43.214831830085288]]]]}},
{"type":"Feature","properties":{"Municipali":"Town of Ridgeway"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.297542000015454,43.306104999995632],[-78.299301000015603,43.251997999995588],[-78.299942000015605,43.219068999995613],[-78.311017710684851,43.219007926234447],[-78.370596729910588,43.218552876967195],[-78.370764568804361,43.219351777934122],[-78.370765018564953,43.220011377854014],[-78.370774149234734,43.233402033578585],[-78.380511356043712,43.233420094566974],[-78.380509008698098,43.234127915968692],[-78.384878772864965,43.234135579849202],[-78.384894610604817,43.23339828901409],[-78.397951805456628,43.233350245289181],[-78.398086665250517,43.231551396937988],[-78.402786415885515,43.231492668681064],[-78.405979407682807,43.231450570459494],[-78.405972329144561,43.227853587342757],[-78.405968857164069,43.220927571941203],[-78.405975328854737,43.218694840848947],[-78.407459057977547,43.218640780811796],[-78.407492123903552,43.219097851091163],[-78.408254095056805,43.219073645690486],[-78.408080287465324,43.219361039129332],[-78.408271984329758,43.21936231293936],[-78.409380195006847,43.219374358182705],[-78.409477317725234,43.220143159803499],[-78.411645239075398,43.22020538568588],[-78.412191003127703,43.217291687520664],[-78.415463456491764,43.217200352099134],[-78.423067078774906,43.216994436862457],[-78.438346629367231,43.216564882860304],[-78.445762930062116,43.21635638840057],[-78.461997000021896,43.215899999995635],[-78.466829000021889,43.303511999995571],[-78.328899000016477,43.306070999995491],[-78.310258000015878,43.306046999995445],[-78.297542000015454,43.306104999995632]]]]}},
{"type":"Feature","properties":{"Municipali":"Town of Murray"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.066591000009396,43.286446999986339],[-77.995615000007987,43.286545999986345],[-77.995789000008003,43.278643999986294],[-77.996549000008073,43.234476999986342],[-77.996540000008068,43.218190999986319],[-78.017036475463556,43.217327121785289],[-78.016655063203771,43.229749815146988],[-78.016649366859866,43.230356155388229],[-78.016591601979954,43.231148035669541],[-78.016568659559098,43.231469122055579],[-78.016688555956463,43.231468726780221],[-78.018430159080694,43.231453126967779],[-78.018430903539894,43.231268111245406],[-78.019981739206159,43.231255400540483],[-78.020972653256607,43.23124821740322],[-78.022912151004917,43.231225804457424],[-78.024128595536595,43.231211730365402],[-78.026416321143117,43.231194586373931],[-78.027287547574844,43.231199562476249],[-78.027271625655999,43.2324824086379],[-78.027453720386987,43.232485524255971],[-78.027436487571336,43.235386705216392],[-78.03179222312373,43.235367807168068],[-78.031824294690168,43.231180961053305],[-78.041595548350244,43.231150991528217],[-78.041566505024107,43.227912321278289],[-78.042293623477377,43.228174338206912],[-78.042260081374522,43.227005870747249],[-78.042224704648007,43.225647731427159],[-78.041553996357962,43.225731423798209],[-78.04109696899144,43.225733909194965],[-78.041004017587213,43.217143751741659],[-78.116500000010603,43.217097999986379],[-78.115898000010546,43.254298999986325],[-78.11650000001049,43.299597999986332],[-78.066703000009383,43.300097999986328],[-78.066591000009396,43.286446999986339]]]]}},
{"type":"Feature","properties":{"Municipali":"Village of Medina"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.405980243293911,43.231446888016563],[-78.405979400715168,43.231447029877273],[-78.405979400467785,43.231446904175904],[-78.405980243293911,43.231446888016563]]],[[[-78.405979400715168,43.231447029877273],[-78.40597940768275,43.231450570459536],[-78.405956584204645,43.231450871377405],[-78.405979400715168,43.231447029877273]]],[[[-78.405979400467785,43.231446904175904],[-78.405367129211086,43.23145864308762],[-78.402786415885515,43.23149266868117],[-78.39808666525046,43.231551396938045],[-78.397951805456628,43.233350245289238],[-78.389414524086263,43.233381658069867],[-78.386920631030279,43.233390834306718],[-78.384894610604817,43.233398289014154],[-78.384878772864965,43.234135579849259],[-78.380509008698027,43.234127915968749],[-78.380511356043712,43.23342009456703],[-78.370774149234677,43.233402033578642],[-78.37076501856491,43.220011377854078],[-78.370764568804304,43.219351777934172],[-78.370596729910588,43.218552876967259],[-78.370477356111408,43.217984653586051],[-78.370246762372005,43.217130105197519],[-78.370190453615749,43.216532116843787],[-78.370182273755532,43.207607446342841],[-78.375176590863404,43.207517883281312],[-78.381886782876578,43.207400767646476],[-78.381890320575053,43.206325648930623],[-78.382674150488739,43.206327026442089],[-78.382670744022874,43.207366307920566],[-78.386080000018751,43.207330999981387],[-78.388070180946926,43.207292476863039],[-78.38855732447864,43.206443538254028],[-78.389324097132501,43.206486938353144],[-78.389138560845709,43.207255941075651],[-78.390106985668112,43.20720619375296],[-78.390158663693398,43.206380660981175],[-78.390870265259338,43.206363912040473],[-78.390894237093477,43.206543434994124],[-78.391417861448957,43.206491078576086],[-78.391456486059582,43.207208465031584],[-78.392499000019001,43.207189143111485],[-78.397198489710021,43.207056416807433],[-78.397103129048148,43.206140900214017],[-78.397642974451642,43.206123829432805],[-78.397713806849481,43.207039305787447],[-78.398499077281173,43.20700468063793],[-78.398491302689749,43.205583755663795],[-78.398483266306798,43.204114984232909],[-78.403022797073206,43.203942746082944],[-78.402940571583301,43.20686818398061],[-78.405954141943539,43.206728069757084],[-78.405983558936697,43.216068686026475],[-78.415487382094355,43.214831830085274],[-78.415463456491764,43.217200352099191],[-78.412191003127703,43.217291687520721],[-78.411645239075341,43.220205385685937],[-78.409477317725234,43.220143159803541],[-78.409380195006861,43.219374358182769],[-78.408271984329701,43.21936231293941],[-78.408080287465268,43.219361039129375],[-78.408254095056805,43.219073645690543],[-78.407492123903481,43.21909785109122],[-78.407459057977476,43.218640780811846],[-78.40597532885468,43.218694840849004],[-78.405968857164012,43.220927571941303],[-78.405972329144561,43.227853587342821],[-78.405979400467785,43.231446904175904]]]]}},
{"type":"Feature","properties":{"Municipali":"Village of Lyndonville"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.398655212772368,43.326519419029367],[-78.398677691640913,43.327664222447154],[-78.398688832521117,43.328224588792672],[-78.398689349053214,43.328536712471021],[-78.397632356844227,43.328537078219554],[-78.391730165995298,43.328538932617562],[-78.391734731372907,43.329992002294013],[-78.391739912510957,43.331640196967875],[-78.388862416154126,43.331621186107277],[-78.388614223358303,43.331665674984265],[-78.385729397896199,43.33163964780244],[-78.385730714842524,43.331223004555035],[-78.385735247637612,43.329787707740373],[-78.385739171530659,43.328544787535101],[-78.37877816563153,43.32853102477236],[-78.378789722105097,43.327345013741535],[-78.378803800903739,43.325899910984681],[-78.378809165134953,43.325686676837648],[-78.378838169601522,43.323236685912363],[-78.378859017496907,43.321433061757027],[-78.378852576336172,43.32126614700698],[-78.378873445050928,43.318940406208839],[-78.378880363812527,43.318169110806238],[-78.378910142967655,43.316477788741167],[-78.378912142681457,43.313996865472895],[-78.387051983954109,43.314010462010557],[-78.388675090724405,43.314006066545907],[-78.388932768917485,43.314005670701768],[-78.391028188199243,43.313992754645],[-78.39873725750283,43.314015238603737],[-78.398734864373651,43.316096874353384],[-78.398726841294646,43.318609389175855],[-78.398725212703852,43.320803054238219],[-78.39870215475699,43.325235661635375],[-78.398701004906997,43.325456495294041],[-78.401274027340719,43.325399616925658],[-78.400364052811128,43.325643630348303],[-78.400358474284701,43.326366579241586],[-78.400353452572546,43.326482715320132],[-78.399129630044627,43.326509165457402],[-78.398655212772368,43.326519419029367]]]]}},
{"type":"Feature","properties":{"Municipali":"Town of Kendall"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.055134000008948,43.369816],[-78.04595500000876,43.370592],[-78.040973000008663,43.370774],[-78.040472000008648,43.370888],[-78.039313000008619,43.370979],[-78.038717000008603,43.370819],[-78.036400000008584,43.369013],[-78.036306000008551,43.36883],[-78.035956000008554,43.36865],[-78.034521000008525,43.367915],[-78.033676000008526,43.367458],[-78.033268000008505,43.367412],[-78.032109000008475,43.367137],[-78.03038700000846,43.366908],[-78.030355000008456,43.366839],[-78.029979000008453,43.366862],[-78.028413000008428,43.366679],[-78.023871000008327,43.366517],[-78.019360000008234,43.366812],[-78.016634000008182,43.367177],[-78.016446000008173,43.367193],[-78.015036000008152,43.367313],[-78.013250000008128,43.367564],[-78.011778000008078,43.367952],[-78.009428000008057,43.368225],[-78.005512000007968,43.368223],[-78.003633000007937,43.36781],[-78.002506000007926,43.367352],[-78.001097000007903,43.366437],[-78.000000000007873,43.365836],[-77.998862000007861,43.3656],[-77.997136000007814,43.365367],[-77.996341000007817,43.365322],[-77.995710000007804,43.36518],[-77.995101000007779,43.365201],[-77.994481000007767,43.365129],[-77.994499000007764,43.364898],[-77.995615000007874,43.286546],[-78.066591000009296,43.286447],[-78.066703000009269,43.300098],[-78.11650000001039,43.299598],[-78.116500000010376,43.3087],[-78.115898000010276,43.374599],[-78.11589700001025,43.375346],[-78.115619000010255,43.375348],[-78.114544000010227,43.375327],[-78.112727000010182,43.375373],[-78.111474000010162,43.375442],[-78.104769000010009,43.37557],[-78.101009000009924,43.375433],[-78.095873000009803,43.375015],[-78.095695000009798,43.375],[-78.095112000009792,43.374694],[-78.094329000009793,43.374477],[-78.091947000009725,43.373815],[-78.089064000009657,43.373472],[-78.08295500000952,43.373176],[-78.081294000009493,43.373039],[-78.080135000009463,43.373016],[-78.079195000009449,43.372857],[-78.077252000009423,43.372742],[-78.075809000009372,43.372529],[-78.074934000009364,43.3724],[-78.074057000009347,43.372103],[-78.072929000009324,43.371508],[-78.072114000009307,43.37128],[-78.063311000009122,43.370023],[-78.062308000009111,43.369931],[-78.058016000009005,43.369954],[-78.055134000008948,43.369816]]]]}},
{"type":"Feature","properties":{"Municipali":"Village of Holley"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.04155313406747,43.231161528461854],[-78.035547852687046,43.231169540485588],[-78.031824294690111,43.231180961053347],[-78.031792223123645,43.235367807168167],[-78.027436487571336,43.235386705216413],[-78.027453720386944,43.232485524256084],[-78.027271625656013,43.232482408637928],[-78.027287547574829,43.231199562476348],[-78.026416321143074,43.231194586373967],[-78.024128595536581,43.231211730365445],[-78.022912151004959,43.231225804457416],[-78.020972653256479,43.231248217403362],[-78.019981739206159,43.231255400540512],[-78.01843090353988,43.231268111245498],[-78.018430159080609,43.231453126967921],[-78.016688555956463,43.2314687267802],[-78.016568659559113,43.231469122055636],[-78.016591601979968,43.23114803566952],[-78.016649366859866,43.230356155388378],[-78.016655063203785,43.229749815147073],[-78.017036256034217,43.217334268653381],[-78.041004017587255,43.217143751741638],[-78.041096968991454,43.2257339091951],[-78.041553996357962,43.22573142379813],[-78.042224704648035,43.225647731427237],[-78.042260081374394,43.227005870747369],[-78.042293623477377,43.228174338207026],[-78.041566505024065,43.227912321278353],[-78.041595548350216,43.231150991528217],[-78.041553102148811,43.231151121715435],[-78.04155313406747,43.231161528461854]]]]}},
{"type":"Feature","properties":{"Municipali":"Town of Gaines"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.116474830543723,43.299517531658815],[-78.115872830543793,43.254218531659113],[-78.168601000011975,43.25319999995439],[-78.168776519108889,43.253208272673461],[-78.16877553090481,43.253297873416486],[-78.16876934464176,43.253858620254121],[-78.168680188797182,43.253906923783646],[-78.16857604850432,43.253925828420194],[-78.168552190975987,43.253929526061818],[-78.168494272377544,43.253929316039631],[-78.168455418438242,43.253926133295032],[-78.168426739075358,43.253923783998516],[-78.168371329803904,43.253909483116239],[-78.168278230986004,43.253887010233207],[-78.168196228445879,43.253858811271371],[-78.168174318155067,43.253850110742007],[-78.168118495289079,43.253827489225287],[-78.168063149811331,43.253804375652386],[-78.167990945233853,43.253775913719437],[-78.167954960884046,43.253744057611613],[-78.167926173154044,43.253719276201984],[-78.167894980070074,43.253692727330673],[-78.167849237437807,43.253676697103309],[-78.167813097443741,43.253667753057897],[-78.167764941256692,43.253651716769056],[-78.167723917962917,43.253651567732717],[-78.167670706914947,43.253668999951813],[-78.167624704362154,43.253691745459825],[-78.167620556599019,43.253695801368046],[-78.167616710701424,43.253699562095143],[-78.167583401528461,43.253732133584606],[-78.16756082034037,43.253766723701645],[-78.167538886029703,43.253798369427216],[-78.167526570078451,43.253835334479596],[-78.167535989047806,43.25386886111049],[-78.167562118837154,43.253930642779792],[-78.167593108051406,43.25398715772949],[-78.167609663753396,43.254036566154973],[-78.167613154127409,43.254055968590279],[-78.167605721529625,43.254084141367507],[-78.167583859058851,43.254105213126302],[-78.167530635591547,43.254124406686856],[-78.167486074782886,43.254129290711248],[-78.16743636907556,43.254134738613466],[-78.167319831319261,43.254148926227579],[-78.167160472486401,43.254160685015179],[-78.167102473402494,43.254172812427029],[-78.167042104974385,43.254177879872827],[-78.166969636284577,43.254188190362825],[-78.166914134803775,43.254187988333626],[-78.166875569028477,43.254180799359183],[-78.166825171016896,43.254140077646831],[-78.166753194897112,43.254078126117228],[-78.166694834517912,43.254036980257041],[-78.166632224585015,43.254017365189334],[-78.16659354147211,43.254015561601861],[-78.166570157168337,43.254014471305481],[-78.166550197808192,43.254013540702182],[-78.166342662815822,43.254012784378965],[-78.166178528861806,43.254017473073652],[-78.166048181399717,43.254022284784028],[-78.165965953121514,43.254023235931349],[-78.165855303891334,43.254056696397733],[-78.16585356045988,43.254311918087218],[-78.165830317622792,43.255669646305748],[-78.168403438651339,43.255219598121151],[-78.169522136162826,43.255029677116241],[-78.170375173750543,43.254879622928179],[-78.171256210416942,43.254719454115012],[-78.17194177106235,43.254548366563462],[-78.172403510847232,43.254427516712269],[-78.172781240483488,43.254336990888802],[-78.173347320570286,43.25433791467244],[-78.173620267684583,43.254338359092628],[-78.177525935643501,43.25434907357625],[-78.177788898861976,43.254351798462828],[-78.178147116545375,43.254346482363758],[-78.178280271973264,43.254344473942062],[-78.178265361328116,43.25464556817569],[-78.178382236703257,43.254648428197228],[-78.178822753104939,43.254645602328509],[-78.178830748030165,43.254914516313164],[-78.178369448911781,43.254916179390406],[-78.178246127465044,43.254916162390678],[-78.178236640718509,43.25525450055521],[-78.178217342925322,43.255574564618627],[-78.178197087825495,43.256038998693207],[-78.1781861278631,43.256396754865357],[-78.178171504420078,43.256769704571603],[-78.178165456033454,43.256923958434612],[-78.179678436725638,43.256940521040939],[-78.18037729395013,43.256935557542249],[-78.180956005284145,43.256933155149937],[-78.181329734776043,43.256929530363209],[-78.182301918961343,43.256925528955854],[-78.182658170189441,43.256924240111715],[-78.183060110610725,43.256922784641404],[-78.185745050624377,43.256910633883955],[-78.18749353033833,43.256898133211607],[-78.189081747734107,43.256886757471229],[-78.191534602552181,43.256871821529771],[-78.191545003814127,43.256161655059472],[-78.193238670139451,43.256155537797468],[-78.193244794644798,43.25595015870784],[-78.196391223511142,43.255895358889425],[-78.196363386210706,43.25754443569388],[-78.19832351168607,43.25750369634018],[-78.20147467043553,43.257448986273154],[-78.208571365808154,43.257325950142928],[-78.208694968237666,43.253546556940968],[-78.208726370991897,43.252346952702254],[-78.208745657149379,43.251751642695339],[-78.208762789530965,43.251115004032926],[-78.250282830546965,43.250975531659172],[-78.285275830548031,43.251158531659001],[-78.297094346940298,43.251422148087379],[-78.299356726189856,43.251457825060918],[-78.297586756735399,43.306127999989691],[-78.116468651730116,43.308722690745206],[-78.116474830543723,43.299517531658815]]]]}},
{"type":"Feature","properties":{"Municipali":"Town of Clarendon"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.016941096779632,43.217335025063015],[-77.996540000008011,43.218190999995457],[-77.997299000008113,43.133398999995478],[-78.01740200000846,43.132300999995486],[-78.063201000009443,43.13109899999548],[-78.11580100001062,43.130869999995511],[-78.116343000010545,43.214081999995486],[-78.116500000010518,43.217097999995474],[-78.041004017587213,43.217143751741659],[-78.016941096779632,43.217335025063015]]]]}},
{"type":"Feature","properties":{"Municipali":"Town of Carlton"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.280819000014759,43.372035],[-78.278939000014688,43.371485],[-78.276401000014616,43.371325],[-78.273268000014511,43.371598],[-78.270416000014421,43.372122],[-78.269667000014394,43.372408],[-78.26910000001439,43.372625],[-78.26875500001438,43.37267],[-78.268254000014366,43.372761],[-78.267321000014334,43.372749],[-78.264713000014254,43.372714],[-78.259762000014106,43.372849],[-78.254311000013942,43.372297],[-78.254137000013927,43.372282],[-78.252651000013898,43.372159],[-78.252149000013887,43.372022],[-78.25089700001385,43.370809],[-78.250000000013827,43.370377],[-78.24851800001376,43.369924],[-78.248435000013771,43.369899],[-78.246962000013724,43.369579],[-78.244236000013643,43.369284],[-78.241666000013552,43.369125],[-78.233865000013338,43.369013],[-78.22747400001316,43.369564],[-78.226190000013119,43.369747],[-78.224435000013059,43.369976],[-78.22243000001302,43.370365],[-78.219454000012931,43.370572],[-78.214942000012798,43.37103],[-78.21143300001269,43.371739],[-78.208645000012609,43.372174],[-78.207924000012596,43.372128],[-78.203475000012475,43.371237],[-78.200373000012391,43.370849],[-78.197647000012338,43.370918],[-78.194295000012218,43.371192],[-78.194016000012226,43.371273],[-78.192885000012183,43.371603],[-78.191663000012156,43.372106],[-78.191538000012159,43.372175],[-78.190410000012122,43.371855],[-78.189909000012122,43.371558],[-78.188718000012074,43.371192],[-78.188555000012073,43.371055],[-78.188499000012058,43.371009],[-78.187465000012054,43.370666],[-78.186337000012017,43.370483],[-78.183173000011934,43.37046],[-78.181606000011897,43.370551],[-78.177502000011785,43.371099],[-78.175966000011741,43.371511],[-78.173930000011694,43.371739],[-78.17079600001162,43.372355],[-78.169167000011569,43.372949],[-78.164498000011449,43.374068],[-78.1623670000114,43.374501],[-78.160143000011331,43.374666],[-78.159140000011305,43.37474],[-78.158169000011284,43.374603],[-78.156508000011257,43.374534],[-78.154753000011212,43.374614],[-78.150072000011079,43.375],[-78.146801000010996,43.375351],[-78.145454000010972,43.375453],[-78.140942000010867,43.375542],[-78.137245000010779,43.375486],[-78.130351000010606,43.375583],[-78.129443000010582,43.375674],[-78.125000000010488,43.375582],[-78.120184000010354,43.375541],[-78.117866000010309,43.375395],[-78.117040000010292,43.375378],[-78.11589700001025,43.375346],[-78.115898000010276,43.374599],[-78.116500000010376,43.3087],[-78.297542000015412,43.306105],[-78.31025800001585,43.306047],[-78.308998000015677,43.372898],[-78.30899900001566,43.373866],[-78.308893000015658,43.373855],[-78.308199000015634,43.373789],[-78.308078000015627,43.373778],[-78.307577000015627,43.373618],[-78.307272000015615,43.373417],[-78.306605000015566,43.372977],[-78.305478000015555,43.372474],[-78.304224000015495,43.372246],[-78.303316000015485,43.372177],[-78.301874000015431,43.371811],[-78.300778000015413,43.371651],[-78.29908600001535,43.371834],[-78.296893000015274,43.37149],[-78.292537000015116,43.371535],[-78.291535000015102,43.371809],[-78.290093000015048,43.371832],[-78.28805600001499,43.372105],[-78.286114000014919,43.372128],[-78.285330000014895,43.372242],[-78.282072000014793,43.372149],[-78.280819000014759,43.372035]]]]}},
{"type":"Feature","properties":{"Municipali":"Town of Barre"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.115801000010578,43.13087],[-78.115943000010603,43.132108],[-78.127774000010874,43.132102],[-78.141188000011212,43.132064],[-78.181020000012239,43.131974],[-78.214017000013172,43.131688],[-78.294820000015676,43.130705],[-78.311258000016238,43.130611],[-78.31127800001623,43.138924],[-78.311075000016075,43.212368],[-78.306783000015912,43.21243],[-78.249556000014096,43.212673],[-78.201937000012705,43.212733],[-78.116343000010502,43.214082],[-78.115801000010578,43.13087]]]]}},
{"type":"Feature","properties":{"Municipali":"Village of Albion"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.208507391370702,43.257258527885547],[-78.201950766465529,43.257440732147913],[-78.201474670435573,43.257448986273275],[-78.19832351168607,43.257503696340144],[-78.196363386210649,43.257544435693937],[-78.196391223511142,43.255895358889568],[-78.19324479464477,43.255950158707925],[-78.193238670139451,43.25615553779749],[-78.191545003814156,43.256161655059522],[-78.191534602552167,43.256871821529884],[-78.189081747734122,43.2568867574713],[-78.18749353033833,43.256898133211607],[-78.185745050624362,43.256910633883919],[-78.183060110610612,43.25692278464151],[-78.18265817018937,43.256924240111729],[-78.182301918961258,43.256925528955769],[-78.181329734776014,43.256929530363145],[-78.180956005284145,43.256933155150016],[-78.180377293950059,43.256935557542292],[-78.179678436725595,43.256940521041017],[-78.178165456033454,43.256923958434633],[-78.178171504420035,43.256769704571632],[-78.1781861278631,43.256396754865293],[-78.178197087825481,43.256038998693263],[-78.178217342925208,43.255574564618577],[-78.178236640718509,43.255254500555324],[-78.178246127465044,43.254916162390757],[-78.178369448911766,43.254916179390463],[-78.178830748030066,43.254914516313121],[-78.178822753104896,43.25464560232858],[-78.1783822367032,43.254648428197349],[-78.178265361327973,43.25464556817581],[-78.178280271973222,43.254344473942176],[-78.178147116545389,43.254346482363857],[-78.177788898861962,43.254351798462885],[-78.177525935643445,43.254349073576222],[-78.173620267684598,43.254338359092735],[-78.173347320570301,43.254337914672583],[-78.172781240483374,43.254336990888859],[-78.172403510847246,43.254427516712312],[-78.171941771062336,43.254548366563519],[-78.1712562104169,43.25471945411509],[-78.170375173750429,43.254879622928271],[-78.169522136162811,43.255029677116319],[-78.168403438651254,43.255219598121116],[-78.165830317622763,43.255669646305797],[-78.165853560459837,43.254311918087218],[-78.16585530389132,43.254056696397789],[-78.165965953121443,43.254023235931399],[-78.166048181399745,43.254022284784114],[-78.166178528861806,43.254017473073638],[-78.166342662815822,43.254012784379071],[-78.166550197808107,43.254013540702246],[-78.166570157168252,43.254014471305581],[-78.166593541472054,43.254015561601904],[-78.166632224584959,43.254017365189426],[-78.166694834517926,43.254036980257055],[-78.166753194897041,43.254078126117278],[-78.166825171016896,43.254140077646902],[-78.16687556902842,43.254180799359261],[-78.166914134803775,43.254187988333669],[-78.16696963628452,43.254188190362839],[-78.167042104974357,43.254177879872934],[-78.16710247340238,43.254172812427093],[-78.167160472486316,43.254160685015314],[-78.167319831319261,43.254148926227607],[-78.16743636907546,43.254134738613502],[-78.167486074782914,43.254129290711248],[-78.167530635591547,43.254124406686898],[-78.167583859058865,43.254105213126358],[-78.16760572152964,43.254084141367606],[-78.167613154127366,43.254055968590293],[-78.167609663753353,43.254036566155079],[-78.167593108051392,43.253987157729604],[-78.167562118837168,43.253930642779927],[-78.167535989047792,43.253868861110561],[-78.167526570078394,43.253835334479668],[-78.167538886029661,43.253798369427301],[-78.16756082034037,43.25376672370178],[-78.167583401528404,43.253732133584698],[-78.167616710701438,43.253699562095193],[-78.16762055659899,43.253695801367975],[-78.167624704362197,43.253691745459875],[-78.167670706914976,43.253668999951778],[-78.167723917962917,43.253651567732767],[-78.16776494125655,43.253651716769106],[-78.167813097443698,43.253667753058025],[-78.167849237437807,43.253676697103337],[-78.167894980070074,43.253692727330801],[-78.167926173154001,43.253719276201984],[-78.16795496088406,43.253744057611613],[-78.167990945233797,43.253775913719437],[-78.168063149811317,43.253804375652521],[-78.168118495289036,43.253827489225436],[-78.168174318155081,43.253850110742007],[-78.168196228445879,43.25385881127135],[-78.168278230985962,43.253887010233299],[-78.168371329803875,43.253909483116374],[-78.168426739075272,43.253923783998445],[-78.168455418438228,43.253926133295053],[-78.168494272377501,43.253929316039574],[-78.168552190975873,43.253929526061803],[-78.168576048504249,43.253925828420158],[-78.168680188797182,43.253906923783724],[-78.168769344641774,43.253858620254206],[-78.16877553090481,43.253297873416592],[-78.168776519108846,43.253208272668971],[-78.168497035960655,43.244493915129951],[-78.167073802893583,43.244601635060505],[-78.166045932272567,43.244686384282602],[-78.166084902257495,43.243240013249292],[-78.166111063731918,43.241538327988721],[-78.172509708738559,43.241404593115234],[-78.172563961566752,43.239209595426743],[-78.173538660415488,43.239203244367147],[-78.178923521106952,43.239102119757639],[-78.179028038865951,43.234179615329914],[-78.184255430294868,43.234096764791438],[-78.185352495752042,43.234080616773532],[-78.193178180008346,43.234032149438683],[-78.193176664523008,43.234269705999786],[-78.19392714856167,43.234266416212307],[-78.194075045505414,43.234267033444837],[-78.194072927268721,43.234345699038812],[-78.195728265480156,43.234310495201811],[-78.199286711148332,43.234227387887394],[-78.201926805631075,43.234209034125158],[-78.20581634967013,43.234173000227713],[-78.20633681425447,43.234147429009496],[-78.209059648868234,43.234111974053171],[-78.209022873827166,43.237036630548289],[-78.208963292635175,43.241774260538627],[-78.208959204078027,43.242264493570573],[-78.208965784025395,43.242801102225364],[-78.210378821855656,43.242772927712153],[-78.210172657941172,43.245931049633441],[-78.208903632399256,43.245966192104447],[-78.208783735474057,43.25111493367244],[-78.208782922017107,43.251149866008966],[-78.208507391370702,43.257258527885547]]]]}},
{"type":"Feature","properties":{"Municipali":"Town of Albion"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.299332629873462,43.251450069433709],[-78.298827660419192,43.251438244367087],[-78.285321660418731,43.251254244367104],[-78.250328660417608,43.251071244367097],[-78.20878292201715,43.251149866008902],[-78.208903632399299,43.24596619210439],[-78.210172657941229,43.245931049633384],[-78.210378821855713,43.242772927712117],[-78.208965784025438,43.2428011022253],[-78.208959204078027,43.242264493570509],[-78.208963292635246,43.241774260538577],[-78.209022873827223,43.237036630548218],[-78.209059648868234,43.234111974053107],[-78.20633681425447,43.23414742900939],[-78.205816349670201,43.234173000227649],[-78.201926805631075,43.234209034125094],[-78.199286711148332,43.234227387887344],[-78.195728265480142,43.234310495201754],[-78.194072927268792,43.234345699038769],[-78.194075045505414,43.234267033444773],[-78.19392714856167,43.234266416212265],[-78.193176664523051,43.234269705999722],[-78.193178180008402,43.234032149438619],[-78.185352495752042,43.234080616773468],[-78.184255430294911,43.234096764791317],[-78.179028038866008,43.234179615329857],[-78.178923521106952,43.239102119757582],[-78.173538660415488,43.239203244367097],[-78.172563961566794,43.239209595426637],[-78.172509708738602,43.241404593115178],[-78.166111063731918,43.241538327988664],[-78.166084902257552,43.243240013249242],[-78.166045932272624,43.244686384282538],[-78.16707380289364,43.244601635060441],[-78.168497035960726,43.244493915129908],[-78.168776519108889,43.253208272664473],[-78.115872830543793,43.254218531659177],[-78.116520660414139,43.217113244367191],[-78.11636366041418,43.214097244367039],[-78.201957660416241,43.212748244367148],[-78.249576660417674,43.2126882443672],[-78.306783000015912,43.212430000000154],[-78.31107455301678,43.21237034006186],[-78.311017710684851,43.219007926234447],[-78.299962660419212,43.219084244367252],[-78.299332629873462,43.251450069433709]]]]}}
]
}
{
"type": "FeatureCollection",
"name": "wyomingtowns",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{"type":"Feature","properties":{"AREA":143374578.704,"PERIMETER":48985.43252,"TOWN_":350.0,"TOWN_ID":350.0,"TOWN":"Bennington","FIPS_MCD":"3612105936","POP1990":3046,"GEOCODE":"0062","Shape_Leng":160615.73910100001,"Shape_Area":1541400009.1},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.463198310409183,42.780498388698987],[-78.487970948759482,42.780534732774228],[-78.487959984212679,42.7815578088302],[-78.487992701258165,42.783620544223503],[-78.487577079000815,42.804140307373693],[-78.487267992297546,42.812929740577943],[-78.487031102877623,42.824191589540753],[-78.486723630025935,42.84115924189981],[-78.486549170449379,42.849805746604986],[-78.486278638676012,42.867655251140057],[-78.480300256836443,42.867560575028698],[-78.472015669110121,42.867493755415865],[-78.464386631947619,42.867449616167974],[-78.448240289078598,42.867710754642168],[-78.387948744617447,42.868630613696673],[-78.374748501895084,42.868761582924769],[-78.374734755027021,42.868761746019658],[-78.369078645982896,42.868826697588418],[-78.333755248194819,42.869539719512495],[-78.320041287788243,42.869705670590236],[-78.307226747807206,42.86978954287391],[-78.307173832107225,42.864500554104985],[-78.307225894111426,42.855653951535224],[-78.307166390436137,42.839821780946586],[-78.306821835657388,42.825381611569377],[-78.306852079786125,42.811968709489939],[-78.307141373878025,42.795514809443119],[-78.307547056783534,42.780859238262067],[-78.319142989756344,42.78103422292925],[-78.34875347089536,42.781333313766169],[-78.368819286552764,42.781319378376615],[-78.374850486933298,42.781260560564803],[-78.391445629461813,42.78114102497743],[-78.396211410500612,42.781106245325319],[-78.407528030577652,42.781022887512776],[-78.410341239360392,42.780982372109783],[-78.410887717808052,42.780977545120805],[-78.442745447140211,42.780510690981551],[-78.463198310409183,42.780498388698987]]]]}},
{"type":"Feature","properties":{"AREA":93493311.117899999,"PERIMETER":38757.56762,"TOWN_":353.0,"TOWN_ID":353.0,"TOWN":"Attica","FIPS_MCD":"3612103012","POP1990":7383,"GEOCODE":"0037","Shape_Leng":127091.403019,"Shape_Area":1005309817.22},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.265962748960277,42.86945234712082],[-78.249747339136221,42.869911051881651],[-78.226360231668124,42.870152395805704],[-78.191382253516934,42.870413353097646],[-78.190783031001118,42.849082528120185],[-78.190596795305254,42.836936417312145],[-78.190368994501384,42.827565740220422],[-78.190092055154238,42.809237144510874],[-78.189858232192023,42.798740845767036],[-78.189614287130667,42.790480619531849],[-78.189629892891077,42.782762485244533],[-78.208939585222041,42.782789279032734],[-78.242198695593899,42.781997620796176],[-78.249719766015161,42.781868962253121],[-78.278021793126527,42.780849379898257],[-78.299208219547396,42.780799494004569],[-78.307547056783534,42.780859238262067],[-78.307141373878025,42.795514809443119],[-78.306852079786125,42.811968709489939],[-78.306821835657388,42.825381611569377],[-78.307166390436137,42.839821780946586],[-78.307225894111426,42.855653951535224],[-78.307173832107225,42.864500554104985],[-78.307226747807206,42.86978954287391],[-78.295381871068642,42.869707256088368],[-78.284869197961783,42.869509114775859],[-78.279216489267114,42.869402176065869],[-78.278961022685039,42.86939732723642],[-78.278912014539259,42.869396518146146],[-78.273623100859865,42.869375860832157],[-78.273574142035045,42.869375975021413],[-78.265962748960277,42.86945234712082]]]]}},
{"type":"Feature","properties":{"AREA":67842798.222100005,"PERIMETER":33594.78496,"TOWN_":356.0,"TOWN_ID":356.0,"TOWN":"Covington","FIPS_MCD":"3612118696","POP1990":1266,"GEOCODE":"0207","Shape_Leng":110177.05560199999,"Shape_Area":729697903.61699998},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.074248806532466,42.800771810389953],[-78.074156373283657,42.823146617585053],[-78.074154152233618,42.824465529683145],[-78.074239446438796,42.837865607325895],[-78.074271403899473,42.857749631517692],[-78.074201825160245,42.863756693092299],[-78.019475282859716,42.864683920786149],[-77.99972474225838,42.865076374305346],[-77.99541565515419,42.864999318244465],[-77.995320653399347,42.863315320745919],[-77.979937422717768,42.863139794096931],[-77.954818271306806,42.862741818414165],[-77.954813449097898,42.861834798602224],[-77.954927060211688,42.853787959547873],[-77.955179122741754,42.825214575155869],[-77.955199322288678,42.815968005015392],[-77.955310177800783,42.810550064233503],[-77.955449671790149,42.801500983508788],[-77.955466783806457,42.800391050867312],[-77.995901818663668,42.80151301473029],[-77.999750727122162,42.801674321508273],[-78.019672264549087,42.801812649961974],[-78.031809939666388,42.801679843923878],[-78.048697405418494,42.801425285366832],[-78.058098621223124,42.801127061043019],[-78.074248806532466,42.800771810389953]]]]}},
{"type":"Feature","properties":{"AREA":92451286.35269998,"PERIMETER":38493.90169,"TOWN_":380.0,"TOWN_ID":380.0,"TOWN":"Middlebury","FIPS_MCD":"3612146877","POP1990":1532,"GEOCODE":"0527","Shape_Leng":126235.53666100001,"Shape_Area":994242348.82599998},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.191382253516934,42.870413353097646],[-78.187359380921905,42.870411270551209],[-78.180410671155556,42.870407337305807],[-78.124737269717684,42.869922601955878],[-78.109991465977927,42.869944199387234],[-78.074176529096107,42.870207404770767],[-78.074201825160245,42.863756693092299],[-78.074271403899473,42.857749631517692],[-78.074239446438796,42.837865607325895],[-78.074154152233618,42.824465529683145],[-78.074156373283657,42.823146617585053],[-78.074248806532466,42.800771810389953],[-78.074197717839553,42.782746044705284],[-78.107843263732462,42.782434817362237],[-78.12475156270699,42.782305322802173],[-78.149430169756954,42.782671645342447],[-78.164231634764718,42.782798070173705],[-78.189629892891077,42.782762485244533],[-78.189614287130667,42.790480619531849],[-78.189858232192023,42.798740845767036],[-78.190092055154238,42.809237144510874],[-78.190368994501384,42.827565740220422],[-78.190596795305254,42.836936417312145],[-78.190783031001118,42.849082528120185],[-78.191382253516934,42.870413353097646]]]]}},
{"type":"Feature","properties":{"AREA":122865356.04099999,"PERIMETER":44666.40156,"TOWN_":386.0,"TOWN_ID":386.0,"TOWN":"Sheldon","FIPS_MCD":"3612166773","POP1990":2487,"GEOCODE":"0772","Shape_Leng":146454.88559300001,"Shape_Area":1320917375.49},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.30810009803939,42.695224802884077],[-78.32673197284592,42.695066016487253],[-78.373329600526347,42.694075514740689],[-78.374802783230606,42.694005054934408],[-78.381445032437298,42.693807932672861],[-78.383877466581097,42.693770298804679],[-78.388715023241616,42.693761423186977],[-78.398608484357069,42.693742645486388],[-78.410098774526617,42.693826705115747],[-78.414368323893143,42.693770800386716],[-78.41767975258486,42.693813435045882],[-78.422312130509681,42.693806883750113],[-78.422866514285687,42.693872984670371],[-78.427152640196979,42.693719523554421],[-78.429078166971024,42.693816653270829],[-78.429515674220511,42.693787300549452],[-78.430127688354531,42.693818712897567],[-78.447170404925288,42.693840321481623],[-78.457442634215184,42.693873455334504],[-78.463897760820018,42.693906708859501],[-78.463863202506886,42.698944514768669],[-78.463861471234665,42.717875895008618],[-78.463678870803619,42.72928666634354],[-78.463512163935363,42.736984157944669],[-78.463419964327372,42.75007199943083],[-78.463198310409183,42.780498388698987],[-78.442745447140211,42.780510690981551],[-78.410887717808052,42.780977545120805],[-78.410341239360392,42.780982372109783],[-78.407528030577652,42.781022887512776],[-78.396211410500612,42.781106245325319],[-78.391445629461813,42.78114102497743],[-78.374850486933298,42.781260560564803],[-78.368819286552764,42.781319378376615],[-78.34875347089536,42.781333313766169],[-78.319142989756344,42.78103422292925],[-78.307547056783534,42.780859238262067],[-78.308062459091445,42.760589212199889],[-78.308271832168387,42.750050826264612],[-78.3083390984593,42.738598350345463],[-78.308240033609451,42.725724266471097],[-78.308265236818116,42.722070196130637],[-78.30820726421895,42.712116789537276],[-78.308122383684008,42.710064383329438],[-78.308114117687595,42.700773809797091],[-78.30810009803939,42.695224802884077]]]]}},
{"type":"Feature","properties":{"AREA":92391124.875100002,"PERIMETER":38424.90083,"TOWN_":389.0,"TOWN_ID":389.0,"TOWN":"Orangeville","FIPS_MCD":"3612155222","POP1990":1115,"GEOCODE":"0616","Shape_Leng":126000.098341,"Shape_Area":993449944.0819999},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.190951838015835,42.695990914310336],[-78.249975328344078,42.695870882840296],[-78.256004284010046,42.695760982670329],[-78.258086256205232,42.695722953479958],[-78.276468248842136,42.695553192413939],[-78.295891304773619,42.695370605911712],[-78.30810009803939,42.695224802884077],[-78.308114117687595,42.700773809797091],[-78.308122383684008,42.710064383329438],[-78.30820726421895,42.712116789537276],[-78.308265236818116,42.722070196130637],[-78.308240033609451,42.725724266471097],[-78.3083390984593,42.738598350345463],[-78.308271832168387,42.750050826264612],[-78.308062459091445,42.760589212199889],[-78.307547056783534,42.780859238262067],[-78.299208219547396,42.780799494004569],[-78.278021793126527,42.780849379898257],[-78.249719766015161,42.781868962253121],[-78.242198695593899,42.781997620796176],[-78.208939585222041,42.782789279032734],[-78.189629892891077,42.782762485244533],[-78.189919641388059,42.750075629011647],[-78.190951838015835,42.695990914310336]]]]}},
{"type":"Feature","properties":{"AREA":91897286.367400005,"PERIMETER":38363.38021000001,"TOWN_":396.0,"TOWN_ID":396.0,"TOWN":"Warsaw","FIPS_MCD":"3612178344","POP1990":5342,"GEOCODE":"0872","Shape_Leng":125807.024351,"Shape_Area":988278377.29399991},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.074122252148072,42.713502306666456],[-78.074109494053289,42.695549305418695],[-78.103198442774527,42.695349621516009],[-78.12471937017132,42.695414588480745],[-78.13570170410469,42.695436890370807],[-78.157770605889908,42.695816323820118],[-78.190951838015835,42.695990914310336],[-78.189919641388059,42.750075629011647],[-78.189629892891077,42.782762485244533],[-78.164231634764718,42.782798070173705],[-78.149430169756954,42.782671645342447],[-78.12475156270699,42.782305322802173],[-78.107843263732462,42.782434817362237],[-78.074197717839553,42.782746044705284],[-78.074232050734551,42.764023820472161],[-78.074177241570283,42.750092111049163],[-78.07411756785207,42.717035682008373],[-78.074122252148072,42.713502306666456]]]]}},
{"type":"Feature","properties":{"AREA":122613614.86300001,"PERIMETER":44674.26174,"TOWN_":426.0,"TOWN_ID":426.0,"TOWN":"Java","FIPS_MCD":"3612138341","POP1990":2197,"GEOCODE":"0426","Shape_Leng":146480.27594600001,"Shape_Area":1318202893.8599999},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.461765182959056,42.606581603655883],[-78.461950012505085,42.617303788921696],[-78.461964515939016,42.618198294352887],[-78.462075606928281,42.625074080660283],[-78.462219108711963,42.629201093953306],[-78.462450077895383,42.635841402888069],[-78.462776290349225,42.645215231804187],[-78.462988191568385,42.651301294660101],[-78.463234551030681,42.658381876744528],[-78.463406491600111,42.666337829838653],[-78.463559556003347,42.672201249630525],[-78.463786112786863,42.683831992383269],[-78.463897760820018,42.693906708859501],[-78.457442634215184,42.693873455334504],[-78.447170404925288,42.693840321481623],[-78.430127688354531,42.693818712897567],[-78.429515674220511,42.693787300549452],[-78.429078166971024,42.693816653270829],[-78.427152640196979,42.693719523554421],[-78.422866514285687,42.693872984670371],[-78.422312130509681,42.693806883750113],[-78.41767975258486,42.693813435045882],[-78.414368323893143,42.693770800386716],[-78.410098774526617,42.693826705115747],[-78.398608484357069,42.693742645486388],[-78.388715023241616,42.693761423186977],[-78.383877466581097,42.693770298804679],[-78.381445032437298,42.693807932672861],[-78.374802783230606,42.694005054934408],[-78.373329600526347,42.694075514740689],[-78.32673197284592,42.695066016487253],[-78.30810009803939,42.695224802884077],[-78.308199354694779,42.687133882409789],[-78.308369663043081,42.680117663301473],[-78.308515755781087,42.675920867727719],[-78.308533425236277,42.6736893676132],[-78.308676347444205,42.668574830014705],[-78.308681608437936,42.661392274151687],[-78.308932973474469,42.655356626525538],[-78.308872260084186,42.651621293532813],[-78.309025797949587,42.644565885009825],[-78.30911586435839,42.640007219664362],[-78.309214240656445,42.629462857898503],[-78.30927604194855,42.625073117351505],[-78.309525282313018,42.608085387992567],[-78.356947993424086,42.607172410760697],[-78.374742594102045,42.606715795890359],[-78.388058650674921,42.606376529474211],[-78.461765182959056,42.606581603655883]]]]}},
{"type":"Feature","properties":{"AREA":94806889.737200007,"PERIMETER":38942.53533,"TOWN_":427.0,"TOWN_ID":427.0,"TOWN":"Perry","FIPS_MCD":"3612157254","POP1990":5353,"GEOCODE":"0651","Shape_Leng":127715.160176,"Shape_Area":1019709567.73},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.01640469667916,42.713469721051169],[-78.021765092542864,42.713372494284066],[-78.022449593760911,42.713383336415845],[-78.025411583602249,42.713430189822049],[-78.029044087547206,42.71350202628507],[-78.035882753786368,42.713636947796566],[-78.054670921791171,42.7136158174428],[-78.074122252148072,42.713502306666456],[-78.07411756785207,42.717035682008373],[-78.074177241570283,42.750092111049163],[-78.074232050734551,42.764023820472161],[-78.074197717839553,42.782746044705284],[-78.074248806532466,42.800771810389953],[-78.058098621223124,42.801127061043019],[-78.048697405418494,42.801425285366832],[-78.031809939666388,42.801679843923878],[-78.019672264549087,42.801812649961974],[-77.999750727122162,42.801674321508273],[-77.995901818663668,42.80151301473029],[-77.955466783806457,42.800391050867312],[-77.955618339058688,42.781706729000298],[-77.95550971578885,42.770500231060979],[-77.955364549499407,42.759623147508933],[-77.955139842002851,42.750073879200897],[-77.955081947693714,42.745567318017429],[-77.955405685601491,42.715943274319031],[-77.955430028671032,42.713717531747953],[-77.996989491328634,42.71368137551881],[-77.999724092381683,42.713700002006966],[-78.01640469667916,42.713469721051169]]],[[[-78.029902679118251,42.705086063690267],[-78.030586804820715,42.705120882024481],[-78.030555714126947,42.705384169695172],[-78.03004569573163,42.705360291510509],[-78.030035445734413,42.705305911125066],[-78.030005975881025,42.705250962538919],[-78.029961791299158,42.705163047779763],[-78.029902679118251,42.705086063690267]]]]}},
{"type":"Feature","properties":{"AREA":93599733.534799993,"PERIMETER":38696.64141,"TOWN_":429.0,"TOWN_ID":429.0,"TOWN":"Wethersfield","FIPS_MCD":"3612181325","POP1990":794,"GEOCODE":"0902","Shape_Leng":126890.722757,"Shape_Area":1006439880.26},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.190930749528192,42.608997062842619],[-78.239471134682091,42.608653523221278],[-78.244321768961868,42.608712997684613],[-78.249743190451667,42.608707997057003],[-78.275241736840499,42.608430035877184],[-78.309525282313018,42.608085387992567],[-78.30927604194855,42.625073117351505],[-78.309214240656445,42.629462857898503],[-78.30911586435839,42.640007219664362],[-78.309025797949587,42.644565885009825],[-78.308872260084186,42.651621293532813],[-78.308932973474469,42.655356626525538],[-78.308681608437936,42.661392274151687],[-78.308676347444205,42.668574830014705],[-78.308533425236277,42.6736893676132],[-78.308515755781087,42.675920867727719],[-78.308369663043081,42.680117663301473],[-78.308199354694779,42.687133882409789],[-78.30810009803939,42.695224802884077],[-78.295891304773619,42.695370605911712],[-78.276468248842136,42.695553192413939],[-78.258086256205232,42.695722953479958],[-78.256004284010046,42.695760982670329],[-78.249975328344078,42.695870882840296],[-78.190951838015835,42.695990914310336],[-78.191041030288801,42.681052604811455],[-78.190611608837727,42.669292394351061],[-78.190786564504492,42.6656328048783],[-78.191209529575914,42.653353500674186],[-78.191250067105841,42.64116040655945],[-78.191202869817047,42.635724961573651],[-78.191232296487257,42.626444396322483],[-78.191185254419267,42.625033336185879],[-78.190930749528192,42.608997062842619]]]]}},
{"type":"Feature","properties":{"AREA":92554789.512999997,"PERIMETER":38534.61578,"TOWN_":459.0,"TOWN_ID":459.0,"TOWN":"Gainesville","FIPS_MCD":"3612127980","POP1990":2288,"GEOCODE":"0311","Shape_Leng":126368.146165,"Shape_Area":995340969.4230001},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.088500413383429,42.608353918732739],[-78.097604758095358,42.608500907047535],[-78.103852669754218,42.608590186777469],[-78.107245335033767,42.608655121314627],[-78.111892739780941,42.608687047206587],[-78.118742730295637,42.60875974665224],[-78.124735172682023,42.608800284929622],[-78.133948360644112,42.608873577590693],[-78.178214156415251,42.608834642448734],[-78.190930749528192,42.608997062842619],[-78.191185254419267,42.625033336185879],[-78.191232296487257,42.626444396322483],[-78.191202869817047,42.635724961573651],[-78.191250067105841,42.64116040655945],[-78.191209529575914,42.653353500674186],[-78.190786564504492,42.6656328048783],[-78.190611608837727,42.669292394351061],[-78.191041030288801,42.681052604811455],[-78.190951838015835,42.695990914310336],[-78.157770605889908,42.695816323820118],[-78.13570170410469,42.695436890370807],[-78.12471937017132,42.695414588480745],[-78.103198442774527,42.695349621516009],[-78.074109494053289,42.695549305418695],[-78.074220856311314,42.663310450910927],[-78.074260204203654,42.659417527415343],[-78.074212492970105,42.634668842804793],[-78.074264190545776,42.629812636776315],[-78.074195786529259,42.625087327325765],[-78.074158272887544,42.622194576181258],[-78.074167481516298,42.616242714486553],[-78.074180621191658,42.614057159536088],[-78.07415341950302,42.610730596532754],[-78.074131835078902,42.6082878373591],[-78.076670418146293,42.608227526099263],[-78.078728996358109,42.608229033960512],[-78.082810731017503,42.608265798601792],[-78.088500413383429,42.608353918732739]]]]}},
{"type":"Feature","properties":{"AREA":99688914.428000003,"PERIMETER":41923.99624,"TOWN_":462.0,"TOWN_ID":462.0,"TOWN":"Castile","FIPS_MCD":"3612112782","POP1990":3042,"GEOCODE":"0134","Shape_Leng":137492.181614,"Shape_Area":1072203310.6},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.074220856311314,42.663310450910927],[-78.074109494053289,42.695549305418695],[-78.074122252148072,42.713502306666456],[-78.054670921791171,42.7136158174428],[-78.035882753786368,42.713636947796566],[-78.029044087547206,42.71350202628507],[-78.025411583602249,42.713430189822049],[-78.022449593760911,42.713383336415845],[-78.021765092542864,42.713372494284066],[-78.01640469667916,42.713469721051169],[-77.999724092381683,42.713700002006966],[-77.996989491328634,42.71368137551881],[-77.955430028671032,42.713717531747953],[-77.955678015563421,42.700520701088088],[-77.95570104208673,42.699295377453801],[-77.95584912092599,42.691416577591951],[-77.95638838974439,42.667893763638361],[-77.957085666832512,42.667641706763433],[-77.957927845803127,42.667295264927198],[-77.958928673998358,42.666612968355757],[-77.959550776877208,42.665949939573622],[-77.960323926345495,42.664940126842914],[-77.961167872267438,42.663688371152297],[-77.961974958069561,42.662458832500221],[-77.962383191366214,42.661912607388302],[-77.96263469123781,42.661833913778288],[-77.962871884917504,42.661793733297543],[-77.963162196140914,42.661829965431039],[-77.963566406489974,42.6620354262813],[-77.964223861877201,42.662282880671647],[-77.964642067931521,42.662427878501411],[-77.965290433649358,42.662560177507771],[-77.966281287856717,42.662739277228773],[-77.967189068846139,42.66282572020642],[-77.96775988705069,42.662733639089822],[-77.968492959022228,42.662558033774552],[-77.968912150897737,42.662258600186313],[-77.969322472579307,42.661860473065396],[-77.97016339389792,42.660926899095038],[-77.97056938992533,42.660232522800619],[-77.970864897565477,42.659604826590986],[-77.970998230987803,42.659066132310627],[-77.971172782324032,42.65829669783831],[-77.971244200958935,42.657588394622842],[-77.971380645963379,42.656753404681567],[-77.971643215659995,42.6564167400145],[-77.971833572790132,42.656223270848521],[-77.97234081406981,42.655851835591776],[-77.972886310077456,42.655556919276158],[-77.973594038828963,42.655178470628833],[-77.974034799726169,42.654834965265877],[-77.974267313252795,42.654476575246662],[-77.974468026333838,42.653975775355647],[-77.974536063418142,42.653547309424752],[-77.974363423210349,42.652917664992565],[-77.97406730571133,42.652480986808051],[-77.973749306820778,42.65207190663746],[-77.973482989264113,42.651640485432964],[-77.973245031981563,42.651115579057702],[-77.973001728292274,42.650733354895081],[-77.972610262665327,42.650379697595014],[-77.972012885985421,42.649659990760902],[-77.971777183672486,42.649288686776046],[-77.971749471117931,42.648915810320837],[-77.97175202880841,42.648581110586072],[-77.971943243372223,42.647427487226039],[-77.972153139740627,42.646537077339595],[-77.972408000434299,42.646184011492871],[-77.972686898961911,42.645951462715573],[-77.973144537930409,42.645750482455497],[-77.973632284921294,42.645576707942489],[-77.974395893460809,42.64547216063432],[-77.974974450826082,42.64541290856539],[-77.975414282071043,42.645519302762089],[-77.9758075460431,42.645488877550463],[-77.976118142791165,42.645393251894248],[-77.976565613976149,42.645005793286956],[-77.977112806440488,42.644326782355293],[-77.97732535340171,42.643622890806043],[-77.977343297913833,42.643326479832972],[-77.977270270835945,42.64290457061594],[-77.977013849176217,42.642132914829475],[-77.976593847390049,42.640841281092335],[-77.976607350159341,42.639732893588814],[-77.976761518649624,42.639100768783081],[-77.977008173469756,42.638698374945754],[-77.977351294387219,42.638289759735549],[-77.977674218951179,42.638023948992142],[-77.978219698648061,42.637739981192169],[-77.97884582303476,42.637384070092068],[-77.979472265705098,42.637050107309562],[-77.980553585292341,42.636334090593124],[-77.981171853905522,42.6359507997945],[-77.982067964963548,42.635269107395466],[-77.982651825427922,42.634567848404771],[-77.98294015462497,42.6339730956078],[-77.983015063397048,42.633511647538555],[-77.983024750179951,42.633160439027293],[-77.98286153295669,42.632667895519774],[-77.982651830233621,42.632044035690143],[-77.982570469196531,42.631561839083602],[-77.982636823147928,42.631023650440873],[-77.982744822665666,42.630792386615198],[-77.98293272980986,42.630439812154144],[-77.983231615739683,42.630058951159263],[-77.983569729896757,42.629820440289237],[-77.983790402935568,42.629676101118839],[-77.984264597624374,42.629601145578818],[-77.98582100025726,42.62938620649868],[-77.986339420526804,42.629288953981089],[-77.986863318972382,42.62905998010303],[-77.987142738138161,42.62887128929826],[-77.987464435902723,42.628528642946549],[-77.987770629325368,42.628142236266342],[-77.988445292525981,42.627061679508266],[-77.98876259102444,42.626422798605532],[-77.989033465605786,42.625658082437859],[-77.989081054248516,42.625361441657439],[-77.989099337585387,42.625064533575539],[-77.989026282594921,42.624543066979093],[-77.988273908719052,42.623110037415813],[-77.987859028843687,42.622111188720581],[-77.987485004828798,42.621014350484892],[-77.987461277282094,42.620193564804211],[-77.987631127080604,42.618786890582186],[-77.988061681471564,42.617919219442577],[-77.989139258659662,42.616289979913162],[-77.989684317334948,42.615581706827257],[-77.990625941254876,42.614878455563748],[-77.991400057426887,42.614730959969627],[-77.992331136848776,42.614905223174851],[-77.993952824024404,42.615666259839223],[-77.994831746059234,42.615952294353789],[-77.995739319127438,42.616140163259239],[-77.996578303531891,42.616125400213669],[-77.997539488546252,42.615678114174386],[-77.998251536042076,42.61499528523526],[-77.999162188251887,42.613445049852622],[-77.999728685536454,42.612786557530789],[-78.001300164726615,42.611746241493826],[-78.003235928442081,42.610848568079724],[-78.004218594551759,42.610519029927936],[-78.005396481812895,42.610194222556942],[-78.006156410687908,42.610069076320414],[-78.00681314406286,42.610148145181753],[-78.007521731889398,42.610376427479075],[-78.008803600618094,42.611443767501029],[-78.00972054254531,42.612064443918328],[-78.010887717024289,42.612286426818351],[-78.011828079537352,42.612368822293163],[-78.012779531975923,42.612404105056243],[-78.013279715490654,42.612366010676681],[-78.013664164949915,42.612212632579968],[-78.014795235729267,42.61068814466055],[-78.015350918822406,42.60937565107443],[-78.018742883711909,42.609352735590328],[-78.027604748421467,42.609198188334354],[-78.027653464132271,42.609197259732007],[-78.033282074779407,42.609075456612878],[-78.039086082185364,42.608959934307329],[-78.044368787993889,42.608813568153977],[-78.049045555510446,42.608731944158194],[-78.055256497856377,42.608566716993678],[-78.057497379018201,42.608503505089281],[-78.062946917351766,42.608412383518306],[-78.06849473286529,42.608351402542517],[-78.070826734018439,42.60832401415351],[-78.074131835078902,42.6082878373591],[-78.07415341950302,42.610730596532754],[-78.074180621191658,42.614057159536088],[-78.074167481516298,42.616242714486553],[-78.074158272887544,42.622194576181258],[-78.074195786529259,42.625087327325765],[-78.074264190545776,42.629812636776315],[-78.074212492970105,42.634668842804793],[-78.074260204203654,42.659417527415343],[-78.074220856311314,42.663310450910927]]]]}},
{"type":"Feature","properties":{"AREA":94489017.194499999,"PERIMETER":38872.58723,"TOWN_":476.0,"TOWN_ID":476.0,"TOWN":"Eagle","FIPS_MCD":"3612121369","POP1990":1155,"GEOCODE":"0245","Shape_Leng":127467.450627,"Shape_Area":1015998491.58},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.234235345143603,42.521728906107249],[-78.24851902349441,42.521646798638876],[-78.250089024120726,42.521492557076456],[-78.259574619355902,42.521430582074181],[-78.270349554506979,42.521359217725134],[-78.308843896571943,42.521095993692803],[-78.309065554525034,42.553356786753788],[-78.309468565557438,42.583502722458796],[-78.309470771981978,42.606943427663474],[-78.309525282313018,42.608085387992567],[-78.275241736840499,42.608430035877184],[-78.249743190451667,42.608707997057003],[-78.244321768961868,42.608712997684613],[-78.239471134682091,42.608653523221278],[-78.190930749528192,42.608997062842619],[-78.190443798095117,42.578033670194465],[-78.19003250010141,42.545791322980996],[-78.190123273614077,42.521684124168694],[-78.19091699969438,42.521684232941659],[-78.199487204542066,42.521685061003495],[-78.204665177427501,42.521884702095278],[-78.216366667152187,42.521859542876349],[-78.217235434146275,42.52174719195348],[-78.217873145914822,42.521820768638321],[-78.223774236072799,42.521787907893028],[-78.234235345143603,42.521728906107249]]]]}},
{"type":"Feature","properties":{"AREA":40688279.265199997,"PERIMETER":42614.02878,"TOWN_":481.0,"TOWN_ID":481.0,"TOWN":"Genesee Falls","FIPS_MCD":"3612128596","POP1990":488,"GEOCODE":"0319","Shape_Leng":139752.27184,"Shape_Area":437600612.89899999},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.088944545957546,42.521103873918079],[-78.088945415356164,42.523226525405612],[-78.088988861008616,42.529179149613249],[-78.089053914806655,42.535729746264622],[-78.089077364268192,42.541880376592225],[-78.089064620333318,42.544374128395567],[-78.089059275213089,42.551920300115846],[-78.089047332388745,42.55810448191442],[-78.088836599701096,42.564936279419534],[-78.08882856285156,42.570587408054898],[-78.08876077459135,42.576690299054739],[-78.08869995552169,42.581864833063214],[-78.088674905843149,42.588081689410579],[-78.088612068478653,42.592448878034986],[-78.08855426496963,42.597837215736689],[-78.088511853221434,42.604306783933723],[-78.088500413383429,42.608353918732739],[-78.082810731017503,42.608265798601792],[-78.078728996358109,42.608229033960512],[-78.076670418146293,42.608227526099263],[-78.074131835078902,42.6082878373591],[-78.070826734018439,42.60832401415351],[-78.06849473286529,42.608351402542517],[-78.062946917351766,42.608412383518306],[-78.057497379018201,42.608503505089281],[-78.055256497856377,42.608566716993678],[-78.049045555510446,42.608731944158194],[-78.044368787993889,42.608813568153977],[-78.039086082185364,42.608959934307329],[-78.033282074779407,42.609075456612878],[-78.027653464132271,42.609197259732007],[-78.027604748421467,42.609198188334354],[-78.018742883711909,42.609352735590328],[-78.015350918822406,42.60937565107443],[-78.015576928292873,42.608456874938341],[-78.016493321906822,42.606925339748493],[-78.018829251497579,42.606108785387022],[-78.020958743177843,42.605098796203713],[-78.022729233794692,42.605221603002093],[-78.024078155701005,42.605470116483751],[-78.026163797146353,42.605441849799874],[-78.027117230670811,42.605029496684985],[-78.028703019079742,42.604032072210096],[-78.029004057031699,42.60272198908195],[-78.028313490550872,42.600919243296715],[-78.027654781847701,42.599429711626478],[-78.027061262077666,42.598594150208584],[-78.026072475902353,42.597874489140359],[-78.023832140236152,42.597195479370441],[-78.021629805647393,42.596031016462113],[-78.019728406214682,42.596055585567548],[-78.018760493599331,42.596602975906563],[-78.017653124857418,42.59784651830536],[-78.016607347712494,42.598928986546973],[-78.014886686966932,42.599739768774057],[-78.013326054162533,42.599677648422585],[-78.011207290081856,42.599232085251401],[-78.007769725400209,42.598778528994643],[-78.00658305564582,42.599108405710318],[-78.005906962892098,42.598612032071884],[-78.004129362329749,42.59667209510075],[-78.004079395542249,42.595425015574925],[-78.004586245299279,42.594256858700163],[-78.006790634858888,42.591653471519535],[-78.00799063055581,42.590116512820337],[-78.009900900939385,42.588409023374211],[-78.012114836120858,42.586877917090121],[-78.013830400288668,42.586894655755216],[-78.01495111721654,42.586840934868285],[-78.016488170155299,42.586501746788343],[-78.018021015233316,42.585958212637266],[-78.019361321044528,42.585815590000877],[-78.021072691338915,42.585473442458607],[-78.022666821090581,42.585030140284253],[-78.02448778578318,42.585166651002837],[-78.026931340623193,42.586316098162484],[-78.029065592357369,42.586475224447767],[-78.031012518894983,42.586224382668171],[-78.032328158034503,42.586305316356253],[-78.032887201186327,42.586499296232013],[-78.034142354887166,42.587036721744802],[-78.035616425382216,42.587783123924758],[-78.036421777174681,42.587690019370079],[-78.03723041461555,42.587356780549314],[-78.038617627476796,42.585793934419556],[-78.039699458976472,42.584801456412386],[-78.040807951847952,42.583923872900982],[-78.042167885289501,42.583263088690956],[-78.042998835403878,42.582616760768936],[-78.044063419136847,42.581655759820471],[-78.045433400467545,42.580692184218165],[-78.046619743402218,42.580115802104274],[-78.048223719416427,42.579268664505491],[-78.04907179241431,42.578277866414666],[-78.049957248287427,42.577326100489323],[-78.050664931637229,42.576226599777485],[-78.050849035970103,42.574775900616729],[-78.050521194105357,42.573934228469597],[-78.048694952799437,42.572197107508131],[-78.047620172194783,42.57125705720027],[-78.046710088882904,42.570524198219566],[-78.045828456914748,42.570099258492974],[-78.044922996738293,42.570011649707737],[-78.044292715014592,42.570104698553742],[-78.043259948945803,42.570394813865256],[-78.041875813965547,42.571014046417041],[-78.040977976834313,42.57123581724121],[-78.0393074775765,42.571374630348387],[-78.038876919065061,42.571410412366134],[-78.038111903670341,42.57190377461113],[-78.037354795201779,42.57260454718616],[-78.036721728940421,42.572957743895152],[-78.03542367417927,42.573499523803058],[-78.034530580213598,42.573648780616466],[-78.033322519429717,42.573521611792962],[-78.032524364613693,42.572999216851201],[-78.031832746354539,42.572175106341611],[-78.030481381392434,42.570291432219157],[-78.029762525662832,42.569204865111935],[-78.02897221423116,42.568574179725772],[-78.028371393977096,42.568158465778488],[-78.028090771328422,42.567904049313583],[-78.028298449992306,42.567232915456408],[-78.028738312233543,42.566901632703733],[-78.029339950650638,42.566772724432113],[-78.030487102434876,42.566752311332415],[-78.032110074130827,42.567131036731588],[-78.032828681939435,42.567264661232201],[-78.033661965549456,42.567313389631288],[-78.034559791440373,42.567290296070929],[-78.036357271074152,42.56679929496805],[-78.041066708643314,42.563228326347257],[-78.044067172100895,42.560921485987876],[-78.046164547364754,42.559438163903643],[-78.047364845530609,42.558414863217592],[-78.048175676179312,42.557577588886673],[-78.048822078566687,42.556752640579496],[-78.04939285739492,42.555916797483547],[-78.050719252009401,42.55229095647681],[-78.051518884550603,42.549134943003608],[-78.051642133835784,42.54855582950271],[-78.051726218818288,42.547564302765636],[-78.051428229832538,42.546747314720157],[-78.051077179256737,42.54637795613408],[-78.050497019950967,42.545900877576322],[-78.049662563089996,42.545483508054986],[-78.049207086646604,42.545038272820975],[-78.048989044713821,42.544645784865409],[-78.048990294598752,42.544092453909933],[-78.0493635607843,42.543211340174473],[-78.049716456296409,42.542616454122275],[-78.050479298685559,42.542398955036127],[-78.051054541984797,42.542473720242953],[-78.05194524533276,42.54249839738781],[-78.052546550864605,42.542373435038591],[-78.053191318432042,42.542137950487074],[-78.054627572189005,42.541362136095479],[-78.055510555028974,42.540974076938234],[-78.056238065365491,42.54046963576328],[-78.056709354064196,42.539839266879362],[-78.057141886825576,42.539613539784362],[-78.058006255444056,42.539399161982473],[-78.058955868301894,42.539066242506749],[-78.059616770105791,42.538322158446363],[-78.060250501844379,42.537289466043518],[-78.060647491878342,42.536183985043429],[-78.060826269417618,42.534775726313114],[-78.060825560060152,42.533652826203635],[-78.060558577795788,42.532843421351252],[-78.059309418267205,42.532289846856457],[-78.058233616455837,42.532330644525658],[-78.05728746779748,42.532898362583047],[-78.05667668858753,42.533399249766049],[-78.055402807122718,42.534648951011611],[-78.054567496127376,42.535355746203415],[-78.053229016106599,42.536277617328686],[-78.052028370598819,42.537261041583292],[-78.050345557146784,42.538785521990917],[-78.049961263505978,42.538896916051087],[-78.048957530266918,42.53908323739855],[-78.048319903880937,42.538876309901006],[-78.048166220976967,42.538697462087136],[-78.047736297541149,42.537764234585588],[-78.046932701857202,42.536654543801653],[-78.043908692488671,42.53574485371994],[-78.043138036618529,42.535413963894136],[-78.042028573989512,42.534803559249951],[-78.041571779939318,42.534351439251097],[-78.041684499146839,42.533780059115152],[-78.042268467223906,42.533457513061059],[-78.042846088095303,42.533193871466253],[-78.043195154169439,42.532874480471257],[-78.044494464392841,42.531309533781311],[-78.045314941957443,42.530500048407809],[-78.046320141568401,42.529956154407827],[-78.047257030028049,42.529505925196752],[-78.047774002044903,42.529156010116616],[-78.0481824634943,42.528793225109894],[-78.048331107816082,42.527971970199708],[-78.048249288211224,42.527549638703881],[-78.048002141979111,42.527099527392863],[-78.04761387431553,42.526836737895479],[-78.046993232227351,42.526508533000992],[-78.045720962151336,42.526442375977631],[-78.045100309552922,42.526670551187102],[-78.044366124504393,42.527097674858815],[-78.043819906082291,42.527714972851875],[-78.043475391406602,42.528376097980782],[-78.042989136709707,42.529027789429421],[-78.042146056801315,42.529255532179398],[-78.041068968049871,42.528909443001098],[-78.04058870840683,42.528342227996568],[-78.040433200897837,42.527591296854283],[-78.040559584032081,42.526470283306487],[-78.040489605710775,42.525557950519698],[-78.040027878860968,42.524799648812788],[-78.039558021969256,42.524205090245587],[-78.039116177283802,42.523406047928802],[-78.038781407831834,42.522655935037548],[-78.03850508610067,42.521832101680545],[-78.038399286749197,42.521105756716608],[-78.066706348539171,42.521037454515813],[-78.088944545957546,42.521103873918079]]]]}},
{"type":"Feature","properties":{"AREA":80935655.6426,"PERIMETER":36126.9391,"TOWN_":496.0,"TOWN_ID":496.0,"TOWN":"Pike","FIPS_MCD":"3612157826","POP1990":1081,"GEOCODE":"0663","Shape_Leng":118471.858421,"Shape_Area":870378885.171},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.088944545957546,42.521103873918079],[-78.118174451893893,42.521270854676885],[-78.124727112838784,42.521354666047444],[-78.148788268840221,42.521569302193797],[-78.170223721236667,42.521604075886074],[-78.188489537146424,42.521677692460017],[-78.190123273614077,42.521684124168694],[-78.19003250010141,42.545791322980996],[-78.190443798095117,42.578033670194465],[-78.190930749528192,42.608997062842619],[-78.178214156415251,42.608834642448734],[-78.133948360644112,42.608873577590693],[-78.124735172682023,42.608800284929622],[-78.118742730295637,42.60875974665224],[-78.111892739780941,42.608687047206587],[-78.107245335033767,42.608655121314627],[-78.103852669754218,42.608590186777469],[-78.097604758095358,42.608500907047535],[-78.088500413383429,42.608353918732739],[-78.088511853221434,42.604306783933723],[-78.08855426496963,42.597837215736689],[-78.088612068478653,42.592448878034986],[-78.088674905843149,42.588081689410579],[-78.08869995552169,42.581864833063214],[-78.08876077459135,42.576690299054739],[-78.08882856285156,42.570587408054898],[-78.088836599701096,42.564936279419534],[-78.089047332388745,42.55810448191442],[-78.089059275213089,42.551920300115846],[-78.089064620333318,42.544374128395567],[-78.089077364268192,42.541880376592225],[-78.089053914806655,42.535729746264622],[-78.088988861008616,42.529179149613249],[-78.088945415356164,42.523226525405612],[-78.088944545957546,42.521103873918079]]]]}},
{"type":"Feature","properties":{"AREA":122205321.39700001,"PERIMETER":44692.19294,"TOWN_":510.0,"TOWN_ID":510.0,"TOWN":"Arcade","FIPS_MCD":"3612102418","POP1990":3938,"GEOCODE":"0028","Shape_Leng":146538.74010200001,"Shape_Area":1313809448.6300001},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.447148990668396,42.519140945126715],[-78.447826606465483,42.519140740683575],[-78.450069141679364,42.519140032442692],[-78.461417618784793,42.519131726560957],[-78.464477069415793,42.519129294083939],[-78.464261400771164,42.522340996428134],[-78.46384403185651,42.536382497963217],[-78.461835578471366,42.604442488727159],[-78.461765182959056,42.606581603655883],[-78.388058650674921,42.606376529474211],[-78.374742594102045,42.606715795890359],[-78.356947993424086,42.607172410760697],[-78.309525282313018,42.608085387992567],[-78.309470771981978,42.606943427663474],[-78.309468565557438,42.583502722458796],[-78.309065554525034,42.553356786753788],[-78.308843896571943,42.521095993692803],[-78.318390420255824,42.520920237288259],[-78.324499860403876,42.520889913448563],[-78.32666026657536,42.520845230355839],[-78.329347791169269,42.520796146960365],[-78.345317806190295,42.520554915132053],[-78.34875557422572,42.52049590099346],[-78.357858769051219,42.520392802124526],[-78.362224888246601,42.520357111367879],[-78.364333755174115,42.520333570974785],[-78.374746041506796,42.520116227238169],[-78.408158559505011,42.519418890393055],[-78.41512771222871,42.51929699030179],[-78.417764620531798,42.51922827736],[-78.417813240893352,42.519227005320971],[-78.424802498722599,42.519197101978939],[-78.442978745673273,42.519108300755242],[-78.447148990668396,42.519140945126715]]]]}}
]
}
{
"type": "FeatureCollection",
"name": "wyomingvillages",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{"type":"Feature","properties":{"FID_Villag":0,"Id":0,"Village_Na":"Perry village","Label":"Perry","Shape_Leng":41269.00961690001,"Shape_Area":66430957.342500001},"geometry":{"type":"MultiPolygon","coordinates":[[[[-77.992301294322573,42.730392974423985],[-77.992141674554702,42.730202032566517],[-77.991757275685458,42.729612810466797],[-77.991246196737251,42.72892345968382],[-77.991083390704347,42.728709427486201],[-77.991019100020537,42.728614642297487],[-77.990723640462576,42.728212247747649],[-77.990642982507794,42.728208101513097],[-77.990558131658261,42.728143664894255],[-77.989513418683458,42.726719314857306],[-77.989512907605345,42.72671861811898],[-77.987706403444761,42.724255475766284],[-77.98579669470044,42.721710190721822],[-77.985684796628334,42.721585077737032],[-77.985481657223971,42.721584994173632],[-77.984971277009052,42.721518100580475],[-77.983770924016653,42.721340553505115],[-77.982663650893159,42.721146354049672],[-77.982420222875618,42.721097977052032],[-77.982406737370127,42.721021094696127],[-77.982347395975012,42.720321427122968],[-77.979903419522429,42.720042507770671],[-77.979340168970353,42.717462324624826],[-77.982727844777216,42.717498624678711],[-77.983803353505905,42.717504136910712],[-77.983894047124252,42.717773469966644],[-77.984197595188832,42.717981951955018],[-77.984567983442133,42.718049538636123],[-77.984656910081185,42.718325428215849],[-77.984843208390203,42.718434927459981],[-77.984941157119252,42.718716239316556],[-77.985476856251211,42.718883597575704],[-77.985583000581073,42.718808220480369],[-77.986159110079697,42.718988455620625],[-77.986460171207057,42.719509724096383],[-77.98643876546943,42.719777622701699],[-77.986162554419252,42.719835561961204],[-77.985358206538379,42.719734862983529],[-77.985400457937345,42.71997597207644],[-77.985607935204897,42.720107263931176],[-77.986155514557396,42.720169192981125],[-77.987296092466536,42.720241143740409],[-77.987447287164585,42.720212509661742],[-77.987673020158226,42.720039292151334],[-77.989962725787862,42.718285198587729],[-77.990831925161814,42.717643997059646],[-77.99085864838429,42.717624283104975],[-77.990989351308571,42.71756574738982],[-77.991072442518501,42.717472303146572],[-77.992241384942602,42.716573675054434],[-77.994020374704277,42.715200260470297],[-77.995523857882162,42.714026168857551],[-77.995789539839208,42.713821686478738],[-77.995837367722288,42.713788350869571],[-77.995837748861703,42.713721422225653],[-77.995933213179342,42.713723684511521],[-77.996151081774954,42.713556197407961],[-77.996711290829737,42.713139000947557],[-77.999752961441743,42.710894775193609],[-78.000068442797215,42.710667092318936],[-78.000498495188836,42.710349635872653],[-78.000561300949755,42.710303272323706],[-78.000633454607424,42.710249899272995],[-78.000707941590491,42.710207288794415],[-78.000726241427699,42.710198422644432],[-78.00540755285239,42.707492180129336],[-78.005388866939597,42.706239177415704],[-78.005369933238455,42.705001750161266],[-78.00536523389124,42.702899238269971],[-78.010141099802098,42.702878406071228],[-78.011805471016032,42.702867761982453],[-78.013419535065452,42.702857953356393],[-78.013664589301172,42.702856453922756],[-78.015914093826908,42.702846013622285],[-78.022555078577767,42.702808319565655],[-78.022835158458648,42.702807339326654],[-78.022830858017301,42.702842377543391],[-78.022824544590975,42.70287093042171],[-78.022821873939606,42.702898607183364],[-78.022837103265175,42.702955846583798],[-78.022839163170971,42.702996052746769],[-78.022849742306676,42.703031833575174],[-78.022872309847642,42.703081069669857],[-78.022828511494623,42.70310318505711],[-78.022800369586705,42.703135204173464],[-78.022784352657752,42.703165495642644],[-78.022775386975923,42.703219941974226],[-78.022746811031041,42.70330018614407],[-78.022730456446453,42.703367991991229],[-78.022721446884532,42.703426898831118],[-78.022713611545896,42.703490278449237],[-78.022706922637056,42.703560812548652],[-78.022700062495389,42.703650100676349],[-78.022688753094229,42.703695597859507],[-78.022671228985644,42.703758930036543],[-78.022651251116258,42.703825823280596],[-78.022649338488918,42.703903526026387],[-78.022655097428029,42.703936602327865],[-78.0226354373888,42.703967768080268],[-78.022606965380646,42.704036405815792],[-78.022610951962349,42.704132000164314],[-78.022603349552327,42.704169478972695],[-78.022605461968226,42.704203431365769],[-78.022619671125412,42.704239227281896],[-78.022625366955509,42.704279452142977],[-78.022616441202686,42.704329428015498],[-78.022589378357196,42.704375741991861],[-78.022598575495635,42.704430274533998],[-78.022596908871407,42.704481179895012],[-78.022580899537587,42.704510577419214],[-78.02257953282799,42.704528434346251],[-78.022598245096461,42.704601770145658],[-78.022588195699925,42.704641914305142],[-78.022579106625187,42.704709752990759],[-78.022562766337373,42.70477577187485],[-78.022555989896475,42.704856129025522],[-78.022552332336645,42.704897141711349],[-78.022546689048596,42.704920637552355],[-78.022538685044836,42.704981151727104],[-78.022527490170617,42.705018631837049],[-78.02251795833179,42.705041000427642],[-78.022503558492517,42.705090771226814],[-78.022527950875585,42.705161750992517],[-78.022535444798692,42.705226100495871],[-78.022530936622744,42.705278480042708],[-78.022520034663884,42.705323685710503],[-78.022510633777216,42.705381396868333],[-78.022519085841637,42.705429076673362],[-78.02254111616287,42.705492901398294],[-78.022544611185452,42.705553064067168],[-78.022540986085886,42.705597108941014],[-78.022528549704589,42.705633369433123],[-78.022508798875336,42.705674958678024],[-78.022495593629102,42.705706454890503],[-78.022491374882378,42.705726679900181],[-78.022480519866619,42.705766523915045],[-78.022477438785657,42.705839752979408],[-78.02246815569336,42.705884367901753],[-78.022453938142334,42.70593908193986],[-78.022434718106254,42.706011040924515],[-78.022438486508193,42.706040834174416],[-78.022451946438139,42.706070672192332],[-78.022445025462275,42.706122447547216],[-78.022441341760683,42.706172446364477],[-78.022448254068749,42.706211784133622],[-78.02243826764655,42.706244487129787],[-78.022426734389072,42.706270034581891],[-78.022428646684133,42.706326613710026],[-78.02243776450328,42.706390376097183],[-78.022449504103008,42.706431521799921],[-78.022453839321571,42.706488111893222],[-78.022464873995261,42.706517940729327],[-78.022454982357942,42.706540519104607],[-78.022426148041873,42.706604095597207],[-78.022424976615667,42.706644582095784],[-78.022417308210919,42.706689205816922],[-78.022420232298415,42.706723162174313],[-78.022425319485052,42.706785711086788],[-78.02243117838799,42.706852434625276],[-78.022434494737865,42.706932841174925],[-78.022458167185036,42.70699369412354],[-78.022475398717688,42.70705273032997],[-78.022480690927821,42.707092653419529],[-78.022472722263259,42.707170621738342],[-78.022473511453271,42.70726232931522],[-78.022472675051986,42.707355219056041],[-78.022472112069437,42.707417742986927],[-78.022483396158094,42.707509501060962],[-78.022483473816578,42.707590486801493],[-78.022480494514511,42.707652400230941],[-78.022485015767472,42.707688747358453],[-78.022502586666334,42.707799593554391],[-78.022491912055543,42.707909107685083],[-78.022489793165505,42.70796507378985],[-78.022491594195216,42.708034155891212],[-78.022491282372528,42.708075700780142],[-78.022444360204929,42.708073017788898],[-78.022446234472199,42.70812637022631],[-78.02244928899276,42.708158999348562],[-78.022449652009513,42.708208425606344],[-78.022432994822339,42.708264916461353],[-78.022437448093271,42.708308407616727],[-78.02244201813042,42.708338797143995],[-78.022448027301252,42.708388849719768],[-78.022454965480009,42.708425205080999],[-78.022463509043646,42.708462762032504],[-78.022467989147344,42.708503277099091],[-78.022461127381973,42.708547903859106],[-78.022444519613884,42.70859903308164],[-78.022450457890201,42.708656825633881],[-78.02245019516991,42.708686000460951],[-78.022444055621179,42.708740160773445],[-78.022421486339937,42.708736478044514],[-78.02243083310843,42.708774038930727],[-78.022428066961297,42.708812133748133],[-78.022418671959599,42.708869255229779],[-78.022420482430761,42.708937146340546],[-78.022424613982807,42.70901636582748],[-78.02242978713106,42.709069387819881],[-78.022437550713889,42.709103964731433],[-78.022432175067337,42.709162891988917],[-78.022420458920379,42.709208685990689],[-78.022406054561159,42.709283643834034],[-78.022413509576097,42.709352756316818],[-78.022417759107455,42.70941887687988],[-78.022430130377657,42.709479674451821],[-78.022427331993271,42.709521344888238],[-78.022435714827168,42.709576763751123],[-78.022428494839417,42.709661286798273],[-78.022430273134177,42.709732753523468],[-78.022429297179599,42.709841124089714],[-78.022429589226761,42.709898293010596],[-78.022428935019306,42.709970936144124],[-78.022441113338033,42.710053172147774],[-78.02244642102157,42.710130575279457],[-78.022439417150693,42.710203971424107],[-78.022451041834941,42.710275305420978],[-78.022470054455297,42.710343108822393],[-78.02249200266219,42.710413386972476],[-78.022479932252864,42.710438174672262],[-78.022434854092751,42.710510581307105],[-78.022417611322538,42.71061643251069],[-78.022426139936556,42.710697020282112],[-78.022444023543756,42.710725777143388],[-78.022449562748392,42.710768395858132],[-78.022458976398383,42.710791922206873],[-78.02252692089165,42.710811915468632],[-78.022545955989855,42.710836034479051],[-78.022535960892796,42.710876942264861],[-78.022520206512596,42.710899798900599],[-78.022492061420678,42.710980017998999],[-78.022477549798239,42.711031739029892],[-78.022457705763102,42.711097441782236],[-78.022446969605966,42.711138616902957],[-78.022438410835179,42.711184446160928],[-78.022424367991974,42.711222600958422],[-78.022429641822384,42.711253753726709],[-78.02242095641077,42.711313776554384],[-78.022410977128544,42.711353045953942],[-78.02240787479144,42.711395109195486],[-78.022412598807549,42.711419673964762],[-78.022399643396824,42.711460018083073],[-78.022392468113864,42.711516775006238],[-78.022386119408793,42.711646162488833],[-78.022377684718933,42.711678338302711],[-78.022402970701833,42.711748359129523],[-78.022394221209538,42.711815485483385],[-78.022379545187874,42.711882851977627],[-78.022363832062823,42.711942293917879],[-78.022358934949921,42.7119927809728],[-78.02236055805902,42.712017909409482],[-78.022349331564612,42.712031231178663],[-78.022317638130772,42.712014968695613],[-78.022302073987944,42.712016530891731],[-78.022297289955191,42.712054459155055],[-78.022295507675025,42.712128715377219],[-78.022281093127333,42.712208096028313],[-78.022271925298497,42.712321635237153],[-78.02228315006262,42.712390766162429],[-78.022299046970119,42.712434802193819],[-78.022274313051412,42.712467446388615],[-78.022275480171814,42.712502399682911],[-78.022305604521264,42.712528759757902],[-78.022358394381499,42.71258689973925],[-78.022388290124312,42.712638377354381],[-78.022428623602067,42.712682258493111],[-78.022456900990278,42.712749020652055],[-78.02246143503605,42.712821123806911],[-78.022549906823173,42.712864148671962],[-78.022567503461175,42.712924849349463],[-78.022624017151998,42.713022052936047],[-78.022653233795495,42.713066700583411],[-78.022701771426242,42.713104069798099],[-78.02275108939979,42.713137076616228],[-78.022779672110943,42.713169979211131],[-78.02278310059026,42.713200030920518],[-78.022770334210051,42.713220172660066],[-78.02270027586566,42.713228838451606],[-78.022665987617216,42.713254062929821],[-78.022615261235515,42.71325436280322],[-78.022578446623584,42.713230700498762],[-78.022549286515513,42.713179772090108],[-78.022522275649138,42.713136773668566],[-78.022461426190162,42.713150947109895],[-78.0223937516474,42.713183378295767],[-78.022268122559183,42.71323682443218],[-78.022193867478748,42.713259940814538],[-78.022155883932314,42.71328378315804],[-78.022138714072057,42.713340488365979],[-78.022124902639021,42.713393663959081],[-78.022081985020506,42.713431677183074],[-78.022012685275811,42.713479664538177],[-78.021881162972889,42.713530079036396],[-78.021771937397702,42.713530089896935],[-78.021671299139015,42.713522220604055],[-78.021593741649099,42.713541774326742],[-78.021546324301042,42.713544272156568],[-78.021466860699775,42.713570092960431],[-78.02137684700368,42.713615793392748],[-78.021350317854939,42.713662203241775],[-78.02063457190448,42.713665064803514],[-78.020430714096733,42.713666659191333],[-78.020141975765341,42.713665135947103],[-78.020008821511723,42.713664433274182],[-78.019798986955834,42.713662489775203],[-78.016482835352988,42.713670950154679],[-78.016464312884082,42.71590354925231],[-78.016463828611592,42.715956343585546],[-78.016456454162181,42.716754597511226],[-78.016453780387991,42.716989020013166],[-78.016453454248065,42.717057564920957],[-78.016407842391502,42.717165159759055],[-78.016410735443273,42.71727529215525],[-78.016449754750894,42.718759983337073],[-78.016431244476891,42.719169934657906],[-78.016435743956905,42.719319129419873],[-78.016413050387598,42.721177872543393],[-78.016348680375003,42.726449461351045],[-78.016344005360367,42.726832406664293],[-78.016330208630492,42.728055719880146],[-78.016304352327566,42.730348938182736],[-78.013776824007095,42.7303507556434],[-78.013609810115099,42.730350874545508],[-78.009747729894997,42.730336951914076],[-78.007124113363403,42.730327418379829],[-78.005720282135783,42.730327677103418],[-78.005436027872989,42.730323521426186],[-78.004359729118804,42.730322899835443],[-78.001059274622818,42.730325686988635],[-77.999185951489295,42.73034526798417],[-77.996416618936806,42.730374165825722],[-77.995874990826223,42.730361716374389],[-77.992414592235662,42.730397625513945],[-77.992301294322573,42.730392974423985]]]]}},
{"type":"Feature","properties":{"FID_Villag":2,"Id":0,"Village_Na":"Attica village","Label":"Attica","Shape_Leng":29313.659190499999,"Shape_Area":42537832.037},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.285307783865264,42.869577869756974],[-78.284811995904789,42.86958040834584],[-78.283930179051822,42.8702474817172],[-78.283008878669932,42.870701541547213],[-78.28194279952092,42.871039649217856],[-78.281022163880394,42.87135212996148],[-78.280973263306592,42.871278326443239],[-78.279772629418758,42.871175058266289],[-78.278926663999059,42.871463801180539],[-78.279138955347037,42.871951187027442],[-78.277138437564687,42.872527671885749],[-78.277140638579439,42.872818454678516],[-78.27777379823668,42.874357416788087],[-78.27840158365548,42.874259464856003],[-78.278586535894718,42.874759971439623],[-78.279321396983818,42.875196024175146],[-78.280946006837979,42.875879592923489],[-78.280986484225267,42.878005290462568],[-78.273992235086155,42.877997926061781],[-78.272150737312288,42.876132966949598],[-78.274380564777857,42.875152347346791],[-78.273969633109687,42.874506864510955],[-78.274455026227457,42.874208959769888],[-78.27486850429419,42.874035510497109],[-78.274346251658628,42.87343406308937],[-78.27409440204606,42.873034247057355],[-78.273909969029532,42.869591839821581],[-78.272075230252355,42.86956316727759],[-78.270542682040301,42.869542732717711],[-78.270097936170643,42.86953661307026],[-78.268623460626756,42.869543865789332],[-78.267279224448473,42.869548609971453],[-78.2671004524842,42.869549877984639],[-78.266924036541781,42.869551129725295],[-78.266032136808434,42.869556593741187],[-78.265817448618265,42.869557729582297],[-78.265817447611326,42.869557687268944],[-78.265816184096053,42.869514093987547],[-78.265808982624321,42.869265627312252],[-78.265698798467668,42.865205405948096],[-78.265694711470687,42.865054727496414],[-78.265692478749671,42.864589450621494],[-78.265666532744092,42.863459168919611],[-78.26196731622646,42.86274983462306],[-78.262074488926928,42.862354221576688],[-78.260597896513715,42.862078142308455],[-78.260270948380494,42.861646716777301],[-78.260018964595119,42.861289499703169],[-78.262108107685592,42.861697301423952],[-78.262173913365672,42.861534791844875],[-78.262816273911284,42.861658517013893],[-78.262964215131632,42.861295165168173],[-78.262912387035954,42.859091491694159],[-78.265550969135035,42.85971371586367],[-78.265532453635302,42.858972280448718],[-78.265491966859358,42.857615634889633],[-78.265486479324437,42.857415175216353],[-78.265439004070856,42.85548584229393],[-78.269497532821717,42.855424715876104],[-78.269960130793905,42.855413472737588],[-78.273533748744185,42.855337189507409],[-78.277199690281691,42.855258822614886],[-78.277311195282536,42.855254933803948],[-78.277418784132124,42.85525117935552],[-78.280985609622064,42.855199543857346],[-78.281558426601222,42.855200904134357],[-78.284365112025824,42.855191789271977],[-78.284551846088036,42.855191456710997],[-78.288709726229641,42.855202699991416],[-78.295062421280349,42.855185481172889],[-78.295046660271709,42.859094067131252],[-78.295045657087144,42.859203946230423],[-78.29505039230007,42.859323682853585],[-78.2952099804413,42.864552593014892],[-78.295359824938714,42.869653938835839],[-78.295359827181329,42.869653982952507],[-78.293222979691052,42.869632702831993],[-78.292843191506265,42.869628912966647],[-78.291876367575114,42.869619269778774],[-78.289390801610281,42.869591591458466],[-78.289083904112019,42.869586464795447],[-78.288842345049758,42.869582429951933],[-78.287774831895845,42.86956519402495],[-78.285307783865264,42.869577869756974]]]]}},
{"type":"Feature","properties":{"FID_Villag":3,"Id":0,"Village_Na":"Silver Springs village","Label":"Silver Springs","Shape_Leng":25225.642882200002,"Shape_Area":27854958.174800001},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.074155259758584,42.66353119170207],[-78.074156181107114,42.663291728863513],[-78.074158329264037,42.662802123887836],[-78.074157479057931,42.662731733661325],[-78.074158036360586,42.662663452687617],[-78.074160125677537,42.662182092834314],[-78.074162340911016,42.660670192275816],[-78.074157935612902,42.660467472070302],[-78.074163165842933,42.65968027946856],[-78.075281590619909,42.659685246357334],[-78.075282164501843,42.656276302165516],[-78.075268122410478,42.653462475985911],[-78.075267832910654,42.652781222591713],[-78.075270161277388,42.651778845615382],[-78.076618131790482,42.651784817392823],[-78.076808711985223,42.651782793103031],[-78.077258544543511,42.65178538214375],[-78.079272914193169,42.651794005202959],[-78.083221846529227,42.65181981716642],[-78.083465027026804,42.651820878796535],[-78.086918239509174,42.651842344285228],[-78.088740850487341,42.651851179479422],[-78.089907375508858,42.651852954034162],[-78.090286508136344,42.651850347515229],[-78.0909405311276,42.651854162299557],[-78.090954400463005,42.653350129333084],[-78.091515327771873,42.654091311783638],[-78.091852226449916,42.654590833128282],[-78.092293996991486,42.655390438209068],[-78.092550278957845,42.655916041452656],[-78.092779255514145,42.65650555245481],[-78.09296957882988,42.6572796831421],[-78.092991300154281,42.657417527044771],[-78.09350471041077,42.660630366222243],[-78.09387422016836,42.662695806142779],[-78.094170667330914,42.664362371173574],[-78.094220253513612,42.664650328792263],[-78.094442303115031,42.666060860120503],[-78.094491987944906,42.666518823875684],[-78.094489294121445,42.666862547647455],[-78.094452233508619,42.66722184854612],[-78.094404498171684,42.667485623732588],[-78.094318600614173,42.66776383987041],[-78.094237083991715,42.667968495035026],[-78.094039840710565,42.668372326804551],[-78.093872663209382,42.668823746318445],[-78.093801643427099,42.669144990225199],[-78.093593886096073,42.672288063913513],[-78.093571793351771,42.672620657341042],[-78.093562767582725,42.672790167140711],[-78.093528169493908,42.67343993304975],[-78.09342539888155,42.67344174049019],[-78.093444042684126,42.673975395176967],[-78.093483342469582,42.674301322740526],[-78.093556479060837,42.675518842140022],[-78.093562823063905,42.675630557403174],[-78.091340331817818,42.673372434466621],[-78.090279570915257,42.672301131187055],[-78.089074390593652,42.67106938342932],[-78.088798442883657,42.670787798138029],[-78.087169900765119,42.669100585507394],[-78.086566978665132,42.668478512204359],[-78.086249432077551,42.668149730729162],[-78.086047763637396,42.667940710992525],[-78.084932428412813,42.666789715193495],[-78.082999845523034,42.66479344850827],[-78.082340321383583,42.664111621818044],[-78.082341039754795,42.664022173821493],[-78.082340263680138,42.663850271228249],[-78.082343442842557,42.663722950358817],[-78.082342468656606,42.663575714779938],[-78.082340401566881,42.663564565080627],[-78.081578095415807,42.663562273922103],[-78.081152995057991,42.663559817429039],[-78.080727977447665,42.663560115402333],[-78.080467115854304,42.663558970290801],[-78.077917057397244,42.663552072464562],[-78.074155259758584,42.66353119170207]]]]}},
{"type":"Feature","properties":{"FID_Villag":4,"Id":0,"Village_Na":"Gainesville village","Label":"Gainesville","Shape_Leng":22411.247064700001,"Shape_Area":23792147.971000001},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.124371477350508,42.64754612614027],[-78.124366089214618,42.646585945891495],[-78.124369217152449,42.645002432749138],[-78.124341567557209,42.641122739446864],[-78.124342028366101,42.641045467552438],[-78.124342732137237,42.640964339020265],[-78.124327877260285,42.638629202176226],[-78.124329193930123,42.637632755139343],[-78.124328544697406,42.637335278831415],[-78.124332106681635,42.636464443922229],[-78.124330519292485,42.636294748481326],[-78.124331672625161,42.635365249121193],[-78.125175753626976,42.635364438035417],[-78.125337468502622,42.635365084817344],[-78.129388274404945,42.63537383578948],[-78.129609090429,42.635372518637588],[-78.130306749662722,42.635380658462601],[-78.130335133894562,42.635378677626441],[-78.13400952744108,42.635383720495255],[-78.134134125276589,42.635385259842629],[-78.134257826888259,42.635385791750416],[-78.135752724513438,42.635390339834522],[-78.14005096592885,42.63541124879935],[-78.140044892222178,42.636266779388492],[-78.140045002769128,42.638249389765697],[-78.140042777337825,42.638398994415525],[-78.140042942785144,42.638539526495528],[-78.140042116915353,42.638824314143172],[-78.141028623504113,42.638820422841754],[-78.141313213912966,42.638819297001547],[-78.14198349483155,42.638816643311081],[-78.142203820938875,42.638815771740163],[-78.144263375955333,42.638807594617397],[-78.147294881052744,42.638808639584177],[-78.147647527003244,42.638808754575152],[-78.147837879119805,42.638810019592512],[-78.148873756783871,42.638805993678538],[-78.14887363185008,42.638823947084667],[-78.14887265089385,42.638964913234346],[-78.148856643525093,42.641265073251823],[-78.148853493559457,42.642295492671003],[-78.148851512689362,42.642580100294175],[-78.144316923544537,42.641670158670699],[-78.144320101401888,42.641974622316503],[-78.144324510138276,42.642904104548542],[-78.144321213251615,42.644818783251878],[-78.144316232582142,42.647476927855422],[-78.141130370019937,42.64749262695905],[-78.140732729042682,42.647494584841631],[-78.135492491837184,42.647505665162292],[-78.134238033027742,42.647511234675655],[-78.134107918791358,42.647510990866188],[-78.133989281325611,42.647510064529179],[-78.128915319884754,42.647527851149391],[-78.124371477350508,42.64754612614027]]]]}},
{"type":"Feature","properties":{"FID_Villag":5,"Id":0,"Village_Na":"Arcade village","Label":"Arcade","Shape_Leng":64527.684678999998,"Shape_Area":72026630.229100004},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.410410201047824,42.543501908518465],[-78.410456340754436,42.540479539461181],[-78.41045398354558,42.540380376667279],[-78.410698989484928,42.540291814173344],[-78.410710572809563,42.540389160607489],[-78.41074362675856,42.540855448686699],[-78.411391202587581,42.540734545964142],[-78.411256325879194,42.540194912567017],[-78.411232942704956,42.540101508772295],[-78.411660246605024,42.539950683864404],[-78.411659504716482,42.5398504530772],[-78.411646943317123,42.538155672720592],[-78.411613949699188,42.537104848852266],[-78.41029899488899,42.537100965524232],[-78.410273175059444,42.535157580306944],[-78.410272329421844,42.535052975719729],[-78.411579084865167,42.535045890660435],[-78.411578282337331,42.534961180490299],[-78.411560138111639,42.534281815984976],[-78.411539696994495,42.533487980262507],[-78.406900821489799,42.533544800676111],[-78.406863374845798,42.532239978490473],[-78.41150659787894,42.532177867031876],[-78.411504357865454,42.530404800822218],[-78.411494233103994,42.52939390566852],[-78.41232632618086,42.5288461394032],[-78.412407140800354,42.528792937416561],[-78.412478435277293,42.528745667513476],[-78.413552215670649,42.528033774279521],[-78.413827535925265,42.527852610192568],[-78.414107659986939,42.527668287154391],[-78.414383216016887,42.527486965419619],[-78.414481243385495,42.527420871941153],[-78.414564169768653,42.527364957190301],[-78.415557069141471,42.526711786034348],[-78.415641406790243,42.526656306498623],[-78.415907059780722,42.526478610895175],[-78.415739694076223,42.526340886219501],[-78.41561062202301,42.526428631161615],[-78.413955298152516,42.525236453928919],[-78.413313498042228,42.525685094473253],[-78.412015469935568,42.524727204493701],[-78.411664898326876,42.524957932590702],[-78.411573588524718,42.525018029798531],[-78.409041434774807,42.523046350146416],[-78.409135802882929,42.5229883581396],[-78.414777930770001,42.519516929549354],[-78.414778749957165,42.519516425697574],[-78.414805299532674,42.519516261305171],[-78.417772420528522,42.519497813738049],[-78.417773777411199,42.519498307252761],[-78.421156842529626,42.519379535767897],[-78.422249254297341,42.519340563980755],[-78.422991948916348,42.519313427429346],[-78.423657548014845,42.519292438250147],[-78.423846742383262,42.519285956978244],[-78.42471744735181,42.519255170251149],[-78.424728461011611,42.519511695258018],[-78.424740296552017,42.519748372905092],[-78.424759487163598,42.520206668372452],[-78.424769064143206,42.520443342860503],[-78.424782039096016,42.520676672098951],[-78.424790486492213,42.520912511342289],[-78.424817326721893,42.521475349741799],[-78.424818391495236,42.52150043752571],[-78.424695521954249,42.521807173830616],[-78.424574914299342,42.52211224220256],[-78.424361015769321,42.522649657601981],[-78.424289351899318,42.522824334874592],[-78.424172167177886,42.523115188498096],[-78.424117133266535,42.523255543977733],[-78.424302395564837,42.523591864204271],[-78.424455152546003,42.523869044648556],[-78.424601892457943,42.524136069482033],[-78.424878281825542,42.52465176160581],[-78.424908988153376,42.524649916201355],[-78.424919506189951,42.524790648981359],[-78.424942048831028,42.525064070812007],[-78.42496886900841,42.525389379857494],[-78.424437731684677,42.525417306348075],[-78.424454783812692,42.525636212295765],[-78.424475935594202,42.52590882019534],[-78.424495855628408,42.526186302283655],[-78.424517570941717,42.526463857966867],[-78.424527932986621,42.526604436573855],[-78.424323131573217,42.526613562113546],[-78.424347473370744,42.526914440492597],[-78.424366080772629,42.527175231353034],[-78.424922545438079,42.527157770881729],[-78.424938433346824,42.527436048504242],[-78.424950952044142,42.527627707379573],[-78.424963820369271,42.527835656384006],[-78.427430225963008,42.527827304602546],[-78.427407708694659,42.530059176618579],[-78.428762223328945,42.530056312547622],[-78.432230999903226,42.530049793038316],[-78.432412360067914,42.530049438915526],[-78.436099327182077,42.530039217564862],[-78.440019398745562,42.53002047467443],[-78.445929916758274,42.529979421313186],[-78.447867054403943,42.529970862160823],[-78.447869738599337,42.52982207171614],[-78.447874207322144,42.529175912472056],[-78.447904467807206,42.525166045840287],[-78.447962036032138,42.522034099958773],[-78.448007732306195,42.519164937457489],[-78.449749178323444,42.519159644055172],[-78.461349445800323,42.519130468282036],[-78.460014183566955,42.521200472048172],[-78.458346278133277,42.523783652634684],[-78.457443151151296,42.525167611577764],[-78.456968467191189,42.52588192163401],[-78.456975151147773,42.525989076700156],[-78.456146577927555,42.527245840017116],[-78.455788469946455,42.527804126291919],[-78.455685902721868,42.527904957622248],[-78.455603580482148,42.52798249510915],[-78.455524327642834,42.528091730297078],[-78.454738672391571,42.529272372640591],[-78.454718426130412,42.529314156164268],[-78.45470461839092,42.529357350452415],[-78.454697421919576,42.529401415533911],[-78.454696926718427,42.529445799639994],[-78.454625259704997,42.529543193225507],[-78.454500271428756,42.529619246883748],[-78.454289229990295,42.52975192013681],[-78.454011772189304,42.529924412070628],[-78.453989913327533,42.529952779481285],[-78.454597835051359,42.529951395752803],[-78.455218993217002,42.529949189051763],[-78.45676771069067,42.529939888434015],[-78.45673686569117,42.530859900764298],[-78.456716435402228,42.531408332573626],[-78.45665529394887,42.532976805255849],[-78.456645152796227,42.533092442922609],[-78.456643599030471,42.533208316958465],[-78.456650634617162,42.533324080758668],[-78.456666238398824,42.533439384990182],[-78.456690364866091,42.53355388299201],[-78.456719920788146,42.533628483946998],[-78.456757633081864,42.533701044876658],[-78.456803248340449,42.533771079342593],[-78.456856461992174,42.533838117953984],[-78.457885954424697,42.534812889910697],[-78.457984711571001,42.53492283022382],[-78.458075223869542,42.535036586712664],[-78.45815722294337,42.535153819698188],[-78.45823046598511,42.535274183226335],[-78.458280057091727,42.535355335364692],[-78.458322750404008,42.535438606406565],[-78.458358380985814,42.535523673879872],[-78.458386811903665,42.53561021174103],[-78.458402651353396,42.535677576135285],[-78.458410044654144,42.53574573165875],[-78.458408930843547,42.535814102068507],[-78.458399317139865,42.53588210579246],[-78.458381287441057,42.535949167642336],[-78.45835499258736,42.536014718803067],[-78.458320656434651,42.536078204041779],[-78.457957270136347,42.536597675872827],[-78.457867950036771,42.536567206249863],[-78.457267894247636,42.536372389565294],[-78.457111093956101,42.53606514636197],[-78.456581199131534,42.535681224341197],[-78.456572680286712,42.535974296860175],[-78.456569280266763,42.536086835062655],[-78.456564776276281,42.536218547063505],[-78.456537842008643,42.537436569052588],[-78.456534127763717,42.53759061598911],[-78.456489805445912,42.539366742834503],[-78.456388839219599,42.539368573733789],[-78.455149190637215,42.539392761377471],[-78.454607168480294,42.539404399752144],[-78.452990756597302,42.539435519415697],[-78.451582429435419,42.539462728132236],[-78.449970827715603,42.539494630885173],[-78.449327062673007,42.539507591388031],[-78.449221995189149,42.539509710064834],[-78.448787705010091,42.539518453623209],[-78.447719877046993,42.539540419245732],[-78.445769673739264,42.539581866165967],[-78.442441133430108,42.53964493011393],[-78.439841270736537,42.539693492801668],[-78.438994457685155,42.539708124843166],[-78.438003326180066,42.539727272403283],[-78.43747790527442,42.539736532610462],[-78.437252646260404,42.539741233901808],[-78.435454730871754,42.539785341765352],[-78.435270611416883,42.539791563334461],[-78.431899017964099,42.539854562482191],[-78.430207799513084,42.539877056694735],[-78.427362071458148,42.539922803341717],[-78.427288205300883,42.5399232320731],[-78.4272322669716,42.539923556457161],[-78.424768801774277,42.539963884843111],[-78.422917233856637,42.539992118986142],[-78.421842691800535,42.540011279979325],[-78.42002123056298,42.540037509365199],[-78.417829627945636,42.540072175535357],[-78.417644556657422,42.540075510828117],[-78.415272077324445,42.540096344078947],[-78.415074608351517,42.540098077039801],[-78.41422247850592,42.540105544661742],[-78.414218377639784,42.540768298410988],[-78.414211295183733,42.541046809403042],[-78.414123516460009,42.549920596731013],[-78.412903825210904,42.549947706679262],[-78.412899100723735,42.550707056982425],[-78.412062231730488,42.550713574199627],[-78.411227611281916,42.550721060081749],[-78.41039281652742,42.550728542322467],[-78.410392615973706,42.550696666861178],[-78.410366144048496,42.546519584162155],[-78.410394953945698,42.544048532611555],[-78.41040395365043,42.543774207587852],[-78.410410201047824,42.543501908518465]]]]}},
{"type":"Feature","properties":{"FID_Villag":6,"Id":0,"Village_Na":"Castile village","Label":"Castile","Shape_Leng":27423.028456100001,"Shape_Area":38043994.161899999},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.040567919370091,42.638971600358907],[-78.040552185542495,42.638318617851596],[-78.040522181903029,42.637042518428267],[-78.040465851879688,42.635167224720547],[-78.040453318804282,42.634695884211901],[-78.040442807697616,42.634230538170208],[-78.040415571134858,42.633058805394036],[-78.040395620447171,42.632096128260798],[-78.040392167062237,42.631937165675801],[-78.040378734646382,42.631371926258581],[-78.040340123962665,42.629974700410756],[-78.04031505276626,42.629063831842394],[-78.040276517866644,42.627366772316734],[-78.04022014954468,42.625711914755996],[-78.040216821150707,42.625654043733945],[-78.040204646512919,42.62529185261203],[-78.040185193361836,42.624605741087635],[-78.040186269426343,42.624532313729262],[-78.040185265620607,42.62445848489385],[-78.040150634451592,42.623132232945991],[-78.041834473779403,42.623114741907152],[-78.044089159513163,42.623092842569761],[-78.044363074057188,42.623092719291428],[-78.04445574676329,42.623091157645902],[-78.044552519349551,42.623087298839266],[-78.044647913561604,42.623088488433552],[-78.046109839470674,42.62310799872138],[-78.051153551273728,42.623072131223594],[-78.054132773486799,42.62305212260182],[-78.057833268578591,42.623024789644283],[-78.05869219546139,42.623018297579499],[-78.058779582440479,42.622959051012366],[-78.058868457358997,42.622895050609891],[-78.059207662562784,42.622650732952728],[-78.059305459950679,42.622579446709253],[-78.059387610272026,42.622519739988164],[-78.05953540699079,42.622417540412258],[-78.059929204224645,42.622132290480216],[-78.060439870855092,42.621766043293398],[-78.060961502870342,42.621404842962257],[-78.061683917013056,42.621944620882225],[-78.062407411569211,42.622488185619815],[-78.062854505662315,42.622825238642129],[-78.062940031068536,42.62288945306414],[-78.064295304511035,42.621887680742958],[-78.064402234731133,42.62336232778285],[-78.064475164123522,42.624368035540414],[-78.063118074593319,42.624360574573615],[-78.063011370697126,42.624442305330234],[-78.062982356060388,42.626652853045087],[-78.06297894257257,42.627062610053535],[-78.062974452858754,42.627339746567955],[-78.062969806972603,42.627611916522532],[-78.062969588579747,42.627661837674445],[-78.062953847429739,42.628854566145947],[-78.062953380290196,42.628921755849746],[-78.062952676109603,42.62899515447112],[-78.06295713923916,42.629814897668972],[-78.062951158803727,42.630864384663589],[-78.063102676612004,42.630918119879091],[-78.064353098665464,42.632729018730743],[-78.064283749376699,42.63276134969604],[-78.065261723816548,42.634149918466306],[-78.068541385021319,42.638929231375741],[-78.068116656153663,42.638929189616796],[-78.058651629014904,42.638883094000398],[-78.058421532847575,42.638883336975184],[-78.058327221706847,42.638882109780724],[-78.057593135307854,42.638876840265269],[-78.05532861804943,42.638868501038303],[-78.053908003042991,42.638898898821374],[-78.053804128508915,42.638899856338277],[-78.05369929921909,42.638900815647801],[-78.051429963264013,42.638926788551416],[-78.050851978938681,42.638932041398959],[-78.048177997997314,42.63896336723549],[-78.046437320495741,42.638984123642182],[-78.044613832090988,42.639005575042844],[-78.043647216657433,42.639014055702191],[-78.043246383821113,42.639017969355734],[-78.042570385249718,42.639024090185487],[-78.04057069605372,42.639041283614674],[-78.040567919370091,42.638971600358907]]]]}},
{"type":"Feature","properties":{"FID_Villag":7,"Id":0,"Village_Na":"Warsaw village","Label":"Warsaw","Shape_Leng":43948.629071800002,"Shape_Area":115540486.292},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.12450450155869,42.725007472501332],[-78.124501439149483,42.724504086777337],[-78.131167259460355,42.724554961785785],[-78.132579598697646,42.724565628445539],[-78.132705483578619,42.724567150219222],[-78.13837988557664,42.724635712218777],[-78.140190130118782,42.724652887276868],[-78.140742140879141,42.724658057058406],[-78.141301461048698,42.724663351424546],[-78.141862631388221,42.724669473017769],[-78.142057435708651,42.724670797392321],[-78.142415165373279,42.72467528493047],[-78.144005493495143,42.724692941709485],[-78.145471518284623,42.724707510220554],[-78.14658798268249,42.724720464292517],[-78.146775132378878,42.724722884855453],[-78.148423386700088,42.72474246291231],[-78.148807144510698,42.724746933019183],[-78.150612395868748,42.724772283186084],[-78.153379715040657,42.724806552783292],[-78.153907935175994,42.724823116332395],[-78.157132264537978,42.724859099250232],[-78.15712767347145,42.725215925392988],[-78.1571268436563,42.725351199610088],[-78.157098836242199,42.727323708312028],[-78.157099223006952,42.728174242254582],[-78.157099238541264,42.728206742086442],[-78.157101390946011,42.732950754572393],[-78.157105890755645,42.737679927746093],[-78.157101818911613,42.739124067244155],[-78.157099985100004,42.739474265262835],[-78.157100065386786,42.739524046356252],[-78.157100995374918,42.739581718550539],[-78.157093916742483,42.740470314904101],[-78.157084118564541,42.742914170881001],[-78.157110722517402,42.743912545351805],[-78.157177453559925,42.748347479879016],[-78.157177428959045,42.75022514461147],[-78.157124890012668,42.75569760894728],[-78.157121113749412,42.756844091286503],[-78.157114216109861,42.757523915892627],[-78.15709634045065,42.761008365936895],[-78.157097214475257,42.761076372538362],[-78.155949465032165,42.761064187962035],[-78.154833710808433,42.761056231138362],[-78.151617474072253,42.761012105627941],[-78.151065044529815,42.76100886263648],[-78.146476193303968,42.760966815654193],[-78.145387121140161,42.76095605624328],[-78.143665895597465,42.760940212153088],[-78.132496431705931,42.760814533601447],[-78.128375334763987,42.76079562302202],[-78.127232569929021,42.760788625905867],[-78.125901977062426,42.760772459763452],[-78.12548384219501,42.760769943117396],[-78.124453258258953,42.760758410983328],[-78.124462830499169,42.758912726142469],[-78.124497154749761,42.755560517010451],[-78.124500312177815,42.754931230518515],[-78.124554470543472,42.750432196965349],[-78.124564910038728,42.749615555752477],[-78.124580147442387,42.748580019605043],[-78.124568454506502,42.748264850141005],[-78.12458741849062,42.746681085485008],[-78.12458820101412,42.746487215078702],[-78.1245901680673,42.746421892354377],[-78.124608735389828,42.744319814350057],[-78.124610255463764,42.744244863512002],[-78.124609674669642,42.744178202695586],[-78.12461058355477,42.742378476341322],[-78.124616817164409,42.738451882021245],[-78.124605917211071,42.736193159380917],[-78.124591368351943,42.733266540554204],[-78.124583518031088,42.732106234944496],[-78.124577029886538,42.731454415435856],[-78.124554536827048,42.729520922917274],[-78.124527906239905,42.727522523465261],[-78.124525812763054,42.727329953446564],[-78.124514333422724,42.726276305815304],[-78.12450450155869,42.725007472501332]]]]}},
{"type":"Feature","properties":{"FID_Villag":8,"Id":0,"Village_Na":"Wyoming village","Label":"Wyoming","Shape_Leng":18916.6498125,"Shape_Area":19373901.5616},"geometry":{"type":"MultiPolygon","coordinates":[[[[-78.074138367872507,42.824530278844868],[-78.074147092295803,42.824405594186508],[-78.074150376006983,42.823913714224396],[-78.074141650929306,42.823142806245421],[-78.074140690036955,42.823057978548199],[-78.074140918848329,42.82291327633309],[-78.074960907796651,42.822180627946587],[-78.075780529662239,42.821447721697915],[-78.076152918015993,42.821114537880383],[-78.076927569529516,42.820421433069548],[-78.078408972849388,42.819061737655893],[-78.078409521268782,42.819061216139332],[-78.080190828219997,42.817428686162827],[-78.082111031477496,42.815672243842933],[-78.083634155962827,42.815680155699759],[-78.083877080899668,42.815682006096367],[-78.08386412960968,42.817122513661147],[-78.085687709122098,42.818088376641008],[-78.086209004505605,42.818362936410885],[-78.08635231233724,42.818439526479857],[-78.086609289368582,42.818576827927082],[-78.087630305600584,42.819114878409913],[-78.088354305913654,42.819499792969083],[-78.089567632334592,42.820145025178995],[-78.090379926510209,42.820581501114646],[-78.090452364995031,42.82049834616717],[-78.091807278800459,42.818942919928837],[-78.092194960018261,42.819145759458443],[-78.094662468098363,42.820493376950502],[-78.09476989100763,42.820552066916363],[-78.093338836899989,42.822171346165355],[-78.093452865720081,42.822232611477254],[-78.093974388645179,42.822514520384125],[-78.094942097076057,42.823030927567793],[-78.094026540066977,42.824104461443667],[-78.093205419154359,42.825065985618039],[-78.092313412882945,42.826111736862323],[-78.09204397328098,42.826428056514878],[-78.091984696778823,42.826502116219388],[-78.091685331857718,42.826837511203692],[-78.091512569496572,42.827032001404064],[-78.090824153317925,42.827813050548464],[-78.090060340770407,42.828686334160174],[-78.089378688168495,42.829471514874754],[-78.089368739169444,42.829483100230036],[-78.089109508886125,42.829779832705384],[-78.08900529655422,42.829896924110997],[-78.088576380865803,42.830382960355919],[-78.088219811963143,42.830800676969929],[-78.087924379657736,42.831146478329373],[-78.086289804743089,42.833057961708796],[-78.08525284131386,42.832563445505464],[-78.084768076460804,42.832328888008917],[-78.084657537440734,42.832275646803843],[-78.084571301185619,42.832211876046379],[-78.08332603962026,42.831291008362875],[-78.081000876660369,42.829586354237364],[-78.080747594307311,42.829398522229774],[-78.080425537687006,42.829162756374913],[-78.079788638644672,42.828694913987754],[-78.079703635771068,42.828632001070602],[-78.079618631832219,42.828569089885434],[-78.075901503098265,42.825826184715559],[-78.075777324888449,42.825735559847047],[-78.074754237360011,42.82498032411069],[-78.074138367872507,42.824530278844868]]]]}}
]
}
/* --- TMS WEB Core Specific Fixes --- */
/* Removes the default border from the main Form wrapper */
span.card {
border: none;
}
/* --- Login Screen Styling --- */
.login-card {
display: inline-block; /* Or use d-flex on the parent to center it */
width: 100%;
max-width: 350px; /* Better than fixed 300px */
padding: 0;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
background-color: #fff;
}
/* Optional: Custom navbar look for the login screen */
.login-navbar {
max-width: 1200px;
margin: auto;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
border: 1px solid #d3d3d3;
}
/* --- Table Customization --- */
/* Bootstrap has .table-hover, but this sets your specific blue color */
.table tbody tr:hover {
background-color: #d1e7fd;
cursor: pointer;
}
/* --- Pagination Theme Overrides --- */
/* These override Bootstrap's blue to your specific darker blue (#204d74) */
.pagination .page-link {
color: #204d74; /* Text color for standard links */
}
/* Active State (Selected Page) */
.pagination .page-item.active .page-link {
background-color: #204d74;
border-color: #204d74;
color: #fff !important;
}
/* Hover State */
.pagination .page-item:not(.active) .page-link:hover {
background-color: #e9ecef; /* Standard Bootstrap light grey hover */
color: #16344a; /* Darker text on hover */
}
/* --- Utilities --- */
.list-section-header:empty {
display: none;
}
#map_pnlmap > span {
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
position: absolute !important;
}
html, body {
height: 100%;
overflow: hidden;
}
/* iOS safe area: absorb status bar into top nav, home indicator into bottom nav */
@supports (padding-top: env(safe-area-inset-top)) {
#top_nav {
padding-top: calc(0.5rem + env(safe-area-inset-top));
}
#bottom_nav {
padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
}
}
@supports (-webkit-touch-callout: none) {
/* CSS specific to iOS devices */
span.card {
border: none;
/*padding-top: 2em !important;*/
}
.vh-100 {
height: 93vh !important;
}
}
.tab-hidden { display: none !important; }
.connection-status {
display: inline-flex;
align-items: center;
gap: 0.35rem;
min-height: 1.75rem;
padding: 0.2rem 0.55rem;
border: 1px solid rgba(255, 255, 255, 0.35);
border-radius: 999px;
color: #fff;
font-size: 0.75rem;
font-weight: 600;
line-height: 1;
white-space: nowrap;
}
.connection-status-dot {
width: 0.55rem;
height: 0.55rem;
flex: 0 0 auto;
border-radius: 50%;
background-color: #adb5bd;
}
.connection-status-connected .connection-status-dot {
background-color: #75d995;
box-shadow: 0 0 0 0.14rem rgba(117, 217, 149, 0.2);
}
.connection-status-connecting .connection-status-dot,
.connection-status-reconnecting .connection-status-dot {
background-color: #ffd166;
animation: connection-status-pulse 1.4s ease-in-out infinite;
}
.connection-status-offline .connection-status-dot,
.connection-status-stopped .connection-status-dot {
background-color: #ff8b94;
}
@keyframes connection-status-pulse {
0%, 100% { opacity: 0.45; }
50% { opacity: 1; }
}
@media (max-width: 430px) {
.connection-status {
width: 1.75rem;
justify-content: center;
padding-right: 0;
padding-left: 0;
}
.connection-status-text {
display: none;
}
}
@media (prefers-reduced-motion: reduce) {
.connection-status-connecting .connection-status-dot,
.connection-status-reconnecting .connection-status-dot {
animation: none;
}
}
.summary-chevron-icon {
width: 1rem;
height: 1rem;
display: block;
transition: transform 0.15s ease-in-out;
}
/* Expanded => show DOWN (rotate base UP chevron) */
.summary-toggle[aria-expanded="true"] .summary-chevron-icon {
transform: rotate(180deg);
}
.time-vscroll {
height: 100%;
overflow: auto;
}
.time-vscroll thead th {
position: sticky;
top: 0;
z-index: 2;
background: var(--bs-body-bg);
}
.time-vscroll thead th.th-resize {
z-index: 3;
}
.time-table {
table-layout: fixed;
}
.time-table th,
.time-table td {
overflow: hidden;
}
.time-table .dropdown,
.time-dd-toggle,
.time-dd-label,
.cell-input,
.cell-textarea {
min-width: 0;
}
.complaint-detail-tabs .btn-success {
--bs-btn-bg: var(--bs-success-bg-subtle);
--bs-btn-color: var(--bs-success-text-emphasis);
--bs-btn-border-color: var(--bs-success-border-subtle);
--bs-btn-hover-bg: var(--bs-success-border-subtle);
--bs-btn-hover-color: var(--bs-success-text-emphasis);
}
.lds-roller {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-roller div {
animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
transform-origin: 40px 40px;
}
.lds-roller div:after {
content: " ";
display: block;
position: absolute;
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--bs-primary);
margin: -5px 0 0 -5px;
}
.lds-roller div:nth-child(1) {
animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after {
top: 63px;
left: 63px;
}
.lds-roller div:nth-child(2) {
animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after {
top: 68px;
left: 56px;
}
.lds-roller div:nth-child(3) {
animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
top: 71px;
left: 48px;
}
.lds-roller div:nth-child(4) {
animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after {
top: 72px;
left: 40px;
}
.lds-roller div:nth-child(5) {
animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after {
top: 71px;
left: 32px;
}
.lds-roller div:nth-child(6) {
animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
top: 68px;
left: 24px;
}
.lds-roller div:nth-child(7) {
animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after {
top: 63px;
left: 17px;
}
.lds-roller div:nth-child(8) {
animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after {
top: 56px;
left: 12px;
}
@keyframes lds-roller {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectGuid>{27B04508-3F72-45A2-83EF-A007750D2923}</ProjectGuid>
</PropertyGroup>
<ItemGroup>
<Projects Include="lemsEmiMobile.dproj">
<Dependencies/>
</Projects>
<Projects Include="..\..\Server\emiMobileServer.dproj">
<Dependencies/>
</Projects>
</ItemGroup>
<ProjectExtensions>
<Borland.Personality>Default.Personality.12</Borland.Personality>
<Borland.ProjectType/>
<BorlandProject>
<Default.Personality/>
</BorlandProject>
</ProjectExtensions>
<Target Name="lemsEmiMobile">
<MSBuild Projects="lemsEmiMobile.dproj"/>
</Target>
<Target Name="lemsEmiMobile:Clean">
<MSBuild Projects="lemsEmiMobile.dproj" Targets="Clean"/>
</Target>
<Target Name="lemsEmiMobile:Make">
<MSBuild Projects="lemsEmiMobile.dproj" Targets="Make"/>
</Target>
<Target Name="emiMobileServer">
<MSBuild Projects="..\..\Server\emiMobileServer.dproj"/>
</Target>
<Target Name="emiMobileServer:Clean">
<MSBuild Projects="..\..\Server\emiMobileServer.dproj" Targets="Clean"/>
</Target>
<Target Name="emiMobileServer:Make">
<MSBuild Projects="..\..\Server\emiMobileServer.dproj" Targets="Make"/>
</Target>
<Target Name="Build">
<CallTarget Targets="lemsEmiMobile;emiMobileServer"/>
</Target>
<Target Name="Clean">
<CallTarget Targets="lemsEmiMobile:Clean;emiMobileServer:Clean"/>
</Target>
<Target Name="Make">
<CallTarget Targets="lemsEmiMobile:Make;emiMobileServer:Make"/>
</Target>
<Import Project="$(BDS)\Bin\CodeGear.Group.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Group.Targets')"/>
</Project>
program lemsEmiMobile;
{$R *.dres}
uses
Vcl.Forms,
System.SysUtils,
XData.Web.Connection,
Auth.Service in 'Source\Auth.Service.pas',
App.Types in 'Source\App.Types.pas',
ConnectionModule in 'Source\ConnectionModule.pas' {DMConnection: TWebDataModule},
View.Login in 'Source\View.Login.pas' {FViewLogin: TWebForm} {*.html},
View.UserProfile in 'Source\View.UserProfile.pas' {FViewUserProfile: TWebForm} {*.html},
View.Units in 'Source\View.Units.pas' {FViewUnits: TWebForm} {*.html},
App.Config in 'Source\App.Config.pas',
Paginator.Plugins in 'Source\Paginator.Plugins.pas',
View.Complaints in 'Source\View.Complaints.pas' {FViewComplaints: TWebForm} {*.html},
View.Main in 'Source\View.Main.pas' {FViewMain: TWebForm} {*.html},
View.Map in 'Source\View.Map.pas' {FViewMap: TWebForm} {*.html},
View.Admin in 'Source\View.Admin.pas' {FViewAdmin: TWebForm} {*.html},
View.Users in 'Source\View.Users.pas' {FViewUsers: TWebForm} {*.html},
View.EditUser in 'Source\View.EditUser.pas' {FViewEditUser: TWebForm} {*.html},
Utils in 'Source\Utils.pas',
View.ErrorPage in 'Source\View.ErrorPage.pas' {FViewErrorPage: TWebForm} {*.html},
View.ComplaintDetails in 'Source\View.ComplaintDetails.pas' {FViewComplaintDetails: TWebForm} {*.html},
View.UnitDetails in 'Source\View.UnitDetails.pas' {FViewUnitDetails: TWebForm} {*.html},
uMapFilters in 'Source\uMapFilters.pas',
View.ComplaintArchive in 'Source\View.ComplaintArchive.pas' {FViewComplaintArchive: TWebForm} {*.html},
uMapMarkerJs in 'Source\uMapMarkerJs.pas',
Module.Websocket in 'Source\Module.Websocket.pas' {dmWebsocket: TDataModule},
View.DeviceRegistration in '..\CommonSource\View.DeviceRegistration.pas' {FViewDeviceRegistration: TWebForm} {*.html},
View.DeviceManager in '..\CommonSource\View.DeviceManager.pas' {FViewDeviceManager: TWebForm} {*.html};
{$R *.res}
procedure DisplayLoginView(AMessage: string = ''); forward;
procedure DisplayDeviceRegistrationView; forward;
procedure DisplayMainView;
procedure ConnectProc;
begin
if Assigned(FViewLogin) then
FreeAndNil(FViewLogin);
if AuthService.DeviceManagementMode then
FViewDeviceManager := TFViewDeviceManager.CreateNew
else
TFViewMain.Display(@DisplayLoginView);
end;
begin
if not DMConnection.ApiConnection.Connected then
DMConnection.ApiConnection.Open(@ConnectProc)
else
ConnectProc;
end;
procedure DisplayLoginView(AMessage: string);
begin
AuthService.Logout;
DMConnection.ApiConnection.Connected := False;
if Assigned(FViewDeviceManager) then
FreeAndNil(FViewDeviceManager);
if Assigned(FViewMain) then
FViewMain.Free;
TFViewLogin.Display(@DisplayMainView, AMessage);
end;
procedure DisplayDeviceRegistrationView;
procedure OnRegistered;
begin
// Device registered — proceed to login
if Assigned(FViewDeviceRegistration) then
FViewDeviceRegistration.Free;
TFViewLogin.Display(@DisplayMainView);
end;
begin
if Assigned(FViewDeviceRegistration) then
FViewDeviceRegistration.Free;
TFViewDeviceRegistration.Display(@OnRegistered);
end;
procedure UnauthorizedAccessProc(AMessage: string);
begin
DisplayLoginView(AMessage);
end;
procedure StartApplication;
begin
if AuthService.DeviceManagementMode then
begin
DisplayLoginView;
Exit;
end;
// Step 1: device must be registered before login is allowed
if not AuthService.IsDeviceRegistered then
begin
DisplayDeviceRegistrationView;
Exit;
end;
// Step 2: normal JWT auth check
if (not AuthService.Authenticated) or AuthService.TokenExpired then
DisplayLoginView
else
DisplayMainView;
end;
begin
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.CreateForm(TDMConnection, DMConnection);
Application.Run;
DMConnection.InitApp(@StartApplication, @UnauthorizedAccessProc);
end.
...@@ -21,7 +21,7 @@ type ...@@ -21,7 +21,7 @@ type
procedure VerifyVersion(SuccessProc: TSuccessProc); procedure VerifyVersion(SuccessProc: TSuccessProc);
public public
property WsUrl: string read FWsUrl; property WsUrl: string read FWsUrl;
const clientVersion = '0.9.4.9'; const clientVersion = '0.9.5.0';
procedure InitApp(SuccessProc: TSuccessProc; procedure InitApp(SuccessProc: TSuccessProc;
UnauthorizedAccessProc: TUnauthorizedAccessProc); UnauthorizedAccessProc: TUnauthorizedAccessProc);
end; end;
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css" rel="stylesheet"/> <link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css" rel="stylesheet"/>
<!-- App --> <!-- App -->
<script src="lemsEmiMobile.js" type="text/javascript"></script> <script src="WCSOemiMobile.js" type="text/javascript"></script>
<!-- App styles --> <!-- App styles -->
<style></style> <style></style>
......
program WCSOemiMobile;
{$R *.dres}
uses
Vcl.Forms,
System.SysUtils,
XData.Web.Connection,
Auth.Service in 'Source\Auth.Service.pas',
App.Types in 'Source\App.Types.pas',
ConnectionModule in 'Source\ConnectionModule.pas' {DMConnection: TWebDataModule},
View.Login in 'Source\View.Login.pas' {FViewLogin: TWebForm} {*.html},
View.UserProfile in 'Source\View.UserProfile.pas' {FViewUserProfile: TWebForm} {*.html},
View.Units in 'Source\View.Units.pas' {FViewUnits: TWebForm} {*.html},
App.Config in 'Source\App.Config.pas',
Paginator.Plugins in 'Source\Paginator.Plugins.pas',
View.Complaints in 'Source\View.Complaints.pas' {FViewComplaints: TWebForm} {*.html},
View.Main in 'Source\View.Main.pas' {FViewMain: TWebForm} {*.html},
View.Map in 'Source\View.Map.pas' {FViewMap: TWebForm} {*.html},
View.Admin in 'Source\View.Admin.pas' {FViewAdmin: TWebForm} {*.html},
View.Users in 'Source\View.Users.pas' {FViewUsers: TWebForm} {*.html},
View.EditUser in 'Source\View.EditUser.pas' {FViewEditUser: TWebForm} {*.html},
Utils in 'Source\Utils.pas',
View.ErrorPage in 'Source\View.ErrorPage.pas' {FViewErrorPage: TWebForm} {*.html},
View.ComplaintDetails in 'Source\View.ComplaintDetails.pas' {FViewComplaintDetails: TWebForm} {*.html},
View.UnitDetails in 'Source\View.UnitDetails.pas' {FViewUnitDetails: TWebForm} {*.html},
uMapFilters in 'Source\uMapFilters.pas',
View.ComplaintArchive in 'Source\View.ComplaintArchive.pas' {FViewComplaintArchive: TWebForm} {*.html},
uMapMarkerJs in 'Source\uMapMarkerJs.pas',
Module.Websocket in 'Source\Module.Websocket.pas' {dmWebsocket: TDataModule},
View.DeviceRegistration in '..\CommonSource\View.DeviceRegistration.pas' {FViewDeviceRegistration: TWebForm} {*.html},
View.DeviceManager in '..\CommonSource\View.DeviceManager.pas' {FViewDeviceManager: TWebForm} {*.html};
{$R *.res}
procedure DisplayLoginView(AMessage: string = ''); forward;
procedure DisplayDeviceRegistrationView; forward;
procedure DisplayMainView;
procedure ConnectProc;
begin
if Assigned(FViewLogin) then
FreeAndNil(FViewLogin);
if AuthService.DeviceManagementMode then
FViewDeviceManager := TFViewDeviceManager.CreateNew
else
TFViewMain.Display(@DisplayLoginView);
end;
begin
if not DMConnection.ApiConnection.Connected then
DMConnection.ApiConnection.Open(@ConnectProc)
else
ConnectProc;
end;
procedure DisplayLoginView(AMessage: string);
begin
AuthService.Logout;
DMConnection.ApiConnection.Connected := False;
if Assigned(FViewDeviceManager) then
FreeAndNil(FViewDeviceManager);
if Assigned(FViewMain) then
FViewMain.Free;
TFViewLogin.Display(@DisplayMainView, AMessage);
end;
procedure DisplayDeviceRegistrationView;
procedure OnRegistered;
begin
// Device registered — proceed to login
if Assigned(FViewDeviceRegistration) then
FViewDeviceRegistration.Free;
TFViewLogin.Display(@DisplayMainView);
end;
begin
if Assigned(FViewDeviceRegistration) then
FViewDeviceRegistration.Free;
TFViewDeviceRegistration.Display(@OnRegistered);
end;
procedure UnauthorizedAccessProc(AMessage: string);
begin
DisplayLoginView(AMessage);
end;
procedure StartApplication;
begin
if AuthService.DeviceManagementMode then
begin
DisplayLoginView;
Exit;
end;
// Step 1: device must be registered before login is allowed
if not AuthService.IsDeviceRegistered then
begin
DisplayDeviceRegistrationView;
Exit;
end;
// Step 2: normal JWT auth check
if (not AuthService.Authenticated) or AuthService.TokenExpired then
DisplayLoginView
else
DisplayMainView;
end;
begin
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.CreateForm(TDMConnection, DMConnection);
Application.Run;
DMConnection.InitApp(@StartApplication, @UnauthorizedAccessProc);
end.
...@@ -3,13 +3,13 @@ ...@@ -3,13 +3,13 @@
<ProjectGuid>{DB6F5DBF-7E4B-45DA-AFFA-6C8DF15BA740}</ProjectGuid> <ProjectGuid>{DB6F5DBF-7E4B-45DA-AFFA-6C8DF15BA740}</ProjectGuid>
<ProjectVersion>20.4</ProjectVersion> <ProjectVersion>20.4</ProjectVersion>
<FrameworkType>VCL</FrameworkType> <FrameworkType>VCL</FrameworkType>
<MainSource>lemsEmiMobile.dpr</MainSource> <MainSource>WCSOemiMobile.dpr</MainSource>
<Base>True</Base> <Base>True</Base>
<Config Condition="'$(Config)'==''">Debug</Config> <Config Condition="'$(Config)'==''">Debug</Config>
<Platform Condition="'$(Platform)'==''">Win32</Platform> <Platform Condition="'$(Platform)'==''">Win32</Platform>
<TargetedPlatforms>1</TargetedPlatforms> <TargetedPlatforms>1</TargetedPlatforms>
<AppType>Application</AppType> <AppType>Application</AppType>
<ProjectName Condition="'$(ProjectName)'==''">lemsEmiMobile</ProjectName> <ProjectName Condition="'$(ProjectName)'==''">WCSOemiMobile</ProjectName>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Config)'=='Base' or '$(Base)'!=''"> <PropertyGroup Condition="'$(Config)'=='Base' or '$(Base)'!=''">
<Base>true</Base> <Base>true</Base>
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
<DCC_Namespace>System;Xml;Data;Datasnap;Web;Soap;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;$(DCC_Namespace)</DCC_Namespace> <DCC_Namespace>System;Xml;Data;Datasnap;Web;Soap;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;$(DCC_Namespace)</DCC_Namespace>
<Icon_MainIcon>$(BDS)\bin\delphi_PROJECTICON.ico</Icon_MainIcon> <Icon_MainIcon>$(BDS)\bin\delphi_PROJECTICON.ico</Icon_MainIcon>
<Icns_MainIcns>$(BDS)\bin\delphi_PROJECTICNS.icns</Icns_MainIcns> <Icns_MainIcns>$(BDS)\bin\delphi_PROJECTICNS.icns</Icns_MainIcns>
<SanitizedProjectName>lemsEmiMobile</SanitizedProjectName> <SanitizedProjectName>WCSOemiMobile</SanitizedProjectName>
<VerInfo_Locale>1046</VerInfo_Locale> <VerInfo_Locale>1046</VerInfo_Locale>
<TMSWebProject>2</TMSWebProject> <TMSWebProject>2</TMSWebProject>
<TMSWebOutputPath>..\..\Server\bin\WCSO\static</TMSWebOutputPath> <TMSWebOutputPath>..\..\Server\bin\WCSO\static</TMSWebOutputPath>
...@@ -92,14 +92,13 @@ ...@@ -92,14 +92,13 @@
<DCC_RemoteDebug>false</DCC_RemoteDebug> <DCC_RemoteDebug>false</DCC_RemoteDebug>
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo> <VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
<VerInfo_Locale>1033</VerInfo_Locale> <VerInfo_Locale>1033</VerInfo_Locale>
<VerInfo_Keys>CompanyName=;FileDescription=$(MSBuildProjectName);FileVersion=0.9.4.9;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=0.9.3.0;Comments=;LastCompiledTime=2018/08/27 15:18:29</VerInfo_Keys> <VerInfo_Keys>CompanyName=;FileDescription=$(MSBuildProjectName);FileVersion=0.9.5.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=0.9.3.0;Comments=;LastCompiledTime=2018/08/27 15:18:29</VerInfo_Keys>
<AppDPIAwarenessMode>PerMonitor</AppDPIAwarenessMode> <AppDPIAwarenessMode>PerMonitor</AppDPIAwarenessMode>
<VerInfo_MinorVer>9</VerInfo_MinorVer> <VerInfo_MinorVer>9</VerInfo_MinorVer>
<VerInfo_MajorVer>0</VerInfo_MajorVer> <VerInfo_MajorVer>0</VerInfo_MajorVer>
<VerInfo_Release>4</VerInfo_Release> <VerInfo_Release>5</VerInfo_Release>
<VerInfo_Build>9</VerInfo_Build>
<TMSWebSingleInstance>1</TMSWebSingleInstance>
<TMSWebBrowser>1</TMSWebBrowser> <TMSWebBrowser>1</TMSWebBrowser>
<TMSWebSingleInstance>1</TMSWebSingleInstance>
<TMSUseJSDebugger>2</TMSUseJSDebugger> <TMSUseJSDebugger>2</TMSUseJSDebugger>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Cfg_2)'!=''"> <PropertyGroup Condition="'$(Cfg_2)'!=''">
...@@ -465,7 +464,7 @@ ...@@ -465,7 +464,7 @@
<BorlandProject> <BorlandProject>
<Delphi.Personality> <Delphi.Personality>
<Source> <Source>
<Source Name="MainSource">lemsEmiMobile.dpr</Source> <Source Name="MainSource">WCSOemiMobile.dpr</Source>
</Source> </Source>
<Excluded_Packages> <Excluded_Packages>
<Excluded_Packages Name="$(BDSBIN)\bcboffice2k370.bpl">Embarcadero C++Builder Office 2000 Servers Package</Excluded_Packages> <Excluded_Packages Name="$(BDSBIN)\bcboffice2k370.bpl">Embarcadero C++Builder Office 2000 Servers Package</Excluded_Packages>
...@@ -539,9 +538,16 @@ ...@@ -539,9 +538,16 @@
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="Win32\Debug\lemsEmiMobile.exe" Configuration="Debug" Class="ProjectOutput"> <DeployFile LocalName="Source\index.html" Configuration="Debug" Class="ProjectFile"/>
<DeployFile LocalName="Source\index.html" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32">
<RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite>
</Platform>
</DeployFile>
<DeployFile LocalName="Win32\Debug\WCSOemiMobile.exe" Configuration="Debug" Class="ProjectOutput">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteName>lemsEmiMobile.exe</RemoteName> <RemoteName>WCSOemiMobile.exe</RemoteName>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
...@@ -925,13 +931,6 @@ ...@@ -925,13 +931,6 @@
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
<DeployFile LocalName="Source\index.html" Configuration="Debug" Class="ProjectFile"/>
<DeployFile LocalName="Source\index.html" Configuration="Debug" Class="ProjectFile">
<Platform Name="Win32">
<RemoteDir>.\</RemoteDir>
<Overwrite>true</Overwrite>
</Platform>
</DeployFile>
<DeployFile LocalName="template\bootstrap\bootstrap.min.css" Configuration="Debug" Class="ProjectFile"/> <DeployFile LocalName="template\bootstrap\bootstrap.min.css" Configuration="Debug" Class="ProjectFile"/>
<DeployFile LocalName="template\bootstrap\bootstrap.min.js" Configuration="Debug" Class="ProjectFile"/> <DeployFile LocalName="template\bootstrap\bootstrap.min.js" Configuration="Debug" Class="ProjectFile"/>
<DeployFile LocalName="template\bootstrap\dataTables.bootstrap.css" Configuration="Debug" Class="ProjectFile"/> <DeployFile LocalName="template\bootstrap\dataTables.bootstrap.css" Configuration="Debug" Class="ProjectFile"/>
......
/* --- TMS WEB Core Specific Fixes --- */
/* Removes the default border from the main Form wrapper */
span.card {
border: none;
}
/* --- Login Screen Styling --- */
.login-card {
display: inline-block; /* Or use d-flex on the parent to center it */
width: 100%;
max-width: 350px; /* Better than fixed 300px */
padding: 0;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
background-color: #fff;
}
/* Optional: Custom navbar look for the login screen */
.login-navbar {
max-width: 1200px;
margin: auto;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
border: 1px solid #d3d3d3;
}
/* --- Table Customization --- */
/* Bootstrap has .table-hover, but this sets your specific blue color */
.table tbody tr:hover {
background-color: #d1e7fd;
cursor: pointer;
}
/* --- Pagination Theme Overrides --- */
/* These override Bootstrap's blue to your specific darker blue (#204d74) */
.pagination .page-link {
color: #204d74; /* Text color for standard links */
}
/* Active State (Selected Page) */
.pagination .page-item.active .page-link {
background-color: #204d74;
border-color: #204d74;
color: #fff !important;
}
/* Hover State */
.pagination .page-item:not(.active) .page-link:hover {
background-color: #e9ecef; /* Standard Bootstrap light grey hover */
color: #16344a; /* Darker text on hover */
}
/* --- Utilities --- */
.list-section-header:empty {
display: none;
}
#map_pnlmap > span {
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
position: absolute !important;
}
html, body {
height: 100%;
overflow: hidden;
}
/* iOS safe area: absorb status bar into top nav, home indicator into bottom nav */
@supports (padding-top: env(safe-area-inset-top)) {
#top_nav {
padding-top: calc(0.5rem + env(safe-area-inset-top));
}
#bottom_nav {
padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
}
}
@supports (-webkit-touch-callout: none) {
/* CSS specific to iOS devices */
span.card {
border: none;
/*padding-top: 2em !important;*/
}
.vh-100 {
height: 93vh !important;
}
}
.tab-hidden { display: none !important; }
.connection-status {
display: inline-flex;
align-items: center;
gap: 0.35rem;
min-height: 1.75rem;
padding: 0.2rem 0.55rem;
border: 1px solid rgba(255, 255, 255, 0.35);
border-radius: 999px;
color: #fff;
font-size: 0.75rem;
font-weight: 600;
line-height: 1;
white-space: nowrap;
}
.connection-status-dot {
width: 0.55rem;
height: 0.55rem;
flex: 0 0 auto;
border-radius: 50%;
background-color: #adb5bd;
}
.connection-status-connected .connection-status-dot {
background-color: #75d995;
box-shadow: 0 0 0 0.14rem rgba(117, 217, 149, 0.2);
}
.connection-status-connecting .connection-status-dot,
.connection-status-reconnecting .connection-status-dot {
background-color: #ffd166;
animation: connection-status-pulse 1.4s ease-in-out infinite;
}
.connection-status-offline .connection-status-dot,
.connection-status-stopped .connection-status-dot {
background-color: #ff8b94;
}
@keyframes connection-status-pulse {
0%, 100% { opacity: 0.45; }
50% { opacity: 1; }
}
@media (max-width: 430px) {
.connection-status {
width: 1.75rem;
justify-content: center;
padding-right: 0;
padding-left: 0;
}
.connection-status-text {
display: none;
}
}
@media (prefers-reduced-motion: reduce) {
.connection-status-connecting .connection-status-dot,
.connection-status-reconnecting .connection-status-dot {
animation: none;
}
}
.summary-chevron-icon {
width: 1rem;
height: 1rem;
display: block;
transition: transform 0.15s ease-in-out;
}
/* Expanded => show DOWN (rotate base UP chevron) */
.summary-toggle[aria-expanded="true"] .summary-chevron-icon {
transform: rotate(180deg);
}
.time-vscroll {
height: 100%;
overflow: auto;
}
.time-vscroll thead th {
position: sticky;
top: 0;
z-index: 2;
background: var(--bs-body-bg);
}
.time-vscroll thead th.th-resize {
z-index: 3;
}
.time-table {
table-layout: fixed;
}
.time-table th,
.time-table td {
overflow: hidden;
}
.time-table .dropdown,
.time-dd-toggle,
.time-dd-label,
.cell-input,
.cell-textarea {
min-width: 0;
}
.complaint-detail-tabs .btn-success {
--bs-btn-bg: var(--bs-success-bg-subtle);
--bs-btn-color: var(--bs-success-text-emphasis);
--bs-btn-border-color: var(--bs-success-border-subtle);
--bs-btn-hover-bg: var(--bs-success-border-subtle);
--bs-btn-hover-color: var(--bs-success-text-emphasis);
}
.lds-roller {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-roller div {
animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
transform-origin: 40px 40px;
}
.lds-roller div:after {
content: " ";
display: block;
position: absolute;
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--bs-primary);
margin: -5px 0 0 -5px;
}
.lds-roller div:nth-child(1) {
animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after {
top: 63px;
left: 63px;
}
.lds-roller div:nth-child(2) {
animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after {
top: 68px;
left: 56px;
}
.lds-roller div:nth-child(3) {
animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
top: 71px;
left: 48px;
}
.lds-roller div:nth-child(4) {
animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after {
top: 72px;
left: 40px;
}
.lds-roller div:nth-child(5) {
animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after {
top: 71px;
left: 32px;
}
.lds-roller div:nth-child(6) {
animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
top: 68px;
left: 24px;
}
.lds-roller div:nth-child(7) {
animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after {
top: 63px;
left: 17px;
}
.lds-roller div:nth-child(8) {
animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after {
top: 56px;
left: 12px;
}
@keyframes lds-roller {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectGuid>{27B04508-3F72-45A2-83EF-A007750D2923}</ProjectGuid>
</PropertyGroup>
<ItemGroup>
<Projects Include="WCSOemiMobile.dproj">
<Dependencies/>
</Projects>
<Projects Include="..\..\Server\WCSOemiMobileServer.dproj">
<Dependencies/>
</Projects>
</ItemGroup>
<ProjectExtensions>
<Borland.Personality>Default.Personality.12</Borland.Personality>
<Borland.ProjectType/>
<BorlandProject>
<Default.Personality/>
</BorlandProject>
</ProjectExtensions>
<Target Name="WCSOemiMobile">
<MSBuild Projects="WCSOemiMobile.dproj"/>
</Target>
<Target Name="WCSOemiMobile:Clean">
<MSBuild Projects="WCSOemiMobile.dproj" Targets="Clean"/>
</Target>
<Target Name="WCSOemiMobile:Make">
<MSBuild Projects="WCSOemiMobile.dproj" Targets="Make"/>
</Target>
<Target Name="WCSOemiMobileServer">
<MSBuild Projects="..\..\Server\WCSOemiMobileServer.dproj"/>
</Target>
<Target Name="WCSOemiMobileServer:Clean">
<MSBuild Projects="..\..\Server\WCSOemiMobileServer.dproj" Targets="Clean"/>
</Target>
<Target Name="WCSOemiMobileServer:Make">
<MSBuild Projects="..\..\Server\WCSOemiMobileServer.dproj" Targets="Make"/>
</Target>
<Target Name="Build">
<CallTarget Targets="WCSOemiMobile;WCSOemiMobileServer"/>
</Target>
<Target Name="Clean">
<CallTarget Targets="WCSOemiMobile:Clean;WCSOemiMobileServer:Clean"/>
</Target>
<Target Name="Make">
<CallTarget Targets="WCSOemiMobile:Make;WCSOemiMobileServer:Make"/>
</Target>
<Import Project="$(BDS)\Bin\CodeGear.Group.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Group.Targets')"/>
</Project>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectGuid>{54B8E1E7-BFF1-4225-B534-3C9ACD25120E}</ProjectGuid>
</PropertyGroup>
<ItemGroup>
<Projects Include="BFD\bfdEmiMobile.dproj">
<Dependencies/>
</Projects>
<Projects Include="WCSO\WCSOemiMobile.dproj">
<Dependencies/>
</Projects>
</ItemGroup>
<ProjectExtensions>
<Borland.Personality>Default.Personality.12</Borland.Personality>
<Borland.ProjectType/>
<BorlandProject>
<Default.Personality/>
</BorlandProject>
</ProjectExtensions>
<Target Name="bfdEmiMobile">
<MSBuild Projects="BFD\bfdEmiMobile.dproj"/>
</Target>
<Target Name="bfdEmiMobile:Clean">
<MSBuild Projects="BFD\bfdEmiMobile.dproj" Targets="Clean"/>
</Target>
<Target Name="bfdEmiMobile:Make">
<MSBuild Projects="BFD\bfdEmiMobile.dproj" Targets="Make"/>
</Target>
<Target Name="WCSOemiMobile">
<MSBuild Projects="WCSO\WCSOemiMobile.dproj"/>
</Target>
<Target Name="WCSOemiMobile:Clean">
<MSBuild Projects="WCSO\WCSOemiMobile.dproj" Targets="Clean"/>
</Target>
<Target Name="WCSOemiMobile:Make">
<MSBuild Projects="WCSO\WCSOemiMobile.dproj" Targets="Make"/>
</Target>
<Target Name="Build">
<CallTarget Targets="bfdEmiMobile;WCSOemiMobile"/>
</Target>
<Target Name="Clean">
<CallTarget Targets="bfdEmiMobile:Clean;WCSOemiMobile:Clean"/>
</Target>
<Target Name="Make">
<CallTarget Targets="bfdEmiMobile:Make;WCSOemiMobile:Make"/>
</Target>
<Import Project="$(BDS)\Bin\CodeGear.Group.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Group.Targets')"/>
</Project>
# emiMobile # emiMobile
## Deployment folders ## Server projects and deployment
The shared server runs one agency per instance. Keep `emiMobileServer.ini` and Both server projects use the same source under `Server/Source`, including the
`emiMobileServer.json` beside `emiMobileServer.exe`. shared startup and logging implementation in `Common/Server.Startup.pas`.
| Project | Executable output | INI selector |
| --- | --- | --- |
| `Server/BFDemiMobileServer.dproj` | `Server/bin/BFD/BFDemiMobileServer.exe` | `Agency=BFD` |
| `Server/WCSOemiMobileServer.dproj` | `Server/bin/WCSO/WCSOemiMobileServer.exe` | `Agency=WCSO` |
```text ```text
Server/bin/ Server/bin/
emiMobileServer.exe BFD/
emiMobileServer.ini BFDemiMobileServer.exe
emiMobileServer.json BFDemiMobileServer.ini
WCSO/ BFDemiMobileServer.json
logs/ logs/
static/ static/
BFD/ WCSO/
WCSOemiMobileServer.exe
WCSOemiMobileServer.ini
WCSOemiMobileServer.json
logs/ logs/
static/ static/
``` ```
`[Application] Agency=WC` selects `WCSO/static` and `WCSO/logs`. Each executable reads its matching INI and JSON files beside itself. The INI
`Agency=BFD` selects `BFD/static` and `BFD/logs`. still selects the database implementation; the executable name does not override
Paths are relative to the executable, not the working directory. Log folders it. The old `WC` selector is no longer accepted; use `WCSO`.
are created automatically. Missing or invalid agency settings retain the root
`logs` folder for startup diagnostics; server startup still rejects that setting. Website and log paths are always `static` and `logs` relative to the executable.
Log filenames use the executable name followed by the existing numbered suffix.
Build `Client/Lems/lemsEmiMobile.dproj` into `Server/bin/WCSO/static` and Log directories are created automatically. Keep required runtime DLLs beside each
`Client/BFD/bfdEmiMobile.dproj` into `Server/bin/BFD/static`; both project files executable. Compiler intermediates are separated by project, platform, and configuration.
already specify these output paths. Include the complete website, including
`assets`, `css`, and `config`, when deploying. Public `/app/`, `/auth/`, `/api/`, The WCSO client (`Client/WCSO/WCSOemiMobile.dproj`) builds into `Server/bin/WCSO/static`; the BFD client builds
and WebSocket URLs are unchanged by this folder layout. into `Server/bin/BFD/static`. Their project groups reference the corresponding
server project. Include the complete website with assets, CSS, and configuration.
When upgrading an existing deployment, move `static/Lems` to `WCSO/static` Public URL paths are unchanged.
or `static/BFD` to `BFD/static`. Existing root `logs` can remain as historical
logs; new application logs go into the selected agency's `logs` folder. Configure each deployment's database, HTTP URL, WebSocket port, and client URLs.
The initial configuration copies retain the prior connection and listener settings;
running both servers on one machine requires distinct listener ports.
When upgrading, replace the old shared server project with these projects, rename
and relocate each deployment's INI/JSON beside its executable, and change
`Agency=WC` to `Agency=WCSO`. Existing website folders already match this layout.
Old root logs remain historical and are not used by the new executables.
program BFDemiMobileServer;
uses
FastMM4,
Server.Startup in 'Source\Common\Server.Startup.pas',
Vcl.Forms,
Api.Server.Module in 'Source\Common\Api.Server.Module.pas' {ApiServerModule: TDataModule},
Main in 'Source\Common\Main.pas' {FMain},
Common.Logging in 'Source\Common\Common.Logging.pas',
BFD.Api.Database in 'Source\BFD\BFD.Api.Database.pas' {BFDAPIDataModule: TDataModule},
BFD.Auth.Database in 'Source\BFD\BFD.Auth.Database.pas' {BFDAuthDatabase: TDataModule},
Device.Store in 'Source\Common\Device.Store.pas',
Agency.Auth in 'Source\Common\Agency.Auth.pas',
Device.Database in 'Source\Common\Device.Database.pas' {DeviceDatabase: TDataModule},
Agency.Data in 'Source\Common\Agency.Data.pas',
Agency.Selection in 'Source\Common\Agency.Selection.pas',
WCSO.Api.Database in 'Source\Lems\WCSO.Api.Database.pas' {WCSOAPIDataModule: TDataModule},
Common.Middleware.Logging in 'Source\Common\Common.Middleware.Logging.pas',
Common.Config in 'Source\Common\Common.Config.pas',
Auth.Server.Module in 'Source\Common\Auth.Server.Module.pas' {AuthServerModule: TDataModule},
WCSO.Auth.Database in 'Source\Lems\WCSO.Auth.Database.pas' {WCSOAuthDatabase: TDataModule},
uLibrary in 'Source\Common\uLibrary.pas',
Auth.Service in 'Source\Common\Auth.Service.pas',
Api.Service in 'Source\Common\Api.Service.pas',
Auth.ServiceImpl in 'Source\Common\Auth.ServiceImpl.pas',
Api.ServiceImpl in 'Source\Common\Api.ServiceImpl.pas',
App.Server.Module in 'Source\Common\App.Server.Module.pas' {AppServerModule: TDataModule},
Common.Ini in 'Source\Common\Common.Ini.pas',
BaseRequest in 'Source\Common\BaseRequest.pas',
Pkg.Json.DTO in 'Source\Common\Pkg.Json.DTO.pas',
Ws.Server.Module in 'Source\Common\Ws.Server.Module.pas' {WsServerModule: TDataModule},
Ws.DataModel in 'Source\Common\Ws.DataModel.pas',
WsMessages in 'Source\Common\WsMessages.pas',
WebSocket.Manager in 'Source\Common\WebSocket.Manager.pas',
Webauthn.Cbor in 'Source\Common\Webauthn.Cbor.pas',
Webauthn.Crypto in 'Source\Common\Webauthn.Crypto.pas';
{$R *.res}
begin
RunServer;
end.
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<ProjectGuid>{2A3028D9-BC39-4625-9BA5-0338012E2824}</ProjectGuid> <ProjectGuid>{CFD4BD58-529C-45E5-AA30-EE297350E1F5}</ProjectGuid>
<ProjectVersion>20.4</ProjectVersion> <ProjectVersion>20.4</ProjectVersion>
<FrameworkType>VCL</FrameworkType> <FrameworkType>VCL</FrameworkType>
<Base>True</Base> <Base>True</Base>
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
<Platform Condition="'$(Platform)'==''">Win32</Platform> <Platform Condition="'$(Platform)'==''">Win32</Platform>
<TargetedPlatforms>3</TargetedPlatforms> <TargetedPlatforms>3</TargetedPlatforms>
<AppType>Application</AppType> <AppType>Application</AppType>
<MainSource>emiMobileServer.dpr</MainSource> <MainSource>BFDemiMobileServer.dpr</MainSource>
<ProjectName Condition="'$(ProjectName)'==''">emiMobileServer</ProjectName> <ProjectName Condition="'$(ProjectName)'==''">BFDemiMobileServer</ProjectName>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Config)'=='Base' or '$(Base)'!=''"> <PropertyGroup Condition="'$(Config)'=='Base' or '$(Base)'!=''">
<Base>true</Base> <Base>true</Base>
...@@ -59,8 +59,8 @@ ...@@ -59,8 +59,8 @@
<Base>true</Base> <Base>true</Base>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Base)'!=''"> <PropertyGroup Condition="'$(Base)'!=''">
<DCC_DcuOutput>.\$(Platform)\$(Config)</DCC_DcuOutput> <DCC_DcuOutput>.\$(Platform)\$(Config)\$(MSBuildProjectName)</DCC_DcuOutput>
<DCC_ExeOutput>.\bin</DCC_ExeOutput> <DCC_ExeOutput>.\bin\BFD</DCC_ExeOutput>
<DCC_E>false</DCC_E> <DCC_E>false</DCC_E>
<DCC_N>false</DCC_N> <DCC_N>false</DCC_N>
<DCC_S>false</DCC_S> <DCC_S>false</DCC_S>
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
<DCC_Namespace>System;Xml;Data;Datasnap;Web;Soap;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;$(DCC_Namespace)</DCC_Namespace> <DCC_Namespace>System;Xml;Data;Datasnap;Web;Soap;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;$(DCC_Namespace)</DCC_Namespace>
<Icon_MainIcon>$(BDS)\bin\delphi_PROJECTICON.ico</Icon_MainIcon> <Icon_MainIcon>$(BDS)\bin\delphi_PROJECTICON.ico</Icon_MainIcon>
<Icns_MainIcns>$(BDS)\bin\delphi_PROJECTICNS.icns</Icns_MainIcns> <Icns_MainIcns>$(BDS)\bin\delphi_PROJECTICNS.icns</Icns_MainIcns>
<SanitizedProjectName>emiMobileServer</SanitizedProjectName> <SanitizedProjectName>BFDemiMobileServer</SanitizedProjectName>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Base_Win32)'!=''"> <PropertyGroup Condition="'$(Base_Win32)'!=''">
<DCC_UsePackage>gtFRExpD28;vclwinx;dacvcl280;FlexCel_Report;fmx;PKIEDB28;vclie;DbxCommonDriver;bindengine;IndyIPCommon;VCLRESTComponents;FireDACCommonODBC;aurelius;TMSCloudPkgDEDXE14;FireDACCommonDriver;sparkle;appanalytics;IndyProtocols;vclx;TatukGIS_DK11_RX11_VCL;FMXTMSFNCMapsPkgDXE14;IndyIPClient;dbxcds;vcledge;dac280;frxe28;bindcompvclwinx;gtScaleRichVwExpD28;VCLTMSFNCUIPackPkgDXE14;gtXPressExpD28;unidac280;gtPDFkitD11ProP;FlexCel_Pdf;bindcompfmx;AdvChartDEDXE14;madBasic_;VCLTMSFNCDashboardPackPkgDXE14;SKIA_FlexCel_Core;VCLTMSFNCWebSocketPkg;FMXTMSFNCWebSocketPkg;TMSVCLUIPackPkgDXE14;inetdb;TatukGIS_DK11_RX11_FMX;AcroPDF;TatukGIS_DK11_RX11;FireDACSqliteDriver;DbxClientDriver;soapmidas;vclCryptoPressStreamD28;vclactnband;gtRBExpD28;fmxFireDAC;dbexpress;DBXMySQLDriver;VclSmp;inet;unidacvcl280;dacfmx280;SigPlus;fcstudiowin;vcltouch;fmxase;VCLTMSFNCMapsPkgDXE14;ipstudiowin;TMSWEBCorePkgLibDXE14;frx28;dbrtl;QRWRunDXE11_w64;TMSWEBCorePkgDXE14;fmxdae;addict4_d28;FlexCel_XlsAdapter;gtAdvGridExpD28;FireDACMSAccDriver;VCL_FlexCel_Core;CustomIPTransport;tmsbcl;ipstudiowinwordxp;gtDocEngD28;gtRaveExpD28;FMXTMSFNCDashboardPackPkgDXE14;vcldsnap;madExcept_;DBXInterBaseDriver;frxDB28;IndySystem;ipstudiowinclient;VCLTMSFNCCorePkgDXE14;vcldb;CamRemoteD11;FMXTMSFNCUIPackPkgDXE14;TMSCloudPkgDXE14;gtQRExpD28;VirtualTreesR;WPViewPDF_RT;FlexCel_Core;vclFireDAC;vquery280;madDisAsm_;bindcomp;FireDACCommon;FlexCel_Render;unidacfmx280;FMXTMSFNCCorePkgDXE14;IndyCore;RESTBackendComponents;gtACEExpD28;bindcompdbx;rtl;FireDACMySQLDriver;FireDACADSDriver;VCL_FlexCel_Components;RESTComponents;DBXSqliteDriver;vcl;IndyIPServer;dsnapxml;dsnapcon;adortl;TMSVCLUIPackPkgExDXE14;WPViewPDF_DT;TMSVCLUIPackPkgWizDXE14;gtHtmVwExpD28;AdvChartDXE14;gtRichVwExpD28;vclimg;FireDACPgDriver;FireDAC;inetdbxpress;TMSVCLUIPackPkgXlsDXE14;xmlrtl;tethering;PKIECtrl28;crcontrols280;bindcompvcl;dsnap;xdata;CloudService;fmxobj;bindcompvclsmp;addict4db_d28;CEF4Delphi;soaprtl;soapserver;FireDACIBDriver;$(DCC_UsePackage)</DCC_UsePackage> <DCC_UsePackage>gtFRExpD28;vclwinx;dacvcl280;FlexCel_Report;fmx;PKIEDB28;vclie;DbxCommonDriver;bindengine;IndyIPCommon;VCLRESTComponents;FireDACCommonODBC;aurelius;TMSCloudPkgDEDXE14;FireDACCommonDriver;sparkle;appanalytics;IndyProtocols;vclx;TatukGIS_DK11_RX11_VCL;FMXTMSFNCMapsPkgDXE14;IndyIPClient;dbxcds;vcledge;dac280;frxe28;bindcompvclwinx;gtScaleRichVwExpD28;VCLTMSFNCUIPackPkgDXE14;gtXPressExpD28;unidac280;gtPDFkitD11ProP;FlexCel_Pdf;bindcompfmx;AdvChartDEDXE14;madBasic_;VCLTMSFNCDashboardPackPkgDXE14;SKIA_FlexCel_Core;VCLTMSFNCWebSocketPkg;FMXTMSFNCWebSocketPkg;TMSVCLUIPackPkgDXE14;inetdb;TatukGIS_DK11_RX11_FMX;AcroPDF;TatukGIS_DK11_RX11;FireDACSqliteDriver;DbxClientDriver;soapmidas;vclCryptoPressStreamD28;vclactnband;gtRBExpD28;fmxFireDAC;dbexpress;DBXMySQLDriver;VclSmp;inet;unidacvcl280;dacfmx280;SigPlus;fcstudiowin;vcltouch;fmxase;VCLTMSFNCMapsPkgDXE14;ipstudiowin;TMSWEBCorePkgLibDXE14;frx28;dbrtl;QRWRunDXE11_w64;TMSWEBCorePkgDXE14;fmxdae;addict4_d28;FlexCel_XlsAdapter;gtAdvGridExpD28;FireDACMSAccDriver;VCL_FlexCel_Core;CustomIPTransport;tmsbcl;ipstudiowinwordxp;gtDocEngD28;gtRaveExpD28;FMXTMSFNCDashboardPackPkgDXE14;vcldsnap;madExcept_;DBXInterBaseDriver;frxDB28;IndySystem;ipstudiowinclient;VCLTMSFNCCorePkgDXE14;vcldb;CamRemoteD11;FMXTMSFNCUIPackPkgDXE14;TMSCloudPkgDXE14;gtQRExpD28;VirtualTreesR;WPViewPDF_RT;FlexCel_Core;vclFireDAC;vquery280;madDisAsm_;bindcomp;FireDACCommon;FlexCel_Render;unidacfmx280;FMXTMSFNCCorePkgDXE14;IndyCore;RESTBackendComponents;gtACEExpD28;bindcompdbx;rtl;FireDACMySQLDriver;FireDACADSDriver;VCL_FlexCel_Components;RESTComponents;DBXSqliteDriver;vcl;IndyIPServer;dsnapxml;dsnapcon;adortl;TMSVCLUIPackPkgExDXE14;WPViewPDF_DT;TMSVCLUIPackPkgWizDXE14;gtHtmVwExpD28;AdvChartDXE14;gtRichVwExpD28;vclimg;FireDACPgDriver;FireDAC;inetdbxpress;TMSVCLUIPackPkgXlsDXE14;xmlrtl;tethering;PKIECtrl28;crcontrols280;bindcompvcl;dsnap;xdata;CloudService;fmxobj;bindcompvclsmp;addict4db_d28;CEF4Delphi;soaprtl;soapserver;FireDACIBDriver;$(DCC_UsePackage)</DCC_UsePackage>
...@@ -104,13 +104,12 @@ ...@@ -104,13 +104,12 @@
<AppDPIAwarenessMode>PerMonitorV2</AppDPIAwarenessMode> <AppDPIAwarenessMode>PerMonitorV2</AppDPIAwarenessMode>
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo> <VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
<VerInfo_Locale>1033</VerInfo_Locale> <VerInfo_Locale>1033</VerInfo_Locale>
<DCC_ExeOutput>.\bin</DCC_ExeOutput> <DCC_ExeOutput>.\bin\BFD</DCC_ExeOutput>
<VerInfo_MajorVer>0</VerInfo_MajorVer> <VerInfo_MajorVer>0</VerInfo_MajorVer>
<VerInfo_MinorVer>9</VerInfo_MinorVer> <VerInfo_MinorVer>9</VerInfo_MinorVer>
<VerInfo_Release>4</VerInfo_Release> <VerInfo_Release>5</VerInfo_Release>
<VerInfo_Keys>CompanyName=;FileDescription=$(MSBuildProjectName);FileVersion=0.9.4.9;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=0.9.2.0;Comments=</VerInfo_Keys> <VerInfo_Keys>CompanyName=;FileDescription=$(MSBuildProjectName);FileVersion=0.9.5.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=0.9.2.0;Comments=</VerInfo_Keys>
<DCC_UnitSearchPath>C:\RADTOOLS\FastMM4;$(DCC_UnitSearchPath)</DCC_UnitSearchPath> <DCC_UnitSearchPath>C:\RADTOOLS\FastMM4;$(DCC_UnitSearchPath)</DCC_UnitSearchPath>
<VerInfo_Build>9</VerInfo_Build>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Cfg_1_Win64)'!=''"> <PropertyGroup Condition="'$(Cfg_1_Win64)'!=''">
<AppDPIAwarenessMode>PerMonitorV2</AppDPIAwarenessMode> <AppDPIAwarenessMode>PerMonitorV2</AppDPIAwarenessMode>
...@@ -134,6 +133,7 @@ ...@@ -134,6 +133,7 @@
<DelphiCompile Include="$(MainSource)"> <DelphiCompile Include="$(MainSource)">
<MainSource>MainSource</MainSource> <MainSource>MainSource</MainSource>
</DelphiCompile> </DelphiCompile>
<DCCReference Include="Source\Common\Server.Startup.pas"/>
<DCCReference Include="Source\Common\Api.Server.Module.pas"> <DCCReference Include="Source\Common\Api.Server.Module.pas">
<Form>ApiServerModule</Form> <Form>ApiServerModule</Form>
<DesignClass>TDataModule</DesignClass> <DesignClass>TDataModule</DesignClass>
...@@ -160,8 +160,8 @@ ...@@ -160,8 +160,8 @@
</DCCReference> </DCCReference>
<DCCReference Include="Source\Common\Agency.Data.pas"/> <DCCReference Include="Source\Common\Agency.Data.pas"/>
<DCCReference Include="Source\Common\Agency.Selection.pas"/> <DCCReference Include="Source\Common\Agency.Selection.pas"/>
<DCCReference Include="Source\Lems\WC.Api.Database.pas"> <DCCReference Include="Source\Lems\WCSO.Api.Database.pas">
<Form>WCAPIDataModule</Form> <Form>WCSOAPIDataModule</Form>
<DesignClass>TDataModule</DesignClass> <DesignClass>TDataModule</DesignClass>
</DCCReference> </DCCReference>
<DCCReference Include="Source\Common\Common.Middleware.Logging.pas"/> <DCCReference Include="Source\Common\Common.Middleware.Logging.pas"/>
...@@ -170,8 +170,8 @@ ...@@ -170,8 +170,8 @@
<Form>AuthServerModule</Form> <Form>AuthServerModule</Form>
<DesignClass>TDataModule</DesignClass> <DesignClass>TDataModule</DesignClass>
</DCCReference> </DCCReference>
<DCCReference Include="Source\Lems\WC.Auth.Database.pas"> <DCCReference Include="Source\Lems\WCSO.Auth.Database.pas">
<Form>WCAuthDatabase</Form> <Form>WCSOAuthDatabase</Form>
<DesignClass>TDataModule</DesignClass> <DesignClass>TDataModule</DesignClass>
</DCCReference> </DCCReference>
<DCCReference Include="Source\Common\uLibrary.pas"/> <DCCReference Include="Source\Common\uLibrary.pas"/>
...@@ -214,7 +214,7 @@ ...@@ -214,7 +214,7 @@
<BorlandProject> <BorlandProject>
<Delphi.Personality> <Delphi.Personality>
<Source> <Source>
<Source Name="MainSource">emiMobileServer.dpr</Source> <Source Name="MainSource">BFDemiMobileServer.dpr</Source>
</Source> </Source>
<Excluded_Packages> <Excluded_Packages>
<Excluded_Packages Name="$(BDSBIN)\bcboffice2k370.bpl">Embarcadero C++Builder Office 2000 Servers Package</Excluded_Packages> <Excluded_Packages Name="$(BDSBIN)\bcboffice2k370.bpl">Embarcadero C++Builder Office 2000 Servers Package</Excluded_Packages>
...@@ -224,9 +224,9 @@ ...@@ -224,9 +224,9 @@
</Excluded_Packages> </Excluded_Packages>
</Delphi.Personality> </Delphi.Personality>
<Deployment Version="5"> <Deployment Version="5">
<DeployFile LocalName="bin\emiMobileServer.exe" Configuration="Debug" Class="ProjectOutput"> <DeployFile LocalName="bin\BFD\BFDemiMobileServer.exe" Configuration="Debug" Class="ProjectOutput">
<Platform Name="Win32"> <Platform Name="Win32">
<RemoteName>emiMobileServer.exe</RemoteName> <RemoteName>BFDemiMobileServer.exe</RemoteName>
<Overwrite>true</Overwrite> <Overwrite>true</Overwrite>
</Platform> </Platform>
</DeployFile> </DeployFile>
......
...@@ -1759,6 +1759,7 @@ object BFDAPIDataModule: TBFDAPIDataModule ...@@ -1759,6 +1759,7 @@ object BFDAPIDataModule: TBFDAPIDataModule
Connection = ucENTCAD Connection = ucENTCAD
Events = 'disupdate' Events = 'disupdate'
OnEvent = UniAlerter1Event OnEvent = UniAlerter1Event
OnError = UniAlerter1Error
Left = 324 Left = 324
Top = 383 Top = 383
end end
......
...@@ -265,8 +265,10 @@ type ...@@ -265,8 +265,10 @@ type
procedure DataModuleCreate(Sender: TObject); procedure DataModuleCreate(Sender: TObject);
procedure UniAlerter1Event(Sender: TDAAlerter; const EventName, procedure UniAlerter1Event(Sender: TDAAlerter; const EventName,
Message: string); Message: string);
procedure UniAlerter1Error(Sender: TDAAlerter; E: Exception);
private private
FCADUpdate: Integer; FCADUpdate: Integer;
FUpdateListenerFailed: Integer;
public public
procedure ConfigureQueryTimeouts; override; procedure ConfigureQueryTimeouts; override;
function GetBadgeCounts: TJSONObject; override; function GetBadgeCounts: TJSONObject; override;
...@@ -303,6 +305,7 @@ procedure TBFDAPIDataModule.DataModuleCreate(Sender: TObject); ...@@ -303,6 +305,7 @@ procedure TBFDAPIDataModule.DataModuleCreate(Sender: TObject);
begin begin
IniEntries.ConfigureConnection(ucENTCAD); IniEntries.ConfigureConnection(ucENTCAD);
FCADUpdate := 0; FCADUpdate := 0;
FUpdateListenerFailed := 0;
end; end;
function TBFDAPIDataModule.EnsureConnected: Boolean; function TBFDAPIDataModule.EnsureConnected: Boolean;
...@@ -321,6 +324,22 @@ end; ...@@ -321,6 +324,22 @@ end;
function TBFDAPIDataModule.StartUpdateListener: Boolean; function TBFDAPIDataModule.StartUpdateListener: Boolean;
begin begin
Result := False; Result := False;
if TInterlocked.Exchange(FUpdateListenerFailed, 0) <> 0 then
begin
try
if UniAlerter1.Active then
UniAlerter1.Stop;
ucENTCAD.Disconnect;
except
on E: Exception do
begin
Logger.Log(1, 'Oracle disupdate listener reset failed: ' + E.Message);
TInterlocked.Exchange(FUpdateListenerFailed, 1);
Exit;
end;
end;
end;
if not EnsureConnected then if not EnsureConnected then
Exit; Exit;
try try
...@@ -329,6 +348,7 @@ begin ...@@ -329,6 +348,7 @@ begin
Logger.Log(1, 'Starting Oracle disupdate listener'); Logger.Log(1, 'Starting Oracle disupdate listener');
UniAlerter1.Start; UniAlerter1.Start;
Logger.Log(1, 'Oracle disupdate listener started'); Logger.Log(1, 'Oracle disupdate listener started');
TInterlocked.Exchange(FCADUpdate, 1);
end; end;
Result := True; Result := True;
except except
...@@ -436,6 +456,13 @@ begin ...@@ -436,6 +456,13 @@ begin
TInterlocked.Exchange(FCADUpdate, 1); TInterlocked.Exchange(FCADUpdate, 1);
end; end;
procedure TBFDAPIDataModule.UniAlerter1Error(Sender: TDAAlerter; E: Exception);
begin
Logger.Log(1, 'Oracle disupdate listener error: ' + E.Message);
TInterlocked.Exchange(FUpdateListenerFailed, 1);
TInterlocked.Exchange(FCADUpdate, 1);
end;
function TBFDAPIDataModule.BadgeCounts(const BaseQuery: TUniQuery): Integer; function TBFDAPIDataModule.BadgeCounts(const BaseQuery: TUniQuery): Integer;
var var
Q: TUniQuery; Q: TUniQuery;
...@@ -498,7 +525,7 @@ end; ...@@ -498,7 +525,7 @@ end;
function TBFDAPIDataModule.GetBadgeCounts: TJSONObject; function TBFDAPIDataModule.GetBadgeCounts: TJSONObject;
begin begin
Logger.Log(3, '---TBFDAPIDataModule.GetBadgeCounts initiated'); Logger.Log(4, '---TBFDAPIDataModule.GetBadgeCounts initiated');
Result := TJSONObject.Create; Result := TJSONObject.Create;
try try
...@@ -527,7 +554,7 @@ begin ...@@ -527,7 +554,7 @@ begin
end; end;
end; end;
Logger.Log(3, '---TBFDAPIDataModule.GetBadgeCounts End'); Logger.Log(4, '---TBFDAPIDataModule.GetBadgeCounts End');
except except
Result.Free; Result.Free;
raise; raise;
...@@ -548,7 +575,7 @@ var ...@@ -548,7 +575,7 @@ var
unitObj: TJSONObject; unitObj: TJSONObject;
statusColor: string; statusColor: string;
begin begin
Logger.Log(3, '---TBFDAPIDataModule.GetComplaintMap initiated'); Logger.Log(4, '---TBFDAPIDataModule.GetComplaintMap initiated');
Result := TJSONObject.Create; Result := TJSONObject.Create;
try try
...@@ -677,7 +704,7 @@ begin ...@@ -677,7 +704,7 @@ begin
Result.AddPair('count', TJSONNumber.Create(data.Count)); Result.AddPair('count', TJSONNumber.Create(data.Count));
Result.AddPair('returned', TJSONNumber.Create(emitted)); Result.AddPair('returned', TJSONNumber.Create(emitted));
Logger.Log(3, '---TBFDAPIDataModule.GetComplaintMap End (returned=' + IntToStr(emitted) + ')'); Logger.Log(4, '---TBFDAPIDataModule.GetComplaintMap End (returned=' + IntToStr(emitted) + ')');
except except
on E: EXDataHttpException do on E: EXDataHttpException do
begin begin
...@@ -838,7 +865,7 @@ var ...@@ -838,7 +865,7 @@ var
complaintNumber: string; complaintNumber: string;
colorVal: Integer; colorVal: Integer;
begin begin
Logger.Log(3, '---TBFDAPIDataModule.GetComplaintList initiated'); Logger.Log(4, '---TBFDAPIDataModule.GetComplaintList initiated');
Result := TJSONObject.Create; Result := TJSONObject.Create;
try try
...@@ -921,11 +948,11 @@ begin ...@@ -921,11 +948,11 @@ begin
Result.AddPair('count', TJSONNumber.Create(data.Count)); Result.AddPair('count', TJSONNumber.Create(data.Count));
Result.AddPair('returned', TJSONNumber.Create(data.Count)); Result.AddPair('returned', TJSONNumber.Create(data.Count));
except except
Logger.Log(2, '---TBFDAPIDataModule.GetComplaintList End (error)'); Logger.Log(4, '---TBFDAPIDataModule.GetComplaintList End (error)');
raise EXDataHttpException.Create(500, 'Failed to load incidents list'); raise EXDataHttpException.Create(500, 'Failed to load incidents list');
end; end;
Logger.Log(3, '---TBFDAPIDataModule.GetComplaintList End'); Logger.Log(4, '---TBFDAPIDataModule.GetComplaintList End');
except except
Result.Free; Result.Free;
raise; raise;
...@@ -945,7 +972,7 @@ var ...@@ -945,7 +972,7 @@ var
mapLng: Double; mapLng: Double;
canShowMap: Boolean; canShowMap: Boolean;
begin begin
Logger.Log(3, '---TBFDAPIDataModule.GetUnitList initiated'); Logger.Log(4, '---TBFDAPIDataModule.GetUnitList initiated');
Result := TJSONObject.Create; Result := TJSONObject.Create;
try try
...@@ -1069,11 +1096,11 @@ begin ...@@ -1069,11 +1096,11 @@ begin
Result.AddPair('count', TJSONNumber.Create(data.Count)); Result.AddPair('count', TJSONNumber.Create(data.Count));
Result.AddPair('returned', TJSONNumber.Create(data.Count)); Result.AddPair('returned', TJSONNumber.Create(data.Count));
except except
Logger.Log(3, '---TBFDAPIDataModule.GetUnitList End (error)'); Logger.Log(4, '---TBFDAPIDataModule.GetUnitList End (error)');
raise EXDataHttpException.Create(500, 'Failed to load units list'); raise EXDataHttpException.Create(500, 'Failed to load units list');
end; end;
Logger.Log(3, '---TBFDAPIDataModule.GetUnitList End'); Logger.Log(4, '---TBFDAPIDataModule.GetUnitList End');
except except
Result.Free; Result.Free;
raise; raise;
...@@ -1088,7 +1115,7 @@ var ...@@ -1088,7 +1115,7 @@ var
units: TJSONArray; units: TJSONArray;
unitObj: TJSONObject; unitObj: TJSONObject;
begin begin
Logger.Log(3, '---TBFDAPIDataModule.GetComplaintDetails initiated: ' + ComplaintId); Logger.Log(4, '---TBFDAPIDataModule.GetComplaintDetails initiated: ' + ComplaintId);
Result := TJSONObject.Create; Result := TJSONObject.Create;
try try
...@@ -1255,7 +1282,7 @@ begin ...@@ -1255,7 +1282,7 @@ begin
end; end;
end; end;
Logger.Log(3, '---TBFDAPIDataModule.GetComplaintDetails End'); Logger.Log(4, '---TBFDAPIDataModule.GetComplaintDetails End');
except except
Result.Free; Result.Free;
raise; raise;
...@@ -1268,7 +1295,7 @@ var ...@@ -1268,7 +1295,7 @@ var
status: string; status: string;
statusColor: string; statusColor: string;
begin begin
Logger.Log(3, '---TBFDAPIDataModule.GetComplaintArchiveDetails initiated: ' + ComplaintId); Logger.Log(4, '---TBFDAPIDataModule.GetComplaintArchiveDetails initiated: ' + ComplaintId);
Result := TJSONObject.Create; Result := TJSONObject.Create;
try try
...@@ -1410,7 +1437,7 @@ begin ...@@ -1410,7 +1437,7 @@ begin
end; end;
end; end;
Logger.Log(3, '---TBFDAPIDataModule.GetComplaintArchiveDetails End'); Logger.Log(4, '---TBFDAPIDataModule.GetComplaintArchiveDetails End');
except except
Result.Free; Result.Free;
raise; raise;
...@@ -1423,7 +1450,7 @@ var ...@@ -1423,7 +1450,7 @@ var
item: TJSONObject; item: TJSONObject;
ts: string; ts: string;
begin begin
Logger.Log(3, '---TBFDAPIDataModule.GetComplaintMemos initiated: ' + CfsId); Logger.Log(4, '---TBFDAPIDataModule.GetComplaintMemos initiated: ' + CfsId);
Result := TJSONObject.Create; Result := TJSONObject.Create;
try try
...@@ -1480,7 +1507,7 @@ begin ...@@ -1480,7 +1507,7 @@ begin
end; end;
end; end;
Logger.Log(3, '---TBFDAPIDataModule.GetComplaintMemos End'); Logger.Log(4, '---TBFDAPIDataModule.GetComplaintMemos End');
except except
Result.Free; Result.Free;
raise; raise;
...@@ -1546,7 +1573,7 @@ begin ...@@ -1546,7 +1573,7 @@ begin
Result.AddPair('returned', TJSONNumber.Create(returnedCount)); Result.AddPair('returned', TJSONNumber.Create(returnedCount));
Logger.Log( Logger.Log(
3, 4,
'---TBFDAPIDataModule.GetComplaintHistory End (returned=' + '---TBFDAPIDataModule.GetComplaintHistory End (returned=' +
IntToStr(returnedCount) + ')' IntToStr(returnedCount) + ')'
); );
...@@ -1611,7 +1638,7 @@ begin ...@@ -1611,7 +1638,7 @@ begin
Result.AddPair('returned', TJSONNumber.Create(returnedCount)); Result.AddPair('returned', TJSONNumber.Create(returnedCount));
Logger.Log( Logger.Log(
3, 4,
'---TBFDAPIDataModule.GetComplaintContacts End (returned=' + '---TBFDAPIDataModule.GetComplaintContacts End (returned=' +
IntToStr(returnedCount) + ')' IntToStr(returnedCount) + ')'
); );
...@@ -1642,7 +1669,7 @@ var ...@@ -1642,7 +1669,7 @@ var
apartmentText: string; apartmentText: string;
cityText: string; cityText: string;
begin begin
Logger.Log(3, '---TBFDAPIDataModule.GetComplaintWarnings initiated: ' + ComplaintId); Logger.Log(4, '---TBFDAPIDataModule.GetComplaintWarnings initiated: ' + ComplaintId);
Result := TJSONObject.Create; Result := TJSONObject.Create;
try try
...@@ -1699,7 +1726,7 @@ begin ...@@ -1699,7 +1726,7 @@ begin
Result.AddPair('returned', TJSONNumber.Create(returnedCount)); Result.AddPair('returned', TJSONNumber.Create(returnedCount));
Logger.Log( Logger.Log(
3, 4,
'---TBFDAPIDataModule.GetComplaintWarnings End (returned=' + '---TBFDAPIDataModule.GetComplaintWarnings End (returned=' +
IntToStr(returnedCount) + ')' IntToStr(returnedCount) + ')'
); );
......
...@@ -13,7 +13,7 @@ function CreateAgencyData: TAgencyData; ...@@ -13,7 +13,7 @@ function CreateAgencyData: TAgencyData;
implementation implementation
uses uses
System.SysUtils, Common.Ini, WC.Api.Database, WC.Auth.Database, Device.Database, System.SysUtils, Common.Ini, WCSO.Api.Database, WCSO.Auth.Database, Device.Database,
BFD.Api.Database, BFD.Auth.Database; BFD.Api.Database, BFD.Auth.Database;
function CreateAgencyAuth: TAgencyAuth; function CreateAgencyAuth: TAgencyAuth;
...@@ -21,15 +21,15 @@ begin ...@@ -21,15 +21,15 @@ begin
if IniEntries.Agency = 'BFD' then if IniEntries.Agency = 'BFD' then
Result := TBFDAuthDatabase.Create(nil) Result := TBFDAuthDatabase.Create(nil)
else else
Result := TWCAuthDatabase.Create(nil); Result := TWCSOAuthDatabase.Create(nil);
end; end;
procedure ValidateAgency; procedure ValidateAgency;
begin begin
if IniEntries.Agency = '' then if IniEntries.Agency = '' then
raise Exception.Create('Missing [Application] Agency in the server INI file. Set Agency=WC or Agency=BFD.'); raise Exception.Create('Missing [Application] Agency in the server INI file. Set Agency=WCSO or Agency=BFD.');
if (IniEntries.Agency <> 'WC') and (IniEntries.Agency <> 'BFD') then if (IniEntries.Agency <> 'WCSO') and (IniEntries.Agency <> 'BFD') then
raise Exception.CreateFmt('Unrecognized [Application] Agency "%s". Supported agencies: WC, BFD.', [IniEntries.Agency]); raise Exception.CreateFmt('Unrecognized [Application] Agency "%s". Supported agencies: WCSO, BFD.', [IniEntries.Agency]);
end; end;
function CreateAgencyData: TAgencyData; function CreateAgencyData: TAgencyData;
...@@ -37,7 +37,7 @@ begin ...@@ -37,7 +37,7 @@ begin
if IniEntries.Agency = 'BFD' then if IniEntries.Agency = 'BFD' then
Result := TBFDAPIDataModule.Create(nil) Result := TBFDAPIDataModule.Create(nil)
else else
Result := TWCAPIDataModule.Create(nil); Result := TWCSOAPIDataModule.Create(nil);
end; end;
function CreateDeviceStore(AConnection: TUniConnection): TDeviceStore; function CreateDeviceStore(AConnection: TUniConnection): TDeviceStore;
......
...@@ -40,7 +40,7 @@ type ...@@ -40,7 +40,7 @@ type
function AddPendingDevice(const DeviceName, PhoneNumber, function AddPendingDevice(const DeviceName, PhoneNumber,
DeviceType: string): TJSONObject; DeviceType: string): TJSONObject;
function DeleteDevice(DeviceId: Integer): TJSONObject; function DeleteDevice(DeviceId: Integer): TJSONObject;
function SendAppLink(const PhoneNumber: string): TJSONObject; function SendAppLink(const PhoneNumber, DeviceType: string): TJSONObject;
function UpdateDeviceUsername(const CredentialId, Username: string): TJSONObject; function UpdateDeviceUsername(const CredentialId, Username: string): TJSONObject;
end; end;
......
...@@ -44,7 +44,7 @@ type ...@@ -44,7 +44,7 @@ type
function AddPendingDevice(const DeviceName, PhoneNumber, function AddPendingDevice(const DeviceName, PhoneNumber,
DeviceType: string): TJSONObject; DeviceType: string): TJSONObject;
function DeleteDevice(DeviceId: Integer): TJSONObject; function DeleteDevice(DeviceId: Integer): TJSONObject;
function SendAppLink(const PhoneNumber: string): TJSONObject; function SendAppLink(const PhoneNumber, DeviceType: string): TJSONObject;
function UpdateDeviceUsername(const CredentialId, Username: string): TJSONObject; function UpdateDeviceUsername(const CredentialId, Username: string): TJSONObject;
end; end;
...@@ -599,7 +599,7 @@ begin ...@@ -599,7 +599,7 @@ begin
end; end;
end; end;
function TApiService.SendAppLink(const PhoneNumber: string): TJSONObject; function TApiService.SendAppLink(const PhoneNumber, DeviceType: string): TJSONObject;
var var
store: TDeviceStore; store: TDeviceStore;
normalizedPhone, redeemCode, linkUrl, msgBody: string; normalizedPhone, redeemCode, linkUrl, msgBody: string;
...@@ -632,22 +632,33 @@ begin ...@@ -632,22 +632,33 @@ begin
Exit; Exit;
end; end;
// Pick an unused redeem code (SKIP LOCKED for concurrent safety)
redeemCode := ''; redeemCode := '';
store := CreateDeviceStore; if SameText(Trim(DeviceType), 'android') then
try linkUrl := 'https://play.google.com/store/apps/details?id=net.emsys.mobilecadmonitor&pcampaignid=web_share'
if not store.ReserveRedeemCode(normalizedPhone, redeemCode) then else if SameText(Trim(DeviceType), 'iphone') then
begin begin
Result.AddPair('status', 'error'); // Note: Only iPhone installation requires an Apple redemption code.
Result.AddPair('message', 'No unused redeem codes available.'); store := CreateDeviceStore;
Exit; try
if not store.ReserveRedeemCode(normalizedPhone, redeemCode) then
begin
Result.AddPair('status', 'error');
Result.AddPair('message', 'No unused redeem codes available.');
Exit;
end;
finally
store.Free;
end; end;
finally linkUrl := 'https://apps.apple.com/redeem?code=' + redeemCode + '&ctx=apps';
store.Free; end
else
begin
Result.AddPair('status', 'error');
Result.AddPair('message', 'App links are available for iPhone and Android devices only.');
Exit;
end; end;
// Build and send Twilio SMS // Section: Build and send Twilio SMS
linkUrl := 'https://apps.apple.com/redeem?code=' + redeemCode + '&ctx=apps';
msgBody := 'Your emiMobile app download link: ' + linkUrl; msgBody := 'Your emiMobile app download link: ' + linkUrl;
authStr := TNetEncoding.Base64.Encode(ServerConfig.twilioAccountSid + ':' + ServerConfig.twilioAuthToken) authStr := TNetEncoding.Base64.Encode(ServerConfig.twilioAccountSid + ':' + ServerConfig.twilioAuthToken)
......
...@@ -264,7 +264,7 @@ var ...@@ -264,7 +264,7 @@ var
deviceId: Integer; deviceId: Integer;
q: TDataSet; q: TDataSet;
begin begin
Logger.Log(3, '---TAuthService.BeginRegistration initiated with phone number: ' + PhoneNumber); Logger.Log(4, '---TAuthService.BeginRegistration initiated with phone number: ' + PhoneNumber);
Result := TJSONObject.Create; Result := TJSONObject.Create;
TXDataOperationContext.Current.Handler.ManagedObjects.Add(Result); TXDataOperationContext.Current.Handler.ManagedObjects.Add(Result);
...@@ -333,7 +333,7 @@ begin ...@@ -333,7 +333,7 @@ begin
[deviceId, deviceName])); [deviceId, deviceName]));
Result.AddPair('status', 'ok'); Result.AddPair('status', 'ok');
Result.AddPair('message', 'Verification code sent.'); Result.AddPair('message', 'Verification code sent.');
Logger.Log(3, '---TAuthService.BeginRegistration End'); Logger.Log(4, '---TAuthService.BeginRegistration End');
end; end;
function TAuthService.VerifyRegistrationCode(const PhoneNumber, function TAuthService.VerifyRegistrationCode(const PhoneNumber,
...@@ -382,7 +382,7 @@ begin ...@@ -382,7 +382,7 @@ begin
Result.AddPair('rpId', ServerConfig.rpId); Result.AddPair('rpId', ServerConfig.rpId);
Result.AddPair('rpName', ServerConfig.rpName); Result.AddPair('rpName', ServerConfig.rpName);
Logger.Log(3, '--Verification successful for phone number: ' + normalizedPhone); Logger.Log(3, '--Verification successful for phone number: ' + normalizedPhone);
Logger.Log(3, '---TAuthService.VerifyRegistrationCode End'); Logger.Log(4, '---TAuthService.VerifyRegistrationCode End');
end; end;
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
......
unit Common.Config; unit Common.Config;
interface interface
...@@ -68,12 +68,9 @@ begin ...@@ -68,12 +68,9 @@ begin
ValidateAgency; ValidateAgency;
IniEntries.ValidateDatabaseSettings; IniEntries.ValidateDatabaseSettings;
if IniEntries.Agency = 'WC' then serverConfig.FWebAppFolder := TPath.Combine(ExtractFilePath(ParamStr(0)), 'static');
serverConfig.FWebAppFolder := TPath.Combine(ExtractFilePath(ParamStr(0)), 'WCSO\static')
else
serverConfig.FWebAppFolder := TPath.Combine(ExtractFilePath(ParamStr(0)), 'BFD\static');
Logger.Log(1, '-- Agency: ' + IniEntries.Agency + ' [from ini]'); Logger.Log(1, '-- Agency: ' + IniEntries.Agency + ' [from ini]');
Logger.Log(1, '-- webAppFolder: ' + serverConfig.webAppFolder + ' [derived from Agency]'); Logger.Log(1, '-- webAppFolder: ' + serverConfig.webAppFolder + ' [relative to executable]');
serverConfig.twilioAccountSid := IniEntries.TwilioAccountSid; serverConfig.twilioAccountSid := IniEntries.TwilioAccountSid;
serverConfig.twilioAuthToken := IniEntries.TwilioAuthToken; serverConfig.twilioAuthToken := IniEntries.TwilioAuthToken;
......
...@@ -8,12 +8,12 @@ ...@@ -8,12 +8,12 @@
- API device operations and WebSocket activity checks create a store with `CreateDeviceStore`, which owns a separately configured connection. Free the store when that operation completes. - API device operations and WebSocket activity checks create a store with `CreateDeviceStore`, which owns a separately configured connection. Free the store when that operation completes.
- Read operations return store-owned `TDataSet` results. Callers read/close those results; do not free them or retain them beyond the store's lifetime. Repeating the same operation reuses its query. - Read operations return store-owned `TDataSet` results. Callers read/close those results; do not free them or retain them beyond the store's lifetime. Repeating the same operation reuses its query.
- Write operations return affected-row counts. Services retain their existing zero-row/not-found handling. - Write operations return affected-row counts. Services retain their existing zero-row/not-found handling.
- `ReserveRedeemCode` owns its transaction and returns False when no unused code is available. Call without an existing transaction. Services still send the SMS only after reservation commits, matching WC. - `ReserveRedeemCode` owns its transaction and returns False when no unused code is available. Call without an existing transaction. Services still send the SMS only after reservation commits, matching WCSO.
- Authorization, phone validation, verification-code generation, cryptographic checks, JWT issuance, DTO/JSON creation, and SMS delivery remain in the services. - Authorization, phone validation, verification-code generation, cryptographic checks, JWT issuance, DTO/JSON creation, and SMS delivery remain in the services.
## Current selection ## Current selection
Only WC/PostgreSQL is enabled in Agency.Selection. Authentication, API device management, and WebSocket device checks no longer contain device-storage SQL. CAD agency/user authentication queries remain separate and still need client-specific integration before BFD can use the common server. Only WCSO/PostgreSQL is enabled in Agency.Selection. Authentication, API device management, and WebSocket device checks no longer contain device-storage SQL. CAD agency/user authentication queries remain separate and still need client-specific integration before BFD can use the common server.
The Oracle implementation shares the operation contract and retains its uppercase Oracle 19c queries. It is not selected at runtime. No Oracle tables were created; no bypass switch was introduced. The Oracle implementation shares the operation contract and retains its uppercase Oracle 19c queries. It is not selected at runtime. No Oracle tables were created; no bypass switch was introduced.
...@@ -23,4 +23,4 @@ Both server projects compiled into temporary output folders. An offline Delphi t ...@@ -23,4 +23,4 @@ Both server projects compiled into temporary output folders. An offline Delphi t
Static comparisons verified PostgreSQL's 26 query texts against the original service SQL, checked call arguments and parameter bindings, and preserved response assignments, access guards, and exception messages. Oracle's query DFM was unchanged by the shared-interface extraction. Static comparisons verified PostgreSQL's 26 query texts against the original service SQL, checked call arguments and parameter bindings, and preserved response assignments, access guards, and exception messages. Oracle's query DFM was unchanged by the shared-interface extraction.
Live WC verification is pending: registration/verification, password and automatic device login, device listing, revoke/unrevoke, pending-device changes, username changes, WebSocket access checks, and app-link reservation/delivery where configured. Oracle SQL execution and concurrency tests await the tables. Live WCSO verification is pending: registration/verification, password and automatic device login, device listing, revoke/unrevoke, pending-device changes, username changes, WebSocket access checks, and app-link reservation/delivery where configured. Oracle SQL execution and concurrency tests await the tables.
...@@ -11,6 +11,7 @@ object FMain: TFMain ...@@ -11,6 +11,7 @@ object FMain: TFMain
Font.Name = 'Tahoma' Font.Name = 'Tahoma'
Font.Style = [] Font.Style = []
OnClose = FormClose OnClose = FormClose
OnCloseQuery = FormCloseQuery
DesignSize = ( DesignSize = (
778 778
773) 773)
...@@ -145,6 +146,13 @@ object FMain: TFMain ...@@ -145,6 +146,13 @@ object FMain: TFMain
TabOrder = 2 TabOrder = 2
OnClick = btnAuthSwaggerUIClick OnClick = btnAuthSwaggerUIClick
end end
object shutdownTimer: TTimer
Enabled = False
Interval = 200
OnTimer = shutdownTimerTimer
Left = 600
Top = 5
end
object initTimer: TTimer object initTimer: TTimer
OnTimer = initTimerTimer OnTimer = initTimerTimer
Left = 422 Left = 422
......
...@@ -20,6 +20,7 @@ type ...@@ -20,6 +20,7 @@ type
btnApiSwaggerUI: TButton; btnApiSwaggerUI: TButton;
btnExit: TButton; btnExit: TButton;
initTimer: TTimer; initTimer: TTimer;
shutdownTimer: TTimer;
btnAuthSwaggerUI: TButton; btnAuthSwaggerUI: TButton;
ExeInfo1: TExeInfo; ExeInfo1: TExeInfo;
pgcMain: TPageControl; pgcMain: TPageControl;
...@@ -37,6 +38,8 @@ type ...@@ -37,6 +38,8 @@ type
procedure btnExitClick(Sender: TObject); procedure btnExitClick(Sender: TObject);
procedure ContactFormData(AText: string); procedure ContactFormData(AText: string);
procedure FormClose(Sender: TObject; var Action: TCloseAction); procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
procedure shutdownTimerTimer(Sender: TObject);
procedure initTimerTimer(Sender: TObject); procedure initTimerTimer(Sender: TObject);
procedure btnAuthSwaggerUIClick(Sender: TObject); procedure btnAuthSwaggerUIClick(Sender: TObject);
procedure btnDisconnectClientClick(Sender: TObject); procedure btnDisconnectClientClick(Sender: TObject);
...@@ -156,6 +159,27 @@ begin ...@@ -156,6 +159,27 @@ begin
StartServers; StartServers;
end; end;
procedure TFMain.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
begin
CanClose := True;
if Assigned(WsServerModule) then
CanClose := WsServerModule.StopDataModel;
if not CanClose and not shutdownTimer.Enabled then
begin
pgcMain.Enabled := False;
btnApiSwaggerUI.Enabled := False;
btnAuthSwaggerUI.Enabled := False;
btnExit.Enabled := False;
Logger.Log(1, 'Stopping server: waiting for the database worker to finish.');
end;
shutdownTimer.Enabled := not CanClose;
end;
procedure TFMain.shutdownTimerTimer(Sender: TObject);
begin
Close;
end;
procedure TFMain.FormClose(Sender: TObject; var Action: TCloseAction); procedure TFMain.FormClose(Sender: TObject; var Action: TCloseAction);
begin begin
if Assigned(WsServerModule) then if Assigned(WsServerModule) then
...@@ -191,7 +215,9 @@ begin ...@@ -191,7 +215,9 @@ begin
Logger.Log(1, LogValue('--Settings->webClientVersion', IniEntries.WebClientVersion, IniEntries.WebClientVersionFromIni)); Logger.Log(1, LogValue('--Settings->webClientVersion', IniEntries.WebClientVersion, IniEntries.WebClientVersionFromIni));
if IniEntries.Agency = 'BFD' then if IniEntries.Agency = 'BFD' then
Logger.Log(1, '--- Oracle database: using [Oracle] INI settings ---') begin
Logger.Log(1, LogValue('--Oracle->Server', IniEntries.DatabaseServer, IniEntries.DatabaseServerFromIni));
end
else else
begin begin
Logger.Log(1, '--- Postgres ---'); Logger.Log(1, '--- Postgres ---');
......
...@@ -2,31 +2,31 @@ ...@@ -2,31 +2,31 @@
Current configuration: Server/Source/Common/Common.Ini.pas reads [Oracle] Server, Username, Password for Agency=BFD. Server is the existing TNS alias. The same ConfigureConnection method configures CAD, authentication and standalone device-store connections. Designer credentials are not a runtime fallback. Oracle.Connection has been removed. Current configuration: Server/Source/Common/Common.Ini.pas reads [Oracle] Server, Username, Password for Agency=BFD. Server is the existing TNS alias. The same ConfigureConnection method configures CAD, authentication and standalone device-store connections. Designer credentials are not a runtime fallback. Oracle.Connection has been removed.
Use the common server project for WC and BFD. The standalone BFD project is retired. Use the common server project for WCSO and BFD. The standalone BFD project is retired.
Prepared for Oracle 19c. No tables have been created and no database statements have been executed. Prepared for Oracle 19c. No tables have been created and no database statements have been executed.
`Oracle.Device.Database.pas/.dfm` contains 25 designer UniQueries translated from WC's current authentication, device administration, and WebSocket device checks. It implements TDeviceStore and is referenced by the standalone BFD project for compilation and designer access, but is not auto-created or selected by application services. The connection has no credentials and starts disconnected; every query starts inactive. Connection configuration for Oracle belongs to the later integration step. UseConnection can borrow an existing connection; the store does not free it. `Oracle.Device.Database.pas/.dfm` contains 25 designer UniQueries translated from WCSO's current authentication, device administration, and WebSocket device checks. It implements TDeviceStore and is referenced by the standalone BFD project for compilation and designer access, but is not auto-created or selected by application services. The connection has no credentials and starts disconnected; every query starts inactive. Connection configuration for Oracle belongs to the later integration step. UseConnection can borrow an existing connection; the store does not free it.
## Table assumptions ## Table assumptions
Unqualified uppercase names resolve in the same schema as the CAD tables for now. The final schema owner is still to be discussed. Unqualified uppercase names resolve in the same schema as the CAD tables for now. The final schema owner is still to be discussed.
- `DEVICE_REGISTRATIONS`: `ID`, `CREDENTIAL_ID`, `DEVICE_NAME`, `DEVICE_TYPE`, `PHONE_NUMBER`, `USER_AGENT`, `PUBLIC_KEY_X`, `PUBLIC_KEY_Y`, `PUBLIC_KEY_ALG`, `SIGN_COUNT`, `REGISTERED_AT`, `REVOKED_AT`, `REVOKED_BY`, `STATUS`, `KEY_TYPE`, `USERNAME`, `AGENCY`, `VERIFICATION_CODE`, `VERIFICATION_EXPIRES_AT`. - `DEVICE_REGISTRATIONS`: `ID`, `CREDENTIAL_ID`, `DEVICE_NAME`, `DEVICE_TYPE`, `PHONE_NUMBER`, `USER_AGENT`, `PUBLIC_KEY_X`, `PUBLIC_KEY_Y`, `PUBLIC_KEY_ALG`, `SIGN_COUNT`, `REGISTERED_AT`, `REVOKED_AT`, `REVOKED_BY`, `STATUS`, `KEY_TYPE`, `USERNAME`, `AGENCY`, `VERIFICATION_CODE`, `VERIFICATION_EXPIRES_AT`.
- `REDEEM_CODES`: `ID`, `CODE`, `USED_AT`, `USED_FOR`. This is needed for WC's app-download link workflow; no redeem-code seed data was copied. - `REDEEM_CODES`: `ID`, `CODE`, `USED_AT`, `USED_FOR`. This is needed for WCSO's app-download link workflow; no redeem-code seed data was copied.
The eventual schema must supply generated IDs, WC-compatible defaults, and credential/code uniqueness. Pending registrations need nullable credentials and public keys. Binary key parameters are `ftVarBytes` with size 32, intended for Oracle `RAW(32)` public-key coordinates. The user-agent parameter is `ftMemo`, intended for CLOB storage. Time fields should preserve WC's time-zone-aware expiry behavior; queries use `SYSTIMESTAMP`. Redeem codes retain WC's 20-character limit. Final DDL and remaining field sizes are deferred. The eventual schema must supply generated IDs, WCSO-compatible defaults, and credential/code uniqueness. Pending registrations need nullable credentials and public keys. Binary key parameters are `ftVarBytes` with size 32, intended for Oracle `RAW(32)` public-key coordinates. The user-agent parameter is `ftMemo`, intended for CLOB storage. Time fields should preserve WCSO's time-zone-aware expiry behavior; queries use `SYSTIMESTAMP`. Redeem codes retain WCSO's 20-character limit. Final DDL and remaining field sizes are deferred.
WC's checked-in SQL scripts do not define `DEVICE_TYPE`, `VERIFICATION_CODE`, or `VERIFICATION_EXPIRES_AT`, although current code uses them. Those requirements were taken from service code. Do not treat the old scripts as a complete schema or run their destructive table-recreation statements. WCSO's checked-in SQL scripts do not define `DEVICE_TYPE`, `VERIFICATION_CODE`, or `VERIFICATION_EXPIRES_AT`, although current code uses them. Those requirements were taken from service code. Do not treat the old scripts as a complete schema or run their destructive table-recreation statements.
## Behavior retained ## Behavior retained
- Stored status/key-type values remain lowercase (`pending`, `active`, `revoked`, `simple`, `webauthn`); uppercase applies to identifiers. - Stored status/key-type values remain lowercase (`pending`, `active`, `revoked`, `simple`, `webauthn`); uppercase applies to identifiers.
- Existing active-status versus non-revoked filters remain distinct, matching their WC callers. - Existing active-status versus non-revoked filters remain distinct, matching their WCSO callers.
- Verification code consumption is a conditional UPDATE that checks pending status, code, and expiry and clears the code. Integration must check RowsAffected as WC does. - Verification code consumption is a conditional UPDATE that checks pending status, code, and expiry and clears the code. Integration must check RowsAffected as WCSO does.
- Registration activation retains the pending-row condition. Integration must preserve its RowsAffected checks. - Registration activation retains the pending-row condition. Integration must preserve its RowsAffected checks.
- Device-list verification activity uses a numeric CASE result (1/0), replacing PostgreSQL's boolean expression. Validate UniDAC field conversion when connected. - Device-list verification activity uses a numeric CASE result (1/0), replacing PostgreSQL's boolean expression. Validate UniDAC field conversion when connected.
- `ReserveRedeemCode` starts a transaction, executes a PL/SQL cursor that fetches one unlocked unused code, marks it used, and commits. No available row returns False and rolls back. Exceptions roll back. Call it with a configured connection and no existing transaction. The eventual caller should keep WC's existing order: reserve/commit first, then send the SMS. - `ReserveRedeemCode` starts a transaction, executes a PL/SQL cursor that fetches one unlocked unused code, marks it used, and commits. No available row returns False and rolls back. Exceptions roll back. Call it with a configured connection and no existing transaction. The eventual caller should keep WCSO's existing order: reserve/commit first, then send the SMS.
- No authentication bypass or test-mode boolean has been added. - No authentication bypass or test-mode boolean has been added.
Oracle cursor/locking reference: https://docs.oracle.com/en/database/oracle/oracle-database/19/lnpls/transaction-processing-and-control.html Oracle cursor/locking reference: https://docs.oracle.com/en/database/oracle/oracle-database/19/lnpls/transaction-processing-and-control.html
...@@ -35,7 +35,7 @@ Oracle cursor/locking reference: https://docs.oracle.com/en/database/oracle/orac ...@@ -35,7 +35,7 @@ Oracle cursor/locking reference: https://docs.oracle.com/en/database/oracle/orac
The standalone BFD server builds successfully with this unit. An offline Delphi smoke test instantiated the data module, loaded its DFM, confirmed all 25 queries were inactive and attached to the disconnected connection, checked key/output parameter types, and freed the module. Static checks matched SQL bind names to DFM parameter declarations. The standalone BFD server builds successfully with this unit. An offline Delphi smoke test instantiated the data module, loaded its DFM, confirmed all 25 queries were inactive and attached to the disconnected connection, checked key/output parameter types, and freed the module. Static checks matched SQL bind names to DFM parameter declarations.
SQL execution, Oracle parameter binding, timestamp/boolean conversions, uniqueness behavior, and concurrent code allocation still require tests against the eventual tables. The shared Device.Store boundary and PostgreSQL counterpart are implemented, and WC services use them. Oracle operations implement the same contract but still require live validation and selection/configuration integration. Agency=BFD remains disabled in the common server. SQL execution, Oracle parameter binding, timestamp/boolean conversions, uniqueness behavior, and concurrent code allocation still require tests against the eventual tables. The shared Device.Store boundary and PostgreSQL counterpart are implemented, and WCSO services use them. Oracle operations implement the same contract but still require live validation and selection/configuration integration. Agency=BFD remains disabled in the common server.
## Oracle connection configuration ## Oracle connection configuration
......
unit Server.Startup;
interface
procedure RunServer;
implementation
uses
System.Classes, System.SyncObjs, System.SysUtils, System.IniFiles,
Vcl.StdCtrls, Vcl.Forms, Common.Logging, Main;
type
TMemoLogAppender = class( TInterfacedObject, ILogAppender )
private
FLogLevel: Integer;
FLogMemo: TMemo;
FCriticalSection: TCriticalSection;
public
constructor Create(ALogLevel: Integer; ALogMemo: TMemo);
destructor Destroy; override;
procedure Send(logLevel: Integer; Log: ILog);
end;
TFileLogAppender = class( TInterfacedObject, ILogAppender )
private
FLogLevel: Integer;
FFilename: string;
FLogDirectory: string;
FCriticalSection: TCriticalSection;
function GetLogFilePath: string;
public
constructor Create(ALogLevel: Integer; AFilename: string);
destructor Destroy; override;
procedure Send(logLevel: Integer; Log: ILog);
end;
{ TMemoLogAppender }
constructor TMemoLogAppender.Create(ALogLevel: Integer; ALogMemo: TMemo);
begin
FLogLevel := ALogLevel;
FLogMemo := ALogMemo;
FCriticalSection := TCriticalSection.Create;
end;
destructor TMemoLogAppender.Destroy;
begin
FCriticalSection.Free;
inherited;
end;
procedure TMemoLogAppender.Send(logLevel: Integer; Log: ILog);
var
FormattedMessage: string;
LogTime: TDateTime;
LogMsg: string;
begin
if logLevel > FLogLevel then
Exit;
FCriticalSection.Acquire;
try
LogTime := Now;
FormattedMessage := FormatDateTime('[yyyy-mm-dd HH:nn:ss.zzz]', LogTime);
LogMsg := Log.GetMessage;
if LogMsg.IsEmpty then
FormattedMessage := ''
else
FormattedMessage := FormattedMessage + '[' + IntToStr(logLevel) +'] ' + LogMsg;
finally
FCriticalSection.Release;
end;
TThread.Queue(nil,
procedure
begin
if Assigned(FLogMemo) and not (csDestroying in FLogMemo.ComponentState) then
FLogMemo.Lines.Add(FormattedMessage);
end);
end;
{ TFileLogAppender }
constructor TFileLogAppender.Create(ALogLevel: integer; AFilename: string);
var
iniFile: TIniFile;
fileNum: integer;
begin
FLogLevel := ALogLevel;
FCriticalSection := TCriticalSection.Create;
iniFile := TIniFile.Create( ChangeFileExt(Application.ExeName, '.ini') );
try
FLogDirectory := ExtractFilePath(Application.ExeName) + 'logs\';
ForceDirectories(FLogDirectory);
fileNum := iniFile.ReadInteger( 'Settings', 'LogFileNum', 0 ) + 1;
FFilename := AFilename + Format( '%.4d', [fileNum] );
iniFile.WriteInteger( 'Settings', 'LogFileNum', fileNum );
finally
iniFile.Free;
end;
end;
destructor TFileLogAppender.Destroy;
begin
FCriticalSection.Free;
inherited;
end;
function TFileLogAppender.GetLogFilePath: string;
begin
Result := FLogDirectory + FFilename + '.log';
end;
procedure TFileLogAppender.Send(logLevel: integer; Log: ILog);
var
FormattedMessage: string;
LogFile: string;
LogTime: TDateTime;
LogMsg: string;
FLogFile: TextFile;
begin
FCriticalSection.Acquire;
try
LogTime := Now;
LogFile := GetLogFilePath;
formattedMessage := FormatDateTime('[yyyy-mm-dd HH:nn:ss.zzz]', logTime);
logMsg := Log.GetMessage;
if logMsg.IsEmpty then
formattedMessage := ''
else
formattedMessage := formattedMessage + '[' + IntToStr(logLevel) +'] ' + logMsg;
try
AssignFile( FLogFile, LogFile );
if FileExists(LogFile) then
Append( FLogFile )
else
ReWrite( FLogFile );
if logLevel <= FLogLevel then
WriteLn( FLogFile, FormattedMessage );
finally
CloseFile(FLogFile);
end;
finally
FCriticalSection.Release;
end;
end;
procedure RunServer;
var
iniFile: TIniFile;
memoLogLevel: Integer;
fileLogLevel: Integer;
begin
ReportMemoryLeaksOnShutdown := True;
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.CreateForm(TFMain, FMain);
iniFile := TIniFile.Create( ChangeFileExt(Application.ExeName, '.ini') );
try
memoLogLevel := IniFile.ReadInteger( 'Settings', 'MemoLogLevel', 3 );
fileLogLevel := IniFile.ReadInteger( 'Settings', 'FileLogLevel', 4 );
finally
iniFile.Free;
end;
Logger.AddAppender(TMemoLogAppender.Create( memoLogLevel, FMain.memoinfo ));
Logger.AddAppender(TFileLogAppender.Create( fileLogLevel, ChangeFileExt(ExtractFileName(Application.ExeName), '') ));
Application.Run;
end;
end.
unit Ws.DataModel; unit Ws.DataModel;
// Server-side WebSocket data model. // Server-side WebSocket data model.
// Note: Owns a main-thread client notification listener and a worker thread that // Note: Owns a worker thread with separate listener and query connections that
// queries the database for the five data sets used by the polling timers that // queries the database for the five data sets used by the polling timers that
// existed in each connected browser client, then broadcasts the results to // existed in each connected browser client, then broadcasts the results to
// every handshaked WebSocket connection via the supplied broadcast callback. // every handshaked WebSocket connection via the supplied broadcast callback.
...@@ -15,7 +15,7 @@ interface ...@@ -15,7 +15,7 @@ interface
uses uses
System.SysUtils, System.Classes, System.JSON, System.SysUtils, System.Classes, System.JSON,
System.SyncObjs, System.SyncObjs,
Vcl.ExtCtrls, Winapi.Windows,
Agency.Data, Agency.Data,
WsMessages, WsMessages,
Common.Logging; Common.Logging;
...@@ -27,13 +27,11 @@ type ...@@ -27,13 +27,11 @@ type
private private
FData: TAgencyData; FData: TAgencyData;
FListenerData: TAgencyData; FListenerData: TAgencyData;
FListenerTimer: TTimer;
FThread: TThread; FThread: TThread;
FStopEvent: TEvent; FStopEvent: TEvent;
FIntervalMs: Integer; FIntervalMs: Integer;
FBroadcast: TWsBroadcastProc; FBroadcast: TWsBroadcastProc;
procedure ListenerTimerFire(Sender: TObject);
procedure Execute; procedure Execute;
procedure BroadcastAll; procedure BroadcastAll;
...@@ -45,6 +43,7 @@ type ...@@ -45,6 +43,7 @@ type
public public
constructor Create(ABroadcast: TWsBroadcastProc; AIntervalMs: Integer = 5000); constructor Create(ABroadcast: TWsBroadcastProc; AIntervalMs: Integer = 5000);
destructor Destroy; override; destructor Destroy; override;
function RequestStop: Boolean;
end; end;
implementation implementation
...@@ -64,12 +63,6 @@ begin ...@@ -64,12 +63,6 @@ begin
FIntervalMs := AIntervalMs; FIntervalMs := AIntervalMs;
FStopEvent := TEvent.Create(nil, False, False, ''); FStopEvent := TEvent.Create(nil, False, False, '');
FData := nil; FData := nil;
FListenerData := CreateAgencyData;
FListenerTimer := TTimer.Create(nil);
FListenerTimer.Interval := FIntervalMs;
FListenerTimer.OnTimer := ListenerTimerFire;
FListenerTimer.Enabled := True;
ListenerTimerFire(nil);
FThread := TThread.CreateAnonymousThread(Execute); FThread := TThread.CreateAnonymousThread(Execute);
FThread.FreeOnTerminate := False; FThread.FreeOnTerminate := False;
FThread.Start; FThread.Start;
...@@ -77,9 +70,6 @@ end; ...@@ -77,9 +70,6 @@ end;
destructor TWsDataModel.Destroy; destructor TWsDataModel.Destroy;
begin begin
if Assigned(FListenerTimer) then
FListenerTimer.Enabled := False;
FListenerTimer.Free;
if Assigned(FThread) then if Assigned(FThread) then
begin begin
FThread.Terminate; FThread.Terminate;
...@@ -87,14 +77,17 @@ begin ...@@ -87,14 +77,17 @@ begin
FThread.WaitFor; FThread.WaitFor;
FThread.Free; FThread.Free;
end; end;
FListenerData.Free;
FStopEvent.Free; FStopEvent.Free;
inherited; inherited;
end; end;
procedure TWsDataModel.ListenerTimerFire(Sender: TObject); function TWsDataModel.RequestStop: Boolean;
begin begin
FListenerData.StartUpdateListener; if not Assigned(FThread) then
Exit(True);
FThread.Terminate;
FStopEvent.SetEvent;
Result := WaitForSingleObject(FThread.Handle, 0) = WAIT_OBJECT_0;
end; end;
procedure TWsDataModel.Execute; procedure TWsDataModel.Execute;
...@@ -106,8 +99,10 @@ begin ...@@ -106,8 +99,10 @@ begin
try try
try try
FListenerData := CreateAgencyData;
FData := CreateAgencyData; FData := CreateAgencyData;
FData.ConfigureQueryTimeouts; FData.ConfigureQueryTimeouts;
FListenerData.StartUpdateListener;
while not TThread.CurrentThread.CheckTerminated do while not TThread.CurrentThread.CheckTerminated do
begin begin
...@@ -116,13 +111,20 @@ begin ...@@ -116,13 +111,20 @@ begin
Inc(unitMapElapsedMs, FIntervalMs); Inc(unitMapElapsedMs, FIntervalMs);
FListenerData.StartUpdateListener;
if TThread.CurrentThread.CheckTerminated then
Break;
if not FData.EnsureConnected then if not FData.EnsureConnected then
Continue; Continue;
if TThread.CurrentThread.CheckTerminated then
Break;
if FListenerData.ConsumeCADUpdate then if FListenerData.ConsumeCADUpdate then
begin begin
// ADD THIS DELETE BEFORE DEPLOY // ADD THIS DELETE BEFORE DEPLOY
Logger.Log(1, 'WsDataModel: disupdate consumed; starting BroadcastAll'); Logger.Log(4, 'WsDataModel: disupdate consumed; starting BroadcastAll');
BroadcastAll; BroadcastAll;
unitMapElapsedMs := 0; unitMapElapsedMs := 0;
end end
...@@ -142,8 +144,11 @@ begin ...@@ -142,8 +144,11 @@ begin
Logger.Log(1, 'WsDataModel worker stopped: ' + E.Message); Logger.Log(1, 'WsDataModel worker stopped: ' + E.Message);
end; end;
finally finally
FData.Free; try
FData := nil; FreeAndNil(FListenerData);
finally
FreeAndNil(FData);
end;
end; end;
end; end;
...@@ -171,7 +176,7 @@ begin ...@@ -171,7 +176,7 @@ begin
except except
on E: Exception do Logger.Log(2, 'WsDataModel COMPLAINT_LIST error: ' + E.Message); on E: Exception do Logger.Log(2, 'WsDataModel COMPLAINT_LIST error: ' + E.Message);
end; end;
Logger.Log(3, Format('WsDataModel: BroadcastAll complaint counts - map=%d, list=%d', Logger.Log(4, Format('WsDataModel: BroadcastAll complaint counts - map=%d, list=%d',
[complaintMapCount, complaintListCount])); [complaintMapCount, complaintListCount]));
Logger.Log(5, 'WsDataModel: BroadcastAll end'); Logger.Log(5, 'WsDataModel: BroadcastAll end');
end; end;
......
...@@ -18,6 +18,7 @@ type ...@@ -18,6 +18,7 @@ type
procedure SetOnClientsChanged(const AValue: TClientsChangedEvent); procedure SetOnClientsChanged(const AValue: TClientsChangedEvent);
public public
procedure StartWsServer; procedure StartWsServer;
function StopDataModel: Boolean;
procedure Broadcast(const AMessage: string); procedure Broadcast(const AMessage: string);
function GetClientSnapshots: TArray<TConnectedClientSnapshot>; function GetClientSnapshots: TArray<TConnectedClientSnapshot>;
property OnClientsChanged: TClientsChangedEvent read GetOnClientsChanged write SetOnClientsChanged; property OnClientsChanged: TClientsChangedEvent read GetOnClientsChanged write SetOnClientsChanged;
...@@ -65,6 +66,13 @@ begin ...@@ -65,6 +66,13 @@ begin
Logger.Log(1, 'WsDataModel started (5 s notification check interval)'); Logger.Log(1, 'WsDataModel started (5 s notification check interval)');
end; end;
function TWsServerModule.StopDataModel: Boolean;
begin
Result := not Assigned(FDataModel);
if Assigned(FDataModel) then
Result := FDataModel.RequestStop;
end;
procedure TWsServerModule.Broadcast(const AMessage: string); procedure TWsServerModule.Broadcast(const AMessage: string);
begin begin
FManager.Broadcast(AMessage); FManager.Broadcast(AMessage);
......
object WCAuthDatabase: TWCAuthDatabase
OnCreate = DataModuleCreate
OnDestroy = DataModuleDestroy
Height = 249
Width = 433
object uqMisc: TUniQuery
FetchRows = 100
Left = 237
Top = 53
end
object ucLems: TUniConnection
ProviderName = 'PostgreSQL'
Database = 'lems_ocso'
Username = 'postgres'
Server = '192.168.102.10'
LoginPrompt = False
Left = 221
Top = 145
EncryptedPassword = '9AFF92FF8CFF86FF8CFFCFFFCEFF'
end
object uqAuth: TUniQuery
Connection = ucLems
SQL.Strings = (
'select u.* from lems.users u '
'where upper(user_name) = :USER_NAME '
'and u.dept = :AGENCY')
Left = 88
Top = 48
end
object PostgreSQLUniProvider1: TPostgreSQLUniProvider
Left = 90
Top = 148
end
object uqAgencies: TUniQuery
Connection = ucLems
SQL.Strings = (
'select agencyid as agency '
'from lems.agency '
'where login = ''T'' '
'order by agencyid')
Left = 40
Top = 200
end
object uqAgencyConfig: TUniQuery
Connection = ucLems
SQL.Strings = (
'select agencyid, agencyname '
'from lems.agency '
'where login = ''T'' '
'order by agencyname')
Left = 160
Top = 200
end
end
unit WC.Auth.Database;
interface
uses
Agency.Auth, System.SysUtils, System.Classes, MemDS,
Data.DB, DBAccess, Uni, UniProvider, PostgreSQLUniProvider;
type
TWCAuthDatabase = class(TAgencyAuth)
uqMisc: TUniQuery;
ucLems: TUniConnection;
uqAuth: TUniQuery;
uqAgencies: TUniQuery;
uqAgencyConfig: TUniQuery;
PostgreSQLUniProvider1: TPostgreSQLUniProvider;
procedure DataModuleCreate(Sender: TObject);
procedure DataModuleDestroy(Sender: TObject);
private
{ Private declarations }
protected
function GetConnection: TUniConnection; override;
function GetUserData: TDataSet; override;
function GetAgencies: TDataSet; override;
function GetAgencyConfig: TDataSet; override;
public
{ Public declarations }
procedure OpenUser(User, Agency: string); override;
procedure OpenAgencies; override;
procedure OpenAgencyConfig; override;
procedure SetLoginAuditEntry( userStr: string ); override;
end;
var
WCAuthDatabase: TWCAuthDatabase;
implementation
uses
System.JSON,
Common.Config,
Common.Logging,
Common.Ini,
uLibrary;
{%CLASSGROUP 'Vcl.Controls.TControl'}
{$R *.dfm}
function TWCAuthDatabase.GetConnection: TUniConnection;
begin
Result := ucLems;
end;
function TWCAuthDatabase.GetUserData: TDataSet;
begin
Result := uqAuth;
end;
function TWCAuthDatabase.GetAgencies: TDataSet;
begin
Result := uqAgencies;
end;
function TWCAuthDatabase.GetAgencyConfig: TDataSet;
begin
Result := uqAgencyConfig;
end;
procedure TWCAuthDatabase.OpenUser(User, Agency: string);
begin
uqAuth.Close;
uqAuth.ParamByName('USER_NAME').AsString := UpperCase(Trim(User));
uqAuth.ParamByName('AGENCY').AsString := UpperCase(Trim(Agency));
uqAuth.Open;
end;
procedure TWCAuthDatabase.OpenAgencies;
begin
uqAgencies.Close;
uqAgencies.Open;
end;
procedure TWCAuthDatabase.OpenAgencyConfig;
begin
uqAgencyConfig.Close;
uqAgencyConfig.Open;
end;
procedure TWCAuthDatabase.DataModuleCreate(Sender: TObject);
begin
IniEntries.ConfigureConnection(ucLems);
try
Logger.Log(2, '');
Logger.Log(2, 'Connecting to PostgreSQL auth database...');
if not ucLems.Connected then
ucLems.Connect;
except
on E: Exception do
Logger.Log(2, Format('Failed to connect to auth database: %s', [E.Message]));
end;
end;
procedure TWCAuthDatabase.DataModuleDestroy(Sender: TObject);
begin
if ucLems.Connected then
ucLems.Disconnect;
end;
procedure TWCAuthDatabase.SetLoginAuditEntry( userStr: string );
var
auditMasterId: string;
userInfo: TStringList;
username: string;
fullname: string;
agency: string;
userid: string;
personnelid: string;
begin
Logger.Log( 3, 'TWCAuthDatabase.SetLoginAuditEntry - start' );
userInfo := TStringList.Create;
try
userInfo.Delimiter := '&';
userInfo.StrictDelimiter := True;
userInfo.DelimitedText := userStr;
username := userInfo.Values['username'];
fullname := userInfo.Values['fullname'];
agency := userInfo.Values['agency'];
userid := userInfo.Values['userId'];
personnelid := userInfo.Values['personnelid'];
if ServerConfig.auditEnabled then
begin
auditMasterId := GetNextSeqVal(uqMisc, 'SEQ_AUDIT_MASTERID');
SetMasterAuditEntry(uqMisc, auditMasterId, 'AUTH', '', agency, personnelid, fullname, 'Login', '', 'emiMobile');
end
else
begin
Logger.Log( 3, 'SetSearchAuditEntry->SetMasterAuditEntry - auditEnabled = false' );
end;
finally
userInfo.Free;
end;
end;
end.
object WCAPIDataModule: TWCAPIDataModule object WCSOAPIDataModule: TWCSOAPIDataModule
OnCreate = DataModuleCreate OnCreate = DataModuleCreate
Height = 491 Height = 491
Width = 640 Width = 640
......
unit WC.Api.Database; unit WCSO.Api.Database;
interface interface
...@@ -11,7 +11,7 @@ uses ...@@ -11,7 +11,7 @@ uses
UniAlerter; UniAlerter;
type type
TWCAPIDataModule = class(TAgencyData) TWCSOAPIDataModule = class(TAgencyData)
uqMapUnits: TUniQuery; uqMapUnits: TUniQuery;
uqUnitList: TUniQuery; uqUnitList: TUniQuery;
uqComplaintUnits: TUniQuery; uqComplaintUnits: TUniQuery;
...@@ -242,7 +242,7 @@ type ...@@ -242,7 +242,7 @@ type
end; end;
var var
WCAPIDataModule: TWCAPIDataModule; WCSOAPIDataModule: TWCSOAPIDataModule;
implementation implementation
...@@ -251,7 +251,7 @@ implementation ...@@ -251,7 +251,7 @@ implementation
{$R *.dfm} {$R *.dfm}
procedure TWCAPIDataModule.DataModuleCreate(Sender: TObject); procedure TWCSOAPIDataModule.DataModuleCreate(Sender: TObject);
begin begin
FCADUpdate := 0; FCADUpdate := 0;
FUpdateListenerFailed := 0; FUpdateListenerFailed := 0;
...@@ -260,7 +260,7 @@ begin ...@@ -260,7 +260,7 @@ begin
end; end;
function TWCAPIDataModule.EnsureConnected: Boolean; function TWCSOAPIDataModule.EnsureConnected: Boolean;
begin begin
Result := False; Result := False;
...@@ -281,7 +281,7 @@ begin ...@@ -281,7 +281,7 @@ begin
end; end;
end; end;
function TWCAPIDataModule.StartUpdateListener: Boolean; function TWCSOAPIDataModule.StartUpdateListener: Boolean;
begin begin
Result := False; Result := False;
...@@ -320,17 +320,17 @@ begin ...@@ -320,17 +320,17 @@ begin
end; end;
end; end;
procedure TWCAPIDataModule.MarkCADUpdate; procedure TWCSOAPIDataModule.MarkCADUpdate;
begin begin
TInterlocked.Exchange(FCADUpdate, 1); TInterlocked.Exchange(FCADUpdate, 1);
end; end;
function TWCAPIDataModule.ConsumeCADUpdate: Boolean; function TWCSOAPIDataModule.ConsumeCADUpdate: Boolean;
begin begin
Result := TInterlocked.Exchange(FCADUpdate, 0) <> 0; Result := TInterlocked.Exchange(FCADUpdate, 0) <> 0;
end; end;
procedure TWCAPIDataModule.uqComplaintListCalcFields(DataSet: TDataSet); procedure TWCSOAPIDataModule.uqComplaintListCalcFields(DataSet: TDataSet);
var var
raw: string; raw: string;
rawCategory: string; rawCategory: string;
...@@ -362,7 +362,7 @@ begin ...@@ -362,7 +362,7 @@ begin
end; end;
procedure TWCAPIDataModule.uqMapComplaintsCalcFields(DataSet: TDataSet); procedure TWCSOAPIDataModule.uqMapComplaintsCalcFields(DataSet: TDataSet);
var var
rawCategory: string; rawCategory: string;
rawPriority: string; rawPriority: string;
...@@ -394,7 +394,7 @@ begin ...@@ -394,7 +394,7 @@ begin
Format('%s_%s.png', [HandleUniqueFilenames(rawCategory), statusKey]); Format('%s_%s.png', [HandleUniqueFilenames(rawCategory), statusKey]);
end; end;
function TWCAPIDataModule.HandleUniqueFilenames(const category: string): string; function TWCSOAPIDataModule.HandleUniqueFilenames(const category: string): string;
var var
i: Integer; i: Integer;
ch: Char; ch: Char;
...@@ -414,23 +414,20 @@ begin ...@@ -414,23 +414,20 @@ begin
end; end;
procedure TWCAPIDataModule.UniAlerter1Event(Sender: TDAAlerter; const EventName, Message: string); procedure TWCSOAPIDataModule.UniAlerter1Event(Sender: TDAAlerter; const EventName, Message: string);
begin begin
// ADD THIS DELETE BEFORE DEPLOY
Logger.Log(1, Format('PostgreSQL alerter event received: "%s"', [EventName]));
if SameText(EventName, 'disupdate') then if SameText(EventName, 'disupdate') then
MarkCADUpdate; MarkCADUpdate;
end; end;
procedure TWCAPIDataModule.UniAlerter1Error(Sender: TDAAlerter; E: Exception); procedure TWCSOAPIDataModule.UniAlerter1Error(Sender: TDAAlerter; E: Exception);
begin begin
Logger.Log(1, 'PostgreSQL disupdate listener error: ' + E.Message); Logger.Log(1, 'PostgreSQL disupdate listener error: ' + E.Message);
TInterlocked.Exchange(FUpdateListenerFailed, 1); TInterlocked.Exchange(FUpdateListenerFailed, 1);
MarkCADUpdate; MarkCADUpdate;
end; end;
function TWCAPIDataModule.BadgeCounts(const BaseQuery: TUniQuery): Integer; function TWCSOAPIDataModule.BadgeCounts(const BaseQuery: TUniQuery): Integer;
var var
Q: TUniQuery; Q: TUniQuery;
WrappedSQL: string; WrappedSQL: string;
...@@ -453,7 +450,7 @@ begin ...@@ -453,7 +450,7 @@ begin
end; end;
end; end;
procedure TWCAPIDataModule.ConfigureQueryTimeouts; procedure TWCSOAPIDataModule.ConfigureQueryTimeouts;
const const
COMMAND_TIMEOUT_SECONDS = 15; COMMAND_TIMEOUT_SECONDS = 15;
begin begin
...@@ -465,9 +462,9 @@ begin ...@@ -465,9 +462,9 @@ begin
uqComplaintList.SpecificOptions.Values['CommandTimeout'] := IntToStr(COMMAND_TIMEOUT_SECONDS); uqComplaintList.SpecificOptions.Values['CommandTimeout'] := IntToStr(COMMAND_TIMEOUT_SECONDS);
end; end;
function TWCAPIDataModule.GetBadgeCounts: TJSONObject; function TWCSOAPIDataModule.GetBadgeCounts: TJSONObject;
begin begin
Logger.Log(3, '---TWCAPIDataModule.GetBadgeCounts initiated'); Logger.Log(4, '---TWCSOAPIDataModule.GetBadgeCounts initiated');
Result := TJSONObject.Create; Result := TJSONObject.Create;
try try
...@@ -485,19 +482,19 @@ begin ...@@ -485,19 +482,19 @@ begin
except except
on E: Exception do on E: Exception do
begin begin
Logger.Log(2, '---TWCAPIDataModule.GetBadgeCounts error: ' + E.ClassName + ': ' + E.Message); Logger.Log(2, '---TWCSOAPIDataModule.GetBadgeCounts error: ' + E.ClassName + ': ' + E.Message);
raise EXDataHttpException.Create(500, 'Failed to load badge counts'); raise EXDataHttpException.Create(500, 'Failed to load badge counts');
end; end;
end; end;
Logger.Log(3, '---TWCAPIDataModule.GetBadgeCounts End'); Logger.Log(4, '---TWCSOAPIDataModule.GetBadgeCounts End');
except except
Result.Free; Result.Free;
raise; raise;
end; end;
end; end;
function TWCAPIDataModule.GetComplaintMap: TJSONObject; function TWCSOAPIDataModule.GetComplaintMap: TJSONObject;
var var
data: TJSONArray; data: TJSONArray;
emitted: Integer; emitted: Integer;
...@@ -510,7 +507,7 @@ var ...@@ -510,7 +507,7 @@ var
latestUpdate: TDateTime; latestUpdate: TDateTime;
unitObj: TJSONObject; unitObj: TJSONObject;
begin begin
Logger.Log(3, '---TWCAPIDataModule.GetComplaintMap initiated'); Logger.Log(4, '---TWCSOAPIDataModule.GetComplaintMap initiated');
Result := TJSONObject.Create; Result := TJSONObject.Create;
try try
...@@ -625,16 +622,16 @@ begin ...@@ -625,16 +622,16 @@ begin
Result.AddPair('count', TJSONNumber.Create(data.Count)); Result.AddPair('count', TJSONNumber.Create(data.Count));
Result.AddPair('returned', TJSONNumber.Create(emitted)); Result.AddPair('returned', TJSONNumber.Create(emitted));
Logger.Log(3, '---TWCAPIDataModule.GetComplaintMap End (returned=' + IntToStr(emitted) + ')'); Logger.Log(4, '---TWCSOAPIDataModule.GetComplaintMap End (returned=' + IntToStr(emitted) + ')');
except except
on E: EXDataHttpException do on E: EXDataHttpException do
begin begin
Logger.Log(2, '---TWCAPIDataModule.GetComplaintMap http error: ' + E.ClassName + ': ' + E.Message); Logger.Log(2, '---TWCSOAPIDataModule.GetComplaintMap http error: ' + E.ClassName + ': ' + E.Message);
raise; raise;
end; end;
on E: Exception do on E: Exception do
begin begin
Logger.Log(2, '---TWCAPIDataModule.GetComplaintMap error: ' + E.ClassName + ': ' + E.Message); Logger.Log(2, '---TWCSOAPIDataModule.GetComplaintMap error: ' + E.ClassName + ': ' + E.Message);
raise EXDataHttpException.Create(500, 'Failed to load complaint map'); raise EXDataHttpException.Create(500, 'Failed to load complaint map');
end; end;
end; end;
...@@ -647,14 +644,14 @@ begin ...@@ -647,14 +644,14 @@ begin
end; end;
end; end;
function TWCAPIDataModule.GetUnitMap: TJSONObject; function TWCSOAPIDataModule.GetUnitMap: TJSONObject;
var var
data: TJSONArray; data: TJSONArray;
item: TJSONObject; item: TJSONObject;
unitStatus: string; unitStatus: string;
updateTimeText: string; updateTimeText: string;
begin begin
Logger.Log(4, '---TWCAPIDataModule.GetUnitMap initiated'); Logger.Log(4, '---TWCSOAPIDataModule.GetUnitMap initiated');
Result := TJSONObject.Create; Result := TJSONObject.Create;
try try
...@@ -722,28 +719,28 @@ begin ...@@ -722,28 +719,28 @@ begin
except except
on E: EXDataHttpException do on E: EXDataHttpException do
begin begin
Logger.Log(2, '---TWCAPIDataModule.GetUnitMap http error: ' + E.ClassName + ': ' + E.Message); Logger.Log(2, '---TWCSOAPIDataModule.GetUnitMap http error: ' + E.ClassName + ': ' + E.Message);
raise; raise;
end; end;
on E: Exception do on E: Exception do
begin begin
Logger.Log(2, '---TWCAPIDataModule.GetUnitMap error: ' + E.ClassName + ': ' + E.Message); Logger.Log(2, '---TWCSOAPIDataModule.GetUnitMap error: ' + E.ClassName + ': ' + E.Message);
raise EXDataHttpException.Create(500, 'Failed to load unit map'); raise EXDataHttpException.Create(500, 'Failed to load unit map');
end; end;
end; end;
Logger.Log(4, '---TWCAPIDataModule.GetUnitMap End'); Logger.Log(4, '---TWCSOAPIDataModule.GetUnitMap End');
except except
Result.Free; Result.Free;
raise; raise;
end; end;
end; end;
function TWCAPIDataModule.GetComplaintList: TJSONObject; function TWCSOAPIDataModule.GetComplaintList: TJSONObject;
var var
data: TJSONArray; data: TJSONArray;
lastDistrict: string; lastDistrict: string;
begin begin
Logger.Log(3, '---TWCAPIDataModule.GetComplaintList initiated'); Logger.Log(4, '---TWCSOAPIDataModule.GetComplaintList initiated');
Result := TJSONObject.Create; Result := TJSONObject.Create;
try try
...@@ -830,23 +827,23 @@ begin ...@@ -830,23 +827,23 @@ begin
Result.AddPair('count', TJSONNumber.Create(data.Count)); Result.AddPair('count', TJSONNumber.Create(data.Count));
Result.AddPair('returned', TJSONNumber.Create(data.Count)); Result.AddPair('returned', TJSONNumber.Create(data.Count));
except except
Logger.Log(2, '---TWCAPIDataModule.GetComplaintList End (error)'); Logger.Log(4, '---TWCSOAPIDataModule.GetComplaintList End (error)');
raise EXDataHttpException.Create(500, 'Failed to load complaints list'); raise EXDataHttpException.Create(500, 'Failed to load complaints list');
end; end;
Logger.Log(3, '---TWCAPIDataModule.GetComplaintList End'); Logger.Log(4, '---TWCSOAPIDataModule.GetComplaintList End');
except except
Result.Free; Result.Free;
raise; raise;
end; end;
end; end;
function TWCAPIDataModule.GetUnitList: TJSONObject; function TWCSOAPIDataModule.GetUnitList: TJSONObject;
var var
data: TJSONArray; data: TJSONArray;
lastAgency: string; lastAgency: string;
begin begin
Logger.Log(3, '---TWCAPIDataModule.GetUnitList initiated'); Logger.Log(4, '---TWCSOAPIDataModule.GetUnitList initiated');
Result := TJSONObject.Create; Result := TJSONObject.Create;
try try
...@@ -1010,8 +1007,8 @@ begin ...@@ -1010,8 +1007,8 @@ begin
); );
except except
Logger.Log( Logger.Log(
3, 4,
'---TWCAPIDataModule.GetUnitList End (error)' '---TWCSOAPIDataModule.GetUnitList End (error)'
); );
raise EXDataHttpException.Create( raise EXDataHttpException.Create(
500, 500,
...@@ -1019,18 +1016,18 @@ begin ...@@ -1019,18 +1016,18 @@ begin
); );
end; end;
Logger.Log(3, '---TWCAPIDataModule.GetUnitList End'); Logger.Log(4, '---TWCSOAPIDataModule.GetUnitList End');
except except
Result.Free; Result.Free;
raise; raise;
end; end;
end; end;
function TWCAPIDataModule.GetComplaintDetails(ComplaintId: string): TJSONObject; function TWCSOAPIDataModule.GetComplaintDetails(ComplaintId: string): TJSONObject;
var var
obj: TJSONObject; obj: TJSONObject;
begin begin
Logger.Log(3,'---TWCAPIDataModule.GetComplaintDetails initiated: '+ComplaintId); Logger.Log(4,'---TWCSOAPIDataModule.GetComplaintDetails initiated: '+ComplaintId);
Result := TJSONObject.Create; Result := TJSONObject.Create;
try try
try try
...@@ -1094,27 +1091,27 @@ begin ...@@ -1094,27 +1091,27 @@ begin
except except
on E: EXDataHttpException do on E: EXDataHttpException do
begin begin
Logger.Log(3,'---TWCAPIDataModule.GetComplaintDetails not found'); Logger.Log(3,'---TWCSOAPIDataModule.GetComplaintDetails not found');
raise; raise;
end; end;
on E: Exception do on E: Exception do
begin begin
Logger.Log(3,'---TWCAPIDataModule.GetComplaintDetails error: '+E.Message); Logger.Log(3,'---TWCSOAPIDataModule.GetComplaintDetails error: '+E.Message);
raise EXDataHttpException.Create(500,'Failed to load complaint details'); raise EXDataHttpException.Create(500,'Failed to load complaint details');
end; end;
end; end;
Logger.Log(3,'---TWCAPIDataModule.GetComplaintDetails End'); Logger.Log(4,'---TWCSOAPIDataModule.GetComplaintDetails End');
except except
Result.Free; Result.Free;
raise; raise;
end; end;
end; end;
function TWCAPIDataModule.GetComplaintArchiveDetails(ComplaintId: string): TJSONObject; function TWCSOAPIDataModule.GetComplaintArchiveDetails(ComplaintId: string): TJSONObject;
var var
obj: TJSONObject; obj: TJSONObject;
begin begin
Logger.Log(3,'---TWCAPIDataModule.GetComplaintArchiveDetails initiated: '+ComplaintId); Logger.Log(4,'---TWCSOAPIDataModule.GetComplaintArchiveDetails initiated: '+ComplaintId);
Result := TJSONObject.Create; Result := TJSONObject.Create;
try try
try try
...@@ -1181,29 +1178,29 @@ begin ...@@ -1181,29 +1178,29 @@ begin
except except
on E: EXDataHttpException do on E: EXDataHttpException do
begin begin
Logger.Log(3,'---TWCAPIDataModule.GetComplaintArchiveDetails not found'); Logger.Log(3,'---TWCSOAPIDataModule.GetComplaintArchiveDetails not found');
raise; raise;
end; end;
on E: Exception do on E: Exception do
begin begin
Logger.Log(3,'---TWCAPIDataModule.GetComplaintArchiveDetails error: '+E.Message); Logger.Log(3,'---TWCSOAPIDataModule.GetComplaintArchiveDetails error: '+E.Message);
raise EXDataHttpException.Create(500,'Failed to load complaint archive details'); raise EXDataHttpException.Create(500,'Failed to load complaint archive details');
end; end;
end; end;
Logger.Log(3,'---TWCAPIDataModule.GetComplaintArchiveDetails End'); Logger.Log(4,'---TWCSOAPIDataModule.GetComplaintArchiveDetails End');
except except
Result.Free; Result.Free;
raise; raise;
end; end;
end; end;
function TWCAPIDataModule.GetComplaintMemos(CfsId: string): TJSONObject; function TWCSOAPIDataModule.GetComplaintMemos(CfsId: string): TJSONObject;
var var
data: TJSONArray; data: TJSONArray;
item: TJSONObject; item: TJSONObject;
ts: string; ts: string;
begin begin
Logger.Log(3, '---TWCAPIDataModule.GetComplaintMemos initiated: ' + CfsId); Logger.Log(4, '---TWCSOAPIDataModule.GetComplaintMemos initiated: ' + CfsId);
Result := TJSONObject.Create; Result := TJSONObject.Create;
try try
...@@ -1247,29 +1244,29 @@ begin ...@@ -1247,29 +1244,29 @@ begin
except except
on E: EXDataHttpException do on E: EXDataHttpException do
begin begin
Logger.Log(2, '---TWCAPIDataModule.GetComplaintMemos http error: ' + E.ClassName + ': ' + E.Message); Logger.Log(2, '---TWCSOAPIDataModule.GetComplaintMemos http error: ' + E.ClassName + ': ' + E.Message);
raise; raise;
end; end;
on E: Exception do on E: Exception do
begin begin
Logger.Log(2, '---TWCAPIDataModule.GetComplaintMemos error: ' + E.ClassName + ': ' + E.Message); Logger.Log(2, '---TWCSOAPIDataModule.GetComplaintMemos error: ' + E.ClassName + ': ' + E.Message);
raise EXDataHttpException.Create(500, 'Failed to load complaint memos'); raise EXDataHttpException.Create(500, 'Failed to load complaint memos');
end; end;
end; end;
Logger.Log(3, '---TWCAPIDataModule.GetComplaintMemos End'); Logger.Log(4, '---TWCSOAPIDataModule.GetComplaintMemos End');
except except
Result.Free; Result.Free;
raise; raise;
end; end;
end; end;
function TWCAPIDataModule.GetComplaintHistory(ComplaintId: string): TJSONObject; function TWCSOAPIDataModule.GetComplaintHistory(ComplaintId: string): TJSONObject;
var var
dataArr: TJSONArray; dataArr: TJSONArray;
rowObj: TJSONObject; rowObj: TJSONObject;
returnedCount: Integer; returnedCount: Integer;
begin begin
Logger.Log(4, '---TWCAPIDataModule.GetComplaintHistory initiated: ' + ComplaintId); Logger.Log(4, '---TWCSOAPIDataModule.GetComplaintHistory initiated: ' + ComplaintId);
Result := TJSONObject.Create; Result := TJSONObject.Create;
try try
...@@ -1315,16 +1312,16 @@ begin ...@@ -1315,16 +1312,16 @@ begin
Result.AddPair('count', TJSONNumber.Create(returnedCount)); Result.AddPair('count', TJSONNumber.Create(returnedCount));
Result.AddPair('returned', TJSONNumber.Create(returnedCount)); Result.AddPair('returned', TJSONNumber.Create(returnedCount));
Logger.Log(3, '---TWCAPIDataModule.GetComplaintHistory End (returned=' + IntToStr(returnedCount) + ')'); Logger.Log(4, '---TWCSOAPIDataModule.GetComplaintHistory End (returned=' + IntToStr(returnedCount) + ')');
except except
on E: EXDataHttpException do on E: EXDataHttpException do
begin begin
Logger.Log(2, '---TWCAPIDataModule.GetComplaintHistory http error: ' + E.Message); Logger.Log(2, '---TWCSOAPIDataModule.GetComplaintHistory http error: ' + E.Message);
raise; raise;
end; end;
on E: Exception do on E: Exception do
begin begin
Logger.Log(2, '---TWCAPIDataModule.GetComplaintHistory error: ' + E.ClassName + ': ' + E.Message); Logger.Log(2, '---TWCSOAPIDataModule.GetComplaintHistory error: ' + E.ClassName + ': ' + E.Message);
raise EXDataHttpException.Create(500, 'Failed to load complaint history'); raise EXDataHttpException.Create(500, 'Failed to load complaint history');
end; end;
end; end;
...@@ -1334,13 +1331,13 @@ begin ...@@ -1334,13 +1331,13 @@ begin
end; end;
end; end;
function TWCAPIDataModule.GetComplaintContacts(ComplaintId: string): TJSONObject; function TWCSOAPIDataModule.GetComplaintContacts(ComplaintId: string): TJSONObject;
var var
dataArr: TJSONArray; dataArr: TJSONArray;
rowObj: TJSONObject; rowObj: TJSONObject;
returnedCount: Integer; returnedCount: Integer;
begin begin
Logger.Log(4, '---TWCAPIDataModule.GetComplaintContacts initiated: ' + ComplaintId); Logger.Log(4, '---TWCSOAPIDataModule.GetComplaintContacts initiated: ' + ComplaintId);
Result := TJSONObject.Create; Result := TJSONObject.Create;
try try
...@@ -1376,16 +1373,16 @@ begin ...@@ -1376,16 +1373,16 @@ begin
Result.AddPair('count', TJSONNumber.Create(returnedCount)); Result.AddPair('count', TJSONNumber.Create(returnedCount));
Result.AddPair('returned', TJSONNumber.Create(returnedCount)); Result.AddPair('returned', TJSONNumber.Create(returnedCount));
Logger.Log(3, '---TWCAPIDataModule.GetComplaintContacts End (returned=' + IntToStr(returnedCount) + ')'); Logger.Log(4, '---TWCSOAPIDataModule.GetComplaintContacts End (returned=' + IntToStr(returnedCount) + ')');
except except
on E: EXDataHttpException do on E: EXDataHttpException do
begin begin
Logger.Log(2, '---TWCAPIDataModule.GetComplaintContacts http error: ' + E.Message); Logger.Log(2, '---TWCSOAPIDataModule.GetComplaintContacts http error: ' + E.Message);
raise; raise;
end; end;
on E: Exception do on E: Exception do
begin begin
Logger.Log(2, '---TWCAPIDataModule.GetComplaintContacts error: ' + E.ClassName + ': ' + E.Message); Logger.Log(2, '---TWCSOAPIDataModule.GetComplaintContacts error: ' + E.ClassName + ': ' + E.Message);
raise EXDataHttpException.Create(500, 'Failed to load complaint contacts'); raise EXDataHttpException.Create(500, 'Failed to load complaint contacts');
end; end;
end; end;
...@@ -1395,7 +1392,7 @@ begin ...@@ -1395,7 +1392,7 @@ begin
end; end;
end; end;
function TWCAPIDataModule.GetComplaintWarnings(ComplaintId: string): TJSONObject; function TWCSOAPIDataModule.GetComplaintWarnings(ComplaintId: string): TJSONObject;
var var
dataArr: TJSONArray; dataArr: TJSONArray;
rowObj: TJSONObject; rowObj: TJSONObject;
...@@ -1404,7 +1401,7 @@ var ...@@ -1404,7 +1401,7 @@ var
apartmentText: string; apartmentText: string;
cityText: string; cityText: string;
begin begin
Logger.Log(3, '---TWCAPIDataModule.GetComplaintWarnings initiated: ' + ComplaintId); Logger.Log(4, '---TWCSOAPIDataModule.GetComplaintWarnings initiated: ' + ComplaintId);
Result := TJSONObject.Create; Result := TJSONObject.Create;
try try
...@@ -1460,16 +1457,16 @@ begin ...@@ -1460,16 +1457,16 @@ begin
Result.AddPair('count', TJSONNumber.Create(returnedCount)); Result.AddPair('count', TJSONNumber.Create(returnedCount));
Result.AddPair('returned', TJSONNumber.Create(returnedCount)); Result.AddPair('returned', TJSONNumber.Create(returnedCount));
Logger.Log(3, '---TWCAPIDataModule.GetComplaintWarnings End (returned=' + IntToStr(returnedCount) + ')'); Logger.Log(4, '---TWCSOAPIDataModule.GetComplaintWarnings End (returned=' + IntToStr(returnedCount) + ')');
except except
on E: EXDataHttpException do on E: EXDataHttpException do
begin begin
Logger.Log(2, '---TWCAPIDataModule.GetComplaintWarnings http error: ' + E.Message); Logger.Log(2, '---TWCSOAPIDataModule.GetComplaintWarnings http error: ' + E.Message);
raise; raise;
end; end;
on E: Exception do on E: Exception do
begin begin
Logger.Log(2, '---TWCAPIDataModule.GetComplaintWarnings error: ' + E.ClassName + ': ' + E.Message); Logger.Log(2, '---TWCSOAPIDataModule.GetComplaintWarnings error: ' + E.ClassName + ': ' + E.Message);
raise EXDataHttpException.Create(500, 'Failed to load complaint warnings'); raise EXDataHttpException.Create(500, 'Failed to load complaint warnings');
end; end;
end; end;
...@@ -1479,7 +1476,7 @@ begin ...@@ -1479,7 +1476,7 @@ begin
end; end;
end; end;
function TWCAPIDataModule.GetUnitLogs(UnitId: string): TJSONObject; function TWCSOAPIDataModule.GetUnitLogs(UnitId: string): TJSONObject;
var var
dataArr: TJSONArray; dataArr: TJSONArray;
rowObj: TJSONObject; rowObj: TJSONObject;
...@@ -1487,7 +1484,7 @@ var ...@@ -1487,7 +1484,7 @@ var
ts: string; ts: string;
complaintText: string; complaintText: string;
begin begin
Logger.Log(4, '---TWCAPIDataModule.GetUnitLogs initiated: ' + UnitId); Logger.Log(4, '---TWCSOAPIDataModule.GetUnitLogs initiated: ' + UnitId);
Result := TJSONObject.Create; Result := TJSONObject.Create;
try try
...@@ -1528,16 +1525,16 @@ begin ...@@ -1528,16 +1525,16 @@ begin
Result.AddPair('count', TJSONNumber.Create(returnedCount)); Result.AddPair('count', TJSONNumber.Create(returnedCount));
Result.AddPair('returned', TJSONNumber.Create(returnedCount)); Result.AddPair('returned', TJSONNumber.Create(returnedCount));
Logger.Log(4, '---TWCAPIDataModule.GetUnitLogs End (returned=' + IntToStr(returnedCount) + ')'); Logger.Log(4, '---TWCSOAPIDataModule.GetUnitLogs End (returned=' + IntToStr(returnedCount) + ')');
except except
on E: EXDataHttpException do on E: EXDataHttpException do
begin begin
Logger.Log(2, '---TWCAPIDataModule.GetUnitLogs http error: ' + E.Message); Logger.Log(2, '---TWCSOAPIDataModule.GetUnitLogs http error: ' + E.Message);
raise; raise;
end; end;
on E: Exception do on E: Exception do
begin begin
Logger.Log(2, '---TWCAPIDataModule.GetUnitLogs error: ' + E.ClassName + ': ' + E.Message); Logger.Log(2, '---TWCSOAPIDataModule.GetUnitLogs error: ' + E.ClassName + ': ' + E.Message);
raise EXDataHttpException.Create(500, 'Failed to load unit logs'); raise EXDataHttpException.Create(500, 'Failed to load unit logs');
end; end;
end; end;
...@@ -1547,13 +1544,13 @@ begin ...@@ -1547,13 +1544,13 @@ begin
end; end;
end; end;
function TWCAPIDataModule.GetUnitDetails(UnitId: string): TJSONObject; function TWCSOAPIDataModule.GetUnitDetails(UnitId: string): TJSONObject;
var var
obj: TJSONObject; obj: TJSONObject;
updateTimeText: string; updateTimeText: string;
unitStatus: string; unitStatus: string;
begin begin
Logger.Log(4, '---TWCAPIDataModule.GetUnitDetails initiated: ' + UnitId); Logger.Log(4, '---TWCSOAPIDataModule.GetUnitDetails initiated: ' + UnitId);
Result := TJSONObject.Create; Result := TJSONObject.Create;
try try
...@@ -1601,17 +1598,17 @@ begin ...@@ -1601,17 +1598,17 @@ begin
except except
on E: EXDataHttpException do on E: EXDataHttpException do
begin begin
Logger.Log(2, '---TWCAPIDataModule.GetUnitDetails http error: ' + E.ClassName + ': ' + E.Message); Logger.Log(2, '---TWCSOAPIDataModule.GetUnitDetails http error: ' + E.ClassName + ': ' + E.Message);
raise; raise;
end; end;
on E: Exception do on E: Exception do
begin begin
Logger.Log(2, '---TWCAPIDataModule.GetUnitDetails error: ' + E.ClassName + ': ' + E.Message); Logger.Log(2, '---TWCSOAPIDataModule.GetUnitDetails error: ' + E.ClassName + ': ' + E.Message);
raise EXDataHttpException.Create(500, 'Failed to load unit details'); raise EXDataHttpException.Create(500, 'Failed to load unit details');
end; end;
end; end;
Logger.Log(4, '---TWCAPIDataModule.GetUnitDetails End'); Logger.Log(4, '---TWCSOAPIDataModule.GetUnitDetails End');
except except
Result.Free; Result.Free;
raise; raise;
......
object WCSOAuthDatabase: TWCSOAuthDatabase
OnCreate = DataModuleCreate
OnDestroy = DataModuleDestroy
Height = 249
Width = 433
object uqMisc: TUniQuery
FetchRows = 100
Left = 237
Top = 53
end
object ucLems: TUniConnection
ProviderName = 'PostgreSQL'
Database = 'lems_ocso'
Username = 'postgres'
Server = '192.168.102.10'
LoginPrompt = False
Left = 221
Top = 145
EncryptedPassword = '9AFF92FF8CFF86FF8CFFCFFFCEFF'
end
object uqAuth: TUniQuery
Connection = ucLems
SQL.Strings = (
'select u.* from lems.users u '
'where upper(user_name) = :USER_NAME '
'and u.dept = :AGENCY')
Left = 88
Top = 48
end
object PostgreSQLUniProvider1: TPostgreSQLUniProvider
Left = 90
Top = 148
end
object uqAgencies: TUniQuery
Connection = ucLems
SQL.Strings = (
'select agencyid as agency '
'from lems.agency '
'where login = ''T'' '
'order by agencyid')
Left = 40
Top = 200
end
object uqAgencyConfig: TUniQuery
Connection = ucLems
SQL.Strings = (
'select agencyid, agencyname '
'from lems.agency '
'where login = ''T'' '
'order by agencyname')
Left = 160
Top = 200
end
end
unit WCSO.Auth.Database;
interface
uses
Agency.Auth, System.SysUtils, System.Classes, MemDS,
Data.DB, DBAccess, Uni, UniProvider, PostgreSQLUniProvider;
type
TWCSOAuthDatabase = class(TAgencyAuth)
uqMisc: TUniQuery;
ucLems: TUniConnection;
uqAuth: TUniQuery;
uqAgencies: TUniQuery;
uqAgencyConfig: TUniQuery;
PostgreSQLUniProvider1: TPostgreSQLUniProvider;
procedure DataModuleCreate(Sender: TObject);
procedure DataModuleDestroy(Sender: TObject);
private
{ Private declarations }
protected
function GetConnection: TUniConnection; override;
function GetUserData: TDataSet; override;
function GetAgencies: TDataSet; override;
function GetAgencyConfig: TDataSet; override;
public
{ Public declarations }
procedure OpenUser(User, Agency: string); override;
procedure OpenAgencies; override;
procedure OpenAgencyConfig; override;
procedure SetLoginAuditEntry( userStr: string ); override;
end;
var
WCSOAuthDatabase: TWCSOAuthDatabase;
implementation
uses
System.JSON,
Common.Config,
Common.Logging,
Common.Ini,
uLibrary;
{%CLASSGROUP 'Vcl.Controls.TControl'}
{$R *.dfm}
function TWCSOAuthDatabase.GetConnection: TUniConnection;
begin
Result := ucLems;
end;
function TWCSOAuthDatabase.GetUserData: TDataSet;
begin
Result := uqAuth;
end;
function TWCSOAuthDatabase.GetAgencies: TDataSet;
begin
Result := uqAgencies;
end;
function TWCSOAuthDatabase.GetAgencyConfig: TDataSet;
begin
Result := uqAgencyConfig;
end;
procedure TWCSOAuthDatabase.OpenUser(User, Agency: string);
begin
uqAuth.Close;
uqAuth.ParamByName('USER_NAME').AsString := UpperCase(Trim(User));
uqAuth.ParamByName('AGENCY').AsString := UpperCase(Trim(Agency));
uqAuth.Open;
end;
procedure TWCSOAuthDatabase.OpenAgencies;
begin
uqAgencies.Close;
uqAgencies.Open;
end;
procedure TWCSOAuthDatabase.OpenAgencyConfig;
begin
uqAgencyConfig.Close;
uqAgencyConfig.Open;
end;
procedure TWCSOAuthDatabase.DataModuleCreate(Sender: TObject);
begin
IniEntries.ConfigureConnection(ucLems);
try
Logger.Log(2, '');
Logger.Log(2, 'Connecting to PostgreSQL auth database...');
if not ucLems.Connected then
ucLems.Connect;
except
on E: Exception do
Logger.Log(2, Format('Failed to connect to auth database: %s', [E.Message]));
end;
end;
procedure TWCSOAuthDatabase.DataModuleDestroy(Sender: TObject);
begin
if ucLems.Connected then
ucLems.Disconnect;
end;
procedure TWCSOAuthDatabase.SetLoginAuditEntry( userStr: string );
var
auditMasterId: string;
userInfo: TStringList;
username: string;
fullname: string;
agency: string;
userid: string;
personnelid: string;
begin
Logger.Log( 3, 'TWCSOAuthDatabase.SetLoginAuditEntry - start' );
userInfo := TStringList.Create;
try
userInfo.Delimiter := '&';
userInfo.StrictDelimiter := True;
userInfo.DelimitedText := userStr;
username := userInfo.Values['username'];
fullname := userInfo.Values['fullname'];
agency := userInfo.Values['agency'];
userid := userInfo.Values['userId'];
personnelid := userInfo.Values['personnelid'];
if ServerConfig.auditEnabled then
begin
auditMasterId := GetNextSeqVal(uqMisc, 'SEQ_AUDIT_MASTERID');
SetMasterAuditEntry(uqMisc, auditMasterId, 'AUTH', '', agency, personnelid, fullname, 'Login', '', 'emiMobile');
end
else
begin
Logger.Log( 3, 'SetSearchAuditEntry->SetMasterAuditEntry - auditEnabled = false' );
end;
finally
userInfo.Free;
end;
end;
end.
program WCSOemiMobileServer;
uses
FastMM4,
Server.Startup in 'Source\Common\Server.Startup.pas',
Vcl.Forms,
Api.Server.Module in 'Source\Common\Api.Server.Module.pas' {ApiServerModule: TDataModule},
Main in 'Source\Common\Main.pas' {FMain},
Common.Logging in 'Source\Common\Common.Logging.pas',
BFD.Api.Database in 'Source\BFD\BFD.Api.Database.pas' {BFDAPIDataModule: TDataModule},
BFD.Auth.Database in 'Source\BFD\BFD.Auth.Database.pas' {BFDAuthDatabase: TDataModule},
Device.Store in 'Source\Common\Device.Store.pas',
Agency.Auth in 'Source\Common\Agency.Auth.pas',
Device.Database in 'Source\Common\Device.Database.pas' {DeviceDatabase: TDataModule},
Agency.Data in 'Source\Common\Agency.Data.pas',
Agency.Selection in 'Source\Common\Agency.Selection.pas',
WCSO.Api.Database in 'Source\Lems\WCSO.Api.Database.pas' {WCSOAPIDataModule: TDataModule},
Common.Middleware.Logging in 'Source\Common\Common.Middleware.Logging.pas',
Common.Config in 'Source\Common\Common.Config.pas',
Auth.Server.Module in 'Source\Common\Auth.Server.Module.pas' {AuthServerModule: TDataModule},
WCSO.Auth.Database in 'Source\Lems\WCSO.Auth.Database.pas' {WCSOAuthDatabase: TDataModule},
uLibrary in 'Source\Common\uLibrary.pas',
Auth.Service in 'Source\Common\Auth.Service.pas',
Api.Service in 'Source\Common\Api.Service.pas',
Auth.ServiceImpl in 'Source\Common\Auth.ServiceImpl.pas',
Api.ServiceImpl in 'Source\Common\Api.ServiceImpl.pas',
App.Server.Module in 'Source\Common\App.Server.Module.pas' {AppServerModule: TDataModule},
Common.Ini in 'Source\Common\Common.Ini.pas',
BaseRequest in 'Source\Common\BaseRequest.pas',
Pkg.Json.DTO in 'Source\Common\Pkg.Json.DTO.pas',
Ws.Server.Module in 'Source\Common\Ws.Server.Module.pas' {WsServerModule: TDataModule},
Ws.DataModel in 'Source\Common\Ws.DataModel.pas',
WsMessages in 'Source\Common\WsMessages.pas',
WebSocket.Manager in 'Source\Common\WebSocket.Manager.pas',
Webauthn.Cbor in 'Source\Common\Webauthn.Cbor.pas',
Webauthn.Crypto in 'Source\Common\Webauthn.Crypto.pas';
{$R *.res}
begin
RunServer;
end.
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectGuid>{0A3C5179-FEC7-46F3-8504-FFC8433AD64D}</ProjectGuid>
<ProjectVersion>20.4</ProjectVersion>
<FrameworkType>VCL</FrameworkType>
<Base>True</Base>
<Config Condition="'$(Config)'==''">Debug</Config>
<Platform Condition="'$(Platform)'==''">Win32</Platform>
<TargetedPlatforms>3</TargetedPlatforms>
<AppType>Application</AppType>
<MainSource>WCSOemiMobileServer.dpr</MainSource>
<ProjectName Condition="'$(ProjectName)'==''">WCSOemiMobileServer</ProjectName>
</PropertyGroup>
<PropertyGroup Condition="'$(Config)'=='Base' or '$(Base)'!=''">
<Base>true</Base>
</PropertyGroup>
<PropertyGroup Condition="('$(Platform)'=='Win32' and '$(Base)'=='true') or '$(Base_Win32)'!=''">
<Base_Win32>true</Base_Win32>
<CfgParent>Base</CfgParent>
<Base>true</Base>
</PropertyGroup>
<PropertyGroup Condition="('$(Platform)'=='Win64' and '$(Base)'=='true') or '$(Base_Win64)'!=''">
<Base_Win64>true</Base_Win64>
<CfgParent>Base</CfgParent>
<Base>true</Base>
</PropertyGroup>
<PropertyGroup Condition="'$(Config)'=='Debug' or '$(Cfg_1)'!=''">
<Cfg_1>true</Cfg_1>
<CfgParent>Base</CfgParent>
<Base>true</Base>
</PropertyGroup>
<PropertyGroup Condition="('$(Platform)'=='Win32' and '$(Cfg_1)'=='true') or '$(Cfg_1_Win32)'!=''">
<Cfg_1_Win32>true</Cfg_1_Win32>
<CfgParent>Cfg_1</CfgParent>
<Cfg_1>true</Cfg_1>
<Base>true</Base>
</PropertyGroup>
<PropertyGroup Condition="('$(Platform)'=='Win64' and '$(Cfg_1)'=='true') or '$(Cfg_1_Win64)'!=''">
<Cfg_1_Win64>true</Cfg_1_Win64>
<CfgParent>Cfg_1</CfgParent>
<Cfg_1>true</Cfg_1>
<Base>true</Base>
</PropertyGroup>
<PropertyGroup Condition="'$(Config)'=='Release' or '$(Cfg_2)'!=''">
<Cfg_2>true</Cfg_2>
<CfgParent>Base</CfgParent>
<Base>true</Base>
</PropertyGroup>
<PropertyGroup Condition="('$(Platform)'=='Win32' and '$(Cfg_2)'=='true') or '$(Cfg_2_Win32)'!=''">
<Cfg_2_Win32>true</Cfg_2_Win32>
<CfgParent>Cfg_2</CfgParent>
<Cfg_2>true</Cfg_2>
<Base>true</Base>
</PropertyGroup>
<PropertyGroup Condition="('$(Platform)'=='Win64' and '$(Cfg_2)'=='true') or '$(Cfg_2_Win64)'!=''">
<Cfg_2_Win64>true</Cfg_2_Win64>
<CfgParent>Cfg_2</CfgParent>
<Cfg_2>true</Cfg_2>
<Base>true</Base>
</PropertyGroup>
<PropertyGroup Condition="'$(Base)'!=''">
<DCC_DcuOutput>.\$(Platform)\$(Config)\$(MSBuildProjectName)</DCC_DcuOutput>
<DCC_ExeOutput>.\bin\WCSO</DCC_ExeOutput>
<DCC_E>false</DCC_E>
<DCC_N>false</DCC_N>
<DCC_S>false</DCC_S>
<DCC_F>false</DCC_F>
<DCC_K>false</DCC_K>
<DCC_Namespace>System;Xml;Data;Datasnap;Web;Soap;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;$(DCC_Namespace)</DCC_Namespace>
<Icon_MainIcon>$(BDS)\bin\delphi_PROJECTICON.ico</Icon_MainIcon>
<Icns_MainIcns>$(BDS)\bin\delphi_PROJECTICNS.icns</Icns_MainIcns>
<SanitizedProjectName>WCSOemiMobileServer</SanitizedProjectName>
</PropertyGroup>
<PropertyGroup Condition="'$(Base_Win32)'!=''">
<DCC_UsePackage>gtFRExpD28;vclwinx;dacvcl280;FlexCel_Report;fmx;PKIEDB28;vclie;DbxCommonDriver;bindengine;IndyIPCommon;VCLRESTComponents;FireDACCommonODBC;aurelius;TMSCloudPkgDEDXE14;FireDACCommonDriver;sparkle;appanalytics;IndyProtocols;vclx;TatukGIS_DK11_RX11_VCL;FMXTMSFNCMapsPkgDXE14;IndyIPClient;dbxcds;vcledge;dac280;frxe28;bindcompvclwinx;gtScaleRichVwExpD28;VCLTMSFNCUIPackPkgDXE14;gtXPressExpD28;unidac280;gtPDFkitD11ProP;FlexCel_Pdf;bindcompfmx;AdvChartDEDXE14;madBasic_;VCLTMSFNCDashboardPackPkgDXE14;SKIA_FlexCel_Core;VCLTMSFNCWebSocketPkg;FMXTMSFNCWebSocketPkg;TMSVCLUIPackPkgDXE14;inetdb;TatukGIS_DK11_RX11_FMX;AcroPDF;TatukGIS_DK11_RX11;FireDACSqliteDriver;DbxClientDriver;soapmidas;vclCryptoPressStreamD28;vclactnband;gtRBExpD28;fmxFireDAC;dbexpress;DBXMySQLDriver;VclSmp;inet;unidacvcl280;dacfmx280;SigPlus;fcstudiowin;vcltouch;fmxase;VCLTMSFNCMapsPkgDXE14;ipstudiowin;TMSWEBCorePkgLibDXE14;frx28;dbrtl;QRWRunDXE11_w64;TMSWEBCorePkgDXE14;fmxdae;addict4_d28;FlexCel_XlsAdapter;gtAdvGridExpD28;FireDACMSAccDriver;VCL_FlexCel_Core;CustomIPTransport;tmsbcl;ipstudiowinwordxp;gtDocEngD28;gtRaveExpD28;FMXTMSFNCDashboardPackPkgDXE14;vcldsnap;madExcept_;DBXInterBaseDriver;frxDB28;IndySystem;ipstudiowinclient;VCLTMSFNCCorePkgDXE14;vcldb;CamRemoteD11;FMXTMSFNCUIPackPkgDXE14;TMSCloudPkgDXE14;gtQRExpD28;VirtualTreesR;WPViewPDF_RT;FlexCel_Core;vclFireDAC;vquery280;madDisAsm_;bindcomp;FireDACCommon;FlexCel_Render;unidacfmx280;FMXTMSFNCCorePkgDXE14;IndyCore;RESTBackendComponents;gtACEExpD28;bindcompdbx;rtl;FireDACMySQLDriver;FireDACADSDriver;VCL_FlexCel_Components;RESTComponents;DBXSqliteDriver;vcl;IndyIPServer;dsnapxml;dsnapcon;adortl;TMSVCLUIPackPkgExDXE14;WPViewPDF_DT;TMSVCLUIPackPkgWizDXE14;gtHtmVwExpD28;AdvChartDXE14;gtRichVwExpD28;vclimg;FireDACPgDriver;FireDAC;inetdbxpress;TMSVCLUIPackPkgXlsDXE14;xmlrtl;tethering;PKIECtrl28;crcontrols280;bindcompvcl;dsnap;xdata;CloudService;fmxobj;bindcompvclsmp;addict4db_d28;CEF4Delphi;soaprtl;soapserver;FireDACIBDriver;$(DCC_UsePackage)</DCC_UsePackage>
<DCC_Namespace>Winapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Bde;$(DCC_Namespace)</DCC_Namespace>
<BT_BuildType>Debug</BT_BuildType>
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
<VerInfo_Keys>CompanyName=;FileDescription=$(MSBuildProjectName);FileVersion=1.0.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=1.0.0.0;Comments=</VerInfo_Keys>
<VerInfo_Locale>1033</VerInfo_Locale>
<Manifest_File>$(BDS)\bin\default_app.manifest</Manifest_File>
</PropertyGroup>
<PropertyGroup Condition="'$(Base_Win64)'!=''">
<DCC_UsePackage>vclwinx;FlexCel_Report;fmx;PKIEDB28;vclie;DbxCommonDriver;bindengine;IndyIPCommon;VCLRESTComponents;FireDACCommonODBC;FireDACCommonDriver;appanalytics;IndyProtocols;vclx;FMXTMSFNCMapsPkgDXE14;IndyIPClient;dbxcds;vcledge;bindcompvclwinx;VCLTMSFNCUIPackPkgDXE14;FlexCel_Pdf;bindcompfmx;VCLTMSFNCDashboardPackPkgDXE14;TMSVCLUIPackPkgDXE14;inetdb;FireDACSqliteDriver;DbxClientDriver;soapmidas;vclactnband;fmxFireDAC;dbexpress;DBXMySQLDriver;VclSmp;inet;fcstudiowin;vcltouch;fmxase;VCLTMSFNCMapsPkgDXE14;ipstudiowin;dbrtl;QRWRunDXE11_w64;fmxdae;FlexCel_XlsAdapter;FMXTMSFNCWebSocketPkg;FireDACMSAccDriver;VCL_FlexCel_Core;CustomIPTransport;vcldsnap;DBXInterBaseDriver;IndySystem;ipstudiowinclient;VCLTMSFNCCorePkgDXE14;vcldb;CamRemoteD11;FMXTMSFNCUIPackPkgDXE14;VirtualTreesR;WPViewPDF_RT;FlexCel_Core;vclFireDAC;bindcomp;FireDACCommon;FlexCel_Render;FMXTMSFNCCorePkgDXE14;IndyCore;RESTBackendComponents;bindcompdbx;rtl;FireDACMySQLDriver;FireDACADSDriver;VCL_FlexCel_Components;RESTComponents;DBXSqliteDriver;vcl;IndyIPServer;dsnapxml;dsnapcon;adortl;TMSVCLUIPackPkgExDXE14;AdvChartDXE14;vclimg;FireDACPgDriver;FireDAC;inetdbxpress;TMSVCLUIPackPkgXlsDXE14;xmlrtl;tethering;PKIECtrl28;bindcompvcl;dsnap;CloudService;fmxobj;bindcompvclsmp;soaprtl;soapserver;FireDACIBDriver;$(DCC_UsePackage)</DCC_UsePackage>
<DCC_Namespace>Winapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;$(DCC_Namespace)</DCC_Namespace>
<BT_BuildType>Debug</BT_BuildType>
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
<VerInfo_Keys>CompanyName=;FileDescription=$(MSBuildProjectName);FileVersion=1.0.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=1.0.0.0;Comments=</VerInfo_Keys>
<VerInfo_Locale>1033</VerInfo_Locale>
<Manifest_File>$(BDS)\bin\default_app.manifest</Manifest_File>
</PropertyGroup>
<PropertyGroup Condition="'$(Cfg_1)'!=''">
<DCC_Define>DEBUG;$(DCC_Define)</DCC_Define>
<DCC_DebugDCUs>true</DCC_DebugDCUs>
<DCC_Optimize>false</DCC_Optimize>
<DCC_GenerateStackFrames>true</DCC_GenerateStackFrames>
<DCC_DebugInfoInExe>true</DCC_DebugInfoInExe>
<DCC_RemoteDebug>true</DCC_RemoteDebug>
<DCC_IntegerOverflowCheck>true</DCC_IntegerOverflowCheck>
<DCC_RangeChecking>true</DCC_RangeChecking>
</PropertyGroup>
<PropertyGroup Condition="'$(Cfg_1_Win32)'!=''">
<DCC_RemoteDebug>false</DCC_RemoteDebug>
<AppDPIAwarenessMode>PerMonitorV2</AppDPIAwarenessMode>
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
<VerInfo_Locale>1033</VerInfo_Locale>
<DCC_ExeOutput>.\bin\WCSO</DCC_ExeOutput>
<VerInfo_MajorVer>0</VerInfo_MajorVer>
<VerInfo_MinorVer>9</VerInfo_MinorVer>
<VerInfo_Release>5</VerInfo_Release>
<VerInfo_Keys>CompanyName=;FileDescription=$(MSBuildProjectName);FileVersion=0.9.5.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=0.9.2.0;Comments=</VerInfo_Keys>
<DCC_UnitSearchPath>C:\RADTOOLS\FastMM4;$(DCC_UnitSearchPath)</DCC_UnitSearchPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Cfg_1_Win64)'!=''">
<AppDPIAwarenessMode>PerMonitorV2</AppDPIAwarenessMode>
</PropertyGroup>
<PropertyGroup Condition="'$(Cfg_2)'!=''">
<DCC_LocalDebugSymbols>false</DCC_LocalDebugSymbols>
<DCC_Define>RELEASE;$(DCC_Define)</DCC_Define>
<DCC_SymbolReferenceInfo>0</DCC_SymbolReferenceInfo>
<DCC_DebugInformation>0</DCC_DebugInformation>
</PropertyGroup>
<PropertyGroup Condition="'$(Cfg_2_Win32)'!=''">
<AppDPIAwarenessMode>PerMonitorV2</AppDPIAwarenessMode>
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
<VerInfo_Locale>1033</VerInfo_Locale>
<DCC_UnitSearchPath>C:\RADTOOLS\FastMM4;$(DCC_UnitSearchPath)</DCC_UnitSearchPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Cfg_2_Win64)'!=''">
<AppDPIAwarenessMode>PerMonitorV2</AppDPIAwarenessMode>
</PropertyGroup>
<ItemGroup>
<DelphiCompile Include="$(MainSource)">
<MainSource>MainSource</MainSource>
</DelphiCompile>
<DCCReference Include="Source\Common\Server.Startup.pas"/>
<DCCReference Include="Source\Common\Api.Server.Module.pas">
<Form>ApiServerModule</Form>
<DesignClass>TDataModule</DesignClass>
</DCCReference>
<DCCReference Include="Source\Common\Main.pas">
<Form>FMain</Form>
</DCCReference>
<DCCReference Include="Source\Common\Common.Logging.pas"/>
<DCCReference Include="Source\BFD\BFD.Api.Database.pas">
<Form>BFDAPIDataModule</Form>
<FormType>dfm</FormType>
<DesignClass>TDataModule</DesignClass>
</DCCReference>
<DCCReference Include="Source\BFD\BFD.Auth.Database.pas">
<Form>BFDAuthDatabase</Form>
<FormType>dfm</FormType>
<DesignClass>TDataModule</DesignClass>
</DCCReference>
<DCCReference Include="Source\Common\Device.Store.pas"/>
<DCCReference Include="Source\Common\Agency.Auth.pas"/>
<DCCReference Include="Source\Common\Device.Database.pas">
<Form>DeviceDatabase</Form>
<DesignClass>TDataModule</DesignClass>
</DCCReference>
<DCCReference Include="Source\Common\Agency.Data.pas"/>
<DCCReference Include="Source\Common\Agency.Selection.pas"/>
<DCCReference Include="Source\Lems\WCSO.Api.Database.pas">
<Form>WCSOAPIDataModule</Form>
<DesignClass>TDataModule</DesignClass>
</DCCReference>
<DCCReference Include="Source\Common\Common.Middleware.Logging.pas"/>
<DCCReference Include="Source\Common\Common.Config.pas"/>
<DCCReference Include="Source\Common\Auth.Server.Module.pas">
<Form>AuthServerModule</Form>
<DesignClass>TDataModule</DesignClass>
</DCCReference>
<DCCReference Include="Source\Lems\WCSO.Auth.Database.pas">
<Form>WCSOAuthDatabase</Form>
<DesignClass>TDataModule</DesignClass>
</DCCReference>
<DCCReference Include="Source\Common\uLibrary.pas"/>
<DCCReference Include="Source\Common\Auth.Service.pas"/>
<DCCReference Include="Source\Common\Api.Service.pas"/>
<DCCReference Include="Source\Common\Auth.ServiceImpl.pas"/>
<DCCReference Include="Source\Common\Api.ServiceImpl.pas"/>
<DCCReference Include="Source\Common\App.Server.Module.pas">
<Form>AppServerModule</Form>
<DesignClass>TDataModule</DesignClass>
</DCCReference>
<DCCReference Include="Source\Common\Common.Ini.pas"/>
<DCCReference Include="Source\Common\BaseRequest.pas"/>
<DCCReference Include="Source\Common\Pkg.Json.DTO.pas"/>
<DCCReference Include="Source\Common\Ws.Server.Module.pas">
<Form>WsServerModule</Form>
<FormType>dfm</FormType>
<DesignClass>TDataModule</DesignClass>
</DCCReference>
<DCCReference Include="Source\Common\Ws.DataModel.pas"/>
<DCCReference Include="Source\Common\WsMessages.pas"/>
<DCCReference Include="Source\Common\WebSocket.Manager.pas"/>
<DCCReference Include="Source\Common\Webauthn.Cbor.pas"/>
<DCCReference Include="Source\Common\Webauthn.Crypto.pas"/>
<BuildConfiguration Include="Base">
<Key>Base</Key>
</BuildConfiguration>
<BuildConfiguration Include="Debug">
<Key>Cfg_1</Key>
<CfgParent>Base</CfgParent>
</BuildConfiguration>
<BuildConfiguration Include="Release">
<Key>Cfg_2</Key>
<CfgParent>Base</CfgParent>
</BuildConfiguration>
</ItemGroup>
<ProjectExtensions>
<Borland.Personality>Delphi.Personality.12</Borland.Personality>
<Borland.ProjectType>Application</Borland.ProjectType>
<BorlandProject>
<Delphi.Personality>
<Source>
<Source Name="MainSource">WCSOemiMobileServer.dpr</Source>
</Source>
<Excluded_Packages>
<Excluded_Packages Name="$(BDSBIN)\bcboffice2k370.bpl">Embarcadero C++Builder Office 2000 Servers Package</Excluded_Packages>
<Excluded_Packages Name="$(BDSBIN)\bcbofficexp370.bpl">Embarcadero C++Builder Office XP Servers Package</Excluded_Packages>
<Excluded_Packages Name="$(BDSBIN)\dcloffice2k370.bpl">Microsoft Office 2000 Sample Automation Server Wrapper Components</Excluded_Packages>
<Excluded_Packages Name="$(BDSBIN)\dclofficexp370.bpl">Microsoft Office XP Sample Automation Server Wrapper Components</Excluded_Packages>
</Excluded_Packages>
</Delphi.Personality>
<Deployment Version="5">
<DeployFile LocalName="bin\WCSO\WCSOemiMobileServer.exe" Configuration="Debug" Class="ProjectOutput">
<Platform Name="Win32">
<RemoteName>WCSOemiMobileServer.exe</RemoteName>
<Overwrite>true</Overwrite>
</Platform>
</DeployFile>
<DeployFile LocalName="envoyCallsServer.exe" Configuration="Debug" Class="ProjectOutput"/>
<DeployClass Name="AdditionalDebugSymbols">
<Platform Name="iOSSimulator">
<Operation>1</Operation>
</Platform>
<Platform Name="OSX32">
<RemoteDir>Contents\MacOS</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Win32">
<Operation>0</Operation>
</Platform>
</DeployClass>
<DeployClass Name="AndroidFileProvider">
<Platform Name="Android">
<RemoteDir>res\xml</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\xml</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="AndroidLibnativeArmeabiFile">
<Platform Name="Android">
<RemoteDir>library\lib\armeabi</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>library\lib\armeabi</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="AndroidLibnativeArmeabiv7aFile">
<Platform Name="Android64">
<RemoteDir>library\lib\armeabi-v7a</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="AndroidLibnativeMipsFile">
<Platform Name="Android">
<RemoteDir>library\lib\mips</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>library\lib\mips</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="AndroidServiceOutput">
<Platform Name="Android">
<RemoteDir>library\lib\armeabi-v7a</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>library\lib\arm64-v8a</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="AndroidServiceOutput_Android32">
<Platform Name="Android64">
<RemoteDir>library\lib\armeabi-v7a</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="AndroidSplashImageDef">
<Platform Name="Android">
<RemoteDir>res\drawable</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="AndroidSplashImageDefV21">
<Platform Name="Android">
<RemoteDir>res\drawable-anydpi-v21</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable-anydpi-v21</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="AndroidSplashStyles">
<Platform Name="Android">
<RemoteDir>res\values</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\values</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="AndroidSplashStylesV21">
<Platform Name="Android">
<RemoteDir>res\values-v21</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\values-v21</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="AndroidSplashStylesV31">
<Platform Name="Android">
<RemoteDir>res\values-v31</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\values-v31</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="AndroidSplashStylesV35">
<Platform Name="Android">
<RemoteDir>res\values-v35</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\values-v35</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_AdaptiveIcon">
<Platform Name="Android">
<RemoteDir>res\drawable-anydpi-v26</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable-anydpi-v26</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_AdaptiveIconBackground">
<Platform Name="Android">
<RemoteDir>res\drawable</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_AdaptiveIconForeground">
<Platform Name="Android">
<RemoteDir>res\drawable</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_AdaptiveIconMonochrome">
<Platform Name="Android">
<RemoteDir>res\drawable</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_AdaptiveIconV33">
<Platform Name="Android">
<RemoteDir>res\drawable-anydpi-v33</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable-anydpi-v33</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_Colors">
<Platform Name="Android">
<RemoteDir>res\values</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\values</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_ColorsDark">
<Platform Name="Android">
<RemoteDir>res\values-night-v21</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\values-night-v21</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_DefaultAppIcon">
<Platform Name="Android">
<RemoteDir>res\drawable</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_LauncherIcon144">
<Platform Name="Android">
<RemoteDir>res\drawable-xxhdpi</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable-xxhdpi</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_LauncherIcon192">
<Platform Name="Android">
<RemoteDir>res\drawable-xxxhdpi</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable-xxxhdpi</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_LauncherIcon36">
<Platform Name="Android">
<RemoteDir>res\drawable-ldpi</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable-ldpi</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_LauncherIcon48">
<Platform Name="Android">
<RemoteDir>res\drawable-mdpi</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable-mdpi</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_LauncherIcon72">
<Platform Name="Android">
<RemoteDir>res\drawable-hdpi</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable-hdpi</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_LauncherIcon96">
<Platform Name="Android">
<RemoteDir>res\drawable-xhdpi</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable-xhdpi</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_NotificationIcon24">
<Platform Name="Android">
<RemoteDir>res\drawable-mdpi</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable-mdpi</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_NotificationIcon36">
<Platform Name="Android">
<RemoteDir>res\drawable-hdpi</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable-hdpi</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_NotificationIcon48">
<Platform Name="Android">
<RemoteDir>res\drawable-xhdpi</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable-xhdpi</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_NotificationIcon72">
<Platform Name="Android">
<RemoteDir>res\drawable-xxhdpi</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable-xxhdpi</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_NotificationIcon96">
<Platform Name="Android">
<RemoteDir>res\drawable-xxxhdpi</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable-xxxhdpi</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_SplashImage426">
<Platform Name="Android">
<RemoteDir>res\drawable-small</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable-small</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_SplashImage470">
<Platform Name="Android">
<RemoteDir>res\drawable-normal</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable-normal</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_SplashImage640">
<Platform Name="Android">
<RemoteDir>res\drawable-large</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable-large</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_SplashImage960">
<Platform Name="Android">
<RemoteDir>res\drawable-xlarge</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable-xlarge</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_Strings">
<Platform Name="Android">
<RemoteDir>res\values</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\values</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_VectorizedNotificationIcon">
<Platform Name="Android">
<RemoteDir>res\drawable-anydpi-v24</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable-anydpi-v24</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_VectorizedSplash">
<Platform Name="Android">
<RemoteDir>res\drawable</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_VectorizedSplashDark">
<Platform Name="Android">
<RemoteDir>res\drawable-night-anydpi-v21</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable-night-anydpi-v21</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_VectorizedSplashV31">
<Platform Name="Android">
<RemoteDir>res\drawable-anydpi-v31</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable-anydpi-v31</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="Android_VectorizedSplashV31Dark">
<Platform Name="Android">
<RemoteDir>res\drawable-night-anydpi-v31</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>res\drawable-night-anydpi-v31</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="DebugSymbols">
<Platform Name="iOSSimulator">
<Operation>1</Operation>
</Platform>
<Platform Name="OSX32">
<RemoteDir>Contents\MacOS</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Win32">
<Operation>0</Operation>
</Platform>
</DeployClass>
<DeployClass Name="DependencyFramework">
<Platform Name="OSX32">
<RemoteDir>Contents\MacOS</RemoteDir>
<Operation>1</Operation>
<Extensions>.framework</Extensions>
</Platform>
<Platform Name="OSX64">
<RemoteDir>Contents\MacOS</RemoteDir>
<Operation>1</Operation>
<Extensions>.framework</Extensions>
</Platform>
<Platform Name="OSXARM64">
<RemoteDir>Contents\MacOS</RemoteDir>
<Operation>1</Operation>
<Extensions>.framework</Extensions>
</Platform>
<Platform Name="Win32">
<Operation>0</Operation>
</Platform>
</DeployClass>
<DeployClass Name="DependencyModule">
<Platform Name="iOSDevice32">
<Operation>1</Operation>
<Extensions>.dylib</Extensions>
</Platform>
<Platform Name="iOSDevice64">
<Operation>1</Operation>
<Extensions>.dylib</Extensions>
</Platform>
<Platform Name="iOSSimARM64">
<Operation>1</Operation>
<Extensions>.dylib</Extensions>
</Platform>
<Platform Name="OSX32">
<RemoteDir>Contents\MacOS</RemoteDir>
<Operation>1</Operation>
<Extensions>.dylib</Extensions>
</Platform>
<Platform Name="OSX64">
<RemoteDir>Contents\MacOS</RemoteDir>
<Operation>1</Operation>
<Extensions>.dylib</Extensions>
</Platform>
<Platform Name="OSXARM64">
<RemoteDir>Contents\MacOS</RemoteDir>
<Operation>1</Operation>
<Extensions>.dylib</Extensions>
</Platform>
<Platform Name="Win32">
<Operation>0</Operation>
<Extensions>.dll;.bpl</Extensions>
</Platform>
</DeployClass>
<DeployClass Required="true" Name="DependencyPackage">
<Platform Name="iOSDevice32">
<Operation>1</Operation>
<Extensions>.dylib</Extensions>
</Platform>
<Platform Name="iOSDevice64">
<Operation>1</Operation>
<Extensions>.dylib</Extensions>
</Platform>
<Platform Name="iOSSimARM64">
<Operation>1</Operation>
<Extensions>.dylib</Extensions>
</Platform>
<Platform Name="OSX32">
<RemoteDir>Contents\MacOS</RemoteDir>
<Operation>1</Operation>
<Extensions>.dylib</Extensions>
</Platform>
<Platform Name="OSX64">
<RemoteDir>Contents\MacOS</RemoteDir>
<Operation>1</Operation>
<Extensions>.dylib</Extensions>
</Platform>
<Platform Name="OSXARM64">
<RemoteDir>Contents\MacOS</RemoteDir>
<Operation>1</Operation>
<Extensions>.dylib</Extensions>
</Platform>
<Platform Name="Win32">
<Operation>0</Operation>
<Extensions>.bpl</Extensions>
</Platform>
</DeployClass>
<DeployClass Name="File">
<Platform Name="Android">
<Operation>0</Operation>
</Platform>
<Platform Name="Android64">
<Operation>0</Operation>
</Platform>
<Platform Name="iOSDevice32">
<Operation>0</Operation>
</Platform>
<Platform Name="iOSDevice64">
<Operation>0</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<Operation>0</Operation>
</Platform>
<Platform Name="OSX32">
<RemoteDir>Contents\Resources\StartUp\</RemoteDir>
<Operation>0</Operation>
</Platform>
<Platform Name="OSX64">
<RemoteDir>Contents\Resources\StartUp\</RemoteDir>
<Operation>0</Operation>
</Platform>
<Platform Name="OSXARM64">
<RemoteDir>Contents\Resources\StartUp\</RemoteDir>
<Operation>0</Operation>
</Platform>
<Platform Name="Win32">
<Operation>0</Operation>
</Platform>
</DeployClass>
<DeployClass Name="ProjectAndroidManifest">
<Platform Name="Android">
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="ProjectOSXDebug">
<Platform Name="OSX64">
<RemoteDir>..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="OSXARM64">
<RemoteDir>..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="ProjectOSXEntitlements">
<Platform Name="OSX32">
<RemoteDir>..\</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="OSX64">
<RemoteDir>..\</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="OSXARM64">
<RemoteDir>..\</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="ProjectOSXInfoPList">
<Platform Name="OSX32">
<RemoteDir>Contents</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="OSX64">
<RemoteDir>Contents</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="OSXARM64">
<RemoteDir>Contents</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="ProjectOSXResource">
<Platform Name="OSX32">
<RemoteDir>Contents\Resources</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="OSX64">
<RemoteDir>Contents\Resources</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="OSXARM64">
<RemoteDir>Contents\Resources</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Required="true" Name="ProjectOutput">
<Platform Name="Android">
<RemoteDir>library\lib\armeabi-v7a</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Android64">
<RemoteDir>library\lib\arm64-v8a</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSDevice32">
<Operation>1</Operation>
</Platform>
<Platform Name="iOSDevice64">
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<Operation>1</Operation>
</Platform>
<Platform Name="Linux64">
<Operation>1</Operation>
</Platform>
<Platform Name="OSX32">
<RemoteDir>Contents\MacOS</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="OSX64">
<RemoteDir>Contents\MacOS</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="OSXARM64">
<RemoteDir>Contents\MacOS</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Win32">
<Operation>0</Operation>
</Platform>
</DeployClass>
<DeployClass Name="ProjectOutput_Android32">
<Platform Name="Android64">
<RemoteDir>library\lib\armeabi-v7a</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="ProjectUWPManifest">
<Platform Name="Win32">
<Operation>1</Operation>
</Platform>
<Platform Name="Win64">
<Operation>1</Operation>
</Platform>
<Platform Name="Win64x">
<Operation>1</Operation>
</Platform>
<Platform Name="WinARM64EC">
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="ProjectiOSDeviceDebug">
<Platform Name="iOSDevice32">
<RemoteDir>..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSDevice64">
<RemoteDir>..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<RemoteDir>..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="ProjectiOSEntitlements">
<Platform Name="iOSDevice32">
<RemoteDir>..\</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSDevice64">
<RemoteDir>..\</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<RemoteDir>..\</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="ProjectiOSInfoPList">
<Platform Name="iOSDevice32">
<Operation>1</Operation>
</Platform>
<Platform Name="iOSDevice64">
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="ProjectiOSLaunchScreen">
<Platform Name="iOSDevice64">
<RemoteDir>..\$(PROJECTNAME).launchscreen</RemoteDir>
<Operation>64</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<RemoteDir>..\$(PROJECTNAME).launchscreen</RemoteDir>
<Operation>64</Operation>
</Platform>
</DeployClass>
<DeployClass Name="ProjectiOSResource">
<Platform Name="iOSDevice32">
<Operation>1</Operation>
</Platform>
<Platform Name="iOSDevice64">
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="UWP_DelphiLogo150">
<Platform Name="Win32">
<RemoteDir>Assets</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Win64">
<RemoteDir>Assets</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="WinARM64EC">
<RemoteDir>Assets</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="UWP_DelphiLogo44">
<Platform Name="Win32">
<RemoteDir>Assets</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="Win64">
<RemoteDir>Assets</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="WinARM64EC">
<RemoteDir>Assets</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="iOS_AppStore1024">
<Platform Name="iOSDevice64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="iPad_AppIcon152">
<Platform Name="iOSDevice64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="iPad_AppIcon167">
<Platform Name="iOSDevice64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="iPad_Launch2x">
<Platform Name="iOSDevice64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="iPad_LaunchDark2x">
<Platform Name="iOSDevice64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="iPad_Notification40">
<Platform Name="iOSDevice64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="iPad_Setting58">
<Platform Name="iOSDevice64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="iPad_SpotLight80">
<Platform Name="iOSDevice64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="iPhone_AppIcon120">
<Platform Name="iOSDevice64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="iPhone_AppIcon180">
<Platform Name="iOSDevice64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="iPhone_Launch2x">
<Platform Name="iOSDevice64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="iPhone_Launch3x">
<Platform Name="iOSDevice64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="iPhone_LaunchDark2x">
<Platform Name="iOSDevice64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="iPhone_LaunchDark3x">
<Platform Name="iOSDevice64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="iPhone_Notification40">
<Platform Name="iOSDevice64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="iPhone_Notification60">
<Platform Name="iOSDevice64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="iPhone_Setting58">
<Platform Name="iOSDevice64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="iPhone_Setting87">
<Platform Name="iOSDevice64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="iPhone_Spotlight120">
<Platform Name="iOSDevice64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<DeployClass Name="iPhone_Spotlight80">
<Platform Name="iOSDevice64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
<Platform Name="iOSSimARM64">
<RemoteDir>..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset</RemoteDir>
<Operation>1</Operation>
</Platform>
</DeployClass>
<ProjectRoot Platform="Android" Name="$(PROJECTNAME)"/>
<ProjectRoot Platform="Android64" Name="$(PROJECTNAME)"/>
<ProjectRoot Platform="iOSDevice32" Name="$(PROJECTNAME).app"/>
<ProjectRoot Platform="iOSDevice64" Name="$(PROJECTNAME).app"/>
<ProjectRoot Platform="iOSSimARM64" Name="$(PROJECTNAME).app"/>
<ProjectRoot Platform="Linux64" Name="$(PROJECTNAME)"/>
<ProjectRoot Platform="OSX32" Name="$(PROJECTNAME).app"/>
<ProjectRoot Platform="OSX64" Name="$(PROJECTNAME).app"/>
<ProjectRoot Platform="OSXARM64" Name="$(PROJECTNAME).app"/>
<ProjectRoot Platform="Win32" Name="$(PROJECTNAME)"/>
<ProjectRoot Platform="Win64" Name="$(PROJECTNAME)"/>
<ProjectRoot Platform="Win64x" Name="$(PROJECTNAME)"/>
<ProjectRoot Platform="WinARM64EC" Name="$(PROJECTNAME)"/>
</Deployment>
<Platforms>
<Platform value="Win32">True</Platform>
<Platform value="Win64">True</Platform>
</Platforms>
</BorlandProject>
<ProjectFileVersion>12</ProjectFileVersion>
</ProjectExtensions>
<Import Project="$(BDS)\Bin\CodeGear.Delphi.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Delphi.Targets')"/>
<Import Project="$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj" Condition="Exists('$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj')"/>
<Import Project="$(MSBuildProjectName).deployproj" Condition="Exists('$(MSBuildProjectName).deployproj')"/>
</Project>
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
Agency=BFD Agency=BFD
[Settings] [Settings]
LogFileNum=209 LogFileNum=214
webClientVersion=0.9.4.9 webClientVersion=0.9.5.0
MemoLogLevel=3 MemoLogLevel=3
FileLogLevel=4 FileLogLevel=4
......
[Application]
Agency=WCSO
[Settings]
LogFileNum=210
webClientVersion=0.9.5.0
MemoLogLevel=3
FileLogLevel=4
[Twilio]
AccountSid=AC717f06b3c10bbecff42487426e34fdb3
AuthToken=a0dec128c1b5a3231909ba81da8947b6
FromNumber=+18775346578
[Postgres]
--Server=192.168.91.129
Server=192.168.102.10
--Server=192.168.56.129
--Port=5432
--Port=5433
Database=lems_wcso
Username=postgres
--Password=postgreSQL
Password=emsys01
--Postgre!SQL
[Oracle]
Server=BFD
Username=EMFIRECAD
Password=EMFIRECAD
[WebSocket]
Port=8091
{
"url": "http://localhost:2001/emsys/emiMobile/",
"jwtTokenSecret": "super_secret0123super_secret4567",
"adminPassword": "whatisthisusedfor?"
}
program emiMobileServer;
uses
FastMM4,
System.Classes,
System.SyncObjs,
System.SysUtils,
Vcl.StdCtrls,
IniFiles,
Vcl.Forms,
Api.Server.Module in 'Source\Common\Api.Server.Module.pas' {ApiServerModule: TDataModule},
Main in 'Source\Common\Main.pas' {FMain},
Common.Logging in 'Source\Common\Common.Logging.pas',
BFD.Api.Database in 'Source\BFD\BFD.Api.Database.pas' {BFDAPIDataModule: TDataModule},
BFD.Auth.Database in 'Source\BFD\BFD.Auth.Database.pas' {BFDAuthDatabase: TDataModule},
Device.Store in 'Source\Common\Device.Store.pas',
Agency.Auth in 'Source\Common\Agency.Auth.pas',
Device.Database in 'Source\Common\Device.Database.pas' {DeviceDatabase: TDataModule},
Agency.Data in 'Source\Common\Agency.Data.pas',
Agency.Selection in 'Source\Common\Agency.Selection.pas',
WC.Api.Database in 'Source\Lems\WC.Api.Database.pas' {WCAPIDataModule: TDataModule},
Common.Middleware.Logging in 'Source\Common\Common.Middleware.Logging.pas',
Common.Config in 'Source\Common\Common.Config.pas',
Auth.Server.Module in 'Source\Common\Auth.Server.Module.pas' {AuthServerModule: TDataModule},
WC.Auth.Database in 'Source\Lems\WC.Auth.Database.pas' {WCAuthDatabase: TDataModule},
uLibrary in 'Source\Common\uLibrary.pas',
Auth.Service in 'Source\Common\Auth.Service.pas',
Api.Service in 'Source\Common\Api.Service.pas',
Auth.ServiceImpl in 'Source\Common\Auth.ServiceImpl.pas',
Api.ServiceImpl in 'Source\Common\Api.ServiceImpl.pas',
App.Server.Module in 'Source\Common\App.Server.Module.pas' {AppServerModule: TDataModule},
Common.Ini in 'Source\Common\Common.Ini.pas',
BaseRequest in 'Source\Common\BaseRequest.pas',
Pkg.Json.DTO in 'Source\Common\Pkg.Json.DTO.pas',
Ws.Server.Module in 'Source\Common\Ws.Server.Module.pas' {WsServerModule: TDataModule},
Ws.DataModel in 'Source\Common\Ws.DataModel.pas',
WsMessages in 'Source\Common\WsMessages.pas',
WebSocket.Manager in 'Source\Common\WebSocket.Manager.pas',
Webauthn.Cbor in 'Source\Common\Webauthn.Cbor.pas',
Webauthn.Crypto in 'Source\Common\Webauthn.Crypto.pas';
type
TMemoLogAppender = class( TInterfacedObject, ILogAppender )
private
FLogLevel: Integer;
FLogMemo: TMemo;
FCriticalSection: TCriticalSection;
public
constructor Create(ALogLevel: Integer; ALogMemo: TMemo);
destructor Destroy; override;
procedure Send(logLevel: Integer; Log: ILog);
end;
TFileLogAppender = class( TInterfacedObject, ILogAppender )
private
FLogLevel: Integer;
FFilename: string;
FLogDirectory: string;
FCriticalSection: TCriticalSection;
function GetLogFilePath: string;
public
constructor Create(ALogLevel: Integer; AFilename: string);
destructor Destroy; override;
procedure Send(logLevel: Integer; Log: ILog);
end;
{ TMemoLogAppender }
constructor TMemoLogAppender.Create(ALogLevel: Integer; ALogMemo: TMemo);
begin
FLogLevel := ALogLevel;
FLogMemo := ALogMemo;
FCriticalSection := TCriticalSection.Create;
end;
destructor TMemoLogAppender.Destroy;
begin
FCriticalSection.Free;
inherited;
end;
procedure TMemoLogAppender.Send(logLevel: Integer; Log: ILog);
var
FormattedMessage: string;
LogTime: TDateTime;
LogMsg: string;
begin
if logLevel > FLogLevel then
Exit;
FCriticalSection.Acquire;
try
LogTime := Now;
FormattedMessage := FormatDateTime('[yyyy-mm-dd HH:nn:ss.zzz]', LogTime);
LogMsg := Log.GetMessage;
if LogMsg.IsEmpty then
FormattedMessage := ''
else
FormattedMessage := FormattedMessage + '[' + IntToStr(logLevel) +'] ' + LogMsg;
finally
FCriticalSection.Release;
end;
TThread.Queue(nil,
procedure
begin
if Assigned(FLogMemo) and not (csDestroying in FLogMemo.ComponentState) then
FLogMemo.Lines.Add(FormattedMessage);
end);
end;
{ TFileLogAppender }
constructor TFileLogAppender.Create(ALogLevel: integer; AFilename: string);
var
iniFile: TIniFile;
fileNum: integer;
agency: string;
begin
FLogLevel := ALogLevel;
FCriticalSection := TCriticalSection.Create;
iniFile := TIniFile.Create( ChangeFileExt(Application.ExeName, '.ini') );
try
agency := UpperCase(Trim(iniFile.ReadString('Application', 'Agency', '')));
FLogDirectory := ExtractFilePath(Application.ExeName) + 'logs\';
if agency = 'WC' then
FLogDirectory := ExtractFilePath(Application.ExeName) + 'WCSO\logs\'
else if agency = 'BFD' then
FLogDirectory := ExtractFilePath(Application.ExeName) + 'BFD\logs\';
ForceDirectories(FLogDirectory);
fileNum := iniFile.ReadInteger( 'Settings', 'LogFileNum', 0 ) + 1;
FFilename := AFilename + Format( '%.4d', [fileNum] );
iniFile.WriteInteger( 'Settings', 'LogFileNum', fileNum );
finally
iniFile.Free;
end;
end;
destructor TFileLogAppender.Destroy;
begin
FCriticalSection.Free;
inherited;
end;
function TFileLogAppender.GetLogFilePath: string;
begin
Result := FLogDirectory + FFilename + '.log';
end;
procedure TFileLogAppender.Send(logLevel: integer; Log: ILog);
var
FormattedMessage: string;
LogFile: string;
LogTime: TDateTime;
LogMsg: string;
FLogFile: TextFile;
begin
FCriticalSection.Acquire;
try
LogTime := Now;
LogFile := GetLogFilePath;
formattedMessage := FormatDateTime('[yyyy-mm-dd HH:nn:ss.zzz]', logTime);
logMsg := Log.GetMessage;
if logMsg.IsEmpty then
formattedMessage := ''
else
formattedMessage := formattedMessage + '[' + IntToStr(logLevel) +'] ' + logMsg;
try
AssignFile( FLogFile, LogFile );
if FileExists(LogFile) then
Append( FLogFile )
else
ReWrite( FLogFile );
if logLevel <= FLogLevel then
WriteLn( FLogFile, FormattedMessage );
finally
CloseFile(FLogFile);
end;
finally
FCriticalSection.Release;
end;
end;
{$R *.res}
var
iniFile: TIniFile;
memoLogLevel: Integer;
fileLogLevel: Integer;
begin
ReportMemoryLeaksOnShutdown := True;
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.CreateForm(TFMain, FMain);
iniFile := TIniFile.Create( ChangeFileExt(Application.ExeName, '.ini') );
try
memoLogLevel := IniFile.ReadInteger( 'Settings', 'MemoLogLevel', 3 );
fileLogLevel := IniFile.ReadInteger( 'Settings', 'FileLogLevel', 4 );
finally
iniFile.Free;
end;
Logger.AddAppender(TMemoLogAppender.Create( memoLogLevel, FMain.memoinfo ));
Logger.AddAppender(TFileLogAppender.Create( fileLogLevel, 'emiMobileServer' ));
Application.Run;
end.
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectGuid>{11E08312-91AF-4875-AB34-14C2C12EC8F0}</ProjectGuid>
</PropertyGroup>
<ItemGroup>
<Projects Include="BFDemiMobileServer.dproj">
<Dependencies/>
</Projects>
<Projects Include="WCSOemiMobileServer.dproj">
<Dependencies/>
</Projects>
</ItemGroup>
<ProjectExtensions>
<Borland.Personality>Default.Personality.12</Borland.Personality>
<Borland.ProjectType/>
<BorlandProject>
<Default.Personality/>
</BorlandProject>
</ProjectExtensions>
<Target Name="BFDemiMobileServer">
<MSBuild Projects="BFDemiMobileServer.dproj"/>
</Target>
<Target Name="BFDemiMobileServer:Clean">
<MSBuild Projects="BFDemiMobileServer.dproj" Targets="Clean"/>
</Target>
<Target Name="BFDemiMobileServer:Make">
<MSBuild Projects="BFDemiMobileServer.dproj" Targets="Make"/>
</Target>
<Target Name="WCSOemiMobileServer">
<MSBuild Projects="WCSOemiMobileServer.dproj"/>
</Target>
<Target Name="WCSOemiMobileServer:Clean">
<MSBuild Projects="WCSOemiMobileServer.dproj" Targets="Clean"/>
</Target>
<Target Name="WCSOemiMobileServer:Make">
<MSBuild Projects="WCSOemiMobileServer.dproj" Targets="Make"/>
</Target>
<Target Name="Build">
<CallTarget Targets="BFDemiMobileServer;WCSOemiMobileServer"/>
</Target>
<Target Name="Clean">
<CallTarget Targets="BFDemiMobileServer:Clean;WCSOemiMobileServer:Clean"/>
</Target>
<Target Name="Make">
<CallTarget Targets="BFDemiMobileServer:Make;WCSOemiMobileServer:Make"/>
</Target>
<Import Project="$(BDS)\Bin\CodeGear.Group.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Group.Targets')"/>
</Project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment