创建一个点shapefile [英] Create a point shapefile
本文介绍了创建一个点shapefile的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我正在使用C#.
我正在尝试编辑shapefile.我需要添加一点,这也应该反映在shapefile的数据库中.我也试图选择该点并进行删除操作.有人可以帮我做到这一点.我需要C#.
我不知道如何绘制特定的形状.这是面临的主要问题之一.
Hello all,
Am working in C#.
I am trying to edit a shapefile. i need to add point and that should reflect in the shapefile''s database also. I am also trying to select the point and do delete operation also. Can someone help me to do this . I need in C# .
I dont know how a particular shape drawn can have seleted. That''s one of the main problem am facing.
推荐答案
这里很少有人有GIS工具的经验,所以您可能会发现很少的兴趣.我建议检查ESRI网站,因为他们一直在为想要与其产品接口的程序员提供API包.他们还有一个庞大的用户社区,您可能会在这里找到更多帮助.
我在工作中使用ArcInfo,但还没有时间研究shapefile的文件格式.您可能可以在ESRI网站上找到该信息.祝您好运!
Few people here have experience with GIS tools, so you may find little interest. I suggest checking the ESRI website, as they have been offering an API package for programmers who want to interface with their products. They also have a large user community where you might find more assistance.
I use ArcInfo at work, but haven''t had the time to research the file format for shapefiles; you probably can find that information at the ESRI site. Good luck!
-最简单的方法是,您希望将文件读入具有-( ^ )
这将为您提供类结构.
使用Streams(读取器/写入器)进行读/写操作有点麻烦..
然后只需在适当的位置添加所需的点,调整/更新其他类变量(最小-最大等)
-它的编码更多,但是您可能还想制作一个ShapeContent基类,并为每种形状内容实现扩展.
如果您试图绘制形状文件,那么在此之上又是另一层.
-Well at the simplest level your going to want to read in the file to a "shapefile" class with class structure based on -(readthis^)
that will give you the class structure.
read/write in using Streams (Reader/Writer) it''s a little putzy..
then you simply add in the point you want at the appropriate place, adjust/update your other class variables (min-max etc.)
-it''s more coding but you will probably also want to make a ShapeContent base class and implement extensions for each shape content.
If your trying to draw a shape file.. that is altogether another layer on top of this.
我真的建议您为自己准备一些有关这些主题的书,或者至少找到一些网页致力于这项任务.您已经反复提出了类似的问题,看似很低级的任务,这显示出对该主题的基本知识匮乏.代码项目的目的是提供帮助,而不是为您工作.
与过去一样,我建议您对要达到的目标进行一些研究,编写一些代码,然后回来,并在遇到某些特定问题时问一个问题.别忘了发布您的代码,否则您似乎什么都没做.
I really suggest you get yourself some books on these topics, or at least find some web pages dedicated to this task. You have repeatedly asked similar questions, for apparently low-level tasks, which shows a basic lack of knowledge on the subject. The purpose of the Code Project is to provide help, not to do you work for you.
I suggest, as I have in the past, that you do some research on whatever it is you are trying to achieve, write some code then come back and ask a question when you are stuck on something specific. Don''t forget to post your code, or it looks like you haven''t done anything.
这篇关于创建一个点shapefile的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文