[Arches] Adding or Customising Basemap

2015-08-26 Thread NHB Heritage
Hello! I am from Singapore and currently trying out Arches on a Win64 
machine.

I would like to ask how to go about adding a basemap from my local map 
system here - http://www.onemap.sg/api/help/

I understand it requires configuring the javascript file base-layers.js.

Can someone enlightenment me if the configuration/code below is correct?

baseLayers.push({
 id: 'onemap',
 name: 'OneMap Basemap',
 icon: arches.urls.media + 'onemap.gif',
 layer: new ol.layer.Tile({
 visible: false,
 source: new ol.source.OneMap({
 url: 
'http://www.onemap.sg/API/services.svc/getMap?token=qo/s2TnSUmfLz+32CvLC4RMVkzEFYjxqyti1KhByvEacEdMWBpCuSSQ+IFRT84QjGPBCuz/cBom8PfSm3GjEsGc8PkdEEOErbmap=smsize=level=center=lyrIds='
 })
 })
}); 
 

Best,
Chun

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Arches Project group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Arches] Re: Installing Arches-HIP: Creating Database Error: ImportError: No module named resource

2015-08-26 Thread Alexei Peters
Hi Mai,
It appears that your database called arches_my_hip_app wasn't installed
correctly.  If you have pgadmin3 or access to a terminal can you confirm
that you have a schema called concepts and within that a table called
concepts.
Your database user django needs to have the privilege to create tables,
functions, etc..  Can you confirm that as well.  As a test you might
temporarily load the system using the postgres user.
Thanks,
Alexei


Director of Web Development - Farallon Geographics, Inc. - 971.227.3173

On Wed, Aug 26, 2015 at 12:43 AM, 'Mai Abdelaziz El Kady' via Arches
Project archesproject@googlegroups.com wrote:

 Hi Cyrus,

 My name is Mai and I am working with Asmaa in installing Arches.
 Thank you for your quick reply.
 We tried your suggestion but unfortunately the error remained the same, so
 do you have any more ideas about what could be the cause of it?

 Thanks a lot for your help and support

 --
 Sincerely,
 Mai Abdelaziz


 On Mon, Aug 24, 2015 at 5:01 PM, Cyrus Hiatt cyrusnhi...@gmail.com
 wrote:

 Hi Asmaa -

 Glad to hear you got a bit further.

 Sorry I didn't catch this last time, but I see that the paths (e.g.
 'os.path') in: RESOURCE_GRAPH_LOCATIONS, CONCEPT_SCHEME_LOCATIONS, and
 BUSINESS_DATA_FILES have been uncommented. You should try commenting those
 lines back out again until you are ready to modify or add to the files in
 those directories. The settings for those variables should look like this:


 # RESOURCE_GRAPH_LOCATIONS = (
 # # Put strings here, like /home/data/resource_graphs or
 C:/data/resource_graphs.
 # # Always use forward slashes, even on Windows.
 # # Don't forget to use absolute paths, not relative paths.
 # os.path.join(PACKAGE_ROOT, 'source_data', 'resource_graphs'),
 # )

 CONCEPT_SCHEME_LOCATIONS = (
 # Put strings here, like /home/data/authority_files or
 C:/data/authority_files.
 # Always use forward slashes, even on Windows.
 # Don't forget to use absolute paths, not relative paths.

 #'absolute/path/to/authority_files',
 # os.path.normpath(os.path.join(PACKAGE_ROOT, 'source_data',
 'concepts', 'authority_files')),
 )

 BUSISNESS_DATA_FILES = (
 # Put strings here, like /home/html/django_templates or
 C:/www/django/templates.
 # Always use forward slashes, even on Windows.
 # Don't forget to use absolute paths, not relative paths.
 # os.path.normpath(os.path.join(PACKAGE_ROOT, 'source_data',
 'business_data', 'sample.arches')),
 )



 Cheers,

 Cyrus

 On Mon, Aug 24, 2015 at 3:18 AM, Asmaa Ayman aay...@aucegypt.edu wrote:

 Hi Cyrus,

 Thanks a lot for the help! We did what you said and it passed that error
 but now we are facing this one:

 django.db.utils.ProgrammingError: relation concepts does not exist
 LINE 1: ...concepts.nodetype, concepts.legacyoid FROM
 concepts...

 You can find below a more informative log, and I am also attaching the
 entire log.


 LOADING GRAPHS
 (/usr/share/sandboxes/egyarch/my_hip_app/my_hip_app/source_data/resource_graphs)
 ---

 INDEXING ENTITY NODES
 -
 Traceback (most recent call last):
   File manage.py, line 28, in module
 execute_from_command_line(sys.argv)
   File
 /usr/lib/python2.7/site-packages/django/core/management/__init__.py, line
 399, in execute_from_command_line
 utility.execute()
   File
 /usr/lib/python2.7/site-packages/django/core/management/__init__.py, line
 392, in execute
 self.fetch_command(subcommand).run_from_argv(self.argv)
   File
 /usr/lib/python2.7/site-packages/django/core/management/base.py, line
 242, in run_from_argv
 self.execute(*args, **options.__dict__)
   File
 /usr/lib/python2.7/site-packages/django/core/management/base.py, line
 285, in execute
 output = self.handle(*args, **options)
   File
 /usr/lib/python2.7/site-packages/arches/management/commands/packages.py,
 line 67, in handle
 self.install(package_name)
   File
 /usr/lib/python2.7/site-packages/arches/management/commands/packages.py,
 line 114, in install
 install()
   File /usr/share/sandboxes/egyarch/my_hip_app/my_hip_app/setup.py,
 line 6, in install
 setup.install()
   File /usr/lib/python2.7/site-packages/arches_hip/setup.py, line 24,
 in install
 load_resource_graphs()
   File /usr/lib/python2.7/site-packages/arches_hip/setup.py, line 47,
 in load_resource_graphs
 resource_graphs.load_graphs(break_on_error=True)
   File
 /usr/lib/python2.7/site-packages/arches/management/commands/package_utils/resource_graphs.py,
 line 69, in load_graphs
 concepts.index_entity_concept_lables()
   File
 /usr/lib/python2.7/site-packages/arches/management/commands/package_utils/concepts.py,
 line 17, in index_entity_concept_lables
 domains_concept = Concept('----0003')
   File /usr/lib/python2.7/site-packages/arches/app/models/concept.py,
 line 60, in __init__
 self.get(args[0])
   File /usr/lib/python2.7/site-packages/arches/app/models/concept.py,
 line 97, in 

Re: [Arches] Re: Installing Arches-HIP: Creating Database Error: ImportError: No module named resource

2015-08-26 Thread 'Mai Abdelaziz El Kady' via Arches Project
Hi Cyrus,

My name is Mai and I am working with Asmaa in installing Arches.
Thank you for your quick reply.
We tried your suggestion but unfortunately the error remained the same, so
do you have any more ideas about what could be the cause of it?

Thanks a lot for your help and support

--
Sincerely,
Mai Abdelaziz


On Mon, Aug 24, 2015 at 5:01 PM, Cyrus Hiatt cyrusnhi...@gmail.com wrote:

 Hi Asmaa -

 Glad to hear you got a bit further.

 Sorry I didn't catch this last time, but I see that the paths (e.g.
 'os.path') in: RESOURCE_GRAPH_LOCATIONS, CONCEPT_SCHEME_LOCATIONS, and
 BUSINESS_DATA_FILES have been uncommented. You should try commenting those
 lines back out again until you are ready to modify or add to the files in
 those directories. The settings for those variables should look like this:


 # RESOURCE_GRAPH_LOCATIONS = (
 # # Put strings here, like /home/data/resource_graphs or
 C:/data/resource_graphs.
 # # Always use forward slashes, even on Windows.
 # # Don't forget to use absolute paths, not relative paths.
 # os.path.join(PACKAGE_ROOT, 'source_data', 'resource_graphs'),
 # )

 CONCEPT_SCHEME_LOCATIONS = (
 # Put strings here, like /home/data/authority_files or
 C:/data/authority_files.
 # Always use forward slashes, even on Windows.
 # Don't forget to use absolute paths, not relative paths.

 #'absolute/path/to/authority_files',
 # os.path.normpath(os.path.join(PACKAGE_ROOT, 'source_data',
 'concepts', 'authority_files')),
 )

 BUSISNESS_DATA_FILES = (
 # Put strings here, like /home/html/django_templates or
 C:/www/django/templates.
 # Always use forward slashes, even on Windows.
 # Don't forget to use absolute paths, not relative paths.
 # os.path.normpath(os.path.join(PACKAGE_ROOT, 'source_data',
 'business_data', 'sample.arches')),
 )



 Cheers,

 Cyrus

 On Mon, Aug 24, 2015 at 3:18 AM, Asmaa Ayman aay...@aucegypt.edu wrote:

 Hi Cyrus,

 Thanks a lot for the help! We did what you said and it passed that error
 but now we are facing this one:

 django.db.utils.ProgrammingError: relation concepts does not exist
 LINE 1: ...concepts.nodetype, concepts.legacyoid FROM concepts...

 You can find below a more informative log, and I am also attaching the
 entire log.


 LOADING GRAPHS
 (/usr/share/sandboxes/egyarch/my_hip_app/my_hip_app/source_data/resource_graphs)
 ---

 INDEXING ENTITY NODES
 -
 Traceback (most recent call last):
   File manage.py, line 28, in module
 execute_from_command_line(sys.argv)
   File
 /usr/lib/python2.7/site-packages/django/core/management/__init__.py, line
 399, in execute_from_command_line
 utility.execute()
   File
 /usr/lib/python2.7/site-packages/django/core/management/__init__.py, line
 392, in execute
 self.fetch_command(subcommand).run_from_argv(self.argv)
   File /usr/lib/python2.7/site-packages/django/core/management/base.py,
 line 242, in run_from_argv
 self.execute(*args, **options.__dict__)
   File /usr/lib/python2.7/site-packages/django/core/management/base.py,
 line 285, in execute
 output = self.handle(*args, **options)
   File
 /usr/lib/python2.7/site-packages/arches/management/commands/packages.py,
 line 67, in handle
 self.install(package_name)
   File
 /usr/lib/python2.7/site-packages/arches/management/commands/packages.py,
 line 114, in install
 install()
   File /usr/share/sandboxes/egyarch/my_hip_app/my_hip_app/setup.py,
 line 6, in install
 setup.install()
   File /usr/lib/python2.7/site-packages/arches_hip/setup.py, line 24,
 in install
 load_resource_graphs()
   File /usr/lib/python2.7/site-packages/arches_hip/setup.py, line 47,
 in load_resource_graphs
 resource_graphs.load_graphs(break_on_error=True)
   File
 /usr/lib/python2.7/site-packages/arches/management/commands/package_utils/resource_graphs.py,
 line 69, in load_graphs
 concepts.index_entity_concept_lables()
   File
 /usr/lib/python2.7/site-packages/arches/management/commands/package_utils/concepts.py,
 line 17, in index_entity_concept_lables
 domains_concept = Concept('----0003')
   File /usr/lib/python2.7/site-packages/arches/app/models/concept.py,
 line 60, in __init__
 self.get(args[0])
   File /usr/lib/python2.7/site-packages/arches/app/models/concept.py,
 line 97, in get
 self.load(models.Concepts.objects.get(pk=id))
   File /usr/lib/python2.7/site-packages/django/db/models/manager.py,
 line 151, in get
 return self.get_queryset().get(*args, **kwargs)
   File /usr/lib/python2.7/site-packages/django/db/models/query.py, line
 304, in get
 num = len(clone)
   File /usr/lib/python2.7/site-packages/django/db/models/query.py, line
 77, in __len__
 self._fetch_all()
   File /usr/lib/python2.7/site-packages/django/db/models/query.py, line
 857, in _fetch_all
 self._result_cache = list(self.iterator())
   File /usr/lib/python2.7/site-packages/django/db/models/query.py, line
 220, in iterator