New Post: code for creating labels on shapefiles
Hi , I am new to mapwingis , iam developing an application in which i can add shape file and when click on point it will display the information
View ArticleNew Post: I cannot use shapefile.EditAddField() in VB.net
Hi all From this link (below).http://www.mapwindow.org/documentation/mapwingis4.8/_create_polygon_shapefile_8cs-example.html#a5 In this line. int fldX = sf.EditAddField("x", FieldType.DOUBLE_FIELD, 9,...
View ArticleNew Post: Problem about open multiband raster image
Hi all I don't know how to load a multiband raster image with 4 bands(.tif). The function Grid.Open( ) can only load 1 band. Now I need to load multiband image in the way of RGB composite and get pixel...
View ArticleNew Post: Problem about open multiband raster image
JuSong,MapWinGIS is not capable of opening multiband rasters. Sorry about that.- Dan----------------------------------Daniel P. Ames, Ph.D., P.E. Associate Professor, Civil & Environmental...
View ArticleNew Post: code for creating labels on shapefiles
You will need a way to get the shapes that are in the vicinity of the mouse cursor and then once that is established get the attributes of that shape or shapes. Main docs here:...
View ArticleNew Post: Problem about open multiband raster image
Dan, Thank you for your reply. But I'm a little confused. I can open multiband rasters by the function Image.Open and display on the screen by axMap.AddLayer. But I don't konw whether the display...
View ArticleNew Post: Problem about open multiband raster image
Is your tiff an RGB file? If so you can open it as an image. The 3 bands will be combined to create a color: 255;255;255 is black. Each band has the value 255. If you have the latest version of...
View ArticleNew Post: code for creating labels on shapefiles
If you mean by clicking on the point selecting the point you can use sf.get_ShapeSelected():...
View ArticleNew Post: I cannot use shapefile.EditAddField() in VB.net
You might need a newer version of the ocx. You can download it from here: http://svn.mapwindow.org/svnroot/MapWindow4Dev/Bin/ You'll need the ocx and the two interop dlls. regMapWinGIS.cmd can be used...
View ArticleNew Post: Labels don't display (if the .DBF file doesn't have write permission)
Thank you for testing and I'm glad the fix worked.
View ArticleNew Post: Is Something Wrong with OnDrawBackBuffer?
I'm not sure why OnDrawBackBuffer is behaving like you mention. But what do you try to do? Looking at your code it looks like you want to create a railroad style, am I correct? You can use the line...
View ArticleNew Post: Iterate through Selected Shapes
In my VB.NET app using the OCX I am letting the user select shapes in various ways. Once they are done they click on a button to do something with the selected shapes. Is there no other way to get a...
View ArticleNew Post: "Object is currently in use elsewhere" error
VB2010 MW4.8. I've been getting this error more and more and cant figure out what is causing this. It usually appears right before load and it seems like an exception that cant be handled. At least I...
View ArticleNew Post: Is Something Wrong with OnDrawBackBuffer?
pmeems wrote: I'm not sure why OnDrawBackBuffer is behaving like you mention. But what do you try to do? Looking at your code it looks like you want to create a railroad style, am I correct? You can...
View ArticleNew Post: Problem about open multiband raster image
The tiff is an remote sensing image and it has 4 bands. I need to pick 3 bands to display. And the image display is different from ENVI or Arcgis. Here is the result of 'Gdal Info'. Is there any way to...
View ArticleNew Post: Problem about open multiband raster image
You probably need to gdal_translate your tiff to a 3 band RGB tiff to display it properly in MapWindow. I'm not sure how to achieve that. You can have a look here...
View ArticleNew Post: "Object is currently in use elsewhere" error
Are you doing some custom drawing and/or some multi threading? I haven't heard of this error before so it looks like something in your code. Can you pinpoint which part of your code is generating this...
View ArticleNew Post: Iterate through Selected Shapes
At this point no other solution is available. For v4.9 or v5 we will try to give back a collection/array of selected shape ids. Paul
View Article