Select to view content in your preferred language

Shapefiles and hosted service features don't align in AGO

1745
9
02-24-2014 08:31 AM
deleted-user-eecV1RPyUfl1
Deactivated User
I've uploaded a hosted parcel and zoning services that display properly with each other, but other features added as shapefiles, even though generated from the same source parcel data, will not align in my AGO maps.  The offset measures consistently at about 5 US feet.

No datasets were reprojected into the WGS84 Web Mercator Auxiliary Sphere prior to uploading or adding, yet all hosted features align perfectly with each other while added shapefiles will not.

Even stranger, the parcel tiles do not align with the parcel features, even though both were created and uploaded at the same time.

Thanks for any thoughts.

[ATTACH=CONFIG]31711[/ATTACH]
Tags (2)
0 Kudos
9 Replies
deleted-user-eecV1RPyUfl1
Deactivated User
ESRI, and thoughts on this?  A lot of effort has been put into creating accurate data, only to have the data look like it's out of position in AGOL.
0 Kudos
deleted-user-eecV1RPyUfl1
Deactivated User
Bump..  final try for a response.

Has anyone run into this issue, where local shapefile features won't line up with hosted features, all using the same projection/coordinate system in ArcGIS Online maps?
0 Kudos
MikeMinami
Esri Notable Contributor
Yes, this can happen.

When you load a shapefile directly into the web map, by default the data gets generalized, unless you choose the option to not generalize the data.

When you add a shapefile to My Content and publish hosted features from it, all the vertices of the data are loaded into the database. However, clients can draw the data in a generalized form. For example, the JavaScript API, upon which the ArcGIS.com map viewer is built does generalize the data. This is done for performance reasons. It reduces load both on the server and client. If the layer is editable, however, no generalization is done.

Tiled map images will accurately reflect the original data. No generalization is performed when tiles are generated from the data.

Hope this helps explain things. I guess what you could try to verify this is when you add your shapefile to the map, choose the option that doesn't generalize. Then, for your hosted features, make the layer editable. In this instance, all the data should align perfectly. If it doesn't perhaps you can send us your shapefile so we can reproduce the problem.

Thanks,

Mike
0 Kudos
deleted-user-eecV1RPyUfl1
Deactivated User
Thanks Mike, but I never let AGOL generalize features because they look awful, so that's not what's happening here.  If you look at the attached image you'll see that the feature boundaries are identical, except for this shift I'm trying to eliminate.
0 Kudos
deleted-user-eecV1RPyUfl1
Deactivated User
Thanks Mike, but I never let AGOL generalize features because they look awful, so that's not what's happening here.  If you look at the attached image you'll see that the feature boundaries are identical, except for this shift I'm trying to eliminate.  I've attached the shapefile you requested.
0 Kudos
MikeMinami
Esri Notable Contributor
Dan,

It seems I'm missing some data to compare...the parcels. Do you have that in shapefile form?

Thanks,

Mike
0 Kudos
deleted-user-eecV1RPyUfl1
Deactivated User

Sorry Mike, haven't been back here for a while.  I could attach a parcel shapefile, but I can tell you it will match the landscape shapefile perfectly as it does below.. the landscape shapefile was built by copying the parcels in ArcMap so they would align, which they do.

ArcMAPFeatureAlignment.JPG

0 Kudos
AlastairClinkscale
Occasional Contributor
When you add a shapefile to My Content and publish hosted features from it, all the vertices of the data are loaded into the database. However, clients can draw the data in a generalized form. For example, the JavaScript API, upon which the ArcGIS.com map viewer is built does generalize the data.


Sorry to hi-jack this thread - I think the issue I'm experiencing is slightly different to Dan's - but Mike's statement definitely offers a clue as to my problem.

Hopefully I can get the screenshots to upload - the example below shows how 2 adjacent polygons in a feature class looks in ArcMap. I have carried out a topological check in ArcMap and they appear to be topologically correct, with no gaps or overlaps.

[ATTACH=CONFIG]32384[/ATTACH]

Having uploaded that shapefile to My Content in AGOL and created a feature service from it, it displays in the map viewer thus:

[ATTACH=CONFIG]32383[/ATTACH]

Does the generalisation in the AGOL map viewer occur independently on individual polygons, even if the polygons are within the same feature service and are adjacent and share common boundaries?
0 Kudos
deleted-user-eecV1RPyUfl1
Deactivated User

I'm experiencing a similar issue, although the polygons are from separate layers.  I now use only hosted features to avoid the misalignments the triggered this thread, but there are still generalizations in the map viewer that cause previously aligned boundaries to not align perfectly.  I have a parcel feature service with zoning and city limit feature services which should align perfectly, but instead they meander somewhat like your examples. And for some reason the far smaller datasets of zoning and city limit are much more generalized than my parcel features.  Just don't get it.

0 Kudos