Select to view content in your preferred language

database and FlexViewer

2560
6
05-09-2011 10:21 AM
SaugatJoshi
Deactivated User
Hi,

How can I have access to a File Geodatabase from Flex Viewer. I have created a geodatabase using ArcMap and published it in ArcGIS server (as geodata service). I beleive Geodata service doesn't provide Mapservice type functionality at all. What service would best suit the file Geodatabase. I have multiple views(Different extents of the map) with different layers turned on to be create from the database.Creating a map document and individually publishing 100 map services (for 100 views) does not look feasible. There needs to be a way for this kind of functionality. I could really appreciate if someone could point me to the right direction.

Thank you.
Tags (2)
0 Kudos
6 Replies
BjornSvensson
Esri Regular Contributor
You can create an MXD/MSD, then publish it as a Map Service. Your application can keep track of the different extents and different layers to turn on/off.

One note on the latter.  I'm not sure what your data looks like, but if for example you have multiple layers of the same type (but different places), e.g. "my data for place A", "my data for place B", then you could create a group layer and have them all turned on.  When you're in the wrong area, you wouldn't know/see if the other layers are on/off. And your application would not have to take care of which layers to turn on for which extent.  Not sure if this makes sense to you, but for some apps I've seen this changed structure in the MXD made the application much more straight-forward.
0 Kudos
SaugatJoshi
Deactivated User
Bjorn,

Thank you for the reply. This gives me some sort of insight. Well, one of my still concern is that of the map services. A general scenario I would be working is with cities. I will have different cities (let us consider this as a project with a project #1). Project #1 belongs to Chicago. Similar Project #2 belongs to LA..and so on. Each of the cities have "Downtown View"(That is the extent of the down town), "Riverside view" and so on. Do I need to create .mxd document for each of the city. (I understand your idea of having different view, and for me the concern is about number of map documents I may need to create manually).

I am sorry but this is slightly out of the Flex criteria in this forum, my question is if we have all the city features in ArcSDE d/b how can we get flex application working based on that. Do I need to create map document for each of these cities from ArcSDE, before I can work with flex application.More straight forward, I mean that is there any means which creates a mxd document from ArcSDE automatically without me having to do it manually using ArcMAp? I could publish the .mxd file pretty easily then in ArcGIS enabling Flex to have access to it.Creating 100 map services for 100 cities manually in Arcmap doesn't look I am going in the right direction. (more over we plan to make the system available so the users in the city could do it themselves, so we don't know exactly how many map documents would be there beforehand). Thank you.
0 Kudos
SaugatJoshi
Deactivated User
Hi Bjorn,
I found an old thread where Robert discusses similar kind of issue. Check below
http://forums.esri.com/Thread.asp?c=158&f=2421&t=294047

I am looking for similar solution. It would be great if you could give me some more insight to it. I am not using .NET in serverside, our backend is Java and Flex viewer in the Frontend.

Thank you.
0 Kudos
MLowry
by
Frequent Contributor
Do bookmarks not work for this application? The architecture of your services/msds isn't as important as getting the data to show up when the user zooms to each city right?
0 Kudos
SaugatJoshi
Deactivated User
Well, I need to get a map in the viewer first for the bookmark widget (if that is what you are talking about). My question is what can be a substitute for Arcmap between the ArcSDE Database and Arcgis Server. Since the maps would be changing depending on the user (in the Flex viewer).How could I get the REST service for it everytime the user clicks on the views(downtown view, riverside view), as it does not exist before hand. There needs to be some mechanism which allows the services be created dynamically and published in the server for that particular view. So I am missing something between  ArcSDE Database and Arcgis Server. I am not even sure if this the right approach to handle this issue.

Thanks.
0 Kudos
SaugatJoshi
Deactivated User
Anyone....
0 Kudos