<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-16955</id>
	<title>Nabble - OpenMap</title>
	<updated>2009-12-03T09:34:04Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/OpenMap-f16955.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/OpenMap-f16955.html" />
	<subtitle type="html">&lt;a href=&quot;http://openmap.bbn.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;OpenMap&lt;/a&gt;&amp;nbsp;is a Java Beans based toolkit for building applications and applets needing geographic information.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26629991</id>
	<title>Re: MapBean/MapPanel mouseExit...</title>
	<published>2009-12-03T09:34:04Z</published>
	<updated>2009-12-03T09:34:04Z</updated>
	<author>
		<name>Adam Brightwell</name>
	</author>
	<content type="html">Thanks Don, that was the approach I was leaning towards taking, I just wasn&amp;#39;t sure if there was a more &amp;quot;openmap-esque&amp;quot; way to do it.  It works perfectly.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-Adam&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;
On Thu, Dec 3, 2009 at 11:58 AM, Don Dietrick &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26629991&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dietrick@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;
Hi Adam,&lt;br&gt;
&lt;br&gt;
You can just add a regular Java MouseListener to the MapBean, and do what you like on the mouseExited method.  If you need it to hook up with other OpenMap components, have it extend OMComponent and implement MouseListener.&lt;br&gt;

&lt;br&gt;
Hope this helps,&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;
&lt;br&gt;
Don&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;br&gt;
Adam Brightwell wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex&quot;&gt;
Hi all,&lt;br&gt;
&lt;br&gt;
Are there any suggestions on how to properly listen for mouse events on the map panel and not just the individual layers?  Allow me to clarify what I am attempting to do... I just need to know when the mouse exits the map so that I can handle the event without having to implement the same functionality on the individual layers since the event really has nothing to do with the layers.&lt;br&gt;

&lt;br&gt;
Thanks,&lt;br&gt;
Adam&lt;br&gt;
&lt;/blockquote&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;W. Adam Brightwell&lt;br&gt;&lt;br&gt;&amp;quot;We&amp;#39;re not questioning God.  Just those he chose to carry on His cross. We&amp;#39;re no better, you&amp;#39;ll see.  Just all of us, the lost causes.&amp;quot;&lt;br&gt;

&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/MapBean-MapPanel-mouseExit...-tp26629053p26629991.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26629460</id>
	<title>Re: MapBean/MapPanel mouseExit...</title>
	<published>2009-12-03T08:58:57Z</published>
	<updated>2009-12-03T08:58:57Z</updated>
	<author>
		<name>Don Dietrick</name>
	</author>
	<content type="html">Hi Adam,
&lt;br&gt;&lt;br&gt;You can just add a regular Java MouseListener to the MapBean, and do 
&lt;br&gt;what you like on the mouseExited method. &amp;nbsp;If you need it to hook up with 
&lt;br&gt;other OpenMap components, have it extend OMComponent and implement 
&lt;br&gt;MouseListener.
&lt;br&gt;&lt;br&gt;Hope this helps,
&lt;br&gt;&lt;br&gt;Don
&lt;br&gt;&lt;br&gt;Adam Brightwell wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Are there any suggestions on how to properly listen for mouse events 
&lt;br&gt;&amp;gt; on the map panel and not just the individual layers? &amp;nbsp;Allow me to 
&lt;br&gt;&amp;gt; clarify what I am attempting to do... I just need to know when the 
&lt;br&gt;&amp;gt; mouse exits the map so that I can handle the event without having to 
&lt;br&gt;&amp;gt; implement the same functionality on the individual layers since the 
&lt;br&gt;&amp;gt; event really has nothing to do with the layers.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Adam
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;[To unsubscribe to this list send an email to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26629460&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majdart@...&lt;/a&gt;&amp;quot;
&lt;br&gt;with the following text in the BODY of the message &amp;quot;unsubscribe openmap-users&amp;quot;]
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/MapBean-MapPanel-mouseExit...-tp26629053p26629460.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26629053</id>
	<title>MapBean/MapPanel mouseExit...</title>
	<published>2009-12-03T08:32:23Z</published>
	<updated>2009-12-03T08:32:23Z</updated>
	<author>
		<name>Adam Brightwell</name>
	</author>
	<content type="html">&lt;div&gt;Hi all,&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;Are there any suggestions on how to properly listen for mouse events on the map panel and not just the individual layers?  Allow me to clarify what I am attempting to do... I just need to know when the mouse exits the map so that I can handle the event without having to implement the same functionality on the individual layers since the event really has nothing to do with the layers.&lt;br&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thanks,&lt;/div&gt;&lt;div&gt;Adam&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/MapBean-MapPanel-mouseExit...-tp26629053p26629053.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26298884</id>
	<title>Re: Google projection</title>
	<published>2009-11-11T01:30:32Z</published>
	<updated>2009-11-11T01:30:32Z</updated>
	<author>
		<name>Tore Halset</name>
	</author>
	<content type="html">Hello.
&lt;br&gt;&lt;br&gt;We use OpenMap WMS with google mercator projection. Take a look at &amp;nbsp; 
&lt;br&gt;CoordinateReferenceSystem.getForCode(&amp;quot;EPSG:900913&amp;quot;).
&lt;br&gt;&lt;br&gt;&amp;nbsp; - Tore.
&lt;br&gt;&lt;br&gt;On Nov 11, 2009, at 8:29 , Jesper Berglund wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello everyone!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am wondering if there is anyone who has made a projection which is &amp;nbsp;
&lt;br&gt;&amp;gt; compatible with Google mercator projection?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; /Jesper Berglund
&lt;br&gt;&amp;gt; System Developer
&lt;br&gt;&amp;gt; Pertexo Systems
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; [To unsubscribe to this list send an email to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26298884&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majdart@...&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;gt; with the following text in the BODY of the message &amp;quot;unsubscribe &amp;nbsp;
&lt;br&gt;&amp;gt; openmap-users&amp;quot;]
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;[To unsubscribe to this list send an email to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26298884&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majdart@...&lt;/a&gt;&amp;quot;
&lt;br&gt;with the following text in the BODY of the message &amp;quot;unsubscribe openmap-users&amp;quot;]
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Google-projection-tp26297337p26298884.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26297983</id>
	<title>Re: Google projection</title>
	<published>2009-11-11T00:31:44Z</published>
	<updated>2009-11-11T00:31:44Z</updated>
	<author>
		<name>oland</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html; charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&gt;
&lt;/head&gt;
&lt;body text=&quot;#000000&quot; bgcolor=&quot;#ffffff&quot;&gt;
Hello Jesper&lt;br&gt;
&lt;br&gt;
We did a port of
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/globalmaptiles.py&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/globalmaptiles.py&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
And running this with other OM layers in std. mercator projection
*seems* to align properly. Check the images&lt;br&gt;
&lt;br&gt;
&lt;img src=&quot;http://old.nabble.com/attachment/26297983/0/moz-screenshot.jpg&quot; alt=&quot;&quot;&gt;&lt;br&gt;
&lt;br&gt;
&lt;img src=&quot;http://old.nabble.com/attachment/26297983/1/moz-screenshot-1.jpg&quot; alt=&quot;&quot;&gt;&lt;br&gt;
&lt;br&gt;
BR&lt;br&gt;
Carsten&lt;br&gt;
&lt;br&gt;
On 11/11/2009 08:29 AM, Jesper Berglund wrote:
&lt;blockquote cite=&quot;mid:4AFA67EC.8030603@pertexo.se&quot; type=&quot;cite&quot;&gt;Hello
everyone!
  &lt;br&gt;
  &lt;br&gt;
I am wondering if there is anyone who has made a projection which is
compatible with Google mercator projection?
  &lt;br&gt;
  &lt;br&gt;
Regards
  &lt;br&gt;
  &lt;br&gt;
/Jesper Berglund
  &lt;br&gt;
System Developer
  &lt;br&gt;
Pertexo Systems
  &lt;br&gt;
  &lt;br&gt;
--
  &lt;br&gt;
[To unsubscribe to this list send an email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26297983&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majdart@...&lt;/a&gt;
  &lt;br&gt;
with the following text in the BODY of the message &quot;unsubscribe
openmap-users&quot;]
  &lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt; &lt;br /&gt; </content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Google-projection-tp26297337p26297983.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26297337</id>
	<title>Google projection</title>
	<published>2009-11-10T23:29:48Z</published>
	<updated>2009-11-10T23:29:48Z</updated>
	<author>
		<name>Jesper Berglund</name>
	</author>
	<content type="html">Hello everyone!
&lt;br&gt;&lt;br&gt;I am wondering if there is anyone who has made a projection which is 
&lt;br&gt;compatible with Google mercator projection?
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;&lt;br&gt;/Jesper Berglund
&lt;br&gt;System Developer
&lt;br&gt;Pertexo Systems
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;[To unsubscribe to this list send an email to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26297337&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majdart@...&lt;/a&gt;&amp;quot;
&lt;br&gt;with the following text in the BODY of the message &amp;quot;unsubscribe openmap-users&amp;quot;]
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Google-projection-tp26297337p26297337.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26291853</id>
	<title>Setting VPF deafults</title>
	<published>2009-11-10T13:32:36Z</published>
	<updated>2009-11-10T13:32:36Z</updated>
	<author>
		<name>Kevin Grunenberg</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;I am trying to set default display properties for VPF Layers
so that for instance whenever you load a vpf layer it displays the hdp attribute
of soundp &amp;nbsp;from the hyd folder in a label. Is there a sample of how to do
this. This is all being done programmatically and not in a properties file.
Thanks in advance for any help&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;span style='font-size:8.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:#004080'&gt;Kevin &lt;/span&gt;&lt;/b&gt;&lt;span style='font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:blue'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Setting-VPF-deafults-tp26291853p26291853.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26273529</id>
	<title>Re: shapefile header fields, File Length</title>
	<published>2009-11-09T12:50:57Z</published>
	<updated>2009-11-09T12:50:57Z</updated>
	<author>
		<name>Don Dietrick</name>
	</author>
	<content type="html">Hi Nathan,
&lt;br&gt;&lt;br&gt;Thanks for sending in the fix, I'll incorporate your change into the 
&lt;br&gt;code base. and I'll make sure the other data types are covered, too.
&lt;br&gt;&lt;br&gt;Thanks again,
&lt;br&gt;&lt;br&gt;Don
&lt;br&gt;&lt;br&gt;Reese, Nathan wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi Don,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have found the problem! &amp;nbsp;The class ShpOutputStream.java calculates 
&lt;br&gt;&amp;gt; file content length by adding the position of the last record and the 
&lt;br&gt;&amp;gt; last record's content length. &amp;nbsp;However, a record's content length does 
&lt;br&gt;&amp;gt; not include the record header. &amp;nbsp;As a result, the file content length 
&lt;br&gt;&amp;gt; is always off by 4. &amp;nbsp;After correcting the problem, ArgGIS had no 
&lt;br&gt;&amp;gt; problems ingesting the shapefile generated with OpenMap.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Attached is an updated version of ShpOutputStream.java containing the 
&lt;br&gt;&amp;gt; fixes (I only fixed the problem for shapefiles containing polygons). &amp;nbsp;
&lt;br&gt;&amp;gt; This is the first time I have ever found and fixed a bug in an 
&lt;br&gt;&amp;gt; OpenSource project. &amp;nbsp;How do I submit my changes to the project?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Nathan
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Don Dietrick [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26273529&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dietrick@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Mon 10/26/2009 4:44 PM
&lt;br&gt;&amp;gt; To: Reese, Nathan
&lt;br&gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26273529&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;openmap-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Re: [OpenMap Users] shapefile header fields, File Length
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi Nathan,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've just checked a couple of shape files that I've recently created via
&lt;br&gt;&amp;gt; the method outlined below and the header information seems reasonable,
&lt;br&gt;&amp;gt; and the reading code isn't complaining about file length mismatches.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - Don
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Reese, Nathan wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Don,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I have reworked my shapefile generation code to use the classes
&lt;br&gt;&amp;gt; &amp;gt; suggested. &amp;nbsp;See the code fragment below.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; EsriGraphicList polygonList = new EsriPolygonList();
&lt;br&gt;&amp;gt; &amp;gt; DbfTableModel polygonModel = new DbfTableModel(7);
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; //Build graphics
&lt;br&gt;&amp;gt; &amp;gt; while (ellipses to add) {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;OMEllipse ellipse = new OMEllipse(centerPoint, majorAxis,
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;minorAxis, Length.NM, Math.toRadians(azimuth-90));
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;float[] ellipsePoints = ellipse.createLatLonPoints();
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;OMPoly polyGraphic = new OMPoly(ellipsePoints,
&lt;br&gt;&amp;gt; &amp;gt; OMGraphic.DECIMAL_DEGREES, OMGraphic.LINETYPE_GREATCIRCLE);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;polygonList.add(polyGraphic);
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;ArrayList&amp;lt;String&amp;gt; attributes = new ArrayList&amp;lt;String&amp;gt;();
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;polygonModel.addRecord(attributes);
&lt;br&gt;&amp;gt; &amp;gt; }
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; //Write files
&lt;br&gt;&amp;gt; &amp;gt; EsriShapeExport ese = new EsriShapeExport(polygonList, polygonModel,
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;testShapefile&amp;quot;);
&lt;br&gt;&amp;gt; &amp;gt; ese.export();
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; The shapefile generated with the reworked method is identical to the
&lt;br&gt;&amp;gt; &amp;gt; shapefile generated with the original method, including the file
&lt;br&gt;&amp;gt; &amp;gt; length header field. &amp;nbsp;Have you had a chance to dig into the length
&lt;br&gt;&amp;gt; &amp;gt; generation code and see if anything is amiss?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Nathan
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; From: Don Dietrick [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26273529&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dietrick@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; Sent: Tue 10/20/2009 11:33 AM
&lt;br&gt;&amp;gt; &amp;gt; To: Reese, Nathan
&lt;br&gt;&amp;gt; &amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26273529&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;openmap-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Subject: Re: [OpenMap Users] shapefile header fields, File Length
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi Nathan,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I admit I haven't tested this method of doing this, but your code
&lt;br&gt;&amp;gt; &amp;gt; looks like it should work. I'll give it a shot later.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; If I were going to create a shape file, I'd do something like this;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; OMGraphicList omgl = new OMGraphicList();
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; ... add OMGraphics to omgl
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; DbfTableModel dbf = new DbfTableModel(..);
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; ... add entries appropriate for OMGraphics
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; EsriShapeExport ese = EsriShapeExport(omgl, dbf, my_file_path);
&lt;br&gt;&amp;gt; &amp;gt; ese.export();
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; - Don
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Oct 20, 2009, at 10:44 AM, Reese, Nathan wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I am creating a shapefile with polygons. &amp;nbsp;Below is the code fragment
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; that I am using to generate a shapefile, I have omitted dbf and shx
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; code for simplicity. &amp;nbsp;Let me know if you need any additional
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; information.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; EsriLayer polygonLayer = new EsriLayer(&amp;quot;testShapefile&amp;quot;,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; ShapeConstants.SHAPE_TYPE_POLYGON, 7);
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; //Build dbf table
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; ...
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; //Build layer
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; while (ellipses to add to layer) {
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp; OMEllipse ellipse = new OMEllipse(centerPoint, majorAxis,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; minorAxis, Length.NM, Math.toRadians(azimuth-90));
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp; float[] ellipsePoints = ellipse.createLatLonPoints();
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp; EsriPolygon poly = new EsriPolygon(ellipsePoints, 1, 0);
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp; ArrayList&amp;lt;String&amp;gt; attributes = new ArrayList&amp;lt;String&amp;gt;();
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp; ...
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp; polygonLayer.addRecord(poly, attributes);
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; }
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; //Write file
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; FileOutputStream shpFileStream = new FileOutputStream
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; (&amp;quot;testShapefile.shp&amp;quot;);
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; ShpOutputStream shpStream = new ShpOutputStream(shpFileStream);
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; EsriGraphicList list = polygonLayer.getEsriGraphicList();
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; int[][] imageData = shpStream.writeGeometry(list);
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; //write dbf and shx files
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; ...
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; shpFileStream.close();
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Nathan
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; From: Don Dietrick [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26273529&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dietrick@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Sent: Mon 10/19/2009 2:37 PM
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; To: Reese, Nathan
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26273529&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;openmap-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Subject: Re: [OpenMap Users] shapefile header fields, File Length
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Hi Nathan,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; The file length is calculated for the shapes being placed in the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; file. &amp;nbsp;What kind of shape type are you creating a file for, and what
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; classes are you using to do it?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; - Don
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; On Oct 19, 2009, at 1:41 PM, Reese, Nathan wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; I am having problems opening shapefiles generated with OpenMap using
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; various GIS applications (although the shapefile can be opened in GE
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; and with ArcGIS). &amp;nbsp;The shapefiles can only be opened by all GIS
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; applications by first opening and resaving the file with ArcGIS.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; I have compared the orginal .shp file with the ArcGIS updated .shp
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; and have found that the only difference is in the File Length field
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; in the main file header (byte 27). &amp;nbsp;I have tried using the ShapeFile
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; class to display the shapefile header information, but that utility
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; always returns a value of 100 for the File Length. &amp;nbsp;Has any one
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; experienced these types of problems. &amp;nbsp;Does ShpOutputStream properly
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; set the File Length field in the main file header?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Nathan
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Don Dietrick, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26273529&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;openmap@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; BBN Technologies, Cambridge MA, USA
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;http://openmap.bbn.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://openmap.bbn.com&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;[To unsubscribe to this list send an email to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26273529&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majdart@...&lt;/a&gt;&amp;quot;
&lt;br&gt;with the following text in the BODY of the message &amp;quot;unsubscribe openmap-users&amp;quot;]
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/shapefile-header-fields%2C-File-Length-tp25962555p26273529.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26216987</id>
	<title>RE: shapefile header fields, File Length</title>
	<published>2009-11-05T07:32:00Z</published>
	<updated>2009-11-05T07:32:00Z</updated>
	<author>
		<name>Reese, Nathan</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 3.2//EN&quot;&gt;
&lt;HTML&gt;
&lt;HEAD&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=iso-8859-1&quot;&gt;
&lt;META NAME=&quot;Generator&quot; CONTENT=&quot;MS Exchange Server version 6.5.7654.12&quot;&gt;
&lt;TITLE&gt;RE: [OpenMap Users] shapefile header fields, File Length&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;!-- Converted from text/plain format --&gt;

&lt;P&gt;&lt;FONT SIZE=2&gt;Hi Don,&lt;BR&gt;
&lt;BR&gt;
I have found the problem!&amp;nbsp; The class ShpOutputStream.java calculates file content length by adding the position of the last record and the last record's content length.&amp;nbsp; However, a record's content length does not include the record header.&amp;nbsp; As a result, the file content length is always off by 4.&amp;nbsp; After correcting the problem, ArgGIS had no problems ingesting the shapefile generated with OpenMap.&lt;BR&gt;
&lt;BR&gt;
Attached is an updated version of ShpOutputStream.java containing the fixes (I only fixed the problem for shapefiles containing polygons).&amp;nbsp; This is the first time I have ever found and fixed a bug in an OpenSource project.&amp;nbsp; How do I submit my changes to the project?&lt;BR&gt;
&lt;BR&gt;
Nathan&lt;BR&gt;
&lt;BR&gt;
-----Original Message-----&lt;BR&gt;
From: Don Dietrick [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216987&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dietrick@...&lt;/a&gt;]&lt;BR&gt;
Sent: Mon 10/26/2009 4:44 PM&lt;BR&gt;
To: Reese, Nathan&lt;BR&gt;
Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216987&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;openmap-users@...&lt;/a&gt;&lt;BR&gt;
Subject: Re: [OpenMap Users] shapefile header fields, File Length&lt;BR&gt;
&lt;BR&gt;
Hi Nathan,&lt;BR&gt;
&lt;BR&gt;
I've just checked a couple of shape files that I've recently created via&lt;BR&gt;
the method outlined below and the header information seems reasonable,&lt;BR&gt;
and the reading code isn't complaining about file length mismatches.&lt;BR&gt;
&lt;BR&gt;
- Don&lt;BR&gt;
&lt;BR&gt;
Reese, Nathan wrote:&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; Don,&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; I have reworked my shapefile generation code to use the classes&lt;BR&gt;
&amp;gt; suggested.&amp;nbsp; See the code fragment below.&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; EsriGraphicList polygonList = new EsriPolygonList();&lt;BR&gt;
&amp;gt; DbfTableModel polygonModel = new DbfTableModel(7);&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; //Build graphics&lt;BR&gt;
&amp;gt; while (ellipses to add) {&lt;BR&gt;
&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OMEllipse ellipse = new OMEllipse(centerPoint, majorAxis,&lt;BR&gt;
&amp;gt;&amp;nbsp; minorAxis, Length.NM, Math.toRadians(azimuth-90));&lt;BR&gt;
&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; float[] ellipsePoints = ellipse.createLatLonPoints();&lt;BR&gt;
&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OMPoly polyGraphic = new OMPoly(ellipsePoints,&lt;BR&gt;
&amp;gt; OMGraphic.DECIMAL_DEGREES, OMGraphic.LINETYPE_GREATCIRCLE);&lt;BR&gt;
&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygonList.add(polyGraphic);&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ArrayList&amp;lt;String&amp;gt; attributes = new ArrayList&amp;lt;String&amp;gt;();&lt;BR&gt;
&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;BR&gt;
&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygonModel.addRecord(attributes);&lt;BR&gt;
&amp;gt; }&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; //Write files&lt;BR&gt;
&amp;gt; EsriShapeExport ese = new EsriShapeExport(polygonList, polygonModel,&lt;BR&gt;
&amp;gt; &amp;quot;testShapefile&amp;quot;);&lt;BR&gt;
&amp;gt; ese.export();&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; The shapefile generated with the reworked method is identical to the&lt;BR&gt;
&amp;gt; shapefile generated with the original method, including the file&lt;BR&gt;
&amp;gt; length header field.&amp;nbsp; Have you had a chance to dig into the length&lt;BR&gt;
&amp;gt; generation code and see if anything is amiss?&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; Thanks,&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; Nathan&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; -----Original Message-----&lt;BR&gt;
&amp;gt; From: Don Dietrick [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216987&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dietrick@...&lt;/a&gt;]&lt;BR&gt;
&amp;gt; Sent: Tue 10/20/2009 11:33 AM&lt;BR&gt;
&amp;gt; To: Reese, Nathan&lt;BR&gt;
&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216987&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;openmap-users@...&lt;/a&gt;&lt;BR&gt;
&amp;gt; Subject: Re: [OpenMap Users] shapefile header fields, File Length&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; Hi Nathan,&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; I admit I haven't tested this method of doing this, but your code&lt;BR&gt;
&amp;gt; looks like it should work. I'll give it a shot later.&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt;&amp;nbsp;&amp;nbsp; If I were going to create a shape file, I'd do something like this;&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; OMGraphicList omgl = new OMGraphicList();&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; ... add OMGraphics to omgl&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; DbfTableModel dbf = new DbfTableModel(..);&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; ... add entries appropriate for OMGraphics&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; EsriShapeExport ese = EsriShapeExport(omgl, dbf, my_file_path);&lt;BR&gt;
&amp;gt; ese.export();&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; - Don&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; On Oct 20, 2009, at 10:44 AM, Reese, Nathan wrote:&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt; I am creating a shapefile with polygons.&amp;nbsp; Below is the code fragment&lt;BR&gt;
&amp;gt; &amp;gt; that I am using to generate a shapefile, I have omitted dbf and shx&lt;BR&gt;
&amp;gt; &amp;gt; code for simplicity.&amp;nbsp; Let me know if you need any additional&lt;BR&gt;
&amp;gt; &amp;gt; information.&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt; EsriLayer polygonLayer = new EsriLayer(&amp;quot;testShapefile&amp;quot;,&lt;BR&gt;
&amp;gt; &amp;gt; ShapeConstants.SHAPE_TYPE_POLYGON, 7);&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt; //Build dbf table&lt;BR&gt;
&amp;gt; &amp;gt; ...&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt; //Build layer&lt;BR&gt;
&amp;gt; &amp;gt; while (ellipses to add to layer) {&lt;BR&gt;
&amp;gt; &amp;gt;&amp;nbsp;&amp;nbsp; OMEllipse ellipse = new OMEllipse(centerPoint, majorAxis,&lt;BR&gt;
&amp;gt; &amp;gt; minorAxis, Length.NM, Math.toRadians(azimuth-90));&lt;BR&gt;
&amp;gt; &amp;gt;&amp;nbsp;&amp;nbsp; float[] ellipsePoints = ellipse.createLatLonPoints();&lt;BR&gt;
&amp;gt; &amp;gt;&amp;nbsp;&amp;nbsp; EsriPolygon poly = new EsriPolygon(ellipsePoints, 1, 0);&lt;BR&gt;
&amp;gt; &amp;gt;&amp;nbsp;&amp;nbsp; ArrayList&amp;lt;String&amp;gt; attributes = new ArrayList&amp;lt;String&amp;gt;();&lt;BR&gt;
&amp;gt; &amp;gt;&amp;nbsp;&amp;nbsp; ...&lt;BR&gt;
&amp;gt; &amp;gt;&amp;nbsp;&amp;nbsp; polygonLayer.addRecord(poly, attributes);&lt;BR&gt;
&amp;gt; &amp;gt; }&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt; //Write file&lt;BR&gt;
&amp;gt; &amp;gt; FileOutputStream shpFileStream = new FileOutputStream&lt;BR&gt;
&amp;gt; &amp;gt; (&amp;quot;testShapefile.shp&amp;quot;);&lt;BR&gt;
&amp;gt; &amp;gt; ShpOutputStream shpStream = new ShpOutputStream(shpFileStream);&lt;BR&gt;
&amp;gt; &amp;gt; EsriGraphicList list = polygonLayer.getEsriGraphicList();&lt;BR&gt;
&amp;gt; &amp;gt; int[][] imageData = shpStream.writeGeometry(list);&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt; //write dbf and shx files&lt;BR&gt;
&amp;gt; &amp;gt; ...&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt; shpFileStream.close();&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt; Thanks,&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt; Nathan&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt; -----Original Message-----&lt;BR&gt;
&amp;gt; &amp;gt; From: Don Dietrick [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216987&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dietrick@...&lt;/a&gt;]&lt;BR&gt;
&amp;gt; &amp;gt; Sent: Mon 10/19/2009 2:37 PM&lt;BR&gt;
&amp;gt; &amp;gt; To: Reese, Nathan&lt;BR&gt;
&amp;gt; &amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216987&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;openmap-users@...&lt;/a&gt;&lt;BR&gt;
&amp;gt; &amp;gt; Subject: Re: [OpenMap Users] shapefile header fields, File Length&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt; Hi Nathan,&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt; The file length is calculated for the shapes being placed in the&lt;BR&gt;
&amp;gt; &amp;gt; file.&amp;nbsp; What kind of shape type are you creating a file for, and what&lt;BR&gt;
&amp;gt; &amp;gt; classes are you using to do it?&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt; - Don&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt; On Oct 19, 2009, at 1:41 PM, Reese, Nathan wrote:&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt; &amp;gt; I am having problems opening shapefiles generated with OpenMap using&lt;BR&gt;
&amp;gt; &amp;gt; &amp;gt; various GIS applications (although the shapefile can be opened in GE&lt;BR&gt;
&amp;gt; &amp;gt; &amp;gt; and with ArcGIS).&amp;nbsp; The shapefiles can only be opened by all GIS&lt;BR&gt;
&amp;gt; &amp;gt; &amp;gt; applications by first opening and resaving the file with ArcGIS.&lt;BR&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt; &amp;gt; I have compared the orginal .shp file with the ArcGIS updated .shp&lt;BR&gt;
&amp;gt; &amp;gt; &amp;gt; and have found that the only difference is in the File Length field&lt;BR&gt;
&amp;gt; &amp;gt; &amp;gt; in the main file header (byte 27).&amp;nbsp; I have tried using the ShapeFile&lt;BR&gt;
&amp;gt; &amp;gt; &amp;gt; class to display the shapefile header information, but that utility&lt;BR&gt;
&amp;gt; &amp;gt; &amp;gt; always returns a value of 100 for the File Length.&amp;nbsp; Has any one&lt;BR&gt;
&amp;gt; &amp;gt; &amp;gt; experienced these types of problems.&amp;nbsp; Does ShpOutputStream properly&lt;BR&gt;
&amp;gt; &amp;gt; &amp;gt; set the File Length field in the main file header?&lt;BR&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt; &amp;gt; Thanks,&lt;BR&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt; &amp;gt; Nathan&lt;BR&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt; =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;BR&gt;
&amp;gt; &amp;gt; Don Dietrick, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216987&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;openmap@...&lt;/a&gt;&lt;BR&gt;
&amp;gt; &amp;gt; BBN Technologies, Cambridge MA, USA&lt;BR&gt;
&amp;gt; &amp;gt; &lt;A HREF=&quot;http://openmap.bbn.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://openmap.bbn.com&lt;/A&gt;&lt;BR&gt;
&amp;gt; &amp;gt; =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;/FONT&gt;
&lt;/P&gt;

&lt;/BODY&gt;
&lt;/HTML&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;ShpOutputStream.java&lt;/strong&gt; (19K) &lt;a href=&quot;http://old.nabble.com/attachment/26216987/0/ShpOutputStream.java&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/shapefile-header-fields%2C-File-Length-tp25962555p26216987.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26207270</id>
	<title>VMAP coastline not being displayed in openmap 4.6.5</title>
	<published>2009-11-04T16:21:33Z</published>
	<updated>2009-11-04T16:21:33Z</updated>
	<author>
		<name>Reuben M Bardak</name>
	</author>
	<content type="html">
&lt;br&gt;&lt;font size=2 face=&quot;sans-serif&quot;&gt;Hello all&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;sans-serif&quot;&gt;I'm having difficulty getting VMAP coastline
data being displayed in openmap 4.6.5, it worked perfectly in 4.6 and i
cant really isolate what has changed between versions.&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;sans-serif&quot;&gt;here is the definition of the layer
in &amp;nbsp;my opemap properties file:&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;#### VMAP Coastline layer&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;vmapCoast.class=com.bbn.openmap.layer.vpf.VPFLayer&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;vmapCoast.prettyName=VMAP Coastline
Layer&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;vmapCoast.vpfPath=/landmas/ale/game/land/VMAP/v0sas_5/vmaplv0&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;### a predefined layer from the VPF
predefined layer set found in&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;### com/bbn/openmap/layer/vpf/defaultVPFLayers.properties&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;vmapCoast.coverageType=bnd&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;vmapCoast.featureTypes=edge&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;vmapCoast.edge=coastl&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;vmapCoast.lineColor=FF77FF88&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;The layer appears to be there along
with the DTED0 DTED1 and Graticule layers but nothing is being displayed
in the VMAP layer. The DTED0, DTED1 and graticlule layers are displayed
fine.&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;As i stated above this works perfectly
in openmap 4.6, any help would be greatly appreciated.&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;cheers&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/VMAP-coastline-not-being-displayed-in-openmap-4.6.5-tp26207270p26207270.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26154153</id>
	<title>Re: JAI  and ImageTileLayer</title>
	<published>2009-11-01T11:46:51Z</published>
	<updated>2009-11-01T11:46:51Z</updated>
	<author>
		<name>Brian M Dube</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Version 1.1.3 should work and you can find it here:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;https://jai.dev.java.net/binary-builds.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://jai.dev.java.net/binary-builds.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Brian
&lt;br&gt;&lt;br&gt;On Wed, Oct 28, 2009 at 03:27:41PM +0100, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26154153&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Geir.Ovsttun@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In connection with ImageTilelayer which version of JAI should be used with openmap 4.6.5 ?
&lt;br&gt;&amp;gt; Download site ?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Med vennlig hilsen / Best regards, 
&lt;br&gt;&amp;gt; for Det Norske Veritas AS
&lt;br&gt;&amp;gt; Geir Øvsttun 
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;[To unsubscribe to this list send an email to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26154153&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majdart@...&lt;/a&gt;&amp;quot;
&lt;br&gt;with the following text in the BODY of the message &amp;quot;unsubscribe openmap-users&amp;quot;]
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JAI--and-ImageTileLayer-tp26095996p26154153.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26118439</id>
	<title>Re: Get Shape data from ShapeLayer</title>
	<published>2009-10-29T11:16:26Z</published>
	<updated>2009-10-29T11:16:26Z</updated>
	<author>
		<name>William Brightwell</name>
	</author>
	<content type="html">Excellent, I think this will work for me.
&lt;br&gt;&lt;br&gt;Thanks Don!
&lt;br&gt;&lt;br&gt;-Adam
&lt;br&gt;&lt;br&gt;&lt;br&gt;On 10/29/09 2:12 PM, &amp;quot;Don Dietrick&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26118439&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dietrick@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Adam,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You can ask the ShapeLayer for its OMGraphicList, using getList().
&lt;br&gt;&amp;gt; The OMGraphics contain the coordinates. &amp;nbsp;They will be in the
&lt;br&gt;&amp;gt; OMGraphicList in the order they were retrieved from the Shape file.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; For OMPoly objects, you can call getLatLonArray(). &amp;nbsp;Beware! &amp;nbsp;When you
&lt;br&gt;&amp;gt; get those coordinates, they will be in radians. &amp;nbsp;If you want to
&lt;br&gt;&amp;gt; inspect them as lat/lon decimal degrees, you should make a copy of
&lt;br&gt;&amp;gt; them before sending them to ProjMath.arrayRadToDeg(), which will do
&lt;br&gt;&amp;gt; the conversion in place. &amp;nbsp;If you don't make the copy, you mess up the
&lt;br&gt;&amp;gt; OMPoly.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hope this helps,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Don
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Oct 29, 2009, at 2:06 PM, Adam Brightwell wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; I am currently using ShapeLayer to display shapefiles. &amp;nbsp;However, I
&lt;br&gt;&amp;gt;&amp;gt; need to access the data (coordinates) that make up a given shape
&lt;br&gt;&amp;gt;&amp;gt; within that layer. &amp;nbsp;Any suggestions on how this might be accomplished?
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt; Adam
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; [To unsubscribe to this list send an email to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26118439&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majdart@...&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;gt; with the following text in the BODY of the message &amp;quot;unsubscribe
&lt;br&gt;&amp;gt; openmap-users&amp;quot;]
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;W. Adam Brightwell
&lt;br&gt;Software Engineer, MTCSC
&lt;br&gt;&lt;br&gt;Email: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26118439&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wbrightwell@...&lt;/a&gt;
&lt;br&gt;DCO: &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26118439&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;william.brightwell@...&lt;/a&gt;
&lt;br&gt;Desk: &amp;nbsp;843-218-3583
&lt;br&gt;Cell: &amp;nbsp;843-810-8701
&lt;br&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;[To unsubscribe to this list send an email to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26118439&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majdart@...&lt;/a&gt;&amp;quot;
&lt;br&gt;with the following text in the BODY of the message &amp;quot;unsubscribe openmap-users&amp;quot;]
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Get-Shape-data-from-ShapeLayer-tp26118097p26118439.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26118168</id>
	<title>Re: Get Shape data from ShapeLayer</title>
	<published>2009-10-29T11:12:28Z</published>
	<updated>2009-10-29T11:12:28Z</updated>
	<author>
		<name>Don Dietrick</name>
	</author>
	<content type="html">Hi Adam,
&lt;br&gt;&lt;br&gt;You can ask the ShapeLayer for its OMGraphicList, using getList(). &amp;nbsp; 
&lt;br&gt;The OMGraphics contain the coordinates. &amp;nbsp;They will be in the &amp;nbsp;
&lt;br&gt;OMGraphicList in the order they were retrieved from the Shape file.
&lt;br&gt;&lt;br&gt;For OMPoly objects, you can call getLatLonArray(). &amp;nbsp;Beware! &amp;nbsp;When you &amp;nbsp;
&lt;br&gt;get those coordinates, they will be in radians. &amp;nbsp;If you want to &amp;nbsp;
&lt;br&gt;inspect them as lat/lon decimal degrees, you should make a copy of &amp;nbsp;
&lt;br&gt;them before sending them to ProjMath.arrayRadToDeg(), which will do &amp;nbsp;
&lt;br&gt;the conversion in place. &amp;nbsp;If you don't make the copy, you mess up the &amp;nbsp;
&lt;br&gt;OMPoly.
&lt;br&gt;&lt;br&gt;Hope this helps,
&lt;br&gt;&lt;br&gt;Don
&lt;br&gt;&lt;br&gt;On Oct 29, 2009, at 2:06 PM, Adam Brightwell wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I am currently using ShapeLayer to display shapefiles. &amp;nbsp;However, I &amp;nbsp;
&lt;br&gt;&amp;gt; need to access the data (coordinates) that make up a given shape &amp;nbsp;
&lt;br&gt;&amp;gt; within that layer. &amp;nbsp;Any suggestions on how this might be accomplished?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Adam
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;[To unsubscribe to this list send an email to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26118168&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majdart@...&lt;/a&gt;&amp;quot;
&lt;br&gt;with the following text in the BODY of the message &amp;quot;unsubscribe openmap-users&amp;quot;]
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Get-Shape-data-from-ShapeLayer-tp26118097p26118168.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26118097</id>
	<title>Get Shape data from ShapeLayer</title>
	<published>2009-10-29T11:06:07Z</published>
	<updated>2009-10-29T11:06:07Z</updated>
	<author>
		<name>Adam Brightwell</name>
	</author>
	<content type="html">&lt;font face=&quot;Calibri, Verdana, Helvetica, Arial&quot;&gt;&lt;span style=&quot;font-size:11pt&quot;&gt;I am currently using ShapeLayer to display shapefiles.  However, I need to access the data (coordinates) that make up a given shape within that layer.  Any suggestions on how this might be accomplished?&lt;br&gt;

&lt;br&gt;
Thanks,&lt;br&gt;
Adam&lt;/span&gt;&lt;/font&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Get-Shape-data-from-ShapeLayer-tp26118097p26118097.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26110601</id>
	<title>Multi-colored map</title>
	<published>2009-10-29T03:28:23Z</published>
	<updated>2009-10-29T03:28:23Z</updated>
	<author>
		<name>Cooldoc</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I'm using the dcwpo-browse.shp Shape File to show a world map.
&lt;br&gt;I can set the color of the map with &amp;nbsp; &amp;nbsp;
&lt;br&gt;shapeLayerProps.put(&amp;quot;fillColor&amp;quot;, &amp;quot;baa180&amp;quot;);
&lt;br&gt;&lt;br&gt;However then all countries on the map have the same color.
&lt;br&gt;&lt;br&gt;Is it possible to colorize the countries on the map using 4 or 5 colors?
&lt;br&gt;&lt;br&gt;Something like that:
&lt;br&gt;&lt;a href=&quot;http://1.bp.blogspot.com/_ypalM7eSBEQ/SdyJ8ybrSbI/AAAAAAAAAag/0fikrUeGgMg/s200/chile-santiago.png&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://1.bp.blogspot.com/_ypalM7eSBEQ/SdyJ8ybrSbI/AAAAAAAAAag/0fikrUeGgMg/s200/chile-santiago.png&lt;/a&gt;&lt;br&gt;&lt;br&gt;Thanks in advance!
&lt;br&gt;-- 
&lt;br&gt;Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
&lt;br&gt;sicherer, schneller und einfacher! &lt;a href=&quot;http://portal.gmx.net/de/go/chbrowser&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://portal.gmx.net/de/go/chbrowser&lt;/a&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;[To unsubscribe to this list send an email to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26110601&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majdart@...&lt;/a&gt;&amp;quot;
&lt;br&gt;with the following text in the BODY of the message &amp;quot;unsubscribe openmap-users&amp;quot;]
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multi-colored-map-tp26110601p26110601.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26095996</id>
	<title>JAI  and ImageTileLayer</title>
	<published>2009-10-28T07:27:41Z</published>
	<updated>2009-10-28T07:27:41Z</updated>
	<author>
		<name>Geir.Ovsttun</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 3.2//EN&quot;&gt;
&lt;HTML&gt;
&lt;HEAD&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=iso-8859-1&quot;&gt;
&lt;META NAME=&quot;Generator&quot; CONTENT=&quot;MS Exchange Server version 6.5.7655.4&quot;&gt;
&lt;TITLE&gt;JAI  and ImageTileLayer &lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;!-- Converted from text/rtf format --&gt;

&lt;P&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;Hi,&lt;/FONT&gt;
&lt;/P&gt;

&lt;P&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;In connection with ImageTilelayer which version of JAI should be used with openmap 4.6.5 ?&lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;Download site ?&lt;/FONT&gt;
&lt;/P&gt;

&lt;P&gt;&lt;I&gt;&lt;FONT COLOR=&quot;#008080&quot; SIZE=1 FACE=&quot;Arial&quot;&gt;Med vennlig hilsen / Best regards,&lt;BR&gt;
for Det Norske Veritas AS&lt;BR&gt;
&lt;B&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;B&gt;&lt;/B&gt;&lt;B&gt;&lt;FONT COLOR=&quot;#008080&quot; SIZE=2 FACE=&quot;Tahoma&quot;&gt;Geir Øvsttun&lt;BR&gt;
&lt;/FONT&gt;&lt;/B&gt;&lt;FONT COLOR=&quot;#008080&quot; SIZE=1 FACE=&quot;Arial&quot;&gt;_______________________________&lt;/FONT&gt;&lt;/I&gt;

&lt;BR&gt;&lt;I&gt;&lt;FONT COLOR=&quot;#008080&quot; SIZE=1 FACE=&quot;Arial&quot;&gt;Senior Information Architect&lt;BR&gt;
Business Assurance / Defence&lt;/FONT&gt;&lt;/I&gt;

&lt;BR&gt;&lt;I&gt;&lt;FONT COLOR=&quot;#008080&quot; SIZE=1 FACE=&quot;Arial&quot;&gt;Web:&lt;/FONT&gt; &lt;/I&gt;&lt;A HREF=&quot;http://www.dnv.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;&lt;I&gt;&lt;U&gt;&lt;FONT COLOR=&quot;#0000FF&quot; SIZE=1 FACE=&quot;Arial&quot;&gt;www.dnv.com&lt;/FONT&gt;&lt;/U&gt;&lt;/I&gt;&lt;/A&gt;&lt;I&gt;&lt;/I&gt;
&lt;/P&gt;

&lt;br clear=all&gt; **************************************************************************************The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. If you have received this transmission in error, please immediately notify the sender by return e-mail and delete this message and its attachments. Any unauthorized use, copying or dissemination of this transmission is prohibited. Neither the confidentiality nor the integrity of this message can be vouched for following transmission on the Internet.**************************************************************************************
&lt;/BODY&gt;
&lt;/HTML&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JAI--and-ImageTileLayer-tp26095996p26095996.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26083771</id>
	<title>Re: Slow rendering when zoomed in</title>
	<published>2009-10-27T12:32:55Z</published>
	<updated>2009-10-27T12:32:55Z</updated>
	<author>
		<name>Don Dietrick</name>
	</author>
	<content type="html">Hi Gregg,
&lt;br&gt;&lt;br&gt;Its a good question, and we've taken a look at that. &amp;nbsp;You actually &amp;nbsp;
&lt;br&gt;have to consider all of the points off screen, because they might be &amp;nbsp;
&lt;br&gt;connected by great circle lines that intersect the map window, it's &amp;nbsp;
&lt;br&gt;hard to know for the general case. &amp;nbsp;Then, suppose you just take out &amp;nbsp;
&lt;br&gt;those points that are off screen and are connected by off screen lines &amp;nbsp;
&lt;br&gt;- you have to make sure that the line you insert to replace those &amp;nbsp;
&lt;br&gt;points and reconnect the polygon doesn't cut across the map window, &amp;nbsp;
&lt;br&gt;creating a hole at the corner or something. &amp;nbsp;There are a lot of &amp;nbsp;
&lt;br&gt;special cases.
&lt;br&gt;&lt;br&gt;- Don
&lt;br&gt;&lt;br&gt;On Oct 27, 2009, at 2:42 PM, Greg Jewell wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Don,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks for the clarification. &amp;nbsp;I realized after I hit send that I &amp;nbsp;
&lt;br&gt;&amp;gt; neglected to mention that of course this would also be dependent on &amp;nbsp;
&lt;br&gt;&amp;gt; the length of individual lines, and not just the scale. &amp;nbsp;I also &amp;nbsp;
&lt;br&gt;&amp;gt; realized that the method is Proj.forwardGreatPoly(), and not &amp;nbsp;
&lt;br&gt;&amp;gt; Poly.forwardGreatPoly(). &amp;nbsp;:)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I haven't looked closely at the method, so forgive me if this is &amp;nbsp;
&lt;br&gt;&amp;gt; already being considered, or if it's not even possible. &amp;nbsp;Since the &amp;nbsp;
&lt;br&gt;&amp;gt; performance slows down as things are zoomed in, is it possible to &amp;nbsp;
&lt;br&gt;&amp;gt; streamline the algorithm so that it doesn't consider most of the &amp;nbsp;
&lt;br&gt;&amp;gt; points that aren't currently displayable? &amp;nbsp;For example, if points 1 &amp;nbsp;
&lt;br&gt;&amp;gt; - 5 are not visible, could only points 1 and 5 be considered before &amp;nbsp;
&lt;br&gt;&amp;gt; calculating points 6 through whatever?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Greg
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Tue, Oct 27, 2009 at 2:01 PM, Don Dietrick &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26083771&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dietrick@...&lt;/a&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Hi Greg,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Scale is not the proper differentiator when choosing if &amp;nbsp;
&lt;br&gt;&amp;gt; LINETYPE_STRAIGHT can work for you instead of LINETYPE_GREATCIRCLE - &amp;nbsp;
&lt;br&gt;&amp;gt; it depends more in the distance between points. &amp;nbsp; When you really &amp;nbsp;
&lt;br&gt;&amp;gt; zoom in on a coordinate that must be joined to a coordinate far away &amp;nbsp;
&lt;br&gt;&amp;gt; (earth-wise), the direction of the connecting line from that point &amp;nbsp;
&lt;br&gt;&amp;gt; is different depending on line type.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; And that's why great circle lines take longer to project - the code &amp;nbsp;
&lt;br&gt;&amp;gt; has to figure out where the line goes, and it does that by creating &amp;nbsp;
&lt;br&gt;&amp;gt; a bunch of intermediate points between the end points that portray a &amp;nbsp;
&lt;br&gt;&amp;gt; curved line. &amp;nbsp;Calculating all of those points and then projecting &amp;nbsp;
&lt;br&gt;&amp;gt; them takes the extra projection calculation time for those line types.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; forwardGreatPoly is a known performance hog, consistently under &amp;nbsp;
&lt;br&gt;&amp;gt; scrutiny and we're always open to suggestions for improving it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Don
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Oct 27, 2009, at 1:37 PM, Greg Jewell wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I know it's been a while since we started talking about this, but I &amp;nbsp;
&lt;br&gt;&amp;gt; just discovered something that tremendously improved performance. &amp;nbsp; 
&lt;br&gt;&amp;gt; For my lines and polys, I was setting the line type to be &amp;nbsp;
&lt;br&gt;&amp;gt; LINETYPE_GREATCIRCLE. &amp;nbsp;On a hunch, I changed it to &amp;nbsp;
&lt;br&gt;&amp;gt; LINETYPE_STRAIGHT. &amp;nbsp;The difference is amazing.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; While I know that there are a lot more calculations in the great &amp;nbsp;
&lt;br&gt;&amp;gt; circle line types, I would have never expected this type of &amp;nbsp;
&lt;br&gt;&amp;gt; improvement. &amp;nbsp;Looking through the code, it appears that &amp;nbsp;
&lt;br&gt;&amp;gt; Poly.forwardGreatPoly(float[], int, boolean) is the ultimate source &amp;nbsp;
&lt;br&gt;&amp;gt; of the slowdowns. &amp;nbsp;I don't know whether there is any way to improve &amp;nbsp;
&lt;br&gt;&amp;gt; the performance of this method, but it may be worth investigating &amp;nbsp;
&lt;br&gt;&amp;gt; for future releases.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; With that said, OMPoly defaults to LINETYPE_UNKNOWN if no line type &amp;nbsp;
&lt;br&gt;&amp;gt; is specified. &amp;nbsp;In terms of rendering the polygon, it appears that &amp;nbsp;
&lt;br&gt;&amp;gt; this follows the same path as LINETYPE_STRAIGHT. &amp;nbsp;Is there any kind &amp;nbsp;
&lt;br&gt;&amp;gt; of rule of thumb the map scale and line type? &amp;nbsp;At large (zoomed out) &amp;nbsp;
&lt;br&gt;&amp;gt; scales, I would expect great circle to be more appropriate. &amp;nbsp;At &amp;nbsp;
&lt;br&gt;&amp;gt; small scales (zoomed in), straight lines probably are sufficient.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks again,
&lt;br&gt;&amp;gt; Greg
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Fri, Sep 25, 2009 at 5:27 PM, Greg Jewell &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26083771&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;greg17@...&lt;/a&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Hi Don,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The only layer that I am using is a single instance of a slightly &amp;nbsp;
&lt;br&gt;&amp;gt; modified (subclassed) OMGraphicHandlerLayer. &amp;nbsp;I did try setting the &amp;nbsp;
&lt;br&gt;&amp;gt; Environment.doingXWindowsWorkaround flag because I saw it mentioned &amp;nbsp;
&lt;br&gt;&amp;gt; in the forums. &amp;nbsp;I seem to remember having difficulty with it, &amp;nbsp;
&lt;br&gt;&amp;gt; though. &amp;nbsp;I thought that the code wanted a Unix/Linux OS before it &amp;nbsp;
&lt;br&gt;&amp;gt; did any special processing based on the flag. &amp;nbsp;I even tried to force &amp;nbsp;
&lt;br&gt;&amp;gt; use of OpenGL, but that actually caused other problems for me so I &amp;nbsp;
&lt;br&gt;&amp;gt; abandoned it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I will try the environment flag again on Monday. &amp;nbsp;I may have been &amp;nbsp;
&lt;br&gt;&amp;gt; doing something silly before.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks for your help!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Greg
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Don Dietrick wrote:
&lt;br&gt;&amp;gt; Hi Greg,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've been playing around with this to see if I can reproduce the &amp;nbsp;
&lt;br&gt;&amp;gt; behavior you describe, and I think I've seen it in certain &amp;nbsp;
&lt;br&gt;&amp;gt; situations where there are OMGraphics being projected in pixel space &amp;nbsp;
&lt;br&gt;&amp;gt; very far away from the window space. &amp;nbsp;I haven't had a chance to &amp;nbsp;
&lt;br&gt;&amp;gt; really take a look at it yet past that.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Do you notice if it occurs when certain layers are being used?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There is an Environment flag that might help, setting &amp;nbsp;
&lt;br&gt;&amp;gt; Environment.doingXWindowsWorkaround == true, if that's not already &amp;nbsp;
&lt;br&gt;&amp;gt; being set.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - Don
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Sep 14, 2009, at 10:55 AM, Greg Jewell wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi All,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm experiencing very significant slowdowns in rendering when zoomed &amp;nbsp;
&lt;br&gt;&amp;gt; into the map at a scale of 1:100,000 or closer. &amp;nbsp;The closer I get, &amp;nbsp;
&lt;br&gt;&amp;gt; the slower the rendering becomes. &amp;nbsp;I've searched the archives for &amp;nbsp;
&lt;br&gt;&amp;gt; similar problems, and discovered a few people mention it. &amp;nbsp;However, &amp;nbsp;
&lt;br&gt;&amp;gt; the only things that I've seen all say that it's probably a Windows &amp;nbsp;
&lt;br&gt;&amp;gt; clipping issue. &amp;nbsp;Is there any more detail to this, or can somebody &amp;nbsp;
&lt;br&gt;&amp;gt; point me in a direction to resolve the problem?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Possibly pertinent information:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Windows XP SP2 with 3 GB RAM
&lt;br&gt;&amp;gt; OpenMap 4.6.4
&lt;br&gt;&amp;gt; It appears that this is related to OMLine, OMPoly, etc., and not to &amp;nbsp;
&lt;br&gt;&amp;gt; OMRaster-based graphics.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Greg Jewell
&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;
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;[To unsubscribe to this list send an email to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26083771&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majdart@...&lt;/a&gt;&amp;quot;
&lt;br&gt;with the following text in the BODY of the message &amp;quot;unsubscribe openmap-users&amp;quot;]
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Slow-rendering-when-zoomed-in-tp25437501p26083771.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26083557</id>
	<title>Re: Where to pass an array of parameters directly to display locations every 5 seconds instead of using CVS file and the properties file?</title>
	<published>2009-10-27T12:19:19Z</published>
	<updated>2009-10-27T12:19:19Z</updated>
	<author>
		<name>Don Dietrick</name>
	</author>
	<content type="html">Hi Moe,
&lt;br&gt;&lt;br&gt;Sorry for the delay in getting back to you on this. &amp;nbsp;You can use a &amp;nbsp;
&lt;br&gt;TimerLocationLayer instead of LocationLayer that has a timer build &amp;nbsp;
&lt;br&gt;in. &amp;nbsp;It will reload the data at the interval you specify:
&lt;br&gt;&lt;br&gt;&amp;nbsp;From the javadocs:
&lt;br&gt;&lt;br&gt;/**
&lt;br&gt;&amp;nbsp; * The TimerLocationLayer is a LocationLayer that has a timer to
&lt;br&gt;&amp;nbsp; * automatically relod data at specified interval.
&lt;br&gt;&amp;nbsp; *
&lt;br&gt;&amp;nbsp; * The properties for this layer are the same as a LocationLayer, with
&lt;br&gt;&amp;nbsp; * the addition of two:
&lt;br&gt;&amp;nbsp; * &amp;lt;P&amp;gt;
&lt;br&gt;&amp;nbsp; *
&lt;br&gt;&amp;nbsp; * &amp;lt;pre&amp;gt;
&lt;br&gt;&amp;nbsp; *
&lt;br&gt;&amp;nbsp; * &amp;nbsp;# Specify the interval (milliseconds) for the timer. Default is &amp;nbsp;
&lt;br&gt;10 seconds.
&lt;br&gt;&amp;nbsp; * &amp;nbsp;layer.updateTimerInterval=10000
&lt;br&gt;&amp;nbsp; * &amp;nbsp;# Auto-start/stop the timer when the layer is part of the Default
&lt;br&gt;&amp;nbsp; * &amp;nbsp;# is true. &amp;nbsp;There is a control to start/stop the timer on the
&lt;br&gt;&amp;nbsp; * &amp;nbsp;# palette.
&lt;br&gt;&amp;nbsp; * &amp;nbsp;layer.automaticTimer=true;
&lt;br&gt;&amp;nbsp; *
&lt;br&gt;&amp;nbsp; * &amp;lt;/pre&amp;gt;
&lt;br&gt;&amp;nbsp; */
&lt;br&gt;&lt;br&gt;Hope this helps,
&lt;br&gt;&lt;br&gt;Don
&lt;br&gt;&lt;br&gt;On Oct 27, 2009, at 3:07 PM, Moe Zakeri wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Don,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I need to pass my array of parameters directly to openmap and to &amp;nbsp;
&lt;br&gt;&amp;gt; display new locations periodically - for example every 5 seconds &amp;nbsp;
&lt;br&gt;&amp;gt; instead of writing my parameters to the CVS file, set it in the &amp;nbsp;
&lt;br&gt;&amp;gt; properties file, and reloading the properties file manually. Where &amp;nbsp;
&lt;br&gt;&amp;gt; is the shortcut to do this in the API?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I see that createLocation is responsible to make new locations. &amp;nbsp;Is &amp;nbsp;
&lt;br&gt;&amp;gt; this where I have to send my array of parameters to?
&lt;br&gt;&amp;gt; protected Location createLocation(float lat, float lon, &amp;nbsp;
&lt;br&gt;&amp;gt; java.lang.String name, java.lang.String iconURL)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Also in LocationLayer, reloadData() can reload my locations &amp;nbsp;
&lt;br&gt;&amp;gt; periodically when calling doPrepare(), am I right?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thank you,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Moe
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;[To unsubscribe to this list send an email to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26083557&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majdart@...&lt;/a&gt;&amp;quot;
&lt;br&gt;with the following text in the BODY of the message &amp;quot;unsubscribe openmap-users&amp;quot;]
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Slow-rendering-when-zoomed-in-tp25437501p26083557.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26083411</id>
	<title>Where to pass an array of parameters directly to display locations every 5 seconds instead of using CVS file and the properties file?</title>
	<published>2009-10-27T12:07:28Z</published>
	<updated>2009-10-27T12:07:28Z</updated>
	<author>
		<name>Moe Zakeri</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:x=&quot;urn:schemas-microsoft-com:office:excel&quot; xmlns:p=&quot;urn:schemas-microsoft-com:office:powerpoint&quot; xmlns:a=&quot;urn:schemas-microsoft-com:office:access&quot; xmlns:dt=&quot;uuid:C2F41010-65B3-11d1-A29F-00AA00C14882&quot; xmlns:s=&quot;uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882&quot; xmlns:rs=&quot;urn:schemas-microsoft-com:rowset&quot; xmlns:Z=&quot;urn:schemas-microsoft-com:&quot; xmlns:b=&quot;urn:schemas-microsoft-com:office:publisher&quot; xmlns:ss=&quot;urn:schemas-microsoft-com:office:spreadsheet&quot; xmlns:c=&quot;urn:schemas-microsoft-com:office:component:spreadsheet&quot; xmlns:odc=&quot;urn:schemas-microsoft-com:office:odc&quot; xmlns:oa=&quot;urn:schemas-microsoft-com:office:activation&quot; xmlns:html=&quot;http://www.w3.org/TR/REC-html40&quot; xmlns:q=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:rtc=&quot;http://microsoft.com/officenet/conferencing&quot; xmlns:D=&quot;DAV:&quot; xmlns:Repl=&quot;http://schemas.microsoft.com/repl/&quot; xmlns:mt=&quot;http://schemas.microsoft.com/sharepoint/soap/meetings/&quot; xmlns:x2=&quot;http://schemas.microsoft.com/office/excel/2003/xml&quot; xmlns:ppda=&quot;http://www.passport.com/NameSpace.xsd&quot; xmlns:ois=&quot;http://schemas.microsoft.com/sharepoint/soap/ois/&quot; xmlns:dir=&quot;http://schemas.microsoft.com/sharepoint/soap/directory/&quot; xmlns:ds=&quot;http://www.w3.org/2000/09/xmldsig#&quot; xmlns:dsp=&quot;http://schemas.microsoft.com/sharepoint/dsp&quot; xmlns:udc=&quot;http://schemas.microsoft.com/data/udc&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:sub=&quot;http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/&quot; xmlns:ec=&quot;http://www.w3.org/2001/04/xmlenc#&quot; xmlns:sp=&quot;http://schemas.microsoft.com/sharepoint/&quot; xmlns:sps=&quot;http://schemas.microsoft.com/sharepoint/soap/&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:udcs=&quot;http://schemas.microsoft.com/data/udc/soap&quot; xmlns:udcxf=&quot;http://schemas.microsoft.com/data/udc/xmlfile&quot; xmlns:udcp2p=&quot;http://schemas.microsoft.com/data/udc/parttopart&quot; xmlns:wf=&quot;http://schemas.microsoft.com/sharepoint/soap/workflow/&quot; xmlns:dsss=&quot;http://schemas.microsoft.com/office/2006/digsig-setup&quot; xmlns:dssi=&quot;http://schemas.microsoft.com/office/2006/digsig&quot; xmlns:mdssi=&quot;http://schemas.openxmlformats.org/package/2006/digital-signature&quot; xmlns:mver=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns:mrels=&quot;http://schemas.openxmlformats.org/package/2006/relationships&quot; xmlns:spwp=&quot;http://microsoft.com/sharepoint/webpartpages&quot; xmlns:ex12t=&quot;http://schemas.microsoft.com/exchange/services/2006/types&quot; xmlns:ex12m=&quot;http://schemas.microsoft.com/exchange/services/2006/messages&quot; xmlns:pptsl=&quot;http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/&quot; xmlns:spsl=&quot;http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService&quot; xmlns:st=&quot;&amp;#1;&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;div&gt;

&lt;div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Hi Don,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;I need to pass my array of parameters directly to openmap and to
display new locations periodically - for example every 5 seconds instead of writing
my parameters to the CVS file, set it in the properties file, and reloading the
properties file manually. Where is the shortcut to do this in the API?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;I see that &lt;i&gt;createLocation&lt;/i&gt; is responsible to make new
locations. &amp;nbsp;Is this where I have to send my array of parameters to?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;i&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;protected Location createLocation(float lat, float lon, java.lang.String
name, java.lang.String iconURL)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Also in LocationLayer, &lt;i&gt;reloadData()&lt;/i&gt; can reload my
locations periodically when calling &lt;i&gt;doPrepare()&lt;/i&gt;, am I right?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Thank you,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Moe&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Slow-rendering-when-zoomed-in-tp25437501p26083411.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26082992</id>
	<title>Re: Slow rendering when zoomed in</title>
	<published>2009-10-27T11:42:46Z</published>
	<updated>2009-10-27T11:42:46Z</updated>
	<author>
		<name>Greg Jewell-2</name>
	</author>
	<content type="html">Hi Don,&lt;br&gt;&lt;br&gt;Thanks for the clarification.  I realized after I hit send that I neglected to mention that of course this would also be dependent on the length of individual lines, and not just the scale.  I also realized that the method is Proj.forwardGreatPoly(), and not Poly.forwardGreatPoly().  :)&lt;br&gt;
&lt;br&gt;I haven&amp;#39;t looked closely at the method, so forgive me if this is already being considered, or if it&amp;#39;s not even possible.  Since the performance slows down as things are zoomed in, is it possible to streamline the algorithm so that it doesn&amp;#39;t consider most of the points that aren&amp;#39;t currently displayable?  For example, if points 1 - 5 are not visible, could only points 1 and 5 be considered before calculating points 6 through whatever?&lt;br&gt;
&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Greg&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Oct 27, 2009 at 2:01 PM, Don Dietrick &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26082992&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dietrick@...&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;
Hi Greg,&lt;br&gt;
&lt;br&gt;
Scale is not the proper differentiator when choosing if LINETYPE_STRAIGHT can work for you instead of LINETYPE_GREATCIRCLE - it depends more in the distance between points.   When you really zoom in on a coordinate that must be joined to a coordinate far away (earth-wise), the direction of the connecting line from that point is different depending on line type.&lt;br&gt;

&lt;br&gt;
And that&amp;#39;s why great circle lines take longer to project - the code has to figure out where the line goes, and it does that by creating a bunch of intermediate points between the end points that portray a curved line.  Calculating all of those points and then projecting them takes the extra projection calculation time for those line types.&lt;br&gt;

&lt;br&gt;
forwardGreatPoly is a known performance hog, consistently under scrutiny and we&amp;#39;re always open to suggestions for improving it.&lt;br&gt;
&lt;br&gt;
Cheers,&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;
&lt;br&gt;
Don&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;br&gt;
On Oct 27, 2009, at 1:37 PM, Greg Jewell wrote:&lt;br&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;
I know it&amp;#39;s been a while since we started talking about this, but I just discovered something that tremendously improved performance.  For my lines and polys, I was setting the line type to be LINETYPE_GREATCIRCLE.  On a hunch, I changed it to LINETYPE_STRAIGHT.  The difference is amazing.&lt;br&gt;

&lt;br&gt;
While I know that there are a lot more calculations in the great circle line types, I would have never expected this type of improvement.  Looking through the code, it appears that Poly.forwardGreatPoly(float[], int, boolean) is the ultimate source of the slowdowns.  I don&amp;#39;t know whether there is any way to improve the performance of this method, but it may be worth investigating for future releases.&lt;br&gt;

&lt;br&gt;
With that said, OMPoly defaults to LINETYPE_UNKNOWN if no line type is specified.  In terms of rendering the polygon, it appears that this follows the same path as LINETYPE_STRAIGHT.  Is there any kind of rule of thumb the map scale and line type?  At large (zoomed out) scales, I would expect great circle to be more appropriate.  At small scales (zoomed in), straight lines probably are sufficient.&lt;br&gt;

&lt;br&gt;
&lt;br&gt;
Thanks again,&lt;br&gt;
Greg&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
On Fri, Sep 25, 2009 at 5:27 PM, Greg Jewell &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26082992&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;greg17@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
Hi Don,&lt;br&gt;
&lt;br&gt;
The only layer that I am using is a single instance of a slightly modified (subclassed) OMGraphicHandlerLayer.  I did try setting the Environment.doingXWindowsWorkaround flag because I saw it mentioned in the forums.  I seem to remember having difficulty with it, though.  I thought that the code wanted a Unix/Linux OS before it did any special processing based on the flag.  I even tried to force use of OpenGL, but that actually caused other problems for me so I abandoned it.&lt;br&gt;

&lt;br&gt;
I will try the environment flag again on Monday.  I may have been doing something silly before.&lt;br&gt;
&lt;br&gt;
Thanks for your help!&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Greg&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Don Dietrick wrote:&lt;br&gt;
Hi Greg,&lt;br&gt;
&lt;br&gt;
I&amp;#39;ve been playing around with this to see if I can reproduce the behavior you describe, and I think I&amp;#39;ve seen it in certain situations where there are OMGraphics being projected in pixel space very far away from the window space.  I haven&amp;#39;t had a chance to really take a look at it yet past that.&lt;br&gt;

&lt;br&gt;
Do you notice if it occurs when certain layers are being used?&lt;br&gt;
&lt;br&gt;
There is an Environment flag that might help, setting Environment.doingXWindowsWorkaround == true, if that&amp;#39;s not already being set.&lt;br&gt;
&lt;br&gt;
- Don&lt;br&gt;
&lt;br&gt;
On Sep 14, 2009, at 10:55 AM, Greg Jewell wrote:&lt;br&gt;
&lt;br&gt;
Hi All,&lt;br&gt;
&lt;br&gt;
I&amp;#39;m experiencing very significant slowdowns in rendering when zoomed into the map at a scale of 1:100,000 or closer.  The closer I get, the slower the rendering becomes.  I&amp;#39;ve searched the archives for similar problems, and discovered a few people mention it.  However, the only things that I&amp;#39;ve seen all say that it&amp;#39;s probably a Windows clipping issue.  Is there any more detail to this, or can somebody point me in a direction to resolve the problem?&lt;br&gt;

&lt;br&gt;
Possibly pertinent information:&lt;br&gt;
&lt;br&gt;
Windows XP SP2 with 3 GB RAM&lt;br&gt;
OpenMap 4.6.4&lt;br&gt;
It appears that this is related to OMLine, OMPoly, etc., and not to OMRaster-based graphics.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Greg Jewell&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Slow-rendering-when-zoomed-in-tp25437501p26082992.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26082443</id>
	<title>Re: Slow rendering when zoomed in</title>
	<published>2009-10-27T11:01:29Z</published>
	<updated>2009-10-27T11:01:29Z</updated>
	<author>
		<name>Don Dietrick</name>
	</author>
	<content type="html">Hi Greg,
&lt;br&gt;&lt;br&gt;Scale is not the proper differentiator when choosing if &amp;nbsp;
&lt;br&gt;LINETYPE_STRAIGHT can work for you instead of LINETYPE_GREATCIRCLE - &amp;nbsp;
&lt;br&gt;it depends more in the distance between points. &amp;nbsp; When you really zoom &amp;nbsp;
&lt;br&gt;in on a coordinate that must be joined to a coordinate far away (earth- 
&lt;br&gt;wise), the direction of the connecting line from that point is &amp;nbsp;
&lt;br&gt;different depending on line type.
&lt;br&gt;&lt;br&gt;And that's why great circle lines take longer to project - the code &amp;nbsp;
&lt;br&gt;has to figure out where the line goes, and it does that by creating a &amp;nbsp;
&lt;br&gt;bunch of intermediate points between the end points that portray a &amp;nbsp;
&lt;br&gt;curved line. &amp;nbsp;Calculating all of those points and then projecting them &amp;nbsp;
&lt;br&gt;takes the extra projection calculation time for those line types.
&lt;br&gt;&lt;br&gt;forwardGreatPoly is a known performance hog, consistently under &amp;nbsp;
&lt;br&gt;scrutiny and we're always open to suggestions for improving it.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;Don
&lt;br&gt;&lt;br&gt;On Oct 27, 2009, at 1:37 PM, Greg Jewell wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I know it's been a while since we started talking about this, but I &amp;nbsp;
&lt;br&gt;&amp;gt; just discovered something that tremendously improved performance. &amp;nbsp; 
&lt;br&gt;&amp;gt; For my lines and polys, I was setting the line type to be &amp;nbsp;
&lt;br&gt;&amp;gt; LINETYPE_GREATCIRCLE. &amp;nbsp;On a hunch, I changed it to &amp;nbsp;
&lt;br&gt;&amp;gt; LINETYPE_STRAIGHT. &amp;nbsp;The difference is amazing.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; While I know that there are a lot more calculations in the great &amp;nbsp;
&lt;br&gt;&amp;gt; circle line types, I would have never expected this type of &amp;nbsp;
&lt;br&gt;&amp;gt; improvement. &amp;nbsp;Looking through the code, it appears that &amp;nbsp;
&lt;br&gt;&amp;gt; Poly.forwardGreatPoly(float[], int, boolean) is the ultimate source &amp;nbsp;
&lt;br&gt;&amp;gt; of the slowdowns. &amp;nbsp;I don't know whether there is any way to improve &amp;nbsp;
&lt;br&gt;&amp;gt; the performance of this method, but it may be worth investigating &amp;nbsp;
&lt;br&gt;&amp;gt; for future releases.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; With that said, OMPoly defaults to LINETYPE_UNKNOWN if no line type &amp;nbsp;
&lt;br&gt;&amp;gt; is specified. &amp;nbsp;In terms of rendering the polygon, it appears that &amp;nbsp;
&lt;br&gt;&amp;gt; this follows the same path as LINETYPE_STRAIGHT. &amp;nbsp;Is there any kind &amp;nbsp;
&lt;br&gt;&amp;gt; of rule of thumb the map scale and line type? &amp;nbsp;At large (zoomed out) &amp;nbsp;
&lt;br&gt;&amp;gt; scales, I would expect great circle to be more appropriate. &amp;nbsp;At &amp;nbsp;
&lt;br&gt;&amp;gt; small scales (zoomed in), straight lines probably are sufficient.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks again,
&lt;br&gt;&amp;gt; Greg
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Fri, Sep 25, 2009 at 5:27 PM, Greg Jewell &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26082443&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;greg17@...&lt;/a&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Hi Don,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The only layer that I am using is a single instance of a slightly &amp;nbsp;
&lt;br&gt;&amp;gt; modified (subclassed) OMGraphicHandlerLayer. &amp;nbsp;I did try setting the &amp;nbsp;
&lt;br&gt;&amp;gt; Environment.doingXWindowsWorkaround flag because I saw it mentioned &amp;nbsp;
&lt;br&gt;&amp;gt; in the forums. &amp;nbsp;I seem to remember having difficulty with it, &amp;nbsp;
&lt;br&gt;&amp;gt; though. &amp;nbsp;I thought that the code wanted a Unix/Linux OS before it &amp;nbsp;
&lt;br&gt;&amp;gt; did any special processing based on the flag. &amp;nbsp;I even tried to force &amp;nbsp;
&lt;br&gt;&amp;gt; use of OpenGL, but that actually caused other problems for me so I &amp;nbsp;
&lt;br&gt;&amp;gt; abandoned it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I will try the environment flag again on Monday. &amp;nbsp;I may have been &amp;nbsp;
&lt;br&gt;&amp;gt; doing something silly before.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks for your help!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Greg
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Don Dietrick wrote:
&lt;br&gt;&amp;gt; Hi Greg,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've been playing around with this to see if I can reproduce the &amp;nbsp;
&lt;br&gt;&amp;gt; behavior you describe, and I think I've seen it in certain &amp;nbsp;
&lt;br&gt;&amp;gt; situations where there are OMGraphics being projected in pixel space &amp;nbsp;
&lt;br&gt;&amp;gt; very far away from the window space. &amp;nbsp;I haven't had a chance to &amp;nbsp;
&lt;br&gt;&amp;gt; really take a look at it yet past that.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Do you notice if it occurs when certain layers are being used?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There is an Environment flag that might help, setting &amp;nbsp;
&lt;br&gt;&amp;gt; Environment.doingXWindowsWorkaround == true, if that's not already &amp;nbsp;
&lt;br&gt;&amp;gt; being set.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - Don
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Sep 14, 2009, at 10:55 AM, Greg Jewell wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi All,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm experiencing very significant slowdowns in rendering when zoomed &amp;nbsp;
&lt;br&gt;&amp;gt; into the map at a scale of 1:100,000 or closer. &amp;nbsp;The closer I get, &amp;nbsp;
&lt;br&gt;&amp;gt; the slower the rendering becomes. &amp;nbsp;I've searched the archives for &amp;nbsp;
&lt;br&gt;&amp;gt; similar problems, and discovered a few people mention it. &amp;nbsp;However, &amp;nbsp;
&lt;br&gt;&amp;gt; the only things that I've seen all say that it's probably a Windows &amp;nbsp;
&lt;br&gt;&amp;gt; clipping issue. &amp;nbsp;Is there any more detail to this, or can somebody &amp;nbsp;
&lt;br&gt;&amp;gt; point me in a direction to resolve the problem?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Possibly pertinent information:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Windows XP SP2 with 3 GB RAM
&lt;br&gt;&amp;gt; OpenMap 4.6.4
&lt;br&gt;&amp;gt; It appears that this is related to OMLine, OMPoly, etc., and not to &amp;nbsp;
&lt;br&gt;&amp;gt; OMRaster-based graphics.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Greg Jewell
&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;/div&gt;&lt;br&gt;--
&lt;br&gt;[To unsubscribe to this list send an email to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26082443&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majdart@...&lt;/a&gt;&amp;quot;
&lt;br&gt;with the following text in the BODY of the message &amp;quot;unsubscribe openmap-users&amp;quot;]
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Slow-rendering-when-zoomed-in-tp25437501p26082443.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26082079</id>
	<title>Re: Slow rendering when zoomed in</title>
	<published>2009-10-27T10:37:59Z</published>
	<updated>2009-10-27T10:37:59Z</updated>
	<author>
		<name>Greg Jewell-2</name>
	</author>
	<content type="html">I know it&amp;#39;s been a while since we started talking about this, but I just discovered something that tremendously improved performance.  For my lines and polys, I was setting the line type to be LINETYPE_GREATCIRCLE.  On a hunch, I changed it to LINETYPE_STRAIGHT.  The difference is amazing.&lt;br&gt;
&lt;br&gt;While I know that there are a lot more calculations in the great circle line types, I would have never expected this type of improvement.  Looking through the code, it appears that Poly.forwardGreatPoly(float[], int, boolean) is the ultimate source of the slowdowns.  I don&amp;#39;t know whether there is any way to improve the performance of this method, but it may be worth investigating for future releases.&lt;br&gt;
&lt;br&gt;With that said, OMPoly defaults to LINETYPE_UNKNOWN if no line type is specified.  In terms of rendering the polygon, it appears that this follows the same path as LINETYPE_STRAIGHT.  Is there any kind of rule of thumb the map scale and line type?  At large (zoomed out) scales, I would expect great circle to be more appropriate.  At small scales (zoomed in), straight lines probably are sufficient.&lt;br&gt;
&lt;br&gt;&lt;br&gt;Thanks again,&lt;br&gt;Greg&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Sep 25, 2009 at 5:27 PM, Greg Jewell &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26082079&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;greg17@...&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;
Hi Don,&lt;br&gt;
&lt;br&gt;
The only layer that I am using is a single instance of a slightly modified (subclassed) OMGraphicHandlerLayer.  I did try setting the Environment.doingXWindowsWorkaround flag because I saw it mentioned in the forums.  I seem to remember having difficulty with it, though.  I thought that the code wanted a Unix/Linux OS before it did any special processing based on the flag.  I even tried to force use of OpenGL, but that actually caused other problems for me so I abandoned it.&lt;br&gt;

&lt;br&gt;
I will try the environment flag again on Monday.  I may have been doing something silly before.&lt;br&gt;
&lt;br&gt;
Thanks for your help!&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Greg&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Don Dietrick 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;
Hi Greg,&lt;br&gt;
&lt;br&gt;
I&amp;#39;ve been playing around with this to see if I can reproduce the behavior you describe, and I think I&amp;#39;ve seen it in certain situations where there are OMGraphics being projected in pixel space very far away from the window space.  I haven&amp;#39;t had a chance to really take a look at it yet past that.&lt;br&gt;

&lt;br&gt;
Do you notice if it occurs when certain layers are being used?&lt;br&gt;
&lt;br&gt;
There is an Environment flag that might help, setting Environment.doingXWindowsWorkaround == true, if that&amp;#39;s not already being set.&lt;br&gt;
&lt;br&gt;
- Don&lt;br&gt;
&lt;br&gt;
On Sep 14, 2009, at 10:55 AM, Greg Jewell wrote:&lt;br&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;
Hi All,&lt;br&gt;
&lt;br&gt;
I&amp;#39;m experiencing very significant slowdowns in rendering when zoomed into the map at a scale of 1:100,000 or closer.  The closer I get, the slower the rendering becomes.  I&amp;#39;ve searched the archives for similar problems, and discovered a few people mention it.  However, the only things that I&amp;#39;ve seen all say that it&amp;#39;s probably a Windows clipping issue.  Is there any more detail to this, or can somebody point me in a direction to resolve the problem?&lt;br&gt;

&lt;br&gt;
Possibly pertinent information:&lt;br&gt;
&lt;br&gt;
Windows XP SP2 with 3 GB RAM&lt;br&gt;
OpenMap 4.6.4&lt;br&gt;
It appears that this is related to OMLine, OMPoly, etc., and not to OMRaster-based graphics.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Greg Jewell&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Slow-rendering-when-zoomed-in-tp25437501p26082079.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26075908</id>
	<title>Date: Tue, 27 Oct 2009 11:48:18 +0100</title>
	<published>2009-10-27T04:05:46Z</published>
	<updated>2009-10-27T04:05:46Z</updated>
	<author>
		<name>Geir.Ovsttun</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 3.2//EN&quot;&gt;
&lt;HTML&gt;
&lt;HEAD&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=iso-8859-1&quot;&gt;
&lt;META NAME=&quot;Generator&quot; CONTENT=&quot;MS Exchange Server version 6.5.7655.4&quot;&gt;
&lt;TITLE&gt;&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;!-- Converted from text/rtf format --&gt;

&lt;P&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;who openmap-users&lt;/FONT&gt;
&lt;/P&gt;

&lt;br clear=all&gt; **************************************************************************************The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. If you have received this transmission in error, please immediately notify the sender by return e-mail and delete this message and its attachments. Any unauthorized use, copying or dissemination of this transmission is prohibited. Neither the confidentiality nor the integrity of this message can be vouched for following transmission on the Internet.**************************************************************************************
&lt;/BODY&gt;
&lt;/HTML&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Date%3A-Tue%2C-27-Oct-2009-11%3A48%3A18-%2B0100-tp26075908p26075908.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26068111</id>
	<title>Re: shapefile header fields, File Length</title>
	<published>2009-10-26T13:44:25Z</published>
	<updated>2009-10-26T13:44:25Z</updated>
	<author>
		<name>Don Dietrick</name>
	</author>
	<content type="html">Hi Nathan,
&lt;br&gt;&lt;br&gt;I've just checked a couple of shape files that I've recently created via 
&lt;br&gt;the method outlined below and the header information seems reasonable, 
&lt;br&gt;and the reading code isn't complaining about file length mismatches.
&lt;br&gt;&lt;br&gt;- Don
&lt;br&gt;&lt;br&gt;Reese, Nathan wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Don,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have reworked my shapefile generation code to use the classes 
&lt;br&gt;&amp;gt; suggested. &amp;nbsp;See the code fragment below.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; EsriGraphicList polygonList = new EsriPolygonList();
&lt;br&gt;&amp;gt; DbfTableModel polygonModel = new DbfTableModel(7);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; //Build graphics
&lt;br&gt;&amp;gt; while (ellipses to add) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;OMEllipse ellipse = new OMEllipse(centerPoint, majorAxis, 
&lt;br&gt;&amp;gt; &amp;nbsp;minorAxis, Length.NM, Math.toRadians(azimuth-90));
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;float[] ellipsePoints = ellipse.createLatLonPoints();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;OMPoly polyGraphic = new OMPoly(ellipsePoints, 
&lt;br&gt;&amp;gt; OMGraphic.DECIMAL_DEGREES, OMGraphic.LINETYPE_GREATCIRCLE);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;polygonList.add(polyGraphic);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;ArrayList&amp;lt;String&amp;gt; attributes = new ArrayList&amp;lt;String&amp;gt;();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;polygonModel.addRecord(attributes);
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; //Write files
&lt;br&gt;&amp;gt; EsriShapeExport ese = new EsriShapeExport(polygonList, polygonModel, 
&lt;br&gt;&amp;gt; &amp;quot;testShapefile&amp;quot;);
&lt;br&gt;&amp;gt; ese.export();
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The shapefile generated with the reworked method is identical to the 
&lt;br&gt;&amp;gt; shapefile generated with the original method, including the file 
&lt;br&gt;&amp;gt; length header field. &amp;nbsp;Have you had a chance to dig into the length 
&lt;br&gt;&amp;gt; generation code and see if anything is amiss?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Nathan
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Don Dietrick [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26068111&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dietrick@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Tue 10/20/2009 11:33 AM
&lt;br&gt;&amp;gt; To: Reese, Nathan
&lt;br&gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26068111&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;openmap-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Re: [OpenMap Users] shapefile header fields, File Length
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi Nathan,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I admit I haven't tested this method of doing this, but your code 
&lt;br&gt;&amp;gt; looks like it should work. I'll give it a shot later.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; If I were going to create a shape file, I'd do something like this;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; OMGraphicList omgl = new OMGraphicList();
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ... add OMGraphics to omgl
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; DbfTableModel dbf = new DbfTableModel(..);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ... add entries appropriate for OMGraphics
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; EsriShapeExport ese = EsriShapeExport(omgl, dbf, my_file_path);
&lt;br&gt;&amp;gt; ese.export();
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - Don
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Oct 20, 2009, at 10:44 AM, Reese, Nathan wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I am creating a shapefile with polygons. &amp;nbsp;Below is the code fragment 
&lt;br&gt;&amp;gt; &amp;gt; that I am using to generate a shapefile, I have omitted dbf and shx 
&lt;br&gt;&amp;gt; &amp;gt; code for simplicity. &amp;nbsp;Let me know if you need any additional 
&lt;br&gt;&amp;gt; &amp;gt; information.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; EsriLayer polygonLayer = new EsriLayer(&amp;quot;testShapefile&amp;quot;, 
&lt;br&gt;&amp;gt; &amp;gt; ShapeConstants.SHAPE_TYPE_POLYGON, 7);
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; //Build dbf table
&lt;br&gt;&amp;gt; &amp;gt; ...
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; //Build layer
&lt;br&gt;&amp;gt; &amp;gt; while (ellipses to add to layer) {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; OMEllipse ellipse = new OMEllipse(centerPoint, majorAxis, 
&lt;br&gt;&amp;gt; &amp;gt; minorAxis, Length.NM, Math.toRadians(azimuth-90));
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; float[] ellipsePoints = ellipse.createLatLonPoints();
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; EsriPolygon poly = new EsriPolygon(ellipsePoints, 1, 0);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; ArrayList&amp;lt;String&amp;gt; attributes = new ArrayList&amp;lt;String&amp;gt;();
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; ...
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; polygonLayer.addRecord(poly, attributes);
&lt;br&gt;&amp;gt; &amp;gt; }
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; //Write file
&lt;br&gt;&amp;gt; &amp;gt; FileOutputStream shpFileStream = new FileOutputStream
&lt;br&gt;&amp;gt; &amp;gt; (&amp;quot;testShapefile.shp&amp;quot;);
&lt;br&gt;&amp;gt; &amp;gt; ShpOutputStream shpStream = new ShpOutputStream(shpFileStream);
&lt;br&gt;&amp;gt; &amp;gt; EsriGraphicList list = polygonLayer.getEsriGraphicList();
&lt;br&gt;&amp;gt; &amp;gt; int[][] imageData = shpStream.writeGeometry(list);
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; //write dbf and shx files
&lt;br&gt;&amp;gt; &amp;gt; ...
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; shpFileStream.close();
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Nathan
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; From: Don Dietrick [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26068111&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dietrick@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; Sent: Mon 10/19/2009 2:37 PM
&lt;br&gt;&amp;gt; &amp;gt; To: Reese, Nathan
&lt;br&gt;&amp;gt; &amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26068111&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;openmap-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Subject: Re: [OpenMap Users] shapefile header fields, File Length
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi Nathan,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; The file length is calculated for the shapes being placed in the
&lt;br&gt;&amp;gt; &amp;gt; file. &amp;nbsp;What kind of shape type are you creating a file for, and what
&lt;br&gt;&amp;gt; &amp;gt; classes are you using to do it?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; - Don
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Oct 19, 2009, at 1:41 PM, Reese, Nathan wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I am having problems opening shapefiles generated with OpenMap using
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; various GIS applications (although the shapefile can be opened in GE
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; and with ArcGIS). &amp;nbsp;The shapefiles can only be opened by all GIS
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; applications by first opening and resaving the file with ArcGIS.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I have compared the orginal .shp file with the ArcGIS updated .shp
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; and have found that the only difference is in the File Length field
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; in the main file header (byte 27). &amp;nbsp;I have tried using the ShapeFile
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; class to display the shapefile header information, but that utility
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; always returns a value of 100 for the File Length. &amp;nbsp;Has any one
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; experienced these types of problems. &amp;nbsp;Does ShpOutputStream properly
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; set the File Length field in the main file header?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Nathan
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
&lt;br&gt;&amp;gt; &amp;gt; Don Dietrick, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26068111&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;openmap@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; BBN Technologies, Cambridge MA, USA
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://openmap.bbn.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://openmap.bbn.com&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;[To unsubscribe to this list send an email to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26068111&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majdart@...&lt;/a&gt;&amp;quot;
&lt;br&gt;with the following text in the BODY of the message &amp;quot;unsubscribe openmap-users&amp;quot;]
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/shapefile-header-fields%2C-File-Length-tp25962555p26068111.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26068714</id>
	<title>RE: shapefile header fields, File Length</title>
	<published>2009-10-26T13:03:44Z</published>
	<updated>2009-10-26T13:03:44Z</updated>
	<author>
		<name>Reese, Nathan</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 3.2//EN&quot;&gt;
&lt;HTML&gt;
&lt;HEAD&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=iso-8859-1&quot;&gt;
&lt;META NAME=&quot;Generator&quot; CONTENT=&quot;MS Exchange Server version 6.5.7654.12&quot;&gt;
&lt;TITLE&gt;RE: [OpenMap Users] shapefile header fields, File Length&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;!-- Converted from text/plain format --&gt;

&lt;P&gt;&lt;FONT SIZE=2&gt;Don,&lt;BR&gt;
&lt;BR&gt;
I have reworked my shapefile generation code to use the classes suggested.&amp;nbsp; See the code fragment below.&lt;BR&gt;
&lt;BR&gt;
EsriGraphicList polygonList = new EsriPolygonList();&lt;BR&gt;
DbfTableModel polygonModel = new DbfTableModel(7);&lt;BR&gt;
&lt;BR&gt;
//Build graphics&lt;BR&gt;
while (ellipses to add) {&lt;BR&gt;
&amp;nbsp;&amp;nbsp; OMEllipse ellipse = new OMEllipse(centerPoint, majorAxis,&amp;nbsp;&lt;BR&gt;
&amp;nbsp;minorAxis, Length.NM, Math.toRadians(azimuth-90));&lt;BR&gt;
&amp;nbsp;&amp;nbsp; float[] ellipsePoints = ellipse.createLatLonPoints();&lt;BR&gt;
&amp;nbsp;&amp;nbsp; OMPoly polyGraphic = new OMPoly(ellipsePoints, OMGraphic.DECIMAL_DEGREES, OMGraphic.LINETYPE_GREATCIRCLE);&lt;BR&gt;
&amp;nbsp;&amp;nbsp; polygonList.add(polyGraphic);&lt;BR&gt;
&lt;BR&gt;
&amp;nbsp;&amp;nbsp; ArrayList&amp;lt;String&amp;gt; attributes = new ArrayList&amp;lt;String&amp;gt;();&lt;BR&gt;
&amp;nbsp;&amp;nbsp; ...&lt;BR&gt;
&amp;nbsp;&amp;nbsp; polygonModel.addRecord(attributes);&lt;BR&gt;
}&lt;BR&gt;
&lt;BR&gt;
//Write files&lt;BR&gt;
EsriShapeExport ese = new EsriShapeExport(polygonList, polygonModel, &amp;quot;testShapefile&amp;quot;);&lt;BR&gt;
ese.export();&lt;BR&gt;
&lt;BR&gt;
&lt;BR&gt;
The shapefile generated with the reworked method is identical to the shapefile generated with the original method, including the file length header field.&amp;nbsp; Have you had a chance to dig into the length generation code and see if anything is amiss?&lt;BR&gt;
&lt;BR&gt;
Thanks,&lt;BR&gt;
&lt;BR&gt;
Nathan&lt;BR&gt;
&lt;BR&gt;
&lt;BR&gt;
-----Original Message-----&lt;BR&gt;
From: Don Dietrick [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26068714&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dietrick@...&lt;/a&gt;]&lt;BR&gt;
Sent: Tue 10/20/2009 11:33 AM&lt;BR&gt;
To: Reese, Nathan&lt;BR&gt;
Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26068714&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;openmap-users@...&lt;/a&gt;&lt;BR&gt;
Subject: Re: [OpenMap Users] shapefile header fields, File Length&lt;BR&gt;
&lt;BR&gt;
Hi Nathan,&lt;BR&gt;
&lt;BR&gt;
I admit I haven't tested this method of doing this, but your code&amp;nbsp;&lt;BR&gt;
looks like it should work. I'll give it a shot later.&lt;BR&gt;
&lt;BR&gt;
&amp;nbsp; If I were going to create a shape file, I'd do something like this;&lt;BR&gt;
&lt;BR&gt;
OMGraphicList omgl = new OMGraphicList();&lt;BR&gt;
&lt;BR&gt;
... add OMGraphics to omgl&lt;BR&gt;
&lt;BR&gt;
DbfTableModel dbf = new DbfTableModel(..);&lt;BR&gt;
&lt;BR&gt;
... add entries appropriate for OMGraphics&lt;BR&gt;
&lt;BR&gt;
EsriShapeExport ese = EsriShapeExport(omgl, dbf, my_file_path);&lt;BR&gt;
ese.export();&lt;BR&gt;
&lt;BR&gt;
- Don&lt;BR&gt;
&lt;BR&gt;
On Oct 20, 2009, at 10:44 AM, Reese, Nathan wrote:&lt;BR&gt;
&lt;BR&gt;
&amp;gt; I am creating a shapefile with polygons.&amp;nbsp; Below is the code fragment&amp;nbsp;&lt;BR&gt;
&amp;gt; that I am using to generate a shapefile, I have omitted dbf and shx&amp;nbsp;&lt;BR&gt;
&amp;gt; code for simplicity.&amp;nbsp; Let me know if you need any additional&amp;nbsp;&lt;BR&gt;
&amp;gt; information.&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; EsriLayer polygonLayer = new EsriLayer(&amp;quot;testShapefile&amp;quot;,&amp;nbsp;&lt;BR&gt;
&amp;gt; ShapeConstants.SHAPE_TYPE_POLYGON, 7);&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; //Build dbf table&lt;BR&gt;
&amp;gt; ...&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; //Build layer&lt;BR&gt;
&amp;gt; while (ellipses to add to layer) {&lt;BR&gt;
&amp;gt;&amp;nbsp;&amp;nbsp; OMEllipse ellipse = new OMEllipse(centerPoint, majorAxis,&amp;nbsp;&lt;BR&gt;
&amp;gt; minorAxis, Length.NM, Math.toRadians(azimuth-90));&lt;BR&gt;
&amp;gt;&amp;nbsp;&amp;nbsp; float[] ellipsePoints = ellipse.createLatLonPoints();&lt;BR&gt;
&amp;gt;&amp;nbsp;&amp;nbsp; EsriPolygon poly = new EsriPolygon(ellipsePoints, 1, 0);&lt;BR&gt;
&amp;gt;&amp;nbsp;&amp;nbsp; ArrayList&amp;lt;String&amp;gt; attributes = new ArrayList&amp;lt;String&amp;gt;();&lt;BR&gt;
&amp;gt;&amp;nbsp;&amp;nbsp; ...&lt;BR&gt;
&amp;gt;&amp;nbsp;&amp;nbsp; polygonLayer.addRecord(poly, attributes);&lt;BR&gt;
&amp;gt; }&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; //Write file&lt;BR&gt;
&amp;gt; FileOutputStream shpFileStream = new FileOutputStream&lt;BR&gt;
&amp;gt; (&amp;quot;testShapefile.shp&amp;quot;);&lt;BR&gt;
&amp;gt; ShpOutputStream shpStream = new ShpOutputStream(shpFileStream);&lt;BR&gt;
&amp;gt; EsriGraphicList list = polygonLayer.getEsriGraphicList();&lt;BR&gt;
&amp;gt; int[][] imageData = shpStream.writeGeometry(list);&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; //write dbf and shx files&lt;BR&gt;
&amp;gt; ...&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; shpFileStream.close();&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; Thanks,&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; Nathan&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; -----Original Message-----&lt;BR&gt;
&amp;gt; From: Don Dietrick [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26068714&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dietrick@...&lt;/a&gt;]&lt;BR&gt;
&amp;gt; Sent: Mon 10/19/2009 2:37 PM&lt;BR&gt;
&amp;gt; To: Reese, Nathan&lt;BR&gt;
&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26068714&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;openmap-users@...&lt;/a&gt;&lt;BR&gt;
&amp;gt; Subject: Re: [OpenMap Users] shapefile header fields, File Length&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; Hi Nathan,&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; The file length is calculated for the shapes being placed in the&lt;BR&gt;
&amp;gt; file.&amp;nbsp; What kind of shape type are you creating a file for, and what&lt;BR&gt;
&amp;gt; classes are you using to do it?&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; - Don&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; On Oct 19, 2009, at 1:41 PM, Reese, Nathan wrote:&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt; I am having problems opening shapefiles generated with OpenMap using&lt;BR&gt;
&amp;gt; &amp;gt; various GIS applications (although the shapefile can be opened in GE&lt;BR&gt;
&amp;gt; &amp;gt; and with ArcGIS).&amp;nbsp; The shapefiles can only be opened by all GIS&lt;BR&gt;
&amp;gt; &amp;gt; applications by first opening and resaving the file with ArcGIS.&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt; I have compared the orginal .shp file with the ArcGIS updated .shp&lt;BR&gt;
&amp;gt; &amp;gt; and have found that the only difference is in the File Length field&lt;BR&gt;
&amp;gt; &amp;gt; in the main file header (byte 27).&amp;nbsp; I have tried using the ShapeFile&lt;BR&gt;
&amp;gt; &amp;gt; class to display the shapefile header information, but that utility&lt;BR&gt;
&amp;gt; &amp;gt; always returns a value of 100 for the File Length.&amp;nbsp; Has any one&lt;BR&gt;
&amp;gt; &amp;gt; experienced these types of problems.&amp;nbsp; Does ShpOutputStream properly&lt;BR&gt;
&amp;gt; &amp;gt; set the File Length field in the main file header?&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt; Thanks,&lt;BR&gt;
&amp;gt; &amp;gt;&lt;BR&gt;
&amp;gt; &amp;gt; Nathan&lt;BR&gt;
&amp;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; Don Dietrick, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26068714&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;openmap@...&lt;/a&gt;&lt;BR&gt;
&amp;gt; BBN Technologies, Cambridge MA, USA&lt;BR&gt;
&amp;gt; &lt;A HREF=&quot;http://openmap.bbn.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://openmap.bbn.com&lt;/A&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;
&lt;BR&gt;
&lt;BR&gt;
&lt;/FONT&gt;
&lt;/P&gt;

&lt;/BODY&gt;
&lt;/HTML&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/shapefile-header-fields%2C-File-Length-tp25962555p26068714.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26004804</id>
	<title>Re: How to make the map updated with new positions?</title>
	<published>2009-10-21T23:35:30Z</published>
	<updated>2009-10-21T23:35:30Z</updated>
	<author>
		<name>Paweł Skarżyński</name>
	</author>
	<content type="html">Hi Moe,&lt;br&gt;If you decide to put your locations in CSV file you should read documentation for classes: &lt;br&gt;1. com.bbn.openmap.layer.location.LocationLayer&lt;br&gt;2. com.bbn.openmap.layer.location.csv.CSVLocationHandler&lt;br&gt;&lt;br&gt;For displaying images you need to add a property for CSVLocationHandler (in properties file), for example:&lt;br&gt;
csvcities.defaultIconURL = data/city.png&lt;br&gt;I assume that you sucessfully display your locations as red rectangles.&lt;br&gt;&lt;br&gt;Sorry for my English&lt;br&gt;Paul S.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/10/21 Moe Zakeri &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26004804&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mzakeri@...&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;div link=&quot;blue&quot; vlink=&quot;purple&quot; lang=&quot;EN-US&quot;&gt;

&lt;div&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(31, 73, 125);&quot;&gt;We need to put updated positions plus an image for each position
on the OpenMap based on latitude and longitude. How this could be done in
either properties or the anywhere in OpenMap API?&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(31, 73, 125);&quot;&gt;Already I have created a CSV file based on cities.csv and called
it positions.csv, then I have set it up in the properties file. But this shows static
positions and no images for the positions.&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(31, 73, 125);&quot;&gt; &lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(31, 73, 125);&quot;&gt;Thank&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(31, 73, 125);&quot;&gt; you&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(31, 73, 125);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(31, 73, 125);&quot;&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(31, 73, 125);&quot;&gt;Moe&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(31, 73, 125);&quot;&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;


&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/shapefile-header-fields%2C-File-Length-tp25962555p26004804.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25988451</id>
	<title>Show cities in worldmap</title>
	<published>2009-10-21T01:18:49Z</published>
	<updated>2009-10-21T01:18:49Z</updated>
	<author>
		<name>Cooldoc</name>
	</author>
	<content type="html">&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;I'm new to openmap and created this simple example of a world map (see below).
&lt;br&gt;However I'd like to load and display the cities (cities.csv) on the map.
&lt;br&gt;&lt;br&gt;Can someone please give me a hint how to do this?
&lt;br&gt;&lt;br&gt;Thanks in advance
&lt;br&gt;Markus
&lt;br&gt;&lt;br&gt;My source code:
&lt;br&gt;import java.awt.event.WindowAdapter;
&lt;br&gt;import java.awt.event.WindowEvent;
&lt;br&gt;import java.util.Properties;
&lt;br&gt;&lt;br&gt;import javax.swing.JFrame;
&lt;br&gt;&lt;br&gt;import com.bbn.openmap.MapBean;
&lt;br&gt;import com.bbn.openmap.MapHandler;
&lt;br&gt;import com.bbn.openmap.layer.shape.ShapeLayer;
&lt;br&gt;import com.bbn.openmap.util.Debug;
&lt;br&gt;&lt;br&gt;public class SimpleMap extends JFrame {
&lt;br&gt;&lt;br&gt;public SimpleMap(String name) {
&lt;br&gt;super(name); // set title
&lt;br&gt;&lt;br&gt;&lt;br&gt;setSize(640, 480); // and location
&lt;br&gt;&lt;br&gt;// Create a map handler (map, layer, component container)
&lt;br&gt;MapHandler mapHandler = new MapHandler();
&lt;br&gt;&lt;br&gt;// Create a MapBean
&lt;br&gt;MapBean mapBean = new MapBean();
&lt;br&gt;mapHandler.add(mapBean);
&lt;br&gt;&lt;br&gt;ShapeLayer shapeLayer = new ShapeLayer();
&lt;br&gt;&lt;br&gt;Properties shapeLayerProps = new Properties();
&lt;br&gt;shapeLayerProps.put(&amp;quot;prettyName&amp;quot;, &amp;quot;Political Solid&amp;quot;);
&lt;br&gt;shapeLayerProps.put(&amp;quot;lineColor&amp;quot;, &amp;quot;000000&amp;quot;);
&lt;br&gt;shapeLayerProps.put(&amp;quot;fillColor&amp;quot;, &amp;quot;BDDE83&amp;quot;);
&lt;br&gt;shapeLayerProps.put(&amp;quot;shapeFile&amp;quot;, &amp;quot;data/shape/dcwpo-browse.shp&amp;quot;);
&lt;br&gt;shapeLayerProps.put(&amp;quot;spatialIndex&amp;quot;, &amp;quot;data/shape/dcwpo-browse.ssx&amp;quot;);
&lt;br&gt;shapeLayer.setProperties(shapeLayerProps);
&lt;br&gt;&lt;br&gt;// Add the political layer to the map
&lt;br&gt;mapBean.add(shapeLayer);
&lt;br&gt;&lt;br&gt;// Add the map to the frame
&lt;br&gt;getContentPane().add(mapBean);
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;public static void main(String[] argv) {
&lt;br&gt;&lt;br&gt;Debug.init();
&lt;br&gt;//Debug.put(&amp;quot;mousemode&amp;quot;);
&lt;br&gt;&lt;br&gt;SimpleMap simpleMap = new SimpleMap (&amp;quot;Simple Map&amp;quot;);
&lt;br&gt;simpleMap.addWindowListener(new WindowAdapter() {
&lt;br&gt;public void windowClosing(WindowEvent e) {
&lt;br&gt;System.exit(0);
&lt;br&gt;}});
&lt;br&gt;&lt;br&gt;&lt;br&gt;simpleMap.setVisible(true);
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
&lt;br&gt;Jetzt freischalten unter &lt;a href=&quot;http://portal.gmx.net/de/go/maxdome01&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://portal.gmx.net/de/go/maxdome01&lt;/a&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;[To unsubscribe to this list send an email to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25988451&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majdart@...&lt;/a&gt;&amp;quot;
&lt;br&gt;with the following text in the BODY of the message &amp;quot;unsubscribe openmap-users&amp;quot;]
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Show-cities-in-worldmap-tp25988451p25988451.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25985021</id>
	<title>RE: How to make the map updated with new positions?</title>
	<published>2009-10-20T17:55:14Z</published>
	<updated>2009-10-20T17:55:14Z</updated>
	<author>
		<name>Moe Zakeri</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:x=&quot;urn:schemas-microsoft-com:office:excel&quot; xmlns:p=&quot;urn:schemas-microsoft-com:office:powerpoint&quot; xmlns:a=&quot;urn:schemas-microsoft-com:office:access&quot; xmlns:dt=&quot;uuid:C2F41010-65B3-11d1-A29F-00AA00C14882&quot; xmlns:s=&quot;uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882&quot; xmlns:rs=&quot;urn:schemas-microsoft-com:rowset&quot; xmlns:Z=&quot;urn:schemas-microsoft-com:&quot; xmlns:b=&quot;urn:schemas-microsoft-com:office:publisher&quot; xmlns:ss=&quot;urn:schemas-microsoft-com:office:spreadsheet&quot; xmlns:c=&quot;urn:schemas-microsoft-com:office:component:spreadsheet&quot; xmlns:odc=&quot;urn:schemas-microsoft-com:office:odc&quot; xmlns:oa=&quot;urn:schemas-microsoft-com:office:activation&quot; xmlns:html=&quot;http://www.w3.org/TR/REC-html40&quot; xmlns:q=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:rtc=&quot;http://microsoft.com/officenet/conferencing&quot; xmlns:D=&quot;DAV:&quot; xmlns:Repl=&quot;http://schemas.microsoft.com/repl/&quot; xmlns:mt=&quot;http://schemas.microsoft.com/sharepoint/soap/meetings/&quot; xmlns:x2=&quot;http://schemas.microsoft.com/office/excel/2003/xml&quot; xmlns:ppda=&quot;http://www.passport.com/NameSpace.xsd&quot; xmlns:ois=&quot;http://schemas.microsoft.com/sharepoint/soap/ois/&quot; xmlns:dir=&quot;http://schemas.microsoft.com/sharepoint/soap/directory/&quot; xmlns:ds=&quot;http://www.w3.org/2000/09/xmldsig#&quot; xmlns:dsp=&quot;http://schemas.microsoft.com/sharepoint/dsp&quot; xmlns:udc=&quot;http://schemas.microsoft.com/data/udc&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:sub=&quot;http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/&quot; xmlns:ec=&quot;http://www.w3.org/2001/04/xmlenc#&quot; xmlns:sp=&quot;http://schemas.microsoft.com/sharepoint/&quot; xmlns:sps=&quot;http://schemas.microsoft.com/sharepoint/soap/&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:udcs=&quot;http://schemas.microsoft.com/data/udc/soap&quot; xmlns:udcxf=&quot;http://schemas.microsoft.com/data/udc/xmlfile&quot; xmlns:udcp2p=&quot;http://schemas.microsoft.com/data/udc/parttopart&quot; xmlns:wf=&quot;http://schemas.microsoft.com/sharepoint/soap/workflow/&quot; xmlns:dsss=&quot;http://schemas.microsoft.com/office/2006/digsig-setup&quot; xmlns:dssi=&quot;http://schemas.microsoft.com/office/2006/digsig&quot; xmlns:mdssi=&quot;http://schemas.openxmlformats.org/package/2006/digital-signature&quot; xmlns:mver=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns:mrels=&quot;http://schemas.openxmlformats.org/package/2006/relationships&quot; xmlns:spwp=&quot;http://microsoft.com/sharepoint/webpartpages&quot; xmlns:ex12t=&quot;http://schemas.microsoft.com/exchange/services/2006/types&quot; xmlns:ex12m=&quot;http://schemas.microsoft.com/exchange/services/2006/messages&quot; xmlns:pptsl=&quot;http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/&quot; xmlns:spsl=&quot;http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService&quot; xmlns:st=&quot;&amp;#1;&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;
&lt;title&gt;shapefile header fields, File Length&lt;/title&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;We need to put updated positions plus an image for each position
on the OpenMap based on latitude and longitude. How this could be done in
either properties or the anywhere in OpenMap API?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Already I have created a CSV file based on cities.csv and called
it positions.csv, then I have set it up in the properties file. But this shows static
positions and no images for the positions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Thank&lt;/span&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt; you&lt;/span&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;,&lt;/span&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Moe&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt'&gt;&amp;nbsp;&lt;/span&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/shapefile-header-fields%2C-File-Length-tp25962555p25985021.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25977446</id>
	<title>Re: shapefile header fields, File Length</title>
	<published>2009-10-20T08:33:46Z</published>
	<updated>2009-10-20T08:33:46Z</updated>
	<author>
		<name>Don Dietrick</name>
	</author>
	<content type="html">Hi Nathan,
&lt;br&gt;&lt;br&gt;I admit I haven't tested this method of doing this, but your code &amp;nbsp;
&lt;br&gt;looks like it should work. I'll give it a shot later.
&lt;br&gt;&lt;br&gt;&amp;nbsp; If I were going to create a shape file, I'd do something like this;
&lt;br&gt;&lt;br&gt;OMGraphicList omgl = new OMGraphicList();
&lt;br&gt;&lt;br&gt;... add OMGraphics to omgl
&lt;br&gt;&lt;br&gt;DbfTableModel dbf = new DbfTableModel(..);
&lt;br&gt;&lt;br&gt;... add entries appropriate for OMGraphics
&lt;br&gt;&lt;br&gt;EsriShapeExport ese = EsriShapeExport(omgl, dbf, my_file_path);
&lt;br&gt;ese.export();
&lt;br&gt;&lt;br&gt;- Don
&lt;br&gt;&lt;br&gt;On Oct 20, 2009, at 10:44 AM, Reese, Nathan wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I am creating a shapefile with polygons. &amp;nbsp;Below is the code fragment &amp;nbsp;
&lt;br&gt;&amp;gt; that I am using to generate a shapefile, I have omitted dbf and shx &amp;nbsp;
&lt;br&gt;&amp;gt; code for simplicity. &amp;nbsp;Let me know if you need any additional &amp;nbsp;
&lt;br&gt;&amp;gt; information.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; EsriLayer polygonLayer = new EsriLayer(&amp;quot;testShapefile&amp;quot;, &amp;nbsp;
&lt;br&gt;&amp;gt; ShapeConstants.SHAPE_TYPE_POLYGON, 7);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; //Build dbf table
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; //Build layer
&lt;br&gt;&amp;gt; while (ellipses to add to layer) {
&lt;br&gt;&amp;gt; &amp;nbsp; OMEllipse ellipse = new OMEllipse(centerPoint, majorAxis, &amp;nbsp;
&lt;br&gt;&amp;gt; minorAxis, Length.NM, Math.toRadians(azimuth-90));
&lt;br&gt;&amp;gt; &amp;nbsp; float[] ellipsePoints = ellipse.createLatLonPoints();
&lt;br&gt;&amp;gt; &amp;nbsp; EsriPolygon poly = new EsriPolygon(ellipsePoints, 1, 0);
&lt;br&gt;&amp;gt; &amp;nbsp; ArrayList&amp;lt;String&amp;gt; attributes = new ArrayList&amp;lt;String&amp;gt;();
&lt;br&gt;&amp;gt; &amp;nbsp; ...
&lt;br&gt;&amp;gt; &amp;nbsp; polygonLayer.addRecord(poly, attributes);
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; //Write file
&lt;br&gt;&amp;gt; FileOutputStream shpFileStream = new FileOutputStream 
&lt;br&gt;&amp;gt; (&amp;quot;testShapefile.shp&amp;quot;);
&lt;br&gt;&amp;gt; ShpOutputStream shpStream = new ShpOutputStream(shpFileStream);
&lt;br&gt;&amp;gt; EsriGraphicList list = polygonLayer.getEsriGraphicList();
&lt;br&gt;&amp;gt; int[][] imageData = shpStream.writeGeometry(list);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; //write dbf and shx files
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; shpFileStream.close();
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Nathan
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Don Dietrick [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25977446&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dietrick@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Mon 10/19/2009 2:37 PM
&lt;br&gt;&amp;gt; To: Reese, Nathan
&lt;br&gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25977446&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;openmap-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Re: [OpenMap Users] shapefile header fields, File Length
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi Nathan,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The file length is calculated for the shapes being placed in the
&lt;br&gt;&amp;gt; file. &amp;nbsp;What kind of shape type are you creating a file for, and what
&lt;br&gt;&amp;gt; classes are you using to do it?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - Don
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Oct 19, 2009, at 1:41 PM, Reese, Nathan wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I am having problems opening shapefiles generated with OpenMap using
&lt;br&gt;&amp;gt; &amp;gt; various GIS applications (although the shapefile can be opened in GE
&lt;br&gt;&amp;gt; &amp;gt; and with ArcGIS). &amp;nbsp;The shapefiles can only be opened by all GIS
&lt;br&gt;&amp;gt; &amp;gt; applications by first opening and resaving the file with ArcGIS.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I have compared the orginal .shp file with the ArcGIS updated .shp
&lt;br&gt;&amp;gt; &amp;gt; and have found that the only difference is in the File Length field
&lt;br&gt;&amp;gt; &amp;gt; in the main file header (byte 27). &amp;nbsp;I have tried using the ShapeFile
&lt;br&gt;&amp;gt; &amp;gt; class to display the shapefile header information, but that utility
&lt;br&gt;&amp;gt; &amp;gt; always returns a value of 100 for the File Length. &amp;nbsp;Has any one
&lt;br&gt;&amp;gt; &amp;gt; experienced these types of problems. &amp;nbsp;Does ShpOutputStream properly
&lt;br&gt;&amp;gt; &amp;gt; set the File Length field in the main file header?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Nathan
&lt;br&gt;&amp;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; Don Dietrick, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25977446&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;openmap@...&lt;/a&gt;
&lt;br&gt;&amp;gt; BBN Technologies, Cambridge MA, USA
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://openmap.bbn.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://openmap.bbn.com&lt;/a&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;/div&gt;&lt;br&gt;--
&lt;br&gt;[To unsubscribe to this list send an email to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25977446&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majdart@...&lt;/a&gt;&amp;quot;
&lt;br&gt;with the following text in the BODY of the message &amp;quot;unsubscribe openmap-users&amp;quot;]
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/shapefile-header-fields%2C-File-Length-tp25962555p25977446.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25977295</id>
	<title>Re: How do I set OpenMap to be zoomed at a location  from CSV file or anywhere else in the settings?</title>
	<published>2009-10-20T08:25:29Z</published>
	<updated>2009-10-20T08:25:29Z</updated>
	<author>
		<name>Don Dietrick</name>
	</author>
	<content type="html">Hi Moe,
&lt;br&gt;&lt;br&gt;Paul suggestion is the correct one for adjusting the starting &amp;nbsp;
&lt;br&gt;location. You can also set the openmap.Scale and openmap.Projection &amp;nbsp;
&lt;br&gt;values to adjust the other projection parameters.
&lt;br&gt;&lt;br&gt;If you are using the GoToMenu in the properties file, you can set pre- 
&lt;br&gt;defined areas. &amp;nbsp;An example:
&lt;br&gt;&lt;br&gt;gotoMenu.class=com.bbn.openmap.gui.GoToMenu
&lt;br&gt;gotoMenu.addDefaults=true
&lt;br&gt;goto.views=Argentina India Massachusetts United_States Caspian_Sea &amp;nbsp;
&lt;br&gt;Russia
&lt;br&gt;Russia.latitude=40.20
&lt;br&gt;Russia.longitude=46.500
&lt;br&gt;Russia.name=Russia
&lt;br&gt;Russia.projection=Mercator
&lt;br&gt;Russia.scale=5.0E7
&lt;br&gt;Argentina.latitude=-39.760445
&lt;br&gt;Argentina.longitude=-65.92294
&lt;br&gt;Argentina.name=Argentina
&lt;br&gt;Argentina.projection=Mercator
&lt;br&gt;Argentina.scale=5.0E7
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;Also, if your Layer/object implements the DataBoundsProvider &amp;nbsp;
&lt;br&gt;interface, The GoToMenu will ask it for a DataBounds to use to add to &amp;nbsp;
&lt;br&gt;its menu for predefined view based on a dataset.
&lt;br&gt;&lt;br&gt;Hope this helps,
&lt;br&gt;&lt;br&gt;Don
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Oct 20, 2009, at 1:29 AM, Paweł Skarżyński wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Moe,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The starting projection is in the openmap properties file:
&lt;br&gt;&amp;gt; # MAP STARTUP PROJECTION PARAMETERS
&lt;br&gt;&amp;gt; # Latitude and longitude in decimal degrees
&lt;br&gt;&amp;gt; openmap.Latitude=20f
&lt;br&gt;&amp;gt; openmap.Longitude=-20f
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Paul S.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009/10/19 Moe Zakeri &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25977295&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mzakeri@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is there any way to zoom at a city/location based on the settings, &amp;nbsp;
&lt;br&gt;&amp;gt; so when I run the OpenMap it is zoomed to that location like a GPS?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Moe
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;[To unsubscribe to this list send an email to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25977295&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majdart@...&lt;/a&gt;&amp;quot;
&lt;br&gt;with the following text in the BODY of the message &amp;quot;unsubscribe openmap-users&amp;quot;]
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/shapefile-header-fields%2C-File-Length-tp25962555p25977295.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25976620</id>
	<title>RE: shapefile header fields, File Length</title>
	<published>2009-10-20T07:44:25Z</published>
	<updated>2009-10-20T07:44:25Z</updated>
	<author>
		<name>Reese, Nathan</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 3.2//EN&quot;&gt;
&lt;HTML&gt;
&lt;HEAD&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=iso-8859-1&quot;&gt;
&lt;META NAME=&quot;Generator&quot; CONTENT=&quot;MS Exchange Server version 6.5.7654.12&quot;&gt;
&lt;TITLE&gt;RE: [OpenMap Users] shapefile header fields, File Length&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;!-- Converted from text/plain format --&gt;

&lt;P&gt;&lt;FONT SIZE=2&gt;I am creating a shapefile with polygons.&amp;nbsp; Below is the code fragment that I am using to generate a shapefile, I have omitted dbf and shx code for simplicity.&amp;nbsp; Let me know if you need any additional information.&lt;BR&gt;
&lt;BR&gt;
EsriLayer polygonLayer = new EsriLayer(&amp;quot;testShapefile&amp;quot;, ShapeConstants.SHAPE_TYPE_POLYGON, 7);&lt;BR&gt;
&lt;BR&gt;
//Build dbf table&lt;BR&gt;
...&lt;BR&gt;
&lt;BR&gt;
//Build layer&lt;BR&gt;
while (ellipses to add to layer) {&lt;BR&gt;
&amp;nbsp; OMEllipse ellipse = new OMEllipse(centerPoint, majorAxis, minorAxis, Length.NM, Math.toRadians(azimuth-90));&lt;BR&gt;
&amp;nbsp; float[] ellipsePoints = ellipse.createLatLonPoints();&lt;BR&gt;
&amp;nbsp; EsriPolygon poly = new EsriPolygon(ellipsePoints, 1, 0);&lt;BR&gt;
&amp;nbsp; ArrayList&amp;lt;String&amp;gt; attributes = new ArrayList&amp;lt;String&amp;gt;();&lt;BR&gt;
&amp;nbsp; ...&lt;BR&gt;
&amp;nbsp; polygonLayer.addRecord(poly, attributes);&lt;BR&gt;
}&lt;BR&gt;
&lt;BR&gt;
//Write file&lt;BR&gt;
FileOutputStream shpFileStream = new FileOutputStream(&amp;quot;testShapefile.shp&amp;quot;);&lt;BR&gt;
ShpOutputStream shpStream = new ShpOutputStream(shpFileStream);&lt;BR&gt;
EsriGraphicList list = polygonLayer.getEsriGraphicList();&lt;BR&gt;
int[][] imageData = shpStream.writeGeometry(list);&lt;BR&gt;
&lt;BR&gt;
//write dbf and shx files&lt;BR&gt;
...&lt;BR&gt;
&lt;BR&gt;
shpFileStream.close();&lt;BR&gt;
&lt;BR&gt;
&lt;BR&gt;
Thanks,&lt;BR&gt;
&lt;BR&gt;
Nathan&lt;BR&gt;
&lt;BR&gt;
-----Original Message-----&lt;BR&gt;
From: Don Dietrick [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25976620&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dietrick@...&lt;/a&gt;]&lt;BR&gt;
Sent: Mon 10/19/2009 2:37 PM&lt;BR&gt;
To: Reese, Nathan&lt;BR&gt;
Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25976620&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;openmap-users@...&lt;/a&gt;&lt;BR&gt;
Subject: Re: [OpenMap Users] shapefile header fields, File Length&lt;BR&gt;
&lt;BR&gt;
Hi Nathan,&lt;BR&gt;
&lt;BR&gt;
The file length is calculated for the shapes being placed in the&amp;nbsp;&lt;BR&gt;
file.&amp;nbsp; What kind of shape type are you creating a file for, and what&amp;nbsp;&lt;BR&gt;
classes are you using to do it?&lt;BR&gt;
&lt;BR&gt;
- Don&lt;BR&gt;
&lt;BR&gt;
On Oct 19, 2009, at 1:41 PM, Reese, Nathan wrote:&lt;BR&gt;
&lt;BR&gt;
&amp;gt; I am having problems opening shapefiles generated with OpenMap using&amp;nbsp;&lt;BR&gt;
&amp;gt; various GIS applications (although the shapefile can be opened in GE&amp;nbsp;&lt;BR&gt;
&amp;gt; and with ArcGIS).&amp;nbsp; The shapefiles can only be opened by all GIS&amp;nbsp;&lt;BR&gt;
&amp;gt; applications by first opening and resaving the file with ArcGIS.&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; I have compared the orginal .shp file with the ArcGIS updated .shp&amp;nbsp;&lt;BR&gt;
&amp;gt; and have found that the only difference is in the File Length field&amp;nbsp;&lt;BR&gt;
&amp;gt; in the main file header (byte 27).&amp;nbsp; I have tried using the ShapeFile&amp;nbsp;&lt;BR&gt;
&amp;gt; class to display the shapefile header information, but that utility&amp;nbsp;&lt;BR&gt;
&amp;gt; always returns a value of 100 for the File Length.&amp;nbsp; Has any one&amp;nbsp;&lt;BR&gt;
&amp;gt; experienced these types of problems.&amp;nbsp; Does ShpOutputStream properly&amp;nbsp;&lt;BR&gt;
&amp;gt; set the File Length field in the main file header?&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; Thanks,&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&amp;gt; Nathan&lt;BR&gt;
&amp;gt;&lt;BR&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;BR&gt;
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;BR&gt;
Don Dietrick, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25976620&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;openmap@...&lt;/a&gt;&lt;BR&gt;
BBN Technologies, Cambridge MA, USA&lt;BR&gt;
&lt;A HREF=&quot;http://openmap.bbn.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://openmap.bbn.com&lt;/A&gt;&lt;BR&gt;
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;BR&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;/FONT&gt;
&lt;/P&gt;

&lt;/BODY&gt;
&lt;/HTML&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/shapefile-header-fields%2C-File-Length-tp25962555p25976620.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25969931</id>
	<title>Re: How do I set OpenMap to be zoomed at a location  from CSV file or anywhere else in the settings?</title>
	<published>2009-10-19T22:29:27Z</published>
	<updated>2009-10-19T22:29:27Z</updated>
	<author>
		<name>Paweł Skarżyński</name>
	</author>
	<content type="html">Hi Moe,&lt;br&gt;&lt;br&gt;The starting projection is in the openmap properties file:&lt;br&gt;# MAP STARTUP PROJECTION PARAMETERS&lt;br&gt;# Latitude and longitude in decimal degrees&lt;br&gt;openmap.Latitude=20f&lt;br&gt;openmap.Longitude=-20f&lt;br&gt;&lt;br&gt;Paul S.&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/10/19 Moe Zakeri &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25969931&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mzakeri@...&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;div link=&quot;blue&quot; vlink=&quot;purple&quot; lang=&quot;EN-US&quot;&gt;

&lt;div&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(31, 73, 125);&quot;&gt;Is there any way to &lt;/span&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(31, 73, 125);&quot;&gt;zoom at a city/location based
on the settings, so when I run the OpenMap it is zoomed to that location like a
GPS&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(31, 73, 125);&quot;&gt;?&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(31, 73, 125);&quot;&gt; &lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(31, 73, 125);&quot;&gt;Thanks,&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(31, 73, 125);&quot;&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(31, 73, 125);&quot;&gt;Moe&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(31, 73, 125);&quot;&gt; &lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;


&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/shapefile-header-fields%2C-File-Length-tp25962555p25969931.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25963785</id>
	<title>RE: How do I set OpenMap to be zoomed at a location from CSV file or anywhere else in the settings?</title>
	<published>2009-10-19T12:04:06Z</published>
	<updated>2009-10-19T12:04:06Z</updated>
	<author>
		<name>Moe Zakeri</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;
&lt;title&gt;shapefile header fields, File Length&lt;/title&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Is there any way to &lt;/span&gt;&lt;span style='font-size:11.0pt;
font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D'&gt;zoom at a city/location based
on the settings, so when I run the OpenMap it is zoomed to that location like a
GPS&lt;/span&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Thanks,&lt;/span&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Moe&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/shapefile-header-fields%2C-File-Length-tp25962555p25963785.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25964021</id>
	<title>How can I keep OpenMap updated in real time according to the CSV file updates?</title>
	<published>2009-10-19T11:57:59Z</published>
	<updated>2009-10-19T11:57:59Z</updated>
	<author>
		<name>Moe Zakeri</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;
&lt;title&gt;shapefile header fields, File Length&lt;/title&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;I am trying to keep OpenMap updated in real time according to the
CSV file updates/changes that I need to make. For example, if I add a new city,
or change its location in the CSV file it won&amp;#8217;t be displayed on the map
while I have the OpenMap running. Currently I can see the updates/changes on
the map by reloading the properties file. Is there any other way to set this to
auto reload for example in every 5 seconds?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Thanks,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Moe&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt'&gt;&amp;nbsp;&lt;/span&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/shapefile-header-fields%2C-File-Length-tp25962555p25964021.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25963399</id>
	<title>Re: shapefile header fields, File Length</title>
	<published>2009-10-19T11:37:48Z</published>
	<updated>2009-10-19T11:37:48Z</updated>
	<author>
		<name>Don Dietrick</name>
	</author>
	<content type="html">Hi Nathan,
&lt;br&gt;&lt;br&gt;The file length is calculated for the shapes being placed in the &amp;nbsp;
&lt;br&gt;file. &amp;nbsp;What kind of shape type are you creating a file for, and what &amp;nbsp;
&lt;br&gt;classes are you using to do it?
&lt;br&gt;&lt;br&gt;- Don
&lt;br&gt;&lt;br&gt;On Oct 19, 2009, at 1:41 PM, Reese, Nathan wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I am having problems opening shapefiles generated with OpenMap using &amp;nbsp;
&lt;br&gt;&amp;gt; various GIS applications (although the shapefile can be opened in GE &amp;nbsp;
&lt;br&gt;&amp;gt; and with ArcGIS). &amp;nbsp;The shapefiles can only be opened by all GIS &amp;nbsp;
&lt;br&gt;&amp;gt; applications by first opening and resaving the file with ArcGIS.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have compared the orginal .shp file with the ArcGIS updated .shp &amp;nbsp;
&lt;br&gt;&amp;gt; and have found that the only difference is in the File Length field &amp;nbsp;
&lt;br&gt;&amp;gt; in the main file header (byte 27). &amp;nbsp;I have tried using the ShapeFile &amp;nbsp;
&lt;br&gt;&amp;gt; class to display the shapefile header information, but that utility &amp;nbsp;
&lt;br&gt;&amp;gt; always returns a value of 100 for the File Length. &amp;nbsp;Has any one &amp;nbsp;
&lt;br&gt;&amp;gt; experienced these types of problems. &amp;nbsp;Does ShpOutputStream properly &amp;nbsp;
&lt;br&gt;&amp;gt; set the File Length field in the main file header?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Nathan
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
&lt;br&gt;Don Dietrick, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25963399&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;openmap@...&lt;/a&gt;
&lt;br&gt;BBN Technologies, Cambridge MA, USA
&lt;br&gt;&lt;a href=&quot;http://openmap.bbn.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://openmap.bbn.com&lt;/a&gt;&lt;br&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
&lt;br&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;[To unsubscribe to this list send an email to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25963399&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majdart@...&lt;/a&gt;&amp;quot;
&lt;br&gt;with the following text in the BODY of the message &amp;quot;unsubscribe openmap-users&amp;quot;]
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/shapefile-header-fields%2C-File-Length-tp25962555p25963399.html" />
</entry>

</feed>
