Your command-line registration may create a very different coordinate reference than using
Desktop would. You can see this by using 'sdelayer -o describe_long'. It's not only the
coordinate system that matters, but also the origin and scale.
For best practice, load the GEOGRAPHY table as a user other than SDE (this user should
be reserved for instance administration, with a very closely held password). You don't
need to specify the user during layer registration, since it must be done as the owner.
- V
The real reason the query fails will be reflected in the logfiles in SDEHOME\etc. Odds are,
it will be one of the topology errors of the SgShape library ("ring crosses ring" "no area"
"too few points" "coordinate out of bounds").
Help! I can't get my Geography type spatial data to draw. I've tried to find info on this on the forums, but no luck. I've loaded data into SDE 4 different ways.
[INDENT]1. Import in ArcCatalog using standard SDE format - Works just fine
2. Create the table in SQL Server with Geography type, register with SDE and load data in ArcCatalog
3. Create and load the table in SQL Server, then register wth SDE.
4. Import in ArcCatalog using the Geography Config Keyword[/INDENT]
Case 2, 3 and 4 the data is there in SQL Server and in ArcMap or ArcCatalog the table shows data but nothing draws.
I know that I need to use the Geography type on Sql Server because I want all my data in Geograhpic NAD83 and that is the data type that supports it.
The command I've used to register the tables with SDE
sdelayer -o register -l sde.TZS2,SHAPE -e nac+ -t GEOGRAPHY -R 3 -P HIGH -C TZS2_ID,sde -E 18.865824,-179.864760,71.434459,-66.884958 -D sde -u XXX -p XXXXXXX
Where -R 3 is the number for GG NAD83 also have tried -G 4269 instead of -R makes no difference.
I've reviewed the logs the only error that is reported is: load_buffer error -51 on TZS2, rowid 0, where TZS2 is the layer from case 3.
I've got ArcSDE 10 SP 1 64-bit installed with SQL Server 2008 r2 64-bit on a Windows Server 2008 r2 Virtual Machine.
Any help would be appreciated!
Hi Jeri Sue,
I'm wondering about your -E statement. You have
-E 18.865824,-179.864760,71.434459,-66.884958
But I think it should be
-E -179.864760,18.865824,-66.884958,71.434459
The usage is [-E <{empty | xmin,ymin,xmax,ymax}>]
In Esri terms, x = longitude, y = latitude, thus you need to swap values 1 and 2 and 3 and 4.
This may well not be the real problem, but I bet it doesn't help!
Melita
Does the result change if you define the layer to have the SQL constraint "xxx_ID = 1"? How many rows in the table?
What does a SQL query of the table return for each table (first row, if necessary).
Note that your initial assertion of "need to use the Geography type ... that is the data type that
supports it" is not completely accurate. GEOMETRY would also support the same data, but
without the single hemisphere limitation (and with a change in the result of area/length
calculations).
Can you provide the full 'sdelayer -o describe_long' output for the layers of Case1 and Case2?