|
POST
|
see http://resources.arcgis.com/en/help/main/10.1/0154/0154000005rp000000.htm
... View more
05-15-2013
02:33 AM
|
0
|
0
|
2263
|
|
POST
|
have you tried set connection Runtime (http://msdn.microsoft.com/en-us/library/system.data.entityclient.entityconnectionstringbuilder.aspx)
... View more
05-15-2013
02:27 AM
|
0
|
0
|
1739
|
|
POST
|
if you have enabled feature access in capabilities you shoud have '2 services' (1 map and 1 feature) in catalog
... View more
05-15-2013
02:21 AM
|
0
|
0
|
1451
|
|
POST
|
you can do it: you need serialize and deserialize your objects because in soe properties you store strings (you can create property page for use in the Service Editor dialog box in ArcGIS for Desktop: http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/0001/000100000nw3000000.htm) For Richard: Ok I have understood but I unlikely that a user create a service without a minimal skill for do it. with IServerEnvironment3 you can get info on users, path, property ect. http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#/Getting_user_and_role_information_in_a_server_object_extension/000100000pmm000000/
... View more
05-14-2013
09:33 AM
|
0
|
0
|
2345
|
|
POST
|
The problem is that you get image (from service). Here you can see for high quality print from service: http://resources.arcgis.com/en/help/main/10.1/index.html#/Tutorial_Advanced_high_quality_web_map_printing_exporting_using_arcpy_mapping/0154000005z2000000/ That's basically you can see in this link that if a layer is a service it is substituted with real data equivalent so you can have high quality
... View more
05-14-2013
05:47 AM
|
0
|
0
|
1225
|
|
POST
|
Simon, I don't understand: if the user wants to change the configuration why don't you expose them how parameters of soe?
... View more
05-14-2013
05:40 AM
|
0
|
0
|
2345
|
|
POST
|
yes, you can from arcmap 10.1: -from menu File select Share as service -select Save a service definition file -select No available connection -next -next -and now click on Analyze for check possible error.
... View more
05-14-2013
03:26 AM
|
0
|
0
|
1070
|
|
POST
|
you can see http://nicogis.blogspot.it/2012/10/ags-101-restful-administrative-api.html. I have written a code sample for create service in c#
... View more
05-13-2013
10:31 AM
|
0
|
0
|
758
|
|
POST
|
If you have < 1000 points you can use method generate of portal api (http://resources.arcgis.com/en/help/arcgis-rest-api/02r3/02r300000083000000.htm) and serialize your csv in feature json so you can use with api esri js. here you can see sample with shapefile ( http://developers.arcgis.com/en/javascript/jssamples/portal_addshapefile.html). You can use also gpx (use 'filetype': 'gpx')
... View more
05-09-2013
12:23 PM
|
0
|
0
|
994
|
|
POST
|
IMO now in ags there are more check for create efficient services so users avoid add service in services, also why you can overlay image via api, rest ect but user can also think that Esri avoid that user cache service Esri, Bing ect.
... View more
05-09-2013
12:08 PM
|
0
|
0
|
1151
|
|
POST
|
In 10.1 you cannot put a basemap service inside another service. You can get two images via rest and fuse them server side. you can write code kind this one (I haven't tested):
static void Main(string[] args)
{
FuseTwoImages("http://services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Reference_Overlay/MapServer/export?dpi=96&transparent=true&format=png8&bbox=633494.6405943877%2C5612180.331083226%2C1416209.810234554%2C6152742.995115967&bboxSR=102100&imageSR=102100&size=1280%2C884&f=image", 100.0f, "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Population_World/MapServer/export?dpi=96&transparent=true&format=png8&bbox=633494.6405943877%2C5612180.331083226%2C1416209.810234554%2C6152742.995115967&bboxSR=102100&imageSR=102100&size=1280%2C884&f=image", 50.0f);
}
public static void FuseTwoImages(string baseImageUrl, float baseImageOpacity, string topImageUrl, float topImageOpacity)
{
Graphics graphics = null;
try
{
Bitmap imageBaseMap = new Bitmap(WebRequest.Create(baseImageUrl).GetResponse().GetResponseStream());
SetImageOpacity(imageBaseMap, (float)topImageOpacity);
Bitmap bitmapFirst = new Bitmap(new Bitmap(imageBaseMap));
graphics = Graphics.FromImage(bitmapFirst);
Bitmap bitmapSecond = new Bitmap(WebRequest.Create(topImageUrl).GetResponse().GetResponseStream());
Image image = SetImageOpacity(bitmapSecond, (float)topImageOpacity);
graphics.CompositingQuality = CompositingQuality.HighQuality;
graphics.InterpolationMode = InterpolationMode.HighQualityBilinear;
graphics.SmoothingMode = SmoothingMode.HighQuality;
graphics.PixelOffsetMode = PixelOffsetMode.HighQuality;
graphics.DrawImage(image, new Point(0, 0));
bitmapFirst.Save(@"c:\temp\_ags_" + Guid.NewGuid().ToString() + ".png", ImageFormat.Png);
}
catch (Exception)
{
}
finally
{
graphics.Dispose();
}
}
public static Image SetImageOpacity(Image image, float opacity)
{
try
{
//create a Bitmap the size of the image provided
Bitmap bmp = new Bitmap(image.Width, image.Height);
//create a graphics object from the image
using (Graphics gfx = Graphics.FromImage(bmp))
{
//create a color matrix object
ColorMatrix matrix = new ColorMatrix();
//set the opacity
matrix.Matrix33 = opacity;
//create image attributes
ImageAttributes attributes = new ImageAttributes();
//set the color(opacity) of the image
attributes.SetColorMatrix(matrix, ColorMatrixFlag.Default, ColorAdjustType.Bitmap);
//now draw the image
gfx.DrawImage(image, new Rectangle(0, 0, bmp.Width, bmp.Height), 0, 0, image.Width, image.Height, GraphicsUnit.Pixel, attributes);
}
return bmp;
}
catch
{
return null;
}
}
... View more
05-08-2013
11:26 AM
|
0
|
0
|
1151
|
|
POST
|
your url rest service is http(s)://yourhost/yourinstanceags(default arcgis)/rest/services/(nameofservice or youragsfolder/nameofservice)/MapServer for example: http://www.example.com/arcgis/rest/services/ExampleService/MapServer var tiledMapServiceLayer = new esri.layers.ArcGISTiledMapServiceLayer(http://www.example.com/arcgis/rest/services/ExampleService/MapServer); see http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/ags_rest.html
... View more
05-08-2013
10:46 AM
|
0
|
0
|
733
|
|
POST
|
see http://forums.esri.com/Thread.asp?c=159&f=1707&t=172833
... View more
05-03-2013
05:29 AM
|
0
|
0
|
529
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-20-2024 11:20 AM | |
| 1 | 05-25-2017 10:11 AM | |
| 1 | 06-20-2023 12:09 AM | |
| 1 | 10-14-2022 05:14 AM | |
| 1 | 06-14-2023 02:00 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|