Turn: http://bbs.esrichina-bj.cn/esri/viewthread.php? Tid = 57166
This post was last edited by _ Daniel at, 2009-11-12
A few days ago, I said that I would like to pass on the military standard algorithm IDEA. The result is delayed. Now I want to talk about my military standard idea.The first technology used: the front-end as language draws the military logo (actually a polygon) and forms the points of the Polygon into an XML string. Here we can also transmit objects, however, the same correspond
Graphic G = new graphic ()
{
Geometry = new mappoint (108, 30 ),
Symbol = new simplemarkersymbol ()
{
Color = new solidcolorbrush (colors. Blue ),
Size = 12,
Style = simplemarkersymbol. simplemarkerstyle. Square
}
};
Copy code
3. Add the defined graphic to graphicslayer:In XAML
Copy code
In code-behind
Graphic G = new graphic ()
{
Geometry = ne
MapPoint (108, 30 ),
Symbol = new SimpleMarkerSymbol ()
{
Color = new SolidColorBrush (Colors. Blue ),
Size = 12,
Style = SimpleMarkerSymbol. SimpleMarkerStyle. Square
}
};
Copy code
3. Add the defined Graphic to GraphicsLayer:In xaml
Copy code
In code-behind
Graphic g = new Graphic ()
{
Geometry = new MapPoint (108, 30 ),
Symbol = new SimpleMarkerSymbol ()
{
Color = ne
You can query the geographical longitude and latitude coordinates of an IP address based on the IP address. For example, in the following example, the IP address 58.192.32.1 is located at 118.777802 and 32.061699, which is the location of Nanjing University.
[Java]// ----------------------------------- PACKAGE ------------------------------------Package com. pstreets. gisengine. demo. rim;// ------------------------------------- IMPORTS ------------------------------------Import com. mapdigit. g
state of offline, You also need to use XML to cache the data locally. This experiment has not been used in China.Recommended index: ★★★★☆Knowledge Points: 1, creating a complex user interface2, using Web Service3, using P/invoke4, using XMLStep by Step:develop a location-based application on a Pocket PC Phone Edition by Using Microsoft MapPoint Location Serve R 1.0Http://msdn.microsoft.com/library/en-us/dnppcgen/html/location_apps_mappoint.aspThis ex
We show you how to build a location awareness task list application for a windows mobile device that uses GPS to send you a task reminder at the appropriate time and location.
Download the sample source code or material in this article
This article uses the following technologies:
Windows Mobile 6, mappoint
This article introduces the following:
Mappoint Web Service
Cache tasks and maps
Obtain the required
Coordinate Conversion between Baidu navigation SDK and iOS navigation sdk
Examples of code for converting coordinates of Baidu navigation iOS SDK. For more information, see.
// Navigation coordinate --------------> map coordinate
// Assume that the coordinate obtained from the navigation sdk is (116.304847, 40.025281)// (1) construct the input parameter BNPosition required by the Conversion FunctionBNPosition * naviPos = [[BNPosition alloc] init];NaviPos. x = 116.304847;NaviPos. y = 40.025281;/
Arcgis api for flex advanced topic (2) Development of Custom Controls
Arcgis api for flex only provides two controls: Navigation and ScaleBar.
Describe in detail how to develop custom controls (or, maybe, I did not find them ),
The following describes my methods. To control the dynamic display of the current mouse longitude and latitude on the map
.
1. Define the control class and integrate UIComponent to implement the IMapAware interface.
2. Reload the createChildren function.
3. Implement the
these points are xmin or xmax, so we can remove the points on the boundary. However, there is a problem here:
When we divide the data according to a certain step, the entire score may not be fixed, that is, the following situation occurs:
We found that the top and right sides are not just equal. The top and right sides of the line are out of the "range". Although this does not affect the extraction of the intersection points of the river, it is not so nice.
Next, let's take a look at the code
ArcGIS API for Flex is mainly built on ArcGIS Server rest API. The client has limited functions and many advanced functions are implemented through geometry service and geoprocessing service. However, some simple functions, such as getting the center point of polygon, bring up a custom window at this point. If services are used for interaction, the user experience may deteriorate. Therefore, you can write some code to implement these functions on the client.
Here is the code I wrote to get the
Author: Flyingis
Flex is inherently capable of asynchronous calling, so that Flex can well adapt to common functions in webgis applications. In ArcGIS Flex API, the most typical is dynamic display of geographical element information, for example, if you move the cursor over a geographical element to display the basic information of the element, the "Show InfoWindow on mouse hover" section of ArcGIS Flex API Demo is used as an example.
Code
Code highlighting produced by Actipro CodeHighlighter
1 // turn longitude and latitude to Mercator 2 Public mappoint lonlat2mercator (mappoint lonlat) 3 {4 mappoint Mercator = new mappoint (); 5 double X = lonlat. x * 20037508.34/180; 6 double y = math. log (math. tan (90 + lonlat. y) * Math. (PI/360)/(math. PI/180); 7 y = y * 20037508.34/180; 8 Mercator. X = x; 9 Mercato
= false; chart. lightingenabled = false; chart. view3d = true; chart. height = 300; chart. width = 100; // set the Title = new title (); title. TEXT = "Pollutant Concentration Statistical Chart"; chart. titles. add (title );
1.2 define curves (bar charts, pie charts, etc.), such:
Dataseries = new dataseries (); // set the chart style. column indicates the column chart, pie indicates the pie chart, and other charts.Dataseries. renderas = renderas. column;
1.3 define data points, for example:
Dat
1.mappoint.hThere is a class MapPoint, which has two constructors. For each, the reference frame is the case where keyframes and parameters are normal frames. 1 MapPoint (const Cv::mat pos, keyframe* prefkf, map* pMap); MapPoint (const cv::mat pos, constint idxf); [Email protected] Pos, which refers to the 3D position of the point. 2 @pRefKF, refer
Build the Android Application Development Environment and system compilation environment on Ubuntu14.10, and ubuntu14.10androidBuild an android Application Development Environment
Install and configure Java JDK.
Download and install Android NDK.
Android ADT downloads and installs the configuration.
Download the Android SDK.
Android Elicpse installation configuration.
Android Studio installation configuration.
# Download and install Oracle JDK ##
JDK 6:Http://www.oracle.com/technetwork/
. getchildat (I) as graphic;If (GRA. Id. indexof ("P _") = 0){// The assembly line is used for intersection when an intersection surface object is obtainedVaR MP: mappoint = gra. Geometry as mappoint;VaR MP1: mappoint = new mappoint (MP. x + 0.0001, MP. Y + 0.0001 );VaR MP2: mappoi
Identifytask features:
Multi-layer query supported
The returned field cannot be specified.
Only property information can be queried, and space information cannot be queried.
Interaction Process with users
Steps:
Create an identifytask class
Create identifyparameters class
Execute the identifytask method Execute
Receive and Display Results
Sample Code:
Xmlns: S = "Library: // ns.adobe.com/flex/spark"Xmlns: MX = "Library: // ns.adobe.com/flex/mx" minwidth = "955" minheight = "600" xml
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.