<?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; web client</title>
	<atom:link href="https://www.ninsawat.com/?cat=5&#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>AppforMap Application ภาคต่อ</title>
		<link>https://www.ninsawat.com/?p=15&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=appformap-application-%25e0%25b8%25a0%25e0%25b8%25b2%25e0%25b8%2584%25e0%25b8%2595%25e0%25b9%2588%25e0%25b8%25ad</link>
		<comments>https://www.ninsawat.com/?p=15#comments</comments>
		<pubDate>Fri, 24 Feb 2006 07:46:00 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[web client]]></category>

		<guid isPermaLink="false">http://www.ninsawat.com/?p=15</guid>
		<description><![CDATA[มันยังไม่จบกันง่าย ๆ ครับพี่น้อง เนื่องมันเป็น version แรกอะนะ เจ้าของ code ยังจัดสรรอะไรได้ไม่หมด ค่าบางค่าเวลาจะ tune up จำเป็นต้องค้นหากันนิดหน่อย วันนี้มาว่ากันเรื่อง Background_color โดยมันจะมีค่าระบุไว้ใน code ของ function.php ถึงแม้เราจะเปลี่ยนค่าใน map file อย่างไรก็ตามมันก็ยังไม่เปลี่ยนอยู่นะครับต้องทำการเปลี่ยนใน code มันจริง ๆ แล้วน่าจะแยกไปเก็บใน maplinkconfig.phpนะเนี่ย $background_color = ImageColorAllocate( $im, 235, 235, 235); อะนะก็ต้องมาตามแก้มันสะ]]></description>
				<content:encoded><![CDATA[<p>มันยังไม่จบกันง่าย ๆ ครับพี่น้อง เนื่องมันเป็น version แรกอะนะ เจ้าของ code ยังจัดสรรอะไรได้ไม่หมด ค่าบางค่าเวลาจะ tune  up จำเป็นต้องค้นหากันนิดหน่อย</p>
<p>วันนี้มาว่ากันเรื่อง <span style="font-weight: bold;">Background_color</span></p>
<p>โดยมันจะมีค่าระบุไว้ใน code ของ function.php ถึงแม้เราจะเปลี่ยนค่าใน map file อย่างไรก็ตามมันก็ยังไม่เปลี่ยนอยู่นะครับต้องทำการเปลี่ยนใน code มันจริง ๆ แล้วน่าจะแยกไปเก็บใน maplinkconfig.php<br />นะเนี่ย</p>
<p><span style="font-style: italic;">$background_color = ImageColorAllocate( $im, 235, 235, 235);</span></p>
<p>อะนะก็ต้องมาตามแก้มันสะ</p>
]]></content:encoded>
			<wfw:commentRss>https://www.ninsawat.com/?feed=rss2&#038;p=15</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ใช้งาน Plone กับ Mini Thin AppforMap</title>
		<link>https://www.ninsawat.com/?p=14&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e0%25b9%2583%25e0%25b8%258a%25e0%25b9%2589%25e0%25b8%2587%25e0%25b8%25b2%25e0%25b8%2599-plone-%25e0%25b8%2581%25e0%25b8%25b1%25e0%25b8%259a-mini-thin-appformap</link>
		<comments>https://www.ninsawat.com/?p=14#comments</comments>
		<pubDate>Wed, 15 Feb 2006 08:41:00 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[web client]]></category>

		<guid isPermaLink="false">http://www.ninsawat.com/?p=14</guid>
		<description><![CDATA[วันนี้มาสั้น ๆ แล้วกัน ความแตกต่างของ obj ใน Plone เลือกให้ดีว่าจะเพิ่ม -Directory (ห้อง)-Page มันจะแสดง link แล้วแสดง page เมื่อ click-File มันจะแสดงรายการชื่อไฟล์และเปิดไฟล์เมื่อ click ส่วนการเพิ่ม AppforMap mini client เข้าไปจำเป็นต้องใช้ iframe tag โดยใส่ &#60;iframe&#62;http://160.193.3.63/appformap/client_mini.phtml?defaultLayers=ampm&#62;&#60;iframe&#62;ก็จะได้ผลดังรูปข้างล่าง เข้าไปแต่ว่าด้วยความปลอดภัย Plone จะเ็ก็บ content แต่ไม่ render ทำให้ต้องไปแก้ใน Zope ให้มันอนุญาตอีกครั้ง / /portal_transforms/safe_html โดยเพิ่มให้ iframe มีค่าเท่ากับ 1 ใน valid tag แล้วทำการ restart มันสะ หรือหากจะแก้ทั้งหมดเพื่อใช้ในครั้งต่อ ๆ ไปก็ต้องไปแก้ใน /python/Product/CMFDefault/utils.py]]></description>
				<content:encoded><![CDATA[<p>วันนี้มาสั้น ๆ แล้วกัน</p>
<p>ความแตกต่างของ obj ใน Plone เลือกให้ดีว่าจะเพิ่ม</p>
<p>-Directory (ห้อง)<br />-Page มันจะแสดง link แล้วแสดง page เมื่อ click<br />-File มันจะแสดงรายการชื่อไฟล์และเปิดไฟล์เมื่อ click</p>
<p>ส่วนการเพิ่ม AppforMap mini client เข้าไปจำเป็นต้องใช้ iframe tag</p>
<p>โดยใส่</p>
<p>&lt;iframe&gt;http://160.193.3.63/appformap/client_mini.phtml?defaultLayers=ampm&gt;&lt;iframe&gt;<br />ก็จะได้ผลดังรูปข้างล่าง<br /><iframe src="http://160.193.3.63/appformap/client_mini.phtml?defaultLayers=ampm" frameborder="0" height="500" scrolling="no" width="500"></iframe></p>
<p>เข้าไปแต่ว่าด้วยความปลอดภัย Plone จะเ็ก็บ content แต่ไม่ render ทำให้ต้องไปแก้ใน Zope ให้มันอนุญาตอีกครั้ง</p>
<p>/
<project name="">/portal_transforms/safe_html</p>
<p>โดยเพิ่มให้ iframe มีค่าเท่ากับ 1 ใน valid tag แล้วทำการ restart มันสะ</p>
<p>หรือหากจะแก้ทั้งหมดเพื่อใช้ในครั้งต่อ ๆ ไปก็ต้องไปแก้ใน</p>
<p><span style="font-style: italic;"><br /><zope path="">/python/Product/CMFDefault/utils.py<br /></zope></span></project>
]]></content:encoded>
			<wfw:commentRss>https://www.ninsawat.com/?feed=rss2&#038;p=14</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ใช้งาน AppforMap กับ Map file ของเราเอง</title>
		<link>https://www.ninsawat.com/?p=11&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e0%25b9%2583%25e0%25b8%258a%25e0%25b9%2589%25e0%25b8%2587%25e0%25b8%25b2%25e0%25b8%2599-appformap-%25e0%25b8%2581%25e0%25b8%25b1%25e0%25b8%259a-map-file-%25e0%25b8%2582%25e0%25b8%25ad%25e0%25b8%2587%25e0%25b9%2580%25e0%25b8%25a3%25e0%25b8%25b2%25e0%25b9%2580%25e0%25b8%25ad%25e0%25b8%2587</link>
		<comments>https://www.ninsawat.com/?p=11#comments</comments>
		<pubDate>Wed, 08 Feb 2006 07:52:00 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[web client]]></category>

		<guid isPermaLink="false">http://www.ninsawat.com/?p=11</guid>
		<description><![CDATA[วันนี้ก็จะมาต่อกันอีกสำหรับ AppforMap เอาว่าย้ายกันมาให้ได้เลย ก็ไม่มีไรมาก ต้องทำการแก้ไขไฟล์ส่วนใหญ่ที่อยู่ AppforMap/conf/ซึ่งประกอบไปด้วยไฟล์ดังนี้ maplinkconfig.conf,refmapconfig.conf,browserconfig.xml และ load_modules.php 1.maplinkconfig.conf ให้ทำการแก้ไขค่า ดังนี้ $workingDir=&#8221;C:/ms4w/tmp/ms_tmp/&#8221;;//path to the map image. Better use absolute url, because mapscript module change the workingdir$imageUrl=&#8221;http://localhost/ms_tmp/&#8221;;//url to the map image. if (!$mapfileUrl) $mapfileUrl=&#8221;C:/ms4w/apache/htdocs/librarymap/mapfile/library_app.map&#8221;; if (!$layerXml) $layerXml=&#8221;http://localhost/appformap2/conf/browserconfig.xml?&#8221;; และอาจต้องมีการปรับเปลี่ยนบ้างในกรณีหากมีการใช้ PostGIS อีกทั้งหน้าตา เมนูต่าง ๆ ให้สำรวจดูว่ามีอะไรที่ให้แสดงไว้บ้าง 2.refmapconfig.conf แก้ไขทุกค่า ของมันเลยก็ว่าได้ เพราะมัีนมีอยู่แค่ 4 ตัว 3. browserconfig.xml อันนี้เป็นไฟล์เพื่อแสดง ตัวบังคับการเปิดปิด layer ซึ่งอาจไม่ต้องมีจำนวนเท่ากันกับใน&#8230;]]></description>
				<content:encoded><![CDATA[<p>วันนี้ก็จะมาต่อกันอีกสำหรับ AppforMap เอาว่าย้ายกันมาให้ได้เลย</p>
<p>ก็ไม่มีไรมาก ต้องทำการแก้ไขไฟล์ส่วนใหญ่ที่อยู่ AppforMap/conf/<br />ซึ่งประกอบไปด้วยไฟล์ดังนี้ </p>
<p><span style="font-style:italic;">maplinkconfig.conf,refmapconfig.conf,browserconfig.xml และ load_modules.php</span></p>
<p><span style="font-weight:bold;">1.maplinkconfig.conf</span></p>
<p>ให้ทำการแก้ไขค่า ดังนี้ </p>
<p>$workingDir=&#8221;C:/ms4w/tmp/ms_tmp/&#8221;;//path to the map image. Better use absolute url, because mapscript module change the workingdir<br />$imageUrl=&#8221;http://localhost/ms_tmp/&#8221;;//url to the map image.</p>
<p>if (!$mapfileUrl) $mapfileUrl=&#8221;C:/ms4w/apache/htdocs/librarymap/mapfile/library_app.map&#8221;;</p>
<p>if (!$layerXml) $layerXml=&#8221;http://localhost/appformap2/conf/browserconfig.xml?&#8221;;</p>
<p>และอาจต้องมีการปรับเปลี่ยนบ้างในกรณีหากมีการใช้ PostGIS อีกทั้งหน้าตา เมนูต่าง ๆ ให้สำรวจดูว่ามีอะไรที่ให้แสดงไว้บ้าง</p>
<p><span style="font-weight:bold;">2.refmapconfig.conf</span></p>
<p>แก้ไขทุกค่า ของมันเลยก็ว่าได้ เพราะมัีนมีอยู่แค่ 4 ตัว</p>
<p><span style="font-weight:bold;">3. browserconfig.xml</span></p>
<p>อันนี้เป็นไฟล์เพื่อแสดง ตัวบังคับการเปิดปิด layer ซึ่งอาจไม่ต้องมีจำนวนเท่ากันกับใน map file ก็ได้<br />หลักก็มีค่าของ </p>
<p><span style="font-style:italic;">Title</span> ซึ่งเป็นชื่อที่จะแสดง<br /><span style="font-style:italic;">Name และ Table</span> ต้องตรงกับชื่อ layer ใน mapfile<br /><span style="font-style:italic;">Abstract</span> ใช้คำอธิบายเยอะ ๆ ลงไปได้</p>
<p><span style="font-weight:bold;">4. load_modules.php</span><br />อาจต้องทำการแก้ไขบ้างในการ load module ของ php โดยเฉพาะเมื่อใช้กับ linux OS.</p>
<p>มาสำหรับขั้นสูงขึ้นในการใ้ช้ PostGIS และใช้ client_classic.phtml ที่ทำการ ค้นหาจุดได้นั้นต้องทำการแก้ไขเพิ่มเติมในไฟล์ <span style="font-weight:bold;">search_select.php</span></p>
<p>ต้องทำการเปลี่ยน ตัวแปรที่เกี่ยวกับการ query มีค่าเหมือนกันกับชื่อ <span style="font-style:italic;">Select tag และ Option tag</span></p>
<p>และปรับเปลี่ยน SQL query command ให้สามารถดึงข้อมูลมาได้</p>
<p>ส่วนรายละเอียดให้ใช้งานได้อย่างเต็มที่ยังมีรายละเอียดอีกมากมาย โดยจะเอาตัวอย่าง มา post ไว้เต็มเลยดีกว่าเนอะ</p>
<p>แต่มี bug อยู่หนึ่งอย่างในไฟล์ function.php ซึ่งจะมีผลกับ postgis > 1.0 ขึ้นไปโดยจะเ้ข้มงวดกับการแบ่งแยก พิกัดมากขึ้น</p>
<p><span style="font-weight:bold;"><!-- hello select asText(the_geom) as geometry,gid,SHOPID,NAME,ADDRESS,PHONE_NUMB,TYPE from AMPM where GeometryFromText('POLYGON((135.773005681 34.8983738636,135.777710227 34.8983738636,135.777710227 34.9025670454,135.773005681 34.9025670454135.773005681 34.8983738636,135.773005681 34.8983738636))',-1) &#038;&#038; the_geom and intersects(GeometryFromText('POLYGON((135.773005681 34.8983738636,135.777710227 34.8983738636,135.777710227 34.9025670454,135.773005681 34.9025670454135.773005681 34.8983738636,135.773005681 34.8983738636))',-1),the_geom)--> </span></p>
<p>จะเห็นว่ามันไม่มี<br />
<blockquote> , </p></blockquote>
<p> ระหว่างค่าพิกัดหายไปซึ่งใน version 0.8 นั้นจะยอมให้ใช้งานได้จึงต้องทำการแก้ไข code ที่ราว ๆ บรรทัด 2031 จาก</p>
<blockquote><p>$NewPointArray = $NewPointArray.$geominx.&#8221; &#8220;.$geominy;</p>
<p>and replace it with;</p>
<p>$NewPointArray = $NewPointArray.&#8221;,&#8221;.$geominx.&#8221; &#8220;.$geominy;</p></blockquote>
<p>เสร้จแหละนะคร้าบบ</p>
<blockquote><p>เห่อ วันนี้ทำงานได้เยอะ มาก ๆ เลย สงสัยได้รับทราบเค้าดีว่าจะได้กลับไทยและบี visa ผ่านแหละ</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>https://www.ninsawat.com/?feed=rss2&#038;p=11</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AppforMap Application</title>
		<link>https://www.ninsawat.com/?p=8&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=appformap-application</link>
		<comments>https://www.ninsawat.com/?p=8#comments</comments>
		<pubDate>Wed, 25 Jan 2006 08:54:00 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[web client]]></category>

		<guid isPermaLink="false">http://www.ninsawat.com/?p=8</guid>
		<description><![CDATA[วันนี้จะทำการลง Mapserver Client ใหม่ อะนะครับ AppforMap Application การลงก็ไม่ยากอะไรเป็นแค่ Web Map Client Application ก็ extract ไว้ใน htdocs path จากนั้นต้องทำการแก้ไข้ไฟล์ maplinkconfig.php ซี่งอยู่ใน conf/ directory โดยค่าที่สำคัญคงเป็นค่า workingDirworkingDir and imageUrl $workingDir=&#8221;C:/ms4w/tmp/ms_tmp/&#8221;;$imageUrl=&#8221;http://localhost/ms_tmp/&#8221;;//url to the map image. อีกทั้งต้องทำการแก้ไข IMAGEURL ใน mapfile ให้เป็นในลักษณะ http:// เช่นเดียวกันด้วย แล้วยังต้องมีการไปแก้ไขไฟล์ browserconfig.xml เพื่อทำให้สามารถใช้ควบคุมการกำหนดการเปิด ปิด Layer ได้ แต่ทั้งนี้ทั้งนั้นจำเป็นต้องทำการแก้ไข php.ini ให้เปลี่ยนแค่ register_globals=on ด้วยไม่เช่นนั้นก็ใช้ไม่ได้ และหากยังต้องทำการปรับแก้ไขไฟล์refmapconfig.php ที่เป็นตัวควบคุมของ Reference map ด้วย โดยต้องแก้ไข&#8230;]]></description>
				<content:encoded><![CDATA[<p>วันนี้จะทำการลง Mapserver Client ใหม่ อะนะครับ</p>
<p><a href="http://appformap.mapuse.net/">AppforMap Application</a></p>
<p>การลงก็ไม่ยากอะไรเป็นแค่ Web Map Client Application ก็ extract ไว้ใน htdocs path</p>
<p>จากนั้นต้องทำการแก้ไข้ไฟล์ </p>
<p><span style="font-weight:bold;">maplinkconfig.php</span> ซี่งอยู่ใน conf/ directory</p>
<p>โดยค่าที่สำคัญคงเป็นค่า</p>
<p><span style="font-style:italic;">workingDir</span>workingDir and <span style="font-style:italic;">imageUrl</span></p>
<p><span style="font-style:italic;">$workingDir=&#8221;C:/ms4w/tmp/ms_tmp/&#8221;;<br />$imageUrl=&#8221;http://localhost/ms_tmp/&#8221;;//url to the map image.</span></p>
<blockquote><p>อีกทั้งต้องทำการแก้ไข IMAGEURL ใน mapfile ให้เป็นในลักษณะ http:// เช่นเดียวกันด้วย</p></blockquote>
<p>แล้วยังต้องมีการไปแก้ไขไฟล์</p>
<p><span style="font-weight:bold;">browserconfig.xml</span></p>
<p>เพื่อทำให้สามารถใช้ควบคุมการกำหนดการเปิด ปิด Layer ได้</p>
<p>แต่ทั้งนี้ทั้งนั้นจำเป็นต้องทำการแก้ไข php.ini ให้เปลี่ยนแค่ register_globals=on ด้วยไม่เช่นนั้นก็ใช้ไม่ได้</p>
<p>และหากยังต้องทำการปรับแก้ไขไฟล์<br /><span style="font-weight:bold;">refmapconfig.php</span></p>
<p>ที่เป็นตัวควบคุมของ Reference map ด้วย โดยต้องแก้ไข Extent ของภาพที่้ใชได้</p>
<p><span style="font-weight:bold;">ข้อแนะนำ</span></p>
<p>ส่วนใหญ่ การอ้างอิงถึงในตัวแปรให้ใช้ค่า Actual path</p>
]]></content:encoded>
			<wfw:commentRss>https://www.ninsawat.com/?feed=rss2&#038;p=8</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
