Shape as Esri Maps Location

3614
3
09-02-2013 05:13 AM
SaraDe_Roeck
New Contributor
Hello,

I am currently testing with Esri Maps for SharePoint on a SharePoint Server 2010.
I succeeded in creating a new list or a new document library and add latitude and longitude to locate an item from the list/library.
But when I add a new column 'Esri Maps Location' I see I can also choose for Shape instead of that latitude and longitude.

Does anyone know what you have to fill in when using that Shape?
I tried with WKT, but that didn't work. Is it then possible to couple the item to a polygon feature instead of a point feature?

Thank you in advance

Kind regards,

Sara
0 Kudos
3 Replies
SaraDe_Roeck
New Contributor
I found it myself by checking the shape field when filling in a certain country when using the Esri maps Locate Workflow.
You have to fill in something like this:

{"spatialReference":{"wkid":4326},"rings":[[[5.4739268537583,49.5006177334594],[5.42816555029115,49.5958898607962],[5.34416857964955,49.6376036740587],[5.31342149326235,49.6108248562936],[5.33277008158818,49.6559716805107],[5.26730086368155,49.6983719927301],[...]]]}

But I saw I can't create shapes who have more than 255 characters...
So there is still a problem for shapes who are more complicated.

Regards,

Sara
0 Kudos
SaraDe_Roeck
New Contributor
Hi Brad,

I am afraid I can't really help you with that question..
I just tested the very basic functionalities of this plugin.

But maybe if you are able to convert your shapefile geometry to a WKT format (for example by using Python), you are one step closer to a shape text like it has to be saved in SharePoint lists and document libraries.
In this link I read you can even convert to WKB or JSON...

http://gis.stackexchange.com/questions/58359/how-to-convert-geometry-to-wkt-using-arcpy

Regards,

Sara
0 Kudos
Bryande_Jesus
New Contributor
Sara, I know it's been a while since you posted this, but did you discover or do anything more with it? Your example appears to be in Esri's geometry json format. Check out the REST API page if you haven't already. I discovered that you can actually drop the spatial reference, since Esri Maps defaults to 4326, but not the outer braces. Also, you can bypass the 255 text limit by a column setting. Just go to List or Library settings, select the column, and then allow unlimited text for the column. Make sure the column type is 'multiple lines of text'. If you've found a better reference, please post it up here. So far, you're post has been the only thing showing me how to use this. Thanks.

-Bryan
0 Kudos