|
POST
|
I am trying to access to the OBJECTID field of a table as a primary key so I can apply edits. It so happens that OBJECTID is the only unique field in the table. But whenever I try to access the value of OBJECTID with GetOID() or GetInteger("OBJECTID") I get the error: "The value type is incompatible with the field type." I have attached the XML description of the table. The values of OBJECTID in my table range from 2 to 100. Any ideas what's wrong?
... View more
08-23-2011
12:35 PM
|
0
|
4
|
1822
|
|
POST
|
Try using another browser to download it. I've had a problem like this before with some of ESRI's downloads and that fixed it. If that doesn't work, do yourself a favor and download 7-Zip.
... View more
08-23-2011
11:07 AM
|
0
|
0
|
1014
|
|
POST
|
I am seeing some strange behavior in MultipartShapeBuffer.Extent. It seems to be mixing up xMax with yMin. The attached screen capture demonstrates this:
... View more
08-23-2011
11:02 AM
|
0
|
2
|
2540
|
|
POST
|
J.T., Thank you for your efforts on this. I have seen the same issue myself, in addition to several other instabilities that probably relate the wrapper implementation. I will try your helper classes out. Thanks again!
... View more
08-22-2011
05:49 PM
|
0
|
0
|
816
|
|
POST
|
I found it odd that there isn't a method available to simply wipe a table. There has to be a better way than this:
static void ClearTable(Table table)
{
foreach (var row in table.Search("*", "1=1", null, RowInstance.Unique))
table.Delete(row);
}
What am I missing?
... View more
08-18-2011
07:42 AM
|
0
|
0
|
1591
|
|
POST
|
I think I figured it out, that parts is an index to the points array marking the first point of each ring/segment.
... View more
08-18-2011
07:40 AM
|
0
|
0
|
656
|
|
POST
|
I'm not very familiar with how the GDB serializes geometries, so please excuse my noobie question. I am trying to insert a polygon feature into a GDB following the examples provided, but I'm having trouble understanding how things work for a polygon. I am specifically converting from KML, so my polygons have an outer and 0 or more inner rings, each of which is a simple point array. Can someone help me with the code I need to create these features? Here is my code so far (C#): Point[] oR= GetOuterRingFromKml();
List<Point[]> iRs= GetInnerRingsFromKml();
MultiPartShapeBuffer() geom = new MultiPartShapeBuffer();
geom.Setup(ShapeType.Polygon, 1 + iRs.Count(), oR.Count() + iRs.Sum(ring => ring.Count()));
//geom.Points = ??
//geom.Parts = ??
... View more
08-17-2011
10:13 AM
|
0
|
5
|
2016
|
|
POST
|
That KML file has unicode characters in it. the KmlLayer class for Silverlight opens the files with UTF-8 encoding. If you encounter characters that aren't valid for UTF8 the parser will blow up.
... View more
07-02-2011
07:06 PM
|
0
|
0
|
1239
|
|
POST
|
ProjNet has a Silverlight library too. Just hunt around, it's in there.
... View more
06-21-2011
04:47 PM
|
0
|
0
|
1498
|
|
POST
|
Not sure, try converting to decimal degrees and switching Easting/Northings. WMS is messy IMO.
... View more
05-03-2011
07:30 AM
|
0
|
0
|
1270
|
|
POST
|
It won't be pretty, but it can be done. You'll have to download the source code for the ESRI Silverlight toolkit and modify the WmsLayer.GetUrl() method. The default logic is to replace Google and Bing projection WKIDs with the official EPSG 3857 in the SRS query string parameter. You'll probably want to comment out that logic if your weather service is 102113 (like NWS).
... View more
05-03-2011
05:18 AM
|
0
|
0
|
1270
|
|
POST
|
Nothing I said is really specific to ESRI classes or concepts. This is basic .NET stuff. Download the codeplex source code and put it into a project, then step through the calls to see how it works. I wouldn't want to rob you of the learning process by just pasting some code here for you to copy.
... View more
04-03-2011
10:15 AM
|
0
|
0
|
3160
|
|
POST
|
You need to start with the source code for the KMLLayer classes mentioned above (get the bits from codeplex). Then modify the constructor and initializer code to accept a stream or byte array as a source input (instead of setting source URI). Find the place in there where the webclient_downloadcomplete routine hands off the stream to the kml parser and plug in your source data there. The rest should work as-is.
... View more
04-02-2011
11:41 AM
|
0
|
0
|
3160
|
|
POST
|
Is offline cache support on the tech roadmap for the Silverlight API?
... View more
03-24-2011
08:55 AM
|
0
|
0
|
783
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-16-2015 10:23 AM | |
| 2 | 09-25-2015 10:36 AM | |
| 1 | 06-29-2015 08:24 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|