<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by 3DGISKing on Medium]]></title>
        <description><![CDATA[Stories by 3DGISKing on Medium]]></description>
        <link>https://medium.com/@coolgis?source=rss-732b74f3d7a3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8ykRURoVu47oQCGmYRxOxA.png</url>
            <title>Stories by 3DGISKing on Medium</title>
            <link>https://medium.com/@coolgis?source=rss-732b74f3d7a3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 21:30:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@coolgis/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to make custom Mixin(Plugin) in CesiumJS]]></title>
            <link>https://medium.com/@coolgis/how-to-make-custom-mixin-plugin-in-cesiumjs-d546657bd381?source=rss-732b74f3d7a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/d546657bd381</guid>
            <dc:creator><![CDATA[3DGISKing]]></dc:creator>
            <pubDate>Fri, 24 Jul 2020 20:27:32 GMT</pubDate>
            <atom:updated>2020-08-16T11:39:48.311Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is a Mixin in CeisumJS?</h3><p>Generally speaking, “plugin” adds useful features to the software. Many software supports custom plugin development, for example, QGIS, which makes dramatically richer the feature of the software by vast of users.</p><p>Plugins are written by original developers of the software and other independent users who want to extend the core functionality of the software.</p><p>CesiumJS introduced so-called “Mixin” concept to extend the feature of it.</p><p>We can know many builtin Mixins exist from CesiumJS API doc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*RzLPOOgxm19WidMSnEYjFQ.png" /><figcaption>Builtin CesiumJS Mixins</figcaption></figure><p>One of the well known third party CesiumJS Mixin is the “viewerCesiumNavigationMixin”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/142/1*m120e-NP5Db_sA7YgjPyzA.png" /><figcaption>viewerCesiumNavigationMixin</figcaption></figure><p>It adds very useful compass, navigator and distance scale widgets to the CesiumJS 3d map user interface.</p><p>Using Mixin is very simple. We simply add just one line code like this.</p><pre>// extend our viewer by the cesium navigaton mixin<br>viewer.extend(Cesium.viewerCesiumNavigationMixin, {});</pre><p><strong>Then what is the Mixin in CesiumJS?</strong></p><p>In a nutshell, it is nothing but a pure JavaScript function. We can check it from the following CesiumJS ‘s source code .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*8Jo_6nKlLh5CRbHZ1b_wxw.png" /></figure><h3>How to make custom CesiumJS Mixin?</h3><p>To explain how to make a custom Mixin I have made a very simple CesiumJS Mixin with which the user can check the longitude and latitude from mouse position. The source code has been published <a href="https://github.com/3DGISKing/CesiumGSLatlonInspectorMixin"><em>here</em></a><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*7mHaWHUf0fU7cbL4FJe1jA.png" /></figure><p>It is very similar to <a href="https://sandcastle.cesium.com/index.html?src=Picking.html&amp;label=Beginner"><em>CesiumJS Sandcastle picking sample</em></a><em>.</em></p><p>Let me explain my Mixin sample.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*zGVO7E3FsU5_MP0-JTUN8A.png" /></figure><p>First, we create a new div and append it to the viewer ‘s container.</p><p>Next, we create LatlonInspector which would be a very simple widget with two buttons.</p><p>Then we override the viewer ‘s destroy function, in which we invoke the destroy function of the LatlonInspector along with the original destroy function of the viewer.</p><p>Finally, we make for the viewer to have latlonInspector property, that may be useful sometimes.</p><p>The rest of the code is very easy to understand so I will ignore it here.</p><p>I hope that you have a concept about CesiumJS Mixin and you ‘ll make great CesiumJS Mixins in future! Thank you for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d546657bd381" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to create a custom texture mapped sphere in CesiumGS?]]></title>
            <link>https://medium.com/@coolgis/how-to-create-a-custom-texture-mapped-sphere-in-cesiumgs-7834bfa83201?source=rss-732b74f3d7a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/7834bfa83201</guid>
            <dc:creator><![CDATA[3DGISKing]]></dc:creator>
            <pubDate>Thu, 23 Jul 2020 15:43:29 GMT</pubDate>
            <atom:updated>2020-07-23T15:43:29.913Z</atom:updated>
            <content:encoded><![CDATA[<p>Sometimes we need to change texture uv coordinates of the geometry CesiumGS provide by default.</p><p>The following code snippet implies how to implement it.</p><p>In the below code the function SphereBufferGeometry is very similiar to Three.js ‘s SphereBufferGeometry class.</p><pre>function createCustomMappingSpherePrimitive(ballRadius, widthSegments, heightSegments ) {<br>    let sphereGeometry = new SphereBufferGeometry( ballRadius, widthSegments, heightSegments );<br><br>    let positions = sphereGeometry.position;<br><br>    for ( let i = 0, l = positions.length / 3; i &lt; l; i ++ ) {<br>        let x = positions[ i * 3 + 0 ];<br>        let y = positions[ i * 3 + 1 ];<br>        let z = positions[ i * 3 + 2 ];<br><br>        // three js axis direction to cesium js axis direction<br>        positions[ i * 3 + 1 ] = z;<br>        positions[ i * 3 + 2 ] = -y;<br>    }<br><br>    let normals = sphereGeometry.normal;<br>    let uvs = sphereGeometry.uv;<br><br>    const canvasHeight = 2048;<br>    const canvasWidth = 2048;<br>    const verticalFov = 360;<br><br>    for ( let i = 0, l = normals.length / 3; i &lt; l; i ++ ) {<br>        let x = normals[ i * 3 + 0 ];<br>        let y = normals[ i * 3 + 1 ];<br>        let z = normals[ i * 3 + 2 ];<br><br>        // radius center<br>        let correction = ( x == 0 &amp;&amp; z == 0 ) ? 1 : ( Math.acos( y ) / Math.sqrt( x * x + z * z ) ) * ( 2 / ((verticalFov * Math.PI) / 180) );<br><br>        uvs[ i * 2 + 0 ] = x * ( (canvasHeight/2) / canvasWidth ) * correction + ( (canvasWidth/2) / canvasWidth );<br>        uvs[ i * 2 + 1 ] = z * ( (canvasHeight/2) / canvasHeight ) * correction + ( (canvasHeight/2) / canvasHeight );<br>    }<br><br>    let position = new Cesium.GeometryAttribute({<br>        componentDatatype: Cesium.ComponentDatatype.DOUBLE,<br>        componentsPerAttribute: 3,<br>        values: new Float64Array(sphereGeometry.position)<br>    });<br><br>    let normal = new Cesium.GeometryAttribute({<br>        componentDatatype: Cesium.ComponentDatatype.FLOAT,<br>        componentsPerAttribute: 3,<br>        values: new Float32Array(sphereGeometry.normal)<br>    });<br><br>    let st = new Cesium.GeometryAttribute({<br>        componentDatatype: Cesium.ComponentDatatype.FLOAT,<br>        componentsPerAttribute: 2,<br>        values: new Float32Array(sphereGeometry.uv)<br>    });<br><br>    let material = createMaterial(textureUrl, initialTransparency);<br><br>    spherePrimitive = new Cesium.Primitive({<br>        geometryInstances : new Cesium.GeometryInstance({<br>            geometry: new Cesium.Geometry({<br>                attributes: {<br>                    position: position,<br>                    normal: normal,<br>                    st: st<br>                },<br>                indices : new Uint16Array(sphereGeometry.index),<br>                primitiveType: Cesium.PrimitiveType.TRIANGLES,<br>                boundingSphere: Cesium.BoundingSphere.fromVertices(sphereGeometry.position)<br>            }),<br>        }),<br>        appearance: new Cesium.MaterialAppearance({<br>            material: material,<br>            closed: true<br>        }),<br>        asynchronous: false<br>    });<br><br>    theViewer.scene.primitives.add(spherePrimitive);<br><br>    spherePrimitive.modelMatrix = Cesium.Transforms.eastNorthUpToFixedFrame(defaultSpherePosition);<br>}</pre><p>Hope you enjoy this code.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7834bfa83201" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrating Forge Viewer with Power BI Custom Visual]]></title>
            <link>https://medium.com/@coolgis/integrating-forge-viewer-with-power-bi-custom-visual-9114946c95a4?source=rss-732b74f3d7a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/9114946c95a4</guid>
            <category><![CDATA[threejs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[autodesk]]></category>
            <category><![CDATA[webgl]]></category>
            <dc:creator><![CDATA[3DGISKing]]></dc:creator>
            <pubDate>Wed, 29 Jan 2020 13:41:09 GMT</pubDate>
            <atom:updated>2020-01-29T13:41:09.715Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Integrating Forge Viewer with Power BI Custom Visual</strong></p><ul><li>Download <a href="https://github.com/Autodesk-Forge/viewer-javascript-offline.sample">https://github.com/Autodesk-Forge/viewer-javascript-offline.sample</a>.</li><li>Run WebStorm 2019.1.1.</li><li>In WebStorm run index.html.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*miQJkqa7_6tQqszQ" /></figure><p>The javaScript code of this sample is very simple and straightforward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7t2sw2K4zPbjJ7El" /></figure><h3>2 Integrating with Power BI Custom Visual.</h3><ul><li>Prepare the environment as <a href="https://docs.microsoft.com/en-us/power-bi/developer/visuals/custom-visual-develop-tutorial">https://docs.microsoft.com/en-us/power-bi/developer/visuals/custom-visual-develop-tutorial</a> (In my case Windows10, Node js 10.15.3)</li><li>Download “circlecard” custom visual source from <a href="https://github.com/Microsoft/PowerBI-visuals-circlecard">https://github.com/Microsoft/PowerBI-visuals-circlecard</a></li><li>Add TypeScript definitions for Forge Viewer.</li></ul><p>npm install — save-dev @types/forge-viewer</p><ul><li>Install jQuery</li></ul><p>npm install jquery @type/jquery.</p><p>This screen capture shows my package.json and installed Forge Viewer TypeScript definition.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5kxF0Jrz9-RzgX40" /></figure><ul><li>Now let ‘s integrate ES5 Forge Viewer code snippet to Power BI custom visual.</li></ul><p>The code is very simple.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LCQ5eI6It3UHxRlZ" /></figure><p>In the constructor, we load viewer3D.min.js from Autodesk CDN using jquery. After successful loading of viewer3D.min.js, we prepare Viewer instance and initialize it.</p><p>At glance, It looks like there is not a problem.</p><p>Ok. Let ‘s test.</p><ul><li>Running Custom Visual.</li></ul><p>Execute “pbiviz start” in circlecard master.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/0*mSmaLeDrPt6rxt6K" /></figure><ul><li>Go to <a href="https://app.powerbi.com/">https://app.powerbi.com/</a> and open sample report and place <strong>Developer Visual.</strong></li></ul><p><a href="https://docs.microsoft.com/en-us/power-bi/developer/visuals/custom-visual-develop-tutorial">https://docs.microsoft.com/en-us/power-bi/developer/visuals/custom-visual-develop-tutorial</a>)</p><p>This is the result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ybc3meS304JMACl5" /></figure><h3>3 Why impossible?</h3><ul><li>Console output of Power BI</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EwhO_c4SRaMzXzWa" /></figure><ul><li>What are allstring.js and lmvworker.js?</li></ul><p>A lot of JavaScript sources and other data are needed for successful running ForgeViewer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JP9zBVzhJd6E_7U2" /></figure><p>allstring.js and Imvworker.js are part of such a thing.</p><p>Let ‘s see XHR tab in a developer tool in chrome for standalone ES5 sample.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DXN7SjzFASlpywwj" /></figure><p>From this, we can infer that allstring.json and Imvworker.min.js are loaded from starting viewer3D.min.js.</p><p>Maybe allstring.json and Imvworker.min.js are the first requested resources.</p><p>The same thing should happen in PowerBI custom visual internal.</p><p>But it fails. Chrome complains as following.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UfNpIAXsASb9KftI" /></figure><p><strong>Access to XMLHttpRequest at ‘https://app.powerbi.com/13.0.11888.332/res/locales/en/allstrings.json&#39; from origin ‘null’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.</strong></p><p><a href="https://app.powerbi.com/13.0.11888.332">https://app.powerbi.com/13.0.11888.332</a> indicates sandboxed iframe for our custom visual.</p><p>As a conclusion, because all required resource(script and other data) is(can not be) not loaded due to sandbox attribute of Power Bi custom visual, Forge Viewer can not successfully work in custom visual.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9114946c95a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to run WebODM natively on Windows]]></title>
            <link>https://medium.com/@coolgis/how-to-run-webodm-natively-on-windows-6581d81f2403?source=rss-732b74f3d7a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/6581d81f2403</guid>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[3DGISKing]]></dc:creator>
            <pubDate>Fri, 27 Dec 2019 03:18:15 GMT</pubDate>
            <atom:updated>2019-12-27T03:18:15.757Z</atom:updated>
            <content:encoded><![CDATA[<p>1<strong> Install dependencies.</strong></p><p>Install postgresql-9.5.15–1-windows-x64.</p><p>Install postgis-bundle-pg95x64-setup-2.5.0–1.</p><p>Install Python 3.5 (<a href="https://www.python.org/downloads/release/python-350/">https://www.python.org/downloads/release/python-350/</a>)</p><p>(C:\Users\<strong>uername</strong>\AppData\Local\Programs\Python\Python35)</p><p>Install Redis from the below link.(Redis-x64–3.0.504)</p><p><a href="https://github.com/microsoftarchive/redis/releases">Releases · microsoftarchive/redis</a></p><p>Install Nodejs 10.15.3</p><p>clone <a href="https://github.com/OpenDroneMap/WebODM">https://github.com/OpenDroneMap/WebODM</a></p><p>Start pgAdmin</p><p>From psql or pgadmin, connect to PostgreSQL, create a new database (name it webodm_dev), connect to it and set the postgis.enable_outdb_rasters and postgis.gdal_enabled_drivers settings:</p><p>ALTER SYSTEM SET postgis.enable_outdb_rasters TO True;<br>ALTER SYSTEM SET postgis.gdal_enabled_drivers TO ‘GTiff’;</p><p>Double click redis-server.exe</p><p>Make sure system recognize Python 3.5</p><p>Make sure system recognize Python 3.5 ‘s pip</p><p>Open cmd and go to WebODM folder.</p><pre>pip install -r requirements.txt<br></pre><p>But I got error</p><p>Command “python setup.py egg_info” failed with error code 1 in C:\Users\ugi\AppData\Local\Temp\pip-build-9w96mhf6\rasterio</p><p>So I tried</p><p>python -m pip install — upgrade pip</p><p>Next, retry</p><p>But got error</p><p>ERROR: Command errored out with exit status 1:<br> command: ‘c:\users\ugi\appdata\local\programs\python\python35\python.exe’ ‘c:\users\ugi\appdata\local\programs\python\python35\lib\site-packages\pip\_vendor\pep517\_in_process.py’ get_requires_for_build_wheel ‘C:\Users\ugi\AppData\Local\Temp\tmpugh7w_75’<br> cwd: C:\Users\ugi\AppData\Local\Temp\pip-install-vy_57pad\rasterio<br> Complete output (2 lines):<br> INFO:root:Building on Windows requires extra options to setup.py to locate needed GDAL files. More information is available in the README.<br> ERROR: A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.<br> — — — — — — — — — — — — — — — — — — — — <br>ERROR: Command errored out with exit status 1: ‘c:\users\ugi\appdata\local\programs\python\python35\python.exe’ ‘c:\users\ugi\appdata\local\programs\python\python35\lib\site-packages\pip\_vendor\pep517\_in_process.py’ get_requires_for_build_wheel ‘C:\Users\ugi\AppData\Local\Temp\tmpugh7w_75’ Check the logs for full command output.</p><p>Why failed?</p><p>pip fails to install rasterio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*3qc5NdcG2IEmjd4-nELE5A.png" /></figure><p>It ‘s really a pain to install rasterio on windows.</p><p>So I followed this link.</p><p><a href="https://antoniolocandro.wordpress.com/2015/05/19/installing-rasterio-on-windows/">Installing rasterio on Windows</a></p><p>download GDAL-3.0.2-cp35-cp35m-win_amd64.whl and rasterio-1.1.2-cp35-cp35m-win_amd64.whl from <a href="https://www.lfd.uci.edu/~gohlke/pythonlibs">https://www.lfd.uci.edu/~gohlke/pythonlibs</a></p><p>Open cmd and cd into directory where the whl files were download</p><p>pip install GDAL-3.0.2-cp35-cp35m-win_amd64.whl rasterio-1.1.2-cp35-cp35m-win_amd64.whl</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*dwYZpEbPO6I8jHDSvVglVw.png" /></figure><p>Next, I deleted the following line in requirement.txt and retried pip install -r requirement.txt but get a bunch of errors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*guE-veqc1X2fhDzZ9dscZA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n8ueLE_lJTtfAOsFRyjXRg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AHXfUdb8BB3E7SO9xaXnoA.png" /></figure><p>npm install -g webpack-cli</p><p>npm install</p><p>webpack — mode production</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*xuy_37eIH70hE1UFXVKEAQ.png" /></figure><p>How to clear pip cache?</p><p>C:\Users\ugi\AppData\Local\pip</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6581d81f2403" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to hide footer in a specific page (Elementor)]]></title>
            <link>https://medium.com/@coolgis/how-to-hide-footer-in-a-specific-page-elementor-dd8259046c9d?source=rss-732b74f3d7a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd8259046c9d</guid>
            <dc:creator><![CDATA[3DGISKing]]></dc:creator>
            <pubDate>Fri, 06 Dec 2019 13:12:39 GMT</pubDate>
            <atom:updated>2019-12-06T13:12:39.212Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f4LW4-uxYsljUT8fmaIVuw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nSlUBO2Ce7zSpL4ZfSiT-w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*j-cHfPctcMoSHURWi_9R_Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/365/1*1oleY-rg2psYNATxjCUB8g.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd8259046c9d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to control margin Elemtor page]]></title>
            <link>https://medium.com/@coolgis/how-to-control-margin-elemtor-page-3d267980b62a?source=rss-732b74f3d7a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d267980b62a</guid>
            <dc:creator><![CDATA[3DGISKing]]></dc:creator>
            <pubDate>Fri, 06 Dec 2019 12:46:16 GMT</pubDate>
            <atom:updated>2019-12-31T02:40:35.553Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to control margin Elementor page</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B71l9jDMHjQi3kolcUNzfw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nasTSiTPXpy_rj2s0lWIHA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*vd0gWtMYYF2PP5rtkDXFSw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d267980b62a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to make customized measurement toolbar in Cesium Js.]]></title>
            <link>https://medium.com/@coolgis/how-to-make-customized-measurement-toolbar-in-cesium-js-5af5f44d1429?source=rss-732b74f3d7a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/5af5f44d1429</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[3DGISKing]]></dc:creator>
            <pubDate>Mon, 25 Nov 2019 12:48:10 GMT</pubDate>
            <atom:updated>2019-11-25T12:48:10.202Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Step 1</strong></p><p>Prepare minimal Cesium Js stub as below. If you know Cesium js, you will be very familiar to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*R-a2-wkPixnfWhMI8akWGQ.png" /><figcaption>Minimal Cesium js Code Stub</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rB1TMTTxGkHn7bTK8je4ZA.png" /><figcaption>Screenshot of minimal Cesium Js Code Stub.</figcaption></figure><p>Step 2</p><p>Next, we make simple UI for our measurement toolbar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yPoxup_7FCp2e6dnfvTV_w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u3Rl-C5s_H7FgUjZJDLxwA.png" /></figure><p>Step 3</p><p>Next, we build CesiumTool.js. We use rollup as JavaScript bundler.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pXj_yXxgnlrdhz655eGm-w.png" /></figure><p>Next we insert it to our index.html.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mVIr6iSvk2emIpuWUhIjog.png" /></figure><p>Step 4</p><p>Next, we add some code.</p><p>It is very simple, elegant and straightforward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9WzgZvwFdq1tig5eUW46YQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*ShhmY18n8jy-xQrgTbnjnQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*R6KCPFK0zIk2TxvZYzeUwQ.png" /></figure><p>Demo Movie Link:</p><p><a href="https://youtu.be/XGMPDEhYQ9M">https://youtu.be/XGMPDEhYQ9M</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5af5f44d1429" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to install GeoServer in AWS EC2 instance Ubuntu 18.04.2 LTS]]></title>
            <link>https://medium.com/@coolgis/how-to-install-geoserver-in-aws-ec2-instance-ubuntu-18-04-2-lts-ab3ff1b9adae?source=rss-732b74f3d7a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab3ff1b9adae</guid>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[3DGISKing]]></dc:creator>
            <pubDate>Wed, 11 Sep 2019 14:22:39 GMT</pubDate>
            <atom:updated>2019-09-19T13:10:04.468Z</atom:updated>
            <content:encoded><![CDATA[<p>2019/9/11</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*DKZU5dNK78s7P5bjWrmaVQ.png" /></figure><p>Naviagte to <a href="http://geoserver.org/release/stable/">http://geoserver.org/release/stable/</a> link and click the Platform Independent Binar link.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*ylt3lrf1ibXawxaOXmPk7Q.png" /></figure><p>Now make sure you have already install ed Java Runtime Environment(JRE) in your system.</p><p>apt-get install openjdk-8-jre</p><p>Upload geoserver-2.15.2-bin.zip to /home/jin</p><p>Extract it.</p><p>apt install unzip</p><p>unzip geoserver-2.15.2-bin.zip</p><p>Add an environment variable to save the location of GeoServer</p><p>echo “export GEOSERVER_HOME=/home/jin/geoserver-2.15.2”</p><p>Make yourself the owner of the geoserver folder. Type the following command in the terminal window, replacing USER_NAME with your own username :</p><p>sudo chown -R jin /home/jin/geoserver-2.15.2</p><p>Start GeoServer by changing into the directory geoserver/bin and executing the startup.sh script:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e3aphgJ1obTqD2JisYS9Aw.png" /></figure><p>If error exist, please run startup.sh as root</p><p>Enabling CORS</p><p><strong>Reference</strong></p><p><a href="https://docs.geoserver.org/stable/en/user/installation/linux.html">https://docs.geoserver.org/stable/en/user/installation/linux.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab3ff1b9adae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to build cesium-terrain-builder?]]></title>
            <link>https://medium.com/@coolgis/how-to-build-cesium-terrain-builder-6c6eb4e3b7c3?source=rss-732b74f3d7a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c6eb4e3b7c3</guid>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[3DGISKing]]></dc:creator>
            <pubDate>Sun, 08 Sep 2019 20:31:05 GMT</pubDate>
            <atom:updated>2019-12-15T13:12:55.757Z</atom:updated>
            <content:encoded><![CDATA[<p>Window10, Visual Studio 2015.</p><p>1 First, build gdal 2.4.2.</p><p>2 Download zlib-1.2.11.tar.xz.</p><p>Go to zlib-1.2.11\contrib\vstudio\vc14 and open zlibvc.sln</p><p>Select zlibvc project and right-click.</p><p>Then remove ZLIB_WINAPI macro.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*cj_azZ0BdZefC_Kalz7ncA.png" /></figure><p>Next</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*u2aMxrIu8S04A4_lBbAH1A.png" /></figure><p>3. clone <a href="https://github.com/geo-data/cesium-terrain-builder">https://github.com/geo-data/cesium-terrain-builder</a></p><p>run cmake.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*riTFl59f6HS4DhDYfZIDHA.png" /></figure><p>Next, include the <a href="https://svn.osgeo.org/gdal/trunk/gdal/gcore/gdaloverviewdataset.cpp">gdaloverviewdataset.cpp</a> source file in GDALTiler.cpp just before “getOverviewDataset” declaration</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xcWrfxNzA9Tyxu9sWFmYbg.png" /></figure><p>Ok</p><p>test</p><p>ctb-tile.exe — output-dir ./terrain-tiles dem.tif</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*9WxI5iBv6f3j9mChPd2DsA.png" /></figure><p>So, I tried to build proj 4.8.0 and copy it to the same folder.</p><p>To build proj4.8.0, use nmake /f makefile.vc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*HpLoAopvBm5K4JmVAt0GNA.png" /></figure><p>Ok</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6SwYKOqIosSH3IGCRuv0SQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*5AcqaYeOe2GHF2fGSb43yg.png" /></figure><p>Image tiling.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SZ-ZGJ5y7LlbqRvTfG81Qg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*djUUJb661MNJ2vGqYsOOkg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*_UyC4ZBpwVZ9OuDWNdn-ow.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c6eb4e3b7c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to download shapefile from ArcGIS MapService?]]></title>
            <link>https://medium.com/@coolgis/how-to-download-shapefile-from-arcgis-mapservice-1e3fac024ab0?source=rss-732b74f3d7a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e3fac024ab0</guid>
            <category><![CDATA[gis]]></category>
            <dc:creator><![CDATA[3DGISKing]]></dc:creator>
            <pubDate>Fri, 06 Sep 2019 15:13:48 GMT</pubDate>
            <atom:updated>2019-09-06T15:13:48.813Z</atom:updated>
            <content:encoded><![CDATA[<p>Goal:</p><p>I want to download shapefile from follwing ArcGIS MapService URL</p><p><a href="https://programs.iowadnr.gov/geospatial/rest/services/SurfaceWaters/FloodGradient/MapServer">SurfaceWaters/FloodGradient (MapServer)</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*cnuJGSAXOsKB1B53dYIjRw.png" /></figure><ol><li>Open QGIS</li><li>Make connection with ArcgisFeatureServer.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/1*qbuViv-r6IfS2NjRGkivIg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*DEQDwjnzXHimZ4kJz-XKnw.png" /></figure><p>3. Then you can see things as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*RiUBiWyQSGYw-TEVJLY4vg.png" /></figure><p>4. Double click the one layer to import to QGIS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*km4n_FwL5s2yxOVzbW2hsQ.png" /></figure><p>5. Right-click on imported layer and select Export/Save Features As.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*vIupxT8UVBMwhcdY1_wCIA.png" /></figure><p>Ok.</p><p>According to my experience, exporting is very slow.</p><p>This is the result screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lezNISikhcEU6CQjDBZmpA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-216HuYd7zTgwb4307_z_g.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e3fac024ab0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>