PostgreSQL/PostGIS Installation

by Nate 30. August 2006 04:38

I've worked with PostgreSQL for a while now, but everytime I perform a new install (usually with PostGIS added on soon after the initial install) I am amazed at how simple it is and how smoothly it goes. In the past, I've worked on some pretty complex database installs - especially complex, at least for me, when installing to a Linux system - but it really only takes a few minutes to get PostGIS up and running on a database on any platform.

If you haven't checked them out, you should go download them both now. And if you want an open source desktop interface, there are a number of options that plug directly into PostGIS, including Quantum GIS and uDig. With them you can easily connect to a PostGIS database, and load (check out the Import Shapefiles to PostgreSQL plugin for Quantum GIS) and edit data. On top of this, you can greatly extend Quantum GIS' capabilities by using it as a graphical user interface for GRASS.

I agree with others that the major "gap" in the open source GIS arena is on the client side of things. At this point, there isn't an interface that rivals the ArcGIS Desktop suite. The products that are available, though, do serve a purpose. And if you're willing to put the time into learning and integrating them, they fill a huge niche that is left empty by ESRI.

As for the open source spatially-aware database, however, PostgreSQL and PostGIS offer a viable - albeit not as powerful - alternative to the expensive proprietary solutions. The two combined don't work for every scenario, but they do work for a surprising number of cases.

More to come on all of these solutions later...

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

PostgreSQL

Free 3D Modeling Software

by Nate 24. August 2006 14:11


DAZ has made their Bryce 5.0 3D modeling and rendering software available for free download through September 6th (their newest version is 5.5). This software package allows you to create 3D environments, including landscapes and animations, through a robust and fairly intuitive interface. You do have to register for a serial number, but, there is no charge for the software!

What's with all these 3D products? (Thanks, Roland, for the info.)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Applications

My Thoughts on Open Source

by Nate 23. August 2006 02:10

[Open Source Series: Part 1]

Lately, there has been a lot of talk about open source (including a great podcast by Scott Hanselman* about what open source really means). I don't know if it's the sudden overwhelming popularity of Ubuntu (which seems to be gaining more followers every day) and other open source software that's pushing this latest series of discussions, or just that people are finally starting to realize that there is truly an alternative to spending loads of money on software. Either way, I'm happy to see it. I've been a user of open source for sometime now, although I am basically locked into a Microsoft/ESRI world at work. I have a lot of fun experimenting with different applications (and since open source equals free for me to play with, I can experiment all I want), and find that "learning" how to use a new open source application or operating system - even though challenging at times - actually makes me a better overall user in the end. I know, I know, there is great community support available for most open source projects. Most of the time, though, I refuse to use the support. It's actually the same for me and proprietary software; if I can't figure out the solution to a problem on my own, the software doesn't work.

I've heard some say that today's interfaces don't require the end user to really know what (s)he is doing, and I, for the most part, agree. I don't want to hang on to the way things used to be - and I really can't (I'm not old enough ;-)), but I do think that users of technology, in general, are being "dumbed down" by the interfaces. Don't get me wrong, though - for most users this is an okay thing. It means that more advanced technologies are accessible to more people today than ever before. And it should be the goal of every developer to design applications that are accessible to as many people as possible. For those who want to work in technology fields, however, doesn't it make sense to really understand what's going on underneath the hood?

With all that out, I plan on writing a series of entries about my experiences with open source software. Check back for more...

*Note that the link from Scott's blog to his podcast points you to the wrong show. Follow this link for the correct one...

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Applications

The Confluence of GIS and IT

by Nate 21. August 2006 02:11

Introduction

Today, more than ever, the line that separates GIS dweebs from IT dorks is growing dimmer*. Whereas in the past users of GIS have had to be local "power users" who were proficient in command line and obscure software technologies (but not necessarily schooled in still-esoteric concepts and definitely not necessarily able to administer and optimize hardware infrastructure and networks), many of today's GIS users are expected to have a broader range of expertise and skills. It's happening on the other side, as well; spatial data and applications are being used more and more in traditional information technology fields to help streamline workflows and improve the efficiency and operations of organizations of all sizes.

Why the convergence? Well, if you look at the big picture, GIS is really just a specialized subset of IT. Here are the definitions, from Wikipedia (emphasis mine):

Information Technology - a broad subject concerned with technology and other aspects of managing and processing information, especially in large organizations.

Geographic Information Systems - a system for creating, storing, analyzing and managing spatial data and associated attributes.

This is not rocket science; while IT is considered to be a broader, all-encompassing field that uses technology to manage and process information (or data), GIS fits into a smaller (and much more specialized) niche. They are, though, at their most basic level one and the same. GIS departments have traditionally remained separate from IT departments, but I see this beginning to change.

Following are some examples of the skills/technologies that fall into the area of overlap, or "intersection" (as it is called in a Venn diagram). And you'll notice when reading the list below that this area of "intersection" is huge - and growing larger all the time.

  • Database - this is the most obvious of them all. GIS data are happier in databases. File-based structures, albeit in some ways easier to use and administer, place severe restrictions on what can be done with the data. When stored in a database, though, the only restrictions imposed on data are those brought on by the database administrator's abilities - or lack thereof. A good GIS user needs to not only understand how data are stored in a Relational Database Management Systems (RDBMS), but should also be able to design and optimize a database using accepted standards and techniques. More and more data are being moved from file-based formats into databases, and those who are able to efficiently and effectively use these data will have a significant advantage in leveraging the power of GIS for their own needs.
  • Hardware - centralized GIS allows for more efficient allocation of resources and simpler overall maintenance and administration. However, centralization has its difficulties as well. It can put quite a load on finite expensive and mission-critical hardware resources, including memory, processing capacity, etc. A GIS user who understands the relationship between all of these different variables and is able to get the most out of existing resources can get more out of a GIS than one who only understands the software. My prediction: in the coming years, basic working knowledge of IT hardware will be a prerequisite for employment in many fields of GIS.
  • Network - with the recent proliferation of network and web-based mapping/spatial technologies, today's GIS user needs to know more about how networks work than a user did even just a couple of years ago. Optimizing applications and services can allow a GIS user to get more out of their network, and can dramatically improve the end-user's experience (in the case of data served over a network or through a web application or service).
  • Programming - in the GIS profession, scripts have long been used to extend the functionality of software, and Structured Query Language (SQL) has been used (often in a much simplified manner) to query out data since the inception of GIS. The new allowances of today's technologies, however, make it possible for a GIS user to make his/her data available to a much larger audience - if they can point the data in the right direction and give it a little nudge. Although today's development tools are advanced and user-friendly, there is still a need to know how to write basic scripts to extend interfaces and assist in repetitive tasks. One biggie that all GIS users need to catch up on is XML. With it one can do it all - from documenting their data to connecting two disparate databases that sit on two different platforms.
  • Web Design - basic, working knowledge of web design principles and techniques (especially basic CSS and HTML) are helpful to anyone who needs to make any information or services available on the web. And, as I talked about in the "network" section above, the web is the future of GIS.

Conclusion

What does this mean for users of GIS? Well, in my opinion it means that we have an exciting future ahead. A GIS user who understands the fundamental technologies and services that drive IT - in addition to having a passion for spatial technologies - can expect to have only the sky as the limit.

 

*Note: I use the term "dweeb" lovingly, as I am a proud dweeb myself.

Listening to: Iron & Wine - Our Endless Numbered Days...

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Thoughts

ArcGIS Desktop/Symantec Antivirus RegObj.dll Problem

by Nate 20. August 2006 22:25

As some of you may know, some antivirus programs recognize the RegObj.dll file (C:\Windows\System32\RegObj.dll on most systems) as malicious. This file is required by ArcGIS and, if deleted, ArcGIS' self-repairing feature is triggered, causing a very annoying delay while the install completes. ESRI's solution for the problem is to create a file exclusion in your antivirus software for the RegObj.dll. We use Symantec antivirus, and I personally set up the exclusion on our antivirus server. This hasn't, though, solved the problem. Yes, the repair install doesn't occur as often as it did, but it still happens.

I came across a couple of messy, but doable, workarounds in the ESRI support forum today, and am hoping that these will take care of the problem forever! The first solution is as follows:

  • Copy the RegObj.dll file from the \System32 folder to another folder on your harddrive (e.g. C:\Workspace). Symantec only deletes the .dll if it resides in your \System32 folder, so it should be safe here.
  • Create a simple batch file that moves the RegObj.dll from the C:\Workspace folder to the \System32 folder.
    • To create the batch file, right-click in the directory where you want it to reside and select New>Text Document in the context menu (picture illustration).
    • Assuming that Windows is installed to your C:\ partition, open up the new text file and paste in the following line:
      • copy "C:\Workspace\RegObj.dll" C:\WINDOWS\system32\RegObj.dll /Y
    • Rename the text file to YourName.bat. You will have to confirm that you want to change the file extension by clicking "Yes" (picture illustration).
  • Next, point to Start>Run and type in "Tasks". Press enter.
  • Double-click on "Add Scheduled Task", and the "Scheduled Task Wizard" dialog will open. Set the scheduled task parameters as follows:
    • Click on "Browse..." and browse to the location of the batch file that you just created. When you get to it, double-click on it.
    • In the next window, choose to "Perform this task" Daily and click "Next".
    • Select the task "Start time" (I chose 12:01 AM). Choose to perform this task "Every Day" and specify the task "Start date" (today's date).
    • This is important. Specify a valid username and password in this dialog - the task will run as if started by this user. This can be tricky if you authenticate against Active Directory. If you know the credentials of a local administrator, use them (as you won't have to worry about forgetting to go back in and reset the password when an Active Directory password expires).
    • At the next dialog, check the "Open advanced properties..." box and click "Finish".
    • When you get into the advanced properties dialog, click on the "Schedule" tab at the top and push the "Advanced..." button.
    • In the "Advanced Schedule Options" dialog, check the "Repeat task" box and choose to repeat the task at a set interval (I chose 5 minutes).
    • Chose the "Time:" radio button and set the scheduled task end time (I chose 11:59 PM) and click "OK".
    • Click "OK" to close out the other open dialog and you should be good!

The second solution uses the same method but doesn't have to run as often, as it unzips and then registers the RegObj.dll file before moving it into the \System32 folder. I'm not going to document this method, as it has already been done. I will, however, point you in the right direction (zip uploaded to the ESRI Support Forum by Tunrayo Alabi, here's a link to the full discussion).

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

ArcGIS Desktop

ArcGIS Reference Card

by Nate 18. August 2006 21:38


Digital Data Services, Inc. (DDS), a company based in Denver, Colorado, put together a very helpful ArcGIS Reference Card for the 2006 ESRI User's Conference.

It includes common map scales, a UTM diagram of the continental United States, ArcMap editing and troubleshooting tips, and some basic Visual Basic functions and is available for download as a .pdf at the Neer Cartography website. This could be especially useful to those who only occasionally dabble in the ArcGIS Desktop environment.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

ArcGIS Desktop

First Post with Windows Live Writer

by Nate 15. August 2006 18:20

Microsoft released Windows Live Writer this past week, and I thought I would give it a try (like everyone else in the blogging world, it seems). Here are my initial impressions:

  • The interface is more intuitive and less complex than my current blogging tool, w.bloggar. This doesn't mean that it isn't as powerful, though; it seems to have all of the features that I used with w.bloggar - and looks better doing it.
  • Connecting to dasBlog to post was almost too easy. Live Writer supports the new Really Simple Discoverability (RSD) standard, which means that for those blogging engines that support the standard, connecting and posting is as simple as pointing the interface your blog's URL. At 1.8, dasBlog doesn't support RSD, but it will in 1.9.
  • The availability of plugins and an API should be a huge boon to the Live Writer project. Omar Shahine has already got a couple of plugins up his sleeves that I am excited about, and I plan on trying the "Currently Listening" plugin later this week.
  • Another strength that I see in Live Writer is its image and mapping capabilities. You can add images, change the layout and image properties (including adding custom watermarks), and edit images without leaving the blogging window. The image editing capabilities remind me a lot of Picasa. Adding custom maps from the Windows Live Local service is just as easy, and is a real asset to the application.
  • The ability to preview your post - CSS and all - from within the Windows Live interface is outstanding. Whereas before I often had to publish the post and then go into the built-in editor to correct formatting errors, now I can just post and go.

Overall, I am - as you can see - very impressed with Live Writer. It has the exact capabilities that I need, and nothing that I don't. I really look forward to using some of the plugins that will undoubtedly come out of the API.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Applications

Working with ASP.NET Master Pages

by Nate 12. August 2006 22:42


So, I've been working a lot with ASP.NET 2.0 while building the Naldara Geomatics website. I knew from the beginning that I wanted to use CSS, as I am all for making the design and management of websites easier (and I really don't like how tables look or act). As I started work on the site, though, I ran into a new feature of ASP.NET 2.0 - master pages.

I'm not going to really delve into what master pages are; there are hundreds of websites and blog posts that already cover this, and they all say basically the same things (if you don't believe me, try a google search for "asp master pages". Here are the basics: master pages allow you to create a template page, with CSS, menus, headers and footers, images, etc. and create what are called content placeholders within the page. You can then create pages using the master page as the template, and only worry about creating content for the sections that are unique to the particular page. The strength of this should be obvious: if you have a single template master page, you only have to edit a single HTML page when changes to a menu or logo or footer are needed. And, of course, you don't have to worry about adding scripts multiple times to multiple pages (and then you don't have to worry about keeping them all in sync and clean).

Not being very experienced in the use of ASP.NET or master pages, I don't want to assert that I know everything there is to know about the two. However, I have noticed that the use of master pages makes it much more difficult to get ASP applications to work. Notice I didn't say that it doesn't work. There simply isn't, at this point, enough online documentation or help available.

For example, I have been working on putting together an ASP contact form that utilizes several controls and sits within a master page template. When the controls sit inside of a content placeholder, I have not yet been able to get it to work well. For some reason, a control that sits inside of a content placeholder has the unique (and this is important) name of the content placeholder and and another (logical, I'm sure, but unknown to me) set of alphanumeric characters appended to the front of its name. So, to access a control's input, you have to first find out what this unique name is and then call it into whatever script you are using. There has to be a better way of doing this, but I haven't figured it out.

Anyways, enough for now. Once I solve this problem, I'll update the post to reflect what I have learned. If any kind souls out there want to help, please do!

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

ASP.NET

Application Launchers - Save Yourself Some Time!

by Nate 12. August 2006 01:15
Scott Hanselman just recently posted an entry about application launchers. In the entry, he covered the two that I use every day - Launchy and Slickrun. They work well together, each filling in where the other lacks. I use Launchy to start applications and index local directories and files (you can tell it what directories and type of files you want it to index and let it go on its merry way). Slickrun is much more powerful, but also takes more getting used to. With it, you can browse to shares and create nicknames - or "Magic Words" - and use them to launch applications or URLs.

Both utilities are minimal (Launcher hides until you want to use it and Slickrun is a tiny, unobtrusive box that hovers wherever you place it) and have AutoComplete functionality, which really enhances the overall usability.

In the aforementioned entry, Scott covered several more launcher utilities. I have tried a few of the others (just recently giving up Colibri for Launchy [reason: I wanted more than just an app launcher] and Google Desktop for Slickrun [reason: Google Desktop was too bloated for my tastes]), and will likely try the rest of them out in the near future.


Note: Launchy is open source and Slickrun is freeware, so there's no reason not to try them!

Listening to Tom Petty - Highway Companion...

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Utilities

ArcReader: The Good, the Bad, and the Ugly

by Nate 9. August 2006 22:45
I've been working with ArcReader a lot lately, using it as a simple client access interface to connect intranet users to an enterprise GIS built on ArcSDE 9.1 and Microsoft SQL Server 2005. Generally speaking, I've been happy with the product and the publisher extension (which allows you to publish map documents to ArcReader-accessible .pmf files). I have, however, discovered many shortcomings in the application. This entry outlines both the strengths and weaknesses of ArcReader, as I see it, specifically when using it to access data served over a network (Local Area (LAN) or Wide Area (WAN)).

Strengths
  • Simple way to publish data quickly.
  • Has an accessible user interface that is easy to learn.
  • Provides a no risk read-only interface to your GIS - this eliminates the need to worry about forgetting to add the data into ArcMap from a SDE geodatabase as a non-editing user.
  • As long as joins and relates are applied before the .pmf file is created, all necessary attribute fields are searchable - even if related tables have not been explicitly added to the .pmf.
  • Can drill down into related (via a geodatabase relationship class) feature class and stand-alone tables using the identify tool, even if the related tables are not explicitly added to the .pmf and the relationship only exists in the geodatabase and hasn't been established in the ArcMap project.
  • Capability of using both data and landscape views, meaning that you can make sure that all printed products meet your guidelines and standards.
  • If accessing data that are stored in a spatial data engine (sde) or served via web services, the end user will always have the best data. This helps reduce the need to send out "updated" datasets or .pmf projects.
  • Custom macros can be used to extend the abilities of your application. (Corrected in comment below. Thanks!)
Weaknesses
  • I haven't yet tried to create custom ArcReader applications, but the ArcReader Configuration tool is very limiting.
  • If using an ArcReader Template (.art) file to customize an ArcReader application using the ArcReader Configuration tool, it is difficult and very cumbersome to link the .art file with the .pmf file.
    • Question: why not just set the default path of the .art to the location of the .pmf?
    • Note: I have just read that this issue is being addressed in the impending 9.2 release. You will be able to package .art files with .pmf files when publishing the project.
  • Cannot add non-spatial tables to ArcReader application (the workaround is to, like mentioned above, explicitly apply joins and relates before the map file is published).
  • Cannot query feature classes or tables that are linked via a geodatabase relationship class (unless you perform the joins in the ArcMap project before publishing to a .pmf file. Even then you have to either hide extraneous fields before you publish the map document or settle for a bloated, confusing attribute table).
  • During an identify, attribute field names are sorted in alphabetical order.
    • Question: Why not have the fields listed in the order that they are presented in the table schema, as this is the order defined by the data owner?
    • Note: A workaround, although it should be more efficient than this: While performing an identify in ArcReader, you can right-click in the right-hand side of the identify box and unselect "Sort Fields". This will turn off the automatic sort. Why is this turned on by default?
Overall, ArcReader is a nice packaged solution. It allows for greater accessibility to an organization's GIS, and is easy to use - for both the administrator and the end user. You can customize some aspects of an application using the ArcReader Configuration tool, but will need to create a fully customized ArcReader project to gain access to advanced customization options. With the release of ArcGIS Explorer scheduled for later this calendar year, it will be interesting to see where ESRI takes ArcReader in the 9.2 release. My prediction: ArcReader will always have its "niche" as an easy-to-use and deploy client access solution. As more advanced applications come along - whether traditional or web-based - ESRI will have to continue to fine-tune the ArcReader interface and open it up to simpler customization by administrators.


Note: ArcReader is available for the Linux, Solaris, and Windows platforms and is available for download at the ESRI site.

Listening to Christopher O'Riley - True Love Waits: Christopher O'Riley Plays Radiohead...

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

ArcReader

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen
GeoURL