「DotSpatial」カテゴリーアーカイブ

DotSpatial:SQLが少々の問題点 DotSpatial.Plugins.SpatiaLite

DotSpatial.Plugins.SpatiaLite

sqllite のデータベースで、中のテーブルを確認しているのですが、

SpatiaLiteHelper.cs
SELECT f_table_name, f_geometry_column, type, coord_dimension, srid, spatial_index_enabled FROM geometry_columns

しかし、最近のデータベースは、若干違うようで

SELECT f_table_name, f_geometry_column,geometry_type, coord_dimension, srid FROM geometry_columns
でエラーが発生せず動作できます。
1.9 も 2.0も同じ構文でした。

逆に、SRIDが記述されないとエラーが発生します。

DotSpatial:何とか座標系の問題点 DotSpatial.Projections

DotSpatial.Projections
座標系なのだが、これ2014頃の座標系しか対応していない。
日本の座標系は、多少増加した。
対応しているのは、2.0だが、1.9でも利用できないか?
ソースより発見
DotSpatial.Projections
It is a coordinate system, but this only corresponds to the coordinate system around 2014.
Japan’s coordinate system increased somewhat.
Is 2.0 compatible, but is it even available at 1.9?
Discovered from source

SnapCrab_NoName_2018-5-31_21-51-27_No-00
AuthorityCodes
のフォルダに、
AuthorityCodeToProj4.dsこれがバイナリ状態の座標系
そのもとが、AuthorityCodeToProj4.txt
これに重複するような座標系は入れない。
入れるとエラーとなる。
パスが通る直下に
AdditionalProjections.proj4
この様に入れる。

AuthorityCodes
In the folder of
AuthorityCodeToProj4.ds This is the binary state coordinate system
Its origin is AuthorityCodeToProj4.txt
Do not include a coordinate system that overlaps this.
It will result in an error.
Directly under the path passes through
AdditionalProjections.proj 4
Put in this way.

続きを読む DotSpatial:何とか座標系の問題点 DotSpatial.Projections

DotSpatial:何とか日本語化 DotSpatial.Tools

DotSpatial.Control
色々調べてみると本当に工夫されたライブラリで驚いた
DotSpatial.Control
I was surprised really devised library If you look various
SnapCrab_NoName_2018-5-27_23-8-28_No-00

こんな感じで自動的に、local言語読み込んで表示してくれる事に感動
Automatically, impressed by it that it will be displayed by reading local language like this

今度は、ちょっと違うが、仕様は同じ
プラグインにこのようなフォルダができるので、例えばここに
Next time, it is slightly different, the specification is the same
Since such a folder can be created in the plugin, for example here

SnapCrab_NoName_2018-5-29_10-0-23_No-00

リソースファイルを入れてやると日本語になる。
2.0rc ja-JP版
I put in a resource file and it becomes Japanese.
2.0rc ja-JP version
DotSpatial.Tools.resources

これを作成するに当たって
プラグインのリソースファイルの中身が作成していなかったのでとりあえず、Designerが存在したのでザックリプログラムで
抽出して作成。
In creating this
The contents of the resource file of the plug-in
Since it was not created, for the time being,
Since Designer existed, a text label extraction program of object name was created
Create a resource file

DotSpatial.Plugins.SpatiaLite
※AddLayerとfrmQueryのリソースファイル(en)
* AddLayer and frmQuery resource file (en)

現在は、1.9と2.0rcなので2つ必要になる
さすがのライブラリやね。
Currently, since it is 1.9 and 2.0 rc
DotSpatial sounds Ya wonderful library.

とりあえず、翻訳プログラム作って作成
このDotSpatialの言語ファイル
フランス語やドイツ語の言語ファイル有るようなので
とりあえず、63カ国対応でようやくいいかもってかんじ。

For the time being, create a translation program and create
This DotSpatial language file
It seems that there are language files in French and German
For the time being, it seems that it is finally OK for 63 countries.

ソースは、こちらから
Source here
https://github.com/DotSpatial/DotSpatial