Monday, June 11, 2012


Could not start ArcSDE - Check Network, $SDEHOME disk, DBMS settings....


Today, I created multiple ArcSDE service instances and few services deletion.   When I started one of the service, it has thrown an error "could not start ArcSDE..." for the command sdemon -o start -i esri_sde.  

Then I tried with sdemon -o start -i esri_sde -H c:\arcgis\arcsde\ora10gexe\.  It started properly. I am not sure whether the deletion of the service instance esri_sde has not done properly... 

Monday, April 9, 2012

ArcGIS desktop + Append issue

I have created a feature class (fGDB) in ArcGIS 9.3.1 without mentioning the co-ordinate system.  After appending multiple feature class in the new one, i drew the map in ArcMap.  The line features are displayed in zig-zag way, no smooth curves.

So, again I created the feature class and mentioned the co-ordinate system.  Then the features appended became smooth curves.  

Thursday, March 8, 2012

copying file names in a single click.

Today, I faced a problem, i have to copy around 20 *.txt files name into an excel sheet in windows xp.

first few minutes, i was manually coping the file name from each file and then paste it in the excel..  It lead to lot of error..

I googled for any solution, i found a good solution from the microsoft site.

(unfortunately, i am not able to find the same site again)... but the steps are,

a) use the command prompt (start->run->cmd)
b) in the cmd prompt go upto the folder where the files are there
c) dir *.txt
d) right click on the listed file names and select mark
e) press enter (it will copy)
f) then paste it

This information may be too old.. but today only i learned it, so thought to share it...


polygon self intersecting - two line segements intersecting...

This week I was working on how to find the polygon is self intersecting or not.   I have gone through various logics, algorithms etc.,  but nothing worked fine..

Finally, I found this site, this is simple way to find whether two line segments are intersecting..

http://community.topcoder.com/tc?module=Static&d1=tutorials&d2=geometry2

Based on this logic, i developed few lines of code to find two segments intersection..

for example:  points are  (0,0) (5,5), (0,5)(-3, 6)(-3, 3)
the above sample will create a polygon with five sides.   So here we should be careful, how to iterate the lines with other lines (not the immediate next one)...  and also, it should not redo the same set of sides....

(0,0) - (5,5) - side1
(5,5) - (0,5) - side2
(0,5) -(-3,6) - side3
(-3,6) - (-3,3) - side4
(-3,3)-(0,0) - side5

so, side1 should be compared with side3, side4  (but not with side2, side5, since those are closer)

then side2 should be compared with side4, side 5 (but not with side3, side1)
....






Friday, February 3, 2012

The ArcGIS Server Manager service on Local Computer started and then stopped



Today, I faced this error in the ArcGIS Server Java Platform, "The ArcGIS Server Manager service on Local Computer started and then stopped..." 


Actually the server was running fine.  I decided to change the service account of ArcGIS Manager, Container, SOC monitor.   So I did post install to change with service account used for the ArcGISSOM and ArcGISSOC.  After I did post install, i added the new account in the agsuser&agsadmin.  The ArcGIS Server manager service is down, but the ArcGIS Object Container server, SOC monitor is up and running..   When I manually tried to start, it shown the error.  


I have gone through the ESRI site link, http://support.esri.com/en/knowledgebase/techarticles/detail/33737
I verified all the solutions given in this ESRI link, (except repair option) and I didn't find any change required.  


Then I changed the logon account as "Local Computer", in the properties of the ArcGIS Manager service window.  It started to run without any problem. So, i decided it is not a problem in install or post install, it is just permission problem. 


I gave the complete permission/access to the ArcGIS folder in program files and the c:\arcgisserver folder to the new service account that I used in the post install.   


After this change, the ArcGIS server manager started to run without any problem.


I think, giving permissions to Java folder in .. programfile/arcgis will also work.  pls. give a try.. 

Andrew Ng machine learning course

Hi, I was failing in the week 2 quiz - Machine learning course in Coursera.org, especially in one of the question which has multiple opti...