Error 1 error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recommended. c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\atlcore.h 35 1 ABS_CCD81_Parser
Got the above error
Found the fix below
http://connect.microsoft.com/VisualStudio/feedback/details/564673/problem-with-win32-winnt
I solved the issue. I just needed to edit file "stdafx.h" and change the value defined for _WIN32_WINNT and WINVER to 0x0502. My bad.
Risky GIS
Sunday, July 11, 2010
Monday, July 5, 2010
Add grid value to point using Global Mapper
Use Global Mapper to apply a grid value to a series of points by opening a grid and a point layer in global mapper. Then use
Global Mapper>File>Export Vector Data>Export Simple ASCII Text File
with the export elevation option ticked. Note that it may try to utilise a Z geometry or attribute if it exists before it will use the grid value.
Also, it will transform any line, polygon data into points if using the same method.
Global Mapper>File>Export Vector Data>Export Simple ASCII Text File
with the export elevation option ticked. Note that it may try to utilise a Z geometry or attribute if it exists before it will use the grid value.
Also, it will transform any line, polygon data into points if using the same method.
Monday, June 14, 2010
Point layer from X and Y coordinates in MapInfo
To create a MapInfo tab file from a text file filled with X Y coordinates, simply open the text file with mapinfo. > Save as tab file.
Table>Create Points
Specify X and Y columns.
Enjoy!
Dont forget to apply column headings for risk data.
It can be found here...
.\Data\Risk_HeaderLine.txt
Table>Create Points
Specify X and Y columns.
Enjoy!
Dont forget to apply column headings for risk data.
It can be found here...
.\Data\Risk_HeaderLine.txt
Wednesday, May 26, 2010
Swan River
MapInfo and QGIS
GOt river data from geoscience australia, was unimpressed with quality.
Used DEM to create new river outline. Due to poor resolution of DEM, the edge is quite jagged, but more closely resembles what can be seen in aerial photography on Google than the GA layer.
CReated new layer by using Vertical Mapper to create contours from DEM. I could only find this option within the Grid manager, go figure.
Made intervals quite small, seemed to pick well. Created new TAB file from interval that matched shape of river.
USed distance calculator tool in Mapinfo to calculate distance between GNAF points and new rriver TAB. For some reson, they all seem to aggregate to certain nodes. I think it might be due to the jagged shape of the river file, but I'm not sure. One way to check, would be to smooth out the river boundary and see how distance tool works once destination geometry has more nodes.
Note that the distance calculator is under tools, but not by default. It needs to be turned on by going into tool manager.
Distance calculator created lines between the GNAF points and the closest node in the river polygon. I then used QGIS to create nodes from the lines, which created 2 points for each line, as the lines were all dead straight - obviously as this is the shortest distance between 2 points.
QGIS>Vector>Geometry Tools>Extract nodes.
Then in Vertical Mapper, used the point inspection tool to add heights to the points.
From here, its a simple process of matching the two points - obviously the one with the larger height value is the property.
GOt river data from geoscience australia, was unimpressed with quality.
Used DEM to create new river outline. Due to poor resolution of DEM, the edge is quite jagged, but more closely resembles what can be seen in aerial photography on Google than the GA layer.
CReated new layer by using Vertical Mapper to create contours from DEM. I could only find this option within the Grid manager, go figure.
Made intervals quite small, seemed to pick well. Created new TAB file from interval that matched shape of river.
USed distance calculator tool in Mapinfo to calculate distance between GNAF points and new rriver TAB. For some reson, they all seem to aggregate to certain nodes. I think it might be due to the jagged shape of the river file, but I'm not sure. One way to check, would be to smooth out the river boundary and see how distance tool works once destination geometry has more nodes.
Note that the distance calculator is under tools, but not by default. It needs to be turned on by going into tool manager.
Distance calculator created lines between the GNAF points and the closest node in the river polygon. I then used QGIS to create nodes from the lines, which created 2 points for each line, as the lines were all dead straight - obviously as this is the shortest distance between 2 points.
QGIS>Vector>Geometry Tools>Extract nodes.
Then in Vertical Mapper, used the point inspection tool to add heights to the points.
From here, its a simple process of matching the two points - obviously the one with the larger height value is the property.
Monday, May 17, 2010
IDRISI - where the heck is that command?
I created a shortcut to the IDRISI Taiga manual, and put it on my desktop.
It has links to all the macro commands, beyond what is in the help documentation
"C:\Program Files (x86)\IDRISI Taiga\Documentation\Taiga Manual.pdf"
The list of modules and the menu they can be found at page 76, the 77th page of the pdf.
It has links to all the macro commands, beyond what is in the help documentation
"C:\Program Files (x86)\IDRISI Taiga\Documentation\Taiga Manual.pdf"
The list of modules and the menu they can be found at page 76, the 77th page of the pdf.
Sunday, May 16, 2010
IDRISI
Idrisi gets used here to rasterize vector layers. Convert from Mapinfo to shape using Global Mapper, or Mapinfo. Then use IDRISI to convert from shape to IDRISI vector format. Then use IDRISI to convert from IDRISI vector to IDRISI raster.
To import/convert in IDRISI:
File>Import>Software-Specific Formats>ESRI formats>SHAPEIDR
To convert between vector and raster:
Reformat>RASTERVECTOR
Note - you might be converting from Mapinfo to shape, which will create multiple geometry types. Make sure you convert all the geometrys. First create an image using Data Entry> INITIAL, create the empty image and then add rasters to it.
To import/convert in IDRISI:
File>Import>Software-Specific Formats>ESRI formats>SHAPEIDR
To convert between vector and raster:
Reformat>RASTERVECTOR
Note - you might be converting from Mapinfo to shape, which will create multiple geometry types. Make sure you convert all the geometrys. First create an image using Data Entry> INITIAL, create the empty image and then add rasters to it.
Subscribe to:
Posts (Atom)