<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-16526</id>
	<title>Nabble - ShapeLib</title>
	<updated>2009-10-18T21:26:54Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/ShapeLib-f16526.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ShapeLib-f16526.html" />
	<subtitle type="html">&lt;a href=&quot;http://shapelib.maptools.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ShapeLib&lt;/a&gt;&amp;nbsp;- A C library for reading and writing ESRI Shapefiles.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-25953184</id>
	<title>Re: Shapelib 1.3.0 alpha 2</title>
	<published>2009-10-18T21:26:54Z</published>
	<updated>2009-10-18T21:26:54Z</updated>
	<author>
		<name>smasher</name>
	</author>
	<content type="html">I built the library with VC++ 2008 and it built OK. I also fixed the snprintf issue, I wasn't aware there was already a fix. &amp;nbsp;Unfortunately not everything works. &amp;nbsp;I am running under windows 7 &amp;nbsp;and am getting a protected memory violation error on DBFReadStringAttribute(). &amp;nbsp;This sounds similar to a post I saw in March 2008 from two people with a similar error there.
&lt;br&gt;&lt;br&gt;Unfortunately I am not a C++ developer, but a C# developer. &amp;nbsp;I don't know enough to put together a VC++ debugger to step into the code. &amp;nbsp;I am using the .Net wrapper provided by someone else. &amp;nbsp;It was all running fine under XP. &amp;nbsp;I double checked the wrapper's function signatures and everything matches up, including the structs that are used. &amp;nbsp;
&lt;br&gt;&lt;br&gt;The C# wrapper included a binary built with an older codebase. &amp;nbsp;Then under windows 7 the shapelib.dll would not load at all, it threw error messages that the shapelib.dll file could not be found. &amp;nbsp;I knew it was finding it, so I decided to rebuild it with a newer version, and downloaded the alpha to try. &amp;nbsp;I followed the instructions for building with VC++, fixed the snprintf issue and now it loads and will accept most calls, but I get the above error. &amp;nbsp;The rest of the lib calls seem to be OK.
&lt;br&gt;&lt;br&gt;Any ideas? &amp;nbsp;Is anyone else using the library under windows vista or windows 7? &amp;nbsp;If someone has a visual studio project already setup that they can send me I can then work on a fix. &amp;nbsp;I can work with the C code OK, it's been a few years, but I don't know the IDE well enough to setup the project.
&lt;br&gt;&lt;br&gt;If no one else is seeing this or knows of a fix, I will probably replace the dbase calls with C# and ADO.Net in the wrapper since that's what I am familiar with.
&lt;br&gt;&lt;br&gt;Scott
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Bram de Greve wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Frank Warmerdam wrote:
&lt;br&gt;&amp;gt; Bram de Greve wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; Hi Frank,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I tried to build the alpha on windows, and had to fix a snprintf issue
&lt;br&gt;&amp;gt;&amp;gt; to get things compiling. &amp;nbsp;Other than that, it seems find ...
&lt;br&gt;&amp;gt;&amp;gt; Do you want me to commit it to CVS? &amp;nbsp;If I can find back my credentials,
&lt;br&gt;&amp;gt;&amp;gt; that is =)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Bram,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If you have your commit info, please go ahead. &amp;nbsp;Otherwise you can forward
&lt;br&gt;&amp;gt; a patch.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Best regards,
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;Hi Frank,
&lt;br&gt;&lt;br&gt;It's done =)
&lt;br&gt;&lt;br&gt;Bram
&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;Shapelib@lists.maptools.org
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Shapelib-1.3.0-alpha-2-tp25298608p25953184.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25499116</id>
	<title>Re: Shapelib 1.3.0 alpha 2</title>
	<published>2009-09-17T13:51:18Z</published>
	<updated>2009-09-17T13:51:18Z</updated>
	<author>
		<name>Bram de Greve</name>
	</author>
	<content type="html">Frank Warmerdam wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Bram de Greve wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; Hi Frank,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I tried to build the alpha on windows, and had to fix a snprintf issue
&lt;br&gt;&amp;gt;&amp;gt; to get things compiling. &amp;nbsp;Other than that, it seems find ...
&lt;br&gt;&amp;gt;&amp;gt; Do you want me to commit it to CVS? &amp;nbsp;If I can find back my credentials,
&lt;br&gt;&amp;gt;&amp;gt; that is =)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Bram,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If you have your commit info, please go ahead. &amp;nbsp;Otherwise you can forward
&lt;br&gt;&amp;gt; a patch.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Best regards,
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;Hi Frank,
&lt;br&gt;&lt;br&gt;It's done =)
&lt;br&gt;&lt;br&gt;Bram
&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25499116&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Shapelib-1.3.0-alpha-2-tp25298608p25499116.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25498418</id>
	<title>Re: Shapelib 1.3.0 alpha 2</title>
	<published>2009-09-17T12:59:16Z</published>
	<updated>2009-09-17T12:59:16Z</updated>
	<author>
		<name>Frank Warmerdam-2</name>
	</author>
	<content type="html">Bram de Greve wrote:
&lt;br&gt;&amp;gt; Hi Frank,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I tried to build the alpha on windows, and had to fix a snprintf issue
&lt;br&gt;&amp;gt; to get things compiling. &amp;nbsp;Other than that, it seems find ...
&lt;br&gt;&amp;gt; Do you want me to commit it to CVS? &amp;nbsp;If I can find back my credentials,
&lt;br&gt;&amp;gt; that is =)
&lt;br&gt;&lt;br&gt;Bram,
&lt;br&gt;&lt;br&gt;If you have your commit info, please go ahead. &amp;nbsp;Otherwise you can forward
&lt;br&gt;a patch.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;-- 
&lt;br&gt;---------------------------------------+--------------------------------------
&lt;br&gt;I set the clouds in motion - turn up &amp;nbsp; | Frank Warmerdam, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25498418&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;warmerdam@...&lt;/a&gt;
&lt;br&gt;light and sound - activate the windows | &lt;a href=&quot;http://pobox.com/~warmerdam&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pobox.com/~warmerdam&lt;/a&gt;&lt;br&gt;and watch the world go round - Rush &amp;nbsp; &amp;nbsp;| Geospatial Programmer for Rent
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25498418&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Shapelib-1.3.0-alpha-2-tp25298608p25498418.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25496478</id>
	<title>Re: Shapelib 1.3.0 alpha 2</title>
	<published>2009-09-17T11:11:30Z</published>
	<updated>2009-09-17T11:11:30Z</updated>
	<author>
		<name>Bram de Greve</name>
	</author>
	<content type="html">Hi Frank,
&lt;br&gt;&lt;br&gt;I tried to build the alpha on windows, and had to fix a snprintf issue
&lt;br&gt;to get things compiling. &amp;nbsp;Other than that, it seems find ...
&lt;br&gt;Do you want me to commit it to CVS? &amp;nbsp;If I can find back my credentials,
&lt;br&gt;that is =)
&lt;br&gt;&lt;br&gt;Bram
&lt;br&gt;&lt;br&gt;Frank Warmerdam wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Folks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have been negligent for years in producing a new Shapelib release
&lt;br&gt;&amp;gt; despite a bunch of ongoing work - mostly driven by the needs of GDAL/OGR.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have made a few updates to the web page, including anonymous CVS access
&lt;br&gt;&amp;gt; information and a pointer to the alternate download site.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://shapelib.maptools.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://shapelib.maptools.org/&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have also uploaded a 1.3.0 &amp;quot;alpha 2&amp;quot; release at:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://download.osgeo.org/shapelib/shapelib-1.3.0a2.zip&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://download.osgeo.org/shapelib/shapelib-1.3.0a2.zip&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://download.osgeo.org/shapelib/shapelib-1.3.0a2.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://download.osgeo.org/shapelib/shapelib-1.3.0a2.tar.gz&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have yet to properly document recent changes, but I'd appreciate feedback
&lt;br&gt;&amp;gt; leading up to a formal 1.3.0 release.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Best regards,
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25496478&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Shapelib-1.3.0-alpha-2-tp25298608p25496478.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25317884</id>
	<title>Re: Shapelib Digest, Vol 59, Issue 1</title>
	<published>2009-09-06T06:38:41Z</published>
	<updated>2009-09-06T06:38:41Z</updated>
	<author>
		<name>Jeff Hamann</name>
	</author>
	<content type="html">Looks like it works fine on snow leopard....
&lt;br&gt;&lt;br&gt;Darwin macbook.local 10.0.0 Darwin Kernel Version 10.0.0: Fri Jul 31 &amp;nbsp;
&lt;br&gt;22:47:34 PDT 2009; root:xnu-1456.1.25~1/RELEASE_I386 i386
&lt;br&gt;macbook:shapelib-1.3.0a2 hamannj$
&lt;br&gt;&lt;br&gt;macbook:shapelib-1.3.0a2 hamannj$ make test
&lt;br&gt;******* Stream 2 Succeeded *********
&lt;br&gt;******* Stream 3 Succeeded *********
&lt;br&gt;macbook:shapelib-1.3.0a2 hamannj$
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Sep 5, 2009, at 10:00 AM, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25317884&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shapelib-request@...&lt;/a&gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Send Shapelib mailing list submissions to
&lt;br&gt;&amp;gt; 	&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25317884&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shapelib@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; To subscribe or unsubscribe via the World Wide Web, visit
&lt;br&gt;&amp;gt; 	&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;&amp;gt; or, via email, send a message with subject or body 'help' to
&lt;br&gt;&amp;gt; 	&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25317884&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shapelib-request@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You can reach the person managing the list at
&lt;br&gt;&amp;gt; 	&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25317884&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shapelib-owner@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When replying, please edit your Subject line so it is more specific
&lt;br&gt;&amp;gt; than &amp;quot;Re: Contents of Shapelib digest...&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Today's Topics:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 1. Shapelib 1.3.0 alpha 2 (Frank Warmerdam)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Message: 1
&lt;br&gt;&amp;gt; Date: Fri, 04 Sep 2009 13:28:11 -0400
&lt;br&gt;&amp;gt; From: Frank Warmerdam &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25317884&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;warmerdam@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Subject: [Shapelib] Shapelib 1.3.0 alpha 2
&lt;br&gt;&amp;gt; To: Shapelib Development &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25317884&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shapelib@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Message-ID: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25317884&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4AA14E2B.9050301@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Content-Type: text/plain; charset=ISO-8859-1; format=flowed
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Folks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have been negligent for years in producing a new Shapelib release
&lt;br&gt;&amp;gt; despite a bunch of ongoing work - mostly driven by the needs of GDAL/ 
&lt;br&gt;&amp;gt; OGR.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have made a few updates to the web page, including anonymous CVS &amp;nbsp;
&lt;br&gt;&amp;gt; access
&lt;br&gt;&amp;gt; information and a pointer to the alternate download site.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &lt;a href=&quot;http://shapelib.maptools.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://shapelib.maptools.org/&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have also uploaded a 1.3.0 &amp;quot;alpha 2&amp;quot; release at:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &lt;a href=&quot;http://download.osgeo.org/shapelib/shapelib-1.3.0a2.zip&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://download.osgeo.org/shapelib/shapelib-1.3.0a2.zip&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &lt;a href=&quot;http://download.osgeo.org/shapelib/shapelib-1.3.0a2.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://download.osgeo.org/shapelib/shapelib-1.3.0a2.tar.gz&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have yet to properly document recent changes, but I'd appreciate &amp;nbsp;
&lt;br&gt;&amp;gt; feedback
&lt;br&gt;&amp;gt; leading up to a formal 1.3.0 release.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Best regards,
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; --------------------------------------- 
&lt;br&gt;&amp;gt; +--------------------------------------
&lt;br&gt;&amp;gt; I set the clouds in motion - turn up &amp;nbsp; | Frank Warmerdam, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25317884&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;warmerdam@...&lt;/a&gt;
&lt;br&gt;&amp;gt; light and sound - activate the windows | &lt;a href=&quot;http://pobox.com/~warmerdam&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pobox.com/~warmerdam&lt;/a&gt;&lt;br&gt;&amp;gt; and watch the world go round - Rush &amp;nbsp; &amp;nbsp;| Geospatial Programmer for &amp;nbsp;
&lt;br&gt;&amp;gt; Rent
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Shapelib mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25317884&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; End of Shapelib Digest, Vol 59, Issue 1
&lt;br&gt;&amp;gt; ***************************************
&lt;/div&gt;&lt;br&gt;Jeff Hamann, PhD
&lt;br&gt;PO Box 1421
&lt;br&gt;Corvallis, Oregon 97339-1421
&lt;br&gt;541-754-2457
&lt;br&gt;jeff.hamann[at]forestinformatics[dot]com
&lt;br&gt;&lt;a href=&quot;http://www.forestinformatics.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.forestinformatics.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25317884&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Shapelib-Digest%2C-Vol-59%2C-Issue-1-tp25317884p25317884.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25298608</id>
	<title>Shapelib 1.3.0 alpha 2</title>
	<published>2009-09-04T10:28:11Z</published>
	<updated>2009-09-04T10:28:11Z</updated>
	<author>
		<name>Frank Warmerdam-2</name>
	</author>
	<content type="html">Folks,
&lt;br&gt;&lt;br&gt;I have been negligent for years in producing a new Shapelib release
&lt;br&gt;despite a bunch of ongoing work - mostly driven by the needs of GDAL/OGR.
&lt;br&gt;&lt;br&gt;I have made a few updates to the web page, including anonymous CVS access
&lt;br&gt;information and a pointer to the alternate download site.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://shapelib.maptools.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://shapelib.maptools.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;I have also uploaded a 1.3.0 &amp;quot;alpha 2&amp;quot; release at:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://download.osgeo.org/shapelib/shapelib-1.3.0a2.zip&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://download.osgeo.org/shapelib/shapelib-1.3.0a2.zip&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://download.osgeo.org/shapelib/shapelib-1.3.0a2.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://download.osgeo.org/shapelib/shapelib-1.3.0a2.tar.gz&lt;/a&gt;&lt;br&gt;&lt;br&gt;I have yet to properly document recent changes, but I'd appreciate feedback
&lt;br&gt;leading up to a formal 1.3.0 release.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;-- 
&lt;br&gt;---------------------------------------+--------------------------------------
&lt;br&gt;I set the clouds in motion - turn up &amp;nbsp; | Frank Warmerdam, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25298608&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;warmerdam@...&lt;/a&gt;
&lt;br&gt;light and sound - activate the windows | &lt;a href=&quot;http://pobox.com/~warmerdam&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pobox.com/~warmerdam&lt;/a&gt;&lt;br&gt;and watch the world go round - Rush &amp;nbsp; &amp;nbsp;| Geospatial Programmer for Rent
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25298608&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Shapelib-1.3.0-alpha-2-tp25298608p25298608.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25044229</id>
	<title>Re: Multipart polygon</title>
	<published>2009-08-19T06:35:49Z</published>
	<updated>2009-08-19T06:35:49Z</updated>
	<author>
		<name>murilodantas06</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;Could you send me your conversor code to I study it?
&lt;br&gt;I'm studing kml and i like understand the convertion from shapefile to kml file.
&lt;br&gt;&lt;br&gt;Thanks!!
&lt;br&gt;Murilo
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Daan64 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hello,
&lt;br&gt;&lt;br&gt;I am reading a polygon shapefile with shapelib and converting it to KML.
&lt;br&gt;My polygons are multi polygons with possible holes.
&lt;br&gt;&lt;br&gt;The SHPObject returns a list of vertices and a list of indexes pointing to the starting vertex of each part. With the direction of the vertices (clockwise or not) I determine weather a part is a hole or not.
&lt;br&gt;&lt;br&gt;I am not sure about the order of the parts. 
&lt;br&gt;&lt;br&gt;For example we have a multi polygon consisting of 2 polygons A_pol and B_pol with both a hole, respectively A_hole and B_hole.
&lt;br&gt;&lt;br&gt;The question is if the shapefile format guarantees that holes are always listed after the polygon they belong to. So the order would be either A_pol, A_hole, B_pol, B_hole or B_pol, B_hole, A_pol, A_hole
&lt;br&gt;&lt;br&gt;and not for example A_pol, B_hole, B_pol, A_hole or A_pol, &amp;nbsp;B_pol, A_hole, B_hole. 
&lt;br&gt;Because in the latter case I would need to check for each encountered hole to which polygon it belongs....
&lt;br&gt;&lt;br&gt;Thanks for any answers, Daan
&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multipart-polygon-tp19199820p25044229.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24903008</id>
	<title>Re: Character field longer than 255</title>
	<published>2009-08-10T09:26:22Z</published>
	<updated>2009-08-10T09:26:22Z</updated>
	<author>
		<name>Jérôme Cuinet</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;Since this afternoon, I have searched and I have find a more recent 
&lt;br&gt;shapefile library in gdal project. And in the gdal version, the character 
&lt;br&gt;field can be written with a length longer than 255, but it is read as it 
&lt;br&gt;have a length codded only on the first byte.
&lt;br&gt;&lt;br&gt;So, what's happenning ? What is the rule ? Why theses exceptions for 
&lt;br&gt;character fields ?
&lt;br&gt;&lt;br&gt;In &lt;a href=&quot;http://trac.osgeo.org/gdal/ticket/1202&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/gdal/ticket/1202&lt;/a&gt;&amp;nbsp;Frank W. said that there were a 
&lt;br&gt;fix in shapelib, but I don't see any release after 1.2.10 in april 2003. If 
&lt;br&gt;a more recent shapelib exists, where it is ?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;&lt;br&gt;Jérôme Cuinet
&lt;br&gt;----- Original Message ----- 
&lt;br&gt;From: &amp;quot;Jérôme Cuinet&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24903008&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jerome.cuinet@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24903008&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shapelib@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Monday, August 10, 2009 3:39 PM
&lt;br&gt;Subject: [Shapelib] Character field longer than 255
&lt;br&gt;&lt;br&gt;&lt;br&gt;Hello,
&lt;br&gt;&lt;br&gt;Contrary to Xbase (.dbf) File Format Description
&lt;br&gt;(&lt;a href=&quot;http://www.clicketyclick.dk/databases/xbase/format/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.clicketyclick.dk/databases/xbase/format/&lt;/a&gt;), with Shapefile
&lt;br&gt;library we can add to a .dbf file a character field with a length longer
&lt;br&gt;than 255 character. Is it an extension to dbf file format or an unique
&lt;br&gt;shapelib specification ?
&lt;br&gt;&lt;br&gt;I want to use this function, but I'm worried about compatibility with other
&lt;br&gt;shapefile drivers. Should I use these only for my program, or I could use
&lt;br&gt;these shapefiles with another programs ?
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Jérôme Cuinet
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24903008&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24903008&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Character-field-longer-than-255-tp24899992p24903008.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24899992</id>
	<title>Character field longer than 255</title>
	<published>2009-08-10T06:39:51Z</published>
	<updated>2009-08-10T06:39:51Z</updated>
	<author>
		<name>Jérôme Cuinet</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;Contrary to Xbase (.dbf) File Format Description 
&lt;br&gt;(&lt;a href=&quot;http://www.clicketyclick.dk/databases/xbase/format/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.clicketyclick.dk/databases/xbase/format/&lt;/a&gt;), with Shapefile 
&lt;br&gt;library we can add to a .dbf file a character field with a length longer 
&lt;br&gt;than 255 character. Is it an extension to dbf file format or an unique 
&lt;br&gt;shapelib specification ?
&lt;br&gt;&lt;br&gt;I want to use this function, but I'm worried about compatibility with other 
&lt;br&gt;shapefile drivers. Should I use these only for my program, or I could use 
&lt;br&gt;these shapefiles with another programs ?
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Jérôme Cuinet
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24899992&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Character-field-longer-than-255-tp24899992p24899992.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24761451</id>
	<title>shpproj help</title>
	<published>2009-07-31T11:54:28Z</published>
	<updated>2009-07-31T11:54:28Z</updated>
	<author>
		<name>Ken S. Elvehjem</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I have a set of shapefiles that are in what I have always been told are 
&lt;br&gt;&amp;quot;unprojected longitude &amp; latitude.&amp;quot;
&lt;br&gt;&lt;br&gt;X &amp; Y coordinates are in decimal degrees ( -92.5173861 x 42. 9431848) &amp;nbsp;with 
&lt;br&gt;a datum of WGS84
&lt;br&gt;&lt;br&gt;I am trying to use shpproj to convert these files to UTM Zone data (Zone 15, 
&lt;br&gt;in my example) for some further analysis.
&lt;br&gt;&lt;br&gt;The following don't work:
&lt;br&gt;&lt;br&gt;shpproj jack jackson-soils-UTM -i=geographic -o=&amp;quot;proj=utm zone=15 units=m&amp;quot;
&lt;br&gt;shpproj jack jackson-soils-UTM -o=&amp;quot;proj=utm zone=15 units=m&amp;quot;
&lt;br&gt;&lt;br&gt;The processis aborted with the note, &amp;quot;unable to process projection, exiting&amp;quot;
&lt;br&gt;&lt;br&gt;I suspect that some data files may be missing, but I have no way of figuring 
&lt;br&gt;that out.
&lt;br&gt;&lt;br&gt;BTW, the &amp;quot;proj&amp;quot; &amp;nbsp;directive &amp;quot;works&amp;quot; but doesn't give me any good clues 
&lt;br&gt;either.
&lt;br&gt;&lt;br&gt;Any suggestions would be greatly appreciated.
&lt;br&gt;&lt;br&gt;Ken
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24761451&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Creating-an-Arc-tp24688778p24761451.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24692069</id>
	<title>Re: Creating an Arc</title>
	<published>2009-07-27T20:47:38Z</published>
	<updated>2009-07-27T20:47:38Z</updated>
	<author>
		<name>Sling Blade</name>
	</author>
	<content type="html">&amp;gt;Scott,
&lt;br&gt;&lt;br&gt;&amp;gt;It is all part of GDAL/OGR (&lt;a href=&quot;http://www.gdal.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gdal.org&lt;/a&gt;).
&lt;br&gt;&lt;br&gt;&amp;gt;But since the code is not written in terms of SHPObject you are going to
&lt;br&gt;&amp;gt;have
&lt;br&gt;&amp;gt;to do a bunch of restructuring. &amp;nbsp;So best to treat this code as an example
&lt;br&gt;&amp;gt;and
&lt;br&gt;&amp;gt;avoid dragging in the actual classes references.
&lt;br&gt;&lt;br&gt;&lt;br&gt;I'll go over it and see how far I get. 
&lt;br&gt;&lt;br&gt;I was hoping this was a common question with an obvious answer :-)
&lt;br&gt;&lt;br&gt;Thanks again Frank you've been a huge help!
&lt;br&gt;&lt;br&gt;&lt;br&gt;Regards, 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24692069&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shapelib-bounces@...&lt;/a&gt;
&lt;br&gt;[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24692069&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shapelib-bounces@...&lt;/a&gt;] On Behalf Of Frank Warmerdam
&lt;br&gt;Sent: Tuesday, July 28, 2009 3:31 PM
&lt;br&gt;To: Shapelib Development
&lt;br&gt;Subject: Re: [Shapelib] Creating an Arc
&lt;br&gt;&lt;br&gt;Scott Ferguson wrote:
&lt;br&gt;&amp;gt; Thanks Frank!
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I could make better sense of it if I could see the includes too, or at
&lt;br&gt;least
&lt;br&gt;&amp;gt; see the OGRLineString class.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Would it be possible for you to post them, or you could email them
&lt;br&gt;directly
&lt;br&gt;&amp;gt; to me if that is preferred?
&lt;br&gt;&lt;br&gt;Scott,
&lt;br&gt;&lt;br&gt;It is all part of GDAL/OGR (&lt;a href=&quot;http://www.gdal.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gdal.org&lt;/a&gt;).
&lt;br&gt;&lt;br&gt;But since the code is not written in terms of SHPObject you are going to
&lt;br&gt;have
&lt;br&gt;to do a bunch of restructuring. &amp;nbsp;So best to treat this code as an example
&lt;br&gt;and
&lt;br&gt;avoid dragging in the actual classes references.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;-- 
&lt;br&gt;---------------------------------------+------------------------------------
&lt;br&gt;--
&lt;br&gt;I set the clouds in motion - turn up &amp;nbsp; | Frank Warmerdam,
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24692069&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;warmerdam@...&lt;/a&gt;
&lt;br&gt;light and sound - activate the windows | &lt;a href=&quot;http://pobox.com/~warmerdam&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pobox.com/~warmerdam&lt;/a&gt;&lt;br&gt;and watch the world go round - Rush &amp;nbsp; &amp;nbsp;| Geospatial Programmer for Rent
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24692069&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24692069&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Creating-an-Arc-tp24688778p24692069.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24691999</id>
	<title>Re: Creating an Arc</title>
	<published>2009-07-27T20:30:59Z</published>
	<updated>2009-07-27T20:30:59Z</updated>
	<author>
		<name>Frank Warmerdam-2</name>
	</author>
	<content type="html">Scott Ferguson wrote:
&lt;br&gt;&amp;gt; Thanks Frank!
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I could make better sense of it if I could see the includes too, or at least
&lt;br&gt;&amp;gt; see the OGRLineString class.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Would it be possible for you to post them, or you could email them directly
&lt;br&gt;&amp;gt; to me if that is preferred?
&lt;br&gt;&lt;br&gt;Scott,
&lt;br&gt;&lt;br&gt;It is all part of GDAL/OGR (&lt;a href=&quot;http://www.gdal.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gdal.org&lt;/a&gt;).
&lt;br&gt;&lt;br&gt;But since the code is not written in terms of SHPObject you are going to have
&lt;br&gt;to do a bunch of restructuring. &amp;nbsp;So best to treat this code as an example and
&lt;br&gt;avoid dragging in the actual classes references.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;-- 
&lt;br&gt;---------------------------------------+--------------------------------------
&lt;br&gt;I set the clouds in motion - turn up &amp;nbsp; | Frank Warmerdam, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24691999&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;warmerdam@...&lt;/a&gt;
&lt;br&gt;light and sound - activate the windows | &lt;a href=&quot;http://pobox.com/~warmerdam&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pobox.com/~warmerdam&lt;/a&gt;&lt;br&gt;and watch the world go round - Rush &amp;nbsp; &amp;nbsp;| Geospatial Programmer for Rent
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24691999&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Creating-an-Arc-tp24688778p24691999.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24691909</id>
	<title>Re: Creating an Arc</title>
	<published>2009-07-27T20:26:51Z</published>
	<updated>2009-07-27T20:26:51Z</updated>
	<author>
		<name>Sling Blade</name>
	</author>
	<content type="html">Thanks Frank!
&lt;br&gt;&lt;br&gt;I could make better sense of it if I could see the includes too, or at least
&lt;br&gt;see the OGRLineString class.
&lt;br&gt;&lt;br&gt;Would it be possible for you to post them, or you could email them directly
&lt;br&gt;to me if that is preferred?
&lt;br&gt;&lt;br&gt;Thanks again for your help
&lt;br&gt;&lt;br&gt;Regards, 
&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24691909&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shapelib-bounces@...&lt;/a&gt;
&lt;br&gt;[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24691909&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shapelib-bounces@...&lt;/a&gt;] On Behalf Of Frank Warmerdam
&lt;br&gt;Sent: Tuesday, July 28, 2009 2:36 PM
&lt;br&gt;To: Shapelib Development
&lt;br&gt;Subject: Re: [Shapelib] Creating an Arc
&lt;br&gt;&lt;br&gt;Sling Blade wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You are correct that shapefiles cannot store curved arcs. &amp;nbsp;The normal
&lt;br&gt;&amp;gt; technique is to approximate them as polylines.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What would be great would be to learn how to approximate an Arc with
&lt;br&gt;&amp;gt; Polylines. Do you have any code showing how this is done?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&lt;br&gt;Sling,
&lt;br&gt;&lt;br&gt;There is some example code for converting arcs to polylines in:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &lt;a href=&quot;http://svn.osgeo.org/gdal/trunk/gdal/ogr/ogrsf_frmts/oci/ogrocistroke.cpp&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.osgeo.org/gdal/trunk/gdal/ogr/ogrsf_frmts/oci/ogrocistroke.cpp&lt;/a&gt;&lt;br&gt;&lt;br&gt;A lot depends on how your arcs are defined.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;-- 
&lt;br&gt;---------------------------------------+------------------------------------
&lt;br&gt;--
&lt;br&gt;I set the clouds in motion - turn up &amp;nbsp; | Frank Warmerdam,
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24691909&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;warmerdam@...&lt;/a&gt;
&lt;br&gt;light and sound - activate the windows | &lt;a href=&quot;http://pobox.com/~warmerdam&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pobox.com/~warmerdam&lt;/a&gt;&lt;br&gt;and watch the world go round - Rush &amp;nbsp; &amp;nbsp;| Geospatial Programmer for Rent
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24691909&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24691909&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Creating-an-Arc-tp24688778p24691909.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24691610</id>
	<title>Re: Creating an Arc</title>
	<published>2009-07-27T19:36:02Z</published>
	<updated>2009-07-27T19:36:02Z</updated>
	<author>
		<name>Frank Warmerdam-2</name>
	</author>
	<content type="html">Sling Blade wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You are correct that shapefiles cannot store curved arcs. &amp;nbsp;The normal
&lt;br&gt;&amp;gt; technique is to approximate them as polylines.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What would be great would be to learn how to approximate an Arc with
&lt;br&gt;&amp;gt; Polylines. Do you have any code showing how this is done?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&lt;br&gt;Sling,
&lt;br&gt;&lt;br&gt;There is some example code for converting arcs to polylines in:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &lt;a href=&quot;http://svn.osgeo.org/gdal/trunk/gdal/ogr/ogrsf_frmts/oci/ogrocistroke.cpp&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.osgeo.org/gdal/trunk/gdal/ogr/ogrsf_frmts/oci/ogrocistroke.cpp&lt;/a&gt;&lt;br&gt;&lt;br&gt;A lot depends on how your arcs are defined.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;-- 
&lt;br&gt;---------------------------------------+--------------------------------------
&lt;br&gt;I set the clouds in motion - turn up &amp;nbsp; | Frank Warmerdam, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24691610&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;warmerdam@...&lt;/a&gt;
&lt;br&gt;light and sound - activate the windows | &lt;a href=&quot;http://pobox.com/~warmerdam&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pobox.com/~warmerdam&lt;/a&gt;&lt;br&gt;and watch the world go round - Rush &amp;nbsp; &amp;nbsp;| Geospatial Programmer for Rent
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24691610&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Creating-an-Arc-tp24688778p24691610.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24691011</id>
	<title>Re: Creating an Arc</title>
	<published>2009-07-27T18:16:42Z</published>
	<updated>2009-07-27T18:16:42Z</updated>
	<author>
		<name>Sling Blade</name>
	</author>
	<content type="html">&lt;br&gt;You are correct that shapefiles cannot store curved arcs. &amp;nbsp;The normal
&lt;br&gt;technique is to approximate them as polylines.
&lt;br&gt;&lt;br&gt;&lt;br&gt;What would be great would be to learn how to approximate an Arc with Polylines. Do you have any code showing how this is done?
&lt;br&gt;&lt;br&gt;Regards</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Creating-an-Arc-tp24688778p24691011.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24690743</id>
	<title>Re: Creating an Arc</title>
	<published>2009-07-27T17:43:40Z</published>
	<updated>2009-07-27T17:43:40Z</updated>
	<author>
		<name>Frank Warmerdam-2</name>
	</author>
	<content type="html">Scott Ferguson wrote:
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I need to create an Arc in a shape file. Is this possible using shapelib? My
&lt;br&gt;&amp;gt; understanding is that only points, polylines and polygons can be created so
&lt;br&gt;&amp;gt; what I probably need is a way to convert an Arc to a collection of
&lt;br&gt;&amp;gt; Polylines, is that correct?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; Does any one have an example of creating Arcs they can share with me?
&lt;br&gt;&lt;br&gt;Scott,
&lt;br&gt;&lt;br&gt;You are correct that shapefiles cannot store curved arcs. &amp;nbsp;The normal
&lt;br&gt;technique is to approximate them as polylines.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;-- 
&lt;br&gt;---------------------------------------+--------------------------------------
&lt;br&gt;I set the clouds in motion - turn up &amp;nbsp; | Frank Warmerdam, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24690743&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;warmerdam@...&lt;/a&gt;
&lt;br&gt;light and sound - activate the windows | &lt;a href=&quot;http://pobox.com/~warmerdam&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pobox.com/~warmerdam&lt;/a&gt;&lt;br&gt;and watch the world go round - Rush &amp;nbsp; &amp;nbsp;| Geospatial Programmer for Rent
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24690743&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Creating-an-Arc-tp24688778p24690743.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24688778</id>
	<title>Creating an Arc</title>
	<published>2009-07-27T14:40:18Z</published>
	<updated>2009-07-27T14:40:18Z</updated>
	<author>
		<name>Sling Blade</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I need to create an Arc in a shape file. Is this possible using shapelib? My
&lt;br&gt;understanding is that only points, polylines and polygons can be created so
&lt;br&gt;what I probably need is a way to convert an Arc to a collection of
&lt;br&gt;Polylines, is that correct?
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;Does any one have an example of creating Arcs they can share with me?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24688778&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Creating-an-Arc-tp24688778p24688778.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24138066</id>
	<title>Re: Including shapelib.dll in Visual C++ 2008 Express project</title>
	<published>2009-06-21T12:44:37Z</published>
	<updated>2009-06-21T12:44:37Z</updated>
	<author>
		<name>raphael_mws</name>
	</author>
	<content type="html">&lt;br&gt;Hi Sanak,
&lt;br&gt;&lt;br&gt;thank you very much, your example builds also in my environment. This helps a lot.
&lt;br&gt;&lt;br&gt;Enjoy the rest of the sunday,
&lt;br&gt;regards
&lt;br&gt;Raphael
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Sanak wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi Raphael,
&lt;br&gt;&lt;br&gt;I think that Dllimport definition and re-definition of shapelib api are not
&lt;br&gt;necessary,
&lt;br&gt;but I don't know what is the cause...
&lt;br&gt;&lt;br&gt;So, please refer the attach file (includes shapelib and shapelib-api call
&lt;br&gt;sample(copy from shpcreate.c), and both build successfully in my
&lt;br&gt;environment).
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Sanak.
&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Including-shapelib.dll-in-Visual-C%2B%2B-2008-Express-project-tp24132517p24138066.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24137479</id>
	<title>Re: Including shapelib.dll in Visual C++ 2008 Express project</title>
	<published>2009-06-21T11:43:09Z</published>
	<updated>2009-06-21T11:43:09Z</updated>
	<author>
		<name>Sanak</name>
	</author>
	<content type="html">Hi Raphael,&lt;br&gt;&lt;br&gt;I think that Dllimport definition and re-definition of shapelib api are not necessary,&lt;br&gt;but I don&amp;#39;t know what is the cause...&lt;br&gt;&lt;br&gt;So, please refer the attach file (includes shapelib and shapelib-api call sample(copy from shpcreate.c), and both build successfully in my environment).&lt;br&gt;
&lt;br&gt;Regards,&lt;br&gt;&lt;br&gt;Sanak.&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/6/22 raphael_mws &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24137479&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;r.speck@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;
Hi Sanak,&lt;br&gt;
&lt;br&gt;
thanks for the answer. I tried what you told me and rebuilt the shapelib&lt;br&gt;
project with the new C/C++ preprocessor commands, but it didn&amp;#39;t change&lt;br&gt;
anything.&lt;br&gt;
&lt;br&gt;
I think I am doing something wrong when accessing the DLL functions. This is&lt;br&gt;
a short sample code:&lt;br&gt;
&lt;br&gt;
&amp;lt;start&amp;gt;&lt;br&gt;
#define DllImport __declspec( dllimport )&lt;br&gt;
#include &amp;lt;iostream&amp;gt;&lt;br&gt;
#include &amp;quot;stdafx.h&amp;quot;&lt;br&gt;
#include &amp;quot;D:\Visual Studio 2008\Projects\Shapelib-1_2_10-mod\shapefil.h&amp;quot;&lt;br&gt;
using namespace std;&lt;br&gt;
&lt;br&gt;
DllImport SHPHandle SHPAPI_CALL SHPOpen();&lt;br&gt;
&lt;br&gt;
int _tmain(int argc, _TCHAR* argv[])&lt;br&gt;
{&lt;br&gt;
        SHPHandle testhandle;   //this works - the compiler finds shapefil.h&lt;br&gt;
        SHPOpen(&amp;quot;test&amp;quot;,&amp;quot;test&amp;quot;);  //this produces the error&lt;br&gt;
&lt;br&gt;
        return 0;&lt;br&gt;
}&lt;br&gt;
&amp;lt;end&amp;gt;&lt;br&gt;
&lt;br&gt;
This is the compiler output:&lt;br&gt;
&lt;br&gt;
1&amp;gt;Verknüpfen... 1&amp;gt;ShapefileCreator.obj : error LNK2019: Verweis auf nicht&lt;br&gt;
aufgelöstes externes Symbol &amp;quot;_SHPOpen&amp;quot; in Funktion &amp;quot;_wmain&amp;quot;. 1&amp;gt;D:\Visual&lt;br&gt;
Studio&lt;br&gt;
2008\Projects\ShapefileCreator\ShapefileCreator\Debug\ShapefileCreator.exe :&lt;br&gt;
fatal error LNK1120: 1 nicht aufgelöste externe Verweise.&lt;br&gt;
&lt;br&gt;
The same as before.&lt;br&gt;
&lt;br&gt;
I added the path to the DLL/LIB file in the Linker section of the VC&lt;br&gt;
property page of my project and to the general search paths. This should be&lt;br&gt;
sufficient, or not?&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
Raphael&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Sanak wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Hi Raphael,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; It seems that the original Visual C++ shapelib project preprocessor&lt;br&gt;
&amp;gt; definitions are invalid. (generated shapelib.lib and shapelib.dll symbols&lt;br&gt;
&amp;gt; are incompatible)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Please try as follows,&lt;br&gt;
&amp;gt; 1. modify shapelib project C/C++ preprocessor definition from VC property&lt;br&gt;
&amp;gt; page&lt;br&gt;
&amp;gt;    SHPAPI_CALL=__stdcall&lt;br&gt;
&amp;gt;      --&amp;gt; SHAPELIB_DLLEXPORT&lt;br&gt;
&amp;gt; 2. modify each source files(dbfopen.c/shpopen.c/shptree.c) C/C++&lt;br&gt;
&amp;gt; preprocessor definition from VC property page&lt;br&gt;
&amp;gt;   SHAPELIB_EXPORTS;SHPAPI_CALL=__stdcall;$(NoInherit)&lt;br&gt;
&amp;gt;      --&amp;gt; SHAPELIB_DLLEXPORT&lt;br&gt;
&amp;gt; 3. rebuild shapelib project.&lt;br&gt;
&amp;gt; 4. import generated shapelib.lib to your project and build.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Regards,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Sanak.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; 2009/6/21 raphael_mws &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24137479&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;r.speck@...&lt;/a&gt;&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Hi folks,&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; I am having a real hard time including the shapelib.dll in my VC++ 2008&lt;br&gt;
&amp;gt;&amp;gt; project. I did the following:&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; - recompile the Visual C++ shapelib project from&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://dl.maptools.org/dl/shapelib/contrib/DotNetArchive.zip&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://dl.maptools.org/dl/shapelib/contrib/DotNetArchive.zip&lt;/a&gt;. This worked&lt;br&gt;
&amp;gt;&amp;gt; fine, and I got the output dll and lib files.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; - include the shapefil.h in my .cpp file successfully&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; - tried various possibilities to get the shapelib.dll in the correct&lt;br&gt;
&amp;gt;&amp;gt; PATH.&lt;br&gt;
&amp;gt;&amp;gt; Actually, it should be found by the compiler, I even tried putting it&lt;br&gt;
&amp;gt;&amp;gt; into&lt;br&gt;
&amp;gt;&amp;gt; C:\WINDOWS\system32 to make sure that&amp;#39;s not the problem.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; - experimented with various combinations of __declspec( dllimport ) to&lt;br&gt;
&amp;gt;&amp;gt; import the functions from the dll&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; When I try to compile, I always get the following error:&lt;br&gt;
&amp;gt;&amp;gt; &amp;quot;error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &amp;quot;_SHPOpen&amp;quot;&lt;br&gt;
&amp;gt;&amp;gt; in&lt;br&gt;
&amp;gt;&amp;gt; Funktion &amp;quot;_wmain&amp;quot;.&amp;quot;&lt;br&gt;
&amp;gt;&amp;gt; (in English: unreferenced extern symbol &amp;quot;... )&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Can anybody please give me a hint what I might be doing wrong? Or, even&lt;br&gt;
&amp;gt;&amp;gt; better, send me a sample VC project using shapelib.dll?&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Thanks and kind regards,&lt;br&gt;
&amp;gt;&amp;gt; Raphael&lt;br&gt;
&amp;gt;&amp;gt; --&lt;br&gt;
&amp;gt;&amp;gt; View this message in context:&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/Including-shapelib.dll-in-Visual-C%2B%2B-2008-Express-project-tp24132517p24132517.html&quot; target=&quot;_blank&quot;&gt;http://www.nabble.com/Including-shapelib.dll-in-Visual-C%2B%2B-2008-Express-project-tp24132517p24132517.html&lt;/a&gt;&lt;br&gt;

&amp;gt;&amp;gt; Sent from the ShapeLib mailing list archive at Nabble.com.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt;&amp;gt; Shapelib mailing list&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24137479&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt; Shapelib mailing list&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24137479&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;font color=&quot;#888888&quot;&gt;--&lt;br&gt;
View this message in context: &lt;a href=&quot;http://www.nabble.com/Including-shapelib.dll-in-Visual-C%2B%2B-2008-Express-project-tp24132517p24136300.html&quot; target=&quot;_blank&quot;&gt;http://www.nabble.com/Including-shapelib.dll-in-Visual-C%2B%2B-2008-Express-project-tp24132517p24136300.html&lt;/a&gt;&lt;br&gt;

&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;Sent from the ShapeLib mailing list archive at Nabble.com.&lt;br&gt;
&lt;br&gt;
_______________________________________________&lt;br&gt;
Shapelib mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24137479&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24137479&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;shapelib_sample.zip&lt;/strong&gt; (52K) &lt;a href=&quot;http://old.nabble.com/attachment/24137479/0/shapelib_sample.zip&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Including-shapelib.dll-in-Visual-C%2B%2B-2008-Express-project-tp24132517p24137479.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24136300</id>
	<title>Re: Including shapelib.dll in Visual C++ 2008 Express project</title>
	<published>2009-06-21T09:44:43Z</published>
	<updated>2009-06-21T09:44:43Z</updated>
	<author>
		<name>raphael_mws</name>
	</author>
	<content type="html">Hi Sanak,
&lt;br&gt;&lt;br&gt;thanks for the answer. I tried what you told me and rebuilt the shapelib project with the new C/C++ preprocessor commands, but it didn't change anything.
&lt;br&gt;&lt;br&gt;I think I am doing something wrong when accessing the DLL functions. This is a short sample code:
&lt;br&gt;&lt;br&gt;&amp;lt;start&amp;gt;
&lt;br&gt;#define DllImport __declspec( dllimport )
&lt;br&gt;#include &amp;lt;iostream&amp;gt;
&lt;br&gt;#include &amp;quot;stdafx.h&amp;quot;
&lt;br&gt;#include &amp;quot;D:\Visual Studio 2008\Projects\Shapelib-1_2_10-mod\shapefil.h&amp;quot;
&lt;br&gt;using namespace std;
&lt;br&gt;&lt;br&gt;DllImport SHPHandle SHPAPI_CALL SHPOpen();
&lt;br&gt;&lt;br&gt;int _tmain(int argc, _TCHAR* argv[])
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SHPHandle testhandle; &amp;nbsp; //this works - the compiler finds shapefil.h
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SHPOpen(&amp;quot;test&amp;quot;,&amp;quot;test&amp;quot;);	 //this produces the error
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 0;
&lt;br&gt;}
&lt;br&gt;&amp;lt;end&amp;gt;
&lt;br&gt;&lt;br&gt;This is the compiler output:
&lt;br&gt;&lt;br&gt;1&amp;gt;Verknüpfen... 1&amp;gt;ShapefileCreator.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &amp;quot;_SHPOpen&amp;quot; in Funktion &amp;quot;_wmain&amp;quot;. 1&amp;gt;D:\Visual Studio 2008\Projects\ShapefileCreator\ShapefileCreator\Debug\ShapefileCreator.exe : fatal error LNK1120: 1 nicht aufgelöste externe Verweise.
&lt;br&gt;&lt;br&gt;The same as before.
&lt;br&gt;&lt;br&gt;I added the path to the DLL/LIB file in the Linker section of the VC property page of my project and to the general search paths. This should be sufficient, or not?
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Raphael
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Sanak wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi Raphael,
&lt;br&gt;&lt;br&gt;It seems that the original Visual C++ shapelib project preprocessor
&lt;br&gt;definitions are invalid. (generated shapelib.lib and shapelib.dll symbols
&lt;br&gt;are incompatible)
&lt;br&gt;&lt;br&gt;Please try as follows,
&lt;br&gt;1. modify shapelib project C/C++ preprocessor definition from VC property
&lt;br&gt;page
&lt;br&gt;&amp;nbsp; &amp;nbsp;SHPAPI_CALL=__stdcall
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;--&amp;gt; SHAPELIB_DLLEXPORT
&lt;br&gt;2. modify each source files(dbfopen.c/shpopen.c/shptree.c) C/C++
&lt;br&gt;preprocessor definition from VC property page
&lt;br&gt;&amp;nbsp; SHAPELIB_EXPORTS;SHPAPI_CALL=__stdcall;$(NoInherit)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;--&amp;gt; SHAPELIB_DLLEXPORT
&lt;br&gt;3. rebuild shapelib project.
&lt;br&gt;4. import generated shapelib.lib to your project and build.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Sanak.
&lt;br&gt;&lt;br&gt;2009/6/21 raphael_mws &amp;lt;r.speck@minewolf.com&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi folks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am having a real hard time including the shapelib.dll in my VC++ 2008
&lt;br&gt;&amp;gt; project. I did the following:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - recompile the Visual C++ shapelib project from
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://dl.maptools.org/dl/shapelib/contrib/DotNetArchive.zip&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dl.maptools.org/dl/shapelib/contrib/DotNetArchive.zip&lt;/a&gt;. This worked
&lt;br&gt;&amp;gt; fine, and I got the output dll and lib files.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - include the shapefil.h in my .cpp file successfully
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - tried various possibilities to get the shapelib.dll in the correct PATH.
&lt;br&gt;&amp;gt; Actually, it should be found by the compiler, I even tried putting it into
&lt;br&gt;&amp;gt; C:\WINDOWS\system32 to make sure that's not the problem.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - experimented with various combinations of __declspec( dllimport ) to
&lt;br&gt;&amp;gt; import the functions from the dll
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When I try to compile, I always get the following error:
&lt;br&gt;&amp;gt; &amp;quot;error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &amp;quot;_SHPOpen&amp;quot; in
&lt;br&gt;&amp;gt; Funktion &amp;quot;_wmain&amp;quot;.&amp;quot;
&lt;br&gt;&amp;gt; (in English: unreferenced extern symbol &amp;quot;... )
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Can anybody please give me a hint what I might be doing wrong? Or, even
&lt;br&gt;&amp;gt; better, send me a sample VC project using shapelib.dll?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks and kind regards,
&lt;br&gt;&amp;gt; Raphael
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/Including-shapelib.dll-in-Visual-C%2B%2B-2008-Express-project-tp24132517p24132517.html&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/Including-shapelib.dll-in-Visual-C%2B%2B-2008-Express-project-tp24132517p24132517.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the ShapeLib mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Shapelib mailing list
&lt;br&gt;&amp;gt; Shapelib@lists.maptools.org
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;Shapelib@lists.maptools.org
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Including-shapelib.dll-in-Visual-C%2B%2B-2008-Express-project-tp24132517p24136300.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24134143</id>
	<title>Re: Including shapelib.dll in Visual C++ 2008 Express project</title>
	<published>2009-06-21T05:42:43Z</published>
	<updated>2009-06-21T05:42:43Z</updated>
	<author>
		<name>Sanak</name>
	</author>
	<content type="html">Hi Raphael,&lt;br&gt;&lt;br&gt;It seems that the original Visual C++ shapelib project preprocessor definitions are invalid. (generated shapelib.lib and shapelib.dll symbols are incompatible)&lt;br&gt;&lt;br&gt;Please try as follows,&lt;br&gt;1. modify shapelib project C/C++ preprocessor definition from VC property page&lt;br&gt;
   SHPAPI_CALL=__stdcall&lt;br&gt;     --&amp;gt; SHAPELIB_DLLEXPORT&lt;br&gt;2. modify each source files(dbfopen.c/shpopen.c/shptree.c) C/C++ preprocessor definition from VC property page&lt;br&gt;  SHAPELIB_EXPORTS;SHPAPI_CALL=__stdcall;$(NoInherit)&lt;br&gt;
     --&amp;gt; SHAPELIB_DLLEXPORT&lt;br&gt;3. rebuild shapelib project.&lt;br&gt;4. import generated shapelib.lib to your project and build.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;&lt;br&gt;Sanak.&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/6/21 raphael_mws &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24134143&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;r.speck@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;br&gt;
Hi folks,&lt;br&gt;
&lt;br&gt;
I am having a real hard time including the shapelib.dll in my VC++ 2008&lt;br&gt;
project. I did the following:&lt;br&gt;
&lt;br&gt;
- recompile the Visual C++ shapelib project from&lt;br&gt;
&lt;a href=&quot;http://dl.maptools.org/dl/shapelib/contrib/DotNetArchive.zip&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://dl.maptools.org/dl/shapelib/contrib/DotNetArchive.zip&lt;/a&gt;. This worked&lt;br&gt;
fine, and I got the output dll and lib files.&lt;br&gt;
&lt;br&gt;
- include the shapefil.h in my .cpp file successfully&lt;br&gt;
&lt;br&gt;
- tried various possibilities to get the shapelib.dll in the correct PATH.&lt;br&gt;
Actually, it should be found by the compiler, I even tried putting it into&lt;br&gt;
C:\WINDOWS\system32 to make sure that&amp;#39;s not the problem.&lt;br&gt;
&lt;br&gt;
- experimented with various combinations of __declspec( dllimport ) to&lt;br&gt;
import the functions from the dll&lt;br&gt;
&lt;br&gt;
When I try to compile, I always get the following error:&lt;br&gt;
&amp;quot;error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &amp;quot;_SHPOpen&amp;quot; in&lt;br&gt;
Funktion &amp;quot;_wmain&amp;quot;.&amp;quot;&lt;br&gt;
(in English: unreferenced extern symbol &amp;quot;... )&lt;br&gt;
&lt;br&gt;
Can anybody please give me a hint what I might be doing wrong? Or, even&lt;br&gt;
better, send me a sample VC project using shapelib.dll?&lt;br&gt;
&lt;br&gt;
Thanks and kind regards,&lt;br&gt;
Raphael&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;--&lt;br&gt;
View this message in context: &lt;a href=&quot;http://www.nabble.com/Including-shapelib.dll-in-Visual-C%2B%2B-2008-Express-project-tp24132517p24132517.html&quot; target=&quot;_blank&quot;&gt;http://www.nabble.com/Including-shapelib.dll-in-Visual-C%2B%2B-2008-Express-project-tp24132517p24132517.html&lt;/a&gt;&lt;br&gt;

Sent from the ShapeLib mailing list archive at Nabble.com.&lt;br&gt;
&lt;br&gt;
_______________________________________________&lt;br&gt;
Shapelib mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24134143&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24134143&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Including-shapelib.dll-in-Visual-C%2B%2B-2008-Express-project-tp24132517p24134143.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24132517</id>
	<title>Including shapelib.dll in Visual C++ 2008 Express project</title>
	<published>2009-06-21T01:38:34Z</published>
	<updated>2009-06-21T01:38:34Z</updated>
	<author>
		<name>raphael_mws</name>
	</author>
	<content type="html">Hi folks,
&lt;br&gt;&lt;br&gt;I am having a real hard time including the shapelib.dll in my VC++ 2008 project. I did the following:
&lt;br&gt;&lt;br&gt;- recompile the Visual C++ shapelib project from &lt;a href=&quot;http://dl.maptools.org/dl/shapelib/contrib/DotNetArchive.zip&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dl.maptools.org/dl/shapelib/contrib/DotNetArchive.zip&lt;/a&gt;. This worked fine, and I got the output dll and lib files.
&lt;br&gt;&lt;br&gt;- include the shapefil.h in my .cpp file successfully
&lt;br&gt;&lt;br&gt;- tried various possibilities to get the shapelib.dll in the correct PATH. Actually, it should be found by the compiler, I even tried putting it into C:\WINDOWS\system32 to make sure that's not the problem.
&lt;br&gt;&lt;br&gt;- experimented with various combinations of __declspec( dllimport ) to import the functions from the dll
&lt;br&gt;&lt;br&gt;When I try to compile, I always get the following error: 
&lt;br&gt;&amp;quot;error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &amp;quot;_SHPOpen&amp;quot; in Funktion &amp;quot;_wmain&amp;quot;.&amp;quot;
&lt;br&gt;(in English: unreferenced extern symbol &amp;quot;... )
&lt;br&gt;&lt;br&gt;Can anybody please give me a hint what I might be doing wrong? Or, even better, send me a sample VC project using shapelib.dll?
&lt;br&gt;&lt;br&gt;Thanks and kind regards,
&lt;br&gt;Raphael</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Including-shapelib.dll-in-Visual-C%2B%2B-2008-Express-project-tp24132517p24132517.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24035558</id>
	<title>Hosam ZAWIA is out of the office.</title>
	<published>2009-06-15T07:01:37Z</published>
	<updated>2009-06-15T07:01:37Z</updated>
	<author>
		<name>Hosam ZAWIA</name>
	</author>
	<content type="html">&lt;html&gt;&lt;body&gt;
&lt;p&gt;I will be out of the office starting  14/06/2009 and will not return until 22/06/2009.&lt;br&gt;
&lt;br&gt;
I will respond to your message when I return.&lt;/body&gt;&lt;/html&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24035558&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hosam-ZAWIA-is-out-of-the-office.-tp24035558p24035558.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24032135</id>
	<title>Nearest lines for points.</title>
	<published>2009-06-15T02:54:40Z</published>
	<updated>2009-06-15T02:54:40Z</updated>
	<author>
		<name>Juan Antonio Pastor</name>
	</author>
	<content type="html">&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;&lt;meta name=&quot;ProgId&quot; content=&quot;Word.Document&quot;&gt;&lt;meta name=&quot;Generator&quot; content=&quot;Microsoft Word 12&quot;&gt;&lt;meta name=&quot;Originator&quot; content=&quot;Microsoft Word 12&quot;&gt;&lt;link rel=&quot;File-List&quot; href=&quot;file:///C:%5CUsers%5CRCT4353%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml&quot;&gt;&lt;link rel=&quot;themeData&quot; href=&quot;file:///C:%5CUsers%5CRCT4353%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx&quot;&gt;&lt;link rel=&quot;colorSchemeMapping&quot; href=&quot;file:///C:%5CUsers%5CRCT4353%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml&quot;&gt;&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;&lt;meta name=&quot;ProgId&quot; content=&quot;Word.Document&quot;&gt;&lt;meta name=&quot;Generator&quot; content=&quot;Microsoft Word 12&quot;&gt;&lt;meta name=&quot;Originator&quot; content=&quot;Microsoft Word 12&quot;&gt;&lt;link rel=&quot;File-List&quot; href=&quot;file:///C:%5CUsers%5CRCT4353%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml&quot;&gt;&lt;link rel=&quot;themeData&quot; href=&quot;file:///C:%5CUsers%5CRCT4353%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx&quot;&gt;&lt;link rel=&quot;colorSchemeMapping&quot; href=&quot;file:///C:%5CUsers%5CRCT4353%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml&quot;&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;&quot; lang=&quot;EN-US&quot;&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;&quot; lang=&quot;EN-US&quot;&gt;Hi!&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;&quot; lang=&quot;EN-US&quot;&gt;I have some
line shapes and one points shape and I need to find the nearest line from each
point. To make that I want use the SHPTree library but I have some questions:&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;&quot; lang=&quot;EN-US&quot;&gt;1.- Do I
need to compute the bounding box of all line shapes to create the SHPTree
object?&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;&quot; lang=&quot;EN-US&quot;&gt;2.- Do I
need to read all objects of each line shape, find it in the tree and save his
objects into &lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 35.4pt;&quot;&gt;&lt;span style=&quot;&quot; lang=&quot;EN-US&quot;&gt;SHPTreeNode-&amp;gt;papsShapeObj&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;matrix?&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;&quot; lang=&quot;EN-US&quot;&gt;3.- If I
need to do that: do you have some example?&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;&quot; lang=&quot;EN-US&quot;&gt; &lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;&quot; lang=&quot;EN-US&quot;&gt;Thanks in
advance!!&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;&quot; lang=&quot;EN-US&quot;&gt;&lt;/span&gt;&lt;/p&gt;

&lt;br /&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24032135&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nearest-lines-for-points.-tp24032135p24032135.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23617817</id>
	<title>Re: Delete or hide Shape from Shapefile</title>
	<published>2009-05-19T07:31:42Z</published>
	<updated>2009-05-19T07:31:42Z</updated>
	<author>
		<name>Jelmer Baas</name>
	</author>
	<content type="html">Fantastic, that fixed the crash. 
&lt;br&gt;&lt;br&gt;Thanks again :)
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Jelmer Baas
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23617817&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shapelib-bounces@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23617817&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shapelib-bounces@...&lt;/a&gt;] On Behalf Of 
&lt;br&gt;&amp;gt; Frank Warmerdam
&lt;br&gt;&amp;gt; Sent: dinsdag 19 mei 2009 15:49
&lt;br&gt;&amp;gt; To: Shapelib Development
&lt;br&gt;&amp;gt; Subject: Re: [Shapelib] Delete or hide Shape from Shapefile
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Jelmer Baas wrote:
&lt;br&gt;&amp;gt; &amp;gt; The following code freezes my application:
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; Dim intShapeFile As Integer, intEntities As Integer, 
&lt;br&gt;&amp;gt; objShapeType As
&lt;br&gt;&amp;gt; &amp;gt; MapTools.ShapeLib.ShapeType
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; Dim minB(2) As Double, maxB(2) As Double
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; intShapeFile = SHPOpen(&amp;quot;C:\test\test.shp&amp;quot;, &amp;quot;rb+&amp;quot;)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; SHPGetInfo(intShapeFile, intEntities, objShapeType, minB, maxB)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; SHPClose(intShapeFile)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; System.GC.Collect()
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I tried a different shape file, same problem. MapServer can properly
&lt;br&gt;&amp;gt; &amp;gt; draw the shapes, so 
&lt;br&gt;&amp;gt; &amp;gt; I think it's a valid file, too. There's no way to recover 
&lt;br&gt;&amp;gt; except kill
&lt;br&gt;&amp;gt; &amp;gt; the application.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Well, wouldn't you know. While typing this I had another 
&lt;br&gt;&amp;gt; idea: to skip
&lt;br&gt;&amp;gt; &amp;gt; SHPGetInfo, and that 
&lt;br&gt;&amp;gt; &amp;gt; does the trick. Question remains: why does SHPGetInfo crash 
&lt;br&gt;&amp;gt; the app when
&lt;br&gt;&amp;gt; &amp;gt; using Shapelib?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Jelmer,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The minB, maxB arguments to SHPGetInfo() should be 
&lt;br&gt;&amp;gt; dimensioned with a size
&lt;br&gt;&amp;gt; of four (X, Y, Z, measure), not 2. &amp;nbsp;I presume SHPGetInfo is 
&lt;br&gt;&amp;gt; writing past
&lt;br&gt;&amp;gt; the end of your arrays and corrupting the heap.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Best regards,
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; ---------------------------------------+----------------------
&lt;br&gt;&amp;gt; ----------------
&lt;br&gt;&amp;gt; I set the clouds in motion - turn up &amp;nbsp; | Frank Warmerdam, 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23617817&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;warmerdam@...&lt;/a&gt;
&lt;br&gt;&amp;gt; light and sound - activate the windows | &lt;a href=&quot;http://pobox.com/~warmerdam&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pobox.com/~warmerdam&lt;/a&gt;&lt;br&gt;&amp;gt; and watch the world go round - Rush &amp;nbsp; &amp;nbsp;| Geospatial 
&lt;br&gt;&amp;gt; Programmer for Rent
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Shapelib mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23617817&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23617817&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Delete-or-hide-Shape-from-Shapefile-tp23501341p23617817.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23616981</id>
	<title>Re: Delete or hide Shape from Shapefile</title>
	<published>2009-05-19T06:49:07Z</published>
	<updated>2009-05-19T06:49:07Z</updated>
	<author>
		<name>Frank Warmerdam-2</name>
	</author>
	<content type="html">Jelmer Baas wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; The following code freezes my application:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Dim intShapeFile As Integer, intEntities As Integer, objShapeType As
&lt;br&gt;&amp;gt; MapTools.ShapeLib.ShapeType
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Dim minB(2) As Double, maxB(2) As Double
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; intShapeFile = SHPOpen(&amp;quot;C:\test\test.shp&amp;quot;, &amp;quot;rb+&amp;quot;)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; SHPGetInfo(intShapeFile, intEntities, objShapeType, minB, maxB)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; SHPClose(intShapeFile)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; System.GC.Collect()
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I tried a different shape file, same problem. MapServer can properly
&lt;br&gt;&amp;gt; draw the shapes, so 
&lt;br&gt;&amp;gt; I think it's a valid file, too. There's no way to recover except kill
&lt;br&gt;&amp;gt; the application.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Well, wouldn't you know. While typing this I had another idea: to skip
&lt;br&gt;&amp;gt; SHPGetInfo, and that 
&lt;br&gt;&amp;gt; does the trick. Question remains: why does SHPGetInfo crash the app when
&lt;br&gt;&amp;gt; using Shapelib?
&lt;/div&gt;&lt;br&gt;Jelmer,
&lt;br&gt;&lt;br&gt;The minB, maxB arguments to SHPGetInfo() should be dimensioned with a size
&lt;br&gt;of four (X, Y, Z, measure), not 2. &amp;nbsp;I presume SHPGetInfo is writing past
&lt;br&gt;the end of your arrays and corrupting the heap.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;-- 
&lt;br&gt;---------------------------------------+--------------------------------------
&lt;br&gt;I set the clouds in motion - turn up &amp;nbsp; | Frank Warmerdam, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23616981&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;warmerdam@...&lt;/a&gt;
&lt;br&gt;light and sound - activate the windows | &lt;a href=&quot;http://pobox.com/~warmerdam&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pobox.com/~warmerdam&lt;/a&gt;&lt;br&gt;and watch the world go round - Rush &amp;nbsp; &amp;nbsp;| Geospatial Programmer for Rent
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23616981&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Delete-or-hide-Shape-from-Shapefile-tp23501341p23616981.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23614601</id>
	<title>Re: Delete or hide Shape from Shapefile</title>
	<published>2009-05-19T04:41:31Z</published>
	<updated>2009-05-19T04:41:31Z</updated>
	<author>
		<name>Jelmer Baas</name>
	</author>
	<content type="html">Hi again,
&lt;br&gt;&lt;br&gt;Following my previous experiments with Shapelib, it seems I've found a
&lt;br&gt;problem. 
&lt;br&gt;&lt;br&gt;I can access the exisiting features, I can modify the shape type, the 
&lt;br&gt;vertices, etc. Shapelib also saves these changes properly. The problem
&lt;br&gt;occurs
&lt;br&gt;when VS.NET (Using Visual Studio 2005 now with David Gancarz's .NET
&lt;br&gt;wrapper) 
&lt;br&gt;starts to clean up. 
&lt;br&gt;&lt;br&gt;The following code freezes my application:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Dim intShapeFile As Integer, intEntities As Integer, objShapeType As
&lt;br&gt;MapTools.ShapeLib.ShapeType
&lt;br&gt;&amp;nbsp; &amp;nbsp; Dim minB(2) As Double, maxB(2) As Double
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; intShapeFile = SHPOpen(&amp;quot;C:\test\test.shp&amp;quot;, &amp;quot;rb+&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; SHPGetInfo(intShapeFile, intEntities, objShapeType, minB, maxB)
&lt;br&gt;&amp;nbsp; &amp;nbsp; SHPClose(intShapeFile)
&lt;br&gt;&amp;nbsp; &amp;nbsp; System.GC.Collect()
&lt;br&gt;&lt;br&gt;I tried a different shape file, same problem. MapServer can properly
&lt;br&gt;draw the shapes, so 
&lt;br&gt;I think it's a valid file, too. There's no way to recover except kill
&lt;br&gt;the application.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Well, wouldn't you know. While typing this I had another idea: to skip
&lt;br&gt;SHPGetInfo, and that 
&lt;br&gt;does the trick. Question remains: why does SHPGetInfo crash the app when
&lt;br&gt;using Shapelib?
&lt;br&gt;&lt;br&gt;&lt;br&gt;With kind regards,
&lt;br&gt;Jelmer Baas
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Jelmer Baas wrote:
&lt;br&gt;&amp;gt; &amp;gt; Hello,
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I'm looking for a way to remove or hide a shape in a shape file. I'm
&lt;br&gt;&amp;gt; &amp;gt; using MapServer to draw it, so it needs to be supported by 
&lt;br&gt;&amp;gt; MapServer,
&lt;br&gt;&amp;gt; &amp;gt; too. 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; The PDF found on the shapelib page shows there's a shapetype 0 (Null
&lt;br&gt;&amp;gt; &amp;gt; Shape), can't that somehow be used? Otherwise overwrite the style to
&lt;br&gt;&amp;gt; &amp;gt; have a width of 0, something like that? I find it hard to 
&lt;br&gt;&amp;gt; believe that
&lt;br&gt;&amp;gt; &amp;gt; ESRI apps rewrite the entire file when a single object is 
&lt;br&gt;&amp;gt; deleted... 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Despite already finding evidence that it's not possible
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; (&lt;a href=&quot;http://lists.maptools.org/pipermail/shapelib/2004-May/000074.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/pipermail/shapelib/2004-May/000074.html&lt;/a&gt;), I
&lt;br&gt;&amp;gt; &amp;gt; wanted to ask it nonetheless.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Jelmer,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The normal approach to this is to call DBFMarkRecordDeleted() 
&lt;br&gt;&amp;gt; which flips
&lt;br&gt;&amp;gt; the bit in the DBF file marking a record as deleted. &amp;nbsp;
&lt;br&gt;&amp;gt; However, I see no
&lt;br&gt;&amp;gt; evidence that the MapServer native shapefile code checks the deleted
&lt;br&gt;&amp;gt; marker so this isn't likely to help you with MapServer.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I think replacing the shape with a SHPT_NULL shape is the next best
&lt;br&gt;&amp;gt; alternative.
&lt;/div&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23614601&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Delete-or-hide-Shape-from-Shapefile-tp23501341p23614601.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23504213</id>
	<title>Re: Delete or hide Shape from Shapefile</title>
	<published>2009-05-12T07:49:52Z</published>
	<updated>2009-05-12T07:49:52Z</updated>
	<author>
		<name>Jelmer Baas</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; Hello,
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I'm looking for a way to remove or hide a shape in a shape file. I'm
&lt;br&gt;&amp;gt; &amp;gt; using MapServer to draw it, so it needs to be supported by 
&lt;br&gt;&amp;gt; MapServer,
&lt;br&gt;&amp;gt; &amp;gt; too. 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; The PDF found on the shapelib page shows there's a shapetype 0 (Null
&lt;br&gt;&amp;gt; &amp;gt; Shape), can't that somehow be used? Otherwise overwrite the style to
&lt;br&gt;&amp;gt; &amp;gt; have a width of 0, something like that? I find it hard to 
&lt;br&gt;&amp;gt; believe that
&lt;br&gt;&amp;gt; &amp;gt; ESRI apps rewrite the entire file when a single object is 
&lt;br&gt;&amp;gt; deleted... 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; The normal approach to this is to call DBFMarkRecordDeleted() 
&lt;br&gt;&amp;gt; which flips
&lt;br&gt;&amp;gt; the bit in the DBF file marking a record as deleted. &amp;nbsp;
&lt;br&gt;&amp;gt; However, I see no
&lt;br&gt;&amp;gt; evidence that the MapServer native shapefile code checks the deleted
&lt;br&gt;&amp;gt; marker so this isn't likely to help you with MapServer.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I think replacing the shape with a SHPT_NULL shape is the next best
&lt;br&gt;&amp;gt; alternative.
&lt;/div&gt;&lt;br&gt;Frank,
&lt;br&gt;&lt;br&gt;Thank you for your quick reply. I tried setting the shpType to
&lt;br&gt;NullShape, but this somehow doesn't seem to affect MapServer... I
&lt;br&gt;verified the results and my modified shapefile is indeed different than
&lt;br&gt;the original, and after re-loading the shpType is still 0. Setting the
&lt;br&gt;vertices coordinates to zero *DID* have a result. 
&lt;br&gt;&lt;br&gt;Seems like the only way to somehow mark an item for deletion is to move
&lt;br&gt;it to 0,0 and every now and then build a new shapefile with these shapes
&lt;br&gt;excluded. 
&lt;br&gt;&lt;br&gt;If you have any other ideas, please let me know.
&lt;br&gt;&lt;br&gt;I'm happy at least the shapelib works in read/write mode. Thanks for all
&lt;br&gt;your hard work.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jelmer
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23504213&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Delete-or-hide-Shape-from-Shapefile-tp23501341p23504213.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23503340</id>
	<title>Re: Delete or hide Shape from Shapefile</title>
	<published>2009-05-12T07:03:26Z</published>
	<updated>2009-05-12T07:03:26Z</updated>
	<author>
		<name>Frank Warmerdam-2</name>
	</author>
	<content type="html">Jelmer Baas wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm looking for a way to remove or hide a shape in a shape file. I'm
&lt;br&gt;&amp;gt; using MapServer to draw it, so it needs to be supported by MapServer,
&lt;br&gt;&amp;gt; too. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The PDF found on the shapelib page shows there's a shapetype 0 (Null
&lt;br&gt;&amp;gt; Shape), can't that somehow be used? Otherwise overwrite the style to
&lt;br&gt;&amp;gt; have a width of 0, something like that? I find it hard to believe that
&lt;br&gt;&amp;gt; ESRI apps rewrite the entire file when a single object is deleted... 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Despite already finding evidence that it's not possible
&lt;br&gt;&amp;gt; (&lt;a href=&quot;http://lists.maptools.org/pipermail/shapelib/2004-May/000074.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/pipermail/shapelib/2004-May/000074.html&lt;/a&gt;), I
&lt;br&gt;&amp;gt; wanted to ask it nonetheless.
&lt;/div&gt;&lt;br&gt;Jelmer,
&lt;br&gt;&lt;br&gt;The normal approach to this is to call DBFMarkRecordDeleted() which flips
&lt;br&gt;the bit in the DBF file marking a record as deleted. &amp;nbsp;However, I see no
&lt;br&gt;evidence that the MapServer native shapefile code checks the deleted
&lt;br&gt;marker so this isn't likely to help you with MapServer.
&lt;br&gt;&lt;br&gt;I think replacing the shape with a SHPT_NULL shape is the next best
&lt;br&gt;alternative.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;-- 
&lt;br&gt;---------------------------------------+--------------------------------------
&lt;br&gt;I set the clouds in motion - turn up &amp;nbsp; | Frank Warmerdam, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23503340&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;warmerdam@...&lt;/a&gt;
&lt;br&gt;light and sound - activate the windows | &lt;a href=&quot;http://pobox.com/~warmerdam&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pobox.com/~warmerdam&lt;/a&gt;&lt;br&gt;and watch the world go round - Rush &amp;nbsp; &amp;nbsp;| Geospatial Programmer for Rent
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23503340&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Delete-or-hide-Shape-from-Shapefile-tp23501341p23503340.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23501341</id>
	<title>Delete or hide Shape from Shapefile</title>
	<published>2009-05-12T05:05:05Z</published>
	<updated>2009-05-12T05:05:05Z</updated>
	<author>
		<name>Jelmer Baas</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I'm looking for a way to remove or hide a shape in a shape file. I'm
&lt;br&gt;using MapServer to draw it, so it needs to be supported by MapServer,
&lt;br&gt;too. 
&lt;br&gt;&lt;br&gt;The PDF found on the shapelib page shows there's a shapetype 0 (Null
&lt;br&gt;Shape), can't that somehow be used? Otherwise overwrite the style to
&lt;br&gt;have a width of 0, something like that? I find it hard to believe that
&lt;br&gt;ESRI apps rewrite the entire file when a single object is deleted... 
&lt;br&gt;&lt;br&gt;Despite already finding evidence that it's not possible
&lt;br&gt;(&lt;a href=&quot;http://lists.maptools.org/pipermail/shapelib/2004-May/000074.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/pipermail/shapelib/2004-May/000074.html&lt;/a&gt;), I
&lt;br&gt;wanted to ask it nonetheless.
&lt;br&gt;&lt;br&gt;Any help would be appreciated,
&lt;br&gt;&lt;br&gt;With kind regards,
&lt;br&gt;Jelmer Baas
&lt;br&gt;Speer IT B.V.
&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23501341&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Delete-or-hide-Shape-from-Shapefile-tp23501341p23501341.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23386960</id>
	<title>Re: SHPReadObject compile error</title>
	<published>2009-04-30T05:47:40Z</published>
	<updated>2009-04-30T05:47:40Z</updated>
	<author>
		<name>Frank Warmerdam-2</name>
	</author>
	<content type="html">Jamie Lahowetz wrote:
&lt;br&gt;&amp;gt; I get this error when compiling:
&lt;br&gt;&amp;gt; shape_test.c: In function ‘main’:
&lt;br&gt;&amp;gt; shape_test.c:24: error: incompatible types in assignment
&lt;br&gt;&amp;gt; shape_test.c:25: error: ‘SHPObject’ has no member named ‘nShapeid’
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Does this mean that the shapefile does not have an id or am I just doing 
&lt;br&gt;&amp;gt; it wrong?
&lt;br&gt;&lt;br&gt;Jamie,
&lt;br&gt;&lt;br&gt;The field name is &amp;quot;nShapeId&amp;quot; with a capital 'I'.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;---------------------------------------+--------------------------------------
&lt;br&gt;I set the clouds in motion - turn up &amp;nbsp; | Frank Warmerdam, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23386960&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;warmerdam@...&lt;/a&gt;
&lt;br&gt;light and sound - activate the windows | &lt;a href=&quot;http://pobox.com/~warmerdam&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pobox.com/~warmerdam&lt;/a&gt;&lt;br&gt;and watch the world go round - Rush &amp;nbsp; &amp;nbsp;| Geospatial Programmer for Rent
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23386960&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SHPReadObject-compile-error-tp23311156p23386960.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23311156</id>
	<title>SHPReadObject compile error</title>
	<published>2009-04-29T23:59:03Z</published>
	<updated>2009-04-29T23:59:03Z</updated>
	<author>
		<name>Jamie Lahowetz-3</name>
	</author>
	<content type="html">I get this error when compiling:&lt;br&gt;shape_test.c: In function ‘main’:&lt;br&gt;shape_test.c:24: error: incompatible types in assignment&lt;br&gt;shape_test.c:25: error: ‘SHPObject’ has no member named ‘nShapeid’&lt;br&gt;&lt;br&gt;Does this mean that the shapefile does not have an id or am I just doing it wrong?&lt;br&gt;

&lt;br&gt;#include &amp;lt;shapefil.h&amp;gt;&lt;br&gt;&lt;br&gt;int main (void)&lt;br&gt;{&lt;br&gt;    const char * shapefile = &amp;quot;/mnt/share/uas/GRRUVI2_uc/extractor/colorado/fe_2007_08_county&amp;quot;;&lt;br&gt;    SHPHandle handle;&lt;br&gt;    SHPObject *shpinforead;&lt;br&gt;

    int entities;&lt;br&gt;    int type;&lt;br&gt;    double minbound[4];&lt;br&gt;    double maxbound[4];&lt;br&gt;    &lt;br&gt;    printf(&amp;quot;Location: %s\n&amp;quot;, shapefile);&lt;br&gt;    &lt;br&gt;    handle = SHPOpen(shapefile,&amp;quot;rb&amp;quot;);&lt;br&gt;    SHPGetInfo( handle,&amp;amp;entities,&amp;amp;type,minbound,maxbound);&lt;br&gt;

    &lt;br&gt;    printf(&amp;quot;Entities: %d\n&amp;quot;,entities);&lt;br&gt;    printf(&amp;quot;Type: %d\n&amp;quot;,type);&lt;br&gt;    for(int i=0;i&amp;lt;2;printf(&amp;quot;Min Bound: %lf\nMax Bound: %lf\n&amp;quot;,minbound[i],maxbound[i]), i++);&lt;br&gt;    &lt;br&gt;

    int a=0;&lt;br&gt;    printf(&amp;quot;\nReading Entity %d\n&amp;quot;,a);&lt;br&gt;    shpinforead = *SHPReadObject(handle,a);&lt;br&gt;    printf(&amp;quot;%d %d\n&amp;quot;,shpinforead-&amp;gt;nShapeid,shpinforead-&amp;gt;nParts);&lt;br&gt;    &lt;br&gt;    SHPClose(handle);&lt;br&gt;

    return 0;&lt;br&gt;}&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Jamie Ryan Lahowetz&lt;br&gt;University of Nebraska - Lincoln&lt;br&gt;Graduate Student - Geosciences&lt;br&gt;402.304.0766&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23311156&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlahowetz@...&lt;/a&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23311156&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SHPReadObject-compile-error-tp23311156p23311156.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23280808</id>
	<title>Re: Shapelib test</title>
	<published>2009-04-28T08:48:56Z</published>
	<updated>2009-04-28T08:48:56Z</updated>
	<author>
		<name>Frank Warmerdam-2</name>
	</author>
	<content type="html">Jamie Lahowetz wrote:
&lt;br&gt;&amp;gt; Thank you very much. It compiled. I would like to print the values of 
&lt;br&gt;&amp;gt; &amp;quot;entities&amp;quot;, how do I do that?
&lt;br&gt;&lt;br&gt;Jamie,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;printf(&amp;quot;entities = %d\n&amp;quot;, entities);
&lt;br&gt;&lt;br&gt;With all due respect, this is not shapelib specific, and I'd suggest
&lt;br&gt;you spend some time with a C/C++ book and/or a programming mentor.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;-- 
&lt;br&gt;---------------------------------------+--------------------------------------
&lt;br&gt;I set the clouds in motion - turn up &amp;nbsp; | Frank Warmerdam, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23280808&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;warmerdam@...&lt;/a&gt;
&lt;br&gt;light and sound - activate the windows | &lt;a href=&quot;http://pobox.com/~warmerdam&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pobox.com/~warmerdam&lt;/a&gt;&lt;br&gt;and watch the world go round - Rush &amp;nbsp; &amp;nbsp;| Geospatial Programmer for Rent
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23280808&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Shapelib-test-tp23269258p23280808.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23270392</id>
	<title>Re: Shapelib test</title>
	<published>2009-04-27T22:01:30Z</published>
	<updated>2009-04-27T22:01:30Z</updated>
	<author>
		<name>Jamie Lahowetz</name>
	</author>
	<content type="html">Thank you very much. It compiled. I would like to print the values of &amp;quot;entities&amp;quot;, how do I do that?&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Apr 27, 2009 at 10:21 PM, Frank Warmerdam &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23270392&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;warmerdam@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;

&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div class=&quot;im&quot;&gt;Jamie Lahowetz wrote:&lt;br&gt;
&amp;gt; I am learning C so humor me. I have a simple script but everytime I run&lt;br&gt;
&amp;gt; it I get a segmentation fault. Any ideas?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; #include &amp;lt;shapefil.h&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; int main (void)&lt;br&gt;
&amp;gt; {&lt;br&gt;
&amp;gt;     const char * shapefile = &amp;quot;/mnt/share/uas/GRRUVI2_uc/&lt;br&gt;
&amp;gt; extractor/colorado/fe_2007_08_county&amp;quot;;&lt;br&gt;
&amp;gt;     SHPHandle handle;&lt;br&gt;
&amp;gt;     int entities;&lt;br&gt;
&amp;gt;     int type;&lt;br&gt;
&amp;gt;     double minbound;&lt;br&gt;
&amp;gt;     double maxbound;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;     printf(&amp;quot;%s\n&amp;quot;, shapefile);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;     handle = SHPOpen(shapefile,&amp;quot;rb&amp;quot;);&lt;br&gt;
&amp;gt;     SHPGetInfo( handle,&amp;amp;entities,&amp;amp;type,&amp;amp;minbound,&amp;amp;maxbound);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;     SHPClose(handle);&lt;br&gt;
&amp;gt;     return 0;&lt;br&gt;
&amp;gt; }&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;Jamie,&lt;br&gt;
&lt;br&gt;
The minbound and maxbound arguments need to be pointers to an array of&lt;br&gt;
four values (for the four dimensions possible in a shapefile).&lt;br&gt;
&lt;br&gt;
So more like:&lt;br&gt;
&lt;br&gt;
...&lt;br&gt;
      double minbound[4];&lt;br&gt;
      double maxbound[4];&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
      printf(&amp;quot;%s\n&amp;quot;, shapefile);&lt;br&gt;
&lt;br&gt;
      handle = SHPOpen(shapefile,&amp;quot;rb&amp;quot;);&lt;br&gt;
      SHPGetInfo( handle,&amp;amp;entities,&amp;amp;type,minbound,maxbound);&lt;br&gt;
&lt;/div&gt;...&lt;br&gt;
&lt;br&gt;
Best regards,&lt;br&gt;
--&lt;br&gt;
---------------------------------------+--------------------------------------&lt;br&gt;
I set the clouds in motion - turn up   | Frank Warmerdam, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23270392&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;warmerdam@...&lt;/a&gt;&lt;br&gt;
light and sound - activate the windows | &lt;a href=&quot;http://pobox.com/%7Ewarmerdam&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://pobox.com/~warmerdam&lt;/a&gt;&lt;br&gt;
and watch the world go round - Rush    | Geospatial Programmer for Rent&lt;br&gt;
&lt;br&gt;
_______________________________________________&lt;br&gt;
Shapelib mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23270392&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Jamie Ryan Lahowetz&lt;br&gt;University of Nebraska - Lincoln&lt;br&gt;Graduate Student - Geosciences&lt;br&gt;402.304.0766&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23270392&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlahowetz@...&lt;/a&gt;&lt;br&gt;


&lt;br /&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23270392&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Shapelib-test-tp23269258p23270392.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23270285</id>
	<title>Re: Shapelib test</title>
	<published>2009-04-27T21:58:50Z</published>
	<updated>2009-04-27T21:58:50Z</updated>
	<author>
		<name>Jamie Lahowetz-3</name>
	</author>
	<content type="html">Thank you very much. It compiled. I would like to print the values of &amp;quot;entities&amp;quot;, how do I do that?&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Apr 27, 2009 at 10:21 PM, Frank Warmerdam &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23270285&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;warmerdam@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;

&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div class=&quot;im&quot;&gt;Jamie Lahowetz wrote:&lt;br&gt;
&amp;gt; I am learning C so humor me. I have a simple script but everytime I run&lt;br&gt;
&amp;gt; it I get a segmentation fault. Any ideas?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; #include &amp;lt;shapefil.h&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; int main (void)&lt;br&gt;
&amp;gt; {&lt;br&gt;
&amp;gt;     const char * shapefile = &amp;quot;/mnt/share/uas/GRRUVI2_uc/&lt;br&gt;
&amp;gt; extractor/colorado/fe_2007_08_county&amp;quot;;&lt;br&gt;
&amp;gt;     SHPHandle handle;&lt;br&gt;
&amp;gt;     int entities;&lt;br&gt;
&amp;gt;     int type;&lt;br&gt;
&amp;gt;     double minbound;&lt;br&gt;
&amp;gt;     double maxbound;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;     printf(&amp;quot;%s\n&amp;quot;, shapefile);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;     handle = SHPOpen(shapefile,&amp;quot;rb&amp;quot;);&lt;br&gt;
&amp;gt;     SHPGetInfo( handle,&amp;amp;entities,&amp;amp;type,&amp;amp;minbound,&amp;amp;maxbound);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;     SHPClose(handle);&lt;br&gt;
&amp;gt;     return 0;&lt;br&gt;
&amp;gt; }&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;Jamie,&lt;br&gt;
&lt;br&gt;
The minbound and maxbound arguments need to be pointers to an array of&lt;br&gt;
four values (for the four dimensions possible in a shapefile).&lt;br&gt;
&lt;br&gt;
So more like:&lt;br&gt;
&lt;br&gt;
...&lt;br&gt;
      double minbound[4];&lt;br&gt;
      double maxbound[4];&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
      printf(&amp;quot;%s\n&amp;quot;, shapefile);&lt;br&gt;
&lt;br&gt;
      handle = SHPOpen(shapefile,&amp;quot;rb&amp;quot;);&lt;br&gt;
      SHPGetInfo( handle,&amp;amp;entities,&amp;amp;type,minbound,maxbound);&lt;br&gt;
&lt;/div&gt;...&lt;br&gt;
&lt;br&gt;
Best regards,&lt;br&gt;
--&lt;br&gt;
---------------------------------------+--------------------------------------&lt;br&gt;
I set the clouds in motion - turn up   | Frank Warmerdam, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23270285&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;warmerdam@...&lt;/a&gt;&lt;br&gt;
light and sound - activate the windows | &lt;a href=&quot;http://pobox.com/%7Ewarmerdam&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://pobox.com/~warmerdam&lt;/a&gt;&lt;br&gt;
and watch the world go round - Rush    | Geospatial Programmer for Rent&lt;br&gt;
&lt;br&gt;
_______________________________________________&lt;br&gt;
Shapelib mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23270285&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Jamie Ryan Lahowetz&lt;br&gt;University of Nebraska - Lincoln&lt;br&gt;Graduate Student - Geosciences&lt;br&gt;402.304.0766&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23270285&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlahowetz@...&lt;/a&gt;&lt;br&gt;


&lt;br /&gt;_______________________________________________
&lt;br&gt;Shapelib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23270285&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Shapelib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.maptools.org/mailman/listinfo/shapelib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.maptools.org/mailman/listinfo/shapelib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Shapelib-test-tp23269258p23270285.html" />
</entry>

</feed>
