現在、Shapefile クラスと ColdFusion を使用して、各シェープファイルの「レコード」を調べています。各レコードには境界ボックスがあり、この情報を取得できますが、各レコード内のポイントを実際に取得する方法が見つかりません。
どのクラスを使用し、どのように使用するかについて、誰かが光を当てることができますか?
これは、次の場合とまったく同じ状況です (多少の言い回しを含む)。
http://old.nabble.com/what-class-do-you-use-to-extract-data-from-.SHP-files--td20208204.html
私は ColdFusion を使用していますが、解決策のヒントがあれば大いに役立つと思います。
私の現在のテストコードは次のとおりです。
<cfset shapeFile = createObject("java","com.bbn.openmap.layer.shape.ShapeFile")>
<cfset shapeFile.init('/www/_Dev/tl_2009_25_place.shp')>
<cfoutput>
getFileLength = #shapeFile.getFileLength()#<br>
getFileVersion = #shapeFile.getFileVersion()#<br>
getShapeType = #shapeFile.getShapeType()#<br>
toString = #shapeFile.toString()#<br>
</cfoutput>
<cfdump var="#shapeFile#">
<cfdump var="#shapeFile.getBoundingBox()#"> <br>
<cfdump var="#shapeFile.getNextRecord()#">