archive

Archive for June, 2009

Generate Keys

Monday, June 29th, 2009

picture-25Nice small app, in case you need to create some “passwords”, or lengthly keys.

Send Large Files

Thursday, June 25th, 2009

picture-5Via normal email you can’t usually send files larger than a couple of MBs. But you with YouSendIt you can send unlimited 2GB files and folders. Send files to anyone with advanced options like password protection and certified delivery.

ArcMap: Create Colormap-File from Existing Raster

Friday, June 12th, 2009

Need to create a colormap file from a raster, and don’t want to write it by hand? This script will analyze the currently selected object in ArcCatalog. If it is a raster, it will write a .clr file for your raster in the location of your choosing.

ArcMap: Convertir GRID en TIF

Friday, June 12th, 2009

Voici les commandes un fois que tu as convertis ton image en grid. La commande 2) sert à convertir les nodata en valeur (en ce cas 255) car le tif ne le gère pas.

1) grid
2) tmpgrid = con(isnull(ingrid), 255, ingrid)
3) q
4) gridimage tmpgrid colmap outgrid tiff lzw
5) kill tmpgrid all

en Gras les paramètres à inserer (tmpgrid tu peut le laisser comme ça)

Colormap File:

1 255 251 197
2 255 243 148
3 255 227 99
4 255 202 49
5 255 174 0
6 239 134 0
7 214 97 0
8 197 65 0
9 173 36 0
10 148 16 0
11 132 0 0
12 107 0 0
13 90 0 0
14 74 0 0
15 49 0 0

ArcMap: Polygons are divided in tiny strips

Friday, June 12th, 2009

Description
When an ArcMap generated EPS, PDF, CGM, or AI Illustrator file is opened in an external editor, like Adobe Illustrator, some large polygons are divided into thin vertical strips.

Cause
This is called polygon dicing, and is implemented on polygons containing more than 20,000 vertices. The purpose is to speed up on-screen drawing and output to a printer.

Workaround
Try one of these options to reduce the effect of polygon dicing:

Simplify the polygon data.
In ArcGIS 8.1.2 and later, you can use the following Visual Basic code to turn polygon dicing off and on.

Run this code prior to exporting your map:

Public Sub turnOffDicing()

Dim pGeometryEnv As IGeometryEnvironment3

Set pGeometryEnv = New GeometryEnvironment

pGeometryEnv.DicingEnabled = False

End Sub

ArcMap: Maximum Sample Size

Thursday, June 11th, 2009

Error Message
Symbolizing using graduated colors or graduated symbols in ArcMap returns the following error:

“Maximum sample size reached. Not all records are being used. Use this sample or change maximum sample size.”

Cause
The sample size for the data exceeds the maximum sample size specified in the Symbology tab.

Solution or Workaround
Right-click the layer in the table of contents and click Properties.
Click the Symbology tab and click Quantities in the Show box.
Symbolize the data with graduated colors or graduated symbols.
Click the Classify button to display the Classification dialog box.
Click the Sampling button.
Set the maximum sample size to any number greater than or equal to the amount of features in the layer.
Click Apply.
Click OK.