I developed a Windows Store application with Bing Maps. I have to add polylines from kml file to the map but only the polylines that are inside a specific radius from my position.
Now I use the library SharpKml to parse the files and add all the polylines.
How can I add only some lines?
Thanks!
Assuming there is some piece of metadata available in the KML file, you can then filter the lines based on that information.
Related
So I’m trying to use ArcGIS Runtime to import and export kml files from a basic map control. I have the export working and I only now have to extract data from the kml file to draw a geometry on the map control.
I am only supporting line, points and polygons. Also single geometries only.
Do I simply try and use linq expressions to walk through the kml file and extract what I need? For example, if it’s a line, point or polygon and then create the WKT string from the coordinates and the shape information? I don’t want to use any third party tools but I can seem to see any relevant examples in the ArcGIS Runtime .NET examples.
Using Model derivative API I am able to get geometric properties of 3d dwg file but for 2d dwg I am facing the issue(Unrecoverable exit code from extractor: -1073741831) on extracting geometric properties.
I also understand that model derivative API doesn't provide a support for extracting 2d geometries.
Is any other way to extract geometry of 2d file using programming API(c#)?
EDIT
I have added ObjectTree JSON file and POST URL of "Extract Geometry for Selected Objects into an OBJ File" in the following GitHub link.
https://github.com/Jothipandiyan-jp1/Autodesk
From the error, it seems that your 2D drawing is somehow broken, or not uploaded right. Or is it a vertical file, like Plant 3D or Map 3D?
The Model Derivative should extract the 2D View, you can try the file on A360 Viewer or via API at this sample (C# source).
EDIT
From the comments, it seems you are trying to extract the .obj from a single objectId in the 2D DWG. This should not trigger errors, but it may return empty file as the OBJ format is intended for 3D shapes. Can you update your question with the full POST job used on your code? Make sure the modelGuid and objectIds parameters are correct.
I am trying to get all properties in C# of an Image file downloaded from camera. I can get general file properties using FileInfo and FileAttributes. But image taken from camera have special properties tab named Camera what I want to retrieve in C#. Here is the snapshot of properties.
I want to get special properties like ISO, f-Stops and camera name in C#. Is there any class which can be used to get that or any other open source project?
Here you can find more info about this
http://www.developerfusion.com/article/84474/reading-writing-and-photo-metadata/
There are lots of examples online, i.e:
http://msdn.microsoft.com/en-us/library/xddt0dz7(v=vs.110).aspx
http://msdn.microsoft.com/en-Us/library/windows/apps/windows.storage.fileproperties.imageproperties?cs-save-lang=1&cs-lang=csharp#code-snippet-1
http://tech.pro/tutorial/782/getting-image-metadata-with-csharp
I'd like to know how to create arbitrary image detection using the following library: http://facedetectwp7.codeplex.com/ . In the description it states that any object can be detected if the models are added to the project. Does anyone know how to create these models? Thanks.
The model is an XML file that is created as a result of training a Haar Classifer. The XML file that is included with the library is the default file that's used by OpenCV.
To create a model file for a custom set of objects, you'll need a large set of positive images (images that have the objects), and negative images (without the object).
You'll then "train" the classifier on these two image sets, and this will produce a single xml file.
Check out this link for more info.
I have a KMZ file containing an animation for google earth.
the KMZ contains KML with and a series of PNGs to overlay in a latlng boundary.
I want to 'port' this to google map api, but some tags (timespan importantly) are unsupported.
What is the most painless way to start accomplishing this task?
You might try taking a look at geoxml. It supports a different KML subset to GGeoXml. Unfortunately, there doesn't appear to be any documentation for it, so you'd have to just try it and see what happens. Although the project has an open source licence, the source code doesn't actually appear to be available, so you can't add the tags you need if they turn out not to be supported.