MapWindow 4 - Plugins : MapWindow Discussion Forum
In one of the methods of my application I am trying to create a new shapefile on the fly on a location on my disk where the same shape file is present, but since i need to convert the shapefile type for my system so I have to do it. It is working fine in two other modules but this one is finding me
ShapeFile.Createnew
Posted by:
Sumit ()
Date: June 30, 2010 12:09AM
In one of the methods of my application I am trying to create a new shapefile on the fly on a location on my disk where the same shape file is present, but since i need to convert the shapefile type for my system so I have to do it. It is working fine in two other modules but this one is finding me problems. I tried to rectify the problem but all i am with is the last error code generated which is 804. If anyone have any idea then please help me.
Re: ShapeFile.Createnew
Posted by:
pmeems ()
Date: June 30, 2010 12:45PM
You should use sf.get_ErrorMsg(sf.LastErrorCode) to get a descriptive error.
It would also help if you would show some code.
--
Paul
--
Don't forget to read the new documentation: www.mapwindow.org/documentation/mapwingis4.8
Join us Google+: MapWindow GIS Google+ Community
Join the MapWindow Group on LinkedIn! LinkedIn - MapWindow Group
Download the latest beta installer at:
tinyurl.com/mwMonthly 32-Bit
tinyurl.com/mwMonthlyx64 64-Bit
Follow me on Twitter MapWindow_nl to read when a new installer is published.
---
Paul Meems
The Netherlands
[www.bontepaarden.nl]
Release manager, configuration manager and
forum moderator of MapWindow GIS
Owner of MapWindow.nl - Support for
Dutch speaking users: www.mapwindow.nl
*******
Everything I say or write is my personal opinion and
not the opinion of the company I work for.
*******
View my profile on LinkedIn
It would also help if you would show some code.
--
Paul
--
Don't forget to read the new documentation: www.mapwindow.org/documentation/mapwingis4.8
Join us Google+: MapWindow GIS Google+ Community
Join the MapWindow Group on LinkedIn! LinkedIn - MapWindow Group
Download the latest beta installer at:
tinyurl.com/mwMonthly 32-Bit
tinyurl.com/mwMonthlyx64 64-Bit
Follow me on Twitter MapWindow_nl to read when a new installer is published.
---
Paul Meems
The Netherlands
[www.bontepaarden.nl]
Release manager, configuration manager and
forum moderator of MapWindow GIS
Owner of MapWindow.nl - Support for
Dutch speaking users: www.mapwindow.nl
*******
Everything I say or write is my personal opinion and
not the opinion of the company I work for.
*******
View my profile on LinkedIn
Re: ShapeFile.Createnew
Posted by:
Sumit ()
Date: June 30, 2010 11:22PM
Thanks for your reply, it was actually a access violation issue as the shapefile was not getting closed, though, i close it by sf.close(), I don't know why... but then I resolved the issue by just simply ignoring to use that shapefile=, Instead i copied it to different location, did my calculations with that shapefile and then simply replaced the original one.
Sorry, only registered users may post in this forum.


