<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sarawut Ninsawat &#187; sarawut</title>
	<atom:link href="https://www.ninsawat.com/?author=2&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>https://www.ninsawat.com</link>
	<description>A Personal Blog but not private</description>
	<lastBuildDate>Sat, 02 Aug 2025 08:02:05 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.2</generator>
	<item>
		<title>Using mapbox layer on Openlayer v 2</title>
		<link>https://www.ninsawat.com/?p=132&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-mapbox-layer-on-openlayer-v-2</link>
		<comments>https://www.ninsawat.com/?p=132#comments</comments>
		<pubDate>Thu, 06 Nov 2014 16:24:40 +0000</pubDate>
		<dc:creator><![CDATA[sarawut]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ninsawat.com/?p=132</guid>
		<description><![CDATA[Now, Tile maps is a useful for simple and fast data sharing. Mapbox is a service that you can upload your preset MTiles or your raw data and make the tile server ready on their service. Cliend and API is also ready in mapbox.com However, many people ( like me still prefer OpenLayers API) following&#8230;]]></description>
				<content:encoded><![CDATA[<p>Now, Tile maps is a useful for simple and fast data sharing.</p>
<p>Mapbox is a service that you can upload your preset MTiles or your raw data and make the tile server ready on their service.</p>
<p>Cliend and API is also ready in mapbox.com</p>
<p>However, many people ( like me still prefer OpenLayers API) following is a code you can add TileMap from Mapbox to openlayer</p>
<p>var mylayer = new OpenLayers.Layer.XYZ(<br />
&#8220;mymap&#8221;,<br />
[<br />
"https://a.tiles.mapbox.com/v4/userid/${z}/${x}/${y}.png?access_token=token"<br />
], {<br />
attribution: &#8220;Tiles © <a href="http://mapbox.com/">MapBox</a>&#8220;,<br />
sphericalMercator: true,<br />
wrapDateLine: true,<br />
numZoomLevels: 8<br />
}<br />
);</p>
<p>Replace userid with your mapbox id</p>
<p>and token with your token for the map.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.ninsawat.com/?feed=rss2&#038;p=132</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New PrimaGIS กับการ install แบบง่าย ๆ (มั้ง)</title>
		<link>https://www.ninsawat.com/?p=49&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=new-primagis-%25e0%25b8%2581%25e0%25b8%25b1%25e0%25b8%259a%25e0%25b8%2581%25e0%25b8%25b2%25e0%25b8%25a3-install-%25e0%25b9%2581%25e0%25b8%259a%25e0%25b8%259a%25e0%25b8%2587%25e0%25b9%2588%25e0%25b8%25b2%25e0%25b8%25a2-%25e0%25b9%2586-%25e0%25b8%25a1%25e0%25b8%25b1%25e0%25b9%2589%25e0%25b8%2587</link>
		<comments>https://www.ninsawat.com/?p=49#comments</comments>
		<pubDate>Wed, 14 May 2008 09:25:33 +0000</pubDate>
		<dc:creator><![CDATA[sarawut]]></dc:creator>
				<category><![CDATA[PrimaGIS]]></category>

		<guid isPermaLink="false">http://www.ninsawat.com/?p=49</guid>
		<description><![CDATA[ต้องทำการ upgrade เจ้า PrimaGIS ก็เลยได้มาเขียนในคราวนี้  เริ่มเลยแล้วกันใน version ใหม่ได้มีการทำ script เพื่อทำให้การ install นั้นง่ายขึ้นกว่าเก่า โดยจะทำแบบครบสมบูรณ์ว่าต้องการ software อะไรบ้างก็จะ download มาให้หมด แล้วทำการ complie เป็น แบบ sandbox ก็คือจะไม่กระทบกับระบบที่เรามีอยู่ เช่นหากมีการ install gdal ไว้อยู่แล้วมันก็แยกจากกันไป ก็ให้ทำตามขั้นตอนตาม web ข้างล่าง http://trac.gispython.org/projects/PrimaGIS/wiki/PrimaGISBuildout ในการ install นี้จำเป็นจะต้องใช้ buildit ร่วมด้วย เราก็อาจจะทำการ install จาก easy_install ซึ่งเป็น util หนี่งสำหรับการลงโปรแกรมต่าง ๆ ของ python easy_install http://www.agendaless.com/Members/chrism/software/buildit/buildit-0.1.tar.gz แล้วก็ โหลดตัว buildout มาจาก svn $ svn&#8230;]]></description>
				<content:encoded><![CDATA[<p>ต้องทำการ upgrade เจ้า PrimaGIS ก็เลยได้มาเขียนในคราวนี้  เริ่มเลยแล้วกันใน version ใหม่ได้มีการทำ script เพื่อทำให้การ install นั้นง่ายขึ้นกว่าเก่า โดยจะทำแบบครบสมบูรณ์ว่าต้องการ software อะไรบ้างก็จะ download มาให้หมด แล้วทำการ complie เป็น แบบ sandbox ก็คือจะไม่กระทบกับระบบที่เรามีอยู่ เช่นหากมีการ install gdal ไว้อยู่แล้วมันก็แยกจากกันไป</p>
<p>ก็ให้ทำตามขั้นตอนตาม web ข้างล่าง</p>
<p>http://trac.gispython.org/projects/PrimaGIS/wiki/PrimaGISBuildout</p>
<p>ในการ install นี้จำเป็นจะต้องใช้ buildit ร่วมด้วย เราก็อาจจะทำการ install จาก easy_install ซึ่งเป็น util หนี่งสำหรับการลงโปรแกรมต่าง ๆ ของ python</p>
<pre>easy_install http://www.agendaless.com/Members/chrism/software/buildit/buildit-0.1.tar.gz</pre>
<p>แล้วก็ โหลดตัว buildout มาจาก svn</p>
<pre>$ svn checkout http://svn.gispython.org/svn/zope/primagis.buildout/trunk primagis.buildout</pre>
<p>ก็เริ่มการ install โดยระบุค่า prefix หรือค่าต่างที่จำเป็น</p>
<p>python build.py &#8211;build-root=/tmp/ &#8211;prefix=/opt/hgis &#8211;zope-port=9080<br />
จากตัวอย่างนั้นต้องการ install ไปที่ /opt/hgis และใช้ /tmp สำหรับช่วงการ download และ build และระบุว่า zope นั้นเปิดที่ port 9080</p>
<p>เพียงเท่านี้มันก็จะ download และ build ทุกอย่างให้หมด แต่หากระหว่างการดำเนินการมีปัญหา เช่น sw นั้นเก่าไปแล้วหรือ link นั้น error ก็ให้ทำการแก้ไข ได้ที่ task/&lt;swname&gt;.ini</p>
<p>อีกสิ่งหนึ่งที่สำคัญในการ install นั้นไม่จำเป็นต้องใช้ root user เพียงแค่ permission ของ prefix directory ปลายทางนั้นสามารถเขียนได้ก็ใช้การได้</p>
<p>เมื่อลงเสร็จก็จะมีคำแนะนำว่าต้องทำอะไรอย่างไรต่อเช่น</p>
<p>- เริ่ม run zope</p>
<p>/opt/hgis/zope/Zope-2.9.6-final/instances/buildout/bin/runzope &#8211; ทำการทดลองสร้าง PrimaGIS ว่ามี error อะไรไหม</p>
<p>cd /opt/hgis/zope/Zope-2.9.6-final//instances/buildout<br />
./bin/zopectl test -vv &#8211;dir Products/PrimaGIS/tests</p>
<p>- login เข้าสู่หน้า manage ของ zope ด้วย user/passwd ที่กำหนดให้</p>
<p>http://localhost:9080/manage</p>
<p>- เมื่อเข้าสู่หน้า mange ของ zope แล้วก็ให้ทำการ สร้าง Plone Site (จากหน้าแรกแล้วเลือก drop down แล้วกด Add)</p>
<p>- กำหนดชื่อ plone site</p>
<p>- จากนั้นใน Plone Site ที่เราสร้างจะมีคำสั่ง <a href="http://gisws.media.osaka-cu.ac.jp:9080/hgis/portal_quickinstaller/manage_workspace">portal_quickinstaller</a> ให้ก็ให้ ลง PrimaGIS และ ZCO</p>
<p>- ให้ทำการแก้ไขค่า portal_gis โดยการใส่ค่า</p>
<p>fonset  &#8220;/opt/hgis/spatialdata/fonts/fontset.txt&#8221;</p>
<p>incoming /tmp</p>
<p>- ขั้นตอนสุดท้ายก็ทำการสร้าง PrimaGIS front ด้วย</p>
<p>http://localhost:9080/hgis/createPrimaGISDemo</p>
<p>แค่นี้ก็เสร็จสิ้นแล้ว</p>
<p><em>Remark</em></p>
<p>หากการทำแล้วมีปัญหาอะไร ลองตรวจสอบว่าบางที simplejson, elementtree, owslibอาจมีข้อผิดพลาดจากการ install ของ script อาจจะต้องทำการ ลงด้วย easy_install เองซึ่งไฟล์จะอยู่ใน</p>
<p>/opt/hgis/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/easy_install.py</p>
<pre></pre>
]]></content:encoded>
			<wfw:commentRss>https://www.ninsawat.com/?feed=rss2&#038;p=49</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
