POST
|
I made up those coordinates to look similar to the ones I am working with. So I changed the spatial reference to 4326 as suggested. Now I'm getting the same 'Spatial index grid is too small' error I was getting before. Any thoughts? Edit: its worth noting that I am only getting the error on certain rows. Most of them work just fine and have for every test I've run in the last few months.
... View more
05-29-2018
11:44 AM
|
0
|
1
|
875
|
POST
|
Turns out you're right! I have some crazy looking lines now. So if I have decimal degrees (40.64577832, -68.655557412) I should use 4326 as my spatial reference?
... View more
05-29-2018
08:42 AM
|
0
|
3
|
875
|
POST
|
Thanks for the correction. I was doing arcpy.Point(longitude, latitude) correctly, I just misspoke. I just tried using web-Mercator as the spatial reference and the error went away. I am now doing arcpy.Polyline(point_array, arcpy.SpatialReference(3857)) Does that seem like the correct solution?
... View more
05-25-2018
03:48 PM
|
0
|
5
|
875
|
POST
|
Thanks for the reply! That seems like a good place to start looking. I am still new to arcpy/GIS in general and don't know much about working with spatial references. I'm reading coordinates from one GIS(ish) system that uses Web Mercator (EPSG:3857), using those coordinate pairs to create points (arcpy.Point(latitude, longitude)), creating an array of those Points, then using that array to create a Polyline (arcpy.Polyline), and then using arcpy.da.InsertCursor to insert the polyline into the ArcGIS database. I read somewhere that in order to do high precision geometry, the polyline needs a spatial reference, so I've been using a blank one: poly = arcpy.Polyline(point_array, arcpy.SpatialReference()) which has worked every time so far. The ArcGIS feature class uses GCS_WGS_1984. Should I be specifying anywhere that I am using coordinates from 3857? How should I go about doing this? Thanks for your help!
... View more
05-25-2018
03:34 PM
|
0
|
7
|
875
|
POST
|
When adding features to a feature class using arcpy, two of my features (same class) give me the error in the title. Everything I've read says to use ArcCatalog to delete the spatial index for the feature class, but before I do that I want to make sure that is safe to do. The database I am working with is a Microsoft SQL Server database and uses some form of compressed binary to store the geography. Apparently, the way it is set up means I have to delete the spatial index rather than recalculate (which would seem safer than deleting!) If I delete the spatial index and re-create it, is there anything that may become broken? Is there any harm in doing this? EDIT: This is the ESRI article in question EDIT2: Also, if I do delete and recreate a spatial index, how do I know my existing index parameters (as referenced in link above) and the new ones I should use?
... View more
05-25-2018
01:58 PM
|
0
|
9
|
1018
|
POST
|
Joshua, thanks for all the help you provided. In the end I realized I just need to use ArcPy. Unfortunately, some of my existing code doesn't work in the Python interpreter supplied by ArcGIS Desktop, and therefor needs rewriting. Thanks again for not only helping me with the problem, but helping me learn as I dove straight into ArcGIS.
... View more
03-08-2018
08:39 AM
|
1
|
0
|
929
|
POST
|
Thanks for all the help. I've since realized I need to bite the bullet and just use ArcPy. It did exactly what I needed it to do, and with much ease (after a steep learning curve!). The downside is that I have modules that do not work with the Python environment used by ArcPy, so I am rewriting some of my existing code. Thanks again!
... View more
03-08-2018
08:33 AM
|
0
|
0
|
929
|
POST
|
Jay Strahan wrote: Simply getting lat/lon pairs into SDEBINARY is the easy part, How would I go about doing this? You are correct though: I have a non-Esri table that uses lat/long pairs to store geodata (points, and lines). My main goal is to take that table and add its entries into a customer's database which is used with ArcGIS. The customer's database has 3 tables (base(?), f, and s). I'm taking my data and inserting it accordingly, but the customer's F table uses SDEBinary instead of lat/longs. I'm struggling with finding an easy way to convert my lat/longs into SDEBinary. Eventually I'll want to be able to transform them back from SDEBinary, but that can wait. How do you suggest I convert lat/long to SDEBinary?
... View more
02-16-2018
09:29 AM
|
0
|
3
|
929
|
POST
|
I do. I have access to their entire production database, so I have all three tables.
... View more
02-16-2018
09:20 AM
|
0
|
1
|
1256
|
POST
|
Yes, sorry, the original column names were a mistype. The tables are set up like the link you provided, and the column names are eminx/emaxx/etc Thanks for sharing my post. Hopefully that will bring in some good help!
... View more
02-15-2018
02:43 PM
|
0
|
3
|
1256
|
POST
|
How can I convert lat/long pairs to SDEBinary using Python? I was tasked with migrating data from one database (DatabaseA) to another (DatabaseB). DatabaseB and DatabaseA are formatted completely differently. DatabaseA represents everything using lat/long pairs, while DatabaseB uses SDEBinary to represent geodata. I am working on a Python script to pull data from DatabaseA and insert it directly into DatabaseB using SQL. How can I convert the lat/longs on-the-fly into SDEBinary? The link below is helpful in understanding how values are represented using Esri Binary spatial type (SDEBinary) but I hope to avoid writing a comprehensive conversion module for such a simple task. http://edndoc.esri.com/arcsde/9.2/concepts/geometry/representations/compressed.htm#Physical Thanks in advance for any help!
... View more
02-15-2018
02:12 PM
|
0
|
5
|
801
|
POST
|
I've done some digging myself. It appears that the data in my database is Esri Binary spatial type (SDEBinary) and is Esri's own way to encode geo data. However, I believe support for SDEBinary is being phased out. The link I provided explains the logical and physical representation of geometry. I'm going to keep looking for a premade tool to convert lat/long coordinates to SDEBinary, and the worst case scenario is that I have to make my own. Thanks again for the help!
... View more
02-15-2018
01:53 PM
|
0
|
0
|
1256
|
POST
|
Good morning Joshua, and thanks for the reply! Sorry it took so long for me to respond, I've been out of the office this week. I do have eminx and such. I seem to have two or three tables for each feature layer. One table has data about a point, one has the eminx/emaxx/eminy/emaxy. numofpoints, and points(the varbinary in question) columns, and the third table ALMOST seems like an exact copy of the first table I mentioned which leads me to believe it's used for something else. My problem is that I don't know how to interpret or create the data in the points column. Here is an example of the points binary: 0x0C00000001000000838C9A99EF12A091D8A3EC19 (where numofpoints = 1) 0x3D03000001000000A7D0DEEBEC128FDAA2BFCA19DA0EA7E3019E9E01C0A302A2E90FEFAB098BF90EFCDD089BC20EFB8E09BCFE0ECBD808A5BA0BE3F406EA0892118B14D211 (where numofpoints = 4) Does that sound familiar to you?
... View more
02-14-2018
06:37 AM
|
0
|
2
|
1256
|
POST
|
I got tasked with taking some data from a completely unrelated system and putting it into our SQL Server database for use with our ArcGIS server, and I can't for the life of me figure out how to create, use, manipulate, convert, etc SDEBINARY data. There are tables which contain the xminx, xmaxx, etc entries and then have a 'points' column which shows a bunch of hex data and I can only assume it's the geometry of the shape or point. From what I can tell, it's SDEBINARY data but I could be wrong. How can I convert my lat/long pairs to this SDEBINARY? Also, how can I convert it back from SDEBINARY to something readable? Thanks, Sanders
... View more
02-12-2018
02:59 AM
|
0
|
18
|
3109
|
POST
|
Thank you! This is what I needed. It turned out that the database server was somehow unregistered as a data store, which is why I couldn't find anything that pointed that direction. Whoops! Your answer was still very helpful, though. Thanks again!
... View more
01-31-2018
07:49 AM
|
0
|
0
|
497
|
Title | Kudos | Posted |
---|---|---|
1 | 01-26-2018 10:59 AM | |
1 | 03-08-2018 08:39 AM |
Online Status |
Offline
|
Date Last Visited |
09-23-2021
12:21 PM
|