| 1 | |
| 2 | == Microsoft Visual Studio visualizers == |
| 3 | |
| 4 | Geometry implementations are not viewable directly in the debug window of MS Visual Studio. |
| 5 | |
| 6 | To view quickly geometries in the debug window, edit the file located at |
| 7 | |
| 8 | {{{ |
| 9 | C:\Program Files\Microsoft Visual Studio 9.0\Common7\Packages\Debugger\autoexp.dat |
| 10 | }}} |
| 11 | |
| 12 | and put this code somewhere : |
| 13 | |
| 14 | |
| 15 | {{{ |
| 16 | ;------------------------------------------------------------- |
| 17 | ; Geos Point |
| 18 | ; |
| 19 | geos::geom::Point { |
| 20 | preview |
| 21 | ( |
| 22 | #( |
| 23 | (((*(((*((geos::geom::CoordinateArraySequence *)(($e).coordinates)._Myptr))).vect))._Myfirst)[0x00000000]).x, |
| 24 | (((*(((*((geos::geom::CoordinateArraySequence *)(($e).coordinates)._Myptr))).vect))._Myfirst)[0x00000000]).y |
| 25 | ) |
| 26 | ) |
| 27 | children |
| 28 | ( |
| 29 | #( |
| 30 | x: (((*(((*((geos::geom::CoordinateArraySequence *)(($e).coordinates)._Myptr))).vect))._Myfirst)[0x00000000]).x, |
| 31 | y: (((*(((*((geos::geom::CoordinateArraySequence *)(($e).coordinates)._Myptr))).vect))._Myfirst)[0x00000000]).y, |
| 32 | z: (((*(((*((geos::geom::CoordinateArraySequence *)(($e).coordinates)._Myptr))).vect))._Myfirst)[0x00000000]).z, |
| 33 | SRID:(*(geos::geom::Geometry*)(&($e))).SRID, |
| 34 | geometry: (*(geos::geom::Geometry*)(&($e))) |
| 35 | ) |
| 36 | ) |
| 37 | } |
| 38 | |
| 39 | }}} |
| 40 | |
| 41 | |
| 42 | |
| 43 | |