POST
|
I had a similar requirement. However the size of the SQL server XY tabe was very huge and I had to retrieve all the points to show them on the map. Connecting with WCF and returning all the data was not going to work because of the size o the data. I ended up using Query Layer
... View more
11-10-2011
11:26 AM
|
0
|
0
|
197
|
POST
|
I have a similar application going on in VB6. I have a GPS receiver attached to the laptop and through Microsoft Comm control I read the incoming string which is in NMEA format and parse it to get latitude and longitude values and then show it on my map...
... View more
10-14-2011
04:18 AM
|
0
|
0
|
233
|
POST
|
Hi, I am following this http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/03/11/Sending-geometry-between-Silverlight-and-the-server-using-WCF.aspx post about sending geometry from Silverlight to server. Instead of usind Silverlight Enabled WCF service I am using RIA services and created a DomainService class on the server. I added WPF build of the ESRI.ArcGIS.Client.dll assembly. My domain service class looks like this: using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.ServiceModel.DomainServices.Hosting;
using System.ServiceModel.DomainServices.Server;
namespace WebMVC.TestSilverlightHost.Services
{
// TODO: Create methods containing your application logic.
[EnableClientAccess()]
public class PropertyBoundaryDomainService : DomainService
{
public bool SaveGraphics(IEnumerable<ESRI.ArcGIS.Client.Graphic> GraphicCollection)
{
return false;
}
}
} When I compile my application it gives me this error "The Complex Type 'ESRI.ArcGIS.Client.Graphic' already exists in another assembly. Complex Types cannot be defined in multiple assemblies." I think this error occurs due to the Generated Code that is generated by the RIA services on the Silverlight end. Is there any other reason for this? I am assuming this cannot be done using DomainServices. Can someone shed some light on this.
... View more
08-25-2011
01:55 PM
|
0
|
1
|
596
|
POST
|
look at this http://forums.arcgis.com/threads/8774-save-layer-to-xml-file?highlight=serialize
... View more
08-17-2011
12:23 PM
|
0
|
0
|
366
|
POST
|
Thanks Dorothy, I appreciate that you took the time to reply to me. However, I think that I might have caused confusion with my post... I do not need to stop and start a service. I just need my map viewer to go to the web-service and grab a fresh set of data when an event happens (ie. a button click). Does anyone else have any ideas? Thanks, --Rick Each layer has a Refresh().... I guess that's not working for you
... View more
08-09-2011
01:39 PM
|
0
|
0
|
337
|
POST
|
No I am using the File/Add Data/Add Query Layer that you suggested. When I bring it in without the spatial reference your query is using things it look fine in ArcMap. I just have an extra step of making it an XYEvent. My Query: "SELECT OBJECTID, FDSID, STORENAME, LATITUDE, LONGITUDE FROM GIS.Stores_GEO" Either way when I go to publish I get that same error about not being able to start it 😞 Ok... confusing... but 1. No need to create an XYEvent 2. use SELECT objectid, FDSID, STORENAME, LATITUDE, LONGITUDE, geography::STPointFromText('POINT(' + CAST(LONGITUDE AS VARCHAR(20)) + ' ' + CAST(LATITUDE AS VARCHAR(20)) + ')', 4326) As Loc FROM GIS.Stores_GEO instead of what you provided
... View more
08-01-2011
10:34 AM
|
0
|
0
|
302
|
POST
|
Looks like you are using the Query layer from a table stored in a geodatabase.... I don't know if it will work... the documentation says query layers work directly off of a DBMS and you don't need geodatabase.
... View more
08-01-2011
09:49 AM
|
0
|
0
|
302
|
POST
|
This is what I did when I created my service and it works for me 1. Create a new login with SQL Server Authentication in SQL Server 2008 (my SQL Server is on network) 2. In ArcMAP>File>Add Data>Add Query Layer>Click Connections>Click New>Enter Server details and in account 3. Change Authentication to Database Authentication and provide the new login details and click Test connection and make sure it succeeds 4. In the name give a query name 5. In the Query enter something like this (unless you are creating a stand alone table) SELECT *, geography::STPointFromText('POINT(' + CAST(Longit AS VARCHAR(20)) + ' ' + CAST([Latit] AS VARCHAR(20)) + ')', 4326) As Loc FROM TableXXX 6. Click validate to check for errors. 7. You can now see data in ArcMAP, save the document 8. From ArcCatalog select the document and publish it as a service. In which step are you getting the error...
... View more
08-01-2011
07:08 AM
|
0
|
0
|
302
|
POST
|
look at this link http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/What_is_a_query_layer/00s50000000n000000/ I have similar situation... I have a location table in SQL Server 2008 with latitude and longitude columns and points gets added/removed all the time. Since the table is a part of a bigger database I cannot convert it into a GDB. However, in ArcMap (not sure you have access to it) you can add a query layer directly read from a sql server database. Publish that as a dynamic service. We have another application that actually inserts/deletes the data from this table. Since this being a dynamic service any changes made to the table are shown on the map (well actually I provide a refresh button and as soon as user clicks refresh he can see the changes)
... View more
08-01-2011
05:52 AM
|
0
|
0
|
302
|
POST
|
Not entirely sure if this is what you are trying to do but... How about trying to use the "Add Query Layer" functionality in ArcGIS desktop and then publishing it as a service. Then use a query task to get the data... but you need to have access to ArcGIS desktop to create and publish the service
... View more
07-26-2011
10:55 AM
|
0
|
0
|
697
|
POST
|
I think the lag is because it is making a round trip to the server every time there is a map_mouse event...
... View more
07-26-2011
08:29 AM
|
0
|
0
|
784
|
POST
|
Can you create a MSD with Anti-Aliasing and Text Anti-Aliasing options and then publish the MSD and see if it changes anything
... View more
07-14-2011
01:15 PM
|
0
|
0
|
265
|
Title | Kudos | Posted |
---|---|---|
1 | 05-04-2011 12:54 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|