[OSGeoJapan-discuss] Mapserverの緯度経度の精度について

Jeff McKenna jmckenna @ gatewaygeomatics.com
2013年 3月 5日 (火) 05:40:38 PST


Hello,

Once you have verified that you are using CONNECTIONTYPE OGR in your
layer, and then verified the data through an ogrinfo command, next you
should try to get the exact SQL query performed on Oracle by MapServer
(try using shp2img with the '-all-debug 5' switch, or going through the
debugging steps listed at
http://mapserver.org/optimization/debugging.html).  When you have the
exact SQL query, use ogrinfo with the "-sql" switch and see the response.

Hopefully that will show you the data precision used.

-jeff


-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/


On 13-03-04 9:08 PM, 五十嵐仁 wrote:
> Jeff Mckennaさん
> 
> thank you for your reply.
> but my English is no good,so I answer in Japanese.
> 
> CONNECTIONTYPEはOGRを使用してOracleSpatialに接続しています。
> 
> ogrinfoコマンドの-sqlコマンドを実行してデータを確認してみましたところ、
> 特に桁数は丸められず、Oracleのデータをそのまま取得していました。
> 
> ということは、Mapserver本体でogr経由でデータ取得後に、
> 座標情報を6桁に丸めてしまっているということでしょうか。
> 
>> Hello,
>>
>> Have you also tried connecting through CONNECTIONTYPE OGR instead of
>> direct through MapServer/Oraclespatial?
>>
>> You can also use an ogrinfo command with the "-sql" switch to query the
>> Oracle data and see what values are returned.
>>
>> -jeff
>>
>>
>> -- 
>> Jeff McKenna
>> MapServer Consulting and Training Services
>> http://www.gatewaygeomatics.com/
>>
>> On 13-03-03 8:43 PM, 五十嵐仁 wrote:
>>> メーリングリスト購読者各位
>>>
>>> 現在、MS4WをWFSサーバーとして、OracleSpatialをDBとして利用していますが、
>>> Mapserverによって緯度経度が小数点6桁に丸められてしまう問題が判明し、
>>> その解決策を調べています。
>>>
>>> 例えば以下のような感じで丸められてしまっています。
>>> 座標系は、EPSG:4621のJGD2000です。
>>> Oracleでの座標値:
>>>   139.787404802403,35.6974644249899
>>> WFSのGetFeatureInfoでの座標値:
>>>   139.787405,35.697464
>>>   
>>> GeoserverなどのWFSではOracleの緯度経度がそのまま配信されており、
>>> OGCのWFSの仕様を見た限りでは座標値の精度に関する記述は見当たらなく、
>>> Mapserverの実装上の問題だと考えています。
>>>
>>> Mapfileなどで設定できそうなプロパティがないかなど調べてみたのですが、
>>> 明確な解決方法を見つけられておりません。
>>>
>>> Mapserver上で緯度経度を7桁以上で扱う方法をご存知の方がおりましたら、
>>> お教えいただければと思い投稿しました。
>>>
>>> よろしくお願いいたします。
>>>
>>> 五十嵐
>>>
>>


More information about the OSGeoJapan-discuss mailing list