[Community] Errors when adding local shapefile to Prima

Bovorn Siriampairat bovorn at start.or.th
Thu Jan 11 16:18:56 EET 2007


Dear Mark,

                I would like you to set spatial reference system when you login to plone interface, You'll see ows_properties tab in the layer of data that you added. Could you try for that cause I see in error log file, it mentioned "ValueError: Spatial reference system is undefined"?

Bovorn Siriampairat
-----Original message-----
From: community-request at lists.gispython.org
Date: Thu, 11 Jan 2007 17:42:15 +0700
To: community at lists.gispython.org
Subject: Community Digest, Vol 15, Issue 11

> Send Community mailing list submissions to
> 	community at lists.gispython.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.gispython.org/mailman/listinfo/community
> or, via email, send a message with subject or body 'help' to
> 	community-request at lists.gispython.org
> 
> You can reach the person managing the list at
> 	community-owner at lists.gispython.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Community digest..."
> 
> 
> Today's Topics:
> 
>    1. Re: Errors when adding local shapefile to PrimaGIS
>       (mark at deblois.nl)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Thu, 11 Jan 2007 11:42:07 +0100 (CET)
> From: "mark at deblois.nl" <mark at deblois.nl>
> Subject: Re: [Community] Errors when adding local shapefile to
> 	PrimaGIS
> To: "gispython.org community projects" <community at lists.gispython.org>
> Message-ID: <35391.62.6.153.248.1168512127.squirrel at webmail.solcon.nl>
> Content-Type: text/plain;charset=iso-8859-1
> 
> Hi there,
> 
> It seems like the logfile I tried to attach yesterday was too big. Hence a
> small include down below. I am trying to add a local shapefile (copy of
> world_borders) to the demo folder without any luck. The demo works fine
> otherwise (as far as I can tell).
> >From my limited understanding it seems like there is still reference to
> the wfs_user, I am not sure whether this is a problem. It is complaining
> about elementtree and some other stuff. And it seems like it is having
> some difficulty with projection, maybe this is why I am not getting a
> preview of the layers when constructing them?
> I have no clue as to where the problem may be so thanks ahead for pointing
> me in the right direction.
> 
> cheers,
> Mark
> 
> 2007-01-11T10:22:51 ERROR Zope.ZCatalog uncatalogObject unsuccessfully
> attempted to uncatalog an object with a uid of
> /GISPortal/demo/primagis/wfs_mapserver_users/ms_user_name.
> ------
> 2007-01-11T10:22:51 ERROR Zope.ZCatalog uncatalogObject unsuccessfully
> attempted to uncatalog an object with a uid of
> demo/primagis/wfs_mapserver_users/ms_user.
> ------
> 2007-01-11T10:22:51 ERROR Zope.ZCatalog uncatalogObject unsuccessfully
> attempted to uncatalog an object with a uid of
> /GISPortal/demo/primagis/wfs_mapserver_users/ms_user.
> ------
> 2007-01-11T10:24:25 ERROR Zope.SiteErrorLog
> http://localhost:8080/GISPortal/demo/primagis/my-first-wms-layer/view
> Traceback (innermost last):
>   Module ZPublisher.Publish, line 115, in publish
>   Module ZPublisher.mapply, line 88, in mapply
>   Module ZPublisher.Publish, line 41, in call_object
>   Module Products.PrimaGIS.layer, line 157, in view
>   Module Products.ZCO.overview, line 90, in overview
>   Module Products.ZCO.MapRenderer, line 210, in render
>   Module cartography.engine.mapserver.rendering, line 270, in render
>   Module cartography.engine.mapserver.rendering, line 861, in _init_map
>   Module cartography.engine.mapserver.rendering, line 552, in _set_projection
>   Module cartography.proj.srs, line 96, in tostring
> ValueError: Spatial reference system is undefined
> ------
> 2007-01-11T10:24:42 INFO PrimaGIS
> /home/mdeblois/sandbox/zope/Zope-2.9.6-final/instances/buildout/Products/PrimaGIS/PrimaGISMap.py::action(),
> line 608
> SET LAYERS
> ------
> 2007-01-11T10:24:45 INFO PrimaGIS
> /home/mdeblois/sandbox/zope/Zope-2.9.6-final/instances/buildout/Products/PrimaGIS/PrimaGISMap.py::action(),
> line 608
> SET LAYERS
> ------
> 2007-01-11T10:26:40 INFO PrimaGIS
> /home/mdeblois/sandbox/zope/Zope-2.9.6-final/instances/buildout/Products/PrimaGIS/PrimaGISMap.py::action(),
> line 608
> SET LAYERS
> ------
> 2007-01-11T10:26:43 INFO PrimaGIS
> /home/mdeblois/sandbox/zope/Zope-2.9.6-final/instances/buildout/Products/PrimaGIS/PrimaGISMap.py::action(),
> line 608
> SET LAYERS
> ------
> 2007-01-11T10:27:25 INFO PrimaGIS
> /home/mdeblois/sandbox/zope/Zope-2.9.6-final/instances/buildout/Products/PrimaGIS/PrimaGISMap.py::action(),
> line 608
> SET LAYERS
> ------
> 2007-01-11T10:31:10 INFO ApplicationManager Shutdown requested by "admin"
> ------
> 2007-01-11T10:31:10 INFO ZServer closing HTTP to new connections
> ------
> 2007-01-11T10:31:19 INFO ZServer HTTP server started at Thu Jan 11
> 10:31:19 2007
> 	Hostname: 0.0.0.0
> 	Port: 8080
> ------
> 2007-01-11T10:31:20 WARNING Init Class
> Products.ATContentTypes.content.base.ATCTFolderMixin has a security
> declaration for nonexistent method 'manage_copyObjects'
> ------
> 2007-01-11T10:31:21 WARNING Zope OFS.Application: Duplicate Product
> name:After loading Product 'Five' from
> '/home/mdeblois/sandbox/zope/Zope-2.9.6-final/instances/buildout/Products',
> I skipped the one in
> '/home/mdeblois/sandbox/zope/Zope-2.9.6-final/lib/python/Products'.
> 
> ------
> 2007-01-11T10:31:21 INFO PlacelessTranslationService Applying patch
> *** Patching ZPublisher.Publish with the get_request patch! ***
> ------
> 2007-01-11T10:31:23 INFO Plone Dependency
> Elementtree not found. Plone needs Elementtree for XML transformation.
> Please download it from http://effbot.org/downloads/#elementtree
> ------
> 2007-01-11T10:31:23 WARNING Plone Deprecation Warning
> CustomizationPolicies are deprecated and will be removed in Plone 3.0.
> Please use GenericSetup extension profiles instead.
> ------
> 2007-01-11T10:31:23 WARNING Plone Deprecation Warning
> registerSetupWidget is deprecated and will be removed in Plone 3.0.
> ------
> 2007-01-11T10:31:23 WARNING Plone Deprecation Warning
> registerSetupWidget is deprecated and will be removed in Plone 3.0.
> ------
> 2007-01-11T10:31:23 WARNING Plone Deprecation Warning
> CustomizationPolicies are deprecated and will be removed in Plone 3.0.
> Please use GenericSetup extension profiles instead.
> ------
> 2007-01-11T10:31:28 INFO Archetypes
> Products/Archetypes/Field.py[268]:_validationLayer
> WARNING: Disabling validation for simplePolygon: isClosedLinestring
> 
> ------
> 2007-01-11T10:31:28 INFO Zope Ready to handle requests
> ------
> 2007-01-11T10:32:46 INFO PrimaGIS
> /home/mdeblois/sandbox/zope/Zope-2.9.6-final/instances/buildout/Products/PrimaGIS/PrimaGISMap.py::action(),
> line 608
> SET LAYERS
> ------
> 2007-01-11T10:32:50 INFO PrimaGIS
> /home/mdeblois/sandbox/zope/Zope-2.9.6-final/instances/buildout/Products/PrimaGIS/PrimaGISMap.py::action(),
> line 608
> SET LAYERS
> ------
> 2007-01-11T10:32:52 INFO PrimaGIS
> /home/mdeblois/sandbox/zope/Zope-2.9.6-final/instances/buildout/Products/PrimaGIS/PrimaGISMap.py::action(),
> line 608
> SET LAYERS
> 
> 
> > Hi,
> >
> > I removed the WFS users datastore. Since then I am able to add 'PrimaGIS
> > Layer' from Zope!
> > However, I can't get them to appear yet. I have emptied out the whole demo
> > folder and started from scratch in this empty folder, but the layer
> > remains empty (world_borders). The 'preview' in Zope already indicates
> > something is wrong, as it flashes shortly but doesn't preview my layer.
> > Attached I have the log file which hopefully sheds more light on the
> > issue. Hopefully I am almost there as it is proving to be very time
> > consuming to get a working demo going :-(
> > Your help/patience is appreciated.
> > cheers,
> > Mark
> >
> >
> >> mark at deblois.nl wrote:
> >>> Hi everyone,
> >>>
> >>> I have copied the PrimaGIS Demo Container and emptied it out in order
> >>> to
> >>> try to add my own data (I am having difficulties with adding data to
> >>> the
> >>> primagis.buildout). Even after having removed all layers I am not able
> >>> to
> >>> re-add world_borders. When I try to preview this layer (from ZMI) it
> >>> seems
> >>> to load it for a second but then disappear. Has anyone got any idea
> >>> what
> >>> might be wrong? Below is the error code I get.
> >>
> >> Hi Mark
> >>
> >> I just created a clean buildout for myself to see what's going on. The
> >> reason why you get the URLError is that the demo contains a WFS
> >> datastore which is not currently available. Unfortunately PrimaGIS (or
> >> PCL to be more specific) is not atm capable of dealing with these errors
> >> very intelligently. This is something we'll need to work on in the
> >> future.
> >>
> >> For now, you should just go to ``portal_gis`` and simply remove the WFS
> >> datastore altogether. After this the edit form for layers should work
> >> fine and you should be able to add layers just fine.
> >>
> >> cheers,
> >> Kai
> >>
> >>
> >> PS. We should really get a reliable WFS service up and running that we
> >> could test against and use in the demo map also. Sean, is your
> >> cheapo-WFS still up for the task? If you need a place to host it I can
> >> help with that.
> >>
> >>
> >>
> >>
> >>
> >>>
> >>> Thanks,
> >>> Mark
> >>>
> >>> 2007-01-10T12:06:30 ERROR Zope.SiteErrorLog
> >>> http://localhost:8080/Portal/MarkMap/primagis/world_borders/base_edit
> >>> Traceback (innermost last):
> >>>   Module ZPublisher.Publish, line 115, in publish
> >>>   Module ZPublisher.mapply, line 88, in mapply
> >>>   Module ZPublisher.Publish, line 41, in call_object
> >>>   Module Products.CMFFormController.FSControllerPageTemplate, line 96,
> >>> in
> >>> __call__
> >>>   Module Products.CMFFormController.BaseControllerPageTemplate, line
> >>> 42,
> >>> in _call
> >>>   Module Shared.DC.Scripts.Bindings, line 311, in __call__
> >>>   Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
> >>>   Module Products.CMFCore.FSPageTemplate, line 195, in _exec
> >>>   Module Products.CMFCore.FSPageTemplate, line 134, in pt_render
> >>>   Module Products.PageTemplates.PageTemplate, line 104, in pt_render
> >>>    - <FSControllerPageTemplate at /Portal/base_edit used for
> >>> /Portal/MarkMap/primagis/world_borders>
> >>>   Module TAL.TALInterpreter, line 238, in __call__
> >>>   Module TAL.TALInterpreter, line 281, in interpret
> >>>   Module TAL.TALInterpreter, line 728, in do_defineMacro
> >>>   Module TAL.TALInterpreter, line 281, in interpret
> >>>   Module TAL.TALInterpreter, line 457, in do_optTag_tal
> >>>   Module TAL.TALInterpreter, line 442, in do_optTag
> >>>   Module TAL.TALInterpreter, line 437, in no_tag
> >>>   Module TAL.TALInterpreter, line 281, in interpret
> >>>   Module TAL.TALInterpreter, line 749, in do_useMacro
> >>>   Module TAL.TALInterpreter, line 281, in interpret
> >>>   Module TAL.TALInterpreter, line 457, in do_optTag_tal
> >>>   Module TAL.TALInterpreter, line 442, in do_optTag
> >>>   Module TAL.TALInterpreter, line 437, in no_tag
> >>>   Module TAL.TALInterpreter, line 281, in interpret
> >>>   Module TAL.TALInterpreter, line 780, in do_defineSlot
> >>>   Module TAL.TALInterpreter, line 281, in interpret
> >>>   Module TAL.TALInterpreter, line 457, in do_optTag_tal
> >>>   Module TAL.TALInterpreter, line 442, in do_optTag
> >>>   Module TAL.TALInterpreter, line 437, in no_tag
> >>>   Module TAL.TALInterpreter, line 281, in interpret
> >>>   Module TAL.TALInterpreter, line 728, in do_defineMacro
> >>>   Module TAL.TALInterpreter, line 281, in interpret
> >>>   Module TAL.TALInterpreter, line 772, in do_defineSlot
> >>>   Module TAL.TALInterpreter, line 281, in interpret
> >>>   Module TAL.TALInterpreter, line 457, in do_optTag_tal
> >>>   Module TAL.TALInterpreter, line 442, in do_optTag
> >>>   Module TAL.TALInterpreter, line 437, in no_tag
> >>>   Module TAL.TALInterpreter, line 281, in interpret
> >>>   Module TAL.TALInterpreter, line 728, in do_defineMacro
> >>>   Module TAL.TALInterpreter, line 281, in interpret
> >>>   Module TAL.TALInterpreter, line 457, in do_optTag_tal
> >>>   Module TAL.TALInterpreter, line 442, in do_optTag
> >>>   Module TAL.TALInterpreter, line 437, in no_tag
> >>>   Module TAL.TALInterpreter, line 281, in interpret
> >>>   Module TAL.TALInterpreter, line 749, in do_useMacro
> >>>   Module TAL.TALInterpreter, line 281, in interpret
> >>>   Module TAL.TALInterpreter, line 780, in do_defineSlot
> >>>   Module TAL.TALInterpreter, line 281, in interpret
> >>>   Module TAL.TALInterpreter, line 457, in do_optTag_tal
> >>>   Module TAL.TALInterpreter, line 442, in do_optTag
> >>>   Module TAL.TALInterpreter, line 437, in no_tag
> >>>   Module TAL.TALInterpreter, line 281, in interpret
> >>>   Module TAL.TALInterpreter, line 691, in do_loop_tal
> >>>   Module TAL.TALInterpreter, line 281, in interpret
> >>>   Module TAL.TALInterpreter, line 457, in do_optTag_tal
> >>>   Module TAL.TALInterpreter, line 442, in do_optTag
> >>>   Module TAL.TALInterpreter, line 437, in no_tag
> >>>   Module TAL.TALInterpreter, line 281, in interpret
> >>>   Module TAL.TALInterpreter, line 749, in do_useMacro
> >>>   Module TAL.TALInterpreter, line 281, in interpret
> >>>   Module TAL.TALInterpreter, line 457, in do_optTag_tal
> >>>   Module TAL.TALInterpreter, line 442, in do_optTag
> >>>   Module TAL.TALInterpreter, line 437, in no_tag
> >>>   Module TAL.TALInterpreter, line 281, in interpret
> >>>   Module TAL.TALInterpreter, line 647, in do_insertStructure_tal
> >>>   Module Products.PageTemplates.TALES, line 221, in evaluate
> >>>    - URL: file:PrimaGIS/skins/primagis/datasourceselection_widget.pt
> >>>    - Line 14, Column 6
> >>>    - Expression: standard:'here/datasourceselection_widget_init'
> >>>    - Names:
> >>>       {'container': <PloneSite at /Portal>,
> >>>        'context': <PrimaGISLayer at
> >>> /Portal/MarkMap/primagis/world_borders>,
> >>>        'default': <Products.PageTemplates.TALES.Default instance at
> >>> 0xb714e2cc>,
> >>>        'here': <PrimaGISLayer at
> >>> /Portal/MarkMap/primagis/world_borders>,
> >>>        'loop': <Products.PageTemplates.TALES.SafeMapping object at
> >>> 0xa2ab98c>,
> >>>        'modules':
> >>> <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance
> >>> at 0xb716ef0c>,
> >>>        'nothing': None,
> >>>        'options': {'args': (),
> >>>                    'state':
> >>> <Products.CMFFormController.ControllerState.ControllerState
> >>> object at 0xb1d1c02c>},
> >>>        'repeat': <Products.PageTemplates.TALES.SafeMapping object at
> >>> 0xa2ab98c>,
> >>>        'request': <HTTPRequest,
> >>> URL=http://localhost:8080/Portal/MarkMap/primagis/world_borders/base_edit>,
> >>>        'root': <Application at >,
> >>>        'template': <FSControllerPageTemplate at /Portal/base_edit used
> >>> for
> >>> /Portal/MarkMap/primagis/world_borders>,
> >>>        'traverse_subpath': [],
> >>>        'user': <PropertiedUser 'admin'>}
> >>>   Module Products.PageTemplates.Expressions, line 185, in __call__
> >>>   Module Products.PageTemplates.Expressions, line 180, in _eval
> >>>   Module Products.PageTemplates.Expressions, line 83, in render
> >>>   Module Products.PageTemplates.ZRPythonExpr, line 74, in call_with_ns
> >>>   Module Products.CMFCore.FSDTMLMethod, line 133, in __call__
> >>>    - __traceback_info__:
> >>> PrimaGIS/skins/primagis/datasourceselection_widget_init.dtml
> >>>   Module DocumentTemplate.DT_String, line 476, in __call__
> >>>   Module DocumentTemplate.DT_Let, line 75, in render
> >>>   Module DocumentTemplate.DT_Util, line 196, in eval
> >>>    - __traceback_info__: field
> >>>   Module <string>, line 1, in <expression>
> >>>   Module Products.PrimaGIS.widget, line 89, in datasourceLookupTable
> >>>   Module Products.ZCO.DataStore, line 357, in typenames
> >>>   Module Products.ZCO.DataStore, line 348, in _readcapabilities
> >>>   Module owslib.wfs, line 389, in read
> >>>   Module urllib2, line 130, in urlopen
> >>>   Module urllib2, line 358, in open
> >>>   Module urllib2, line 376, in _open
> >>>   Module urllib2, line 337, in _call_chain
> >>>   Module urllib2, line 1021, in http_open
> >>>   Module urllib2, line 996, in do_open
> >>> URLError: <urlopen error (111, 'Connection refused')>
> >>> ------
> >>> 2007-01-10T12:06:32 ERROR Zope.SiteErrorLog
> >>> http://localhost:8080/Portal/MarkMap/primagis/world_borders/view
> >>> Traceback (innermost last):
> >>>   Module ZPublisher.Publish, line 115, in publish
> >>>   Module ZPublisher.mapply, line 88, in mapply
> >>>   Module ZPublisher.Publish, line 41, in call_object
> >>>   Module Products.PrimaGIS.layer, line 157, in view
> >>>   Module Products.ZCO.overview, line 75, in overview
> >>> AttributeError: 'NoneType' object has no attribute 'datastore'
> >>>
> >>>
> >>>
> >>>
> >>> ------------------------- Oorspronkelijk bericht
> >>> -------------------------
> >>> Onderwerp: Re: [Community] [Fwd: Re: Font problem PrimaGIS on Ubuntu?!
> >>> Thanks      for your help]
> >>> Van:       "mark at deblois.nl" <mark at deblois.nl>
> >>> Datum:     Di, 9 januari, 2007 6:17 pm
> >>> Aan:       "gispython.org community projects"
> >>> <community at lists.gispython.org>
> >>> --------------------------------------------------------------------------
> >>>
> >>> Hi,
> >>>
> >>> I had already copied and renamed both the world_borders shape and ovf
> >>> files (in order to test adding a shapefile as simply as possible,
> >>> ruling
> >>> out data differences, etc.). However, this (copied) shapefile does not
> >>> appear when I browse/search the Data Sources with it's name (as part of
> >>> the adding of PrimaGIS Data Layer from Plone). When I resort to
> >>> selecting
> >>> the World_borders shape instead (shows up when I search for 'world' it
> >>> remains blank (no error message though) in my map. In other words, I
> >>> have
> >>> not been able to display an added shapefile at all to my PrimaGIS
> >>> demo!!!
> >>> Hopefully the proposed changes in the tutorial will deal with this
> >>> aspect.
> >>> Am I missing the obvious? Any help would be greatly appreciated!!
> >>> I am a GISser and not a plone/zope/python expert which does seem to
> >>> make
> >>> things rather challenging :-)
> >>>
> >>> cheers,
> >>> Mark
> >>>
> >>>> mark at deblois.nl wrote:
> >>>>> Hi Kai,
> >>>>> When I try to add my own shape (I have made a copy and renamed it to
> >>>>> rule
> >>>>> out any other problems) I can add it through ZMI under 'portal_gis'.
> >>>>> Next
> >>>>> I am trying to add a layer through Plone (PrimaGIS DataLayer i.s.o.
> >>>>> PrimaGIS Layer). However, I cannot find my newly added layer in the
> >>>>> popup
> >>>>> screen after I click on 'Data source'. I can find 'World_borders' if
> >>>>> I
> >>>>> search for 'world' but not my layer.
> >>>> For (most) shapefiles you need to provide an XML file that describes
> >>>> the
> >>>> spatial reference system used with the shapefile. Do you have such a
> >>>> file for your own shapefile?
> >>>>
> >>>> There is an example file -- called world_borders.ovf -- used for the
> >>>> world borders data set which is located under
> >>>>
> >>>>    $PREFIX/spatialdata/world/world_borders.ovf
> >>>>
> >>>> you can use this as an example. The contents are pretty simple, you
> >>>> basicly just set the reference system and select the layer from the
> >>>> shapefile.
> >>>>
> >>>> There is also some information about the use of OVF files at
> >>>>
> >>>> http://trac.gispython.org/projects/PCL/browser/PCL/trunk/doc/filesystem_backend.txt
> >>>>
> >>>> When you have this file set up you can point to it when configuring
> >>>> the
> >>>> datastore in portal_gis. There are also tabs in the data store object
> >>>> in
> >>>> ZMI that allow you to inspect the different layers. You should try
> >>>> these
> >>>> to make sure that the data store is configured properly. Take a look
> >>>> at
> >>>> the tabs for the world borders store to see how they work.
> >>>>
> >>>> Once the data store is set up properly it should show up in Plone in
> >>>> the
> >>>> layer's edit form.
> >>>>
> >>>> I did see it earlier but it no longer
> >>>>> seems to be there. Do I have to refresh/restart anything in between?
> >>>>> I
> >>>>> have restarted Zope many times to no avail.
> >>>> When things are configured properly there is no need to restart zope.
> >>>>
> >>>>> Could you be more specific as to the location of the log file? Do you
> >>>>> mean
> >>>>> the error_log through ZMI or navigating through the files? I can't
> >>>>> seemt
> >>>>> to find the log you are referring to.
> >>>> I meant the log file that is located in your filesystem at
> >>>>
> >>>>    $PREFIX/zope/Zope-2.9.6/instances/buildout/log/event.log
> >>>>
> >>>> It should contain the relevant tracebacks. The ``error_log`` object in
> >>>> ZMI should also contain them.
> >>>>
> >>>>
> >>>> cheers,
> >>>> Kai
> >>>>
> >>>>> cheers once again,
> >>>>> Mark
> >>>>>
> >>>>>
> >>>>> ------------------------- Oorspronkelijk bericht
> >>>>> -------------------------
> >>>>> Onderwerp: Re: [Community] Font problem PrimaGIS on Ubuntu?! Thanks
> >>>>> for
> >>>>> your help
> >>>>> Van:       "Kai Lautaportti" <kai.lautaportti at hexagonit.fi>
> >>>>> Datum:     Di, 9 januari, 2007 3:25 pm
> >>>>> Aan:       "gispython.org community projects"
> >>>>> <community at lists.gispython.org>
> >>>>> --------------------------------------------------------------------------
> >>>>>
> >>>>> mark at deblois.nl wrote:
> >>>>>> Hi there,
> >>>>>>
> >>>>>> When I try to add a layer (PrimaGIS Layer through Plone frontend) to
> >>>>>> my
> >>>>>> demo map I immediately get the error listed below. Am I doing
> >>>>>> something
> >>>>>> wrong? If I read the documentation well it seems like I should be
> >>>>>> able
> >>>>>> to
> >>>>>> add a local shapefile from the frontend. Would appreciate your
> >>>>>> advice
> >>>>> Datastores are still configured through the ZMI under the
> >>>>> ``portal_gis``
> >>>>>    tool. After you've added your shapefile in the portal_gis tool, it
> >>>>> should be available in the datastore selection in the layer object's
> >>>>> edit form in Plone.
> >>>>>
> >>>>> cheers,
> >>>>> Kai
> >>>>>
> >>>>> PS. For future reference, please include any tracebacks found in the
> >>>>> Zope's event.log file (you'll find in in the Zope instance directory
> >>>>> under log/event.log). The error message displayed on the browser
> >>>>> rarely
> >>>>> contains enough useful information.
> >>>>>
> >>>>>> cheers,
> >>>>>> Mark
> >>>>>>
> >>>>>> Site error
> >>>>>>
> >>>>>> This site encountered an error trying to fulfill your request. The
> >>>>>> errors
> >>>>>> were:
> >>>>>>
> >>>>>> Error Type
> >>>>>>     URLError
> >>>>>> Error Value
> >>>>>> Request made at
> >>>>>>     2007/01/09 13:13:48.245 G
> >>>>>>
> >>>>>>
> >>>>>>> mark at deblois.nl wrote:
> >>>>>>>> Running the script without sudo caused some trouble with
> >>>>>>>> simplejson
> >>>>>>>> (see
> >>>>>>>> code below) on my clean Ubuntu machine. Running that part as sudo
> >>>>>>>> allowed
> >>>>>>>> me to successfully install the demo! Including the world_borders.
> >>>>>>>> What a
> >>>>>>>> relief, thanks for all the help Kai. Now I will start adding
> >>>>>>>> layers
> >>>>>>>> and
> >>>>>>>> getting acquainted with PrimaGIS. Is 0.6 very different than 0.5
> >>>>>>>> by
> >>>>>>>> the
> >>>>>>>> way?
> >>>>>>> Glad you got it working!
> >>>>>>>
> >>>>>>> I think the "Permission denied" problem with simplejson was the
> >>>>>>> result
> >>>>>>> of first trying the script with sudo which resulted in the
> >>>>>>> directories
> >>>>>>> to be owned by root and then trying with a normal user who lacked
> >>>>>>> the
> >>>>>>> access rights. Running it all they way from the beginning
> >>>>>>> (deleteting
> >>>>>>> the build root and prefix first) would most likely work.
> >>>>>>>
> >>>>>>> PrimaGIS 0.6 is not conceptually that much different from 0.5. It
> >>>>>>> should
> >>>>>>> be easier to configure as almost everything (excepting the
> >>>>>>> portal_gis
> >>>>>>> tool) is now configured directly within Plone instead of ZMI.
> >>>>>>> Styling
> >>>>>>> particularly should be easier.
> >>>>>>>
> >>>>>>> Let us know how it goes with PrimaGIS and report back any bugs if
> >>>>>>> you
> >>>>>>> find any! :)
> >>>>>>>
> >>>>>>> cheers,
> >>>>>>> Kai
> >>>>>>>
> >>>>>>>> Thanks again for all the help.
> >>>>>>>>
> >>>>>>>> cheers,
> >>>>>>>> Mark
> >>>>>>>>
> >>>>>>>> Using
> >>>>>>>> /home/mdeblois/sandbox/lib/python2.4/site-packages/simplejson-1.4-py2.4.egg
> >>>>>>>> Processing dependencies for simplejson
> >>>>>>>> buildit: running "touch
> >>>>>>>> /home/mdeblois/PG_Build/.BUILDOUT_TARGET_SIMPLEJSON"
> >>>>>>>> touch: cannot touch
> >>>>>>>> `/home/mdeblois/PG_Build/.BUILDOUT_TARGET_SIMPLEJSON':
> >>>>>>>> Permission denied
> >>>>>>>> Traceback (most recent call last):
> >>>>>>>>   File "build.py", line 255, in ?
> >>>>>>>>     options.postgresql_port)
> >>>>>>>>   File "build.py", line 118, in build_base
> >>>>>>>>     Software(simplejson.install, context).install()
> >>>>>>>>   File "/usr/lib/python2.4/site-packages/buildit/context.py", line
> >>>>>>>> 182,
> >>>>>>>> in
> >>>>>>>> install
> >>>>>>>>     self.context.run(self.task)
> >>>>>>>>   File "/usr/lib/python2.4/site-packages/buildit/context.py", line
> >>>>>>>> 164,
> >>>>>>>> in
> >>>>>>>> run
> >>>>>>>>     task.attemptCompletion()
> >>>>>>>>   File "/usr/lib/python2.4/site-packages/buildit/task.py", line
> >>>>>>>> 257,
> >>>>>>>> in
> >>>>>>>> attemptCompletion
> >>>>>>>>     raise TaskError, (
> >>>>>>>> buildit.task.TaskError: Task "Install simplejson": command
> >>>>>>>> "<buildit.task.ShellCommand instance at 0xb7d1472c>" failed with
> >>>>>>>> status
> >>>>>>>> code "256"
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> mark at deblois.nl wrote:
> >>>>>>>>>> Hi Kai,
> >>>>>>>>>>
> >>>>>>>>>> Thanks for pointing this script out to me. Looks like this might
> >>>>>>>>>> be
> >>>>>>>>>> easier. However, the script stops when it comes to creating a
> >>>>>>>>>> postgres
> >>>>>>>>>> database. I have had to manually download postgres as the script
> >>>>>>>>>> stopped
> >>>>>>>>>> there earlier. It did continue running for a while until this
> >>>>>>>>>> point. I
> >>>>>>>>>> am
> >>>>>>>>>> not sure what is wrong this time. Do you have any idea? Below is
> >>>>>>>>>> the
> >>>>>>>>>> error
> >>>>>>>>>> message I get.
> >>>>>>>>> Try running the buildout without using sudo. The postgresql
> >>>>>>>>> script
> >>>>>>>>> that
> >>>>>>>>> we use to create the test database does not like being run as
> >>>>>>>>> root.
> >>>>>>>>>
> >>>>>>>>> There's nothing in the buildout that requires root priviledges as
> >>>>>>>>> long
> >>>>>>>>> as the user you are running it as has write access to the build
> >>>>>>>>> root
> >>>>>>>>> and
> >>>>>>>>> prefix.
> >>>>>>>>>
> >>>>>>>>> I'll add this bit of information to the wiki page also.
> >>>>>>>>>
> >>>>>>>>> HTH,
> >>>>>>>>> Kai
> >>>>>>>>>
> >>>>>>>>>> Thanks for your help!
> >>>>>>>>>>
> >>>>>>>>>> Mark
> >>>>>>>>>>
> >>>>>>>>>> mdeblois at Ubuntu:~/primagis.buildout$ sudo python build.py
> >>>>>>>>>> --build-root=/home/mdeblois/PG_Build
> >>>>>>>>>> --prefix=/home/mdeblois/sandbox
> >>>>>>>>>> context.check() starting with root task named "Install termcap"
> >>>>>>>>>> context.run() starting with root task named "Install termcap"
> >>>>>>>>>> done
> >>>>>>>>>> context.check() starting with root task named "Install readline"
> >>>>>>>>>> context.run() starting with root task named "Install readline"
> >>>>>>>>>> done
> >>>>>>>>>> context.check() starting with root task named "Install Python"
> >>>>>>>>>> context.run() starting with root task named "Install Python"
> >>>>>>>>>> done
> >>>>>>>>>> context.check() starting with root task named "Install libpng"
> >>>>>>>>>> context.run() starting with root task named "Install libpng"
> >>>>>>>>>> done
> >>>>>>>>>> context.check() starting with root task named "Install libgif"
> >>>>>>>>>> context.run() starting with root task named "Install libgif"
> >>>>>>>>>> done
> >>>>>>>>>> context.check() starting with root task named "Install libjpeg"
> >>>>>>>>>> context.run() starting with root task named "Install libjpeg"
> >>>>>>>>>> done
> >>>>>>>>>> context.check() starting with root task named "Install libtiff"
> >>>>>>>>>> context.run() starting with root task named "Install libtiff"
> >>>>>>>>>> done
> >>>>>>>>>> context.check() starting with root task named "Install Freetype"
> >>>>>>>>>> context.run() starting with root task named "Install Freetype"
> >>>>>>>>>> done
> >>>>>>>>>> context.check() starting with root task named "Install libgd"
> >>>>>>>>>> context.run() starting with root task named "Install libgd"
> >>>>>>>>>> done
> >>>>>>>>>> context.check() starting with root task named "Install Python
> >>>>>>>>>> Imaging
> >>>>>>>>>> Library"
> >>>>>>>>>> context.run() starting with root task named "Install Python
> >>>>>>>>>> Imaging
> >>>>>>>>>> Library"
> >>>>>>>>>> buildit: executing Configure Python Imaging Library
> >>>>>>>>>> buildit: running "Substituter for FREETYPE_ROOT =
> >>>>>>>>>> "/home/mdeblois/sandbox/lib", "/home/mdeblois/sandbox/include"
> >>>>>>>>>> in
> >>>>>>>>>> setup.py"
> >>>>>>>>>> buildit: running "Substituter for JPEG_ROOT =
> >>>>>>>>>> "/home/mdeblois/sandbox/lib", "/home/mdeblois/sandbox/include"
> >>>>>>>>>> in
> >>>>>>>>>> setup.py"
> >>>>>>>>>> buildit: running "Substituter for TIFF_ROOT =
> >>>>>>>>>> "/home/mdeblois/sandbox/lib", "/home/mdeblois/sandbox/include"
> >>>>>>>>>> in
> >>>>>>>>>> setup.py"
> >>>>>>>>>> buildit: "Install Python Imaging Library" has a dependency with
> >>>>>>>>>> a
> >>>>>>>>>> newer
> >>>>>>>>>> target
> >>>>>>>>>> buildit: executing Install Python Imaging Library
> >>>>>>>>>> buildit: running "/home/mdeblois/sandbox/bin/python2.4 setup.py
> >>>>>>>>>> install"
> >>>>>>>>>> running install
> >>>>>>>>>> running build
> >>>>>>>>>> running build_py
> >>>>>>>>>> running build_ext
> >>>>>>>>>> --------------------------------------------------------------------
> >>>>>>>>>> PIL 1.1.5 BUILD SUMMARY
> >>>>>>>>>> --------------------------------------------------------------------
> >>>>>>>>>> version       1.1.5
> >>>>>>>>>> platform      linux2 2.4.3 (#1, Jan  9 2007, 09:55:10)
> >>>>>>>>>>               [GCC 4.1.2 20060928 (prerelease) (Ubuntu
> >>>>>>>>>> 4.1.1-13ubuntu5)]
> >>>>>>>>>> --------------------------------------------------------------------
> >>>>>>>>>> *** TKINTER support not available
> >>>>>>>>>> --- JPEG support ok
> >>>>>>>>>> --- ZLIB (PNG/ZIP) support ok
> >>>>>>>>>> --- FREETYPE2 support ok
> >>>>>>>>>> --------------------------------------------------------------------
> >>>>>>>>>> To add a missing option, make sure you have the required
> >>>>>>>>>> library, and set the corresponding ROOT variable in the
> >>>>>>>>>> setup.py script.
> >>>>>>>>>>
> >>>>>>>>>> To check the build, run the selftest.py script.
> >>>>>>>>>> running build_scripts
> >>>>>>>>>> running install_lib
> >>>>>>>>>> byte-compiling
> >>>>>>>>>> /home/mdeblois/sandbox/lib/python2.4/site-packages/PIL/Image.py
> >>>>>>>>>> to
> >>>>>>>>>> Image.pyc
> >>>>>>>>>> running install_scripts
> >>>>>>>>>> changing mode of /home/mdeblois/sandbox/bin/pilconvert.py to 755
> >>>>>>>>>> changing mode of /home/mdeblois/sandbox/bin/pildriver.py to 755
> >>>>>>>>>> changing mode of /home/mdeblois/sandbox/bin/pilfile.py to 755
> >>>>>>>>>> changing mode of /home/mdeblois/sandbox/bin/pilfont.py to 775
> >>>>>>>>>> changing mode of /home/mdeblois/sandbox/bin/pilprint.py to 755
> >>>>>>>>>> creating
> >>>>>>>>>> /home/mdeblois/sandbox/lib/python2.4/site-packages/PIL.pth
> >>>>>>>>>> buildit: "Install Python Imaging Library" has a dependency with
> >>>>>>>>>> a
> >>>>>>>>>> newer
> >>>>>>>>>> target
> >>>>>>>>>> done
> >>>>>>>>>> context.check() starting with root task named "Install SWIG"
> >>>>>>>>>> context.run() starting with root task named "Install SWIG"
> >>>>>>>>>> done
> >>>>>>>>>> context.check() starting with root task named "Install cURL"
> >>>>>>>>>> context.run() starting with root task named "Install cURL"
> >>>>>>>>>> done
> >>>>>>>>>> context.check() starting with root task named "Install libxml2"
> >>>>>>>>>> context.run() starting with root task named "Install libxml2"
> >>>>>>>>>> done
> >>>>>>>>>> context.check() starting with root task named "Install libxslt"
> >>>>>>>>>> context.run() starting with root task named "Install libxslt"
> >>>>>>>>>> done
> >>>>>>>>>> context.check() starting with root task named "Compile lxml"
> >>>>>>>>>> context.run() starting with root task named "Compile lxml"
> >>>>>>>>>> done
> >>>>>>>>>> context.check() starting with root task named "Install
> >>>>>>>>>> simplejson"
> >>>>>>>>>> context.run() starting with root task named "Install simplejson"
> >>>>>>>>>> done
> >>>>>>>>>> context.check() starting with root task named "Install PROJ.4"
> >>>>>>>>>> context.run() starting with root task named "Install PROJ.4"
> >>>>>>>>>> done
> >>>>>>>>>> context.check() starting with root task named "Install GEOS"
> >>>>>>>>>> context.run() starting with root task named "Install GEOS"
> >>>>>>>>>> done
> >>>>>>>>>> context.check() starting with root task named "Install GDAL"
> >>>>>>>>>> context.run() starting with root task named "Install GDAL"
> >>>>>>>>>> done
> >>>>>>>>>> context.check() starting with root task named "Create a database
> >>>>>>>>>> for
> >>>>>>>>>> testing"
> >>>>>>>>>> context.run() starting with root task named "Create a database
> >>>>>>>>>> for
> >>>>>>>>>> testing"
> >>>>>>>>>> buildit: "Create a database for testing" is missing target
> >>>>>>>>>> /home/mdeblois/sandbox/var/postgresql/data/PG_VERSION
> >>>>>>>>>> buildit: executing Create a database for testing
> >>>>>>>>>> buildit: running "/home/mdeblois/sandbox/bin/initdb --auth=trust
> >>>>>>>>>> -D
> >>>>>>>>>> /home/mdeblois/sandbox/var/postgresql/data"
> >>>>>>>>>> initdb: cannot be run as root
> >>>>>>>>>> Please log in (using, e.g., "su") as the (unprivileged) user
> >>>>>>>>>> that
> >>>>>>>>>> will
> >>>>>>>>>> own the server process.
> >>>>>>>>>> Traceback (most recent call last):
> >>>>>>>>>>   File "build.py", line 255, in ?
> >>>>>>>>>>     options.postgresql_port)
> >>>>>>>>>>   File "build.py", line 125, in build_base
> >>>>>>>>>>     Software(postgresql.install, context).install()
> >>>>>>>>>>   File "/usr/lib/python2.4/site-packages/buildit/context.py",
> >>>>>>>>>> line
> >>>>>>>>>> 182,
> >>>>>>>>>> in
> >>>>>>>>>> install
> >>>>>>>>>>     self.context.run(self.task)
> >>>>>>>>>>   File "/usr/lib/python2.4/site-packages/buildit/context.py",
> >>>>>>>>>> line
> >>>>>>>>>> 164,
> >>>>>>>>>> in
> >>>>>>>>>> run
> >>>>>>>>>>     task.attemptCompletion()
> >>>>>>>>>>   File "/usr/lib/python2.4/site-packages/buildit/task.py", line
> >>>>>>>>>> 257,
> >>>>>>>>>> in
> >>>>>>>>>> attemptCompletion
> >>>>>>>>>>     raise TaskError, (
> >>>>>>>>>> buildit.task.TaskError: Task "Create a database for testing":
> >>>>>>>>>> command
> >>>>>>>>>> "<buildit.task.ShellCommand instance at 0xb7c737ec>" failed with
> >>>>>>>>>> status
> >>>>>>>>>> code "256"
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>> Hi Mark
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>> mark at deblois.nl wrote:
> >>>>>>>>>>>> Hi all,
> >>>>>>>>>>>>
> >>>>>>>>>>>> I have been trying to setup PrimaGIS on my Ubuntu machine
> >>>>>>>>>>>> using
> >>>>>>>>>>>> the
> >>>>>>>>>>>> howto
> >>>>>>>>>>>> on primagis.fi. I am new to Plone/Zope as well as to Python,
> >>>>>>>>>>>> so
> >>>>>>>>>>>> my
> >>>>>>>>>>>> problem
> >>>>>>>>>>>> may be simple. Nevertheless I seem to be moving in circles for
> >>>>>>>>>>>> a
> >>>>>>>>>>>> few
> >>>>>>>>>>>> days
> >>>>>>>>>>>> now and would appreciate any help!
> >>>>>>>>>>>> I have been able to create the demo using the script, but the
> >>>>>>>>>>>> world_borders shapefile does not appear (pink screen with
> >>>>>>>>>>>> (MapServer?!)
> >>>>>>>>>>>> error message: An error message occurred. See log file). The
> >>>>>>>>>>>> WMS
> >>>>>>>>>>>> layer
> >>>>>>>>>>>> does load correctly. I have updated the link to the font file
> >>>>>>>>>>>> and
> >>>>>>>>>>>> the
> >>>>>>>>>>>> fonts seem to be installed. This is the error message I get in
> >>>>>>>>>>>> the
> >>>>>>>>>>>> console:
> >>>>>>>>>>>>
> >>>>>>>>>>>>   File "/usr/lib/python2.4/site-packages/mapscript.py", line
> >>>>>>>>>>>> 901,
> >>>>>>>>>>>> in
> >>>>>>>>>>>> drawLabelCache
> >>>>>>>>>>>>     def drawLabelCache(*args): return
> >>>>>>>>>>>> _mapscript.mapObj_drawLabelCache(*args)
> >>>>>>>>>>>> MapServerError: msGetLabelSize(): TrueType Font error. Could
> >>>>>>>>>>>> not
> >>>>>>>>>>>> find/open
> >>>>>>>>>>>> font
> >>>>>>>>>>>>
> >>>>>>>>>>>> What am I doing wrong? Your help would be greatly appreciated!
> >>>>>>>>>>>> I
> >>>>>>>>>>>> should
> >>>>>>>>>>>> be
> >>>>>>>>>>>> close and can't wait to fully test primagis.
> >>>>>>>>>>> Have you defined a fontset file and configured the location of
> >>>>>>>>>>> it
> >>>>>>>>>>> using
> >>>>>>>>>>> the ZMI in the portal_gis tool's properties sheet? If you have,
> >>>>>>>>>>> then
> >>>>>>>>>>> please make sure that the paths are configured properly. You
> >>>>>>>>>>> should
> >>>>>>>>>>> post
> >>>>>>>>>>> the fontset file here if you don't see anything wrong with it.
> >>>>>>>>>>>
> >>>>>>>>>>> Since you are new to python/zope/plone I would also suggest
> >>>>>>>>>>> taking
> >>>>>>>>>>> a
> >>>>>>>>>>> look at primagis.buildout. It is an automated buildout script
> >>>>>>>>>>> that
> >>>>>>>>>>> will
> >>>>>>>>>>> install an primagis sandbox with the demo installed and
> >>>>>>>>>>> configured
> >>>>>>>>>>> for
> >>>>>>>>>>> you automatically. This is a great way of getting started
> >>>>>>>>>>> without
> >>>>>>>>>>> all
> >>>>>>>>>>> the hassle.
> >>>>>>>>>>>
> >>>>>>>>>>> You can read more about the buildout system at
> >>>>>>>>>>>
> >>>>>>>>>>>    http://trac.gispython.org/projects/PrimaGIS/wiki/PrimaGISBuildout
> >>>>>>>>>>>
> >>>>>>>>>>> It's been tested on Ubuntu and should run just fine.
> >>>>>>>>>>>
> >>>>>>>>>>> cheers,
> >>>>>>>>>>> Kai
> >>>>>>>>>>> --
> >>>>>>>>>>> Kai Lautaportti               +358-50-558-7935
> >>>>>>>>>>> Software engineer             www.hexagonit.fi
> >>>>>>>>>>> Hexagon IT Oy                 kai.lautaportti at hexagonit.fi
> >>>>>>>>>>> _______________________________________________
> >>>>>>>>>>> Community mailing list
> >>>>>>>>>>> Community at lists.gispython.org
> >>>>>>>>>>> http://lists.gispython.org/mailman/listinfo/community
> >>>>>>>>>>>
> >>>>>>>>>> _______________________________________________
> >>>>>>>>>> Community mailing list
> >>>>>>>>>> Community at lists.gispython.org
> >>>>>>>>>> http://lists.gispython.org/mailman/listinfo/community
> >>>>>>>>> --
> >>>>>>>>> Kai Lautaportti               +358-50-558-7935
> >>>>>>>>> Software engineer             www.hexagonit.fi
> >>>>>>>>> Hexagon IT Oy                 kai.lautaportti at hexagonit.fi
> >>>>>>>>> _______________________________________________
> >>>>>>>>> Community mailing list
> >>>>>>>>> Community at lists.gispython.org
> >>>>>>>>> http://lists.gispython.org/mailman/listinfo/community
> >>>>>>>>>
> >>>>>>>> _______________________________________________
> >>>>>>>> Community mailing list
> >>>>>>>> Community at lists.gispython.org
> >>>>>>>> http://lists.gispython.org/mailman/listinfo/community
> >>>>>>> --
> >>>>>>> Kai Lautaportti               +358-50-558-7935
> >>>>>>> Software engineer             www.hexagonit.fi
> >>>>>>> Hexagon IT Oy                 kai.lautaportti at hexagonit.fi
> >>>>>>> _______________________________________________
> >>>>>>> Community mailing list
> >>>>>>> Community at lists.gispython.org
> >>>>>>> http://lists.gispython.org/mailman/listinfo/community
> >>>>>>>
> >>>>>> _______________________________________________
> >>>>>> Community mailing list
> >>>>>> Community at lists.gispython.org
> >>>>>> http://lists.gispython.org/mailman/listinfo/community
> >>>>>
> >>>>
> >>>> --
> >>>> Kai Lautaportti               +358-50-558-7935
> >>>> Software engineer             www.hexagonit.fi
> >>>> Hexagon IT Oy                 kai.lautaportti at hexagonit.fi
> >>>> _______________________________________________
> >>>> Community mailing list
> >>>> Community at lists.gispython.org
> >>>> http://lists.gispython.org/mailman/listinfo/community
> >>>>
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> Community mailing list
> >>> Community at lists.gispython.org
> >>> http://lists.gispython.org/mailman/listinfo/community
> >>
> >>
> >> --
> >> Kai Lautaportti               +358-50-558-7935
> >> Software engineer             www.hexagonit.fi
> >> Hexagon IT Oy                 kai.lautaportti at hexagonit.fi
> >> _______________________________________________
> >> Community mailing list
> >> Community at lists.gispython.org
> >> http://lists.gispython.org/mailman/listinfo/community
> >>
> > _______________________________________________
> > Community mailing list
> > Community at lists.gispython.org
> > http://lists.gispython.org/mailman/listinfo/community
> >
> 
> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> Community mailing list
> Community at lists.gispython.org
> http://lists.gispython.org/mailman/listinfo/community
> 
> 
> End of Community Digest, Vol 15, Issue 11
> *****************************************



More information about the Community mailing list