I really like Mike's hack for firefox/ IE compatibility and posted from his blog.
Thursday, May 24, 2012
Wednesday, April 18, 2012
How to connect spatial database(PostGIS) with QGIS?
In this section, I am showing the 3 basic steps to connect PostGIS database with a widely used open source desktop based gis, QGIS.
Step1: Install PostGIS with Spatial database support extension
i. If PostgreSQL is already installed è Launch ‘Application stack builder’ from startup menu in windows 7.
ii. Select the appropriate instance of PGSQL from dropdown list and Click NEXT.
iii. Expand ‘Categories’è Expand ‘Spatial Extensions’ è Select appropriate PostGIS version(1.5) for the already installed PGSQL version(8.4).
iv. Follow the instructions to install the PostGIS extension.
Tuesday, March 13, 2012
Solved: AutomationException 0x80004005 - Unspecified error
I was writing ArcGIS extension for Geoprocessing using JAVA
and ArcObjects 10. My need was to process about 1000 PRISM raster datasets
globally to compute various environments.
My application did work up to 45- 50 raster files without
any problems in loop, then if fails with “AutomationException 0x80004005 - Unspecified error”.
If I restarted the application again works for next 45-50 raster files and then
crashes with the same error.
I still couldn’t figure out what was the exact cause for application
failure-my guess is it may be due to memory management/garbage collection
problem among ArcGIS COM objects and JAVA objects.
Fortunately, I solved this issue by reinitializing ArcGIS
engine (hope re-initialization breaks the locks and flushes the garbage) after
20 raster files processing. Now, the application works well without any breaks
but little bit slower while initializing the ArcGIS engine after 20 raster
files processing.
Tuesday, February 28, 2012
v.rast.stats - ERROR: No categories found in raster map
I was experiencing "ERROR: No categories found in raster map" during v.rast.stats computation (Zonal statistics in terms of ESRI, ArcMap).
From the GRASS documentation, I learned that v.rast.stats is only designed for vector areas, not for lines, points,face,centroid,boundary, etc.
Therefore, I unchecked all the properties of vector layer except area as in figure 2, and run the v.rast.stats- worked like charm..
From the GRASS documentation, I learned that v.rast.stats is only designed for vector areas, not for lines, points,face,centroid,boundary, etc.
Therefore, I unchecked all the properties of vector layer except area as in figure 2, and run the v.rast.stats- worked like charm..
Thursday, February 16, 2012
Interesting cheat sheets for R beginner
To clear the console: CTRL + L
To seek help: ?command_name
To view type:class(object_name)
To maximize the console print view: Options(max.print=999999)
To list active objects in R: ls()
To Remove single object:rm(object_name)
To Remove all Objects in R: rm(list=ls())
To remove all the objects - except 'a': rm(list = ls()[-a])
Thursday, February 9, 2012
An Interactive Visualization using Geoserver & Openlayers
From last couples of week, I have been involving to develop a interactive web interface for West Nile virus incidence dissemination across the conterminous US from 1999-2011.
The image on the right shows one of my accomplishment using
Geoserver,Openlayers,jQuery, PostgreGIS,and Google API. The project is about to launch online, then I will post a complete link of the project to let you guys play around it.
I am willing to help any one who is stuck with web maps/visualization and also seek constructive criticism on web stuffs.
The image on the right shows one of my accomplishment using
Geoserver,Openlayers,jQuery, PostgreGIS,and Google API. The project is about to launch online, then I will post a complete link of the project to let you guys play around it.
Click to visit: Web application
I am willing to help any one who is stuck with web maps/visualization and also seek constructive criticism on web stuffs.
Wednesday, December 14, 2011
An introduction to Opensource GIS and Geoserver
Open Source software has come a long way in recent years for storing, manipulating and presenting spatial data. The Openstreetmap (www.openstreetmap.org) project is a great example of what can be achieved using open software and open data.
This presentation will look at using a combination of postgis, geoserver and openlayers to process, store and present vector and raster map data.
The presentation will also demonstrate OGC web mapping protocols, map projections, spatial toolkits (including uDig, gdal and ogr) and sources of free geospatial data.
Gavin Jackson is a software engineer working in the Spatial Team on the Atlas of Living Australia project (www.ala.org.au).
Bio: A software engineer with 10 years experience (BInfTech ANU, Msc UNSW), he has worked in a variety of environments, including Department of Defence (IT Security), CPT Global (Stress and Volume Testing), Les Mills (Software Engineer) and, currently, CSIRO (Spatial Software Engineer).
He has long been an advocate for the use and implementation of Open Source technologies, and is a Redhat Certified Engineer (RHCE).
Monday, November 28, 2011
MODIS Data Products Naming Convention
Are you wondering on MODIS products' naming convention? Don't worry !!. This is the time to dig out MODIS names. Let's say you have few MODIS products.
Nadir BRDF-Adjusted Reflectance (NBAR): MCD43B4.A2000185.h25v03.005.2006299173851.hdf
MODIS Land Surface Temperature Products: MOD11A2.A2002241.h12v02.005.2007222102136.hdf
MCD43B4 or MOD11A2- MODIS Product Short Name
A2000185 or A2002241 - Julian Date of Acquisition (A-YYYYDDD)
h25v03 or h12v02- Tile Identifier (Tile location- horizontalXXverticalYY)
005 - Collection Version
2006299173851 or 2007222102136- Julian Date of Production (YYYYDDDHHMMSS)
The YYYYDDD of above products equivalent to 2006299 and 2007222, which means Year:2006 Day of Year:299 (OCT 25, 2006) & Year:2007 Day of Year:222(AUG 09,2007)
hdf - Data Format (HDF-EOS)
Cheers !!
Nadir BRDF-Adjusted Reflectance (NBAR): MCD43B4.A2000185.h25v03.005.2006299173851.hdf
MODIS Land Surface Temperature Products: MOD11A2.A2002241.h12v02.005.2007222102136.hdf
MCD43B4 or MOD11A2- MODIS Product Short Name
A2000185 or A2002241 - Julian Date of Acquisition (A-YYYYDDD)
h25v03 or h12v02- Tile Identifier (Tile location- horizontalXXverticalYY)
005 - Collection Version
2006299173851 or 2007222102136- Julian Date of Production (YYYYDDDHHMMSS)
The YYYYDDD of above products equivalent to 2006299 and 2007222, which means Year:2006 Day of Year:299 (OCT 25, 2006) & Year:2007 Day of Year:222(AUG 09,2007)
hdf - Data Format (HDF-EOS)
Cheers !!
Wednesday, November 23, 2011
Instructions for Creating KMZ Image Overlays from ArcGIS in Google Earth and Google Map
Creating a kmz image overlay
1. Make sure the dataset you are working with has a geographic coordinate system (unprojected) with WGS84 as the datum. If not, you will need to reproject your data. If the coordinate system of your datasets is defined you can change the projection “on-the-fly”. To reproject on-the-fly, go to Layers then Click Properties and specify geographic with WGS84 datum as the coordinate system. However, I recommend reprojecting the actual GIS datasets (shapefiles, grids, etc.) because project-on-the-fly is not always very precise, particularly when dealing with datum transformations.
2. Switch to the layout view. Select a layout that matches the dimensions of your map as closely as possible. To keep the file sizes of your images small, try to leave as little empty space around the edges as possible. Right-click on the layout and select Page and Print Setup to change the layout size.
3. Right-click on the map and select Properties. Go to the Size and Position tab. Under Size, set the Width and Height to exactly match the Width and Height of your layout. Under Position, set X and Y both to zero. Go to the Frame tab and make sure that Border is set to .
4. Zoom and pan in the layout so that you have as little empty space at the edges as possible.
5. Right-click on the layout and select Properties. Go to the Data Frame tab. Under Fixed Extent, you will see the latitudes for the top and bottom of the current layout, and the longitudes for the left and right sides of the current layout. Write these numbers down or cut and paste them into a file. Do not change them!
6. Go to File then Click Export Map. Export the tile as a PNG image. Select the Resolution (in pixels per inch). Depending on the amount of detail in your map and the size of your layout, you may need to experiment with a variety of resolutions to achieve a good balance between image quality and image size. 200 pixels per inch is often a good place to start. On the Format tab set Color Mode to 24-bit True Color, set the Background Color to white, and set the Transparent Color to white as well. If you have white in your map, you may need to choose a different shade (perhaps grey) for both the Background Color and Transparent Color. Do not check Clip Output to Graphics Extent. Click Save to export your file.
7. Open Google Earth
8. Select Add then Click Image Overlay
9. In the New Image Overlay box, type in a name for your overlay and use the Browse button to link to the image that you exported. You can use the Transparency slider to adjust the opacity of the overlay. Add a Description if you like.
10. Go to the Location tab and type or paste in the boundary coordinates of your layout that you saved in step 5. Be sure to include the negative sign for west latitudes. Click on OK.
11. You should see the name of your new image overlay under your Places in Google Earth. Right-click on it and select Save Place As… to save it as a kmz file. Once you have saved the kmz file, you can delete the temporary image overlay. You can double-click on your kmz file to open it in Google Earth,or use File then Click Open from the Google Earth menu.
Modifying a kmz image overlay
1. You can use a program such as 7-zip to open the kmz archive. Inside you will find a KML file entitled doc.kml, and a subfolder that contains your image. You can open the KML file with a text editor. Note that there are just a few tags here that tell Google Earth what to do with your image. There is a tag. The tag has a code that specifies the amount of transparency in the overlay. The tag identifies the image to be overlaid. Thetab identified the bounding coordinates of the image.
2. You can create new kmz files by modifying this existing file. You can make a copy of the existing KMZ file, use 7-zip to remove the image1.png image and replace it with a image2.png image, and then use a text editor to modify the and tags in the kml file. Even if you have a new image has different bounding coordinates, you can edit them directly in the kmz file rather than using the New Image Overlay tool in Google Earth.
3. You can also add a legend or other graphics as screen overlays that are attached to a particular location on the screen (for example, the lower left corner) rather than a particular geographic location on the Earth’s surface.
4. There are various ways to export a legend from ArcGIS to a PNG file. One approach is to export the legend as part of a larger map graphic and then clip it out using a graphics program. Alternately, you can “trick” ArcGIS into letting you export the legend directly. Make sure your map symbology is set up the way that you want it displayed in the legend (it should match the map graphic that you have already exported). Set up your layout dimensions to match the size of your exported graphic (e.g., 1.5 x 1.5 inches). It can help to Insert then Click Legend into your layout first to get an idea of its dimensions. Your legend should fill up the layout and leave minimal whitespace at the edges. Right-click on the legend and choose Convert to Graphics. Then you can uncheck the map layers in the Table of Contents and you will only see the legend. You can now export the layout to a PNG file like you did with the map image. The only difference is that you should set the Background Color to white and the Transparent Color to No Color.
2. Switch to the layout view. Select a layout that matches the dimensions of your map as closely as possible. To keep the file sizes of your images small, try to leave as little empty space around the edges as possible. Right-click on the layout and select Page and Print Setup to change the layout size.
3. Right-click on the map and select Properties. Go to the Size and Position tab. Under Size, set the Width and Height to exactly match the Width and Height of your layout. Under Position, set X and Y both to zero. Go to the Frame tab and make sure that Border is set to .
4. Zoom and pan in the layout so that you have as little empty space at the edges as possible.
5. Right-click on the layout and select Properties. Go to the Data Frame tab. Under Fixed Extent, you will see the latitudes for the top and bottom of the current layout, and the longitudes for the left and right sides of the current layout. Write these numbers down or cut and paste them into a file. Do not change them!
6. Go to File then Click Export Map. Export the tile as a PNG image. Select the Resolution (in pixels per inch). Depending on the amount of detail in your map and the size of your layout, you may need to experiment with a variety of resolutions to achieve a good balance between image quality and image size. 200 pixels per inch is often a good place to start. On the Format tab set Color Mode to 24-bit True Color, set the Background Color to white, and set the Transparent Color to white as well. If you have white in your map, you may need to choose a different shade (perhaps grey) for both the Background Color and Transparent Color. Do not check Clip Output to Graphics Extent. Click Save to export your file.
7. Open Google Earth
8. Select Add then Click Image Overlay
9. In the New Image Overlay box, type in a name for your overlay and use the Browse button to link to the image that you exported. You can use the Transparency slider to adjust the opacity of the overlay. Add a Description if you like.
10. Go to the Location tab and type or paste in the boundary coordinates of your layout that you saved in step 5. Be sure to include the negative sign for west latitudes. Click on OK.
11. You should see the name of your new image overlay under your Places in Google Earth. Right-click on it and select Save Place As… to save it as a kmz file. Once you have saved the kmz file, you can delete the temporary image overlay. You can double-click on your kmz file to open it in Google Earth,or use File then Click Open from the Google Earth menu.
Modifying a kmz image overlay
1. You can use a program such as 7-zip to open the kmz archive. Inside you will find a KML file entitled doc.kml, and a subfolder that contains your image. You can open the KML file with a text editor. Note that there are just a few tags here that tell Google Earth what to do with your image. There is a tag. The tag has a code that specifies the amount of transparency in the overlay. The tag identifies the image to be overlaid. Thetab identified the bounding coordinates of the image.
2. You can create new kmz files by modifying this existing file. You can make a copy of the existing KMZ file, use 7-zip to remove the image1.png image and replace it with a image2.png image, and then use a text editor to modify the and tags in the kml file. Even if you have a new image has different bounding coordinates, you can edit them directly in the kmz file rather than using the New Image Overlay tool in Google Earth.
3. You can also add a legend or other graphics as screen overlays that are attached to a particular location on the screen (for example, the lower left corner) rather than a particular geographic location on the Earth’s surface.
4. There are various ways to export a legend from ArcGIS to a PNG file. One approach is to export the legend as part of a larger map graphic and then clip it out using a graphics program. Alternately, you can “trick” ArcGIS into letting you export the legend directly. Make sure your map symbology is set up the way that you want it displayed in the legend (it should match the map graphic that you have already exported). Set up your layout dimensions to match the size of your exported graphic (e.g., 1.5 x 1.5 inches). It can help to Insert then Click Legend into your layout first to get an idea of its dimensions. Your legend should fill up the layout and leave minimal whitespace at the edges. Right-click on the legend and choose Convert to Graphics. Then you can uncheck the map layers in the Table of Contents and you will only see the legend. You can now export the layout to a PNG file like you did with the map image. The only difference is that you should set the Background Color to white and the Transparent Color to No Color.
Friday, November 18, 2011
A 'mesmerizing' view of Earth from an orbiting space in HD
Shooting locations in order of appearance:
1. Aurora Borealis Pass over the United States at Night
2. Aurora Borealis and eastern United States at Night
3. Aurora Australis from Madagascar to southwest of Australia
4. Aurora Australis south of Australia
5. Northwest coast of United States to Central South America at Night
6. Aurora Australis from the Southern to the Northern Pacific Ocean
7. Halfway around the World
8. Night Pass over Central Africa and the Middle East
9. Evening Pass over the Sahara Desert and the Middle East
10. Pass over Canada and Central United States at Night
11. Pass over Southern California to Hudson Bay
12. Islands in the Philippine Sea at Night
13. Pass over Eastern Asia to Philippine Sea and Guam
14. Views of the Mideast at Night
15. Night Pass over Mediterranean Sea
16. Aurora Borealis and the United States at Night
17. Aurora Australis over Indian Ocean
18. Eastern Europe to Southeastern Asia at Night
Music: Carbon Based Lifeforms - Silent Running
Editing: Michael König | koenigm.com
Image Courtesy of the Image Science & Analysis Laboratory,
NASA Johnson Space Center, The Gateway to Astronaut Photography of Earth
eol.jsc.nasa.gov
Enjoy the Images :)
Subscribe to:
Posts
(
Atom
)