Posts

List of things appropriate and not appropriate for ArcGIS from Citrix Environment

Appropriate for Citrix ·         making maps with existing data ·         querying and selecting spatial data ·         creating GIS points from XY coordinates (GPS files) ·         Sub -setting data by selection and export ·         Creating or editing GIS data feature by feature ·         Buffering small data layers (few features, simple features) ·         Joins on attribute tables Not Appropriate for Citrix ·         Geoprocessing (Intersect, Union, Identity …) ·         Sub -setting data by Clipping ·         Spatial joins ·      ...

Code snippet : Create/update polygon attribute fields using Ogr and ESRI Arcobjects

A code snippet example to check if a feature is standalone ESRI Shape or featureclass inside ESRI Gdb, then add new filed or update attribute value in attribute table .... standalone shape/features are created/updated using GDAL/OGR implementation and feature/featureclass stored in ESRI personal GDB are created/updated using ESRI ArcObjects.  Any solution to replace later with GDAL/Ogr is highly appreciated.  Please comment below if you find one. public void AddUpdateAttributeField(string oldFeatureFile) { DriverUtils.RegisterOgrDriver(); DataSource dataSource; Layer layer; var isShapeFile = IsShapeInGdb(oldFeatureFile); if (isShapeFile) { dataSource = Ogr.Open(oldFeatureFile, 1); //second argument in open specifies mode of data, 1 RW & 0 readonly mode layer = dataSource.GetLayerByIndex(0); FieldDefn gdalFiedlDefn = new FieldDefn("FID_GDAL",FieldType.OFTInteger); la...

Code snippet: Create new Field in a Shape File using GDAL/OGR in C#

Add new field in existing shape file using OGR in C#. public void AddAttributeField(string oldShapeFile) { Ogr.RegisterAll(); DataSource dataSource = Ogr.Open(oldShapeFile, 1); //second argument in open specifies mode of data, 1 RW & 0 readonly mode Layer layer = dataSource.GetLayerByIndex(0); FieldDefn gdalFiedlDefn = new FieldDefn("NEW_FIELD",FieldType.OFTInteger); layer.CreateField(gdalFiedlDefn, 1); Feature feature = layer.GetNextFeature(); while (feature!= null) { feature.SetField("NEW_FIELD",feature.GetFID()); // Populate new field with feature FID layer.SetFeature(feature); feature = layer.GetNextFeature(); } dataSource.FlushCache(); }

ESRI FeatureClass vs Feature Layer

Feature Layer:  A layer that references a set of feature data. Feature data represents geographic entities as points, lines, and polygons. Feature Class: In ArcGIS, a collection of geographic features with the same geometry type (such as point, line, or polygon), the same attributes, and the same spatial reference. Feature classes can be stored in geodatabases, shapefiles, coverages, or other data formats. Feature classes allow homogeneous features to be grouped into a single unit for data storage purposes. For example, highways, primary roads, and secondary roads can be grouped into a line feature class named "roads." In a geodatabase, feature classes can also store annotation and dimensions. Rasterized Feature Layer: A feature layer in ArcGlobe that exists as points, lines and polygons but is rendered as cell data. When layers are added to ArcGlobe, they may automatically be rendered in raster format to retain their cartographic symbology.

Register Database to ArcGIS server

Image
There are two methods to register Database to ArcGIS Server A) Register via ArcGIS Desktop Double click to ensure ArcGIS Server Instance is connected to ArcGIS Desktop Right Click to Publisher connection to ArcGIS Server Then Click ArcGIS Server Properties to open ArcGIS Server Properies Add Data Store in Registered Databases ESRI Video on Registering database data with ArcGIS 10.1 for Server B) Register via ArcGIS Server Manager Web Interface SOURCE:  http://gisdeveloper.blogspot.com/2014_04_01_archive.html  ( Copied here for my future reference) REGISTER DATABASE TO ARCGIS SERVER While publishing data (from database) to ArcGIS server it gives you a warning that 24011: Data source is not registered with the server and data will be copied to the server How to resolve this ?? Well there are different approaches, here is the one which i followed. But before doing anything Please Note: Note: The client side libraries need to be copied to ArcGI...

Postgresql tips

Start to postgresql :  sudo -u postgres psql postgres List all databases :  \list  or  \l : list all databases \dt : list all tables in the current database Type  \q  and then press  ENTER  to quit  psql Connect to database : \connect database_name Drop all tables from a database:  drop schema public cascade;

American Association of Geographers' Annual Meeting2017

Image
American Association of Geographers' Annual Meeting in Boston, MA Announcements  Welcome to Boston 2017 AAG Annual Meeting April 5-9, 2017 Hynes Convention Center Welcome to the 2017  American Association of Geographers' Annual Meeting   in Boston, MA! You will be joined by fellow geographers, GIS specialists, environmental scientists, and other leaders for the latest in research and applications in geography, sustainability, and GIScience. The meeting will be held from  April 5-9, 2017 , and will feature over 6,600 presentations, posters, workshops, and field trips by leading scholars, experts, and researchers.  The 2017 Meeting will be headquartered at the Hynes Convention Center, located in the Back Bay neighborhood of Boston. Sessions and events will also take place at the official 2017 AAG Meeting hotels: the Sheraton Boston and the Marriott Copley Place. The additional meeting venues are located steps away from the Hynes C...