「c#」タグアーカイブ

DotSpatial:DotSpatial.Topology.Pointのライブラリが無くなって

DotSpatial.Topology.Point
ver 1.9には、あったのですが無くなっているので
実は、無くなったのでなく、分離されたからなんですね。
このように取得したオブジェクトからポイントに変換するには
必要なのは
Since it was lost in ver 1.9, it is lost
Actually, it was because it was separated, but not lost.
To convert from the acquired object to a point like this
What you need is

GeoAPI.Geometries;
Coordinate coord = map.PixelToProj(e.Location);
これはそのまま
This is as it is
NetTopologySuite.Geometries;
DotSpatial.Topology.Point point = new DotSpatial.Topology.Point(coord);
ようやくわかりました。
Finally understood.
NetTopologySuite.Geometries.Point point = new NetTopologySuite.Geometries.Point(coord);

DotSpatial.GeoAPI
 1.7.4.0
DotSpatial.NetTopologySuite
 1.14.4.0

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