Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
anineco committed Feb 12, 2016
0 parents commit 9dcd190
Show file tree
Hide file tree
Showing 77 changed files with 8,043 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitattributes
@@ -0,0 +1,6 @@
*.exe filter=lfs diff=lfs merge=lfs -text
*.dll filter=lfs diff=lfs merge=lfs -text
*.dll.xp filter=lfs diff=lfs merge=lfs -text
*.lib filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.gif filter=lfs diff=lfs merge=lfs -text
2 changes: 2 additions & 0 deletions README.md
@@ -0,0 +1,2 @@
# gpx2jsgi
GPX2JSGI(GPX→KMLコンバータ)は、カシミール3Dで作成してGPX形式で保存したGPSデータ(ウェイポイント、ルート、トラック)を、地理院地図やGoogleマップ、Yahoo!地図にオーバーレイ(上乗せ表示)できるKML形式に変換するデスクトップアプリケーションです。当初は、電子国土Webシステムで上乗せデータとして用いられるJSGI形式への変換を行うソフトウェアとして開発したものですが、その後、KML形式への変換も行えるように機能を拡張したものです。詳細については http://anineco.nyanta/gpx2jsgi.html を参照ください。
3 changes: 3 additions & 0 deletions bin/convert.exe
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/gpsbabel.exe
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/iconv.dll
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/iconv.exe
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/identify.exe
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/libexpat.dll
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/libexslt.dll
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/libxml2.dll
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/libxslt.dll
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/minigzip.exe
Git LFS file not shown
Binary file added bin/sdx.kit
Binary file not shown.
3 changes: 3 additions & 0 deletions bin/tclapi.dll
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/tclbmp.dll
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/tclcore.dll
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/tcldom.dll
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/tclgdi.dll
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/tclgdi_xy.dll
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/tclgui.dll
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/tclgui.dll.xp
Git LFS file not shown
22 changes: 22 additions & 0 deletions bin/tclgui.manifest
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="CompanyName.ProductName.MyApp"
type="win32"
/>
<description></description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
3 changes: 3 additions & 0 deletions bin/tclkit.exe
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/tclkitsh.exe
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/tclnet.dll
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/tclras.dll
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/vcomp100.dll
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/x2h-cm.exe
Git LFS file not shown
28 changes: 28 additions & 0 deletions bin/x2h-cm.tcl
@@ -0,0 +1,28 @@
# cm単位出力
#
# x2h-cm.exe xmlfile htmfolder [logfile]
#
# xmlfile : xmlファイル名か、xmlファイルがあるフォルダ(絶対パス)
# フォルダの場合、含まれるxmlファイルがすべて変換対象となる
# 基本的にxmlファイル名を渡すこと(メモリ消費を押さえるため))
# htmfolder : htmファイルを出力するフォルダ(絶対パス)
# logfile : ログファイル名
# 省略化:省略した場合x2h.exeがあるフォルダにx2h.logファイルが作成される
# ログファイルは追記モードでオープンされる
# 【注】ファイル名、フォルダ名の区切り文字は"/"を必ず使用のこと("\"は不可)
#
# 【例】x2h-cm.exe c:/data/xml/test.xml c:/data/htm c:/data/xml/mylog.log
# x2h-cm.exe c:/data/xml c:/data/htm
lscan $::argv exename xmlfile htmfolder logfile
if {$xmlfile==""} exit
if {$htmfolder==""} exit
if {$logfile==""} {set logfile "x2h.log"}

load tclgdi.dll gdi
unpack xml2htm.lib

xml2htm::createCanvas #[gui get root hwnd]
gdi $xml2htm::Canvas.mapunit 10
xml2htm::x2h $xmlfile $htmfolder $logfile
exit

3 changes: 3 additions & 0 deletions bin/x2h.exe
Git LFS file not shown
5 changes: 5 additions & 0 deletions bin/x2h.log
@@ -0,0 +1,5 @@
==============
xmlfile : a
htmfolder: b
2008/11/26 17:16:11
ERR:a �������ɓn����܂�����xml�t�@�C��������܂���
27 changes: 27 additions & 0 deletions bin/x2h.tcl
@@ -0,0 +1,27 @@
# mm単位出力
#
# x2h.exe xmlfile htmfolder [logfile]
#
# xmlfile : xmlファイル名か、xmlファイルがあるフォルダ(絶対パス)
# フォルダの場合、含まれるxmlファイルがすべて変換対象となる
# 基本的にxmlファイル名を渡すこと(メモリ消費を押さえるため))
# htmfolder : htmファイルを出力するフォルダ(絶対パス)
# logfile : ログファイル名
# 省略化:省略した場合x2h.exeがあるフォルダにx2h.logファイルが作成される
# ログファイルは追記モードでオープンされる
# 【注】ファイル名、フォルダ名の区切り文字は"/"を必ず使用のこと("\"は不可)
#
# 【例】x2h.exe c:/data/xml/test.xml c:/data/htm c:/data/xml/mylog.log
# x2h.exe c:/data/xml c:/data/htm

lscan $::argv exename xmlfile htmfolder logfile
if {$xmlfile==""} exit
if {$htmfolder==""} exit
if {$logfile==""} {set logfile "x2h.log"}

load tclgdi.dll gdi
unpack xml2htm.lib

xml2htm::createCanvas #[gui get root hwnd]
xml2htm::x2h $xmlfile $htmfolder $logfile
exit
3 changes: 3 additions & 0 deletions bin/xml2htm.lib
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/xmlcatalog.exe
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/xmllint.exe
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/xsltproc.exe
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/zip.exe
Git LFS file not shown
3 changes: 3 additions & 0 deletions bin/zlib1.dll
Git LFS file not shown
26 changes: 26 additions & 0 deletions center.xsl
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- center.xsl: Copyright (C) 2009-2011 anineco@nifty.com -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:gpx="http://www.topografix.com/GPX/1/1"
xmlns:exsl="http://exslt.org/common"
xmlns:math="http://exslt.org/math"
extension-element-prefixes="exsl math">
<xsl:output method="text" encoding="UTF-8"/>

<xsl:variable name="tmp">
<xsl:for-each select="//gpx:rtept|//gpx:trkpt|//gpx:wpt">
<pt lat="{@lat}" lon="{@lon}" name="{local-name()}"/>
</xsl:for-each>
</xsl:variable>
<xsl:variable name="pts" select="exsl:node-set($tmp)"/>
<xsl:variable name="CY" select="(math:max($pts/pt/@lat) + math:min($pts/pt/@lat)) div 2"/>
<xsl:variable name="CX" select="(math:max($pts/pt/@lon) + math:min($pts/pt/@lon)) div 2"/>

<xsl:template match="gpx:gpx">
<xsl:value-of select="concat(count(//gpx:trkpt),' ',
format-number($CY,'#.000000'),' ',
format-number($CX,'#.000000'),'&#10;')"/>
</xsl:template>

</xsl:stylesheet>
114 changes: 114 additions & 0 deletions css/common.css
@@ -0,0 +1,114 @@
@charset "utf-8";

body {
margin: 1em;
color: black;
font-family: 'メイリオ',Meiryo;
}

h1 {
margin: 5pt 0;
padding: 5pt;
background-color: #ccf;
}

h2 {
margin: 10pt 0 5pt 0;
padding: 5pt;
background-color: #eef;
border-left: #ccf 10pt solid;
}

h3 {
margin: 10pt 0 5pt 0;
padding: 5pt;
border-left: #ccf 10pt solid;
border-bottom: #ccf 1pt solid;
}

h4 {
margin: 10pt 0 5pt 0;
padding: 5pt;
border-bottom: #ccf 1px solid;
}

.menu {
font-family: Verdana, Arial, Helvetica, sans-serif;
}

.menu ul {
margin: 4px !important;
padding: 0;
}

.menu li {
display: inline;
}

table {
margin: 0 auto;
padding: 0pt;
border-collapse: collapse;
border: 2px solid #000;
}

th {
margin: 0px;
padding: 5px;
border: 1px solid #000;
background-color: #eef;
}

td {
margin: 0px;
padding: 5px;
border: 1px solid #000;
}

a.extern:after {
margin-left: 3px;
content: url(../images/external-link-green04-Shapes4FREE.png);
}

.routemap {
background-color: #fc9;
text-decoration: none;
border-width: 1px;
border-style: solid;
border-color: #fcc #f96 #f96 #fcc;
border-radius: .4em; /* Opera 10.5, IE 9, Saf4+, Chrome, FF4+ */
}

strong {
color: red;
}

code {
font-family: Verdana;
font-size: small;
}

pre {
margin: 5pt;
padding: 5pt;
border: #ccf 1px solid;
line-height: 140%;
font-family: Verdana;
font-size: small;
}

.verbatim {
font-family: Verdana;
}

.mark {
color: red;
}

var {
color: green;
}

address {
float: right;
}

0 comments on commit 9dcd190

Please sign in to comment.