C # FAQs about secondary development based on AE Components,
Because I am engaged in. net platform for secondary development of GIS, so the first blog post will talk about: I recently encountered a common problem in the project, if you can add a little convenience to everyone, it is also my pleasure. If you have any comments or suggestions on this blog post, you are welcome to discuss with me and make progress together.
1: The call to the COM compon
()) total_batch = Int (mnist.train.num_examples/batch_size) # Training Cycle For epoch in range (Training_epochs): # Loop through all batches for I in Range (Total_batch): BATC H_xs, Batch_ys = Mnist.train.next_batch (batch_size) # max (x) = 1, min (x) = 0 # Run optimization op (backprop) and cost op (to get loss value) _, c = Sess.run ([Optimizer, Cost], feed_dict={x:batch_xs}) # Display lo GS per epoch step if epoch% Display_step = = 0:print ("Epoch:", '%04d '% (epoch+1), "Co St= "," {:. 9
processing of timed events.Redis processing events are single process single-threaded, while classic Reator mode is serially processed for events.That is, if an event is blocked for too long, it can cause the entire redis to be blocked.The following is a brief analysis of the Redis AE event-handling model.You can see from the code that it mainly supports Epoll, select, Kqueue, and the Solaris event ports.There are two main types of event drivers avai
Core code1Iworkspacefactory pfactory =NewAccessworkspacefactoryclass ();//Here you need to add the desktop bindings to the Program.cs2Iworkspace pworkspace = Pfactory.openfromfile (Temmdbpath,0);//Axliscense is required here to add control additions or code additions3Ifeatureworkspace Pfeatureworkspace = Pworkspace asIfeatureworkspace;4 stringTemdsname="tem";5Ispatialreference PSR =NewUnknowncoordinatesystemclass ();6Psr.setdomain (-60000000,60000000, -60000000,60000000);7Ifeatured
I have just implemented some functions related to property query. Here I will summarize them.
If there are errors and inspecies, we also hope that experts in GIS and AE development will give some advice.
// ****** The second part has a dot error. Now ***********//
①: How to obtain Feature Based on featurelayer:
CodeAs follows:
Ilayer player;Player = frm1.axmapcontrol1. Map. get_layer (layerboxedit. selectedindex) as ilayer; // both frm1
Scenecontrol + AE + scroll wheel Scaling
To set the scroll wheel scaling for scenecontrol, you must define the delegation. Because scenecontrol does not have a wheel event, the from wheel event must be delegated.
Public form1 (){Initializecomponent ();This. mousewheel + = new mouseeventhandler (this. sc1_wheel); // enter "This. mousewheel + =" in this place and press the tab key twice in a row.}
Private void sc1_wheel (Object sender, system. Wind
The following method creates a bubble prompt box with AE:
1. VB. NET source code
''' ''' Create a text prompt box
''' ''' ''' ''' ''' ''' ''' ''' Public Function createtextelement (byval X as double, byval y as double, byval ptextstring as string, optional byval Ppoint as ipoint = nothing, optional byval pgraphicscontainer as igraphicscontainer = nothing) as ielement
Dim pelement as ielement = new markerelementclass ()
Dim ptelement as ielement = new
Source code of 3D query based on AE
Public type m_pobjarray
Ifeature as ifeature
Ilayername as string
End type
Public m_pfeaturearray () as m_pobjarray
Private sub arcscenecontrol_onmousedown (byval button as long, byval shift as long, byval X as long, byval y as long)Arcscenecontrol. scenegraph. isnavigating = falseCall identify3dmap (x, y)End sub
'Input: Current 3D map, X coordinate, Y coordinate, reference public variable m_pfeaturearray'Output: s
During the AE development process, some objects must be temporarily stored, such as element, layer, map, and symbol. arcengine provides methods for serializing objects to save this information. All serializable objects support the ipersiststream interface (For details, refer to the help group documentation ). ixmlstream is also an important interface. for more information, see the help documentation.
This article is inspired by the technical docume
Delete selected elements based on AE --
'// Deletes all features selected on the current layerPublic Sub DeleteAllSelectedFeatures (ByVal pFeatureCursor As IFeatureCursor, ByVal GeometryTypeStr As String)Dim pWorkspaceEdit As IWorkspaceEditDim pFeature As IFeature'If there are no features currently selected then nothing to doIf pFeatureCursor Is Nothing Then Exit SubTryDim bResponse As DialogResultBResponse = MsgBox ("are you sure to delete all" Ge
Source code of 3D query based on AE
Public Type m_pObjArray
IFeature As iFeature
ILayerName As String
End Type
Public M_pFeatureArray () As m_pObjArray
Private Sub ArcSceneControl_OnMouseDown (ByVal Button As Long, ByVal Shift As Long, ByVal X As Long, ByVal Y As Long)ArcSceneControl. SceneGraph. IsNavigating = FalseCall Identify3DMap (X, Y)End sub
'Input: Current 3D map, x coordinate, y coordinate, reference public variable M_pFeatureArray'Output: s
In AE development, we often encounter the need to export the current scenario in map, scene, and globe as an image. below is my summary of the export method, where two-dimensional can be exported to the memory or hard disk, you can also export the space data file of the image, which can only be exported to the hard disk in 3D, with the source code (VB. net), the usage is detailed in summary, ^ _ ^
''' ''' Two-dimensional export the current scenario is
The toolbar has been encapsulated in AE. You only need to drag this control and set several properties to implement the corresponding functions in the desktop.
(1) drag a arcengine toolbarcontrol on the form
(2) Right-click toolbarcontrol --> Properties
1> under the items tab, select the tool to be added.
You can see that commands and toolset do not include most of the functions of map browsing, property query, and space analysis. Customized deskt
There are many methods for reclassifying raster data. AE can be implemented in multiple ways, either by map algebra (implemented in RasterModel), IReclassOp, or Geoprocessor, it can even be implemented by traversing the raster. This is the most primitive method, but it may also be the most practical. The original raster Traversal method is used here. [Csharp] private void reclass (IRaster pRaster, float weight) {IRasterProps rasterProps = (IRasterProp
I personally have been in the last few months to do the video collection of content, I hope you cherishDial: http://pan.baidu.com/s/1pKtkCSr password A4zaReproduced this article please attach this article link, thank you!"Footage list"Eight examples of concise subtitle strip materialFlat-style statistical element materialFlat-style graphic linesFlat Information Statistics MaterialGood twist and burr transition effectSuper-Multi-text subtitle typesetting effectSuper Effect Element PackageMulti-co
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.