Example of World File - google-maps

Does any body have an example of map world file, where it shows the input parameters including the latitude and longitude and the output world file.
I Google for world file, I found an explanation but I didn't see a full example.
Thanking you.

See this page:
http://en.wikipedia.org/wiki/World_file
It explains the format very well and it has also a World file example in UTM coordinate system. It is typically a text file with extension .wld and 6 lines such as:
32.0
0.0
0.0
-32.0
691200.0
4576000.0
You have on your question the tag "maptiler". If you want to create Google Maps compatible tiles with MapTiler then you don't need to define the World file, there are now also other options for how to assign location to an image. See http://www.maptiler.com/how-to/georeferencing/

Related

DWG file fonts not displaying

I tried to load fonts with my drawing but i have an error <Missing fonts\nSome missing fonts were substituted for the drawing file: {0}>. I use https://developer.api.autodesk.com/modelderivative/v2/designdata/<BASE64_ENCODED_URN_OF_SOURCE_FILE>/references this route to add references to my drawing. Response what i get is { result: 'success' }. But when i open the viewer the fonts doesn't loaded.
Could you help me with it?
You have to upload the files, set up the references between them, and then translate them - not the other way round.
We have a step by step tutorial on this here: https://aps.autodesk.com/en/docs/model-derivative/v2/tutorials/translate-source-file-containing-xref/

How to export SolidWorks/eDrawings file in WebGL?

With the launch of SolidWorks 2016, Dassault Systèmes has promoted a new web portal that enables the embedding of Edrawings models into web pages: 3dcontentcentral.com.
Their web 3D viewer uses WebGL to show model inside a browser window (here you can find a live example). Moreover, there is the possibility to embed an iframe with the viewer to embed it onto another web page, like the following:
<iframe scrolling='no' frameborder='0' allowfullscreen='true'
src='http://www.3dcontentcentral.com/external-site-embed.aspx?format=3D&catalogid=364&modelid=1254&width=250&height=250&edraw=true'
name='PreviewFrame3D' id='PreviewFrame3D' width='400' height='355'>
</iframe>
<br/>
<a href='http://www.3dcontentcentral.com/download-model.aspx?catalogid=364&id=1217'>
Download</a>
The final result is something like the following:
Full screen example
So, is there any chance to export a 3D model (part) in the same way and embed as a WebGL without uploading into 3D Content Central website? I have also access to the Edrawings/SolidWorks SDK (2015), if it could be helpful in any way.
How to convert a SolidWorks file into a WebGL JSON file
The best solution I came across is simply to use SolidWorks Visualize (formerly Bunkspeed) to export the geometry and the materials using a combination of OBJ and MTL files.
Then, you'll be able to import it into a WebGL scene using the Three.js/OBJLoader. A big problem that can arise is the dimension and the memory required to load the exported file. To solve this latency/memory problem you can then convert the exported OBJ files into Three.js JSON format using the three-obj and minifying them using the minify() method. After that you'll have to load the minified files using the Three.js/BinaryLoader.
Hope this can help someone else.
Have a look at the WebGL 3D model viewer using three.js guide at http://www.radiatedpixel.com/wordpress/2013/03/27/webgl-3d-model-viewer-using-three-js/
Export the obj file from SolidWorks.
It should be straight forward to add your own controls via JavaScript.

How to check KML layer has active feed or not?

I created a KML layer for the URL - http://www.nhc.noaa.gov/gis/kml/nhc.kmz.
This layer is applied on the map and I could not see any layer. The reason is there is no active feed for this KML layer.
Is there any way to check if the KML layer has the active feed or not?
If a feed is not active (meaning the URL fails to load) Google Earth will show the NetworkLink icon with a red network link error icon. The status of network link fetching is shown with different icons as shown below:
Also note there are two validation errors in the KML, both in the target KML.
URL: http://www.nhc.noaa.gov/gis/kml/nhc_active.kml
1) The NetworkLinkControl expires time is formatted in a non-KML date format.
<NetworkLinkControl>
<minRefreshPeriod>120</minRefreshPeriod>
<expires>Thu, 28 Mar 2013 17:01:37 UTC</expires>
</NetworkLinkControl>
The kml:DateTime field is defined as the following:
<simpleType name="kml:dateTimeType">
<union memberTypes="dateTime date gYearMonth gYear"/>
</simpleType>
Recommend the ISO-8601 format: YYYY-MM-DD'T'HH:MM:SS'Z'
like this: 2013-03-28T17:01:37Z
References:
http://www.w3schools.com/schema/schema_dtypes_date.asp
http://www.w3.org/TR/xmlschema-2/#dateTime
2) The Document has a name defined twice. The second name appears it should be enclosed with a missing <Folder> element.
<Document id="active">
<name>Current Forecasts and Data</name>
...
<ScreenOverlay id="activeLegend">
</ScreenOverlay>
** following 3 tags don't belong here ***
<name>Active Tropical Cyclones</name>
<visibility>1</visibility>
<open>1</open>
</Document>
Recommend using a KML Validator to validate KML when it does NOT work like you expect it to.

Invalid PNG Image file: iDOT doesn't point to valid IDAT chunk

I have some HTML content pages in an app and I'm using a UIWebView to display them. Some of these pages have a PNG image in them that is generating the following message in the debug console in xcode:
ImageIO: PNG invalid PNG file: iDOT doesn't point to valid IDAT chunk
The image still displays and looks correct. Also this only happens when I run the app on an iPad (3rd generation). My iPhone 4 doesn't display this message.
My first thought was that it was caused by a ~ character in the filename (I've added the ~ipad tag to the filename). However, removing the ~ character doesn't have any effect.
I've done a google search but I only get 3 results. 2 of them are in Chinese that doesn't seem to be translated well by Google's translater. The other results seems to be someone with the same issue as me, but no responses to his post.
Had the same problem. Solution:
use "color sync utility" which is a standard program, you can load from launchpad. Open the png file and save it with the utility.
'cleaning' the project (xcode menu path : product -> clean) solved this exact issue for me.
Resaving the .png with a new name did not.
Image did appear in the simulator but not on the test device (ipod touch 5th gen.)
Very large image 4000 x 4000
Strangely, I had the exact same issue just about an hour ago. I didn't find a particular reason for why it was failing, but I think I was able to "fix" the image to make it display properly and not throw an error.
I just opened it in Preview and exported a new PNG file from the source. Once I replaced the bad image in my project file with the newly created one, I cleaned, compiled and it worked as expected.
Hope it's as easy as that for you...
You may want to check you don't have another file with the same name in another directory. That is what caused this error for me .. (duplicate Default.png)
I had the same problem with my app.It turn out that the images that the user was uploading to my server and edited with php +imagemagik where striped out.I was using the following command to edit the uploaded image:
convert $uploadfile -resize 300x300 -quality 30 -strip $uploadfile
When i removed the -strip parameter the error was disappeared !
Same problem here.
1 - Close XCode;
2 - Open the image in Photoshop;
3 - Re-save ( replace the same image ) with 80% quality;
4 - Open XCode, clean it CMD + SHIFT + K;
5 - Build it in your device again;
Very simple and work for me.
And for you ?

how to import an html richly formatted text into a textflow at runtime?

i am trying this:
open google docs, new document, and type in:
hello world
(world bolded)
then download it as html(zipped)
i unzip the html file, and save it to the assets folder in src folder of my Flex app
i have a Spark:TextArea instance and i want to do:
var importer:ITextImporter = TextConverter.getImporter(TextConverter.TEXT_FIELD_HTML_FORMAT);
myTextArea.textFlow = importer.importToFlow(htmlSource);
where htmlSource should point to the saved html file somehow
how do i do this? i tryed embedding, converting to ByteArrayAsset and to String, but i always get the source of the html file and not it's rendered rich text (ie "hello world).
this is what i c at runtime:
Untitled documentol{margin:0;padding:0}p{margin:0}.c0{color:#000000;font-size:11pt;font-family:Arial;font-weight:bold}.c3{line-height:1.15;text-indent:0pt;direction:ltr}.c2{color:#000000;font-size:11pt;font-family:Arial}.c1{background-color:#ffffff}
hello world
am i clear?
any help?
thanx
I suggest taking a look at the Text Converter Reference to see what is supported, and also try using <s:RichText> as well as <s:RichEditableText>.