POST
|
Hi, I have a mxd file with some query layers (File->Add Data->Add Query Layers). Is it possible to change the query layers's definition with arcpy? I need change both the SQL statement and the database connection. Thanks.
... View more
07-12-2012
07:53 AM
|
0
|
1
|
849
|
POST
|
Thanks. It worked. Don't know why it didn't work for me the first time. Wei, Please try this: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/arcgisdynamicmapservicelayer.htm#setVisibleLayers
... View more
07-11-2012
02:17 PM
|
0
|
0
|
179
|
POST
|
hi, Suppose I have a dynamic map service with multiple layers, is there a way to control which layer to show/hide from javascript api? For example, var dLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://localhost:6080/arcgis/rest/services/map1/MapServer"); And MapServer dLayer has 3 layers: Layers: School (0) CityHall (1) River (2) And I want the web client to control which layer to show. Is this possible with javascript API?
... View more
07-11-2012
01:33 PM
|
0
|
2
|
2563
|
POST
|
Thanks for your reply. I knew you were right but I can't resist the notion of using a different version of PostGIS because there is not 64bit built of PostGIS on windows, not to mention the specific minor version. So I did some research. This page about query layer says we must use supported version: You must use a release of the DBMS that is supported by the ArcGIS version you are using. Check the ArcGIS Resource Center for DBMS support information for ArcGIS Server. However, it is very vague because the "supported version" mentioned in my last post clearly meant for ArcSDE. And because, in query layer's case, ArcGIS is simply a client of the database, I find it is hard to believe that is has to use 64 bit postgresql. And this page says that "direct connection" (which to me seems to mean query layer) is backward compatible. I did try to use ArcGIS 10.1 (both desktop and server) to connect to a 32bit postgresql/postgis. And it worked. But I am confused about if this is officially supported by ESRI or not.
... View more
03-22-2012
02:04 PM
|
0
|
0
|
130
|
POST
|
Hi, When this document says that 10.1 only support PostgreSQL 9.05 64bit and PostGIS 1.5.1. Can I assume that it only applies to ArcSDE connection? That is, if I use Query Layer, I can use whatever version of PostgreSQL and PostGIS? Thanks.
... View more
03-21-2012
11:42 AM
|
0
|
3
|
254
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|